@font-face {
  font-family: Inter;
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  --ink: #18243a;
  --muted: #52627a;
  --blue: #234ecb;
  --blue-hover: #1d40ad;
  --line: #dce4ef;
  --input-line: #8595ac;
  --pale: #eaf1ff;
  --canvas: #f5f8fd;
  --surface: #fff;
  --danger: #9b2626;
  --radius-control: 9px;
  --radius-panel: 16px;
  --shadow-card: 0 1px 2px #25344c08;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .65;
}
a {
  color: inherit;
}
p { line-height: 1.6; }
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -.035em;
  line-height: 1.16;
}
h3 {
  letter-spacing: -.02em;
  line-height: 1.3;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.mast nav {
  display: flex;
  gap: 30px;
}
.mast nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.mast nav a:hover {
  text-decoration: underline;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.035em;
}
.logo {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 11px;
  display: inline-grid;
  place-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo::before,
.logo::after {
  content: "";
  grid-area: 1/1;
  width: 14px;
  height: 10px;
  border: 1.4px solid white;
  border-radius: 3px;
  transform: translate(-2px, -2px);
}
.logo::after {
  transform: translate(2px, 2px);
  background: var(--blue);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 9px 15px;
  min-height: 44px;
  min-width: 0;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 2px #17337f30;
}
.button.primary:hover:not(:disabled) {
  background: var(--blue-hover);
}
.button.outline {
  color: #263957;
  border-color: #aebdd0;
  background: var(--surface);
}
.button.outline:hover {
  border-color: #879cb8;
  background: #f4f7fc;
}
.button.quiet {
  background: var(--pale);
  color: #254386;
}
.button.quiet:hover {
  background: #dbebff;
}
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  padding-block: 62px 72px;
}
.overline {
  font-size: .87rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2853b8;
}
.hero h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.75rem);
  line-height: 1.04;
  margin: 14px 0 18px;
  font-weight: 750;
  letter-spacing: -.055em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.arcade-tagline,
.preview figcaption {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.arcade-tagline {
  color: #254386;
  font-size: .82rem;
}
.lede {
  font-size: 1.0625rem;
  max-width: 40ch;
  color: var(--muted);
  margin-bottom: 24px;
}
.offer-note {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 12px;
}
.preview {
  min-width: 0;
  padding: clamp(13px, 3vw, 29px);
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, #2555d90a 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, #2555d90a 19px 20px),
    radial-gradient(ellipse at top left, #f6faff, #e2eaff 85%);
  border-radius: 24px;
  border: 1px solid #d7e2f6;
}
.arcade-devices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 12px);
}
.arcade-slot {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #eff6ff;
  border: 2px solid #fff;
  border-radius: 16%;
  box-shadow: inset 0 0 18px #9dbfff65, 0 4px 10px #2455bc17;
  --arrival: .12s;
}
.arcade-slot:nth-child(2) { --arrival: .3s; }
.arcade-slot:nth-child(3) { --arrival: .48s; }
.arcade-slot:nth-child(4) { --arrival: .66s; }
.arcade-slot::after {
  content: "";
  position: absolute;
  top: 100%;
  height: 16px;
  border-left: 3px dotted #6d91e0;
}
.pixel-device {
  position: relative;
  display: block;
  width: 76%;
  border: clamp(2px, .32vw, 4px) solid #172c7d;
  background: #668ef4;
}
.pixel-device i {
  position: absolute;
  inset: 8%;
  background-color: #82b1ff;
  background-image:
    linear-gradient(#f3fbff, #f3fbff),
    linear-gradient(#f3fbff, #f3fbff),
    linear-gradient(#b5f1da, #b5f1da),
    linear-gradient(#82dfc1, #82dfc1),
    linear-gradient(#4db3ae, #4db3ae);
  background-size: 24% 16%, 13% 12%, 34% 26%, 58% 37%, 100% 19%;
  background-position: 20% 26%, 26% 13%, 81% 78%, 100% 100%, 0 100%;
  background-repeat: no-repeat;
}
.pixel-phone {
  width: 43%;
  aspect-ratio: 5 / 8;
  border-bottom-width: 6px;
}
.pixel-laptop {
  width: 65%;
  aspect-ratio: 4 / 3;
  margin-bottom: 10%;
}
.pixel-laptop::after {
  content: "";
  position: absolute;
  inset: 100% -19% auto;
  height: 22%;
  background: #172c7d;
  border-top: 3px solid #8aacff;
  clip-path: polygon(10% 0, 90% 0, 100% 75%, 100% 100%, 0 100%, 0 75%);
}
.pixel-console {
  width: 84%;
  aspect-ratio: 2 / 1;
  background: linear-gradient(90deg, #57c5f6 22%, #172c7d 22% 78%, #ffae96 78%);
  clip-path: polygon(9% 0, 91% 0, 91% 8%, 100% 8%, 100% 92%, 91% 92%, 91% 100%, 9% 100%, 9% 92%, 0 92%, 0 8%, 9% 8%);
}
.pixel-console i {
  inset-inline: 24%;
}
.pixel-console::before,
.pixel-console::after {
  content: "";
  position: absolute;
  width: 6%;
  aspect-ratio: 1;
  background: #172c7d;
  top: 40%;
}
.pixel-console::before {
  left: 8%;
  box-shadow: 0 -2px #172c7d, 0 2px #172c7d, -2px 0 #172c7d, 2px 0 #172c7d;
}
.pixel-console::after {
  right: 8%;
  box-shadow: 2px 4px #172c7d;
}
.pixel-tv {
  aspect-ratio: 5 / 3;
  margin-bottom: 9%;
}
.pixel-tv::after {
  content: "";
  position: absolute;
  inset: 100% 8% auto;
  height: 23%;
  background: #172c7d;
  clip-path: polygon(15% 0, 35% 0, 20% 100%, 0 100%, 15% 0, 65% 0, 85% 0, 100% 100%, 80% 100%, 65% 0);
}
.arcade-links {
  position: relative;
  height: 33px;
  margin: 0 12%;
}
.arcade-links::before,
.arcade-links::after {
  content: "";
  position: absolute;
}
.arcade-links::before {
  inset: 15px 0 auto;
  border-top: 3px dotted #6d91e0;
}
.arcade-links::after {
  top: 17px;
  bottom: 0;
  left: 50%;
  border-left: 3px dotted #6d91e0;
}
.mock {
  padding: clamp(10px, 2vw, 18px);
  background: white;
  border: 1px solid #e6eefb;
  border-radius: var(--radius-panel);
  box-shadow: 0 12px 30px #344d811a;
}
.mock small {
  display: block;
  color: #53667f;
  font-size: .82rem;
}
.mock-title {
  display: block;
  font-size: 1rem;
  margin: 0 0 8px;
}
.mock-device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: .87rem;
}
.mock-device + .mock-device {
  border-top: 1px solid #e4ecfa;
}
.device-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e3eeff;
}
.device-icon img { display: block; }
.device-icon[data-device="switch"] {
  background: #eee7ff;
}
.device-icon[data-device="windows"] {
  background: #e3f8ed;
}
.device-icon[data-device="tv"] { background: #fff0db; }
.preview figcaption {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: -4px 0 0 auto;
  padding: 7px 10px;
  border: 2px solid #3353a5;
  background: #fff;
  color: #2146a6;
  box-shadow: 3px 3px #b3c9f4;
  font-size: .82rem;
}
@media (prefers-reduced-motion: no-preference) {
  .arcade-slot {
    animation: arcade-ready .5s ease-out var(--arrival);
  }
  .pixel-device {
    animation: arcade-dock .4s ease-out var(--arrival) backwards;
  }
  .preview figcaption {
    animation: arcade-toast .36s ease-out 1.15s backwards;
  }
}
@keyframes arcade-ready {
  45% { background: #fff; box-shadow: 0 0 16px #5081f7a6; }
}
@keyframes arcade-dock {
  from { opacity: .45; transform: translateY(-7px); }
}
@keyframes arcade-toast {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
}
.integrations-band {
  background: #edf3fe;
  border-block: 1px solid var(--line);
}
.integration-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 23px 0;
  color: #324d75;
}
.integration-line p {
  color: var(--muted);
  font-size: .94rem;
}
.integration-line strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
}
.story,
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 84px 0;
}
.story h2,
.pricing h2 {
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  line-height: 1.12;
  margin-top: 9px;
}
.story-list {
  display: grid;
  gap: 22px;
}
.story-list h3 {
  font-size: 1.15rem;
}
.story-list p,
.pricing p {
  color: var(--muted);
  margin-top: 5px;
}
.pricing {
  border-top: 1px solid var(--line);
  align-items: center;
}
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "price santa"
    "signup santa"
    "terms santa";
  align-items: center;
  gap: 10px 12px;
  justify-items: start;
  padding: clamp(20px, 3vw, 28px);
  background: radial-gradient(ellipse at 87% 50%, #fff1e1 0%, transparent 53%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
.offer-price { grid-area: price; }
.offer-price > strong {
  display: block;
  font-size: 3.1rem;
  letter-spacing: -.045em;
}
.offer-santa {
  grid-area: santa;
  width: clamp(112px, 13vw, 178px);
  height: auto;
}
.price-card > .button { grid-area: signup; }
.price-card > small { grid-area: terms; }
.price-card small,
.price-card s {
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: var(--muted);
}
.footer .brand {
  color: var(--ink);
}
.shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #f0f5fe;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100dvh;
}
.sidebar .brand {
  align-self: flex-start;
  margin-inline-start: 8px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav .button {
  justify-content: flex-start;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: var(--radius-control);
  padding-inline: 12px;
  color: #425675;
  box-shadow: none;
}
.sidebar nav .button:hover,
.sidebar nav .button:active {
  background: #e7eefb;
}
.sidebar nav .button[aria-current=page] {
  color: #1e43ad;
  background: #dde8fc;
  font-weight: 700;
}
.pane {
  padding: 42px clamp(22px, 5vw, 64px) 52px;
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin-inline: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 750;
}
.page-head p,
.muted {
  color: var(--muted);
}
.page-head p {
  margin-top: 6px;
  font-size: .9375rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 30px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 20px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}
.card h2 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.card p {
  margin-top: 5px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.card-head h3 {
  margin: 0;
}
.card-head small {
  color: var(--muted);
}
.card-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-head .device-icon { flex: 0 0 36px; }
.reading {
  display: block;
  font-size: 1.75rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.reading small {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}
.screen-group + .screen-group { margin-top: 28px; }
.screen-group > h2 { font-size: 1.25rem; }
.screen-group .grid { margin-bottom: 0; }
.first-screen { background: #f0f5ff; }
.first-screen > h2 { margin-bottom: 12px; }
.first-screen > .button { margin-top: 4px; }
.first-screen > p + .button { margin-top: 14px; }
.integration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.integration-heading .card-head { margin: 0; }
.integration-heading .card-head h2 { margin: 0; }
.integration-card { margin-bottom: 14px; }
.integration-account {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.integration-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.integration-account-info { flex: 1 1 0; min-width: 0; }
.integration-account-info h3 { font-size: 1rem; margin: 0; }
.integration-account-info p {
  margin: 2px 0 0;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.integration-account-details { padding-top: 10px; }
.integration-account-details > .tools { margin: 0 0 12px; }
.connection-method { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.connection-method p { margin: 8px 0 0; }
.account-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 8px 24px;
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.account-access h2 { margin: 0; font-size: 1rem; }
.account-access p { max-width: 64ch; margin: 0; }
.account-access p + p { margin-top: 8px; }
.startup { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.card .discovered-device {
  padding: 16px;
  background: #f5f8fd;
  box-shadow: none;
}
.discovered-device + .discovered-device { margin-top: 10px; }
.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.badge {
  font-size: .8rem;
  font-weight: 600;
  color: #315383;
  background: #eef5ff;
  border-radius: 6px;
  display: inline-block;
  padding: 4px 8px;
  margin: 6px 0;
}
.badge.connected { background: #e8f5ef; color: #22604c; }
.badge.attention { background: #fff2dc; color: #79500b; }
.activity {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.activity article {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.activity time {
  color: var(--muted);
}
.row-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  min-width: 0;
  font-size: .875rem;
  font-weight: 600;
}
.row-field input,
.row-field select,
.row-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.row-field :is(input, select, textarea):hover {
  border-color: #667d9b;
}
.row-field :is(input, select, textarea)[aria-invalid=true] {
  border-color: var(--danger);
}
.row-field :is(input, select, textarea):focus-visible {
  border-color: var(--blue);
  outline: 2px solid transparent;
  outline-offset: 1px;
  box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px #234ecb26;
}
@media (forced-colors: active) {
  .row-field :is(input, select, textarea):focus-visible { outline-color: Highlight; }
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form label {
  flex: 1;
  min-width: 150px;
}
.discovered-heading {
  margin-top: 20px;
}
.profile-assignment + .profile-assignment {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.profile-assignment .row-field {
  margin-bottom: 0;
}
.add-child-inline {
  margin-top: 12px;
}
.add-child-inline summary {
  width: fit-content;
  color: #2146a6;
  font-weight: 700;
  cursor: pointer;
}
.add-child-inline[open] {
  padding: 12px;
  border-radius: 12px;
  background: var(--pale);
}
.form-error {
  color: var(--danger);
  font-size: .92rem;
}
.form-error:not(:empty) {
  margin-top: 8px;
}
.empty {
  margin: 12px 0 24px;
  color: var(--muted);
}
.narrow {
  max-width: 720px;
}
.notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 32px);
  border-radius: 12px;
  background: #182945;
  color: white;
  padding: 12px 18px;
  box-shadow: 0 8px 24px #20305b3a;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 30px);
  color: var(--ink);
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 70px #14224a36;
}
dialog::backdrop {
  background: #14233e70;
}
dialog h2 {
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  margin-bottom: 12px;
}
dialog ul {
  padding-left: 20px;
}
.connection-steps {
  display: grid;
  gap: 20px;
  margin: 16px 0 0;
  padding-inline-start: 24px;
}
.connection-steps li::marker {
  color: #2146a6;
  font-weight: 700;
}
.connection-steps h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}
.connection-steps a.button {
  max-width: 100%;
  margin: 4px 0;
}
.connection-steps .row-field {
  margin-bottom: 0;
}
.connection-steps code {
  overflow-wrap: anywhere;
}
.session-guide {
  margin-block: 16px;
  font-size: .875rem;
  line-height: 1.5;
}
.session-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.session-guide pre {
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.connection-screenshot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pane > .card + .card {
  margin-top: 16px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-block-end: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.admin-row .tools {
  margin: 0;
  margin-inline-start: auto;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
}
@media (max-width: 900px) {
  .hero,
  .story,
  .pricing {
    gap: 32px;
  }
  .hero {
    min-height: auto;
  }
  .shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    grid-template-areas:
      "price santa"
      "signup signup"
      "terms terms";
  }
}
@media (max-width: 650px) {
  .account-access { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .wrap {
    width: calc(100% - 34px);
  }
  .mast {
    min-height: 70px;
  }
  .mast nav {
    display: none;
  }
  .hero,
  .story,
  .pricing {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 35px 0 45px;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 10vw, 4.1rem);
  }
  .preview {
    margin: 5px 2px;
  }
  .integration-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .integration-line p {
    grid-column: span 2;
  }
  .integration-line { gap: 12px 14px; }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    padding: 14px 17px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 3px;
    padding: 4px;
    margin-inline: -8px;
  }
  .sidebar nav .button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline: 6px;
    font-size: .8125rem;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pane {
    padding: 28px 18px 40px;
  }
  .card { padding: 16px; }
  .profile-assignment .inline-form > .row-field { min-width: 100%; }
  .profile-assignment .inline-form > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .row-field :is(input, select, textarea) { transition: none; }
}
/* Current-state dashboard */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.dashboard-view { max-width:1440px; width:100%; }
.group-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px 24px; margin:28px 0 14px; }
.group-heading h2 { font-size:1.08rem; margin:0; }
.group-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.group-title { min-width:0; }
.group-title h2 { overflow-wrap:anywhere; }
.group-title > .muted { display:block; margin-top:3px; font-size:.78rem; }
.avatar { display:inline-grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border-radius:50%; background:#e9effb; color:#355899; font-size:.8rem; font-weight:700; }
.dashboard-view .grid { align-items:start; gap:18px; margin-top:12px; }
.dashboard-card { padding:22px; border-radius:20px; box-shadow:0 3px 14px #24395705; }
.dashboard-card .card-head { margin-bottom:20px; gap:10px; }
.dashboard-card .card-head h3 { font-size:1rem; line-height:1.35; }
.dashboard-card .card-head small { font-size:.75rem; }
.device-metrics { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:12px; margin:0 0 18px; padding:16px 0; border-top:1px solid #edf1f7; border-bottom:1px solid #edf1f7; }
.device-metric { min-width:0; }
.device-metric dt { color:var(--muted); font-size:.73rem; margin-bottom:7px; }
.device-metric dd { margin:0; font-size:1.18rem; font-weight:720; letter-spacing:-.035em; line-height:1.25; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.device-metric:first-child dd { color:var(--blue); }
.device-metric:last-child dd { font-size:.97rem; font-weight:600; letter-spacing:-.02em; }
.app-activity { margin:16px 0; min-width:0; }
.app-activity-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.app-activity h4 { margin:0; font-size:.82rem; font-weight:650; }
.button.text-button { border:0; background:transparent; box-shadow:none; padding:0 4px; min-height:44px; color:var(--blue); font-size:.75rem; font-weight:600; }
.app-list { list-style:none; padding:0!important; margin:0!important; }
.app-row { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:60px; margin:0!important; }
.app-art { width:40px; height:40px; border-radius:12px; background:#edf2fb; color:#45638f; display:grid; place-items:center; font-size:1rem; font-weight:700; position:relative; overflow:hidden; }
.app-art img { position:absolute; inset:0; width:40px; height:40px; background:#f1f5fc; }
.app-label { min-width:0; }
.app-name { display:block; font-size:.85rem; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-track { display:block; margin-top:8px; width:100%; height:3px; border-radius:3px; background:#edf1f7; overflow:hidden; }
.app-track > span { display:block; height:100%; background:#93adeb; border-radius:3px; }
.app-duration { font-size:.8rem; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.app-empty { font-size:.8rem; padding:12px 0; }
.scope-note { display:inline-block; padding:5px 9px; background:#f0f5fb; color:#4f6481; border-radius:7px; font-size:.73rem; }
.device-footer { display:flex; flex-wrap:wrap; align-items:start; gap:8px; justify-content:space-between; margin-top:18px; padding-top:12px; border-top:1px solid #edf1f7; }
.sync-label { font-size:.72rem; color:var(--muted); padding-top:4px; }
.report-details { font-size:.73rem; color:var(--muted); max-width:100%; }
.report-details summary { cursor:pointer; min-height:44px; padding:4px 0; }
.report-details[open] { flex-basis:100%; }
.report-details p { font-size:.78rem; }
.device-actions { border-top:0; margin-top:10px; gap:8px; align-items:start; }
.device-actions > .button { min-height:44px; padding:10px 18px; font-size:.8rem; }
.device-controls { position:relative; font-size:.8rem; }
.device-controls > summary { cursor:pointer; list-style:none; min-height:44px; padding:11px 15px; border:1px solid var(--line); border-radius:10px; background:white; }
.device-controls > summary::after { content:' ▾'; color:var(--muted); }
.control-menu { display:flex; gap:8px; flex-wrap:wrap; padding-top:8px; }
.control-menu .button { min-height:44px; font-size:.8rem; }
.player-activity { padding-top:14px; margin-top:14px; border-top:1px solid #edf1f7; }
.player-activity .row-field { font-size:.8rem; margin:0; }
.player-activity select { min-height:44px; max-width:100%; font-size:.85rem; }
.player-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0 0; font-size:.8rem; }
.player-heading > .muted { margin-left:auto; font-size:.75rem; }
.reconnect-notice { background:#fff6e9; padding:12px; border-radius:12px; margin-bottom:12px; }
.reconnect-notice p { font-size:.8rem; }
.reconnect-notice .button { margin-top:8px; min-height:44px; }
.app-dialog { width:min(560px,calc(100vw - 32px)); max-height:85dvh; }
.app-search-results { margin:12px 0; max-height:48dvh; overflow:auto; }
@media (max-width:1050px) { .dashboard-view .grid { grid-template-columns:1fr; } }
@media (max-width:650px) {
  .dashboard-card { padding:18px; border-radius:16px; }
  .device-metrics { gap:8px; }
  .device-metric dd { font-size:1.1rem; }
  .device-metric:last-child dd { font-size:.85rem; }
  .device-metric dt { font-size:.68rem; }
  .dashboard-view .page-head { margin-bottom:18px; }
  .app-dialog { margin:auto 0 0; width:100%; max-width:100%; border-radius:20px 20px 0 0; max-height:90dvh; padding:22px; }
  .group-heading { margin-top:22px; }
}

.app-art::before { content:attr(data-initial); }

.app-dialog .app-name { white-space:normal; overflow-wrap:anywhere; }

.assignment-menu { position: relative; margin-left: auto; flex: 0 0 auto; align-self: flex-start; }
.assignment-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer; color: var(--muted); border-radius: 8px; font-size: 1.5rem; }
.assignment-menu > summary::-webkit-details-marker { display: none; }
.assignment-menu > summary:hover { background: #f0f5fb; }
.assignment-menu-items { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 175px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #172b4d18; }
.assignment-menu-items .button { width: 100%; min-height: 44px; font-size: .8rem; }

.child-usage-total { display:flex; flex-direction:column; align-items:flex-end; gap:3px; margin-left:auto; }
.child-usage-total strong { font-size:1.65rem; line-height:1.15; font-weight:700; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.child-usage-total > .muted { font-size:.75rem; }
@media (max-width:600px) {
  .group-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; }
  .group-identity { min-width:0; }
  .child-usage-total { min-width:0; max-width:140px; text-align:right; }
  .child-usage-total strong { font-size:1.4rem; }
}
@media (max-width:360px) {
  .group-heading { gap:8px; }
  .group-identity { gap:8px; }
  .child-usage-total { max-width:120px; }
}

.public-article { max-width: 840px; padding-top: 48px; padding-bottom: 64px; }
.public-article h1 { max-width: 760px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.04em; }
.public-article section { margin-top: 36px; }
.public-article h2 { margin-bottom: 12px; }
.public-article h3 { font-size: 1.1rem; margin-top: 24px; }
.public-article p, .public-article li { line-height: 1.7; }
.public-article figure { margin: 24px 0; }
.walkthrough-shot { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:16px; }
.public-article figcaption { color:var(--muted); font-size:.85rem; margin-top:8px; }
.review-notice { padding:12px 16px; background:#fff2dc; border-radius:8px; }

.support-message { max-width: 52rem; margin-block: 1rem; }
.support-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message h2, .support-message time, .support-message .muted { overflow-wrap: anywhere; }
.form-error { color: #a32222; }
.support-message .tools { align-items: flex-end; }
.support-message .tools .row-field { margin: 0; }
.contact-footer-action { white-space: nowrap; }
.contact-header-action { white-space: nowrap; }
.mast:has(.contact-header-action) { flex-wrap: wrap; gap: 8px; }
.footer:has(.contact-footer-action) { flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .sidebar nav { flex-wrap: wrap; overflow: visible; }
  .footer:has(.contact-footer-action) { display: grid; grid-template-columns: 1fr auto; }
  .footer:has(.contact-footer-action) > span { grid-column: 1 / -1; grid-row: 2; }
}

/* Family overview and child navigation */
.family-overview { display:flex; align-items:center; justify-content:space-between; gap:24px; background:white; border:1px solid var(--line); border-radius:20px; padding:24px 28px; margin:8px 0 20px; }
.family-overview h2 { font-size:.95rem; margin:0 0 10px; }
.family-overview-total > strong { display:block; font-size:2.3rem; line-height:1.1; letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
.family-overview-total .muted { font-size:.8rem; margin:8px 0 0; }
.family-overview-meta { display:grid; gap:12px; padding-left:28px; border-left:1px solid var(--line); color:var(--muted); font-size:.85rem; }
.child-switcher { display:flex; gap:10px; overflow-x:auto; padding:3px 2px 12px; scrollbar-width:thin; }
.button.child-tab { display:flex; flex:1 0 135px; min-width:0; max-width:210px; align-items:center; gap:12px; text-align:left; padding:14px; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:0 2px 6px #24395704; color:var(--ink); }
.child-tab .avatar { background:var(--child-color); width:40px; height:40px; flex-basis:40px; font-size:1rem; }
.child-tab-label { display:grid; gap:5px; min-width:0; }
.child-tab-label strong { font-size:.88rem; overflow-wrap:anywhere; }
.child-tab-label small { font-size:.75rem; font-weight:400; color:var(--muted); }
.button.child-tab[aria-pressed=true] { border-color:var(--blue); background:#eef4ff; box-shadow:0 0 0 1px var(--blue); }
.child-tab:focus-visible { outline:3px solid #7298ee; outline-offset:2px; }
.dashboard-content [hidden] { display:none!important; }
@media (max-width:650px) {
  .family-overview { padding:20px; gap:14px; border-radius:16px; }
  .family-overview-total > strong { font-size:1.9rem; }
  .family-overview-meta { padding-left:14px; font-size:.73rem; gap:10px; }
  .family-overview-total .muted { font-size:.72rem; }
  .button.child-tab { flex:0 0 86px; flex-direction:column; text-align:center; padding:12px 8px; gap:8px; }
  .child-tab-label strong { font-size:.78rem; }
  .child-tab-label small { font-size:.68rem; }
  .child-switcher { margin-right:-8px; }
}

.family-usage-bar { display:flex; flex:1; max-width:360px; height:12px; border-radius:20px; overflow:hidden; margin:0 24px; }
.selected-apps { margin-top:24px; }
.selected-apps h2 { font-size:1rem; margin:0 0 12px; }
.selected-app-row { padding:6px 0 10px; border-top:1px solid #edf1f7; }
.selected-app-row > small { display:block; margin-left:51px; font-size:.72rem; }
@media(max-width:650px) { .family-usage-bar { display:none; } }

/* Compact mobile navigation */
.sidebar-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.button.nav-toggle { display:none; }
@media (max-width:650px) {
  .sidebar { position:relative; z-index:10; padding:12px 18px; gap:0; }
  .sidebar .brand { margin:0; }
  .button.nav-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; background:white; border:1px solid var(--line); border-radius:12px; color:var(--ink); font-size:.85rem; }
  .nav-toggle::before { content:'☰'; font-size:1rem; }
  .nav-toggle[aria-expanded=true]::before { content:'×'; font-size:1.3rem; line-height:1; }
  .sidebar nav { display:none; }
  .sidebar[data-menu-open=true] nav { display:grid; position:absolute; top:calc(100% - 1px); left:12px; right:12px; margin:0; padding:8px; gap:4px; background:white; border:1px solid var(--line); border-radius:0 0 16px 16px; box-shadow:0 12px 28px #18243a1c; max-height:calc(100dvh - 90px); overflow-y:auto; }
  .sidebar nav .button { min-height:44px; padding:12px 14px; font-size:.9rem; white-space:normal; }
}
