@import url("/tokens.css");

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.55 var(--font); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #927ffc; outline-offset: 3px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-weight: 750; letter-spacing: -.043em; }
h2 { font-weight: 710; letter-spacing: -.028em; }
h3 { letter-spacing: -.012em; }
input, select { min-width: 0; }
svg.icon { width: 19px; height: 19px; flex: none; }
.skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; transform: translateY(-200%); background: white; padding: 9px 14px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.initial { min-height: 100vh; display: grid; place-content: center; gap: 9px; text-align: center; }
.initial img { margin: auto; }
.muted { color: var(--muted); }
.break { overflow-wrap: anywhere; }
.small { font-size: .86rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .87em; }
.danger-text { color: var(--danger); }
.label { color: var(--muted); font-weight: 680; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.space { justify-content: space-between; }
.stack { display: grid; gap: 15px; }
.stack-large { display: grid; gap: 24px; }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: white; font-weight: 650; line-height: 1.24; text-align: center; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); color: white; }
.btn.outline { border-color: var(--line); background: white; color: var(--ink); }
.btn.outline:hover { background: var(--surface-soft); color: var(--accent-dark); border-color: #c9bfff; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { background: #ad2c42; }
.btn.danger:hover { background: #881c30; }
.btn.danger.outline { border-color: #efc8cf; background: white; color: var(--danger); }
.btn.danger.outline:hover { background: #fff2f4; }
.btn.small-btn { min-height: 34px; font-size: .83rem; padding: 6px 10px; border-radius: 7px; }
.btn.icon-btn { width: 39px; min-height: 39px; padding: 0; }
.btn.light-btn { background: #f0edff; color: #4b2eb9; }
.btn.light-btn:hover { background: #e5ddff; }
.text-link { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 650; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 770; letter-spacing: -.045em; }
.brand img { display: block; width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #eef0f5; color: #444b60; font-size: .75rem; font-weight: 660; white-space: nowrap; line-height: 1; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.purple { color: #502ec7; background: #efe9ff; }
.pill.green { color: #116b48; background: #e1f6eb; }
.pill.amber { color: #80510e; background: #fff2d8; }
.pill.red { color: #a82d45; background: #ffe9ee; }
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); }
.icon-tile.neutral { color: #58627c; background: #eef0f7; }
.icon-tile.green { color: #176948; background: #e7f6ef; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid #ded4ff; color: #4f3698; background: #f3efff; font-size: .9rem; }
.callout strong { font-weight: 720; }
.callout.error { color: #98263c; border-color: #f0c7ce; background: #fff1f3; }
.callout.success { color: #166342; border-color: #c9ebd9; background: #edf9f2; }
.callout.neutral { color: #4c5670; border-color: var(--line); background: #f5f6fb; }

.public { background: #fbfbfe; min-height: 100vh; }
.public-header { max-width: 1250px; padding: 23px 35px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.public-nav { display: flex; align-items: center; gap: 24px; }
.public-nav > a:not(.btn) { font-weight: 640; color: #525b73; }
.public-nav > a:not(.btn):hover { color: var(--accent); }
.landing { max-width: 1250px; padding: 0 35px; margin: auto; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(30px, 6.2vw, 96px); min-height: 535px; padding: 36px 0 55px; }
.hero-copy > .pill { padding: 8px 12px; }
.hero-copy > h1 { font-size: clamp(2.65rem, 5.15vw, 5.55rem); line-height: .98; margin: 20px 0; }
.hero-copy > h1 span { display: block; color: var(--accent); }
.hero-copy > p { max-width: 460px; font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--muted); line-height: 1.67; }
.hero-copy .row { margin-top: 26px; }
.hero-copy .btn { padding-inline: 18px; min-height: 48px; }
.hero-copy .hero-note { margin-top: 17px; font-size: .82rem; display: flex; align-items: center; gap: 7px; }
.hero-note .icon { width: 15px; height: 15px; }
.hero-art { position: relative; isolation: isolate; min-height: 440px; display: grid; place-items: center; border: 1px solid #ded7fa; border-radius: 27px; overflow: hidden; background: radial-gradient(ellipse at 65% 48%, #c9b6ff, #e5dfff 54%, #f1edff 80%); }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .52; background-image: linear-gradient(#d2c6fa 1px, transparent 1px), linear-gradient(90deg, #d2c6fa 1px, transparent 1px); background-size: 29px 29px; mask-image: radial-gradient(ellipse, #0008, #000); }
.hero-art::after { content: ""; position: absolute; z-index: -1; width: 335px; height: 335px; border: 1px solid #ffffffad; border-radius: 50%; box-shadow: 0 0 0 30px #ffffff45, 0 0 0 70px #ffffff29; }
.art-phone { position: relative; width: clamp(155px, 16vw, 205px); aspect-ratio: .51; padding: 8px; border-radius: 30px; background: #24203a; box-shadow: 0 24px 42px #33216566, inset 0 0 0 2px #504768; transform: rotate(-9deg) translate(0, -3px); }
.art-screen { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: 23px; background: radial-gradient(ellipse at 85% 48%, #e2adfd, transparent 58%), linear-gradient(143deg, #1c1a48 5%, #4c3997 39%, #7657d8 68%, #27205b 95%); color: white; }
.art-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 33px; height: 8px; border-radius: 10px; background: #24203a; transform: translateX(-50%); }
.art-screen::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 49px; height: 3px; border-radius: 4px; transform: translateX(-50%); background: #ffffffcc; }
.art-time { position: absolute; top: 19%; left: 13%; font-size: clamp(1.38rem, 3vw, 2.45rem); letter-spacing: -.07em; font-weight: 680; line-height: 1; }
.art-time span { display: block; font-size: .65rem; margin-top: 6px; letter-spacing: .025em; opacity: .9; }
.art-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: absolute; bottom: 12%; left: 9%; right: 9%; }
.art-apps i { aspect-ratio: 1; display: grid; place-items: center; color: #292544; background: #f7edff; border-radius: 8px; }
.art-apps i:nth-child(2) { background: #c2f1dc; color: #165742; }
.art-apps i:nth-child(3) { background: #dcd6ff; color: #3b2f84; }
.art-apps i:nth-child(4) { background: #ffebd9; color: #754421; }
.art-apps .icon { width: 55%; height: 55%; }
.art-card { display: flex; gap: 10px; align-items: center; position: absolute; padding: 11px 15px; width: max-content; max-width: 52%; background: #fffffff2; border: 1px solid white; border-radius: 13px; box-shadow: 0 12px 30px #3d2b7e22; color: var(--ink); }
.art-card strong, .art-card small { display: block; line-height: 1.25; }
.art-card small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.art-card .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.art-card.top { top: 22%; right: 6%; }
.art-card.bottom { bottom: 18%; left: 6%; }
.landing-features { margin: 0 0 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 17px; background: white; }
.landing-feature { display: flex; gap: 14px; padding: 24px 23px; }
.landing-feature + .landing-feature { border-left: 1px solid var(--line); }
.landing-feature h2 { font-size: 1rem; margin: 2px 0 7px; }
.landing-feature p { color: var(--muted); font-size: .85rem; }
.public-footer { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; max-width: 1250px; margin: auto; padding: 22px 35px 33px; color: var(--muted); font-size: .85rem; }
.public-footer .brand { font-size: 17px; }
.public-footer .brand img { width: 25px; height: 25px; }
.public-footer nav { display: flex; gap: 20px; }
.public-footer nav a { color: var(--muted); }
.auth-page { max-width: 1080px; margin: 28px auto 55px; padding: 0 35px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; min-height: 545px; }
.auth-page .hero-art { min-height: 500px; }
.auth-content { max-width: 420px; width: 100%; margin: auto; }
.auth-content h1, .text-page h1 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 12px 0 9px; }
.auth-content > p { margin: 0 0 24px; color: var(--muted); }
.auth-content .switch { margin: 18px 0 0; font-size: .9rem; }
.auth-content .form .btn { width: 100%; }
.text-page { max-width: 835px; margin: 20px auto 70px; padding: 30px 35px; min-height: 50vh; }
.prose { display: grid; gap: 15px; color: #414963; font-size: 1rem; }
.prose h2 { margin-top: 16px; color: var(--ink); font-size: 1.35rem; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 30px; padding: 23px 17px 15px; }
.sidebar .brand { margin: 0 8px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav .label { padding: 0 10px 7px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 5px 10px; border-radius: 8px; color: #535d75; font-weight: 620; }
.sidebar-nav a:hover { color: var(--accent); background: #f9f7ff; }
.sidebar-nav a[aria-current] { color: var(--accent-dark); background: var(--accent-soft); }
.sidebar-nav .chevron { margin-left: auto; width: 15px; height: 15px; }
.sidebar-bottom { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.sidebar-foot > div { line-height: 1.3; min-width: 0; flex: 1; }
.sidebar-foot strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .84rem; }
.sidebar-foot small { color: var(--muted); font-size: .72rem; }
.sidebar-foot .btn { padding-inline: 5px; min-height: 32px; color: var(--muted); }
.sidebar-foot .btn .icon { width: 15px; height: 15px; }
.avatar { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #483197; background: #e9e1ff; font-weight: 760; flex: none; }
.main-col { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(20px, 3.2vw, 43px); }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.crumb b { color: var(--ink); font-weight: 660; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb .icon { width: 15px; height: 15px; }
.topbar a.avatar { color: #483197; }
.dashboard { max-width: 1390px; margin: auto; padding: 31px clamp(20px, 3.2vw, 43px) 45px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 22px; }
.page-title h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); overflow-wrap: anywhere; }
.page-title p { color: var(--muted); margin-top: 6px; }
.page-title-actions { justify-content: flex-end; flex: none; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 19px; }
.panel h2 { font-size: 1.15rem; }
.panel h3 { font-size: .95rem; }
.panel-head { margin-bottom: 14px; }
.panel-head p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat strong { display: block; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.03em; }
.stat span:not(.icon-tile) { color: var(--muted); font-size: .8rem; }
.section-head { margin-bottom: 13px; }
.section-head h2 { font-size: 1.16rem; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.device-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 13px; border: 1px solid var(--line); background: white; min-width: 0; transition: border-color .15s; }
.device-card:hover { border-color: #c6b6ff; }
.device-card-top { position: relative; background: radial-gradient(ellipse at 64% 43%, #d8cbff, #f2edff 58%, #f7f4ff 100%); min-height: 124px; display: grid; place-items: center; overflow: hidden; }
.device-card-top::before { content: ""; width: 140px; height: 140px; border: 1px solid #ffffffc2; border-radius: 50%; box-shadow: 0 0 0 14px #ffffff45, 0 0 0 29px #ffffff36; position: absolute; }
.device-card-top .art-phone { width: 50px; border-radius: 10px; padding: 3px; box-shadow: 0 8px 12px #33216555, inset 0 0 0 1px #504768; }
.device-card-top .art-screen { border-radius: 7px; }
.device-card-top .art-screen::before { width: 12px; height: 3px; top: 3px; }
.device-card-top .art-screen::after { width: 15px; height: 1px; bottom: 2px; }
.device-card-top > .pill { position: absolute; top: 11px; right: 11px; }
.device-card-body { flex: 1; display: grid; gap: 13px; padding: 13px 14px 14px; }
.device-card-body h3 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.device-card-body p { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.device-card-actions { display: flex; gap: 7px; align-items: center; }
.device-card-actions .btn { flex: 1; }
.device-card-actions .btn.icon-btn { flex: none; }
.device-empty { display: grid; justify-items: center; text-align: center; padding: 45px 20px; gap: 9px; border: 1px dashed #d1cbed; border-radius: 14px; background: #fcfbff; }
.device-empty .icon-tile { height: 51px; width: 51px; border-radius: 15px; }
.device-empty h3 { margin-top: 5px; font-size: 1.15rem; }
.device-empty p { color: var(--muted); max-width: 340px; }
.device-empty .btn { margin-top: 6px; }
.quota-meter { display: grid; gap: 7px; }
progress { display: block; width: 100%; height: 7px; appearance: none; overflow: hidden; border: 0; border-radius: 999px; background: #efedf7; color: var(--accent); }
progress::-webkit-progress-bar { background: #efedf7; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

.device-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr); gap: 16px; align-items: start; }
.console { min-width: 0; border-radius: 13px; overflow: hidden; background: #161426; border: 1px solid #242037; color: white; }
.console-top, .console-tools { min-height: 47px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; color: #eeebfb; background: #211d35; }
.console-top { justify-content: space-between; }
.console-title { font-weight: 650; }
.console-tools { justify-content: center; flex-wrap: wrap; }
.console .btn { color: #f1edfd; background: #342d4d; border-color: #423a5f; white-space: normal; }
.console .btn:hover { background: #463a6c; }
.console .btn.connect { background: #7757ea; color: white; border-color: transparent; }
.console .btn.connect:hover { background: #6947df; }
.console-stage { display: grid; place-items: center; min-height: 462px; padding: 14px; background: radial-gradient(ellipse at center, #292240, transparent 67%); }
.console-placeholder { text-align: center; display: grid; justify-items: center; gap: 10px; max-width: 280px; color: #c6bfd7; }
.console-placeholder .icon-tile { color: #d7c9ff; background: #34294f; height: 48px; width: 48px; }
.console-placeholder h2 { color: white; margin-top: 3px; font-size: 1.16rem; }
.console-placeholder p { font-size: .85rem; }
.console:fullscreen { display: flex; flex-direction: column; justify-content: space-between; border: 0; border-radius: 0; }
.console:fullscreen .console-stage { flex: 1; min-height: 0; }
.console:fullscreen .sim-phone:not(.landscape) { height: min(730px, 76vh); width: auto; }
.sim-phone { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 10px; width: min(100%, 226px); aspect-ratio: 9 / 17; user-select: none; touch-action: none; overflow: hidden; border-radius: 24px; border: 5px solid #29263d; box-shadow: 0 0 0 1px #46405e; color: #fff; background: radial-gradient(ellipse at 90% 45%, #c58ff0, transparent 59%), linear-gradient(137deg, #242253 3%, #4e3793 44%, #7152d4 68%, #332267 95%); }
.sim-phone.landscape { width: min(100%, 465px); aspect-ratio: 17 / 9; }
.sim-status { display: flex; justify-content: space-between; font-size: .62rem; font-weight: 700; line-height: 1; }
.sim-status .icon { width: 12px; height: 12px; }
.sim-content { display: grid; min-height: 0; align-content: start; gap: 6px; padding: 15px 4px 0; }
.sim-home { grid-template-rows: minmax(0, 1fr) auto; }
.sim-clock { margin-top: 10%; line-height: 1; font-size: 2rem; letter-spacing: -.06em; font-weight: 680; }
.sim-clock small { display: block; margin-top: 5px; font-size: .62rem; letter-spacing: 0; }
.sim-app-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; text-align: center; }
.sim-app { min-width: 0; display: grid; justify-items: center; align-content: start; border: 0; background: transparent; color: inherit; padding: 4px 1px; gap: 3px; font-size: .59rem; overflow-wrap: anywhere; }
.sim-app:hover { background: #ffffff26; border-radius: 10px; }
.sim-app .icon-tile { width: 30px; height: 30px; border-radius: 9px; }
.sim-app .icon { width: 15px; height: 15px; }
.sim-content:not(.sim-home) { background: #2e254bde; border-radius: 10px; margin-top: 8px; padding: 10px 7px; }
.sim-content h3 { font-size: .9rem; }
.sim-content li, .sim-content p { font-size: .69rem; color: #eee4ff; }
.sim-content ul { padding-left: 15px; margin: 0; }
.sim-handle { width: 43px; border: 0; height: 11px; background: linear-gradient(#ffffffd9, #ffffffd9) center/100% 3px no-repeat; border-radius: 9px; margin: 3px auto 0; }
.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0f6; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 610; overflow-wrap: anywhere; }
.activity { list-style: none; display: grid; gap: 0; padding: 0; margin: 0; }
.activity li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 10px 0; }
.activity li:last-child { padding-bottom: 0; }
.activity strong { display: block; }
.activity p { font-size: .82rem; margin-top: 2px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.account-grid .wide { grid-column: 1 / -1; }
.tabs { display: flex; gap: 4px; padding: 4px; overflow: auto; background: #eff0f7; border-radius: 9px; justify-self: start; max-width: 100%; }
.tabs a { color: #565d73; border: 1px solid transparent; border-radius: 7px; padding: 7px 10px; font-weight: 650; font-size: .86rem; white-space: nowrap; }
.tabs a[aria-current] { color: var(--accent-dark); background: white; border-color: var(--line); }
.table-wrap { min-width: 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .74rem; letter-spacing: .035em; white-space: nowrap; background: #f8f8fc; }
th:first-child, td:first-child { padding-left: 10px; }
tbody tr:last-child td { border-bottom: 0; }
td details summary { cursor: pointer; }
td pre { background: #f5f5fa; padding: 8px; border-radius: 6px; max-width: 350px; white-space: pre-wrap; overflow-wrap: anywhere; }

.form { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span:first-child { font-weight: 650; }
.field small { color: var(--muted); font-size: .8rem; }
.field input:not([type="checkbox"]):not([type="file"]), .field select { color: var(--ink); background: white; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #dce0ed; border-radius: 8px; }
.field input::placeholder { color: #747c91; }
.field input[readonly] { background: #f4f4fa !important; }
.check-field { display: flex; align-items: flex-start; gap: 8px; }
.check-field input { accent-color: var(--accent); margin-top: 4px; }
.form-actions { display: flex; margin-top: 4px; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.form-note { font-size: .83rem; color: var(--muted); }
.upload-file { padding: 12px 10px; border: 1px dashed #bcafe9; background: #f9f7ff; border-radius: 8px; width: 100%; }
.upload-file::file-selector-button { border: 0; border-radius: 6px; padding: 6px 9px; background: var(--accent-soft); color: var(--accent-dark); margin-right: 8px; cursor: pointer; font: inherit; font-weight: 650; }
dialog { border: 1px solid var(--line); border-radius: 15px; padding: 0; width: min(490px, calc(100% - 28px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--ink); background: white; box-shadow: 0 25px 100px #1c163b58; }
dialog::backdrop { background: #20193b80; }
.dialog-head { background: white; border-bottom: 1px solid var(--line); padding: 15px 17px 14px 19px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dialog-head h2 { font-size: 1.17rem; }
.dialog-head .btn { width: 32px; min-height: 32px; }
.dialog-body { padding: 17px 19px 19px; }
.toast-region { position: fixed; bottom: 18px; right: 18px; z-index: 10; display: grid; width: min(380px, calc(100% - 36px)); gap: 7px; pointer-events: none; }
.toast { box-shadow: 0 8px 25px #19143728; pointer-events: auto; background: #fff; }
.toast .text-link { margin-left: auto; align-self: center; display: grid; place-items: center; }
.toast .icon { width: 17px; height: 17px; }

@media (max-width: 1100px) {
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-layout { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .public-header, .landing, .public-footer { padding-inline: 23px; }
  .landing-hero { gap: 25px; min-height: auto; }
  .hero-art { min-height: 360px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-feature { padding: 13px 16px; }
  .landing-feature + .landing-feature { border-left: 0; border-top: 1px solid var(--line); }
  .shell { grid-template-columns: 187px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { font-size: 19px; }
  .sidebar-nav a { gap: 7px; font-size: .84rem; }
  .stat { align-items: flex-start; gap: 7px; padding: 13px; }
  .stat .icon-tile { width: 31px; height: 31px; border-radius: 7px; }
  .stat .icon { width: 16px; height: 16px; }
}
@media (max-width: 650px) {
  .public-header { padding-block: 14px; }
  .public-nav { gap: 12px; font-size: .86rem; }
  .public-nav .privacy-nav { display: none; }
  .public-nav .btn { min-height: 37px; padding-inline: 11px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .landing-hero { grid-template-columns: 1fr; padding: 30px 0; }
  .hero-copy h1 { font-size: clamp(2.9rem, 11vw, 4.1rem); margin: 15px 0; }
  .hero-copy .row { margin-top: 18px; }
  .hero-art { min-height: 345px; }
  .art-card.top { right: 4%; }
  .art-card.bottom { left: 4%; }
  .landing-features { margin-bottom: 20px; }
  .auth-page { display: block; min-height: auto; padding-inline: 23px; margin: 26px auto 42px; }
  .auth-page > .hero-art { display: none; }
  .text-page { padding-inline: 23px; margin-top: 5px; }
  .shell { display: block; }
  .sidebar { height: auto; position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 10px 12px 6px; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin-left: 1px; }
  .sidebar-nav { display: flex; overflow: auto; grid-row: 2; grid-column: 1 / -1; gap: 5px; padding: 3px 0; }
  .sidebar-nav .label, .sidebar-nav .chevron, .sidebar-bottom .support-nav, .sidebar-foot > div { display: none; }
  .sidebar-nav a { flex: none; min-height: 36px; padding-inline: 8px; }
  .sidebar-nav a .icon { width: 16px; height: 16px; }
  .sidebar-bottom { margin: 0; display: block; }
  .sidebar-foot { min-height: 32px; padding: 0; border: 0; gap: 5px; }
  .sidebar-foot .avatar { display: none; }
  .topbar { display: none; }
  .dashboard { padding: 22px 14px 34px; }
  .page-title { margin-bottom: 15px; align-items: flex-start; flex-direction: column; gap: 11px; }
  .page-title-actions { justify-content: flex-start; }
  .page-title h1 { font-size: 1.92rem; }
  .stat-grid { gap: 7px; }
  .stat { display: grid; padding: 9px 7px; gap: 4px; }
  .stat .icon-tile { display: none; }
  .stat strong { font-size: 1.18rem; }
  .stat span:not(.icon-tile) { font-size: .7rem; }
  .panel { padding: 14px; }
  .device-grid { gap: 9px; }
  .device-card-top { min-height: 104px; }
  .device-card-body { padding: 9px; }
  .device-card-top > .pill { top: 5px; right: 5px; font-size: .65rem; gap: 4px; }
  .account-grid { grid-template-columns: 1fr; }
  .console-stage { min-height: 449px; padding: 10px; }
}
@media (max-width: 370px) {
  .public-header, .landing, .public-footer { padding-inline: 13px; }
  .hero-art { min-height: 300px; }
  .art-phone { width: 135px; }
  .art-card { padding: 8px; gap: 5px; font-size: .74rem; }
  .art-card .icon-tile { width: 25px; height: 25px; }
  .art-card .icon { width: 14px; height: 14px; }
  .art-card small { font-size: .64rem; }
  .device-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
