/* SA-1 Support inbox (System Management). Uses the console's own variables (navy, orange, Inter):
   design D7, "the inbox uses only existing console styles". Day only, like the console. */
#support-root { --si-line2: #CBD5E1; display: flex; flex-direction: column; }
.si-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-count.hot { background: var(--orange); color: #fff; }
.si-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.si-title-row h1 { margin: 6px 0 4px; font-size: 25px; letter-spacing: -.03em; font-weight: 850; }
.si-lead { margin: 0; color: var(--muted); font-size: 12.5px; }
.si-title-tools { display: flex; gap: 10px; align-items: center; }
.si-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 12px; cursor: pointer; }
.si-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.si-switch { width: 32px; height: 18px; border-radius: 9px; background: var(--si-line2); position: relative; flex: 0 0 auto; transition: background .15s; }
.si-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.si-toggle input:checked + .si-switch { background: var(--green); }
.si-toggle input:checked + .si-switch::after { left: 16px; }
.si-toggle input:focus-visible + .si-switch { outline: 2px solid var(--focus); outline-offset: 2px; }
.si-toggle input:disabled + .si-switch { opacity: .5; }
.si-toggle b { display: block; font-weight: 700; }
.si-toggle small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.si-notice { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #fed7aa; background: var(--orange-soft); border-radius: 10px; font-size: 12.5px; }
.si-panel { flex: 0 0 auto; min-height: 560px; height: calc(100vh - 230px); display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(7, 24, 32, .05); }
.si-panel.si-empty-mode { grid-template-columns: 340px minmax(0, 1fr); }
.si-col { min-height: 0; display: flex; flex-direction: column; }
.si-col + .si-col { border-left: 1px solid var(--line); }
.si-col.hidden { display: none; }
.si-list-head { padding: 12px; border-bottom: 1px solid var(--line); }
.si-search { height: 36px; border: 1px solid var(--si-line2); border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--subtle); background: var(--soft); }
.si-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); min-width: 0; }
.si-search:focus-within { border-color: var(--orange); }
.si-seg { display: flex; gap: 4px; margin-top: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.si-seg button { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.si-seg button.on { background: var(--navy); color: #fff; }
.si-seg em { font-style: normal; font-weight: 800; margin-left: 4px; opacity: .75; }
.si-list-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.si-list-sub select { border: 1px solid var(--si-line2); border-radius: 7px; padding: 4px 8px; color: var(--ink); font-weight: 600; background: var(--surface); font-size: 12px; }
.si-rows { overflow-y: auto; flex: 1; }
.si-list-empty { padding: 28px 18px; color: var(--muted); font-size: 12.5px; text-align: center; }
.si-row { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.si-row:hover { background: var(--soft); }
.si-row.sel { background: var(--orange-soft); box-shadow: inset 3px 0 var(--orange); }
.si-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.si-tav { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.si-tav.r { background: #FEF3C7; color: #92400E; } .si-tav.d { background: #DBEAFE; color: #1E40AF; }
.si-row-main { min-width: 0; display: flex; flex-direction: column; }
.si-rn { font-weight: 750; font-size: 13px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.si-prod { white-space: nowrap; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 5px; border-radius: 5px; text-transform: uppercase; }
.si-prod.r { background: #FEF3C7; color: #92400E; } .si-prod.d { background: #DBEAFE; color: #1E40AF; }
/* GL-20b: the platform alert email for this chat bounced or was not confirmed. */
.si-dtag { white-space: nowrap; font-size: 9.5px; font-weight: 800; padding: 2px 5px; border-radius: 5px; background: #FEE2E2; color: #991B1B; }
.si-prev { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-prev.unread { color: var(--ink); font-weight: 600; }
.si-wait { font-size: 10.5px; margin-top: 5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.si-wait .si-i { width: 13px; height: 13px; }
.si-wait.late { color: var(--red); } .si-wait.ok { color: var(--amber); } .si-wait.w { color: var(--muted); font-weight: 600; }
.si-rt { text-align: right; font-size: 11px; color: var(--subtle); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.si-badge { display: inline-block; min-width: 20px; height: 20px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 20px; text-align: center; padding: 0 6px; }
.si-conv-head { display: flex; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.si-conv-title { min-width: 160px; flex: 1; }
.si-conv-title h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-conv-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.si-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.si-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.si-acts .secondary-button { white-space: nowrap; }
.si-sm { height: 30px; font-size: 11.5px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; }
.si-pill { font-size: 9.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.si-pill.open { color: var(--orange-dark); background: var(--orange-soft); border: 1px solid #fed7aa; }
.si-pill.active { color: var(--green); background: var(--green-soft); border: 1px solid #bbf7d0; }
.si-pill.waiting { color: var(--blue); background: var(--blue-soft); border: 1px solid #bfdbfe; }
.si-pill.closed { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.si-msgs-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.si-earlier { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; z-index: 2; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--si-line2); border-radius: 20px; padding: 4px 11px; cursor: pointer; }
.si-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 44px 18px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.si-msgs > :first-child { margin-top: auto; }
.si-loading { margin: auto; color: var(--muted); font-size: 12.5px; padding: 20px; }
.si-day { align-self: center; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; }
.si-sys { align-self: center; font-size: 11px; color: var(--muted); }
.si-m { max-width: 74%; display: flex; flex-direction: column; }
.si-w { font-size: 11px; color: var(--muted); margin: 0 4px 4px; } .si-w b { color: var(--ink); font-weight: 700; }
.si-b { padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.si-m.t { align-self: flex-start; } .si-m.t .si-b { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.si-m.o { align-self: flex-end; align-items: flex-end; } .si-m.o .si-b { background: #0b2935; color: #EAF2F4; border-top-right-radius: 4px; }
.si-st { font-size: 10.5px; color: var(--muted); margin: 4px 4px 0; display: flex; align-items: center; gap: 4px; }
.si-st.seen { color: var(--blue); } .si-st.failed { color: var(--red); }
.si-st button { border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }
.si-att { margin-top: 6px; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--si-line2); border-radius: 10px; background: var(--surface); width: 260px; max-width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.si-att b { font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .si-att small { font-size: 10.5px; color: var(--muted); }
.si-att > span:last-child { min-width: 0; }
.si-ft { width: 30px; height: 36px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 850; color: #fff; background: #B91C1C; flex: 0 0 auto; }
.si-ft.img { background: #0E8F8F; }
.si-reply { border-top: 1px solid var(--line); padding: 12px 16px; background: var(--surface); }
.si-readonly { color: var(--muted); font-size: 12.5px; }
.si-rbox { border: 1px solid var(--si-line2); border-radius: 11px; padding: 10px 12px 8px; }
.si-rbox:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.si-rbox textarea { width: 100%; min-height: 38px; max-height: 160px; resize: vertical; border: 0; outline: 0; font: 400 12.5px/1.5 inherit; font-family: inherit; color: var(--ink); background: transparent; }
.si-rrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.si-saved { height: 30px; border: 1px solid var(--si-line2); border-radius: 8px; padding: 0 8px; font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--surface); max-width: 200px; }
.si-send { margin-left: auto; height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.si-rnote { font-size: 10.5px; color: var(--muted); margin-top: 7px; display: flex; justify-content: space-between; gap: 8px; }
.si-staged:not(:empty) { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.si-stage { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border: 1px solid var(--si-line2); border-radius: 9px; font-size: 12px; background: var(--soft); }
.si-stage small { color: var(--muted); } .si-stage.err { border-color: #fecaca; background: var(--red-soft); } .si-stage.err small { color: var(--red); }
.si-stage button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; }
.si-det { padding: 16px; overflow-y: auto; }
.si-det-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.si-det h3 { margin: 0; font-size: 16px; font-weight: 850; letter-spacing: -.02em; }
.si-host { font-size: 11px; color: var(--muted); margin-top: 3px; font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.si-kv { margin-top: 14px; border-top: 1px solid var(--line); }
.si-kv div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.si-kv span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.si-kv b { font-weight: 700; text-align: right; overflow-wrap: anywhere; text-transform: none; }
.si-kv b.active { color: var(--green); } .si-kv b.waiting { color: var(--amber); } .si-kv b.closed { color: var(--muted); }
.si-sec { margin-top: 16px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.si-people div { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; } .si-people small { color: var(--muted); }
.si-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.si-links button { height: 32px; border: 1px solid var(--si-line2); border-radius: 8px; display: flex; align-items: center; gap: 6px; padding: 0 9px; font-size: 11.5px; font-weight: 700; background: var(--surface); cursor: pointer; color: var(--ink); }
.si-links .si-i { width: 13px; height: 13px; color: var(--muted); }
.si-files button { width: 100%; display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 11.5px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.si-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.si-files small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.si-none { font-size: 12px; color: var(--muted); padding: 6px 0; }
.si-ftag { width: 22px; height: 26px; border-radius: 4px; color: #fff; font-size: 7.5px; font-weight: 900; display: grid; place-items: center; background: #B91C1C; flex: 0 0 auto; }
.si-ftag.img { background: #0E8F8F; }
.si-empty-c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); background: var(--soft); padding: 24px; }
.si-big { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.si-big .si-i { width: 24px; height: 24px; }
.si-empty-c b { color: var(--ink); font-size: 15px; }
.si-empty-c p { margin: 6px 0 0; font-size: 12.5px; max-width: 320px; line-height: 1.5; }
.si-settings { margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.si-settings.hidden { display: none; }
.si-settings-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.si-settings-head b { display: block; font-size: 14px; } .si-settings-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.si-hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 18px; }
.si-hours-row { display: grid; grid-template-columns: 92px 70px 1fr 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.si-hours-row input[type="time"] { height: 32px; border: 1px solid var(--si-line2); border-radius: 8px; padding: 0 8px; font: inherit; }
.si-field { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }
.si-field textarea { display: block; width: 100%; max-width: 420px; margin-top: 6px; border: 1px solid var(--si-line2); border-radius: 9px; padding: 8px 10px; font: 12.5px ui-monospace, Menlo, monospace; }
.si-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; }
.si-check b { display: block; } .si-check small { display: block; color: var(--muted); }
.si-settings-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.si-toast { position: fixed; top: 74px; right: 22px; width: 380px; max-width: calc(100vw - 24px); z-index: 60; background: var(--surface); border: 1px solid var(--si-line2, #CBD5E1); border-left: 4px solid var(--orange); border-radius: 12px; box-shadow: 0 20px 50px -18px rgba(7, 24, 32, .4); padding: 14px 14px 12px; font-size: 12px; }
.si-toast.hidden { display: none; }
.si-toast-top { display: flex; gap: 10px; }
.si-toast-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; flex: 0 0 auto; }
.si-toast b { font-size: 13px; } .si-toast p { margin: 3px 0 0; color: var(--muted); line-height: 1.45; }
.si-toast-x { margin-left: auto; border: 0; background: none; color: var(--subtle); cursor: pointer; align-self: flex-start; }
.si-toast-acts { display: flex; gap: 8px; margin-top: 10px; padding-left: 42px; }
@media (max-width: 1280px) { .si-panel { grid-template-columns: 300px minmax(0, 1fr); } .si-det { display: none; } }
.si-rrow .si-saved { min-width: 0; flex: 0 1 200px; }
.si-rrow .si-send { flex: 0 0 auto; min-width: 0; width: auto; padding: 0 14px; }
.si-rnote span:last-child { white-space: nowrap; }
.si-rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
