:root {
  color-scheme: dark;
  --bg: #06100c;
  --panel: #0d1e18;
  --panel-strong: #11271f;
  --panel-soft: rgba(16, 38, 30, .76);
  --line: rgba(205, 238, 225, .13);
  --line-strong: rgba(130, 230, 184, .3);
  --text: #f2f8f5;
  --muted: #98aaa3;
  --green: #82e6b8;
  --green-strong: #37cf91;
  --gold: #e3c177;
  --danger: #ff9a83;
  --shadow: 0 30px 90px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; pointer-events: none; }
.ambient-one { width: 52rem; height: 52rem; right: -20rem; top: -24rem; background: radial-gradient(circle, rgba(54,206,145,.16), transparent 68%); }
.ambient-two { width: 36rem; height: 36rem; left: -24rem; bottom: -19rem; background: radial-gradient(circle, rgba(227,193,119,.08), transparent 70%); }

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(130,230,184,.45); transform: rotate(45deg); }
.brand-mark span { width: 13px; height: 13px; background: var(--green); box-shadow: 0 0 24px rgba(130,230,184,.55); }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 14px; letter-spacing: .18em; }
.brand small { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow, .section-kicker { color: var(--green); font-size: 10px; font-weight: 760; letter-spacing: .2em; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(440px, .65fr); }
.auth-story { min-height: 100vh; padding: 54px clamp(42px, 6vw, 100px); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.auth-story-copy { max-width: 760px; margin: auto 0; padding: 80px 0; }
.auth-story h1 { margin: 24px 0 28px; font-size: clamp(60px, 7.4vw, 108px); font-weight: 610; line-height: .94; letter-spacing: -.058em; }
.auth-story h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.auth-story-copy p { max-width: 630px; margin: 0; color: #afc0b9; font-size: 17px; line-height: 1.75; }
.trust-row { padding-top: 25px; display: flex; flex-wrap: wrap; gap: 26px; border-top: 1px solid var(--line); color: #84978f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(130,230,184,.45); }
.auth-panel { min-height: 100vh; padding: 56px clamp(32px, 4vw, 74px); display: grid; place-items: center; background: rgba(3, 11, 8, .28); }
.auth-card { width: min(100%, 440px); }
.auth-card h2 { margin: 12px 0 15px; font-size: clamp(32px, 4vw, 48px); font-weight: 580; line-height: 1.05; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-card form { display: grid; gap: 17px; }
.auth-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.auth-actions .primary-button { width: 100%; }
.back-link { margin-top: 28px; display: inline-block; color: #71847c; font-size: 11px; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: var(--green); outline: none; }

label { display: grid; gap: 8px; color: #acbdb6; font-size: 11px; font-weight: 630; letter-spacing: .035em; }
input, select, textarea { width: 100%; min-width: 0; color: var(--text); background: rgba(4, 14, 10, .72); border: 1px solid var(--line); border-radius: 0; outline: none; }
input, select { height: 48px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; line-height: 1.55; }
.optional-label { margin-left: 6px; color: #60736b; font-size: 7px; font-weight: 520; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(130,230,184,.07); }
input::placeholder, textarea::placeholder { color: #566a62; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #70837b 50%), linear-gradient(135deg, #70837b 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }

.primary-button, .secondary-button, .danger-button, .text-button, .icon-button, .user-button, .nav-button, .copy-button, .modal-close { appearance: none; border-radius: 0; cursor: pointer; }
.primary-button { min-height: 49px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #06130e; background: var(--green); border: 1px solid var(--green); font-size: 12px; font-weight: 760; box-shadow: 0 15px 36px rgba(54,206,145,.13); transition: .18s ease; }
.primary-button:hover, .primary-button:focus-visible { background: #a3f1ce; border-color: #a3f1ce; outline: none; transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button.compact { min-height: 42px; padding: 0 15px; }
.secondary-button { min-height: 42px; padding: 0 15px; color: #c8d7d1; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 11px; font-weight: 680; }
.secondary-button:hover, .secondary-button:focus-visible { color: var(--green); border-color: var(--line-strong); outline: none; }
.secondary-button.compact { min-height: 38px; }
.danger-button { min-height: 42px; padding: 0 14px; color: var(--danger); background: rgba(255,154,131,.04); border: 1px solid rgba(255,154,131,.2); font-size: 11px; font-weight: 680; }
.text-button { padding: 4px 0; color: var(--green); background: none; border: 0; font-size: 10px; font-weight: 720; }
.text-button:hover, .text-button:focus-visible { color: #b6f5d8; outline: none; }
.form-alert { padding: 11px 13px; color: #ffc0b1; background: rgba(255,154,131,.06); border-left: 2px solid var(--danger); font-size: 11px; line-height: 1.5; }

.mfa-card { width: min(100%, 500px); }
.mfa-setup { margin: 0 0 25px; padding: 18px; display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 20px; border: 1px solid var(--line); background: var(--panel-soft); }
.qr-frame { width: 148px; height: 148px; padding: 9px; background: #fff; }
.qr-frame img { width: 100%; height: 100%; display: block; }
.mfa-secret { min-width: 0; display: grid; gap: 10px; }
.mfa-secret span { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.mfa-secret code { overflow-wrap: anywhere; color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.6; }
.mfa-secret .text-button { justify-self: start; }
.recovery-grid { margin: 24px 0 14px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; border: 1px solid var(--line); background: var(--panel-soft); }
.recovery-grid code { color: #dbe8e3; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
#recovery-panel .secondary-button, #recovery-panel .primary-button { width: 100%; margin-top: 10px; }

.desk-shell { min-height: 100vh; display: grid; grid-template: 82px 1fr / 236px 1fr; }
.desk-header { grid-column: 1 / -1; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(6,16,12,.88); backdrop-filter: blur(18px); }
.desk-header-actions { display: flex; align-items: center; gap: 13px; }
.secure-chip { margin-right: 9px; display: flex; align-items: center; gap: 8px; color: #84978f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.secure-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(130,230,184,.5); }
.user-button { height: 42px; padding: 0 13px 0 7px; display: flex; align-items: center; gap: 10px; color: var(--text); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.user-button span { width: 27px; height: 27px; display: grid; place-items: center; color: #082117; background: var(--green); font-size: 9px; font-weight: 800; }
.user-button b { font-size: 11px; font-weight: 630; }
.user-button:hover, .user-button:focus-visible { border-color: var(--line-strong); outline: none; }
.icon-button { width: 42px; height: 42px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 17px; transform: rotate(45deg); }
.icon-button:hover, .icon-button:focus-visible { color: var(--danger); border-color: rgba(255,154,131,.3); outline: none; }
.desk-sidebar { padding: 28px 18px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(5,14,10,.48); }
.desk-sidebar nav { display: grid; gap: 7px; }
.nav-button { width: 100%; height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 12px; color: #82958d; background: transparent; border: 1px solid transparent; text-align: left; font-size: 11px; font-weight: 650; }
.nav-button span { width: 20px; color: #667a72; font-size: 17px; text-align: center; }
.nav-button:hover, .nav-button:focus-visible { color: var(--text); background: rgba(255,255,255,.025); outline: none; }
.nav-button.active { color: var(--text); background: rgba(130,230,184,.07); border-color: rgba(130,230,184,.13); }
.nav-button.active span { color: var(--green); }
.sidebar-foot { margin-top: auto; padding: 18px 14px 2px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.sidebar-foot > span { color: #53675f; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.sidebar-foot strong { display: flex; align-items: center; gap: 8px; color: #9cafA7; font-size: 10px; font-weight: 600; }
.sidebar-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.desk-main { min-width: 0; padding: 52px clamp(28px, 4vw, 64px) 80px; overflow: hidden; }
.workspace { max-width: 1320px; margin: 0 auto; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.workspace-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.workspace-heading h1 { margin: 10px 0 8px; font-size: clamp(37px, 4.6vw, 62px); font-weight: 590; line-height: 1; letter-spacing: -.045em; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.metrics { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--panel-soft); }
.metrics article { min-height: 92px; padding: 20px 23px; display: grid; align-content: space-between; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { color: #71857d; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.metrics strong { font-size: 23px; font-weight: 620; }
.metrics strong.online { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; }
.metrics strong.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(130,230,184,.55); }
.metrics .intake-metric strong { color: #F2A65A; }
.client-toolbar { margin-top: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.client-toolbar > span { flex: 0 0 auto; color: #657970; font-size: 10px; letter-spacing: .06em; }
.search-field { width: min(100%, 560px); position: relative; display: block; }
.search-field span { position: absolute; left: 14px; top: 50%; color: #71857d; font-size: 17px; transform: translateY(-50%); }
.search-field input { padding-left: 42px; }
.toolbar-select { width: min(220px, 30vw); flex: 0 0 auto; gap: 6px; }
.toolbar-select > span { color: #63776e; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.group-dot { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--group-color); box-shadow: 0 0 8px color-mix(in srgb, var(--group-color), transparent 45%); }
.client-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,38,30,.92), rgba(8,22,16,.82)); transition: border-color .18s ease, transform .18s ease; }
.client-card:hover { border-color: rgba(130,230,184,.25); transform: translateY(-2px); }
.client-card.pending-intake { border-color: rgba(242,166,90,.24); background: linear-gradient(145deg, rgba(48,34,19,.78), rgba(8,22,16,.88)); }
.client-card.pending-intake:hover { border-color: rgba(242,166,90,.45); }
.client-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.client-status { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
.client-identity { min-width: 0; }
.client-identity > span { display: block; overflow: hidden; color: var(--green); font-size: 9px; font-weight: 730; letter-spacing: .13em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.client-identity h3 { margin: 8px 0 5px; overflow: hidden; font-size: 18px; font-weight: 620; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.client-identity code { color: #90a49c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.access-badge { flex: 0 0 auto; padding: 6px 8px; display: flex; align-items: center; gap: 6px; color: #c5e7d7; border: 1px solid rgba(130,230,184,.18); background: rgba(130,230,184,.05); font-size: 8px; font-weight: 730; letter-spacing: .08em; text-transform: uppercase; }
.access-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.access-badge.online i { box-shadow: 0 0 10px rgba(130,230,184,.55); }
.access-badge.offline { color: #91a69a; border-color: rgba(145,166,154,.18); background: rgba(145,166,154,.04); }
.access-badge.offline i { background: #70847a; }
.access-badge.unattended { color: #d7c48d; border-color: rgba(227,193,119,.18); background: rgba(227,193,119,.04); }
.access-badge.unattended i { background: var(--gold); }
.access-badge.ondemand { color: #b7a67f; border-color: rgba(227,193,119,.18); background: rgba(227,193,119,.04); }
.access-badge.ondemand i { background: var(--gold); }
.access-badge.pending { color: #f3bd86; border-color: rgba(242,166,90,.28); background: rgba(242,166,90,.07); }
.access-badge.pending i { background: #F2A65A; box-shadow: 0 0 10px rgba(242,166,90,.45); }
.access-badge.companion { color: #99cdb5; border-color: rgba(130,230,184,.2); background: rgba(130,230,184,.035); }
.client-meta { margin-top: 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client-meta div { min-width: 0; display: grid; gap: 5px; }
.client-meta span { color: #5f746b; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.client-meta strong { overflow: hidden; color: #b5c5bf; font-size: 10px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.client-tags { min-height: 24px; margin-top: 17px; display: flex; flex-wrap: wrap; gap: 6px; }
.client-tags span { padding: 4px 7px; color: #82978e; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 8px; letter-spacing: .04em; }
.client-actions { margin-top: 19px; padding-top: 16px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.client-actions button { min-height: 35px; padding: 0 11px; color: #a8bab3; background: transparent; border: 1px solid var(--line); font-size: 9px; font-weight: 690; cursor: pointer; }
.client-actions button:hover, .client-actions button:focus-visible { color: var(--green); border-color: var(--line-strong); outline: none; }
.client-actions .diagnostics-button { color: #06130e; background: var(--green); border-color: var(--green); box-shadow: 0 8px 24px rgba(55,207,145,.12); }
.client-actions .diagnostics-button:hover { color: #06130e; background: #a2f1cd; }
.client-actions .diagnostics-button.reconnecting { color: #c5d6ce; background: rgba(130,230,184,.06); border-color: rgba(130,230,184,.23); box-shadow: none; }
.client-actions .connect-button { color: var(--gold); border-color: rgba(227,193,119,.22); }
.client-actions .connect-button:hover { color: #f0d99e; border-color: rgba(227,193,119,.42); }
.client-actions .review-button { color: #1e1207; background: #F2A65A; border-color: #F2A65A; }
.client-actions .review-button:hover { color: #1e1207; background: #ffc17f; border-color: #ffc17f; }
.client-actions .unattended-button { color: var(--gold); border-color: rgba(227,193,119,.24); }
.client-actions .unattended-button.active { color: var(--green); border-color: rgba(130,230,184,.24); background: rgba(130,230,184,.045); }
.client-actions .edit-button { margin-left: auto; }
.read-only-label { margin-left: auto; color: #657970; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.empty-state { margin-top: 18px; padding: 70px 24px; color: var(--muted); border: 1px dashed var(--line); text-align: center; }
.empty-state > span { color: var(--green); font-size: 35px; }
.empty-state h3 { margin: 14px 0 7px; color: var(--text); font-size: 18px; }
.empty-state p { margin: 0; font-size: 11px; }
.intake-review { margin: 0 0 20px; padding: 16px; border: 1px solid rgba(242,166,90,.23); background: rgba(242,166,90,.055); }
.intake-review > span { display: flex; align-items: center; gap: 8px; color: #F2A65A; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.intake-review > span i { width: 7px; height: 7px; border-radius: 50%; background: #F2A65A; box-shadow: 0 0 10px rgba(242,166,90,.5); }
.intake-review > p { margin: 9px 0 14px; color: #a99c8d; font-size: 10px; line-height: 1.6; }
.intake-review > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 14px; }
.intake-review strong { overflow: hidden; color: #d8c8b5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.intake-review small { color: #73685c; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }

.group-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.group-card { --group-color: var(--green); min-height: 250px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,38,30,.94), rgba(7,20,14,.84)); transition: .18s ease; }
.group-card::before { content: ""; width: 150px; height: 150px; position: absolute; right: -70px; top: -75px; border-radius: 50%; background: var(--group-color); opacity: .08; filter: blur(12px); }
.group-card:hover { border-color: color-mix(in srgb, var(--group-color), transparent 72%); transform: translateY(-2px); }
.all-group-card { background: linear-gradient(145deg, rgba(53,43,20,.55), rgba(12,24,17,.92)); border-color: rgba(227,193,119,.2); }
.all-group-card .group-symbol { box-shadow: 0 10px 30px rgba(227,193,119,.12); }
.intake-group-card { background: linear-gradient(145deg, rgba(57,34,16,.65), rgba(12,24,17,.92)); border-color: rgba(242,166,90,.24); }
.intake-group-card .group-symbol { box-shadow: 0 10px 30px rgba(242,166,90,.14); }
.group-card-top { display: flex; align-items: center; justify-content: space-between; }
.group-symbol { width: 38px; height: 38px; display: grid; place-items: center; color: #07140f; background: var(--group-color); font-size: 18px; font-weight: 800; }
.user-group-card .group-symbol { color: var(--green); background: rgba(130,230,184,.07); border: 1px solid rgba(130,230,184,.2); }
.tier-badge { padding: 5px 7px; color: #8fa49b; border: 1px solid var(--line); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.group-card h2 { margin: 24px 0 9px; font-size: 22px; font-weight: 590; letter-spacing: -.025em; }
.group-card p { margin: 0 0 25px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.group-card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; gap: 7px; border-top: 1px solid var(--line); }
.group-card-foot strong { color: var(--group-color); font-size: 21px; font-weight: 630; }
.group-card-foot span { color: #70847b; font-size: 9px; }
.group-card-foot em { padding: 4px 6px; color: #8fa299; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 7px; font-style: normal; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.group-card-foot em:first-of-type { margin-left: 8px; }
.group-card-foot button { margin-left: 5px; padding: 5px 0; color: var(--green); background: none; border: 0; font-size: 9px; font-weight: 700; cursor: pointer; }
.group-card-foot button:first-of-type { margin-left: auto; }

.policy-layout { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.policy-panel { padding: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(14,34,27,.94), rgba(7,19,14,.86)); }
.policy-heading { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.policy-heading > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(130,230,184,.2); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.policy-heading h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.policy-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.policy-form { margin-top: 24px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; background: rgba(2,10,7,.35); border: 1px solid var(--line); }
.policy-form label:nth-child(3) { grid-column: 1 / -1; }
.policy-form button { grid-column: 1 / -1; justify-content: center; }
.grant-list { margin-top: 17px; display: grid; gap: 7px; }
.grant-row { min-height: 54px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.016); }
.grant-row div { min-width: 0; display: grid; gap: 4px; }
.grant-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.grant-row span { overflow: hidden; color: #71857c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.grant-row em { padding: 5px 7px; color: var(--green); background: rgba(130,230,184,.05); border: 1px solid rgba(130,230,184,.15); font-size: 8px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.grant-row button { color: #71847c; background: none; border: 0; font-size: 18px; cursor: pointer; }
.grant-row button:hover { color: var(--danger); }
.policy-empty { margin: 0; padding: 18px; color: #657970; border: 1px dashed var(--line); font-size: 9px; text-align: center; }

.data-panel { margin-top: 36px; border: 1px solid var(--line); background: var(--panel-soft); }
.mail-oauth-card { min-height: 104px; margin-top: 34px; padding: 17px 19px; display: grid; grid-template-columns: 52px minmax(260px,1fr) minmax(150px,.55fr) auto; align-items: center; gap: 17px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(16,39,30,.9),rgba(7,19,14,.82)); }
.mail-oauth-mark { width: 48px; height: 48px; display: grid; place-items: center; color: #07120e; background: linear-gradient(135deg,#82e6b8,#e3c177); font-size: 21px; font-weight: 800; }
.mail-oauth-copy { min-width: 0; display: grid; gap: 5px; }
.mail-oauth-copy h2 { margin: 0; font-size: 16px; font-weight: 610; }
.mail-oauth-copy p { margin: 0; color: #74887f; font-size: 9px; line-height: 1.5; }
.mail-oauth-state { display: grid; gap: 6px; }
.mail-oauth-state > span { display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.mail-oauth-state > span i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.mail-oauth-state > span.ready { color: var(--green); }
.mail-oauth-state > span.offline { color: var(--danger); }
.mail-oauth-state small { overflow: hidden; color: #687c73; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mail-oauth-actions { flex-wrap: wrap; justify-content: flex-end; }
.copy-field { display: flex; align-items: stretch; }
.copy-field code { min-width: 0; flex: 1; padding: 11px; overflow-wrap: anywhere; color: #b6c7c0; background: rgba(4,14,10,.72); border: 1px solid var(--line); font-family: "SFMono-Regular",Consolas,monospace; font-size: 8px; line-height: 1.45; }
.compact-copy .copy-button { border-left: 0; }
.scope-notice { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; border: 1px solid rgba(130,230,184,.16); background: rgba(130,230,184,.035); }
.scope-notice span { color: #6c8178; font-size: 7px; font-weight: 760; letter-spacing: .12em; }
.scope-notice strong { color: var(--green); font-size: 9px; text-align: right; }
.scope-notice code { color: #a8bcb3; font-family: "SFMono-Regular",Consolas,monospace; font-size: 9px; }
.scope-notice p { grid-column: 1 / -1; margin: 3px 0 0; color: #677b72; font-size: 8px; line-height: 1.5; }
.mfa-preference { padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border: 1px solid rgba(130,230,184,.18); background: linear-gradient(135deg,rgba(130,230,184,.05),rgba(7,19,14,.72)); }
.mfa-preference > div { min-width: 0; display: grid; gap: 4px; }
.mfa-preference span { color: #71877d; font-size: 7px; font-weight: 760; letter-spacing: .12em; }
.mfa-preference strong { color: var(--green); font-size: 12px; }
.mfa-preference small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.mfa-preference .secondary-button { min-width: 108px; }
.form-section-title { margin: 5px 0 -2px; color: #a8bcb3; font-size: 10px; font-weight: 690; letter-spacing: .08em; text-transform: uppercase; }
.section-tabs { margin-top: 34px; display: flex; gap: 7px; border-bottom: 1px solid var(--line); }
.section-tabs button { min-height: 42px; padding: 0 14px; color: #71857d; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 9px; font-weight: 720; letter-spacing: .05em; cursor: pointer; }
.section-tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.section-tabs button span { min-width: 20px; margin-left: 7px; padding: 3px 5px; display: inline-block; color: #07130e; background: var(--green); font-size: 7px; }
.section-tabs + .data-panel { margin-top: 18px; }
.user-row { min-height: 86px; padding: 14px 18px; display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(100px, .7fr) minmax(120px, .8fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-who { min-width: 0; display: flex; align-items: center; gap: 12px; }
.avatar { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; color: #082117; background: var(--green); font-size: 10px; font-weight: 800; }
.user-who div { min-width: 0; display: grid; gap: 4px; }
.user-who strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-who span, .user-cell span { color: #6f837a; font-size: 9px; }
.group-chips { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
.group-chip { padding: 3px 5px; color: #90c5ab !important; background: rgba(130,230,184,.04); border: 1px solid rgba(130,230,184,.12); font-size: 7px !important; font-weight: 700; letter-spacing: .03em; }
.group-chip.muted { color: #71847b !important; border-color: var(--line); }
.group-chip.direct { color: #d1b978 !important; border-color: rgba(227,193,119,.16); background: rgba(227,193,119,.04); }
.user-cell { display: grid; gap: 5px; }
.user-cell strong { color: #b8c8c1; font-size: 10px; font-weight: 580; }
.status-text { align-self: center; color: #89a098; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-text.disabled { color: var(--danger); }
.row-actions { display: flex; gap: 7px; }
.row-actions button { min-height: 32px; padding: 0 9px; color: #99aca4; background: transparent; border: 1px solid var(--line); font-size: 8px; font-weight: 700; cursor: pointer; }
.row-actions button:hover, .row-actions button:focus-visible { color: var(--green); border-color: var(--line-strong); outline: none; }
.audit-row { min-height: 72px; padding: 15px 18px; display: grid; grid-template-columns: 165px minmax(160px, 1fr) minmax(180px, 1.4fr) 120px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row time, .audit-row code { color: #6f837b; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.audit-event { display: grid; gap: 5px; }
.audit-event strong { font-size: 11px; }
.audit-event span, .audit-object { overflow: hidden; color: #82958d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.telemetry-metrics { margin-top: 26px; }
.telemetry-policy { margin: 16px 0 18px; padding: 17px 19px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 17px; border: 1px solid rgba(130,230,184,.18); background: linear-gradient(115deg, rgba(130,230,184,.055), rgba(255,255,255,.012)); }
.telemetry-policy-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #07150f; background: var(--green); font-size: 15px; font-weight: 850; }
.telemetry-policy div { min-width: 0; display: grid; gap: 5px; }
.telemetry-policy strong { font-size: 11px; font-weight: 680; }
.telemetry-policy p { margin: 0; color: #83968e; font-size: 9px; line-height: 1.55; }
.telemetry-policy code { padding: 7px 9px; color: var(--green); border: 1px solid rgba(130,230,184,.16); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; white-space: nowrap; }
.telemetry-toolbar { margin-bottom: 12px; display: flex; align-items: flex-end; gap: 12px; }
.telemetry-toolbar .search-field { flex: 1; }
.telemetry-toolbar > label:last-child { width: 190px; }
.telemetry-panel { margin-top: 0; }
.telemetry-row { min-height: 82px; padding: 15px 18px; display: grid; grid-template-columns: 92px minmax(180px,1.25fr) minmax(160px,1fr) minmax(120px,.7fr) 92px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.telemetry-row:last-child { border-bottom: 0; }
.telemetry-row:hover { background: rgba(255,255,255,.018); }
.telemetry-severity { display: inline-flex; align-items: center; gap: 7px; color: #82958d; font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.telemetry-severity i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px color-mix(in srgb, currentColor, transparent 40%); }
.telemetry-row.error .telemetry-severity { color: var(--danger); }
.telemetry-row.warning .telemetry-severity { color: var(--gold); }
.telemetry-row.info .telemetry-severity { color: var(--green); }
.telemetry-event, .telemetry-device, .telemetry-build { min-width: 0; display: grid; gap: 5px; }
.telemetry-event strong, .telemetry-device strong { overflow: hidden; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.telemetry-event span, .telemetry-device span, .telemetry-build span { overflow: hidden; color: #74877f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.telemetry-build code { overflow: hidden; color: #9eb1a9; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.telemetry-row time { color: #6f837b; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; text-align: right; }

.license-policy { color: var(--gold) !important; font-size: 15px !important; }
.license-toolbar { margin: 28px 0 12px; display: flex; align-items: center; gap: 12px; }
.license-toolbar .search-field { flex: 1; }
.license-notice { margin-bottom: 16px; padding: 13px 16px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 18px; border: 1px solid rgba(227,193,119,.2); background: rgba(227,193,119,.035); }
.license-notice span { color: var(--gold); font-size: 8px; font-weight: 780; letter-spacing: .11em; }
.license-notice p { margin: 0; color: #8d8878; font-size: 9px; line-height: 1.55; }
.compact-notice { margin: 0; grid-template-columns: 105px 1fr; }
.license-grid { display: grid; gap: 15px; }
.license-card { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.014); }
.license-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.license-card > header > div { min-width: 0; display: grid; gap: 6px; }
.license-card h2 { margin: 0; overflow-wrap: anywhere; font-size: 20px; font-weight: 610; line-height: 1.25; }
.license-card header code { color: #6f837a; font-family: "SFMono-Regular",Consolas,monospace; font-size: 8px; }
.license-state, .license-media-state { display: inline-flex; align-items: center; gap: 6px; color: #899d94; font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.license-state { padding: 7px 9px; border: 1px solid var(--line); }
.license-state i, .license-media-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.license-state.active, .license-media-state.active { color: var(--green); }
.license-state.suspended, .license-media-state.pending { color: var(--gold); }
.license-state.cancelled, .license-state.expired, .license-media-state.revoked, .license-media-state.replaced { color: var(--danger); }
.license-facts { margin-top: 20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); }
.license-facts div { min-width: 0; min-height: 64px; padding: 12px 14px; display: grid; align-content: center; gap: 7px; border-right: 1px solid var(--line); }
.license-facts div:last-child { border-right: 0; }
.license-facts span { color: #687c73; font-size: 7px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.license-facts strong { overflow: hidden; color: #c4d3cd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.license-features { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.license-features span { padding: 5px 7px; color: #90bfa8; border: 1px solid rgba(130,230,184,.14); background: rgba(130,230,184,.025); font-size: 7px; font-weight: 720; }
.license-actions { margin-top: 16px; display: flex; gap: 8px; }
.license-media-list { margin-top: 18px; border-top: 1px solid var(--line); }
.license-media-row { min-height: 76px; display: grid; grid-template-columns: 105px minmax(180px,1fr) minmax(130px,.7fr) auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.license-media-row > div:nth-child(2), .license-media-facts { min-width: 0; display: grid; gap: 5px; }
.license-media-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.license-media-row small, .license-media-facts span { overflow: hidden; color: #697d74; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.license-media-facts span { color: #9aada5; }
.license-media-empty { padding: 26px 4px 5px; color: #667a71; font-size: 9px; text-align: center; }

.modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 38px); padding: 0; overflow: auto; color: var(--text); background: #0b1b15; border: 1px solid rgba(130,230,184,.24); box-shadow: var(--shadow); }
.modal.small { width: min(500px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(1,7,4,.76); backdrop-filter: blur(8px); }
.modal > form { padding: 28px; display: grid; gap: 17px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 8px 0 0; font-size: 27px; font-weight: 590; letter-spacing: -.035em; }
.modal-close { width: 34px; height: 34px; flex: 0 0 auto; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 21px; }
.modal-close:hover, .modal-close:focus-visible { color: var(--text); border-color: var(--line-strong); outline: none; }
.modal-copy { margin: -3px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.diagnostics-modal { width: min(1180px, calc(100vw - 32px)); background: #081710; }
.diagnostics-shell { padding: 28px; display: grid; gap: 17px; }
.diagnostics-heading p { margin: 8px 0 0; color: #71867c; font-size: 10px; }
.diagnostics-device { min-height: 104px; padding: 17px; display: grid; grid-template-columns: 52px minmax(180px,.8fr) minmax(460px,1.4fr); align-items: center; gap: 17px; border: 1px solid rgba(130,230,184,.2); background: linear-gradient(115deg, rgba(130,230,184,.065), rgba(3,12,8,.5)); }
.diagnostics-device-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #06140e; background: var(--green); font-size: 25px; font-weight: 800; box-shadow: 0 12px 30px rgba(55,207,145,.13); }
.diagnostics-device > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.diagnostics-device > div:nth-child(2) > span { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 8px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.diagnostics-device > div:nth-child(2) > span.reconnecting { color: var(--gold); }
.diagnostics-device > div:nth-child(2) > span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.diagnostics-device strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostics-device code { color: #71867c; font-family: "SFMono-Regular",Consolas,monospace; font-size: 9px; }
.diagnostics-device dl { margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); }
.diagnostics-device dl div { min-width: 0; min-height: 56px; padding: 10px 12px; display: grid; align-content: center; gap: 6px; border-right: 1px solid var(--line); }
.diagnostics-device dl div:last-child { border-right: 0; }
.diagnostics-device dt { color: #60756c; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.diagnostics-device dd { margin: 0; overflow: hidden; color: #b7c8c0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostics-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 14px; }
.diagnostics-summary, .diagnostics-activity, .diagnostics-actions { padding: 19px; border: 1px solid var(--line); background: rgba(255,255,255,.014); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h3 { margin: 6px 0 0; font-size: 17px; font-weight: 610; }
.panel-heading > span, .panel-heading time { color: #667b72; font-size: 8px; }
.diagnostics-health { padding: 6px 8px; display: flex; align-items: center; gap: 6px; color: var(--gold); border: 1px solid rgba(227,193,119,.18); font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.diagnostics-health i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.diagnostics-health.healthy { color: var(--green); border-color: rgba(130,230,184,.2); }
.diagnostics-health.failed { color: var(--danger); border-color: rgba(255,154,131,.22); }
.diagnostics-summary > p { min-height: 36px; margin: 16px 0; color: #879b92; font-size: 10px; line-height: 1.65; }
.diagnostics-facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.diagnostics-facts div { min-width: 0; padding: 12px; display: grid; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostics-facts div:nth-child(2n) { border-right: 0; }
.diagnostics-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.diagnostics-facts span { color: #61766d; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.diagnostics-facts strong { overflow: hidden; color: #bdccc6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostics-assistant { margin-top: 14px; padding: 13px; display: grid; grid-template-columns: 32px 1fr; gap: 11px; border: 1px solid rgba(130,230,184,.15); background: rgba(130,230,184,.025); }
.assistant-spark { width: 32px; height: 32px; display: grid; place-items: center; color: #07150f; background: var(--green); font-size: 15px; }
.diagnostics-assistant div { display: grid; gap: 4px; }
.diagnostics-assistant strong { font-size: 9px; }
.diagnostics-assistant p { margin: 0; color: #6f837b; font-size: 8px; line-height: 1.5; }
.diagnostics-job-list { max-height: 272px; margin-top: 14px; overflow: auto; border: 1px solid var(--line); }
.diagnostics-job { min-height: 64px; padding: 11px; display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.diagnostics-job:last-child { border-bottom: 0; }
.job-state { display: flex; align-items: center; gap: 6px; color: #85988f; font-size: 7px; font-weight: 720; text-transform: uppercase; }
.job-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.diagnostics-job.succeeded .job-state { color: var(--green); }
.diagnostics-job.failed .job-state, .diagnostics-job.cancelled .job-state, .diagnostics-job.expired .job-state { color: var(--danger); }
.diagnostics-job > div { min-width: 0; display: grid; gap: 5px; }
.diagnostics-job strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostics-job small { color: #687d74; font-size: 7px; }
.diagnostics-job time { color: #64786f; font-family: "SFMono-Regular",Consolas,monospace; font-size: 7px; }
.diagnostics-job pre { grid-column: 1 / -1; max-height: 120px; margin: 2px 0 0; padding: 9px; overflow: auto; color: #a9bbb3; background: #05100b; border: 1px solid var(--line); font: 8px/1.55 "SFMono-Regular",Consolas,monospace; white-space: pre-wrap; }
.risk-chip { padding: 3px 5px; display: inline-block; color: #aabcb4; border: 1px solid var(--line); font-size: 6px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.risk-chip.readonly, .risk-chip.read-only { color: var(--green); border-color: rgba(130,230,184,.2); }
.risk-chip.elevated, .risk-chip.elevated-change, .risk-chip.destructive { color: var(--danger); border-color: rgba(255,154,131,.23); }
.diagnostics-empty { padding: 45px 16px; color: #63786f; font-size: 9px; text-align: center; }
.diagnostics-actions .panel-heading { margin-bottom: 14px; }
.diagnostics-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.diagnostics-action-grid article { padding: 15px; display: grid; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.012); }
.diagnostics-action-grid article.elevated-action { border-color: rgba(255,154,131,.14); }
.diagnostics-action-grid h4 { margin: 0; font-size: 12px; font-weight: 620; }
.diagnostics-action-grid p { margin: 0; color: #71867d; font-size: 8px; line-height: 1.55; }
.diagnostics-action-grid label:not(.check-label) { gap: 5px; font-size: 7px; }
.diagnostics-action-grid input, .diagnostics-action-grid select { height: 36px; padding: 0 10px; font-size: 8px; }
.diagnostics-action-grid button { justify-content: center; }
.diagnostics-footer { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; }
.diagnostics-footer > div { min-width: 0; display: grid; gap: 4px; }
.diagnostics-footer span { color: var(--green); font-size: 8px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.diagnostics-footer small { overflow: hidden; color: #5e746a; font-family: "SFMono-Regular",Consolas,monospace; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check-label { display: flex; align-items: center; gap: 9px; align-self: center; cursor: pointer; }
.check-label input { width: 17px; height: 17px; accent-color: var(--green); }
.modal-actions { padding-top: 7px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; }
.secret-display { padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); background: rgba(3,12,8,.6); }
.secret-display code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; }
.copy-button { min-height: 34px; padding: 0 11px; color: var(--green); background: rgba(130,230,184,.06); border: 1px solid rgba(130,230,184,.2); font-size: 9px; font-weight: 720; }
.copy-button:hover, .copy-button:focus-visible { background: rgba(130,230,184,.12); outline: none; }
.inline-field { display: flex; align-items: stretch; }
.inline-field input { flex: 1; }
.inline-field .text-button { padding: 0 12px; border: 1px solid var(--line); border-left: 0; }
.unattended-modal { width: min(780px, calc(100vw - 32px)); }
.unattended-status { min-height: 92px; padding: 17px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; border: 1px solid rgba(227,193,119,.2); background: linear-gradient(120deg, rgba(227,193,119,.055), rgba(3,12,8,.4)); }
.unattended-status.active { border-color: rgba(130,230,184,.25); background: linear-gradient(120deg, rgba(130,230,184,.075), rgba(3,12,8,.4)); }
.unattended-status-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #171006; background: var(--gold); font-size: 24px; font-weight: 800; }
.unattended-status.active .unattended-status-icon { color: #06140e; background: var(--green); box-shadow: 0 8px 25px rgba(55,207,145,.16); }
.unattended-status > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.unattended-status span { color: var(--gold); font-size: 8px; font-weight: 780; letter-spacing: .13em; }
.unattended-status.active span { color: var(--green); }
.unattended-status strong { overflow: hidden; font-size: 15px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.unattended-status code { color: #758a81; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.unattended-guidance { padding: 19px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.unattended-guidance > div:first-child { display: grid; grid-template-columns: minmax(170px,.7fr) 1.3fr; align-items: start; gap: 20px; }
.unattended-guidance p { margin: 0; color: #8da198; font-size: 10px; line-height: 1.65; }
.unattended-guidance ol { margin: 18px 0 0; padding: 17px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; border-top: 1px solid var(--line); list-style: none; }
.unattended-guidance li { min-width: 0; display: grid; grid-template-columns: 27px minmax(0,1fr); align-items: start; gap: 9px; }
.unattended-guidance li > span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(130,230,184,.18); font-size: 7px; font-weight: 780; }
.unattended-guidance li div { display: grid; gap: 5px; }
.unattended-guidance li strong { font-size: 9px; font-weight: 650; }
.unattended-guidance li small { color: #657a71; font-size: 8px; line-height: 1.5; }
.unattended-editor { padding: 19px; display: grid; gap: 14px; border: 1px solid rgba(130,230,184,.2); background: rgba(130,230,184,.025); }
.unattended-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.unattended-editor-heading h3 { margin: 7px 0 0; font-size: 17px; font-weight: 590; letter-spacing: -.02em; }
.vault-chip { padding: 6px 8px; display: flex; align-items: center; gap: 6px; color: #91a79e; border: 1px solid var(--line); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .05em; }
.vault-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.unattended-password-field { display: flex; align-items: stretch; }
.unattended-password-field input { flex: 1; font-family: "SFMono-Regular", Consolas, monospace; }
.unattended-password-field .text-button { min-width: 62px; padding: 0 12px; border: 1px solid var(--line); border-left: 0; }
.unattended-tools { display: flex; align-items: center; gap: 12px; }
.unattended-tools span { color: #687c73; font-size: 8px; line-height: 1.45; }
.credential-caveat { margin: 0; padding-left: 12px; color: #7f928a; border-left: 2px solid var(--gold); font-size: 9px; line-height: 1.6; }
.group-picker { margin: 0; padding: 14px; border: 1px solid var(--line); }
.group-picker legend { padding: 0 7px; color: #71857d; font-size: 8px; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.group-picker > div { max-height: 230px; overflow: auto; display: grid; gap: 7px; }
.group-choice { padding: 10px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; background: rgba(255,255,255,.018); border: 1px solid var(--line); cursor: pointer; }
.group-choice:has(input:checked) { border-color: rgba(130,230,184,.25); background: rgba(130,230,184,.045); }
.group-choice input { width: 16px; height: 16px; accent-color: var(--green); }
.group-choice span { display: grid; gap: 3px; }
.group-choice strong { color: #c8d7d1; font-size: 10px; }
.group-choice small { overflow: hidden; color: #667a72; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.computer-choice { padding: 9px; display: grid; grid-template-columns: minmax(0,1fr) 112px; align-items: center; gap: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.computer-choice:has(input:checked) { border-color: rgba(227,193,119,.22); background: rgba(227,193,119,.035); }
.computer-choice > label { display: grid; grid-template-columns: 17px minmax(0,1fr); align-items: center; gap: 9px; cursor: pointer; }
.computer-choice input { width: 15px; height: 15px; accent-color: var(--gold); }
.computer-choice label span { min-width: 0; display: grid; gap: 3px; }
.computer-choice label strong { overflow: hidden; color: #c8d7d1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.computer-choice label small { color: #64776f; font-size: 7px; }
.computer-choice select { height: 36px; padding: 0 10px; font-size: 8px; }
.registration-row { min-height: 92px; padding: 16px 18px; display: grid; grid-template-columns: minmax(240px,1.3fr) minmax(180px,.8fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.registration-row:last-child { border-bottom: 0; }
.approval-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.approval-identity > div { min-width: 0; display: grid; gap: 4px; }
.approval-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.approval-identity span:not(.avatar), .approval-identity code { overflow: hidden; color: #72867d; font-family: inherit; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.approval-identity code { color: #91a69d; font-family: "SFMono-Regular", Consolas, monospace; }
.registration-state { min-width: 0; display: grid; gap: 6px; }
.registration-state small { overflow: hidden; color: #63776e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.empty-inline { padding: 56px 20px; color: #6c8077; font-size: 10px; text-align: center; }
.approval-identity + .approval-grid { margin-top: 5px; }
.approval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.release-metrics { margin-top: 24px; }
.release-policy-banner { margin: 28px 0 18px; padding: 18px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 15px; border: 1px solid rgba(227,193,119,.22); background: linear-gradient(115deg,rgba(227,193,119,.07),rgba(130,230,184,.025)); }
.release-policy-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #07100d; background: var(--gold); border-radius: 50%; font-weight: 850; }
.release-policy-banner div { display: grid; gap: 5px; }
.release-policy-banner strong { font-size: 12px; }
.release-policy-banner p { margin: 0; max-width: 760px; color: #80948b; font-size: 9px; line-height: 1.55; }
.release-policy-banner code { padding: 8px 10px; color: var(--gold); border: 1px solid rgba(227,193,119,.16); background: rgba(0,0,0,.18); font-size: 7px; }
.campaign-panel { margin-bottom: 18px; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(7,18,14,.88),rgba(255,255,255,.012)); }
.campaign-panel > .panel-heading { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.campaign-panel > .panel-heading > span { color: #64786f; font-size: 8px; }
.campaign-list { display: grid; }
.campaign-empty { padding: 28px 20px; color: #657970; font-size: 9px; text-align: center; }
.campaign-row { min-height: 94px; padding: 15px 18px; display: grid; grid-template-columns: 92px minmax(180px,.8fr) minmax(150px,.7fr) minmax(260px,1fr) auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.campaign-row:last-child { border-bottom: 0; }
.campaign-state { display: flex; align-items: center; gap: 7px; color: #91a69d; font-size: 7px; font-weight: 780; letter-spacing: .08em; }
.campaign-state i { width: 7px; height: 7px; border-radius: 50%; background: #6c7d76; box-shadow: 0 0 0 4px rgba(108,125,118,.08); }
.campaign-row.active .campaign-state i { background: var(--green); box-shadow: 0 0 0 4px rgba(130,230,184,.09),0 0 16px rgba(130,230,184,.28); }
.campaign-row.cancelling .campaign-state i { background: var(--gold); }
.campaign-identity { min-width: 0; display: grid; gap: 5px; }
.campaign-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-identity small { color: #667a71; font-size: 8px; }
.campaign-progress { height: 5px; overflow: hidden; background: rgba(255,255,255,.05); }
.campaign-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--green),#b8e4d1); transition: width .3s ease; }
.campaign-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.campaign-counts span { display: grid; gap: 3px; color: #62766d; font-size: 7px; text-transform: uppercase; }
.campaign-counts b { color: #c6d7d0; font-size: 12px; }
.campaign-counts .has-failures b { color: var(--danger); }
.campaign-readiness { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); background: rgba(255,255,255,.014); }
.campaign-readiness div { padding: 12px; display: grid; gap: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.campaign-readiness div:nth-child(2n) { border-right: 0; }
.campaign-readiness div:nth-last-child(-n+2) { border-bottom: 0; }
.campaign-readiness span { color: #64786f; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.campaign-readiness strong { overflow: hidden; color: #cedbd6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-warning { padding: 12px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 10px; border: 1px solid rgba(227,193,119,.18); background: rgba(227,193,119,.04); }
.campaign-warning > span { width: 25px; height: 25px; display: grid; place-items: center; color: #10100a; background: var(--gold); border-radius: 50%; font-size: 10px; font-weight: 850; }
.campaign-warning p { margin: 0; color: #8f978b; font-size: 8px; line-height: 1.55; }
.release-grid { display: grid; gap: 14px; }
.release-card { padding: 20px; display: grid; grid-template-columns: minmax(190px,.7fr) minmax(280px,1.2fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(255,255,255,.025),rgba(255,255,255,.008)); }
.release-card.current { border-color: rgba(130,230,184,.24); box-shadow: inset 3px 0 var(--green); }
.release-identity { min-width: 0; display: grid; gap: 6px; }
.release-identity > span { width: max-content; padding: 5px 7px; color: var(--green); border: 1px solid rgba(130,230,184,.16); font-size: 7px; font-weight: 750; letter-spacing: .08em; }
.release-identity strong { font-size: 17px; letter-spacing: -.02em; }
.release-identity small { color: #71857c; font-size: 8px; }
.release-integrity { min-width: 0; display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 8px 12px; }
.release-integrity span { color: #62766d; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.release-integrity code { overflow: hidden; color: #a4b7af; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.release-card-actions { display: grid; justify-items: end; gap: 8px; }
.release-card-actions button { width: 100%; }
.release-card-actions small { color: #657970; font-size: 8px; }
.deployment-integrity { padding: 14px; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.deployment-integrity span { color: #687c73; font-size: 8px; text-transform: uppercase; }
.deployment-integrity strong { font-size: 10px; }
.deployment-integrity code { overflow: hidden; color: var(--gold); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
input[type="color"] { padding: 5px; cursor: pointer; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 40px)); padding: 13px 16px; color: #06110d; background: var(--green); box-shadow: var(--shadow); font-size: 11px; font-weight: 720; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.noscript { position: fixed; inset: auto 0 0; z-index: 30; padding: 15px; color: #280b04; background: var(--danger); text-align: center; }

@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: 1fr 420px; }
  .auth-story { padding-left: 42px; padding-right: 42px; }
  .auth-story h1 { font-size: clamp(54px, 7.5vw, 82px); }
  .client-grid { grid-template-columns: 1fr; }
  .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); }
  .client-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-layout { grid-template-columns: 1fr; }
  .mail-oauth-card { grid-template-columns: 52px 1fr auto; }
  .mail-oauth-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .diagnostics-device { grid-template-columns: 52px 1fr; }
  .diagnostics-device dl { grid-column: 1 / -1; }
  .diagnostics-layout { grid-template-columns: 1fr; }
  .diagnostics-action-grid { grid-template-columns: 1fr 1fr; }
  .release-card { grid-template-columns: 1fr auto; }
  .release-integrity { grid-column: 1 / -1; }
  .campaign-row { grid-template-columns: 82px minmax(170px,1fr) minmax(130px,.8fr); }
  .campaign-counts { grid-column: 2 / -1; }
  .campaign-row > button { grid-column: 3; grid-row: 2; }
}

@media (max-width: 800px) {
  .auth-shell { display: block; }
  .auth-story { min-height: auto; padding: 28px 24px 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-story-copy { padding: 70px 0 44px; }
  .auth-story h1 { font-size: clamp(48px, 13vw, 70px); }
  .auth-story-copy p { font-size: 14px; }
  .auth-panel { min-height: auto; padding: 58px 24px 80px; }
  .desk-shell { grid-template: 72px 1fr / 76px 1fr; }
  .desk-header { padding: 0 18px; }
  .desk-header .brand small, .secure-chip, .user-button b { display: none; }
  .desk-sidebar { padding: 20px 10px; }
  .nav-button { height: 50px; padding: 0; justify-content: center; font-size: 0; }
  .nav-button span { font-size: 19px; }
  .sidebar-foot { padding: 12px 0 0; text-align: center; }
  .sidebar-foot > span, .sidebar-foot strong { font-size: 0; justify-content: center; }
  .desk-main { padding: 40px 22px 70px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  .user-row { grid-template-columns: 1fr auto; }
  .user-row .user-cell { display: none; }
  .row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .audit-row { grid-template-columns: 125px 1fr; }
  .audit-object, .audit-row code { display: none; }
  .telemetry-row { grid-template-columns: 85px minmax(150px,1fr) minmax(140px,1fr) 80px; }
  .telemetry-build { display: none; }
  .registration-row { grid-template-columns: 1fr auto; }
  .registration-state { display: none; }
  .license-media-row { grid-template-columns: 92px 1fr auto; }
  .release-policy-banner { grid-template-columns: 42px 1fr; }
  .release-policy-banner code { grid-column: 1 / -1; }
  .campaign-row { grid-template-columns: 1fr; align-items: stretch; }
  .campaign-counts, .campaign-row > button { grid-column: auto; grid-row: auto; }
  .license-media-facts { display: none; }
  .client-toolbar { flex-wrap: wrap; }
  .search-field { flex: 1 1 420px; }
  .diagnostics-action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-mark { width: 34px; height: 34px; }
  .auth-story { padding-left: 20px; padding-right: 20px; }
  .auth-story-copy { padding-top: 58px; }
  .trust-row { gap: 15px; }
  .auth-panel { padding-left: 20px; padding-right: 20px; }
  .mfa-setup { grid-template-columns: 1fr; }
  .qr-frame { justify-self: center; }
  .recovery-grid { grid-template-columns: 1fr; }
  .desk-shell { display: block; padding-bottom: 69px; }
  .desk-header { height: 70px; }
  .desk-header .brand small { display: none; }
  .desk-sidebar { position: fixed; z-index: 10; inset: auto 0 0; height: 69px; padding: 8px 12px; display: block; border: 0; border-top: 1px solid var(--line); background: rgba(5,15,11,.96); backdrop-filter: blur(16px); }
  .desk-sidebar nav { height: 100%; display: flex; justify-content: flex-start; gap: 5px; overflow-x: auto; }
  .nav-button { width: 64px; height: 52px; }
  .sidebar-foot { display: none; }
  .desk-main { padding: 34px 17px 54px; }
  .workspace-heading h1 { font-size: 40px; }
  .workspace-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .workspace-heading-actions .primary-button, .workspace-heading-actions .secondary-button { width: 100%; justify-content: center; }
  .client-toolbar { align-items: flex-start; flex-direction: column; }
  .search-field { width: 100%; }
  .toolbar-select { width: 100%; }
  .client-card { padding: 19px; }
  .client-meta { grid-template-columns: 1fr 1fr; }
  .client-meta div:last-child { display: none; }
  .client-actions { flex-wrap: wrap; }
  .client-actions .edit-button { margin-left: 0; }
  .user-row { padding: 14px; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .audit-row { grid-template-columns: 1fr; gap: 7px; }
  .audit-row time { order: 2; }
  .telemetry-policy { grid-template-columns: 38px 1fr; }
  .telemetry-policy code { grid-column: 1 / -1; justify-self: start; }
  .telemetry-toolbar { align-items: stretch; flex-direction: column; }
  .telemetry-toolbar > label:last-child { width: 100%; }
  .telemetry-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .telemetry-severity { grid-column: 1; }
  .telemetry-row time { grid-column: 2; grid-row: 1; }
  .telemetry-event, .telemetry-device { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .modal > form { padding: 22px; }
  .modal-actions { grid-template-columns: 1fr 1fr; }
  .modal-actions > span { display: none; }
  .modal-actions .danger-button { grid-column: 1 / -1; }
  .unattended-status { grid-template-columns: 42px minmax(0,1fr); }
  .unattended-status-icon { width: 42px; height: 42px; }
  .unattended-status > button { grid-column: 1 / -1; }
  .unattended-guidance > div:first-child { grid-template-columns: 1fr; gap: 9px; }
  .unattended-guidance ol { grid-template-columns: 1fr; }
  .unattended-tools { align-items: flex-start; flex-direction: column; }
  .approval-grid { grid-template-columns: 1fr; }
  .registration-row { grid-template-columns: 1fr; }
  .mail-oauth-card { grid-template-columns: 44px 1fr; padding: 15px; }
  .mail-oauth-mark { width: 42px; height: 42px; }
  .mail-oauth-state, .mail-oauth-actions { grid-column: 1 / -1; }
  .mail-oauth-actions { justify-content: stretch; }
  .auth-actions, .mfa-preference { grid-template-columns: 1fr; }
  .mfa-preference .secondary-button { width: 100%; }
  .mail-oauth-actions button { flex: 1; }
  .license-toolbar { align-items: stretch; flex-direction: column; }
  .license-notice { grid-template-columns: 1fr; gap: 6px; }
  .license-facts { grid-template-columns: 1fr 1fr; }
  .license-facts div:nth-child(2) { border-right: 0; }
  .license-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .license-actions { flex-wrap: wrap; }
  .license-media-row { padding: 13px 0; grid-template-columns: 1fr; gap: 8px; }
  .license-media-row .row-actions { grid-column: auto; }
  .group-grid { grid-template-columns: 1fr; }
  .group-card { min-height: 220px; }
  .release-card { grid-template-columns: 1fr; }
  .release-card-actions { justify-items: stretch; }
  .campaign-counts { grid-template-columns: repeat(2,1fr); }
  .policy-panel { padding: 19px; }
  .policy-form { grid-template-columns: 1fr; padding: 15px; }
  .policy-form label:nth-child(3), .policy-form button { grid-column: auto; }
  .diagnostics-shell { padding: 20px; }
  .diagnostics-device { grid-template-columns: 42px minmax(0,1fr); }
  .diagnostics-device-mark { width: 42px; height: 42px; }
  .diagnostics-device dl { grid-template-columns: 1fr 1fr; }
  .diagnostics-device dl div:nth-child(2) { border-right: 0; }
  .diagnostics-device dl div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .diagnostics-footer { grid-template-columns: 1fr 1fr; }
  .diagnostics-footer > div { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
