:root {
  color-scheme: light dark;
  --ink: #172b35;
  --ink-soft: #516771;
  --muted: #72858d;
  --line: #dce5e8;
  --line-soft: #eaf0f2;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --canvas: #f2f6f6;
  --brand: #0b756a;
  --brand-dark: #075b54;
  --brand-soft: #e4f5f1;
  --blue: #286a9b;
  --blue-soft: #e8f2f8;
  --green: #18805f;
  --green-soft: #e5f5ed;
  --amber: #ad6710;
  --amber-soft: #fff3dd;
  --red: #b33a4b;
  --red-soft: #fdecef;
  --violet: #7154a5;
  --violet-soft: #f0ebfa;
  --shadow: 0 1px 2px rgba(22, 43, 53, .04), 0 8px 28px rgba(22, 43, 53, .055);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
/* Dark theme: applied automatically when the OS/browser prefers dark and the
   user hasn't explicitly picked light, and unconditionally when they've
   explicitly picked dark via the theme toggle (data-theme attribute). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eef0;
    --ink-soft: #b6c6cc;
    --muted: #8598a0;
    --line: #2b3f47;
    --line-soft: #21343b;
    --surface: #16262d;
    --surface-soft: #1c2f37;
    --canvas: #0f1d23;
    --brand: #29a08c;
    --brand-dark: #3dbfa8;
    --brand-soft: #163832;
    --blue: #6fb3e3;
    --blue-soft: #16303f;
    --green: #4fcf9a;
    --green-soft: #133627;
    --amber: #e3ab55;
    --amber-soft: #3a2c10;
    --red: #ef8b98;
    --red-soft: #3a1c22;
    --violet: #b09be0;
    --violet-soft: #2c2440;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --ink: #e7eef0;
  --ink-soft: #b6c6cc;
  --muted: #8598a0;
  --line: #2b3f47;
  --line-soft: #21343b;
  --surface: #16262d;
  --surface-soft: #1c2f37;
  --canvas: #0f1d23;
  --brand: #29a08c;
  --brand-dark: #3dbfa8;
  --brand-soft: #163832;
  --blue: #6fb3e3;
  --blue-soft: #16303f;
  --green: #4fcf9a;
  --green-soft: #133627;
  --amber: #e3ab55;
  --amber-soft: #3a2c10;
  --red: #ef8b98;
  --red-soft: #3a1c22;
  --violet: #b09be0;
  --violet-soft: #2c2440;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; background: var(--canvas); }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand-light { color: #fff; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: linear-gradient(145deg, #139b8c, #087065); border-radius: 10px; box-shadow: 0 5px 16px rgba(8, 112, 101, .24); }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.supporting { color: var(--ink-soft); line-height: 1.6; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .95fr) minmax(520px, 1.15fr); background: var(--surface); }
.auth-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; padding: 44px clamp(38px, 6vw, 86px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #0a393c 0%, #0a5e59 52%, #08796d 100%); }
.auth-story::before, .auth-story::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.auth-story::before { width: 520px; height: 520px; right: -280px; top: -160px; }
.auth-story::after { width: 400px; height: 400px; left: -250px; bottom: -210px; }
.auth-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0; }
.auth-copy .eyebrow { color: #9fe5d8; }
.auth-copy h1 { margin: 18px 0; color: #fff; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.auth-copy > p { max-width: 510px; color: #d3e6e3; font-size: 18px; line-height: 1.65; }
.feature-list { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; color: #e7f3f1; }
.feature-list li { display: flex; align-items: center; gap: 11px; }
.feature-list li::before { display: grid; width: 22px; height: 22px; place-items: center; content: "✓"; color: #073e3b; background: #9fe5d8; border-radius: 50%; font-size: 12px; font-weight: 900; }
.auth-foot { position: relative; z-index: 1; margin: 0; color: #a9c8c4; font-size: 13px; }
.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-form { width: min(430px, 100%); }
.auth-form h2 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -.035em; }
.auth-mobile-brand { display: none; }
.field { display: grid; gap: 7px; margin: 17px 0; color: var(--ink); font-size: 13px; font-weight: 680; }
.field em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.field input, .field select, .search-field input { min-width: 0; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--surface); transition: border .15s, box-shadow .15s; }
.field input, .field select { width: 100%; min-height: 44px; padding: 10px 12px; }
.field input:focus, .field select:focus, .search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,117,106,.12); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.divider::before, .divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.text-link, .text-button { border: 0; color: var(--brand); background: transparent; font-weight: 700; text-decoration: none; }
.text-link { display: inline-block; margin-top: 20px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; }
.auth-switch .text-link { margin: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Landing / marketing page */
.landing { min-height: 100vh; background: var(--surface); }
.landing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 40px); }
.landing-bar-actions { display: flex; align-items: center; gap: 10px; }
.landing-hero { position: relative; overflow: hidden; padding: 8px clamp(20px, 4vw, 40px) 96px; color: #fff; background: linear-gradient(145deg, #0a393c 0%, #0a5e59 52%, #08796d 100%); }
.landing-pulse { position: absolute; inset: auto 0 0 0; width: 100%; height: 200px; opacity: .5; }
.landing-pulse path { fill: none; stroke: #9fe5d8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(159, 229, 216, .45)); stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: landing-draw-pulse 2.6s cubic-bezier(.22, .9, .32, 1) .2s forwards; }
@keyframes landing-draw-pulse { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .landing-pulse path { animation: none; stroke-dashoffset: 0; } }
.landing-hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 44px auto 0; text-align: center; }
.landing-hero-copy .eyebrow { color: #9fe5d8; }
.landing-hero-copy h1 { margin: 18px 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
.landing-hero-copy > p { max-width: 620px; margin: 0 auto; color: #d3e6e3; font-size: 18px; line-height: 1.65; }
.landing-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; }
.landing-trust-strip { max-width: 560px; margin: 34px auto 0; color: #e7f3f1; font-size: 13px; }
.landing-trust-strip li { justify-content: center; }
.landing-section { max-width: 1180px; margin: 0 auto; padding: 76px clamp(20px, 4vw, 40px); }
.landing-section-heading { max-width: 560px; margin: 0 auto 40px; text-align: center; }
.landing-section-heading h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.landing-feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.landing-feature-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 14px; color: var(--brand); background: var(--brand-soft); border-radius: 11px; font-weight: 800; }
.landing-feature h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.landing-feature p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.landing-section-steps { background: var(--canvas); }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.landing-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.landing-step-index { display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; font: 700 14px ui-monospace, monospace; }
.landing-steps h3 { margin: 0 0 6px; font-size: 15px; }
.landing-steps p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.landing-trust-band { padding: 70px clamp(20px, 4vw, 40px); color: #fff; background: linear-gradient(145deg, #0a393c 0%, #0a5e59 52%, #08796d 100%); }
.landing-trust-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; }
.landing-trust-copy .eyebrow { color: #9fe5d8; }
.landing-trust-copy h2 { margin: 12px 0 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.landing-final-cta { padding: 80px clamp(20px, 4vw, 40px); text-align: center; background: var(--brand-soft); }
.landing-final-cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.landing-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 30px clamp(20px, 4vw, 40px) 44px; color: var(--muted); font-size: 12px; }
@media (max-width: 820px) {
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-trust-band-inner { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 540px) {
  .landing-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .landing-bar-actions { width: 100%; }
  .landing-bar-actions .button { flex: 1; }
  .landing-hero-copy { margin-top: 24px; }
  .landing-cta-row .button { width: 100%; }
}

.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-size: 13px; font-weight: 720; line-height: 1.2; text-decoration: none; transition: transform .12s, background .12s, border-color .12s, box-shadow .12s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 3px 10px rgba(11,117,106,.15); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-secondary:hover, .button-quiet:hover { background: var(--surface-soft); border-color: var(--line); }
.button-quiet { color: var(--ink-soft); background: transparent; border-color: transparent; }
.button-danger { color: #fff; background: var(--red); }
.button-danger-quiet { color: var(--red); background: var(--red-soft); }
.button-wide { width: 100%; }
.button-large { min-height: 46px; padding: 11px 22px; font-size: 14px; }
.button-secondary-light { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.button-secondary-light:hover { background: rgba(255, 255, 255, .18); }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 20px; }

.notice { display: flex; gap: 8px; border: 1px solid; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.notice-info { margin-bottom: 18px; color: var(--blue); background: var(--blue-soft); border-color: var(--line); }
.notice-error { margin: 14px 0; color: var(--red); background: var(--red-soft); border-color: var(--line); }
.notice-success { color: var(--green); background: var(--green-soft); border-color: var(--line); }

.app-shell { min-width: 0; min-height: 100vh; max-width: 100%; padding-left: 252px; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 24px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar-head { padding: 0 8px 22px; }
.workspace-card { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; margin: 0 2px 20px; padding: 13px 14px; background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: 10px; }
.workspace-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label { grid-column: 1/-1; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.role-pill, .status-badge { display: inline-flex; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 780; text-transform: capitalize; }
.role-pill { padding: 3px 7px; color: var(--brand); background: var(--brand-soft); }
.navigation { display: grid; gap: 4px; }
.nav-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; min-height: 42px; border: 0; border-radius: 9px; padding: 8px 11px; color: var(--ink-soft); background: transparent; text-align: left; }
.nav-item:hover { color: var(--ink); background: var(--surface-soft); }
.nav-item.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 760; }
.nav-icon { font-size: 17px; text-align: center; }
.nav-count { min-width: 23px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; text-align: center; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; }
.secure-note { display: flex; align-items: center; gap: 8px; padding: 0 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.secure-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mobile-bar { display: none; }

.main-content { width: min(1440px, 100%); min-width: 0; max-width: 100%; margin: 0 auto; padding: 38px clamp(24px, 4vw, 58px) 70px; }
.page { display: none; }
.page.active { display: block; min-width: 0; max-width: 100%; animation: page-in .18s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(3px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 7px 0 5px; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { display: flex; min-height: 126px; align-items: center; gap: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.stat-card > div:last-child { display: grid; }
.stat-card span { color: var(--ink-soft); font-size: 12px; font-weight: 680; }
.stat-card strong { margin: 2px 0; font-size: 29px; letter-spacing: -.04em; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-weight: 800; }
.stat-icon-blue { color: var(--blue); background: var(--blue-soft); }.stat-icon-green { color: var(--green); background: var(--green-soft); }.stat-icon-amber { color: var(--amber); background: var(--amber-soft); }.stat-icon-violet { color: var(--violet); background: var(--violet-soft); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.content-grid-wide { grid-template-columns: 1.15fr .85fr; }
.card { margin-top: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.content-grid > .card { margin-top: 0; }
.card-header { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 19px; border-bottom: 1px solid var(--line-soft); }
.card-header h2 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 19px; }
.loading-block, .empty-state { padding: 34px 20px; color: var(--muted); text-align: center; }

.health-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.health-item { padding: 16px; background: var(--surface-soft); border-radius: 10px; }
.health-item span { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.health-item strong { display: block; margin-top: 6px; font-size: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }.dot.online { background: var(--green); }.dot.stale { background: var(--amber); }.dot.offline { background: var(--red); }
.health-meter { grid-column: 1/-1; }
.health-meter progress { width: 100%; height: 8px; appearance: none; }
.health-meter progress::-webkit-progress-bar { background: #edf2f3; border-radius: 999px; }.health-meter progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }.health-meter progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.activity-list { padding: 5px 19px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.activity-item:last-child { border-bottom: 0; }
.activity-mark { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 9px; font-size: 12px; font-weight: 850; }
.activity-item strong { display: block; font-size: 12px; }.activity-item span, .activity-item time { color: var(--muted); font-size: 10px; }

.toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); }
.search-field { display: flex; min-width: 230px; flex: 1; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; color: var(--muted); background: var(--surface); }
.search-field input { width: 100%; height: 38px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-soft); border-radius: 9px; }
.segmented button { min-height: 31px; border: 0; border-radius: 7px; padding: 5px 10px; color: var(--ink-soft); background: transparent; font-size: 11px; font-weight: 680; }
.segmented button.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(22,43,53,.1); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 17px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--ink); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.device-row { cursor: pointer; }.device-row:hover { background: var(--surface-soft); }
.table-primary { display: block; color: var(--ink); font-size: 13px; font-weight: 740; }.table-secondary { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-badge { gap: 6px; padding: 5px 8px; }.status-badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; }.status-badge.online { color: var(--green); background: var(--green-soft); }.status-badge.stale { color: var(--amber); background: var(--amber-soft); }.status-badge.offline, .status-badge.failure, .status-badge.revoked { color: var(--red); background: var(--red-soft); }.status-badge.queued, .status-badge.running, .status-badge.active { color: var(--blue); background: var(--blue-soft); }.status-badge.success, .status-badge.used { color: var(--green); background: var(--green-soft); }.status-badge.expired { color: var(--muted); background: var(--surface-soft); }
.status-badge.attention { color: var(--amber); background: var(--amber-soft); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.tag-pill { padding: 2px 8px; color: var(--violet); background: var(--violet-soft); border-radius: 999px; font-size: 10px; font-weight: 720; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 17px 14px; }
.tag-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-soft); background: var(--surface); font-size: 11px; font-weight: 680; }
.tag-chip:hover { border-color: #b8c9ce; background: var(--surface-soft); }
.tag-chip.active { color: var(--brand-dark); background: var(--brand-soft); border-color: transparent; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.device-detail { scroll-margin-top: 20px; }
.detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; background: linear-gradient(100deg, var(--brand-soft), var(--surface)); border-bottom: 1px solid var(--line-soft); }
.device-identity { display: flex; align-items: center; gap: 13px; }
.device-avatar { display: grid; width: 46px; height: 46px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 12px; font-weight: 850; }
.device-identity h2 { margin: 0 0 5px; font-size: 21px; }.device-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line-soft); }
.detail-cell { min-width: 0; padding: 17px 19px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.detail-cell:nth-child(4n) { border-right: 0; }.detail-cell span { display: block; color: var(--muted); font-size: 10px; font-weight: 680; text-transform: uppercase; letter-spacing: .05em; }.detail-cell strong { display: block; overflow: hidden; margin-top: 6px; color: var(--ink); font-size: 13px; text-overflow: ellipsis; }.detail-cell small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.detail-section { padding: 20px; border-bottom: 1px solid var(--line-soft); }.detail-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }.section-heading h3 { margin: 0; font-size: 14px; }.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.chart-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.software-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }.software-summary > div { padding: 14px 16px; background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: 9px; }.software-summary span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }.software-summary strong { display: block; margin-top: 4px; font-size: 20px; }.subsection-title { margin: 18px 0 9px; font-size: 12px; }.inventory-table { max-height: 390px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 9px; }.inventory-table th { position: sticky; z-index: 1; top: 0; }.inventory-table tr:last-child td { border-bottom: 0; }.inventory-details { margin-top: 17px; }.inventory-details summary { cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 720; }.inventory-details[open] summary { margin-bottom: 10px; }.compact-empty { padding: 20px; background: var(--surface-soft); border-radius: 9px; }
.chart-card { min-width: 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; }.chart-card-head { display: flex; justify-content: space-between; gap: 10px; }.chart-card-head span { color: var(--ink-soft); font-size: 11px; }.chart-card-head strong { font-size: 13px; }.chart-svg { display: block; width: 100%; height: 115px; margin-top: 7px; overflow: visible; }.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }.chart-area { opacity: .2; }.chart-axis { stroke: var(--line); stroke-width: 1; }.chart-times { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

.platform-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.platform-card { display: flex; min-height: 350px; flex-direction: column; gap: 18px; padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }.platform-card h2 { margin: 5px 0 8px; font-size: 20px; letter-spacing: -.025em; }.platform-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }.platform-kicker { color: var(--muted); font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .07em; }.platform-logo { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; font-size: 24px; font-weight: 800; }.platform-logo.windows { color: var(--blue); background: var(--blue-soft); }.platform-logo.linux { color: var(--amber); background: var(--amber-soft); }.platform-logo.apple { color: var(--ink-soft); background: var(--surface-soft); }.platform-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.account-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.summary-tile { padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }.summary-tile span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.summary-tile strong { display: block; margin-top: 6px; font-size: 15px; }
.settings-list { display: grid; gap: 0; }.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.settings-row:last-child { border-bottom: 0; }.settings-row strong { display: block; font-size: 12px; }.settings-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.settings-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.code-block { display: block; overflow: auto; margin: 12px 0; padding: 12px; color: #d7ece8; background: #17383c; border-radius: 8px; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.recovery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 14px 0; }.recovery-code { padding: 9px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font: 12px ui-monospace, monospace; text-align: center; }
.qr-code { display: block; width: 220px; max-width: 100%; margin: 10px auto 16px; border: 8px solid #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(22,43,53,.12); }

.modal { width: min(500px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(5,31,36,.3); }.modal::backdrop { background: rgba(13,37,43,.48); backdrop-filter: blur(2px); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 21px 16px; border-bottom: 1px solid var(--line-soft); }.modal-header h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.025em; }.modal-body { padding: 4px 21px 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 21px 20px; }.modal .notice-error { margin: 0 21px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; width: min(380px, calc(100% - 40px)); gap: 8px; }.toast { padding: 13px 15px; color: #fff; background: #17383c; border-radius: 10px; box-shadow: 0 10px 32px rgba(5,31,36,.25); font-size: 12px; animation: toast-in .2s ease-out; }.toast.error { background: #8d2637; }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 0; }
  .detail-grid { grid-template-columns: repeat(2,1fr); }.detail-cell:nth-child(4n) { border-right: 1px solid var(--line-soft); }.detail-cell:nth-child(2n) { border-right: 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .software-summary { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .auth-shell { display: block; min-height: 100vh; }.auth-story { display: none; }.auth-panel { min-height: 100vh; padding: 28px 20px; }.auth-mobile-brand { display: inline-flex; position: absolute; top: 24px; left: 24px; }
  .app-shell { padding: 64px 0 0; }.mobile-bar { position: fixed; z-index: 25; inset: 0 0 auto; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }.sidebar { width: min(292px, calc(100vw - 44px)); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 35px rgba(8,38,43,.16); }.app-shell.menu-open .sidebar { transform: translateX(0); }.main-content { padding: 27px 14px 55px; }
  .content-grid, .content-grid-wide { grid-template-columns: 1fr; }.account-summary { grid-template-columns: 1fr; }.page-heading { align-items: flex-start; flex-direction: column; }.toolbar { align-items: stretch; flex-direction: column; }.search-field { min-width: 0; }.segmented { align-self: flex-start; }.health-grid { grid-template-columns: 1fr; }.health-meter { grid-column: auto; }
  .table-wrap, .inventory-table { max-width: 100%; max-height: none; overflow: visible; border: 0; }.table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; min-width: 0; }.table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }.table-wrap tbody { display: grid; gap: 10px; padding: 10px; }.table-wrap tr { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }.table-wrap td { display: grid; grid-template-columns: minmax(82px,.36fr) minmax(0,1fr); align-items: start; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }.table-wrap td:last-child { border-bottom: 0; }.table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.table-wrap td[colspan] { display: block; }.table-wrap td[colspan]::before { content: none; }.table-wrap .row-actions { min-width: 0; justify-content: flex-start; flex-wrap: wrap; }.table-wrap .button { max-width: 100%; }.device-row { box-shadow: 0 1px 2px rgba(22,43,53,.04); }
}
@media (max-width: 540px) {
  .main-content { width: 100%; padding-right: 10px; padding-left: 10px; }.page-heading h1 { overflow-wrap: anywhere; }.card, .detail-section, .card-body { min-width: 0; max-width: 100%; }.stat-grid { grid-template-columns: 1fr; }.stat-card { min-height: 105px; }.detail-grid { grid-template-columns: 1fr; }.detail-cell, .detail-cell:nth-child(2n), .detail-cell:nth-child(4n) { border-right: 0; }.detail-cell strong, .detail-cell small { white-space: normal; overflow-wrap: anywhere; }.detail-hero, .section-heading, .settings-row { align-items: flex-start; flex-direction: column; }.detail-actions, .settings-actions { width: 100%; }.detail-actions .button { flex: 1 1 auto; }.segmented { width: 100%; overflow: hidden; }.segmented button { min-width: 0; flex: 1; padding-inline: 6px; }.platform-actions .button { width: 100%; }.account-summary { gap: 9px; }.recovery-grid { grid-template-columns: 1fr; }.modal-actions { flex-direction: column-reverse; }.modal-actions .button { width: 100%; }
}
/* Device management panels also fit narrow screens. */
.history-options { flex-wrap: wrap; }
.terminal-dialog { width: min(960px, calc(100vw - 32px)); max-width: 960px; padding: 24px; }
.terminal-dialog .modal-header { padding: 0 0 12px; }
.terminal-dialog h2 { overflow-wrap: anywhere; }
.terminal-output { background: #101b26; color: #d9f2e8; min-height: 240px; height: 45vh; max-height: 500px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border-radius: 10px; font: 13px/1.5 ui-monospace, monospace; }
.field textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; color: var(--ink); background: var(--surface); }
.terminal-dialog textarea { font: 14px/1.5 ui-monospace, monospace; }
.terminal-dialog .modal-actions { padding: 12px 0 0; gap: 16px; }
