:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
  --text: #f2f7f8;
  --muted: #b5c8d0;
  --mint: #b8f3dc;
  --focus: #9cead0;
  --surface: #122129;
  --edge: #bcd7df29;
  --wallpaper: url("assets/desktop.jpg");
  --key-width: min(100% - 154px, 1120px);
  --key-gap: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #0d181e; color: var(--text); }
body { line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: #b8f3dc; color: #132d25; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-header, .menubar, .menu-left, .desktop-brand {
  display: flex; align-items: center;
}
.site-header {
  position: absolute; z-index: 1; inset: 0 0 auto;
  justify-content: space-between; gap: 12px;
  min-height: 70px; padding: 0 var(--intro-gutter);
  background: linear-gradient(#08161ccb, #08161c00);
}
.site-help, .notice-help {
  min-height: 32px; border: 0; border-radius: 6px; padding: 4px 8px;
  background: transparent; color: #c8e4e2; font-size: .8rem; white-space: nowrap;
}
.site-help:hover, .notice-help:hover { color: #effff7; background: #c0ebeb17; }
.desktop-brand, .menu-action, .desktop-menu summary {
  border: 0; border-radius: 6px; color: var(--text); background: transparent;
  min-height: 34px; padding: 4px 9px; white-space: nowrap;
}
.desktop-brand { padding-left: 0; gap: 9px; font-size: 1.05rem; font-weight: 680; }
.desktop-brand img { border-radius: 7px; flex: none; }
:is(.desktop-brand, .menu-action, .desktop-menu > summary):hover, .desktop-menu[open] > summary {
  background: #d6edf41a;
}
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 39px; padding: 6px 15px; border: 1px solid transparent; border-radius: 9px;
  background: var(--mint); color: #132d25; font-size: .9rem; font-weight: 720; white-space: nowrap;
}
.download:hover { background: #d5f9ec; }
.download-outline { color: var(--text); background: #142129e8; border-color: #d5e3e777; }
.download-outline:hover { background: #22333e; }

.lock {
  --intro-gutter: clamp(21px, 3.7vw, 62px);
  --intro-inset: clamp(150px, 16vw, 300px);
  height: 100vh; height: 100dvh;
  min-height: 410px; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: #102026;
}
.intro-stage { position: relative; display: grid; min-width: 0; min-height: 0; isolation: isolate; }
.intro-navigation {
  position: absolute; z-index: 1; inset-inline-start: var(--intro-gutter); top: 50%;
  transform: translateY(-50%); display: grid; gap: 8px;
}
.intro-navigation a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
}
.intro-navigation a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a4b8be;
}
.intro-navigation a:hover::before { background: #def8f0; }
.intro-navigation a[aria-current="location"]::before {
  width: 10px; height: 10px; background: var(--mint); outline: 1px solid #c7f7e68c; outline-offset: 4px;
}
.intro-track {
  position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.intro-track::-webkit-scrollbar { display: none; }
.intro-track:focus-visible { outline-offset: -3px; }
.intro-slide {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-content: center; align-items: center; gap: clamp(22px, 5vw, 92px);
  min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  padding: clamp(57px, 9vh, 94px) max(var(--intro-gutter), 6vw) clamp(82px, 13vh, 146px) var(--intro-inset);
  background-color: #111e24; background-size: cover; background-position: center;
}
.intro-overview {
  background-image:
    linear-gradient(90deg, #08191fef, #0a2027d9 29%, #0b263344 68%, #0a293855),
    radial-gradient(ellipse at 76% 44%, #448b8b73, transparent 35%),
    linear-gradient(0deg, #091820, transparent 65%),
    var(--wallpaper);
  background-position: center, center, center, center 43%;
}
.intro-application {
  background-image:
    linear-gradient(90deg, #081a20f5, #0c2229e8 27%, #0b23308c 61%, #103e4944),
    linear-gradient(0deg, #0a1a20 0%, #0a1a2040 31%, transparent 60%),
    var(--wallpaper);
  background-position: center, center, center 55%;
}
.intro-capture {
  background-image:
    linear-gradient(90deg, #101d27f5, #10232de8 27%, #132e3f4f 68%, #0c253609),
    linear-gradient(0deg, #0b1b26, #0e20273a 53%, #1d304343),
    url("assets/point-reyes.jpg");
  background-position: center, center, center 68%;
}
.intro-hints {
  background-image:
    linear-gradient(90deg, #101a22f5, #0e1d27ec 27%, #122a398c 65%, #11283355),
    radial-gradient(ellipse at 74% 43%, #3a7d8178, #10202a00 58%),
    linear-gradient(0deg, #0b1921, #0b192139 56%), var(--wallpaper);
  background-position: center, center, center, center 74%;
}
.intro-copy :is(h1, h2) {
  color: #f4fbf9; font-size: clamp(2.12rem, 4.35vw, 4.9rem); font-weight: 695; letter-spacing: -.035em;
  line-height: 1.09; margin-bottom: clamp(15px, 3.4vh, 32px);
  text-shadow: 0 3px 27px #05121856;
}
.intro-copy em { color: var(--mint); font-style: normal; }
.intro-capture .intro-copy em { color: #c9eeff; }
.intro-copy p {
  max-width: 39ch; color: #d1e0e5; font-size: clamp(.97rem, 1.35vw, 1.23rem); line-height: 1.76;
  text-wrap: balance; text-shadow: 0 2px 13px #07171b;
}
.intro-visual {
  min-width: 0; width: 100%; max-width: 620px; display: grid; align-content: center;
  justify-self: center; justify-items: center; position: relative;
}
.visual-overview { --key-leader: clamp(15px, 2.7vw, 39px); gap: var(--key-leader); }
.overview-action {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px;
  border: 1px solid #bde9e66b; border-radius: 12px; background: #142b34e6;
  box-shadow: 0 10px 30px #061b2194; color: #e8faf3; font-weight: 650;
  font-size: clamp(.72rem, 1.25vw, 1rem);
}
.overview-action::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: var(--key-leader);
  background: linear-gradient(#b8f3dcaa, #b8f3dc3b); pointer-events: none;
}
.overview-action .app-icon { width: 31px; height: 31px; margin: 0; transform: none; }
.overview-action .app-icon::before { inset: 12px 6px 6px; }
.overview-action .app-icon::after { left: 6px; top: 9px; }
.overview-keyboard {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1.1vw, 15px);
  width: min(100%, 520px); padding: clamp(7px, 1.6vw, 24px);
  border: 1px solid #9abec092; border-radius: clamp(11px, 2.1vw, 25px);
  background: linear-gradient(154deg, #41606a, #182c35 72%);
  box-shadow: inset 0 1px #d3f2eb6b, 0 6px 2px #071e27, 0 19px 40px #04171db3;
  transform: perspective(560px) rotateX(17deg) rotateZ(-5deg);
}
.overview-keyboard kbd {
  display: grid; place-items: center; aspect-ratio: 1.15;
  border: 1px solid #708b91; border-radius: clamp(6px, 1.2vw, 15px);
  background: linear-gradient(145deg, #3d5158, #1b2a32 78%); color: #bfcecf;
  font-size: clamp(.9rem, 3.2vw, 3.4rem);
  box-shadow: inset 0 1px #e0f5ed38, 0 5px 2px #0e2028;
}
.overview-keyboard kbd:nth-child(2) {
  border-color: #c0f7e1c4; background: linear-gradient(145deg, #426e68, #244641 82%);
  color: #dcfff0; box-shadow: inset 0 1px #e4fff18a, 0 5px 2px #133730, 0 10px 20px #08252296;
}
.visual-app > kbd {
  display: grid; place-items: center; width: clamp(64px, 9.2vw, 148px); aspect-ratio: 1.06; border-radius: clamp(12px, 1.9vw, 25px);
  border: 1px solid #8dc9c1; background: linear-gradient(140deg, #3c575d, #15242c 78%); color: var(--mint);
  font-size: clamp(1.7rem, 4vw, 4.4rem); letter-spacing: -.04em;
  box-shadow: inset 0 1px #ffffff55, 0 6px 2px #101d25, 0 17px 30px #0008;
}
.app-branches {
  position: relative; margin-top: 8px; width: 50%; height: clamp(24px, 4.3vw, 62px);
  background: linear-gradient(#abdfd8, #abdfd8) center top / 1px 50% no-repeat;
}
.app-branches::after {
  content: ""; position: absolute; inset: 50% 0 0; border: 1px solid #abdfd8c4;
  border-bottom: 0; border-radius: 11px 11px 0 0;
}
.app-examples { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(7px, 1vw, 16px); }
.app-examples > div {
  position: relative; display: flex; align-items: center; min-width: 0; gap: clamp(6px, 1vw, 17px);
  padding: clamp(8px, 1.25vw, 22px); border: 1px solid #ddfff464; border-radius: 13px;
  background: #162f37e6; box-shadow: 0 13px 30px #0614187d; color: #f2fcf9;
}
.app-examples > div::after {
  position: absolute; content: ""; inset: -1px; border: 1px solid #c1ffe4;
  border-radius: inherit; opacity: 0; pointer-events: none;
}
.app-examples .app-icon { width: 39px; height: 39px; margin: 0; transform: none; flex: none; }
.app-examples :is(small, strong) { display: block; white-space: nowrap; }
.app-examples small { color: #a9c6ca; font-size: clamp(.69rem, 1vw, .85rem); }
.app-examples strong { font-size: clamp(.74rem, 1.38vw, 1.16rem); font-weight: 680; }
.intro-crop {
  position: relative; width: 100%; height: clamp(140px, 30vh, 375px);
  background: #89c6eb13;
  backdrop-filter: brightness(1.24) saturate(1.35);
}
.intro-crop-frame {
  position: absolute; inset: 0; border: 1px solid #dcf4f9;
  outline: 6px solid #06151d35;
}
.intro-crop-frame i { position: absolute; width: 9px; height: 9px; border: 1px solid #143a4a; border-radius: 2px; background: #e8fbff; }
.intro-crop-frame i:nth-child(1) { top: -5px; left: -5px; }
.intro-crop-frame i:nth-child(2) { top: -5px; right: -5px; }
.intro-crop-frame i:nth-child(3) { bottom: -5px; left: -5px; }
.intro-crop-frame i:nth-child(4) { bottom: -5px; right: -5px; }
.capture-examples { display: flex; justify-content: center; gap: 7px; margin-top: 19px; color: #f0fbff; font-size: .82rem; }
.capture-examples span { border: 1px solid #d3ebf56d; background: #102530e8; border-radius: 6px; padding: 4px 9px; white-space: nowrap; }
.capture-examples kbd { color: #c9eeff; margin-inline-end: 2px; }
.intro-hint-example, .intro-hardware-example {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%;
}
.intro-hint-example {
  padding: 7px; border: 1px solid #d8feec63; border-radius: 12px; background: #15272ced;
  box-shadow: 0 12px 35px #071821a5;
}
.intro-hint-example span {
  display: grid; place-content: center; justify-items: center; padding: 5px 2px; min-height: clamp(44px, 5.4vw, 87px);
  background: #283e3e; color: #f1faf4; border-radius: 6px; font-size: clamp(.67rem, 1.35vw, 1.02rem);
}
.intro-hint-example span:nth-child(2) { background: #3c645a; }
.intro-hint-example kbd, .intro-hardware-example kbd:nth-child(2) { color: var(--mint); }
.intro-hardware-example { margin-top: 14px; padding-inline: 7px; }
.intro-hardware-example kbd {
  display: grid; place-items: center; min-height: clamp(33px, 5.6vw, 84px);
  background: linear-gradient(#36484f, #1b282d); border: 1px solid #a6c2c367;
  border-radius: 7px; box-shadow: 0 4px 2px #111e25; color: #eef5f4;
}
.intro-hint-compact { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: .8rem; color: #d7e7e8; }
.intro-hint-compact span { width: clamp(36px, 6vw, 83px); height: 2px; border-radius: 2px; background: var(--mint); }
.intro-footer {
  position: absolute; inset: auto var(--intro-gutter) clamp(16px, 5vh, 51px) var(--intro-inset);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.intro-actions { display: flex; flex-wrap: wrap; gap: 9px; pointer-events: auto; }
.intro-actions .download { min-height: 47px; padding-inline: 17px; font-size: .94rem; }
.intro-actions .download-outline { border-color: #8dafb477; background: #11262ce6; }
.intro-actions .download-outline:hover { background: #273d47; }
.intro-next {
  flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0;
  border: 0; border-radius: 9px; color: #d9edef; background: transparent; font-size: .8rem;
  font-weight: 650; pointer-events: auto;
}
.intro-next-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #cce7e469;
  border-radius: 50%; background: #122931b9; color: #e9fcf7; font-size: 1rem;
}
.intro-next:hover .intro-next-icon { background: #2f5660; }
.intro-back-top .intro-next-icon { transform: rotate(180deg); }
.no-script { position: absolute; top: 8px; right: 8px; }

@media (max-width: 820px) {
  .lock { --intro-gutter: 14px; --intro-inset: 88px; }
  .intro-slide {
    grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start;
    gap: clamp(17px, 4vh, 35px); padding-right: 22px;
  }
  .intro-copy :is(h1, h2) { font-size: clamp(2rem, 6.3vw, 3.4rem); margin-bottom: 11px; }
  .intro-copy p { font-size: .93rem; max-width: 35ch; }
  .intro-visual { max-width: 420px; justify-self: start; }
  .intro-navigation { gap: 5px; }
  .intro-footer { bottom: 18px; }
}
@media (max-width: 480px) {
  .lock { --intro-gutter: 10px; --intro-inset: 57px; }
  .site-header { min-height: 50px; }
  .intro-slide { gap: 16px; padding: 54px 13px 62px var(--intro-inset); }
  .intro-overview, .intro-application, .intro-hints {
    background-position: center, center, 57% center, 57% center;
  }
  .intro-copy :is(h1, h2) { font-size: clamp(1.55rem, 6.8vw, 2rem); }
  .intro-copy p { font-size: .82rem; line-height: 1.57; }
  .intro-navigation a { width: 32px; height: 32px; }
  .overview-keyboard { width: min(92%, 263px); }
  .overview-keyboard kbd { aspect-ratio: 1.4; font-size: 1.35rem; }
  .visual-app > kbd { width: 49px; font-size: 1.46rem; }
  .app-branches { height: 20px; }
  .app-examples > div { padding: 6px; border-radius: 8px; gap: 4px; }
  .app-examples .app-icon { width: 21px; height: 21px; }
  .app-examples .finder-icon::before { inset: 8px 4px 4px; }
  .app-examples .finder-icon::after { width: 6px; height: 4px; left: 4px; top: 6px; }
  .app-examples .browser-icon::before { inset: 4px 4px; border-radius: 3px; }
  .app-examples .browser-icon::after { left: 6px; right: 6px; top: 8px; height: 1px; }
  .app-examples small { font-size: .57rem; }
  .app-examples strong { font-size: .66rem; }
  .intro-crop { height: clamp(94px, 21vh, 175px); }
  .capture-examples { gap: 4px; margin-top: 10px; font-size: .71rem; }
  .capture-examples span { padding: 3px 6px; }
  .intro-hint-example, .intro-hardware-example { gap: 4px; }
  .intro-hint-example { padding: 4px; }
  .intro-hardware-example { padding-inline: 4px; margin-top: 8px; }
  .intro-hint-compact { margin-top: 13px; font-size: .7rem; }
  .intro-footer { bottom: 13px; gap: 4px; }
  .intro-actions { gap: 5px; }
  .intro-actions .download { min-height: 38px; padding-inline: 8px; gap: 4px; font-size: .76rem; }
  .intro-next { margin-inline-start: auto; }
  .intro-next :first-child { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .intro-next-icon { width: 33px; height: 33px; }
}
@media (max-height: 630px) and (max-width: 820px) {
  .intro-slide { gap: 12px; padding-block: 48px 58px; }
  .intro-copy p { line-height: 1.54; }
  .visual-overview { --key-leader: 13px; }
  .intro-crop { height: 97px; }
  .intro-hint-example span { min-height: 36px; }
  .intro-hardware-example kbd { min-height: 28px; }
}
@media (650px <= width <= 820px) and (max-height: 740px) {
  .intro-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .intro-copy :is(h1, h2) { font-size: clamp(1.8rem, 4vw, 2.1rem); }
  .overview-keyboard { width: 94%; }
}
@media (max-width: 360px) {
  .intro-actions .download { padding-inline: 6px; gap: 3px; }
}
@media (max-height: 430px) {
  .intro-slide { min-height: max(100%, 310px); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-slide[data-current] .intro-copy { animation: intro-arrive .56s cubic-bezier(.2,.7,.24,1) both; }
  .intro-slide[data-current] .intro-visual { animation: intro-arrive .7s .06s cubic-bezier(.2,.7,.24,1) both; }
  .intro-overview[data-current] .overview-keyboard kbd:nth-child(2) { animation: intro-key-press .55s .72s ease-out; }
  .intro-application[data-current] .visual-app > kbd { animation: intro-key-press .56s .55s ease-out 2; }
  .intro-application[data-current] .app-examples > div::after { animation: intro-app-highlight .85s .57s ease both; }
  .intro-application[data-current] .app-examples > div:nth-child(2)::after { animation-delay: 1.15s; }
  .intro-capture[data-current] .intro-crop { animation: intro-frame .72s .18s cubic-bezier(.2,.7,.24,1) both; }
  .intro-hints[data-current] .intro-hint-example { transform-origin: bottom; animation: intro-hints-expand .58s .28s ease-out both; }
}
@keyframes intro-arrive {
  from { opacity: .72; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-key-press {
  42% { transform: translateY(4px) scale(.99); }
}
@keyframes intro-app-highlight {
  35%, 67% { opacity: 1; }
}
@keyframes intro-frame {
  from { opacity: .35; transform: scale(.76); }
}
@keyframes intro-hints-expand {
  from { opacity: .28; transform: translateY(8px) scaleY(.64); }
}
.lab {
  position: relative;
  height: 100vh; height: 100dvh;
  min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(0deg, #07172296, #10253212 56%, #0d20304f),
    var(--wallpaper) center / cover no-repeat, #144257;
}
.menubar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  position: relative; z-index: 5; gap: 8px; min-height: 42px; padding: 3px clamp(8px, 1.45vw, 23px);
  background: #14232f76; border-bottom: 1px solid #f3f8ff32;
  backdrop-filter: blur(22px) saturate(1.25); font-size: .83rem;
}
.menu-left { min-width: 0; gap: clamp(2px, .9vw, 12px); }
.menubar .menu-action, .menubar .desktop-menu > summary { min-height: 30px; }
.menubar .desktop-brand { font-size: .88rem; padding-inline-start: 0; gap: 7px; }
.menubar .desktop-brand img { border-radius: 5px; }
.active-app { font-weight: 730; }
.scene-switch {
  display: flex; justify-self: center; border: 1px solid #d8f1f138;
  border-radius: 8px; padding: 2px; gap: 2px; background: #172b36c9;
}
.scene-switch button {
  border: 0; background: transparent; color: #e3eeee; border-radius: 5px;
  min-height: 28px; padding: 3px 12px; white-space: nowrap;
  font-size: .78rem; font-weight: 590;
}
.scene-switch button:hover { background: #e4f6f71d; }
.scene-switch button[aria-pressed="true"] {
  color: #e4fff6; background: #3b665e; box-shadow: 0 1px 3px #00152365;
}
.desktop-utilities { display: flex; align-items: center; justify-self: end; gap: 7px; }
.brand-compact { display: none; }
.menubar .appearance { width: 29px; padding: 0; font: 650 1.14rem/1 system-ui, sans-serif; }
.desktop-download {
  min-height: 30px; padding: 2px 10px; border-radius: 7px;
  font-size: .79rem; gap: 5px;
}
.desktop-download:focus-visible {
  outline-color: #28594c; outline-offset: -3px;
}
.signal {
  display: inline-block; width: 7px; height: 7px; margin-inline-end: 4px;
  border: 1px solid currentColor; border-radius: 50%; vertical-align: 1px;
}
.listen[aria-pressed="true"] { color: var(--mint); background: #32665384; }
.listen[aria-pressed="true"] .signal { background: var(--mint); }
.desktop-menu { position: relative; }
.desktop-menu > summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.desktop-menu > summary::-webkit-details-marker { display: none; }
.desktop-menu:not([open]) > .menu-panel { display: none; }
.menu-panel {
  position: absolute; z-index: 4; top: calc(100% + 4px); left: 0;
  display: grid; gap: 3px; width: max-content; min-width: 142px; max-width: calc(100vw - 18px);
  padding: 6px; border: 1px solid #d4e6ef43; border-radius: 10px;
  background: #152730f5; box-shadow: 0 12px 26px #030b1688;
}
.menu-panel .menu-action { text-align: start; }
.menu-panel .menu-action[aria-pressed="true"] { background: #b8f3dc28; color: var(--mint); }
.menubar .notice-entry {
  width: 34px; justify-content: center; border-radius: 8px; padding: 0;
}
.menubar .notice-entry:hover, .menubar #notification-center[open] .notice-entry { background: #c2e8ef23; }
.notice-dot { width: 8px; height: 8px; border: 1.4px solid #deefe9; border-radius: 50%; }
#notification-center:not([open])[data-unread] .notice-dot {
  background: var(--mint); border-color: var(--mint);
}
.notice-panel {
  --notice-ink: #f2f5f6;
  --notice-muted: #bfc7cc;
  --notice-line: #e4edf22b;
  --notice-surface: #151a20ec;
  --notice-card: #333a41;
  --notice-accent: var(--mint);
  left: auto; right: 0; width: min(414px, calc(100vw - 12px)); padding: 0;
  max-height: min(675px, calc(100vh - 56px)); max-height: min(675px, calc(100dvh - 56px));
  grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; border-radius: 18px;
  color: var(--notice-ink); background: var(--notice-surface);
  border-color: var(--notice-line); backdrop-filter: blur(24px); box-shadow: 0 18px 44px #050c1790;
}
.lab[data-appearance="light"] .notice-panel {
  --notice-ink: #203239;
  --notice-muted: #41545d;
  --notice-line: #2c414625;
  --notice-surface: #e8eeeff0;
  --notice-card: #f6f8f8;
  --notice-accent: #235748;
}
.notice-panel-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 13px 16px 9px;
}
.notice-panel-heading h2 { font-size: 1.13rem; font-weight: 730; }
.notice-controls { display: flex; align-items: center; gap: 10px; }
.notice-controls .close-button {
  border: 1px solid var(--notice-line); border-radius: 50%; width: 29px; height: 29px;
  color: var(--notice-ink); background: var(--notice-card);
}
.notice-controls .close-button:hover { color: var(--notice-accent); }
#notice-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 7px; background: transparent; color: var(--notice-muted);
  min-height: 36px; padding: 0 2px 0 5px; font-size: .75rem; white-space: nowrap;
}
#notice-toggle:hover { color: var(--notice-ink); }
#notice-toggle::after {
  content: ""; width: 29px; height: 17px; border-radius: 10px; align-self: center;
  background: #747f83;
}
#notice-toggle::before {
  content: ""; position: absolute; z-index: 1; top: calc(50% - 6px); right: 16px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #13291f60;
}
#notice-toggle[aria-pressed="true"]::after { background: #367966; }
#notice-toggle[aria-pressed="true"]::before { translate: 11px 0; }
.notice-scroll {
  min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 3px 14px 15px; border-radius: 0 0 18px 18px;
}
.notice-scroll:focus-visible { outline-offset: -3px; }
.notice-list { display: grid; gap: 8px; margin: 0 0 13px; padding: 0; list-style: none; }
.notice-list:empty { display: none; }
.notice-card, .notice-guide {
  padding: 11px 12px; background: var(--notice-card); border: 1px solid var(--notice-line);
  border-radius: 13px; box-shadow: 0 3px 9px #19232a1d;
}
.notice-card, .notice-guide-intro {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 11px;
}
.notice-card .app-icon { margin: 0; transform: none; align-self: center; }
.notice-brand-icon, .notice-guide-intro img { width: 39px; height: 39px; border-radius: 9px; }
.notice-message, .notice-guide-intro h3 { font-size: .89rem; overflow-wrap: break-word; }
.notice-message strong { font-weight: 690; }
.notice-message p, .notice-guide-intro p, .notice-guides dd {
  margin-top: 3px; color: var(--notice-muted); font-size: .81rem; line-height: 1.5;
}
.notice-time { color: var(--notice-muted); font-size: .73rem; font-variant-numeric: tabular-nums; }
.notice-guide { background: transparent; box-shadow: none; }
.notice-list:empty + .notice-guide { background: var(--notice-card); }
.notice-guide-intro { grid-template-columns: auto minmax(0, 1fr); }
.notice-help { min-height: 34px; margin-top: 3px; color: var(--notice-accent); font-size: .8rem; }
.notice-help:hover { color: var(--notice-ink); background: var(--notice-line); }
.notice-more { margin: 6px 0 0 50px; }
.notice-more summary { min-height: 29px; padding-block: 5px; color: var(--notice-accent); font-size: .79rem; cursor: pointer; }
.notice-more summary:hover { color: var(--notice-ink); background: transparent; }
.notice-guides { margin: 6px 0; }
.notice-guides dt { margin-top: 9px; color: var(--notice-ink); font-size: .81rem; font-weight: 650; }
.notice-guides dd { margin-inline-start: 0; }
.notice-empty { margin-top: 12px; padding: 0 2px; color: var(--notice-muted); font-size: .8rem; }
.notice-footer { border-top: 1px solid var(--notice-line); padding: 2px 10px 3px; }
.notice-footer .notice-help { margin-top: 0; }

.lab-body {
  position: relative; min-height: 0; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  padding-inline: clamp(8px, 1.25vw, 18px) clamp(10px, 1.5vw, 24px);
  gap: clamp(14px, 4vw, 64px);
}
.dock {
  align-self: center; display: grid; gap: 5px; z-index: 2; padding: 7px 6px;
  border: 1px solid #e4f5fd6b; border-radius: 17px;
  background: #adc6d83a; backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 12px 32px #0004, inset 0 1px #ffffff28;
}
.app-option {
  position: relative; display: grid; place-items: center; width: 46px; min-height: 46px;
  padding: 0; border: 0; border-radius: 11px; color: var(--text); background: transparent;
}
.app-option:hover { background: #e3f5ff29; }
.app-option[aria-pressed="true"]::before {
  content: ""; position: absolute; z-index: 1; left: -4px; top: calc(50% - 2px); width: 4px; height: 4px;
  border-radius: 50%; background: #e9fff7;
}
.app-option span:last-child {
  position: absolute; left: calc(100% + 13px); display: none; z-index: 3;
  color: #f4fbfe; background: #172531ed; padding: 3px 8px; border-radius: 5px;
  white-space: nowrap; font-size: .77rem; box-shadow: 0 3px 12px #0005;
}
.app-option:hover span:last-child, .app-option:focus-visible span:last-child { display: block; }
.app-icon {
  position: relative; width: 39px; height: 39px; border-radius: 11px;
  box-shadow: inset 0 1px #fff8, 0 3px 6px #0005;
}
.app-icon::before, .app-icon::after { content: ""; position: absolute; display: block; }
.finder-icon { background: linear-gradient(145deg, #7bd3fc, #2c6dab); }
.finder-icon::before { inset: 14px 8px 9px; border-radius: 3px; background: #eff9ff; }
.finder-icon::after { width: 10px; height: 6px; left: 8px; top: 11px; border-radius: 2px; background: #eff9ff; }
.browser-icon { background: linear-gradient(145deg, #a1ecd5, #26776e); }
.browser-icon::before { inset: 8px 7px; border: 2px solid #eafff7; border-radius: 5px; }
.browser-icon::after { left: 9px; right: 9px; top: 15px; height: 2px; background: #eafff7; }
.notes-icon { background: linear-gradient(145deg, #ffe0a5, #bb862d); }
.notes-icon::before { inset: 7px 9px; border-radius: 3px; background: #fff7db; }
.notes-icon::after { left: 13px; right: 13px; top: 14px; height: 1px; background: #94714a; box-shadow: 0 4px #94714a, 0 8px #94714a; }

.desk { min-height: 0; min-width: 0; }
/* The workspace is a programmatic focus target. Interactive controls keep their focus ring. */
.desk:focus { outline: none; }
.workspace {
  position: relative; display: grid; align-items: start; justify-content: space-between; gap: 28px;
  grid-template-columns: minmax(0, clamp(680px, 64vw, 1180px)) minmax(190px, 295px); grid-template-rows: minmax(0, 1fr);
  height: 100%; padding: clamp(27px, 7vh, 72px) 0 12px; min-width: 0; min-height: 0;
}
.workspace:not(:has(.welcome:not([hidden]))) {
  grid-template-columns: minmax(0, min(79%, 1180px));
}
.bindings, .site-dialog {
  color: var(--text); background: #12212bf7; border: 1px solid #c8e0eb39;
  box-shadow: 0 22px 75px #0007, 0 3px 15px #00111c40;
}
.window {
  --window-rule: #34495222;
  color-scheme: light;
  --window-height: clamp(330px, 51vh, 650px);
  grid-area: 1 / 1; min-width: 0; min-height: 0; height: min(100%, var(--window-height));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 15px;
  color: #213039; background: #f8faf9;
  border: 1px solid #f0f6f5e0; box-shadow: 0 24px 68px #04101a75, 0 4px 12px #0513214f;
  translate: var(--window-x, 0px) var(--window-y, 0px);
}
.window-expanded .window { grid-column: 1 / -1; height: 100%; translate: none; }
.window-top {
  display: flex; align-items: center;
  min-height: 42px; gap: 10px; padding: 2px 13px; background: #e8eeef;
  border-bottom: 1px solid var(--window-rule); font-size: .82rem; font-weight: 650; user-select: none;
}
.traffic { display: flex; gap: 4px; }
.traffic button {
  display: grid; place-items: center; width: 20px; height: 23px; padding: 0;
  border: 0; background: transparent;
}
.traffic button span {
  display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%;
  line-height: 1; color: transparent; font-size: .64rem; background: var(--window-dot);
}
.traffic button:hover span, .traffic button:focus-visible span { color: #243237; }
.window-close { --window-dot: #e77b74; }
.window-minimize { --window-dot: #dbaa53; }
.window-zoom { --window-dot: #7fb599; }
#window-title { flex: none; font-size: inherit; font-weight: 680; }
.window-tools { flex: 1; min-width: 0; }
.desk[data-app="browser"] #window-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.window-body { min-height: 0; overflow: auto; flex: 1; overscroll-behavior: contain; }
.window-body:has(.preview-panel:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, 24%); }
#scene-content { min-width: 0; min-height: 100%; display: flex; flex-direction: column; }
.preview-panel {
  position: relative; padding: 35px 12px 12px; background: #e9f0f0; border-inline-start: 1px solid var(--window-rule);
  font-size: .82rem; overflow-wrap: anywhere;
}
.preview-panel p { font-weight: 680; }
.preview-panel span { display: block; margin-top: 5px; color: #50666d; }
.preview-panel .close-button { position: absolute; inset: 4px 5px auto auto; color: #3f5960; }
.preview-panel .close-button:hover { color: #1c353b; background: #294b5c24; }

.notifications {
  display: none; position: relative; z-index: 2; grid-area: 1 / 2; margin-top: -33px;
}
.notifications:has(.welcome:not([hidden])) { display: grid; }
.welcome {
  position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px;
  padding: 11px 30px 11px 11px; border: 1px solid #f5fbfc55; border-radius: 13px;
  background: #dce8ecd9; color: #202f38; box-shadow: 0 10px 32px #0004; backdrop-filter: blur(23px);
}
.welcome img { border-radius: 7px; width: 29px; height: 29px; }
.welcome h2 { font-size: .9rem; }
.welcome p { color: #3a4c55; font-size: .81rem; margin-top: 4px; line-height: 1.52; }
.welcome .close-button { position: absolute; top: 4px; right: 4px; color: #3c515d; }
.welcome .close-button:hover { color: #1b303c; background: #294b5c24; }

.finder-pane { display: grid; grid-template-columns: minmax(132px, 23%) minmax(0, 1fr); min-height: 264px; flex: 1; }
.finder-content { min-width: 0; display: flex; flex-direction: column; }
.window-sidebar {
  padding: 12px 8px; background: #e5edef; border-inline-end: 1px solid var(--window-rule);
  overflow-wrap: anywhere; font-size: .8rem;
}
.sidebar-label { margin: 0 5px 5px; color: #52646e; font-size: .72rem; }
.sidebar-location {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 5px;
  background: #cfe0df; color: #234d52; font-weight: 650;
}
.location-icon { color: #488395; font-size: .88rem; }
.sidebar-tools { margin-top: 14px; display: grid; }
.sidebar-tools .app-tool { text-align: start; }
.sidebar-shortcut { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.app-toolbar {
  display: flex; align-items: center; gap: 5px; padding: 2px 0;
  background: transparent;
}
.app-tool {
  min-width: 0; min-height: 28px; padding: 3px 8px; border: 1px solid transparent;
  border-radius: 6px; color: inherit; background: transparent; font-size: .78rem;
}
.app-tool:hover { background: #28485615; }
.app-tool[aria-pressed="true"] { background: #dce8e8; color: #214957; border-color: #24465718; }
.finder-toolbar { justify-content: flex-end; }
.finder-toolbar .app-tool { font-size: .93rem; }
.file-count, .file-headings, .file-kind { color: #51666e; font-size: .75rem; }
.file-count { margin-top: auto; text-align: center; border-top: 1px solid var(--window-rule); padding: 4px; }
.view-tools { display: flex; gap: 2px; background: #f5f8f8; border-radius: 7px; padding: 1px; }
.file-headings {
  display: grid; grid-template-columns: minmax(0, 1fr) 66px; align-items: center;
  padding-inline: 7px; border-bottom: 1px solid var(--window-rule);
}
.file-headings .app-tool { justify-self: start; color: inherit; min-height: 24px; }
.browser-toolbar { gap: clamp(1px, .45vw, 7px); }
.browser-address { flex: 1; min-width: 0; margin-inline: clamp(0px, 1vw, 13px); }
.browser-address input {
  width: 100%; min-height: 29px; padding: 3px 10px;
  border: 1px solid var(--window-rule); border-radius: 8px;
  color: inherit; background: #e1ebed; text-align: center; font-size: .81rem;
}
.browser-address input:focus { text-align: start; }
.notes-toolbar { justify-content: flex-end; }
.notes-toolbar .app-tool { white-space: nowrap; }
.files { padding: 9px; display: grid; gap: 5px; align-content: start; }
.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr));
  gap: 8px; padding: 13px;
}
.file, .sample-tab {
  border: 1px solid transparent; background: transparent; color: inherit; border-radius: 5px;
}
.file:hover, .sample-tab:hover { background: #314f6416; }
.file[aria-pressed="true"], .sample-tab[aria-pressed="true"] {
  background: #cde3e2; border-color: #8eb7b644; color: #183e45;
}
.file { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: .82rem; }
.grid-view .file {
  min-height: 99px; padding: 8px 4px; flex-direction: column; justify-content: center;
  gap: 8px; text-align: center;
}
.grid-view .file-art { filter: drop-shadow(0 3px 3px #050d1a2e); }
.list-view .file {
  min-height: 27px; padding-inline: 7px; display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 61px; text-align: start;
}
.list-view { padding: 4px 7px 9px; gap: 1px; }
.list-view .file:nth-child(even):not([aria-pressed="true"]) { background: #3d596b0c; }
.list-view .file:nth-child(even):hover:not([aria-pressed="true"]) { background: #3d596b22; }
.file-name { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

.file-art {
  position: relative; flex: 0 0 auto; width: 37px; height: 46px; border-radius: 6px;
  background: linear-gradient(153deg, #cce4fa, #87b5e5);
  clip-path: polygon(0 0, 69% 0, 100% 25%, 100% 100%, 0 100%);
}
.file-art::after {
  content: ""; position: absolute; top: 16px; left: 7px; width: 21px; height: 2px;
  background: #537fae; box-shadow: 0 6px #537fae, 0 12px #537fae;
}
.file-folder {
  height: 34px; width: 46px; background: linear-gradient(#88d2fa, #4694cd);
  clip-path: polygon(0 0, 41% 0, 52% 17%, 100% 17%, 100% 100%, 0 100%);
}
.file-folder::after { display: none; }
.file-image { background: linear-gradient(140deg, #d7defb, #9aafe2); }
.file-image::after {
  inset: 14px 6px auto; width: auto; height: 22px;
  clip-path: polygon(0 90%, 31% 35%, 54% 60%, 78% 0, 100% 90%);
  background: #5b78ad; box-shadow: none;
}
.list-view .file-art { scale: .44; margin: -11px; justify-self: center; }

.browser-tabs, .notes-list { display: flex; gap: 4px; padding: 5px 8px; background: #edf3f3; }
.browser-tabs { overflow: auto; border-bottom: 1px solid var(--window-rule); }
.browser-tabs .sample-tab {
  flex: 0 0 clamp(108px, 23%, 215px); min-width: 0; display: flex; align-items: center;
  gap: 7px; text-align: left; padding-inline: 10px; min-height: 28px;
}
.tab-icon { font-size: .76rem; color: #397e77; flex: none; }
.tab-title { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.journal-site {
  flex: 1; display: flex; flex-direction: column; background: #f5f4ea; color: #203c36;
}
.journal-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 13px clamp(16px, 4vw, 42px); border-bottom: 1px solid #375b4b35;
}
.journal-brand { font: 760 clamp(.94rem, 1.65vw, 1.22rem)/1 Georgia, "Songti SC", serif; white-space: nowrap; }
.journal-links { display: flex; gap: 12px; }
.journal-links button {
  color: #365349; background: transparent; border: 0; padding: 2px 0; font-size: .8rem;
  white-space: nowrap; border-radius: 2px;
}
.journal-links button[aria-current="page"] { border-bottom: 1px solid #486e5e; }
.journal-site .sample-article { flex: 1; }
.journal-site .sample-article:not(.reader):has(.journal-image) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(14px, 3vw, 35px);
  align-items: center;
}
.journal-site .article-copy { min-width: 0; }
.journal-site .sample-article:not(.reader) h3 {
  font: 720 clamp(1.55em, 3.15vw, 2.5em)/1.15 Georgia, "Songti SC", serif;
  margin-top: 5px;
}
.journal-image {
  width: 100%; height: clamp(110px, 27vh, 260px); align-self: center; border-radius: 5px;
  object-fit: cover; object-position: center 52%; background: #436558;
}
.sample-tab { flex: 0 0 auto; min-height: 30px; padding: 3px 8px; font-size: .82rem; text-align: left; }
.sample-article { padding: 26px clamp(16px, 5.4vw, 52px) 34px; min-height: 204px; font-size: calc(.93rem * var(--page-scale)); }
.sample-article h3, .sample-note h3 { font-size: 1.45em; letter-spacing: -.02em; }
.sample-article p, .sample-note p { color: #384b54; margin-top: 8px; max-width: 54ch; }
.article-label, .saved-tag { color: #3c686d; font-size: .79rem; }
.sample-article.reader { background: #fbf5e7; font-family: Georgia, "Songti SC", serif; }
.notes-layout {
  display: grid; grid-template-columns: minmax(105px, 22%) minmax(108px, 27%) minmax(0, 1fr);
  min-height: 224px; flex: 1;
}
.notes-layout .window-sidebar { background: #eeefea; }
.notes-layout .sidebar-location { background: #e8e2ce; color: #554728; }
.notes-list {
  flex-direction: column; border-right: 1px solid var(--window-rule); background: #f4f5f1;
  min-height: 0; overflow: auto;
}
.notes-list .sample-tab { overflow-wrap: anywhere; }
.notes-list .sample-tab[aria-pressed="true"] { background: #f4e7c5; color: #483811; border-color: #b9863440; }
.note-excerpt {
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #52646a; font-size: .74rem;
}
.sample-note { padding: 17px 14px; font-size: .89rem; overflow-wrap: anywhere; background: #fffdf8; }
.note-bold { font-weight: 700; }
.check-item { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.stage-form {
  display: flex; flex-wrap: wrap; align-items: center; flex: 0 0 auto; gap: 5px;
  padding: 7px 10px; border-bottom: 1px solid var(--window-rule); background: #e8f2f1; font-size: .875rem;
}
.stage-form input {
  flex: 1 1 110px; min-width: 0; min-height: 30px; padding: 4px 7px;
  background: #fff; color: #233b43; border: 1px solid #355b6553; border-radius: 6px;
}
.stage-form button { min-height: 30px; }
mark { border-radius: 2px; padding-inline: 1px; background: #f8dc89; color: #1b2428; }

.menu-panel select, .bindings select, .button {
  min-width: 0; min-height: 34px; border-radius: 6px; color: var(--text); padding: 4px 8px;
}
.menu-panel select, .bindings select, .button { border: 1px solid #c5dfeb45; background: #233641; }
.button:hover { background: #38515e; }
.button-primary, .stage-form .button[type="submit"] { background: #31564e; }
.button-primary:hover, .stage-form .button[type="submit"]:hover { background: #3c6a5f; }
.close-button {
  border: 0; border-radius: 6px; background: transparent; color: var(--muted);
  width: 29px; height: 29px; padding: 0; font-size: 1.2rem; line-height: 1;
}
.close-button:hover { background: #dbeef025; color: var(--text); }

.capture-controls {
  position: absolute; z-index: 2; border: 1px solid #c6e8f050; border-radius: 10px;
  background: #11232df0; box-shadow: 0 12px 32px #0006;
}
.toast {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 7px); translate: -50% 0;
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px);
  padding: 10px 18px; border: 1px solid #dafff04b; border-radius: 12px;
  background: #192e2df8; color: #f0fcf7; font-size: clamp(.95rem, 1.55vw, 1.15rem); font-weight: 660;
  box-shadow: 0 7px 22px #0005; overflow-wrap: anywhere; pointer-events: none;
}
.lab:has(#notification-center[open]) :is(.toast, .welcome) { visibility: hidden; }
.toast-icon { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: 0 0 6px; }

.capture-layer { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.capture-layer[data-selecting] { pointer-events: auto; cursor: crosshair; touch-action: none; background: #030b1822; }
.capture-frame {
  position: absolute; border: 2px solid var(--mint); border-radius: 5px;
  box-shadow: 0 0 0 180vmax #050e1978; pointer-events: none;
}
.capture-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; left: 50%; bottom: 10px;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 12px);
  padding: 7px; color: var(--text); font-size: .82rem; pointer-events: auto; cursor: auto;
}
.capture-controls p { padding-inline: 4px; font-weight: 650; }
.capture-controls:has(#capture-image:not([hidden])) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: min(365px, calc(100% - 14px));
  padding: 9px; gap: 8px;
}
#capture-image {
  grid-column: 1 / -1; display: block; width: 100%; height: min(24vh, 155px);
  object-fit: contain; background: #081218; border: 1px solid var(--edge); border-radius: 5px;
}
.capture-choices { display: flex; gap: 5px; }
.capture-download { display: inline-flex; align-items: center; white-space: nowrap; }
.capture-button:disabled { opacity: .55; cursor: default; }
.screen-shade {
  position: absolute; z-index: 6; inset: 0;
  background: #071318; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .screen-shade { transition: opacity 160ms ease; }
}

.capture-button {
  border: 1px solid var(--edge); background: #27404a; color: var(--text);
  min-height: 33px; padding: 4px 8px; border-radius: 6px;
}
.capture-button:hover { background: #365963; }

.bindings {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  width: min(300px, calc(100% - 33px)); max-height: calc(100% - 28px); overflow: auto;
  padding: 12px; border-radius: 13px;
}
.binding-window-title { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.bindings h3 { font-size: 1rem; }
.bindings p, .bindings label { color: var(--muted); font-size: .84rem; }
.bindings form { display: grid; gap: 6px; padding-block: 6px; }
.bindings .button-primary { margin-top: 4px; }

.desktop-bottom {
  position: relative;
}
.hint-zone { position: relative; width: var(--key-width); margin: 0 auto 4px; }
.hint-zone[data-style="hidden"] { min-height: 24px; }
.hint-bar { min-width: 0; padding: 6px; }
.hint-row, .key-row { display: grid; gap: var(--key-gap); }
.hint-row, .key-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hint-key, .key {
  display: grid; place-content: center; justify-items: center; gap: 2px;
  min-width: 0; padding: 3px 2px; color: #f1f5f4;
}
.hint-key {
  min-height: 44px; border: 1px solid #dceee244; border-radius: 6px;
  background: #222e2df5; box-shadow: 0 2px 7px #0005;
}
.hint-key:hover { background: #414b46; }
.hint-key.key-selected { background: #345750; border-color: #9aedd06b; }
.hint-key.hint-empty { background: #15232be6; border-color: #bacdd140; color: #aebfc6; cursor: default; box-shadow: none; }
.hint-key.hint-empty .key-action { color: #aebfc6; }
kbd { font: 650 .9em ui-monospace, Menlo, monospace; }
.hint-key kbd { font-size: .75rem; }
.key-action { max-width: 100%; font-size: .74rem; overflow-wrap: anywhere; line-height: 1.15; }

.hint-line {
  width: 100%; height: 22px; display: grid; place-items: center;
  border: 0; padding: 0; color: #fff; background: transparent;
}
.hint-grip {
  width: clamp(52px, 13vw, 170px); height: 3px; border-radius: 99px; background: #e4fff5a0;
}
.hint-line:hover .hint-grip { background: var(--mint); }
.rail-tools {
  position: absolute; display: flex; align-items: center; gap: 4px; left: calc(100% + 5px); bottom: 0;
}
.rail-action {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 7px;
  color: #e9f4ee; background: #192a2ce8; border: 1px solid #dae8e344;
  font-size: 1.07rem; line-height: 1;
}
.rail-action:hover { background: #304744; }
.rail-arrow {
  width: 8px; height: 8px; border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.hint-toggle[aria-expanded="false"] .rail-arrow { transform: translateY(2px) rotate(225deg); }
.keyboard-deck {
  position: relative; z-index: 7; width: 100%; padding: 11px 0 max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #aebec577;
  background: linear-gradient(#0b1118 0 2px, #616e75 3px, #47535a 10px, #39464d 100%);
  box-shadow: 0 -6px 18px #08131b46;
}
#lock-keyboard-slot { width: 100%; align-self: end; }
.keyboard-layout { position: relative; width: var(--key-width); margin-inline: auto; }
.key-row { width: 100%; padding-inline: 6px; }
.keyboard-extra { position: absolute; top: 0; }
.esc-key { left: -66px; width: 64px; justify-items: start; padding-left: 9px !important; }
.lock-key { right: -52px; width: 50px; }
.lock-symbol {
  position: relative; display: grid; place-items: center; width: 27px; height: 27px;
  border: 1px solid #93a3ae75; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #333b42, #171c21 78%);
}
.lock-symbol::before {
  content: ""; width: 8px; height: 7px; margin-top: 5px;
  border: 1px solid #c3d0d7; border-radius: 2px;
}
.lock-symbol::after {
  content: ""; position: absolute; left: 10px; top: 7px;
  width: 5px; height: 5px; border: 1px solid #c3d0d7; border-bottom: 0; border-radius: 5px 5px 0 0;
}
.keyboard-deck:not([data-locked]) .lock-symbol::after { transform: translate(2px, -1px) rotate(24deg); }
.key {
  min-height: 47px; border: 1px solid #151c21; border-radius: 6px; gap: 1px;
  background: linear-gradient(145deg, #2d343a, #1c2329);
  box-shadow: 0 2px #11171b, inset 0 1px #dbe5eb20, inset 0 -2px #0e151a65;
}
.key kbd { font-size: .72rem; }
.esc-key kbd { font-size: .84rem; }
.key-symbol { font: 635 .92rem/1.18 system-ui, sans-serif; color: #e1e9ed; }
.mic-symbol {
  position: relative; display: block; width: 5px; height: 10px;
  margin-block: 2px 3px; border: 1px solid currentColor; border-radius: 3px;
}
.mic-symbol::after { content: ""; position: absolute; inset: 3px -3px -3px; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 5px 5px; }
.play-pause-symbol { display: flex; align-items: center; gap: 3px; height: 1.18em; }
.play-pause-symbol::before {
  content: ""; width: 0; height: 0;
  border: 4px solid transparent; border-right: 0; border-left: 7px solid currentColor;
}
.play-pause-symbol::after {
  content: ""; width: 6px; height: 9px; border-inline: 2px solid currentColor;
}
.key:hover { background: linear-gradient(#3b4851, #29363d); }
.key:active { translate: 0 1px; box-shadow: 0 1px #0e151a; }
.key-selected { color: var(--mint); border-color: #90c7b2a0; }
.key-selected .key-symbol { color: inherit; }
.key[aria-disabled="true"] { color: #a7b3bb; opacity: .73; cursor: default; }
.key[aria-disabled="true"] .key-symbol { color: inherit; }
.keyboard-deck[data-locked] .lock-key { border-color: #a8e7d7a3; }
.action-tooltip {
  position: fixed; z-index: 30; inset: auto; margin: 0; padding: 6px 10px;
  width: max-content; max-width: min(310px, calc(100vw - 18px)); color: #f2fbfa;
  background: #0c1a20f7; border: 1px solid #cbe8e84c; border-radius: 7px;
  box-shadow: 0 8px 22px #0007; font-size: .85rem; line-height: 1.3;
}

.site-dialog {
  width: min(calc(100% - 24px), 510px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: clamp(18px, 5vw, 27px); border-radius: 20px; overflow: auto; scrollbar-width: thin;
  background: #1b272e; border-color: #c6dbe23d;
}
.site-dialog:modal { overscroll-behavior: contain; }
.site-dialog::backdrop { background: #07141fb5; backdrop-filter: blur(3px); }
.about-close { position: absolute; top: 9px; right: 9px; }
.about-close .close-button { width: 38px; height: 38px; }
.dialog-heading {
  display: flex; align-items: center; gap: 12px; padding-inline-end: 22px; margin-bottom: 18px;
}
.dialog-heading img { flex: none; border-radius: 11px; }
.site-dialog h1 { font-size: clamp(1.15rem, 4vw, 1.48rem); line-height: 1.24; }
.site-dialog h2 { font-size: 1rem; margin: 20px 0 7px; }
.site-dialog p { color: #d0dde1; font-size: .88rem; line-height: 1.62; }
.dialog-heading p { margin-top: 4px; font-size: .8rem; }
#about p + p { margin-top: 7px; }
#about .about-note { margin-top: 14px; color: #b8cbd1; font-size: .78rem; }
.about-links {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--edge); margin-top: 16px; padding-top: 15px;
}
.install-dialog {
  width: min(calc(100% - 24px), 750px); padding: 0;
  color-scheme: light; color: #182e2a; background: #f7f9f6;
  border-color: #e7f1e7;
}
.install-layout { display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 1fr); }
.install-product {
  display: grid; align-content: center; justify-items: start; gap: 13px;
  min-width: 0; padding: clamp(22px, 4vw, 42px); background: #d9ebe0;
}
.install-product img { border-radius: 17px; box-shadow: 0 9px 20px #213e344a; }
.install-product h1 { margin-bottom: 5px; font-size: clamp(1.32rem, 3vw, 1.9rem); letter-spacing: -.035em; }
.install-product p, .install-instructions p { color: #425e53; }
.install-product p { font-size: .81rem; }
.install-product .download {
  min-height: 47px; padding-inline: 20px; background: #183f35; color: #f4fff8;
}
.install-product .download:hover { background: #28584a; }
.install-dialog :focus-visible { outline-color: #246852; }
.install-dialog .close-button { color: #345a4d; background: #e5eee7; }
.install-dialog .close-button:hover { color: #182e2a; background: #d6e5d8; }
.install-instructions { padding: 28px 26px 23px; }
.install-instructions h2 { margin: 3px 36px 13px 0; font-size: 1.1rem; }
.install-steps { margin-block: 0; padding-inline-start: 1.45em; font-size: .87rem; }
.install-steps li { padding: 1px 0 1px 3px; }
.install-steps li + li { margin-block-start: 9px; }
.install-steps li::marker { color: #346650; font-weight: 650; font-variant-numeric: tabular-nums; }
.install-steps p { font-size: .84rem; }
@media (max-width: 590px) {
  .install-layout { grid-template-columns: minmax(0, 1fr); }
  .install-product { padding: 20px clamp(18px, 5vw, 26px); grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .install-product img { width: 52px; height: 52px; border-radius: 12px; grid-row: 1 / 3; }
  .install-product h1 { grid-row: 1; margin: 0; padding-inline-end: 32px; }
  .install-requirements { grid-row: 2; grid-column: 2; }
  #install-download-note { grid-column: 1 / -1; margin-top: 5px; }
  .install-product .download { grid-column: 1 / -1; justify-self: stretch; margin-top: 5px; }
  .install-instructions { padding: 17px clamp(18px, 5vw, 26px) 14px; }
}


.lab[data-appearance="dark"] .window {
  color-scheme: dark;
  --window-rule: #becbd425;
  color: #e4e9ed; background: #252b30; border-color: #bdc8d246;
}
.lab[data-appearance="dark"] .window-top { background: #353a40; }
.lab[data-appearance="dark"] .window-sidebar { background: #30373d; }
.lab[data-appearance="dark"] :is(.sidebar-label, .file-count, .file-headings, .file-kind, .note-excerpt) { color: #bdc8cf; }
.lab[data-appearance="dark"] .location-icon { color: #93bdd0; }
.lab[data-appearance="dark"] .sidebar-location { color: #def5f4; background: #3a5155; }
.lab[data-appearance="dark"] .view-tools { background: #484e55; }
.lab[data-appearance="dark"] :is(.file, .sample-tab, .app-tool):hover { background: #c1d6e32c; }
.lab[data-appearance="dark"] :is(.file, .sample-tab, .app-tool)[aria-pressed="true"] {
  color: #edfffb; background: #38565b; border-color: #c7e9e345;
}
.lab[data-appearance="dark"] .list-view .file:nth-child(even):not([aria-pressed="true"]) { background: #c3d8eb0a; }
.lab[data-appearance="dark"] .list-view .file:nth-child(even):hover:not([aria-pressed="true"]) { background: #c3d8eb21; }
.lab[data-appearance="dark"] .browser-address input { background: #262d34; }
.lab[data-appearance="dark"] :is(.browser-tabs, .notes-list) { background: #2e343a; }
.lab[data-appearance="dark"] :is(.sample-article p, .sample-note p) { color: #d4dce0; }
.lab[data-appearance="dark"] :is(.article-label, .saved-tag) { color: #9bcac2; }
.lab[data-appearance="dark"] .sample-article.reader { color: #f0ebdf; background: #37332c; }
.lab[data-appearance="dark"] .sample-article:not(.reader) p { color: #43564f; }
.lab[data-appearance="dark"] .sample-article:not(.reader) :is(.article-label, .saved-tag) { color: #346e64; }
.lab[data-appearance="dark"] .notes-layout .window-sidebar { background: #343631; }
.lab[data-appearance="dark"] .notes-layout .sidebar-location { background: #505043; color: #f0ebd9; }
.lab[data-appearance="dark"] .notes-list .sample-tab[aria-pressed="true"] { color: #faf0d1; background: #544833; border-color: #ddbb706b; }
.lab[data-appearance="dark"] .sample-note { background: #2e2e29; }
.lab[data-appearance="dark"] .preview-panel { background: #323a40; }
.lab[data-appearance="dark"] :is(.preview-panel span, .preview-panel .close-button) { color: #c7d6db; }
.lab[data-appearance="dark"] .stage-form { background: #353e43; }
.lab[data-appearance="dark"] .stage-form input { color: #e9f4f7; background: #212a30; border-color: #b9cdd26a; }
.lab[data-appearance="dark"] .welcome { background: #303a43e8; color: #f5f8fa; }
.lab[data-appearance="dark"] :is(.welcome p, .welcome .close-button) { color: #d5e2ea; }

@media (max-width: 900px) {
  .lab-body { gap: 16px; }
  .workspace { gap: 15px; padding-top: 32px; grid-template-columns: minmax(0, 680px) minmax(155px, 230px); }
  .scene-switch button { padding-inline: 8px; }
  .notifications { margin-top: -22px; }
  .key-action { font-size: .7rem; }
}
@media (max-width: 730px) {
  :root { --key-width: calc(100% - 58px); --key-gap: 3px; }
  .menubar { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 6px; }
  .scene-switch { grid-area: 2 / 1 / 3 / -1; }
  .menubar .desktop-utilities { grid-area: 1 / 2; }
  .hint-row, .key-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hint-key { min-height: 33px; }
  .key { min-height: 36px; }
  .key-symbol { font-size: .75rem; }
  .keyboard-layout { display: grid; grid-template-columns: auto 1fr auto; gap: 5px; }
  .key-row { grid-area: 2 / 1 / 3 / -1; }
  .keyboard-extra { position: static; width: 39px; min-height: 28px; }
  .lock-symbol { scale: .83; }
  .esc-key { grid-area: 1 / 1; }
  .lock-key { grid-area: 1 / 3; }
  .rail-tools { flex-direction: column; left: calc(100% + 2px); }
  .rail-action { width: 26px; height: 27px; font-size: .91rem; }
  .hint-zone[data-style="compact"] .rail-tools, .hint-zone[data-style="hidden"] .rail-tools { flex-direction: row; bottom: 0; left: auto; right: 0; background: #15272b; border-radius: 6px; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding-top: 9px; }
  .workspace:not(:has(.welcome:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
  .window { grid-area: 2 / 1; height: auto; max-height: 100%; }
  .window-expanded .window { height: 100%; }
  .workspace:not(:has(.welcome:not([hidden]))) .window { grid-row: 1 / -1; }
  .notifications { grid-area: 1 / 1; margin-top: 0; }
  .welcome { padding-block: 7px; }
  .notes-folders, .finder-pane .window-sidebar { display: none; }
  .journal-site .sample-article:not(.reader):has(.journal-image) { grid-template-columns: 1fr; }
  .journal-image { height: 105px; }
  .journal-nav, .sample-article { padding-inline: 12px; }
  .notes-layout { grid-template-columns: minmax(76px, 26%) minmax(0, 1fr); min-height: 160px; }
  .finder-pane { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .window-body:has(.preview-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .preview-panel { padding: 10px 30px 10px 10px; border-inline-start: 0; border-top: 1px solid var(--window-rule); }
}
@media (max-width: 480px) {
  .desktop-brand { font-size: .84rem; }
  .site-header .desktop-brand img { width: 24px; height: 24px; }
  .menubar { font-size: .74rem; gap: 2px; padding-inline: 5px; }
  .menubar .desktop-brand { font-size: .74rem; gap: 4px; }
  .menubar .desktop-brand img { width: 18px; height: 18px; }
  .menubar .menu-action, .menubar .desktop-menu > summary { padding-inline: 4px; }
  .desktop-download { padding-inline: 6px; }
  .desktop-utilities { gap: 2px; }
  .menubar .appearance { width: 28px; }
  .menubar .notice-entry { width: 29px; }
  .download-platform { display: none; }
  .lab-body { padding-inline: 6px; gap: 7px; }
  .dock { padding: 4px 3px; border-radius: 14px; }
  .app-option { width: 41px; min-height: 44px; }
  .app-icon { width: 39px; height: 39px; transform: scale(.78); margin: -3px; }
  .workspace { padding-bottom: 4px; }
  .window-top { padding-inline: 7px; gap: 5px; }
  .journal-links { gap: 6px; }
  .journal-links button { font-size: .69rem; }
  .window-top .app-tool { padding-inline: 4px; }
  .traffic { gap: 0; }
  .traffic button { width: 24px; min-height: 27px; }
  .grid-view { padding: 7px; }
  .key-action { font-size: .65rem; }
  .hint-bar { padding-block: 4px; }
}
@media (pointer: coarse) {
  .intro-navigation a, .intro-next { min-width: 44px; min-height: 44px; }
  .intro-next { justify-content: flex-end; }
  .intro-actions .download, .site-help, .notice-help, #notice-toggle, .about-close .close-button { min-height: 44px; }
  .about-close .close-button { width: 44px; }
}
@media (max-width: 360px) {
  .menubar .desktop-brand { font-size: .69rem; }
  .menubar .brand-name { display: none; }
  .menubar .brand-compact { display: inline; }
  .notes-toolbar .app-tool { min-width: 26px; }
  .note-tool-label { display: none; }
  .notes-list { padding-inline: 4px; }
  .notes-list .sample-tab { padding-inline: 5px; }
  .install-product { padding-block: 15px; }
  .install-instructions { padding-block: 13px 11px; }
  .install-steps li + li { margin-block-start: 6px; }
  .install-dialog p { line-height: 1.48; }
}
@media (max-height: 620px) {
  .workspace { padding-top: 14px; }
  .notifications { margin-top: 0; }
}
@media (max-height: 480px) and (min-width: 540px) {
  :root { --key-width: calc(100% - 146px); }
  .lock, .lab { min-height: 0; }
  .lock { --intro-inset: clamp(58px, 12vw, 121px); }
  .site-header { min-height: 44px; }
  .intro-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 45px 48px; }
  .intro-copy :is(h1, h2) { font-size: clamp(1.42rem, 4.1vw, 2.5rem); margin-bottom: 7px; }
  .intro-copy p { font-size: .8rem; line-height: 1.5; }
  .intro-visual { max-width: 83%; justify-self: center; }
  .intro-crop { height: 85px; }
  .intro-footer { bottom: 7px; }
  .intro-actions .download { min-height: 34px; padding-inline: 10px; font-size: .79rem; }
  .intro-navigation { gap: 0; }
  .keyboard-deck { padding-block: 6px max(7px, env(safe-area-inset-bottom)); }
  .keyboard-layout { display: block; }
  .keyboard-extra { position: absolute; width: 35px; }
  .esc-key { left: -36px; }
  .lock-key { right: -36px; }
  .key { min-height: 34px; }
  .key-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
  .lab-body { gap: 10px; }
  .workspace { padding-top: 8px; padding-bottom: 7px; }
  .window { height: 100%; }
  .hint-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
  .hint-bar { padding-block: 2px; }
  .hint-key { min-height: 32px; }
  .rail-tools { flex-direction: row; }
}
@media (prefers-reduced-motion: no-preference) {
  .key, .app-option { transition: background-color 120ms ease, border-color 120ms ease; }
}
