/* Browser recreation of AERA's Apache-2.0 UI design. Source/credits: source-notes.json. */
@font-face {
  font-family: Montserrat;
  src: url(assets/montserrat.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: AeraSymbols;
  src: url(assets/fontawesome.woff2) format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.native-glyph {
  font-family: AeraSymbols !important;
  font-style: normal;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  pointer-events: none;
}
.app-icon .native-glyph {
  width: 100%;
  height: 100%;
  font-size: 30px;
}
.icon-plate .native-glyph {
  font-size: 19px;
}
.menu-card .icon-plate .native-glyph {
  font-size: 17px;
}
.recovery-dock .native-glyph {
  font-size: 21px;
}
.status-right .native-glyph {
  font-size: 13px;
  width: 15px;
  height: 15px;
}
.root-providers .choice,
.root-slots .choice {
  min-height: 35px;
  padding: 9px 8px;
}
.root-slots .choice small {
  display: none;
}
.browser-native-start {
  background: #202329;
  color: #f4f4f5;
  font-family: Arial, sans-serif;
  min-height: 330px;
  max-height: 390px;
  overflow: auto;
  padding: 15px;
}
.browser-native-start h2 {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: normal;
  color: #f4f4f5;
}
.browser-native-start h3 {
  color: #f4f4f5;
}
.browser-native-start p {
  font:
    12px/1.6 Arial,
    sans-serif;
  color: #bcbfc8;
}
.browser-native-start .native-touch {
  font:
    12px Arial,
    sans-serif;
  padding: 10px;
  background: #7dd3fc;
  color: #101828;
  border-radius: 6px;
  min-width: 0;
}
.browser-native-start .native-link {
  font:
    12px Arial,
    sans-serif;
  color: #7dd3fc;
  background: none;
  padding: 8px 0;
  border: 0;
  text-decoration: underline;
  display: block;
}
.browser-native-start input {
  font:
    12px Arial,
    sans-serif;
  width: 85%;
  margin: 18px 0;
  background: #353b46;
  color: white;
  border: 1px solid #64748b;
  border-radius: 6px;
  padding: 10px;
}
.browser-native-start .native-scroll-space {
  height: 220px;
}
:root {
  color-scheme: dark;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: #f4f7fa;
  background: #111315;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #16c8ff;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
svg {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 1.9;
  flex-shrink: 0;
  pointer-events: none;
}
button > * {
  pointer-events: none;
}
button input {
  pointer-events: auto;
}
[hidden] {
  display: none !important;
}
.demo-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: auto;
  padding: 0 36px;
  border-bottom: 1px solid #2b3036;
}
.demo-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: #abb3bd;
}
.demo-brand img {
  width: 88px;
}
.demo-brand span {
  border-left: 1px solid #3d434b;
  padding-left: 18px;
}
.site-back {
  font-size: 12px;
  color: #abb3bd;
}
.site-back span {
  margin-left: 10px;
  color: #16c8ff;
}
.demo-layout {
  max-width: 1220px;
  margin: auto;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  min-height: calc(100svh - 72px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #16c8ff;
  font-weight: 600;
}
.demo-intro h1 {
  font-size: clamp(38px, 4.5vw, 65px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 16px 0 22px;
}
.intro-copy {
  color: #abb3bd;
  font-size: 15px;
  line-height: 1.8;
  max-width: 440px;
}
.demo-shortcuts {
  display: grid;
  gap: 7px;
  margin: 30px 0;
}
.demo-shortcuts button {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 16px 14px;
  background: #1b1e22;
  border: 1px solid #2c3036;
  border-radius: 10px;
  color: #f4f7fa;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.demo-shortcuts button:hover {
  border-color: #16c8ff;
  background: #20252a;
}
.demo-shortcuts svg {
  color: #16c8ff;
  width: 23px;
  height: 23px;
}
.demo-shortcuts span {
  flex: 1;
  font-size: 12px;
  font-weight: 550;
}
.demo-shortcuts small {
  display: block;
  color: #89949e;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 4px;
}
.demo-shortcuts b {
  font-weight: 400;
  color: #89949e;
}
.simulation-note {
  display: flex;
  gap: 12px;
  color: #87939e;
  max-width: 460px;
}
.simulation-note svg {
  color: #a6b5c2;
  margin-top: 3px;
}
.simulation-note p {
  font-size: 10px;
  line-height: 1.9;
  margin: 0;
}
.simulation-note strong {
  display: block;
  font-weight: 550;
  color: #c4cdd5;
}
.source-note {
  font-size: 9px;
  color: #727e89;
  line-height: 1.8;
  margin-top: 20px;
}
.source-note a {
  color: #abb3bd;
}
.demo-stage {
  width: 100%;
  min-width: 0;
}
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 12px;
  gap: 8px;
  color: #a7b2bc;
  font-size: 8px;
  letter-spacing: 0.06em;
}
.stage-toolbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16c8ff;
}
.stage-toolbar button {
  background: none;
  border: 0;
  color: #a7b2bc;
  font-size: 9px;
  padding: 5px;
}
.phone {
  --accent: #16c8ff;
  --on-accent: #071116;
  --text: #f5f7fa;
  --muted: #aeb6c0;
  --dim: #858e99;
  --canvas: #202226;
  --panel: #34373d;
  --sheet: #2d3036;
  --line: #535961;
  --selected: #30434a;
  --inset: #191b1f;
  --red: #ff4d55;
  --green: #42d392;
  --amber: #f4b942;
  --density: 1;
  --cols: 3;
  --wallpaper-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: min(840px, calc(100svh - 165px));
  min-height: 530px;
  border: 1px solid #474c53;
  border-radius: 30px;
  background: var(--canvas);
  color: var(--text);
  box-shadow:
    0 24px 80px #0008,
    0 0 0 5px #1b1d21;
  display: flex;
  flex-direction: column;
  font-size: calc(13px * var(--density));
  color-scheme: dark;
  container-type: inline-size;
  filter: brightness(var(--demo-brightness, 1));
}
.phone[data-appearance="light"] {
  --text: #16191d;
  --muted: #595f66;
  --dim: #737980;
  --canvas: #f3f2ef;
  --panel: #fdfcf9;
  --sheet: #eceae5;
  --line: #b9bdc2;
  --selected: #d6e9ed;
  --inset: #e9e7e2;
  color-scheme: light;
}
.phone[data-appearance="amoled"] {
  --canvas: #000;
  --panel: #080808;
  --sheet: #0c0c0c;
  --line: #30343a;
  --inset: #030303;
}
.phone[data-density="compact"] {
  --density: 0.88;
}
.phone[data-density="comfortable"] {
  --density: 1.1;
}
.phone[data-density="spacious"] {
  --density: 1.2;
}
.recovery-wallpaper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--wallpaper-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.recovery-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.09' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
  opacity: 0.25;
}
.phone[data-appearance="amoled"] .recovery-wallpaper::after {
  display: none;
}
.statusbar {
  height: 45px;
  min-height: 45px;
  padding: 0 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 24%, transparent);
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}
.status-right {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  min-width: 0;
}
.status-right .net-name {
  max-width: 88px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.status-right svg {
  width: 15px;
  height: 15px;
}
.status-right .cellular {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.recovery-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px 18px 23px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  outline: none;
}
.scene-heading {
  margin-bottom: 23px;
}
.scene-heading h2 {
  font-size: calc(20px * var(--density));
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.scene-heading p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.89em;
  margin: 0;
}
.scene-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 0 0 17px;
  font-size: 10px;
}
.scene-back svg {
  width: 13px;
  height: 13px;
}
.recovery-dock {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 4px 13px 12px;
  padding: 8px;
  background: color-mix(
    in srgb,
    var(--canvas) var(--dock-opacity, 88%),
    transparent
  );
  border: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
  border-radius: 40px;
  backdrop-filter: blur(var(--dock-blur, 12px));
  z-index: 3;
}
.recovery-dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  border-radius: 25px;
  color: var(--muted);
  min-height: 47px;
  padding: 5px 1px;
  font-size: 11px;
}
.recovery-dock svg {
  width: 21px;
  height: 21px;
}
.recovery-dock button[aria-current="page"] {
  color: var(--accent);
}
.phone[data-dock="compact"] .recovery-dock {
  border-radius: 14px;
  padding: 4px;
}
.phone[data-dock="minimal"] .recovery-dock {
  border: 0;
  background: none;
  backdrop-filter: none;
}
.phone[data-dock="icons"] .recovery-dock .dock-label {
  display: none;
}
.phone[data-dock="icons"] .recovery-dock button {
  min-height: 36px;
}
.phone[data-dock="text"] .recovery-dock svg,
.phone[data-dock="text"] .recovery-dock .native-glyph {
  display: none;
}
.phone[data-dock="text"] .recovery-dock button {
  min-height: 31px;
}
.kicker {
  font-size: 0.7em;
  letter-spacing: 0.13em;
  font-weight: 500;
  color: var(--muted);
  margin: 23px 3px 12px;
}
.kicker.accent,
.section-title {
  color: var(--accent);
}
.section-title {
  font-size: 1em;
  font-weight: 450;
  margin: 21px 2px 11px;
}
.surface,
.row,
.choice,
.app-card {
  background: var(--sheet);
  border: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
  border-radius: 12px;
  color: var(--text);
}
.phone[data-surface="frosted"] :is(.surface, .row, .choice, .app-card) {
  background: color-mix(in srgb, var(--sheet) 73%, transparent);
  backdrop-filter: blur(10px);
}
.phone[data-surface="outline"] :is(.surface, .row, .choice, .app-card) {
  background: color-mix(in srgb, var(--sheet) 10%, transparent);
  border-color: var(--line);
}
.phone[data-surface="elevated"] :is(.surface, .row, .choice, .app-card) {
  box-shadow: 0 5px 10px #0003;
  background: var(--panel);
}
.surface {
  padding: 15px;
  margin: 10px 0;
}
.surface h3 {
  font-size: 1.06em;
  font-weight: 500;
  margin: 0 0 7px;
}
.surface p {
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.55;
  margin: 6px 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px;
  margin: 8px 0;
  text-align: left;
  min-height: 64px;
}
.row:hover,
.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
}
.row .row-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.row strong {
  font-size: 1em;
  font-weight: 450;
  display: block;
  line-height: 1.35;
}
.row small {
  color: var(--muted);
  font-size: 0.76em;
  line-height: 1.5;
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.row > svg:last-child {
  color: var(--dim);
  width: 13px;
}
.icon-plate {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.phone[data-tinted="true"] .icon-plate {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}
.row .icon-plate svg {
  width: 20px;
  height: 20px;
}
.primary,
.secondary,
.danger-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 10px 12px;
  border: 0;
  border-radius: 24px;
  font-size: 0.85em;
  font-weight: 450;
  line-height: 1.35;
}
.primary {
  color: var(--on-accent);
  background: var(--accent);
}
.secondary {
  color: var(--text);
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
}
.danger-button {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--sheet));
  border: 1px solid color-mix(in srgb, var(--red) 60%, transparent);
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.actions > * {
  flex: 1;
}
.home-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.app-card {
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px 12px;
  text-align: left;
  min-height: 140px;
  width: 100%;
}
.app-card.wide {
  grid-column: 1/-1;
  min-height: 135px;
}
.app-card .app-icon {
  color: var(--accent);
  width: 32px;
  height: 32px;
  position: absolute;
  left: 13px;
  top: 14px;
}
.app-card .app-icon svg {
  width: 100%;
  height: 100%;
}
.app-card strong {
  font-size: 1.14em;
  line-height: 1.15;
  font-weight: 450;
  z-index: 1;
}
.app-card small {
  font-size: 0.75em;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 5px;
  z-index: 1;
}
.app-card .arrow {
  position: absolute;
  right: 11px;
  top: 16px;
  width: 15px;
  color: var(--dim);
}
.app-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url(assets/home-art-atlas.png);
  background-size: 400% 400%;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  mask-image: linear-gradient(#000 25%, #0009);
}
.phone[data-icons="classic"] .app-art {
  display: none;
}
.phone[data-icons="themed"] .app-card .app-icon {
  display: none;
}
.phone[data-appearance="light"] .app-art {
  mix-blend-mode: multiply;
  opacity: 0.2;
}
.phone[data-appearance="light"] img[src="/assets/aera-wordmark.png"] {
  filter: brightness(0);
}
.terminal-art {
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 17px,
    color-mix(in srgb, var(--accent) 9%, transparent) 18px 19px
  );
  font: 8px/2 monospace;
  color: var(--accent);
  opacity: 0.3;
  overflow: hidden;
  padding: 0 8px;
  letter-spacing: 7px;
  overflow-wrap: anywhere;
  mask-image: linear-gradient(#000, #0000);
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.plugin-grid .app-card {
  height: 110px;
  min-height: 110px;
  padding: 10px 7px;
  text-align: center;
  align-items: center;
}
.plugin-grid .app-card strong {
  font-size: 0.76em;
  line-height: 1.3;
  font-weight: 450;
}
.plugin-grid .app-card .app-icon {
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  width: 30px;
  height: 30px;
}
.plugin-grid .app-card .arrow {
  display: none;
}
.plugin-grid[data-cols="4"] .app-card,
.plugin-grid[data-cols="5"] .app-card {
  height: 82px;
  min-height: 82px;
  padding: 5px 3px;
  border-radius: 10px;
}
.plugin-grid[data-cols="4"] strong,
.plugin-grid[data-cols="5"] strong {
  font-size: 0.65em;
}
.plugin-grid[data-cols="4"] .app-icon,
.plugin-grid[data-cols="5"] .app-icon {
  width: 22px;
  height: 22px;
  top: 10px;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 17px 0 6px;
}
.pager button {
  background: var(--line);
  width: 6px;
  height: 6px;
  border-radius: 5px;
  padding: 0;
  border: 0;
}
.pager button.active {
  background: var(--accent);
  width: 17px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.menu-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 11px;
  padding: 12px;
  min-height: 120px;
}
.menu-card strong {
  font-size: 0.94em;
  font-weight: 450;
  line-height: 1.3;
}
.menu-card small {
  font-size: 0.76em;
  line-height: 1.4;
  color: var(--muted);
}
.menu-card .menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-card .icon-plate {
  width: 30px;
  height: 30px;
}
.menu-card .icon-plate svg {
  width: 17px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.choices.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice {
  position: relative;
  text-align: left;
  padding: 12px 9px;
  min-height: 64px;
  font-size: 0.85em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.choice small {
  display: block;
  font-size: 0.8em;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 5px;
}
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 7px;
  color: var(--accent);
  font-size: 13px;
}
.choice[aria-pressed="true"] strong {
  padding-right: 12px;
}
.choice strong {
  font-weight: 450;
  display: block;
}
.color-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #8885;
  flex-shrink: 0;
}
.color-choice[aria-pressed="true"]::after {
  font-size: 10px;
  top: 4px;
  right: 5px;
}
.theme-preview {
  padding: 15px;
  margin-bottom: 17px;
}
.theme-preview .kicker {
  color: var(--accent);
  margin: 0 0 13px;
}
.theme-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.theme-preview strong {
  font-weight: 450;
  font-size: 1.3em;
}
.theme-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.75em;
  line-height: 1.5;
  margin-top: 15px;
}
.switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: var(--line);
  flex-shrink: 0;
  display: inline-block;
}
.switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--muted);
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform 0.16s;
}
.switch.on {
  background: var(--accent);
}
.switch.on::after {
  transform: translateX(16px);
  background: var(--on-accent);
}
.range-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.85em;
  margin-bottom: 10px;
}
.range-label output {
  color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 24px;
}
input[type="color"] {
  width: 46px;
  height: 32px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.text-input,
.select-input {
  background: var(--inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 100%;
  padding: 11px;
  font-size: 0.88em;
  min-height: 40px;
  min-width: 0;
}
.field-label {
  display: block;
  color: var(--muted);
  font-size: 0.8em;
  margin: 14px 0 8px;
}
.tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 17px;
}
.tabs button {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid transparent;
  padding: 10px 5px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86em;
}
.tabs button.active {
  background: color-mix(in srgb, var(--accent) 18%, var(--sheet));
  color: var(--accent);
  border-color: var(--accent);
}
.hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-row .icon-plate {
  width: 42px;
  height: 42px;
}
.hero-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.hero-row h3 {
  font-size: 1.1em;
}
.hero-row p {
  font-size: 0.76em;
}
.badge {
  display: inline-block;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--sheet));
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.7em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.78em;
  line-height: 1.6;
}
.details {
  margin: 0;
}
.details > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
  font-size: 0.83em;
}
.details > div:last-child {
  border: 0;
}
.details dt {
  color: var(--muted);
  flex-shrink: 0;
}
.details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.network-state {
  color: var(--accent);
  font-size: 0.83em;
}
.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 6px;
}
.check-box {
  height: 18px;
  width: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.check-box.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.partition-row .size {
  color: var(--muted);
  font-size: 0.75em;
  white-space: nowrap;
}
.check-summary {
  font-size: 1.25em;
  color: var(--accent);
  margin: 19px 2px 8px;
}
.sheet-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #0005;
  display: flex;
  align-items: flex-end;
  padding: 12px 4.45%;
}
.sheet {
  background: color-mix(in srgb, var(--sheet) 85%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 15px;
  width: 100%;
  max-height: calc(100% - 24px);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 35px #0006;
  scrollbar-width: thin;
}
.sheet-grabber {
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--muted);
  opacity: 0.5;
  align-self: center;
  flex-shrink: 0;
  margin: -6px 0 14px;
}
.sheet-body {
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.sheet > h2,
.sheet > .actions {
  flex-shrink: 0;
}
.sheet > .actions {
  padding-top: 10px;
}
.sheet > .actions {
  display: flex;
  flex-wrap: wrap;
}
.native-swipe {
  width: 100%;
  flex-shrink: 0;
  min-height: 51px;
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--inset);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 8px;
}
.native-swipe > span {
  color: var(--text);
  font-size: 0.85em;
  pointer-events: none;
  padding: 0 45px;
  text-align: center;
}
.native-swipe input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  position: absolute;
  inset: 0;
  width: calc(100% - 10px);
  height: 43px;
  margin: 4px 5px;
  padding: 0;
  cursor: grab;
}
.native-swipe input::-webkit-slider-runnable-track {
  height: 43px;
  background: transparent;
}
.native-swipe input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='43' viewBox='0 0 43 43'%3E%3Cpath d='m18 15 6 6-6 6' stroke='%2310181e' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/cover;
  box-shadow: 0 2px 8px #0004;
}
.native-swipe input::-moz-range-track {
  background: transparent;
}
.native-swipe input::-moz-range-thumb {
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.native-swipe:has(input:disabled) {
  opacity: 0.4;
}
.selection-heading,
.job-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.selection-heading button {
  font-size: 0.8em;
}
.job-percent {
  color: var(--accent);
  font-size: 1.4em;
}
.plugin-detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.plugin-detail-hero .app-art {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.warning-copy {
  color: var(--amber);
}
.acknowledgement {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85em;
  line-height: 1.5;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
}
.acknowledgement input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--red);
}
.reboot-grid .choice {
  min-height: 95px;
}
.reboot-grid .choice > svg,
.reboot-grid .choice > .native-glyph {
  color: var(--accent);
  margin-bottom: 10px;
}
.lock-preview {
  width: 95px;
  height: 209px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 18px;
  container-type: inline-size;
}
.lock-face {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  width: 100%;
  height: 100%;
  color: #fff;
  overflow: hidden;
}
.lock-face .lock-background {
  position: absolute;
  inset: -3px;
  z-index: -2;
  background-color: var(--canvas);
  background-size: cover;
  background-position: center;
}
.lock-dimmer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
}
.lock-clock-group {
  width: 94%;
  position: absolute;
  left: 3%;
  text-align: center;
  color: var(--clock-colour);
}
.lock-face.placement-top .lock-clock-group {
  top: 8%;
}
.lock-face.placement-centre .lock-clock-group {
  top: 45%;
  transform: translateY(-50%);
}
.lock-face.placement-bottom .lock-clock-group {
  bottom: 25%;
}
.lock-face .lock-time {
  margin: 0;
  font-size: calc(16cqw * var(--clock-scale));
  line-height: 1.05;
  white-space: pre-line;
  color: inherit;
  font-weight: 400;
}
.lock-face .lock-date {
  margin: 13px 0;
  line-height: 1.4;
  white-space: pre-line;
}
.lock-owner {
  font-size: 10px;
  color: #fff;
}
.lock-date-bottom {
  position: absolute;
  bottom: 22%;
  width: 94%;
  left: 3%;
  text-align: center;
}
.lock-face .lock-unlock {
  position: absolute;
  bottom: 7%;
  left: 8%;
  width: 84%;
  margin: 0;
}
.lock-face .lock-unlock.native-swipe {
  max-width: none;
  padding: 0;
  background: var(--inset);
}
.lock-face .lock-unlock.native-swipe input {
  margin: 4px 5px;
  height: 43px;
}
.lock-face .analogue-clock {
  width: calc(49cqw * var(--clock-scale));
  height: calc(49cqw * var(--clock-scale));
  margin: 0 auto;
  border: 0;
  color: var(--clock-colour);
}
.lock-face .clock-tick {
  background: currentColor;
  left: calc(50% - 1px);
  top: 3%;
  width: 2px;
  height: 7%;
  transform-origin: 1px calc(23.03cqw * var(--clock-scale));
}
.lock-face .clock-tick.minor {
  width: 1px;
  height: 4%;
}
.lock-face .hour-hand,
.lock-face .minute-hand {
  background: currentColor;
  left: calc(50% - 1.5px);
  bottom: 50%;
  width: 3px;
  height: 25%;
}
.lock-face .minute-hand {
  height: 36%;
  width: 2px;
  left: calc(50% - 1px);
}
.lock-face .clock-pin {
  left: calc(50% - 3px);
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
}
.lock-face .second-hand {
  position: absolute;
  bottom: 50%;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 39%;
  transform-origin: bottom;
  background: var(--accent);
}
.lock-preview .lock-date {
  font-size: 5px !important;
  margin: 5px 0;
}
.lock-preview .lock-owner {
  font-size: 4px;
}
.lock-preview .lock-unlock {
  min-height: 14px;
  font-size: 4px;
  pointer-events: none;
}
.lock-preview .native-swipe > span {
  font-size: 4px;
  padding: 0;
}
.lock-preview .native-swipe input {
  display: none;
}
.lock-preview-status {
  display: flex;
  justify-content: space-between;
  padding: 4px;
  font-size: 4px;
}
.lock-keyboard-unlock {
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  font-size: 10px;
  opacity: 0;
}
.lock-keyboard-unlock:focus-visible {
  opacity: 1;
}
.swipe-up-hint {
  text-align: center;
}
.swipe-up-hint svg {
  width: 20px;
  height: 20px;
}
.hold-unlock.holding {
  background: var(--accent);
  color: var(--on-accent);
  transition: background 0.9s;
}
.unlock-fade {
  opacity: 0;
  transition: opacity 0.18s;
}
.phone.is-locked .recovery-content {
  padding: 0;
  overflow: hidden;
}
.phone.is-locked .recovery-dock {
  display: none;
}
.phone.is-locked .recovery-content > .lock-face {
  height: 100%;
}
.inspection-spinner {
  width: 26px;
  height: 26px;
  margin: 20px auto;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: inspection-spin 0.9s linear infinite;
}
@keyframes inspection-spin {
  to {
    transform: rotate(360deg);
  }
}
.sheet.full-page {
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  padding: 22px 18px;
  background: var(--canvas);
}
.sheet-overlay.full-page {
  padding: 0;
}
.sheet.full-page .sheet-grabber {
  display: none;
}
.status-sensors {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
}
.status-right {
  overflow: hidden;
}
.status-right .net-name {
  flex-shrink: 3;
}
.quick-overlay {
  position: absolute;
  inset: 0;
  background: #0008;
  z-index: 8;
}
.quick-shade {
  width: 100%;
  height: min(96.53cqw, calc(100% - 7px));
  background: linear-gradient(var(--sheet), var(--canvas));
  border-bottom: 1px solid var(--line);
  padding: 4.3cqw 5cqw 2.3cqw;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: shade-enter 0.2s ease-out;
}
.quick-shade.no-enter {
  animation: none;
}
.quick-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5.9cqw;
  flex-shrink: 0;
}
.quick-heading h2 {
  font-size: 3.33cqw;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 2cqw;
}
.quick-heading p {
  font-size: 1.8cqw;
  color: var(--muted);
  margin: 0;
}
.quick-close {
  border: 0;
  background: var(--panel);
  color: var(--text);
  width: 8.05cqw;
  height: 8.05cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  margin-top: -0.7cqw;
}
.quick-close svg {
  width: 2.5cqw;
  height: 2.5cqw;
}
.quick-close .native-glyph {
  font-size: 2.22cqw;
}
.scene-menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scene-menu > .scene-heading,
.scene-menu > .row {
  flex-shrink: 0;
}
.scene-menu > .menu-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-bottom: 12px;
  align-content: start;
}
.scene-menu > .row {
  min-height: 57px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 19.86cqw;
  gap: 1.39cqw;
  flex-shrink: 0;
}
.quick-tile {
  min-width: 0;
  border-radius: 3.05cqw;
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  background: var(--panel);
  color: var(--text);
  padding: 2.08cqw;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}
.quick-tile.selected {
  background: color-mix(in srgb, var(--accent) 17%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
}
.quick-tile > svg,
.quick-tile > .native-glyph {
  color: var(--accent);
  width: 3.33cqw;
  height: 3.33cqw;
  font-size: 3.33cqw;
  margin-bottom: 3.2cqw;
  flex-shrink: 0;
}
.quick-tile strong {
  font-size: 2.05cqw;
  font-weight: 500;
  line-height: 1.2;
  min-height: 3.7cqw;
  max-height: 5cqw;
}
.quick-tile small {
  display: block;
  font-size: 1.65cqw;
  width: 100%;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1cqw;
}
.quick-brightness {
  margin-top: 3.05cqw;
  flex-shrink: 0;
}
.quick-brightness .surface {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.quick-brightness .range-label {
  font-size: 2.22cqw;
  margin-bottom: 2.5cqw;
}
.quick-brightness output::after {
  content: "%";
}
.quick-brightness input {
  width: 100%;
  margin: 0;
  height: 3cqw;
}
.quick-notices {
  flex: 1;
  min-height: 9cqw;
}
.quick-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.67cqw;
  flex-shrink: 0;
}
.quick-shortcuts button {
  min-width: 0;
  min-height: 7cqw;
  font-size: 1.85cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  padding: 1cqw 0.5cqw;
  border-radius: 4cqw;
}
.quick-shortcuts svg,
.quick-shortcuts .native-glyph {
  width: 2.1cqw;
  height: 2.1cqw;
  font-size: 2.1cqw;
}
.quick-handle-target {
  background: transparent;
  border: 0;
  padding: 0;
  height: 6cqw;
  flex-shrink: 0;
  display: grid;
  place-items: end center;
}
.quick-handle {
  width: 13.2cqw;
  height: 0.83cqw;
  border-radius: 0.5cqw;
  background: var(--muted);
  opacity: 0.6;
}
@keyframes shade-enter {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-shade {
    animation: none;
  }
}
.sheet h2 {
  font-size: 1.25em;
  font-weight: 500;
  margin: 0 0 12px;
}
.sheet p {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.6;
}
.sheet .demo-caption {
  font-size: 0.7em;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.sheet .actions {
  margin-bottom: 0;
}
.toast {
  position: absolute;
  z-index: 12;
  bottom: 94px;
  left: 24px;
  right: 24px;
  background: var(--text);
  color: var(--canvas);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 8px 30px #0005;
  pointer-events: none;
}
.progress {
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  margin: 14px 0;
}
.progress > span {
  height: 100%;
  display: block;
  background: var(--accent);
  width: 0;
  transition: width 0.25s linear;
}
.operation-percent {
  text-align: center;
  font-size: 2.2em;
  font-weight: 400;
  margin: 20px 0 5px;
}
.operation-log {
  background: var(--inset);
  padding: 12px;
  border-radius: 9px;
  font:
    10px/1.8 ui-monospace,
    monospace;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 150px;
  overflow: auto;
}
.terminal-screen {
  background: #080a0c;
  border-radius: 9px;
  padding: 12px;
  min-height: 280px;
  font:
    11px/1.75 ui-monospace,
    monospace;
  color: #c1cbd5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.terminal-form input {
  font-family: ui-monospace, monospace;
}
.file-path {
  font:
    11px/1.5 ui-monospace,
    monospace;
  color: var(--accent);
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}
.file-row {
  min-height: 61px;
}
.file-row .icon-plate {
  background: none;
  width: 26px;
}
.file-row strong {
  overflow-wrap: anywhere;
  font-size: 0.93em;
}
.file-row small {
  font-size: 0.7em;
}
.web-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.web-toolbar button {
  padding: 8px;
  min-height: 32px;
}
.web-toolbar svg {
  width: 15px;
  height: 15px;
}
.web-form {
  display: flex;
  gap: 6px;
}
.web-form .text-input {
  border-radius: 24px;
  font-size: 10px;
}
.webpage {
  background: #f5f7fa;
  color: #1a1f27;
  border-radius: 8px;
  margin-top: 10px;
  padding: 23px 17px;
  min-height: 300px;
  overflow-wrap: anywhere;
  font-family: Montserrat, sans-serif;
}
.webpage h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.webpage h3 {
  font-size: 17px;
  font-weight: 500;
}
.webpage p {
  font-size: 11px;
  line-height: 1.8;
  color: #596575;
}
.webpage .web-logo {
  font-size: 38px;
  color: #101c28;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.webpage .web-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 25px;
}
.webpage button {
  padding: 12px;
  background: #e9eef4;
  border: 0;
  border-radius: 8px;
  color: #33465c;
  font-size: 10px;
  text-align: left;
  min-width: 0;
}
.webpage .web-pill {
  background: #dff4fa;
  color: #005f7e;
  padding: 5px 8px;
  font-size: 9px;
  border-radius: 10px;
  display: inline-block;
}
.web-warning {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}
.lock-display {
  text-align: center;
  padding: 75px 0 40px;
}
.lock-display .lock-time {
  font-size: 68px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.lock-display p {
  color: var(--muted);
  font-size: 12px;
}
.lock-display svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 30px;
}
.lock-display .primary {
  margin: 65px auto 0;
  max-width: 230px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallpaper-sample {
  border: 1px solid var(--line);
  height: 100px;
  border-radius: 12px;
  width: 100%;
  color: white;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  text-shadow: 0 1px 5px #000;
}
.sample-aurora {
  background:
    radial-gradient(ellipse at 30% 20%, #3558a8, transparent 65%),
    radial-gradient(ellipse at 70% 90%, #18775c, transparent 65%), #0a1023;
}
.sample-violet {
  background:
    radial-gradient(ellipse at 80% 40%, #4a2869, transparent 65%),
    radial-gradient(ellipse at 15% 80%, #203e7d, transparent 65%), #080c17;
}
.sample-ember {
  background:
    radial-gradient(ellipse at 30% 65%, #8b401b, transparent 65%),
    radial-gradient(ellipse at 85% 15%, #692331, transparent 65%), #130e0d;
}
.sample-default {
  background: var(--canvas);
  color: var(--text);
  text-shadow: none;
}
.stage-hint {
  color: #737e88;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  margin: 13px 0 0;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 30px 8px;
  font-size: 0.9em;
  line-height: 1.7;
}
.empty-state > svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 12px;
}
.media-play {
  width: 78px;
  height: 78px;
  margin: 35px auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.media-play svg {
  width: 30px;
  height: 30px;
}
.noscript {
  position: fixed;
  inset: auto 0 0;
  background: #302715;
  padding: 22px;
  z-index: 20;
  text-align: center;
  font-size: 14px;
}
.phone.is-locked .recovery-dock {
  visibility: hidden;
}
.phone.is-locked .recovery-content {
  padding-top: 10px;
}
.reset-link {
  font-size: 0.8em;
  color: var(--red);
  background: none;
  border: 0;
  padding: 18px 5px;
  width: 100%;
  text-align: left;
  margin-top: 20px;
}
.battery-circle {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  position: relative;
  font-size: 6px;
  color: var(--text);
  flex-shrink: 0;
  border-radius: 50%;
}
.battery-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--text) 0deg 345.6deg,
    var(--line) 345.6deg 360deg
  );
  mask-image: radial-gradient(circle, transparent 59%, #000 63%);
}
.battery-circle.battery-preview {
  width: 21px;
  height: 21px;
  font-size: 8px;
  margin-bottom: 8px;
}
.battery-circle.battery-preview::before {
  background: conic-gradient(
    var(--text) 0deg 273.6deg,
    var(--line) 273.6deg 360deg
  );
}
.classic-battery-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 8px;
}
.analogue-clock {
  width: 180px;
  height: 180px;
  position: relative;
  margin: 10px auto 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.clock-tick {
  position: absolute;
  width: 2px;
  height: 8px;
  left: 88px;
  top: 8px;
  background: var(--muted);
  transform-origin: 1px 81px;
}
.hour-hand,
.minute-hand {
  position: absolute;
  left: 87px;
  bottom: 89px;
  width: 4px;
  height: 48px;
  transform-origin: center bottom;
  background: var(--text);
  border-radius: 4px;
}
.minute-hand {
  height: 66px;
  width: 2px;
  left: 88px;
  background: var(--accent);
}
.clock-pin {
  width: 8px;
  height: 8px;
  position: absolute;
  left: 85px;
  top: 85px;
  border-radius: 50%;
  background: var(--accent);
}
/* Native source uses a 1440 x 3168 portrait canvas. Keep the main scene
 * proportions close to that canvas while retaining browser-readable targets. */
.phone {
  font-size: calc(clamp(11px, 2.9cqw, 13px) * var(--density));
}
.scene-heading h2 {
  font-size: calc(clamp(15px, 3.6cqw, 18px) * var(--density));
}
.app-card {
  min-height: 111px;
}
.app-card.wide {
  min-height: 111px;
}
.plugin-grid .app-card {
  height: 95px;
  min-height: 95px;
}
.menu-card {
  min-height: 94px;
}
.lock-unlock {
  margin: 45px auto 0;
  max-width: 250px;
  background: var(--panel);
  border-radius: 28px;
  padding: 7px 13px;
}
.lock-unlock input {
  display: block;
  margin: 0;
  height: 30px;
}
.lock-unlock span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  padding-bottom: 4px;
}
.theme-thumb {
  height: 85px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 12px;
  margin-bottom: 15px;
  background: var(--inset);
}
.theme-thumb .icon-plate {
  width: auto;
  height: auto;
}
.swipe-label {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 10px 0 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1600px) {
  .demo-layout {
    gap: 140px;
    max-width: 1320px;
    grid-template-columns: 1fr 460px;
  }
  .phone {
    height: min(950px, calc(100svh - 170px));
  }
}
@media (max-width: 800px) {
  .demo-topbar {
    height: 59px;
    padding: 0 20px;
  }
  .demo-brand span {
    font-size: 10px;
  }
  .demo-brand img {
    width: 72px;
  }
  .demo-layout {
    padding: 24px;
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  }
  .demo-intro h1 {
    font-size: 38px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .demo-shortcuts {
    margin: 22px 0;
  }
  .demo-shortcuts button {
    padding: 11px 8px;
    gap: 10px;
  }
  .demo-shortcuts small {
    font-size: 9px;
  }
  .phone {
    min-height: 500px;
    height: calc(100svh - 150px);
  }
}
@media (max-width: 640px) {
  .demo-topbar {
    padding: 0 15px;
    height: 51px;
  }
  .demo-brand {
    gap: 12px;
  }
  .demo-brand span {
    padding-left: 12px;
    font-size: 9px;
  }
  .site-back {
    font-size: 10px;
  }
  .demo-layout {
    display: flex;
    flex-direction: column;
    padding: 0 12px 20px;
    gap: 0;
    min-height: 0;
  }
  .demo-stage {
    order: 0;
    max-width: 440px;
  }
  .demo-intro {
    order: 1;
    max-width: 440px;
    padding: 30px 8px 0;
  }
  .demo-intro h1 {
    font-size: 37px;
  }
  .demo-intro h1 br {
    display: none;
  }
  .intro-copy {
    font-size: 13px;
  }
  .demo-shortcuts {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .demo-shortcuts button {
    gap: 8px;
    align-items: flex-start;
    padding: 13px 9px;
  }
  .demo-shortcuts button > svg {
    width: 17px;
    height: 17px;
  }
  .demo-shortcuts button span {
    font-size: 10px;
  }
  .demo-shortcuts button small {
    font-size: 8px;
  }
  .demo-shortcuts b {
    display: none;
  }
  .stage-toolbar {
    margin: 10px 4px;
    font-size: 7px;
    min-height: 23px;
  }
  .stage-toolbar button {
    font-size: 8px;
  }
  .phone {
    height: calc(100svh - 127px);
    min-height: 460px;
    max-height: 900px;
    border-radius: 24px;
    box-shadow: 0 0 0 3px #1b1d21;
  }
  .stage-hint {
    font-size: 8px;
    margin-top: 9px;
  }
  .recovery-content {
    padding: 22px 16px;
  }
  .demo-intro .eyebrow {
    font-size: 9px;
  }
  .source-note {
    font-size: 9px;
  }
  .simulation-note p {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .recovery-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .phone {
    font-size: calc(12px * var(--density));
  }
  .statusbar {
    padding: 0 15px;
  }
  .app-card {
    min-height: 126px;
  }
  .plugin-grid .app-card {
    min-height: 98px;
    height: 98px;
  }
  .menu-card {
    padding: 10px;
  }
  .menu-card .menu-title {
    gap: 5px;
  }
  .menu-card .icon-plate {
    width: 25px;
    height: 25px;
  }
  .recovery-dock {
    margin-left: 9px;
    margin-right: 9px;
  }
  .recovery-dock button {
    font-size: 10px;
  }
}
.offline-state {
  color: var(--amber);
  font-size: 0.9em;
  font-weight: 500;
}
.stage-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.gesture-bar {
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 4;
  touch-action: none;
}
.gesture-bar span {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 4px;
  background: var(--muted);
  opacity: 0.55;
}
.immersive-exit {
  display: none;
  position: absolute;
  right: 7px;
  bottom: 0;
  z-index: 12;
  padding: 3px 5px;
  border: 0;
  background: var(--canvas);
  color: var(--accent);
  border-radius: 4px;
  font:
    8px/1.3 Montserrat,
    sans-serif;
}
body.demo-immersive {
  overflow: hidden;
}
body.demo-immersive .demo-stage,
.demo-stage:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  max-width: none;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090a;
}
body.demo-immersive .stage-toolbar,
body.demo-immersive .stage-hint,
.demo-stage:fullscreen .stage-toolbar,
.demo-stage:fullscreen .stage-hint {
  display: none;
}
body.demo-immersive .phone,
.demo-stage:fullscreen .phone {
  flex: none;
  width: min(100vw, calc(100dvh * 0.48));
  height: 100dvh;
  min-height: 0;
  max-height: none;
  max-width: 600px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.demo-immersive .immersive-exit,
.demo-stage:fullscreen .immersive-exit {
  display: block;
  bottom: env(safe-area-inset-bottom, 0px);
}
body.demo-immersive .gesture-bar,
.demo-stage:fullscreen .gesture-bar {
  bottom: env(safe-area-inset-bottom, 0px);
}
.plugin-grid[data-cols="4"] .native-glyph,
.plugin-grid[data-cols="5"] .native-glyph {
  font-size: 21px;
}
@media (orientation: portrait) {
  body.demo-immersive .phone,
  .demo-stage:fullscreen .phone {
    width: 100vw;
    max-width: none;
  }
}
