
  :root {
    --background: 213 38% 97%;
    --foreground: 222 45% 12%;
    --card: 0 0% 100%;
    --card-foreground: 222 45% 12%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 45% 12%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 216 65% 95.5%;
    --secondary-foreground: 222 47% 14%;
    --muted: 216 65% 95.5%;
    --muted-foreground: 215 22% 41%;
    --accent: 219 82% 95%;
    --accent-foreground: 224 76% 38%;
    --destructive: 348 54% 46%;
    --destructive-foreground: 0 0% 100%;
    --success: 156 67% 27%;
    --success-soft: 147 44% 94%;
    --warning: 37 89% 29%;
    --warning-soft: 41 100% 94%;
    --border: 215 49% 89%;
    --input: 215 40% 85%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.625rem;

    --glass: rgb(255 255 255 / 0.56);
    --glass-strong: rgb(255 255 255 / 0.8);
    --glass-line: rgb(255 255 255 / 0.85);
    --glass-edge: rgb(36 67 108 / 0.1);
    --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 0.9);
    --glass-blur: blur(20px) saturate(170%);
    --shadow-soft: 0 4px 18px #24436c07, 0 1px 2px #24436c05;
    --shadow-raised: 0 14px 44px #24436c18, 0 2px 7px #24436c0c;
    --glow-blue: #3b82f62e;
    --glow-cyan: #22d3ee1f;
    --glow-amber: #f59e0b14;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 218 52% 14%;
    --card-foreground: 210 40% 98%;
    --popover: 218 52% 13%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 218 60% 12%;
    --secondary-foreground: 210 40% 98%;
    --muted: 218 60% 12%;
    --muted-foreground: 215 30% 72%;
    --accent: 217 52% 21%;
    --accent-foreground: 214 100% 80%;
    --destructive: 348 100% 82%;
    --destructive-foreground: 222.2 84% 4.9%;
    --success: 156 63% 66%;
    --success-soft: 172 47% 13%;
    --warning: 39 82% 69%;
    --warning-soft: 38 26% 15%;
    --border: 216 40% 26%;
    --input: 216 40% 30%;
    --ring: 217.2 91.2% 59.8%;

    --glass: rgb(17 31 55 / 0.5);
    --glass-strong: rgb(14 26 47 / 0.82);
    --glass-line: rgb(255 255 255 / 0.09);
    --glass-edge: rgb(0 0 0 / 0.25);
    --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 0.06);
    --shadow-soft: 0 4px 20px #00000015, 0 1px 2px #00000018;
    --shadow-raised: 0 18px 56px #00000040, 0 2px 8px #00000025;
    --glow-blue: #2563eb40;
    --glow-cyan: #0891b226;
    --glow-amber: #f59e0b12;
  }


@font-face { font-family: Inter; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url('/assets/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root, .dark { --glass: hsl(var(--card)); --glass-strong: hsl(var(--card)); } }
* { box-sizing: border-box; border-color: hsl(var(--border)); }
html, body { min-height: 100%; }
body { margin: 0; color: hsl(var(--foreground)); background-color: hsl(var(--background)); background-repeat: no-repeat; background-attachment: fixed; background-image: radial-gradient(circle at 18% 8%, var(--glow-blue), transparent 42%), radial-gradient(circle at 88% 22%, var(--glow-cyan), transparent 38%), radial-gradient(circle at 62% 96%, var(--glow-amber), transparent 40%); font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1 { font: 600 2rem/1.15 Fraunces, ui-serif, Georgia, serif; letter-spacing: -.025em; }
h2 { font-size: 1.05rem; line-height: 1.3; } h3 { font-size: .92rem; }
p + p { margin-top: .75rem; }
a { color: hsl(var(--primary)); text-underline-offset: 3px; } a:hover { text-decoration: underline; }
button, input { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
[hidden] { display: none !important; }
.glass, .card { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge), var(--shadow-soft); }
.glass-strong, dialog { background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge), var(--shadow-raised); }
.glass-bar { background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 1px 0 var(--glass-edge); }
.card { border-radius: .75rem; overflow: hidden; } .card-body { padding: 1.35rem; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.35rem; }
.muted, .intro, .detail { color: hsl(var(--muted-foreground)); } .detail { font-size: .78rem; } .intro { margin-top: .45rem; } .mono, code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }
code { font-size: .88em; overflow-wrap: anywhere; } p code, li code { padding: .1em .35em; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 4px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.25rem; padding: .45rem .75rem; border: 1px solid hsl(var(--input)); border-radius: .5rem; color: hsl(var(--foreground)); background: hsl(var(--secondary)); text-decoration: none; cursor: pointer; font-size: .875rem; font-weight: 500; }
.button:hover, button:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); text-decoration: none; } button:disabled { opacity: .5; cursor: default; }
.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 6px 16px -6px hsl(var(--primary) / .6); } .primary:hover { background: hsl(var(--primary) / .9); color: hsl(var(--primary-foreground)); }
.secondary { background: hsl(var(--secondary)); } .ghost { background: transparent; border-color: transparent; color: hsl(var(--muted-foreground)); } .danger { color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / .35); background: transparent; } .danger:hover { color: hsl(var(--destructive)); background: hsl(var(--destructive) / .1); } .small { min-height: 2rem; padding: .3rem .6rem; font-size: .77rem; }
input:not([type=checkbox]):not([type=hidden]) { display: block; width: 100%; margin-top: .4rem; padding: .65rem .75rem; color: hsl(var(--foreground)); background: hsl(var(--background) / .7); border: 1px solid hsl(var(--input)); border-radius: .5rem; } input[type=checkbox] { accent-color: hsl(var(--primary)); }
label { font-weight: 500; } .code-input { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem !important; letter-spacing: .16em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; } .stack > * + * { margin-top: .9rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .55rem; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: .72rem; font-weight: 600; white-space: nowrap; } .badge.ready { color: hsl(var(--success)); background: hsl(var(--success-soft)); } .badge.limited { color: hsl(var(--warning)); background: hsl(var(--warning-soft)); }
.nav-count { margin-left: auto; } .approval-list { margin-bottom: 1.75rem; } .approval-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; } .approval-head h2 { margin: 0; } .approval-command { margin: 0; padding: .7rem .8rem; border-radius: .5rem; background: hsl(var(--muted)); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.dot { flex: 0 0 .55rem; width: .55rem; height: .55rem; border-radius: 50%; background: hsl(var(--muted-foreground)); } .dot.ready { background: hsl(var(--success)); } .dot.limited { background: hsl(var(--warning)); }
progress { display: block; width: 100%; height: .4rem; border: 0; border-radius: 999px; overflow: hidden; background: hsl(var(--border)); } progress::-webkit-progress-bar { background: hsl(var(--border)); } progress::-webkit-progress-value { background: hsl(var(--primary)); border-radius: 999px; } progress::-moz-progress-bar { background: hsl(var(--primary)); border-radius: 999px; }
dialog { width: min(30rem, calc(100% - 2rem)); padding: 1.5rem; border-radius: .85rem; color: hsl(var(--foreground)); } dialog::backdrop { background: rgb(0 0 0 / .62); } dialog h2 { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; } dialog p { margin: .8rem 0 1.1rem; } dialog .actions { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: hsl(var(--foreground)); text-decoration: none; } .brand:hover { text-decoration: none; } .brand img { width: 28px; height: 28px; border-radius: .5rem; box-shadow: 0 3px 12px #2563eb22; } .brand-name { font: 600 1.25rem/1 Fraunces, ui-serif, Georgia, serif; letter-spacing: -.025em; } .brand-subtitle { display: block; color: hsl(var(--muted-foreground)); font: 500 .7rem/1.2 Inter, sans-serif; margin-top: .2rem; }
.app-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 15rem; border-right: 1px solid var(--glass-line); display: flex; flex-direction: column; overflow-y: auto; padding: 1.2rem .75rem .8rem; } .sidebar-brand { padding: .15rem .5rem 1.4rem; } .app-nav { display: grid; gap: .2rem; } .app-nav a { display: flex; align-items: center; gap: .65rem; height: 2.25rem; padding: 0 .7rem; border-radius: .5rem; color: hsl(var(--muted-foreground)); text-decoration: none; font-weight: 500; } .app-nav a:hover, .app-nav a[aria-current=page] { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); } .app-nav svg { width: 16px; height: 16px; flex: none; } .sidebar-bottom { margin-top: auto; padding-top: 1rem; } .sidebar-meter { padding: .8rem; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: .7rem; font-size: .75rem; } .sidebar-meter > * + * { margin-top: .45rem; } .meter-heading { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; } .account-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .9rem .25rem .5rem; min-width: 0; } .avatar { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-weight: 600; } .account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; flex: 1; } .account-actions { display: flex; gap: .2rem; flex-basis: 100%; padding-left: 2.25rem; } .sidebar-footer { display: flex; flex-wrap: wrap; gap: .45rem .75rem; padding: .5rem .25rem 0; } .sidebar-footer a { color: hsl(var(--muted-foreground)); font-size: .7rem; }
.mobile-bar, .drawer-backdrop { display: none; } .app-main { margin-left: 15rem; min-height: 100vh; padding: 3rem 2rem; } .content { width: min(100%, 56rem); margin: 0 auto; } .page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; } .content > .card, .content > section { margin-bottom: 1.25rem; } .section > h2 { margin-bottom: .7rem; } .section > .intro, .section > .muted { margin: 0 0 1rem; }
.device-row, .guide-row, .app-row { border-top: 1px solid hsl(var(--border) / .65); padding: 1rem 1.35rem; } .device-top, .guide-top { display: flex; align-items: center; gap: .8rem; } .device-name, .guide-copy { flex: 1; min-width: 0; } .device-name h3 { font-family: 'JetBrains Mono', monospace; overflow-wrap: anywhere; } .device-name p { margin-top: .2rem; } .device-details { padding: .65rem 0 0 1.35rem; } .device-details summary { cursor: pointer; color: hsl(var(--muted-foreground)); font-size: .75rem; } .device-details p { margin: .4rem 0 0; } .card-footer { padding: .85rem 1.35rem; border-top: 1px solid hsl(var(--border) / .65); color: hsl(var(--muted-foreground)); font-size: .78rem; } .rename-form { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin: .8rem 0; } .rename-form label { flex: 1; min-width: 10rem; }
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; } ol.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; min-width: 0; } ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-size: .8rem; font-weight: 600; } ol.steps h3 { margin: .15rem 0 .35rem; font-size: .95rem; } ol.steps .detail { margin: .3rem 0; } ol.steps .endpoint-row { margin: .5rem 0; padding: 0; } ol.steps code { overflow-wrap: anywhere; } details.connect-card > summary { cursor: pointer; list-style: none; } details.connect-card > summary::-webkit-details-marker { display: none; } details.connect-card > summary h2::after { content: " ▸"; color: hsl(var(--muted-foreground)); font-size: .8em; } details.connect-card[open] > summary h2::after { content: " ▾"; } details.connect-card > summary .intro { margin-bottom: 0; } dialog.wide { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; } .guide-tile { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: .5rem; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-size: .72rem; font-weight: 700; } .guide-steps { margin: .8rem 0 0 2.8rem; color: hsl(var(--muted-foreground)); } .guide-steps code { display: block; margin-top: .35rem; } .endpoint-row { display: flex; align-items: center; gap: .7rem; background: hsl(var(--muted)); border-radius: .55rem; padding: .55rem .65rem; margin: 1rem 1.35rem; } .endpoint-row code { flex: 1; } .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .plan-grid .card { margin: 0; } .segment { display: inline-flex; padding: .2rem; border-radius: .55rem; background: hsl(var(--muted)); } .segment button[aria-pressed=true] { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: .7rem 0; border-bottom: 1px solid hsl(var(--border)); } th:last-child, td:last-child { text-align: right; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; } .auth-card { width: min(100%, 29rem); padding: 2rem; overflow: visible; } .auth-card .brand { margin-bottom: 1.75rem; } .auth-card h1 { font-size: 1.65rem; margin-bottom: .65rem; } .auth-card p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; } .auth-card form { margin-top: 1rem; } .auth-card form > button, .auth-card .auth-provider { width: 100%; margin-top: .8rem; } .auth-footer { display: block; margin-top: 1.6rem; color: hsl(var(--muted-foreground)); font-size: .8rem; } .warning-callout { background: hsl(var(--warning-soft)); color: hsl(var(--warning)); border: 1px solid hsl(var(--warning) / .3); border-radius: .6rem; padding: .8rem; margin: 1rem 0; } .device-facts { background: hsl(var(--muted)); border-radius: .6rem; padding: .8rem; } .device-facts div { display: flex; gap: 1rem; justify-content: space-between; } .device-facts dt { color: hsl(var(--muted-foreground)); } .device-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; } .scope-row { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem; margin-top: .5rem; background: hsl(var(--muted)); border-radius: .5rem; } .scope-row input { margin-top: .25rem; } .scope-row span { display: block; color: hsl(var(--muted-foreground)); font-size: .8rem; font-weight: 400; }
.plan-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 1060px) { .plan-grid.three { grid-template-columns: 1fr; } } .plan-card.current { box-shadow: var(--glass-highlight), 0 0 0 2px hsl(var(--primary) / .55), var(--shadow-soft); } .plan-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; } .plan-price-row { display: flex; align-items: baseline; gap: .25rem; } .plan-price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .plan-limit { font-weight: 600; } .plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .875rem; color: hsl(var(--muted-foreground)); } .plan-features li { position: relative; padding-left: 1.4rem; } .plan-features li::before { content: "\2713"; position: absolute; left: 0; color: hsl(var(--success)); font-weight: 700; } .plan-card button { width: 100%; } .save { color: hsl(var(--success)); font-weight: 600; } .segment .save { margin-left: .35rem; font-size: .72rem; } .plans-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; } .plans-note { margin-top: .9rem; } .faq details { border-top: 1px solid hsl(var(--border) / .65); padding: .9rem 1.35rem; } .faq details:first-child { border-top: 0; } .faq summary { cursor: pointer; font-weight: 500; } .faq details p { margin: .5rem 0 0; }
.landing-main { min-height: 100vh; padding: 0 1.25rem 2rem; } .landing { width: min(100%, 64rem); margin: 0 auto; } .landing-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; } .landing-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .875rem; } .landing-nav a { color: hsl(var(--muted-foreground)); } .landing-hero { padding: 3.5rem 0 2.5rem; max-width: 44rem; } .landing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 0; } .landing-hero .intro { font-size: 1.05rem; margin-top: 1rem; } .landing-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 .75rem; } .landing-section { padding: 1.75rem 0; } .landing-section > h2 { margin-bottom: .9rem; } .landing-section > .intro { margin: -.4rem 0 1rem; } .landing-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .landing-steps h3 { margin-bottom: .4rem; } .landing-points { font-size: .95rem; max-width: 46rem; } .landing-footer { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 2rem 0 0; margin-top: 1.5rem; border-top: 1px solid hsl(var(--border) / .65); font-size: .78rem; color: hsl(var(--muted-foreground)); } .landing-footer a { color: hsl(var(--muted-foreground)); } @media (max-width: 767px) { .landing-steps { grid-template-columns: 1fr; } .landing-hero { padding-top: 2rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 767px) { .mobile-bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; padding: .7rem 1rem; border-bottom: 1px solid var(--glass-line); } .app-sidebar { visibility: hidden; transform: translateX(-105%); transition: transform .2s ease, visibility .2s; } .app-sidebar.is-open { visibility: visible; transform: translateX(0); } .drawer-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 15; background: rgb(0 0 0 / .55); } .app-main { margin-left: 0; padding: 2rem 1rem; } .page-head { flex-wrap: wrap; } .device-top { flex-wrap: wrap; } .device-name { min-width: calc(100% - 2rem); } .device-top .actions { margin-left: 1.35rem; } .plan-grid { grid-template-columns: 1fr; } }
