:root {
  --bg: #050a09;
  --rail: #07110f;
  --surface: #0a1412;
  --surface-2: #0d1916;
  --surface-3: #111f1b;
  --line: rgba(210, 228, 221, 0.11);
  --line-bright: rgba(213, 183, 112, 0.32);
  --text: #f4f1e9;
  --muted: #8fa19a;
  --gold: #d4b570;
  --gold-soft: #9c8049;
  --cyan: #57d7cf;
  --green: #6fd69c;
  --violet: #a98df4;
  --danger: #ff8478;
  --radius: 14px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 72% -10%, rgba(58, 137, 119, .12), transparent 30%), var(--bg); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; background: var(--gold); color: #07110f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.login-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 10%, rgba(82,198,184,.10), transparent 34%), linear-gradient(145deg, #050a09, #091411); }
.login-gate[hidden] { display: none; }
.login-card { width: min(420px, 100%); padding: 30px; border: 1px solid var(--line-bright); border-radius: 16px; background: rgba(10,20,18,.94); box-shadow: 0 35px 100px rgba(0,0,0,.44), 0 0 45px rgba(212,181,112,.035); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.login-card h1 { margin-bottom: 10px; font-size: 30px; }
.login-copy { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-card input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #050c0a; color: var(--text); }
.login-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,181,112,.08); }
.login-card .primary-button { width: 100%; margin-top: 8px; }
.login-card > small { display: block; margin-top: 18px; color: #65766f; font-size: 8px; letter-spacing: .08em; text-align: center; }
.login-error { min-height: 18px; margin: 9px 0 0; color: var(--danger); font-size: 10px; }
.invite-identity { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(87,215,207,.045); }
.invite-identity span { font-size: 13px; font-weight: 750; }
.invite-identity small, .password-hint { color: var(--muted); font-size: 10px; }
.password-hint { margin: 6px 0 0; line-height: 1.45; }
.login-link { display: block; margin-top: 17px; color: var(--gold); font-size: 11px; text-align: center; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 25, 21, .95), rgba(5, 12, 10, .98)); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 22px rgba(212,181,112,.14); color: var(--gold); font-family: var(--serif); font-size: 22px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: .19em; }
.brand-copy small { margin-top: 5px; color: var(--gold); font-size: 8px; letter-spacing: .56em; }
.rail-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: 150ms ease; }
.nav-item svg { width: 19px; }
.nav-item b { min-width: 20px; padding: 2px 6px; border-radius: 9px; background: rgba(212,181,112,.12); color: var(--gold); font-size: 11px; text-align: center; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { border-color: rgba(212,181,112,.14); background: linear-gradient(90deg, rgba(212,181,112,.13), rgba(212,181,112,.02)); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: -17px; width: 2px; height: 26px; background: var(--gold); box-shadow: 0 0 12px rgba(212,181,112,.7); }
.nav-item.active svg { color: var(--gold); }
.rail-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.operator { width: 100%; display: grid; grid-template-columns: 32px 1fr 7px; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.operator > span:first-child { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; background: #15231f; color: var(--gold); font-size: 11px; font-weight: 800; }
.operator > span:nth-child(2) { display: grid; }
.operator strong { font-size: 12px; }
.operator small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.operator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.main { min-width: 0; padding: 28px 30px 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.system-state { display: flex; align-items: center; gap: 8px; margin-right: 6px; color: var(--muted); font-size: 11px; }
.system-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(111,214,156,.8); }
.icon-button, .conversation-actions button, .composer-actions button:not(.send-button), .filter-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-button { position: relative; }
.icon-button svg, .conversation-actions svg, .composer-actions svg, .filter-button svg { width: 18px; }
.icon-button span { position: absolute; top: 8px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.primary-button, .send-button { min-height: 40px; padding: 0 17px; border: 1px solid var(--gold); border-radius: 9px; background: var(--gold); color: #07110f; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(212,181,112,.12); }
.primary-button:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .5; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,20,18,.76); }
.metrics article { padding: 15px 18px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.metrics strong { display: block; margin: 6px 0 4px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 22px; letter-spacing: -.04em; }
.metrics small { color: var(--muted); font-size: 10px; }
.metrics small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; }
.cyan { background: var(--cyan); }.gold { background: var(--gold); }.violet { background: var(--violet); }.green { background: var(--green); }

.desk-grid { min-height: 670px; display: grid; grid-template-columns: minmax(270px, .82fr) minmax(390px, 1.35fr) minmax(270px, .78fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(7,15,13,.68); box-shadow: 0 26px 80px rgba(0,0,0,.22); }
.panel { min-width: 0; background: var(--surface); }
.inbox-panel, .conversation { border-right: 1px solid var(--line); }
.mailbox-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 13px 14px 11px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(87,215,207,.045), transparent 62%); }
.mailbox-toolbar > small { padding-bottom: 8px; color: var(--cyan); font-family: ui-monospace, Consolas, monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mailbox-control, .sender-control, .assignment-control { display: grid; gap: 5px; min-width: 0; }
.mailbox-control { flex: 1; }
.mailbox-control > span, .sender-control > span, .assignment-control > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.mailbox-control select, .sender-control select, .assignment-control select { width: 100%; min-height: 34px; padding: 0 34px 0 10px; border: 1px solid var(--line-bright); border-radius: 8px; outline: 0; appearance: none; background-color: #07100e; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 11px) 14px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; color: var(--text); font-size: 10px; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease; }
.mailbox-control select:focus, .sender-control select:focus, .assignment-control select:focus { border-color: rgba(87,215,207,.55); box-shadow: 0 0 0 3px rgba(87,215,207,.07), 0 0 18px rgba(87,215,207,.07); }
.panel-tools { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.search { flex: 1; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.16); color: var(--muted); }
.search svg { width: 16px; flex: 0 0 auto; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search input::placeholder { color: #71827c; }
.channel-tabs { display: flex; gap: 3px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.channel-tabs button { padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.channel-tabs button.active { background: var(--surface-3); color: var(--text); }
.channel-tabs b { margin-left: 4px; color: var(--gold); font-size: 10px; }
.thread-list { max-height: 588px; overflow: auto; scrollbar-width: thin; scrollbar-color: #32433d transparent; }
.thread { width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: 140ms ease; }
.thread:hover { background: rgba(255,255,255,.025); }
.thread.active { background: linear-gradient(90deg, rgba(82,198,184,.09), transparent); box-shadow: inset 2px 0 0 var(--cyan); }
.thread-avatar, .avatar { display: grid; place-items: center; border: 1px solid rgba(87,215,207,.24); border-radius: 50%; background: #13231f; color: var(--cyan); font-size: 10px; font-weight: 800; }
.thread-avatar { width: 36px; height: 36px; }
.thread-copy { min-width: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.thread-head time { color: var(--muted); font-size: 9px; }
.thread-subject { margin: 4px 0 3px; color: #cbd4d0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-preview { margin: 0; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-flags { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.channel-badge { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mailbox-badge { min-width: 0; overflow: hidden; padding: 2px 5px; border: 1px solid rgba(87,215,207,.14); border-radius: 4px; color: var(--cyan); font-family: ui-monospace, Consolas, monospace; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.unread-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(212,181,112,.7); }

.conversation { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface), #08110f); }
.conversation-head { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.client-id { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; }
.client-id h2 { margin: 0 0 3px; font-size: 13px; }
.client-id p { margin: 0; color: var(--muted); font-size: 10px; }
.conversation-actions { display: flex; gap: 6px; }
.conversation-actions button { width: 34px; height: 34px; background: transparent; }
.message-stream { flex: 1; min-height: 350px; max-height: 428px; overflow-y: auto; padding: 18px 17px; scrollbar-width: thin; scrollbar-color: #32433d transparent; }
.date-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: #6f817a; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.date-divider::before, .date-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.message { max-width: 82%; margin-bottom: 15px; }
.message.incoming { margin-right: auto; }.message.outgoing { margin-left: auto; }
.message-label { display: flex; gap: 7px; margin: 0 0 5px; color: var(--muted); font-size: 9px; }
.outgoing .message-label { justify-content: flex-end; }
.bubble { padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; background: var(--surface-3); color: #dfe5e2; font-size: 12px; line-height: 1.5; }
.outgoing .bubble { border-color: rgba(212,181,112,.19); border-radius: 12px 4px 12px 12px; background: rgba(83,67,37,.24); }
.bubble p { margin: 0; }.bubble p + p { margin-top: 8px; }
.bubble .quote-inline { display: block; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.composer { margin: 0 14px 14px; border: 1px solid var(--line-bright); border-radius: 11px; background: var(--surface-2); box-shadow: 0 0 25px rgba(212,181,112,.035); }
.composer-context { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.composer-context > small { padding-bottom: 8px; white-space: nowrap; }
.composer-context > small span { color: var(--gold); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sender-control { flex: 1; max-width: 275px; }
.sender-control select { min-height: 30px; background-position: calc(100% - 15px) 12px, calc(100% - 11px) 12px; color: var(--gold); font-family: ui-monospace, Consolas, monospace; }
.composer textarea { width: 100%; resize: none; padding: 11px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; line-height: 1.5; }
.composer textarea::placeholder { color: #697b74; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; padding: 7px; }
.composer-actions > div { display: flex; gap: 3px; }
.composer-actions button:not(.send-button) { width: 32px; height: 32px; border: 0; background: transparent; }
.send-button { min-height: 34px; padding: 0 14px; }

.context-panel { background: #08120f; }
.context-section { padding: 16px; border-bottom: 1px solid var(--line); }
.profile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.avatar.large { width: 46px; height: 46px; font-size: 12px; }
.risk-badge { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid rgba(111,214,156,.2); border-radius: 5px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.risk-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.profile h2 { margin: 10px 0 3px; font-size: 15px; }.profile > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.profile dl { display: grid; gap: 9px; margin: 0; }.profile dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }.profile dd { margin: 0; font-size: 10px; font-weight: 700; }.verified { color: var(--green); }
.assignment-control { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.assignment-control select { min-height: 36px; }
.assignment-control select:disabled { cursor: not-allowed; opacity: .55; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.section-title small { color: var(--cyan); font-size: 8px; }.section-title button { padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 9px; cursor: pointer; }
.quote-card { background: radial-gradient(circle at 100% 0, rgba(87,215,207,.06), transparent 46%); }
.quote-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.16); }
.quote-row label { display: grid; gap: 3px; }.quote-row label span, .quote-result span { color: var(--muted); font-size: 8px; }.quote-row input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; }.quote-row b { color: var(--muted); font-size: 10px; }
.quote-swap { position: relative; z-index: 1; display: grid; width: 22px; height: 22px; margin: -3px auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--gold); font-size: 10px; }
.quote-result { display: grid; gap: 3px; padding: 10px; border: 1px solid rgba(212,181,112,.18); border-radius: 8px; background: rgba(212,181,112,.05); }.quote-result strong { color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.quote-detail { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; color: var(--muted); font-size: 8px; }.quote-detail strong { color: var(--text); }
.quote-card > button { width: 100%; min-height: 34px; border: 1px solid var(--line-bright); border-radius: 7px; background: transparent; color: var(--gold); font-size: 9px; font-weight: 800; cursor: pointer; }.quote-card > p { margin: 8px 0 0; color: #697b74; font-size: 8px; line-height: 1.4; text-align: center; }
.activity ol { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }.activity li { display: grid; grid-template-columns: 7px 1fr; align-items: center; gap: 8px; }.activity li > i { width: 6px; height: 6px; border-radius: 50%; }.activity li div { display: grid; }.activity strong { font-size: 10px; }.activity small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.modal { width: min(430px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-bright); border-radius: 14px; background: var(--surface-2); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.6); }.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }.modal form { padding: 18px; }.modal-head { display: flex; justify-content: space-between; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.modal-head button { border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }.modal h2 { margin: 12px 0 18px; }.modal label { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 10px; }.modal input, .modal select { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #07100e; color: var(--text); }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.modal-actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }.modal-actions button:last-child { border-color: var(--gold); background: var(--gold); color: #07110f; font-weight: 800; }
.team-modal { width: min(620px, calc(100% - 32px)); }
.team-dialog { padding: 22px; }
.team-dialog h2 { margin-bottom: 7px; }
.modal-copy { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-copy strong { color: var(--text); }
.team-dialog form { padding: 0; }
.team-form-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(150px,.8fr); gap: 10px; }
.team-dialog .primary-button { min-height: 42px; }
.invite-result { margin-top: 16px; padding: 13px; border: 1px solid rgba(87,215,207,.2); border-radius: 9px; background: rgba(87,215,207,.045); }
.invite-result > span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.invite-result > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin: 8px 0 6px; }
.invite-result input { width: 100%; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 10px; }
.invite-result button { padding: 0 14px; border: 1px solid var(--line-bright); border-radius: 8px; background: transparent; color: var(--gold); cursor: pointer; }
.invite-result small { color: var(--muted); font-size: 9px; }
.staff-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.staff-list { display: grid; gap: 7px; max-height: 210px; overflow-y: auto; }
.staff-list > p { margin: 0; color: var(--muted); font-size: 11px; }
.staff-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.12); }
.staff-row > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 800; }
.staff-row div { min-width: 0; display: grid; gap: 2px; }
.staff-row strong, .staff-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-row strong { font-size: 11px; }.staff-row small { color: var(--muted); font-size: 9px; }
.staff-row b { color: var(--green); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 340px; padding: 12px 15px; border: 1px solid var(--line-bright); border-radius: 9px; background: #13201d; color: var(--text); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 180ms ease; }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) { .app-shell { grid-template-columns: 78px minmax(0,1fr); }.brand-copy, .nav-item span, .nav-item b, .operator > span:nth-child(2), .operator i { display: none; }.brand { justify-content: center; padding-inline: 0; }.nav-item { display: grid; grid-template-columns: 1fr; place-items: center; padding: 0; }.nav-item.active::before { left: -17px; }.operator { display: grid; grid-template-columns: 1fr; place-items: center; }.desk-grid { grid-template-columns: 280px minmax(380px, 1fr); }.context-panel { display: none; } }
@media (max-width: 820px) { .app-shell { display: block; }.rail { position: fixed; z-index: 20; inset: auto 0 0; width: 100%; height: 64px; display: block; padding: 8px 12px; border: 1px solid var(--line); background: rgba(7,17,15,.97); backdrop-filter: blur(12px); }.brand, .rail-foot { display: none; }.rail-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }.nav-item { min-height: 46px; }.nav-item.active::before { inset: auto 25% -8px; width: 50%; height: 2px; }.main { padding: 20px 16px 84px; }.system-state { display: none; }.metrics { grid-template-columns: repeat(2,1fr); }.metrics article:nth-child(2) { border-right: 0; }.metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.desk-grid { grid-template-columns: 1fr; min-height: 0; }.inbox-panel { border-right: 0; }.conversation { display: none; }.desk-grid.thread-open .inbox-panel { display: none; }.desk-grid.thread-open .conversation { display: flex; border-right: 0; }.thread-list { max-height: none; }.message-stream { max-height: none; min-height: 48vh; } }
@media (max-width: 520px) { .topbar { align-items: flex-end; }.top-actions .icon-button { display: none; }.primary-button { padding: 0 12px; }.metrics { gap: 0; }.metrics article { padding: 12px; }.metrics strong { font-size: 18px; }.composer-context { align-items: stretch; flex-direction: column; }.composer-context > small { padding: 0; }.sender-control { max-width: none; }.team-form-grid { grid-template-columns: 1fr; }.team-dialog { padding: 17px; }.invite-result > div { grid-template-columns: 1fr; }.invite-result button { min-height: 38px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
