* { box-sizing: border-box }
:root { font: 17px/1.5 var(--ui); background: var(--canvas); color: var(--ink); font-variant-numeric: tabular-nums }
body, figure, dl, dd { margin: 0 }
body { min-height: 100svh; overflow-wrap: anywhere }
h1, h2, h3, p, ul, ol, fieldset { margin: 0 }
h1 { font: 400 clamp(2.15rem, 4.1vw, 3.6rem)/1.09 var(--display); letter-spacing: -.045em }
h2 { font-size: 1.32rem; line-height: 1.22; letter-spacing: -.025em }
h3 { font-size: 1.05rem }
p, small, dt, time { color: var(--muted) }
small { font-size: .85rem }
p { max-width: 72ch }
a { color: var(--accent); text-underline-offset: .2em }
a:hover { text-decoration-thickness: 2px }
svg, img { max-width: 100% }
[hidden] { display: none !important }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.skip:focus { position: fixed; z-index: var(--z-toast); inset: 8px auto auto 8px; width: auto; height: auto; clip-path: none; background: var(--surface); padding: .7rem }
button, input, select, textarea { font: inherit }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .52rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font-weight: 650; line-height: 1.25; cursor: pointer; text-decoration: none; text-align: center; transition: filter var(--fast), transform var(--fast) }
button:hover, .button:hover { filter: brightness(1.13); text-decoration: none }
button:active, .button:active { transform: translateY(1px) }
button:disabled, [aria-disabled=true] { color: var(--muted); background: var(--raised); border-color: var(--rule); cursor: default; filter: none }
.secondary, [data-close], [data-reveal], .net-action { background: var(--surface); color: var(--ink); border-color: var(--control) }
.ghost, .text-action, .auth-alternate, .utilities button { color: var(--accent); background: transparent }
.danger, form:has(input[value=teardown]) button, form:has(input[value=delete-node]) button { background: var(--down); color: var(--canvas) }
[data-waiting]::after { content: ''; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 900ms linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
label { display: grid; gap: .34rem; font-weight: 600 }
input:not([type=checkbox],[type=radio],[type=hidden],[type=color]), select, textarea { width: 100%; min-width: 0; border: 1px solid var(--control); border-radius: var(--radius-sm); color: var(--ink); background: var(--canvas); padding: .62rem .78rem; min-height: 44px }
input:not(:disabled):hover, select:not(:disabled):hover, textarea:not(:disabled):hover { border-color: var(--accent) }
input:disabled, select:disabled { color: var(--muted); background: var(--raised) }
input::placeholder { color: var(--muted) }
input:user-invalid, [aria-invalid=true] { border-color: var(--down) !important }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 20px; height: 20px; margin: 0 }
input[role=switch] { appearance: none; width: 44px; height: 26px; padding: 3px; border: 1px solid var(--control); border-radius: 99px; background: var(--canvas); cursor: pointer }
input[role=switch]::after { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: translate var(--fast) }
input[role=switch]:checked { background: var(--accent) }
input[role=switch]:checked::after { translate: 17px 0; background: var(--on-accent) }
input[type=color] { width: 54px; height: 44px; background: var(--surface); border: 1px solid var(--control) }
form, fieldset { display: grid; gap: var(--space-4); min-width: 0 }
form { justify-items: start }
form > label, form > input, form > fieldset, form > select, form > .password-field, form > .actions { width: 100% }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem }
summary { cursor: pointer; font-weight: 600 }
[role=alert]:not(:empty) { color: var(--down) }
dialog { width: min(460px, calc(100% - 2rem)); max-height: 85svh; padding: var(--space-6); border-radius: var(--radius-lg); color: var(--ink); background: var(--surface); border: 1px solid var(--control); box-shadow: var(--shadow) }
dialog::backdrop { background: #050810b8 }
dialog > * + * { margin-top: var(--space-4) }
table { width: 100%; border-collapse: collapse; text-align: left }
th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--muted); font-size: .86rem }
td, th { padding: .85rem .62rem; border-bottom: 1px solid var(--rule) }
.pill, .wz-state { display: inline-flex; width: fit-content; gap: .45rem; align-items: center; background: var(--raised); color: var(--neutral); padding: .22rem .65rem; border-radius: 20px; font-size: .85rem; font-weight: 650 }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
[data-tone=online], [data-tone=done] { color: var(--ok) }
[data-tone=degraded], [data-tone=replacing], [data-tone=progress] { color: var(--warn) }
[data-tone=down], [data-tone=failed] { color: var(--down) }
[data-tone=provisioning] { color: var(--accent) }
.count, h2 small { font: 650 .86rem var(--ui); vertical-align: middle; border-radius: 6px; padding: .12em .5em; color: var(--ink); background: var(--raised) }
.empty { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; border: 1px dashed var(--control); border-radius: var(--radius) }
.empty svg { color: var(--accent); flex-shrink: 0 }
.empty p, .empty a { font-size: .94rem }
.skeleton { display: block; height: 1rem; width: 8rem; background: linear-gradient(110deg,var(--raised),var(--rule),var(--raised)); background-size: 200%; border-radius: var(--radius-sm); animation: shimmer 1.8s ease infinite }
@keyframes shimmer { to { background-position: -200% 0 } }
.save-note, .account-message, .toast { padding: .7rem 1rem; background: var(--raised); border-inline-start: 3px solid var(--accent); border-radius: var(--radius-sm) }
.copy-feedback:empty { display: none }
.copy-feedback:not(:empty) { position: fixed; inset: auto 1rem 1rem auto; max-width: calc(100% - 2rem); background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius); padding: .8rem 1rem; z-index: var(--z-toast) }
.brand-home, .utilities, .actions, .net-actions, .net-dialog-actions, .setup-actions, .topbar-inner { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap }
.brand-home { color: var(--ink); font-weight: 720; font-size: 1.16rem; letter-spacing: -.045em; text-decoration: none }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: var(--accent); color: var(--on-accent); border-radius: 10px }
.brand-mark img { width: 30px; height: 30px; object-fit: contain }
.utilities { gap: .2rem }
.utilities > * { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; color: var(--secondary); font-weight: 650; text-decoration: none; border-radius: var(--radius-sm) }
.utilities > *:hover, .workspace-rail a:hover { background: var(--raised); color: var(--ink) }
.workspace-rail { width: 235px; position: sticky; top: 0; height: 100svh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.4rem; background: var(--rail); border-right: 1px solid var(--rule); padding: 1.5rem .95rem }
.dashboard:has(.workspace-rail) { display: grid; grid-template-columns: 235px minmax(0,1fr) }
.workspace { min-width: 0 }
.workspace-rail .brand-home { margin: .2rem .4rem .6rem }
.project-picker { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: .62rem .8rem }
.project-picker summary, .project-row, .account-pref, .config-row, .page-heading, .project-heading-actions, .wz-progress-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem }
.project-picker summary small, .project-row small, label small, .account-detail summary small { display: block; font-weight: 400 }
.project-picker div { display: grid; margin-top: .6rem; border-top: 1px solid var(--rule) }
.workspace-rail nav { display: grid; gap: 3px }
.workspace-rail nav a, .project-picker a, .account-link, .rail-footer > a { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .48rem .68rem; border-radius: var(--radius-sm); font-weight: 560; text-decoration: none; color: var(--secondary) }
nav a[aria-current=page] { background: var(--raised); color: var(--accent) }
.rail-footer { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--rule) }
.responsive-menu, .rail-content { height: 100% }
.rail-content { display: flex; flex-direction: column; gap: 1.4rem }
.menu-trigger { display: none }
.responsive-menu:not([open])::details-content { content-visibility: visible; display: contents }

.topbar { border-bottom: 1px solid var(--rule) }
.topbar-inner { max-width: 1420px; margin: auto; min-height: 68px; padding: .6rem clamp(1rem,4vw,3.5rem) }
.topbar .utilities { margin-left: auto }
main { max-width: 1440px; margin: auto; padding: clamp(1.3rem,4.2vw,3.75rem); display: grid; gap: var(--space-5); align-content: start }
main > *, .panel > *, .project-setup > *, .billing-summary > *, .app-pair > *, .net-node > * { min-width: 0 }
.panel, .inventory, .net-node, .project-config, .addon-section, .billing-summary > section, .wz-sheet, .plan-route, .inspector, .net-swap, .net-log, .collection, .account-identity, .account-detail { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: clamp(1rem,2.3vw,1.8rem) }
:is(.panel,.inventory,.project-config,.addon-section,.billing-summary > section,.account-page,.wz,.collection,.inspector,.net-node,.wz-sheet,.setup-questions,.net-swap-body) > * + * { margin-top: var(--space-4) }
.app-pair, .project-setup, .billing-summary, .net-grid, .overview-lower { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4) }
.project-data > div, .net-fields > div, .event-list li, .inventory-row, .addon-row, .account-identity, .net-identity, .net-meta, .net-swap summary, .account-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.project-data > div, .net-fields > div, .event-list li, .inventory-row, .addon-row { padding: .8rem 0; border-bottom: 1px solid var(--rule) }
.project-data dd, .net-fields dd { text-align: end }
.event-list, .net-log ul { list-style: none; padding: 0 }
.event-list li { align-items: start }
.event-list time { font-size: .86rem; flex-shrink: 0 }
.net-meta, .net-identity { justify-content: flex-start }
.net-meta { align-items: start; flex-wrap: wrap }
.net-meta small, .net-meta code, .net-meta time { display: block }
.net-meta > div { flex: 1 1 6rem }
.net-identity h2 small { white-space: nowrap }
.net-bars { display: flex; gap: 2px; margin-block: .4rem }
.net-bars i { width: 5px; height: 18px; background: var(--ok); border-radius: 2px }
.net-bars .fail { background: var(--down) }
.net-region { display: inline-grid; place-items: center; flex-shrink: 0; width: 45px; height: 45px; color: var(--accent); border: 1px solid var(--rule); background: var(--raised); border-radius: 9px; font-weight: 700 }
.net-actions { padding-top: .65rem; border-top: 1px solid var(--rule) }
.net-swap-body > details, .net-evidence { margin-top: 1rem }
.net-timeline, .route-steps { list-style: none; padding: 0 }
.net-timeline li, .route-steps li { position: relative; padding: .5rem 0 .8rem 1.3rem; border-left: 1px solid var(--rule) }
.net-timeline small, .net-timeline time { display: block }
.route-steps li { display: grid; align-items: baseline; grid-template-columns: 1.8rem 1fr auto; padding: .65rem .15rem; border: 0; gap: .6rem }
.route-steps li:not(:last-child)::after { content: ''; position: absolute; top: 2.2rem; bottom: -.75rem; left: .98rem; border-left: 1px solid var(--control) }
.route-steps b { display: grid; place-items: center; color: var(--muted); background: var(--raised); border: 1px solid var(--control); border-radius: 50%; height: 1.65rem; font-size: .8rem }
.route-steps .current b { background: var(--accent); color: var(--on-accent) }
.route-steps .complete b { color: var(--ok) }
.route-steps .failed b { color: var(--down) }
.net-head, .project-heading { display: grid; gap: .65rem }
.section-note, .sample-note { font-size: .9rem }
.sample-note { justify-self: start; padding-inline-start: .7rem; border-inline-start: 2px solid var(--warn) }
.project-row { border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; padding: 1.15rem .4rem }
.project-row:hover, .project-row span { color: var(--accent) }
.archive summary { padding: .7rem 0 }
.project-config form, .account-editor form, .panel form, .addon-section form { max-width: 680px }
.actions, .setup-actions { margin-block: .5rem }
.account-tabs, .auth-modes { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--rule); padding-bottom: .55rem }
.account-tabs a, .auth-modes a { padding: .4rem .68rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--secondary) }
.account-tabs a[aria-current], .auth-modes a[aria-current] { background: var(--raised); color: var(--accent) }
.account-avatar, .setup-check { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: var(--raised); border-radius: 50%; font-weight: 700 }
.account-identity > div { flex: 1 }
.account-identity strong, .account-identity small { display: block }
.account-page > .panel { margin-top: 1.5rem }
.sub-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap }
.sub-info { flex: 1 1 18rem }
.sub-info > * + * { margin-top: .8rem }
.qrbox { display: grid; justify-items: center; gap: .4rem }
img[alt=QR] { background: white; border-radius: var(--radius-sm); padding: 4px }
.new-project, .setup-questions { width: min(100%, 620px); margin: 1rem auto }
.setup-questions fieldset { border: 0; padding: 0 }
.setup-option, .wz-compute label:has([type=checkbox]) { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--control); background: var(--surface); border-radius: var(--radius) }
.setup-option:has(:checked) { border-color: var(--accent); background: var(--raised) }
.plan-route { align-self: start }
.plan-nodes, .plan-node { display: flex; align-items: center; gap: .6rem }
.plan-nodes { margin: 1rem 0 }
.plan-node { background: var(--raised); border-radius: var(--radius-sm); padding: .5rem; flex-wrap: wrap }
.plan-exits { display: grid; gap: .35rem }
.plan-wires { width: 2rem; border-top: 1px solid var(--accent) }
.auth-layout { display: grid; grid-template-columns: 1.15fr 1fr; width: min(1120px,100%); margin: clamp(0px,4vh,42px) auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: clip; background: var(--surface) }
.auth-art, .health-hero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--rail); background-image: radial-gradient(color-mix(in srgb,var(--control) 45%,transparent) .8px,transparent .8px); background-size: 14px 14px }
.auth-art { min-height: 555px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem,3.8vw,3.4rem); border-inline-end: 1px solid var(--rule) }
.auth-art p { font: 400 clamp(2rem,4.5vw,4rem)/1.04 var(--display); letter-spacing: -.055em; color: var(--ink); max-width: 11ch }
.brand-caption { font-weight: 650 }
.auth-art figure { margin-inline: -1rem }
.fiber { width: 100%; color: var(--accent); display: block }
.auth-art figcaption { display: flex; justify-content: space-between; color: var(--secondary); border-top: 1px solid var(--rule); padding-top: .5rem; font-size: .82rem }
.auth-art .fiber polyline:nth-child(9) { stroke-dasharray: 24 640; stroke-width: 3; animation: packet 5s linear infinite }
@keyframes packet { to { stroke-dashoffset: -664 } }
.login { align-self: center; padding: clamp(1.35rem,3.5vw,3rem) }
.login h1 { font-size: clamp(1.85rem,3vw,2.65rem) }
.login > * + *, .new-project > * + * { margin-top: 1.2rem }
.login #auth-form > button { width: 100% }
.password-field { display: grid; gap: .3rem }
.password-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem }
meter { width: 100%; accent-color: var(--accent) }
.signup-path { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style-position: inside; color: var(--muted); font-size: .86rem }
.signup-path li:first-child { color: var(--accent) }
.health-hero { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.1rem,2.6vw,2.3rem) }
.health-hero > .fiber { position: absolute; z-index: -1; top: .5rem; right: -5%; width: 47%; height: 165px; opacity: .76 }
.health-hero h2 { font: 400 clamp(1.85rem,3.9vw,3.4rem)/1.05 var(--display); letter-spacing: -.055em; margin: .65rem 0; max-width: 62% }
.health-hero p { max-width: 63%; color: var(--secondary) }
.metric-band { margin-top: 2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) }
.metric { padding-top: 1rem }
.metric-band > div + div { padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--rule) }
.metric > span { color: var(--secondary) }
.metric > div { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap }
.metric strong { font: 400 clamp(2rem,3.6vw,3.3rem)/1.2 var(--display); letter-spacing: -.05em }
.spark { width: clamp(45px,7vw,96px); color: var(--accent) }
.route-map { list-style: none; display: flex; padding: .5rem 0 0; gap: 1.2rem }
.route-map li { position: relative; flex: 1; min-width: 0 }
.route-map li + li::before { content: '›'; position: absolute; left: -1.2rem; top: 1.2rem; width: 1.2rem; text-align: center; color: var(--accent) }
.station { display: grid; justify-items: start; align-content: start; gap: .2rem; min-height: 105px; background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .72rem; color: var(--ink); text-decoration: none }
.station + .station { margin-top: .4rem }
.station svg { color: var(--accent); margin-bottom: .3rem }
.station[data-tone]::after { content: ''; position: absolute; right: .65rem; top: .7rem; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral) }
.station { position: relative }
.station[data-tone=online]::after { background: var(--ok) }
.station[data-tone=down]::after { background: var(--down) }
.station[data-tone=degraded]::after, .station[data-tone=replacing]::after { background: var(--warn) }
.station-state, .station small { color: var(--secondary); font-size: .85rem }
a.station:hover { border-color: var(--accent) }
.branch { display: block; margin-left: .7rem; padding: .45rem 0 0 .6rem; border-left: 1px solid var(--accent); color: var(--secondary) }
.error-screen { max-width: 44rem; margin: 4vh auto }
.error-screen .error-code { color: var(--accent); font: 400 clamp(4rem,10vw,8rem)/1 var(--display) }
.error-screen > * + * { margin-top: 1rem }
@media (max-width: 900px) {
  .dashboard:has(.workspace-rail) { display: block }
  .workspace-rail { display: block; position: relative; width: 100%; height: auto; padding: .65rem 1rem; border-right: 0; border-bottom: 1px solid var(--rule); overflow: visible }
  .menu-trigger { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; min-height: 38px }
  .responsive-menu:not([open])::details-content { content-visibility: hidden; display: none }
  .responsive-menu:not([open]) .rail-content { display: none }
  .rail-content { padding-block: 1rem .3rem; gap: .8rem }
  .rail-content > .brand-home { display: none }
  .rail-footer { display: flex; flex-wrap: wrap; justify-content: space-between }
  .auth-art { min-height: 480px }
}
@media (max-width: 650px) {
  :root { font-size: 16px }
  main { padding: 1.35rem 1rem 2.5rem }
  .app-pair, .project-setup, .billing-summary, .net-grid, .overview-lower, .auth-layout { grid-template-columns: minmax(0,1fr) }
  .auth-art { min-height: 0; padding: 1.1rem 1.25rem; border-inline-end: 0; border-bottom: 1px solid var(--rule) }
  .auth-art .brand-caption, .auth-art > small, .auth-art figcaption { display: none }
  .auth-art p { font-size: 1.9rem; max-width: 62% }
  .auth-art figure { width: 44%; position: absolute; right: 0; top: 18%; margin: 0 }
  .page-heading, .config-row, .net-swap summary, .inventory-row, .project-heading-actions, .account-identity, .account-pref { flex-wrap: wrap }
  .addon-row { display: grid; grid-template-columns: minmax(0,1fr) auto }
  .addon-row input { flex-shrink: 0 }
  .sub-panel { flex-direction: column; align-items: stretch }
  .sub-info { flex-basis: auto }
  .mobile-table, .mobile-table tbody, .mobile-table tr, .mobile-table td { display: block }
  .mobile-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden }
  .mobile-table tr { border: 1px solid var(--rule); border-radius: var(--radius); margin-block: .7rem; padding: .5rem .7rem }
  .mobile-table td { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: .6rem; padding: .45rem 0 }
  .mobile-table td:last-child { border-bottom: 0 }
  .mobile-table td::before { content: attr(data-label); color: var(--muted); font-size: .88rem }
  .health-hero > .fiber { right: -12%; width: 54%; height: 110px }
  .health-hero p { max-width: 100%; margin-top: 1rem }
  .metric strong { font-size: 1.85rem }
  .metric-band > div + div { padding-inline-start: .65rem }
  .metric > span { font-size: .88rem }
  .route-map { display: grid; grid-template-columns: minmax(0,1fr); gap: .85rem; padding-left: .35rem }
  .route-map li { padding-left: 1.15rem; border-left: 1px solid var(--control) }
  .route-map li::before, .route-map li + li::before { content: ''; position: absolute; left: -4px; top: 1.1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent) }
  .station { min-height: 0; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: .2rem .55rem }
  .station small { grid-column: 2 / -1 }
  .station svg { margin: 0 }
  .station[data-tone]::after { display: none }
  .station-state { padding-inline-end: .25rem }
  .station[data-tone=online] .station-state { color: var(--ok) }
  .station[data-tone=down] .station-state { color: var(--down) }
  .station[data-tone=degraded] .station-state, .station[data-tone=replacing] .station-state { color: var(--warn) }
  .event-list li { flex-wrap: wrap }
  .empty { align-items: start; padding: 1rem }
}

.setup-next { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: 1.1rem }
.setup-next > * + * { margin-top: .8rem }
.setup-next .wz-route { padding-left: 1.4rem }
.setup-next .wz-route li { padding: .25rem 0 }

.metric-band > div { min-width: 0 }
.directory-search { display: flex; align-items: end; gap: .5rem; max-width: 32rem }
.directory-search label { min-width: 0; flex: 1 }
.directory-search button { flex: none }
.logo-remove { display: flex; align-items: center; gap: .5rem }

.quick-search, .home-search { display:flex; align-items:center; justify-content:flex-start; color:var(--muted); background:var(--surface); border:1px solid var(--rule); gap:9px; font-weight:400; }
.quick-search { width:100%; min-height:32px; font-size:.8rem; padding:5px 8px; margin-bottom:14px; }
kbd { margin-inline-start:auto; font:500 .72rem/1.6 var(--ui); background:var(--raised); border:1px solid var(--rule); padding:0 5px; border-radius:4px; }
.dashboard dialog#workspace-search { width:min(540px,92vw); padding:0; margin:15svh auto auto; }
.search-input { display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--rule); }
.search-input input { flex:1; min-width:0; background:transparent; border:none; }
.search-input button { margin:0; min-height:32px; padding:4px 8px; }
.search-results { display:grid; padding:6px; max-height:52svh; overflow:auto; }
.search-results a,.home-links a { display:flex; align-items:center; gap:9px; padding:9px 12px; color:var(--ink); text-decoration:none; }
.search-results a:hover,.search-results a:focus-visible,.home-links a:hover { background:var(--raised); }
.home-devices { margin-top:clamp(28px,5vw,58px); }
.home-devices h2 { margin-bottom:12px; font-size:1.05rem; }
.home-devices a { display:grid; grid-template-columns:20px minmax(0,1.4fr) minmax(60px,.7fr) minmax(80px,1fr); gap:12px; align-items:center; padding:13px 12px; border-top:1px solid var(--rule); color:var(--ink); text-decoration:none; }
.home-devices a:last-child { border-bottom:1px solid var(--rule); }
.home-devices a:hover { background:var(--surface); }
.home-devices strong { font-weight:500; overflow-wrap:anywhere; }
.home-devices :is(svg,span,small) { color:var(--muted); font-size:.85rem; }
.home-devices small { text-align:end; overflow-wrap:anywhere; }
.home-columns {display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:1rem}
.home-columns h2 {margin-bottom:.6rem}
.home-columns .button {margin-top:1rem}
.device-preview {list-style:none;padding:0}
.device-preview li {display:flex;align-items:center;gap:.6rem;padding:.55rem 0}
@media(max-width:768px){.home-columns{grid-template-columns:minmax(0,1fr)}}

.personal-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-4); align-items: start }
#personal-usage { grid-column: 1 / -1 }
.personal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0; border: 0 }
.personal-picker > * + *, .personal-topup > * + * { margin-top: .75rem }
.personal-balance { font: 2rem var(--display); font-variant-numeric: tabular-nums }
.personal-grid .pill { flex-wrap: wrap }
.personal-grid .route-steps li { grid-template-columns: 1.8rem minmax(0, 1fr) }
.personal-grid .route-steps li small:empty { display: none }
.personal-picker pre, .personal-dns { overflow-wrap: anywhere; white-space: pre-wrap }
.personal-dns { padding-inline-start: 1.2em }
#personal-devices .inventory-row { flex-wrap: wrap }
#personal-devices button, #personal-wallet button { white-space: normal }
@media (max-width: 830px) {
  .personal-grid { grid-template-columns: minmax(0, 1fr) }
}

.menu-trigger .tunly-wordmark { width: 5.25rem }
.menu-trigger b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.project-picker .brand-mark { flex: none }
.project-picker summary > span:not(.brand-mark) { flex: 1 }

.rail-legal { flex-basis: 100%; padding: .5rem .68rem; font-size: .85rem; line-height: 1.6 }
label.legal-consent { display: flex; align-items: baseline; gap: .6rem }
.legal-consent input { flex-shrink: 0 }
.public-information { max-width: 48rem }
.public-information section { margin-block: 1.5rem }
