/* Lucent · 灵感台 — web surfaces and narrow presentation refinements. */
:root { --aira-accent: #0a59f7; --aira-on-accent: #fff; }
:root[data-browser-demo] .tile:not(.add) .ticon > svg { width: 24px; height: 24px; }
:root[data-browser-demo] .abtn.primary { box-shadow: 0 6px 22px rgba(10,89,247,.24), inset 0 1px 0 rgba(255,255,255,.26); }
@media (min-width:900px) { :root[data-browser-demo] .page { padding-bottom:60px; } }
@media (max-width:899px) {
  :root[data-browser-demo] #btnHistory { position: relative; top: auto; right: auto; height: 36px; margin: 0 0 20px auto; transform: none; font-size: 12px; }
}
@media (max-width:600px) {
  :root[data-browser-demo] .topbar { padding-left: 22px; padding-right: 22px; }
  :root[data-browser-demo] .page { padding-left: 22px; padding-right: 22px; }
  :root[data-browser-demo] .actions { gap: 7px; }
  :root[data-browser-demo] .abtn { height: 39px; padding: 0 10px; gap: 5px; font-size: 12px; letter-spacing: .02em; }
  :root[data-browser-demo] .abtn svg { width: 15px; height: 15px; }
}

/* ————————————————————————————————————————————————
   Browser demonstration surfaces
   A cool-glass reading of HarmonyOS: one continuous pane,
   a fine blue light seam, quiet rows, generous air.
   ———————————————————————————————————————————————— */
.ab-overlay {
  --ab-ink: #16243a;
  --ab-muted: #5d718b;
  --ab-faint: #7e90a6;
  --ab-line: rgba(96, 126, 168, .15);
  --ab-accent: #0a59f7;
  --ab-accent-ink: #2c6fd8;
  --ab-mono: var(--mono);
  position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background:
    radial-gradient(90% 70% at 50% 8%, rgba(20, 52, 100, .16), transparent 62%),
    rgba(9, 20, 39, .36);
  isolation: isolate;
  color: var(--ab-ink);
  font: 15px/1.5 var(--sans);
  -webkit-backdrop-filter: blur(11px) saturate(.94);
  backdrop-filter: blur(11px) saturate(.94);
}
.ab-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  display: flex; flex-direction: column;
  overflow: hidden; outline: none;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .88);
  background:
    linear-gradient(148deg, rgba(255, 255, 255, .94) 0%, rgba(248, 251, 255, .87) 38%, rgba(230, 239, 252, .84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(158, 186, 224, .14),
    0 46px 130px rgba(4, 16, 38, .38),
    0 10px 28px rgba(8, 24, 52, .12);
  -webkit-backdrop-filter: blur(46px) saturate(1.3);
  backdrop-filter: blur(46px) saturate(1.3);
  animation: ab-arrive .26s cubic-bezier(.2, .8, .28, 1) both;
}
.ab-dialog::before {
  content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(10, 89, 247, .58) 34%, rgba(108, 196, 255, .5) 62%, transparent 96%);
  opacity: .75;
}
.ab-dialog::after {
  content: ""; position: absolute; z-index: 0; left: -18%; top: -32%; width: 72%; height: 70%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(219, 235, 255, .18) 58%, transparent 74%);
  opacity: .55;
}
.ab-dialog > * { position: relative; z-index: 1; }
.ab-header {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 33px 34px 36px;
  border-bottom: 1px solid rgba(105, 134, 174, .14);
  flex-shrink: 0;
}
/* Above the header's rule, on the right: these panels stand in for the browser's own. */
.ab-demo-note {
  position: absolute; right: 34px; bottom: 11px; margin: 0;
  font: 600 12.5px/1.45 var(--sans); letter-spacing: .02em; color: #1a7f37; white-space: nowrap;
}
.ab-mark {
  width: 48px; height: 48px; flex-shrink: 0; margin-top: 4px;
  display: grid; place-items: center;
  border-radius: 15px;
  color: #1e63d6;
  border: 1px solid rgba(10, 89, 247, .17);
  background: linear-gradient(148deg, rgba(255, 255, 255, .82), rgba(10, 89, 247, .09));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 7px 20px rgba(10, 89, 247, .11);
}
.ab-mark svg { width: 24px; height: 24px; stroke-width: 1.45; }
.ab-headings { flex: 1; min-width: 0; }
.ab-eyebrow {
  display: block;
  font: 650 9.5px/1.5 var(--ab-mono);
  letter-spacing: .17em;
  color: #6d8099;
  text-transform: uppercase;
}
.ab-dialog h2 {
  margin: 7px 0 6px;
  font-size: 27px; font-weight: 580; line-height: 1.24;
  letter-spacing: .015em;
  color: #142238;
  overflow-wrap: anywhere;
}
.ab-subtitle { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ab-muted); letter-spacing: .015em; }
.ab-body {
  min-height: 0; padding: 25px 34px 30px;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(93, 116, 150, .25) transparent;
}
.ab-body::-webkit-scrollbar { width: 8px; }
.ab-body::-webkit-scrollbar-thumb { background: rgba(93, 116, 150, .22); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.ab-dialog button, .ab-dialog input, .ab-dialog textarea, .ab-dialog select { font: inherit; }

/* Actions */
.ab-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 43px; padding: 10px 17px;
  border-radius: 13px;
  border: 1px solid rgba(118, 146, 184, .25);
  background: linear-gradient(165deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .24));
  color: var(--ab-ink); text-decoration: none; cursor: pointer;
  font-size: 13.5px; line-height: 1.35; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: background .18s, transform .16s, border-color .18s, box-shadow .18s;
}
.ab-btn:hover { background: rgba(255, 255, 255, .74); border-color: rgba(88, 128, 184, .38); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(22, 54, 100, .07); }
.ab-btn:active { transform: translateY(1px); }
.ab-btn.ab-primary {
  color: white;
  border-color: rgba(37, 96, 232, .4);
  background: linear-gradient(180deg, #2f7bff 0%, #0a59f7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -1px 0 rgba(2, 42, 140, .2),
    0 9px 24px rgba(10, 89, 247, .28);
}
.ab-btn.ab-primary:hover { background: linear-gradient(180deg, #3f87ff 0%, #1462f8 100%); border-color: rgba(37, 96, 232, .5); }
.ab-btn.ab-icon {
  width: 36px; min-height: 36px; height: 36px; padding: 8px; margin: -4px -6px 0 0;
  border-radius: 50%; border: 1px solid transparent;
  background: rgba(79, 110, 152, .075);
  box-shadow: none; color: #536882;
}
.ab-btn.ab-icon:hover { background: rgba(79, 110, 152, .14); border-color: transparent; }
.ab-btn.ab-icon svg { width: 17px; height: 17px; }
.ab-btn.ab-quiet { background: none; border: 0; padding: 7px 10px; color: var(--ab-faint); font-size: 11.5px; min-height: 32px; box-shadow: none; }
.ab-btn.ab-quiet:hover { background: rgba(255, 255, 255, .38); box-shadow: none; }
.ab-dialog :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 3px; }
.ab-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Section headings */
.ab-section { display: flex; align-items: center; gap: 11px; margin: 27px 0 14px; }
.ab-section:first-child { margin-top: 2px; }
.ab-section-title {
  margin: 0; flex: none;
  font: 650 10px/1 var(--ab-mono);
  letter-spacing: .13em; color: #6b7f98;
}
.ab-count {
  flex: none; min-width: 21px; height: 20px; padding: 0 7px;
  display: inline-grid; place-items: center;
  border-radius: 20px;
  font: 600 10px/1 var(--ab-mono);
  color: #4d6c96;
  background: rgba(10, 89, 247, .08);
  border: 1px solid rgba(10, 89, 247, .1);
}
.ab-section-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(103, 132, 171, .24), rgba(103, 132, 171, .02)); }
.ab-note { color: var(--ab-faint); font-size: 11.5px; line-height: 1.85; margin: 15px 0; letter-spacing: .01em; }

/* Rows: small panes of glass rather than a flat list */
.ab-row {
  appearance: none; display: flex; align-items: center; width: 100%; text-align: left; gap: 14px;
  min-height: 70px; margin: 0 0 9px; padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 17px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66);
  color: var(--ab-ink);
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
button.ab-row { cursor: pointer; }
button.ab-row:hover {
  background: linear-gradient(158deg, rgba(255, 255, 255, .72), rgba(245, 250, 255, .34));
  border-color: rgba(10, 89, 247, .19);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(20, 54, 104, .08);
  transform: translateY(-1px);
}
button.ab-row:active { transform: translateY(0); }
.ab-row-icon {
  width: 39px; height: 39px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px;
  color: #2f6dcf;
  border: 1px solid rgba(10, 89, 247, .12);
  background: linear-gradient(150deg, rgba(255, 255, 255, .68), rgba(10, 89, 247, .075));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.ab-row-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.ab-row-text { flex: 1; min-width: 0; }
.ab-row-text strong { display: block; font-size: 14.5px; font-weight: 560; letter-spacing: .015em; overflow-wrap: anywhere; }
.ab-row-text > span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--ab-muted); overflow-wrap: anywhere; }
.ab-row-arrow { width: 17px; height: 17px; flex-shrink: 0; color: #7f95b1; opacity: .58; transition: opacity .18s, transform .18s, color .18s; }
button.ab-row:hover .ab-row-arrow { opacity: 1; transform: translateX(2px); color: var(--ab-accent-ink); }
.ab-tag {
  flex: none; padding: 3px 8px;
  border-radius: 20px;
  font: 600 9.5px/1.5 var(--ab-mono); letter-spacing: .05em; color: #50749f;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(107, 138, 179, .18);
  white-space: nowrap;
}
.ab-managed-row { display: flex; align-items: center; gap: 2px; }
.ab-managed-row > .ab-row { flex: 1; min-width: 0; margin-bottom: 6px; }

/* Empty state */
.ab-empty {
  display: flex; align-items: center; gap: 19px;
  padding: 21px 20px; margin: 2px 0 4px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, .62);
  background: linear-gradient(140deg, rgba(255, 255, 255, .42), rgba(224, 238, 255, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 30px rgba(20, 54, 104, .04);
}
.ab-empty-orb {
  position: relative; width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12) 42%, transparent 58%),
    radial-gradient(circle at 62% 68%, rgba(10, 89, 247, .2), rgba(10, 89, 247, .03) 62%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px rgba(10, 89, 247, .11);
}
.ab-empty-orb::before, .ab-empty-orb::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.ab-empty-orb::before { inset: -7px; border: 1px solid rgba(10, 89, 247, .16); border-top-color: rgba(10, 89, 247, .5); transform: rotate(-24deg); }
.ab-empty-orb::after { inset: 13px; border: 1px solid rgba(76, 128, 196, .22); border-bottom-color: rgba(84, 190, 255, .62); }
.ab-empty-orb i {
  position: absolute; right: 2px; top: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: #59bbff; box-shadow: 0 0 0 4px rgba(89, 187, 255, .13), 0 0 12px rgba(89, 187, 255, .75);
}
.ab-empty-copy strong { display: block; font-size: 14px; font-weight: 570; letter-spacing: .015em; }
.ab-empty-copy p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ab-muted); }

/* Forms */
.ab-field { display: block; margin: 0 0 17px; }
.ab-field-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 560; letter-spacing: .04em; color: var(--ab-muted); }
.ab-input {
  box-sizing: border-box; display: block; width: 100%;
  min-height: 48px; padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(126, 152, 188, .3);
  background: rgba(255, 255, 255, .38);
  color: var(--ab-ink);
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(31, 60, 100, .04), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.ab-input::placeholder { color: #8291a5; }
.ab-input:focus { outline: none; border-color: rgba(10, 89, 247, .55); background: rgba(255, 255, 255, .66); box-shadow: 0 0 0 3px rgba(10, 89, 247, .1), inset 0 1px 0 rgba(255, 255, 255, .8); }
.ab-input:focus-visible { outline: none; }
.ab-feedback { margin: 0; padding: 14px 34px; font-size: 12px; color: var(--ab-ink); background: rgba(219, 232, 255, .46); border-top: 1px solid rgba(112, 137, 175, .14); flex-shrink: 0; }
.ab-feedback[hidden] { display: none; }

.ab-destination { padding: 22px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 18px; background: rgba(255, 255, 255, .22); overflow-wrap: anywhere; }
.ab-destination strong { display: block; font-size: 20px; font-weight: 540; }
.ab-destination span { display: block; margin-top: 8px; font-size: 12px; color: var(--ab-muted); line-height: 1.8; }

.ab-segment { display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px; background: rgba(95, 130, 180, .075); }
.ab-segment .ab-btn { flex: 1; min-height: 37px; padding: 8px; border: 0; background: none; box-shadow: none; }
.ab-segment .ab-btn[aria-pressed="true"] { color: #0a59f7; background: rgba(255, 255, 255, .74); box-shadow: 0 2px 8px rgba(42, 63, 95, .08), inset 0 1px 0 #fff; }

.ab-scan-stage {
  position: relative; height: 190px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .6);
  background:
    linear-gradient(rgba(10, 89, 247, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 89, 247, .045) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 30%, rgba(95, 158, 255, .14), transparent 70%);
  background-size: 24px 24px, 24px 24px, auto;
  color: #4d75a6; overflow: hidden;
}
.ab-scan-stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 190, 255, .8), transparent);
  box-shadow: 0 0 14px rgba(84, 190, 255, .5);
  animation: ab-scan 3.6s ease-in-out infinite;
}
.ab-scan-stage svg { width: 72px; height: 72px; stroke-width: .75; color: #4f7bab; }
.ab-scan-stage span { font: 600 10px/1 var(--ab-mono); letter-spacing: .17em; }

/* Shortcut marks kept locally drawn */

/* Dark */
:root[data-theme="dark"] .ab-overlay {
  --ab-ink: #e9eff8; --ab-muted: #b3c1d4; --ab-faint: #93a5bc;
  --ab-line: rgba(168, 194, 230, .14);
  background:
    radial-gradient(90% 70% at 50% 8%, rgba(52, 105, 190, .16), transparent 62%),
    rgba(4, 10, 22, .5);
}
:root[data-theme="dark"] .ab-dialog {
  border-color: rgba(191, 212, 244, .22);
  background: linear-gradient(148deg, rgba(42, 56, 78, .92) 0%, rgba(22, 35, 56, .9) 46%, rgba(30, 46, 72, .92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(120, 168, 230, .08),
    0 46px 130px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .ab-dialog::before { background: linear-gradient(90deg, transparent 4%, rgba(63, 135, 255, .6) 34%, rgba(94, 195, 255, .45) 62%, transparent 96%); }
:root[data-theme="dark"] .ab-dialog::after { background: radial-gradient(closest-side, rgba(112, 162, 232, .18), transparent 72%); opacity: .7; }
:root[data-theme="dark"] .ab-mark { color: #a9c8ff; border-color: rgba(120, 170, 245, .25); background: linear-gradient(148deg, rgba(255, 255, 255, .08), rgba(10, 89, 247, .16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 20px rgba(0, 0, 0, .24); }
:root[data-theme="dark"] .ab-eyebrow { color: #9db2cc; }
:root[data-theme="dark"] .ab-demo-note { color: #3fb950; }
:root[data-theme="dark"] .ab-dialog h2 { color: #eef3fb; }
:root[data-theme="dark"] .ab-btn { border-color: rgba(165, 191, 226, .24); background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .ab-btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(150, 185, 232, .36); }
:root[data-theme="dark"] .ab-btn.ab-primary { background: linear-gradient(180deg, #2f7bff, #0a59f7); }
:root[data-theme="dark"] .ab-btn.ab-icon { color: #b9c9de; background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .ab-btn.ab-quiet { color: #9db2cc; }
:root[data-theme="dark"] .ab-input { background: rgba(7, 18, 36, .3); border-color: rgba(145, 174, 214, .25); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .ab-input:focus { background: rgba(7, 18, 36, .45); }
:root[data-theme="dark"] .ab-section-title { color: #9db2cc; }
:root[data-theme="dark"] .ab-count { color: #a9c7f5; background: rgba(70, 130, 230, .16); border-color: rgba(120, 170, 245, .18); }
:root[data-theme="dark"] .ab-row { border-color: rgba(255, 255, 255, .075); background: linear-gradient(158deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
:root[data-theme="dark"] button.ab-row:hover { background: linear-gradient(158deg, rgba(255, 255, 255, .1), rgba(90, 140, 220, .06)); border-color: rgba(120, 170, 245, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 28px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .ab-row-icon { color: #a9c8ff; border-color: rgba(120, 170, 245, .16); background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(10, 89, 247, .14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .ab-tag { color: #a9c4e8; background: rgba(255, 255, 255, .05); border-color: rgba(150, 180, 220, .16); }
:root[data-theme="dark"] .ab-empty { border-color: rgba(120, 160, 215, .25); background: linear-gradient(140deg, rgba(255, 255, 255, .055), rgba(30, 70, 130, .12)); }
:root[data-theme="dark"] .ab-empty-orb { border-color: rgba(180, 210, 255, .3); background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .04) 42%, transparent 58%), radial-gradient(circle at 62% 68%, rgba(60, 140, 255, .35), rgba(10, 89, 247, .06) 62%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 22px rgba(0, 0, 0, .22); }
:root[data-theme="dark"] .ab-segment, :root[data-theme="dark"] .ab-destination, :root[data-theme="dark"] .ab-scan-stage { border-color: rgba(174, 199, 235, .18); background-color: rgba(255, 255, 255, .025); }
:root[data-theme="dark"] .ab-segment .ab-btn[aria-pressed="true"] { color: #abc7ff; background: rgba(128, 166, 222, .2); }
:root[data-theme="dark"] .ab-feedback { background: rgba(60, 98, 158, .2); }

@keyframes ab-arrive { from { opacity: 0; transform: translateY(10px) scale(.986); } to { opacity: 1; transform: none; } }
@keyframes ab-scan { 0%, 100% { top: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 50% { top: 92%; } }

@media (max-width: 600px) {
  .ab-overlay { padding: 12px; }
  .ab-dialog { max-height: calc(100dvh - 24px); border-radius: 23px; }
  .ab-header { padding: 23px 20px 32px; gap: 12px; }
  .ab-demo-note { right: 20px; bottom: 9px; font-size: 12px; }
  .ab-dialog h2 { font-size: 22px; }
  .ab-body { padding: 19px 20px 22px; }
  .ab-mark { width: 38px; height: 38px; border-radius: 12px; }
  .ab-mark svg { width: 20px; height: 20px; }
  .ab-row { min-height: 64px; padding: 11px 12px; gap: 11px; }
  .ab-row-icon { width: 35px; height: 35px; border-radius: 11px; }
  .ab-feedback { padding: 12px 20px; }
  .ab-managed-row .ab-row { gap: 6px; }
  .ab-empty { gap: 14px; padding: 17px 15px; }
  .ab-empty-orb { width: 50px; height: 50px; }
  .ab-row-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-dialog { animation: none; }
  .ab-btn, button.ab-row, .ab-row-arrow { transition: none; }
  .ab-scan-stage::after { animation: none; top: 50%; opacity: .6; }
}

/* ————————————————————————————————————————————————
   Immersive full screen (web/immersive.js): a quiet first-visit hint
   ———————————————————————————————————————————————— */
.lx-immersive-hint {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 2147481900;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 8px 7px 20px; border-radius: 999px;
  color: rgba(248, 249, 253, .94);
  font: 500 13px/1.2 var(--sans);
  letter-spacing: .04em; white-space: nowrap;
  background: rgba(16, 18, 28, .42);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  opacity: 0; transform: translate(-50%, 8px);
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .9, .3, 1);
  pointer-events: none;
}
.lx-immersive-hint.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lx-immersive-main { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.lx-immersive-hint button { appearance: none; margin: 0; border: 0; font: inherit; cursor: pointer; }
.lx-immersive-go {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 13px; border-radius: 999px;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(180deg, #2f7bff, #0a59f7);
  box-shadow: 0 6px 18px rgba(10, 89, 247, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.lx-immersive-go svg { width: 14px; height: 14px; }
.lx-immersive-go:hover { filter: brightness(1.08); }
.lx-immersive-close {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  color: rgba(248, 249, 253, .66); background: rgba(255, 255, 255, .08);
}
.lx-immersive-close svg { width: 12px; height: 12px; }
.lx-immersive-close:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.lx-immersive-hint button:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
/* In full screen, a quiet line in the lower left: this is the web demo; the flagship is the tablet. */
.lx-demo-note {
  position: fixed; left: 16px; bottom: calc(9px + env(safe-area-inset-bottom, 0px)); z-index: 2147482400;
  margin: 0; color: rgba(255, 255, 255, .86); font: 500 11px/1.45 var(--sans); letter-spacing: .03em;
  text-shadow: 0 1px 10px rgba(4, 10, 24, .55), 0 0 1px rgba(4, 10, 24, .4);
  pointer-events: none; opacity: 0; transition: opacity .42s ease;
}
.lx-demo-note.is-visible { opacity: 1; }
.lx-immersive-keys { color: rgba(248, 249, 253, .62); font-size: 12px; }
.lx-immersive-hint kbd {
  display: inline-block; min-width: 1.5em; padding: 2px 5px; border-radius: 5px; text-align: center;
  font: 600 11px/1 var(--mono);
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .08);
}
@media (prefers-reduced-motion: reduce) { .lx-immersive-hint, .lx-demo-note { transition: none; } }

/* The MatePad's own chrome on large screens, measured from a screenshot of the device (1418 × 945 CSS px
   at 2.2×): HarmonyOS's status bar, which insets the page by 39 px as it does on the device, then, in full
   screen only, Aira's toolbar and the gesture bar (a window has its browser's own). Phones, narrow windows
   and screens shorter than 740 px (where the chrome would sit on the card) keep their own browser's chrome. */
.ab-statusbar, .ab-toolbar, .ab-gesture { display: none; }
@media (min-width: 900px) and (min-height: 740px) {
  :root[data-browser-demo] { --safe-t: 39px; }
  :root[data-browser-demo] .ab-statusbar {
    display: block; position: fixed; inset: 0 0 auto; height: 39px; z-index: 2147483000;
    pointer-events: none; color: #fff; fill: currentColor; font-family: var(--sans);
  }
  .ab-sb-time { position: absolute; left: 15.8px; top: 12.6px; font-size: 14.5px; font-weight: 600; line-height: 1; letter-spacing: .45px; white-space: nowrap; text-shadow: 0 0 1px rgba(8, 16, 34, .35); }
  .ab-sb-colon { position: relative; top: -1.1px; }
  .ab-sb-handle { position: absolute; left: 50%; top: 12.7px; display: flex; gap: 5px; transform: translateX(-50%); }
  .ab-sb-handle i { width: 5.5px; height: 5.5px; border-radius: 2.75px; background: rgba(255, 255, 255, .13); }
  .ab-sb-handle i:nth-child(2) { width: 14.5px; }
  .ab-sb-icons { position: absolute; right: 17.5px; top: 13.6px; width: 49.6px; height: 12.8px; }
  .ab-sb-icons svg { display: block; width: 100%; height: 100%; overflow: visible; }

  :root[data-browser-demo][data-immersive="full"] .ab-toolbar {
    display: flex; gap: 8.2px; position: fixed; left: 50%; bottom: 35.5px; z-index: 20;
    transform: translateX(-50%); font-family: var(--sans);
  }
  .ab-tb-round, .ab-tb-bar {
    height: 47.7px; border: 1px solid rgba(255, 255, 255, .42); color: #222529;
    background: linear-gradient(180deg, rgba(222, 223, 228, .72) 0%, rgba(240, 241, 244, .8) 45%,
      rgba(244, 245, 247, .82) 70%, rgba(228, 229, 233, .74) 100%);
    box-shadow: 0 10px 26px rgba(4, 10, 24, .2), inset 0 1px 0 rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  }
  .ab-tb-round { width: 47.7px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
  .ab-tb-round svg { display: block; }
  .ab-tb-back svg { width: 14px; height: 11.4px; color: #7c7f86; }
  .ab-tb-menu svg { width: 16px; height: 13px; }
  .ab-tb-bar { position: relative; width: 827.7px; border-radius: 23.85px; }
  .ab-tb-bar button { position: absolute; top: 0; height: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
  .ab-tb-bar .ab-tb-forward { left: 18.6px; width: 14.6px; color: #7c7f86; }
  .ab-tb-forward svg { width: 14px; height: 11.4px; }
  .ab-tb-bar .ab-tb-address { left: 48px; right: 48px; font: 400 15px/1 var(--sans); color: #5d6168; }
  .ab-tb-bar .ab-tb-tabs { right: 17.7px; width: 16.4px; }
  .ab-tb-tabs svg { width: 16.4px; height: 16px; fill: currentColor; }
  .ab-tb-round:disabled, .ab-tb-bar button:disabled { cursor: default; }
  .ab-tb-round:focus-visible, .ab-tb-bar button:focus-visible { outline: 2px solid var(--aira-accent); outline-offset: 2px; }
  :root[data-browser-demo][data-immersive="full"] .ab-gesture {
    display: block; position: fixed; left: 50%; bottom: 6.9px; z-index: 20; width: 305.5px; height: 4.6px;
    border-radius: 2.3px; background: rgba(255, 255, 255, .1); transform: translateX(-50%); pointer-events: none;
  }
  /* Aira in dark mode: the same glass, smoked. */
  :root[data-theme="dark"] .ab-tb-round, :root[data-theme="dark"] .ab-tb-bar {
    color: #e8ebf1; border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(50, 54, 64, .74) 0%, rgba(40, 44, 54, .8) 60%, rgba(46, 50, 60, .76) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  :root[data-theme="dark"] .ab-tb-back svg, :root[data-theme="dark"] .ab-tb-bar .ab-tb-forward { color: #8e939d; }
  :root[data-theme="dark"] .ab-tb-bar .ab-tb-address { color: #b8bdc7; }
  :root[data-theme="dark"][data-browser-demo][data-immersive="full"] .ab-gesture { background: rgba(255, 255, 255, .14); }
}
