/* FreshLook OS — the site is a two-colour desktop: one blue sky, white paper,
   and everything else is a window on it. Layout: icons down the left, the brand
   written across the sky, windows float over it; on phones windows open full-screen. */
:root {
  --sky: #5ea6e5;          /* the desktop and its dither (from the reference design) */
  --paper: #ffffff;        /* windows, taskbar, labels */
  --chrome: #2672c2;       /* title bars, borders, buttons: white text on it reads at 4.9:1 */
  --ink: #1e5ea8;          /* running text on paper: 6.5:1 */
  --tint: rgba(94, 166, 229, 0.14);
  --shade: rgba(30, 94, 168, 0.28);
  --sys: "VT323", ui-monospace, Menlo, Consolas, monospace;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Instrument Serif", Georgia, "Times New Roman", serif;
  --bar-h: 40px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--sky);
  color: var(--ink);
  font: 16.5px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { background: var(--chrome); color: var(--paper); text-decoration: none; }
:focus-visible { outline: 2px dotted var(--ink); outline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- the sky and the brand on it ---------- */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.55) 1px, transparent 1.2px) 0 0 / 4px 4px,
    var(--sky);
}
.brand-wall {
  position: fixed; z-index: 1; pointer-events: none;
  left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 2vh);
  display: flex; justify-content: center;
}
.brand-wall span {
  font: italic 400 clamp(96px, 19vw, 330px)/0.9 var(--brand);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--chrome), -3px -3px 0 var(--chrome), 3px -3px 0 var(--chrome), -3px 3px 0 var(--chrome), 6px 7px 0 var(--shade);
  white-space: nowrap;
}

/* ---------- desktop icons ---------- */
#desktop { position: relative; z-index: 2; height: 100%; }
.icons {
  position: absolute; top: 14px; left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(var(--bar-h) + 12px);
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 104px);
  gap: 4px 16px; align-content: start;
}
.icon {
  width: 112px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink);
}
.icon i { width: 56px; height: 56px; display: block; filter: drop-shadow(3px 3px 0 var(--shade)); }
.icon i svg, .glyph svg { width: 100%; height: 100%; display: block; }
.icon span {
  font: 21px/1.05 var(--sys); letter-spacing: 0.5px; background: var(--paper); padding: 1px 5px;
  border: 1px solid transparent; text-align: center; word-break: break-word;
}
.icon:hover span, .icon:focus-visible span, .icon[aria-current="true"] span { background: var(--chrome); color: var(--paper); }
.icon:focus-visible { outline: none; }
.icon:focus-visible span { border: 1px dotted var(--paper); }

/* ---------- windows ---------- */
.win {
  position: absolute; display: none; flex-direction: column;
  background: var(--paper); border: 2px solid var(--chrome);
  box-shadow: 7px 7px 0 var(--shade);
  max-width: calc(100vw - 24px);
  max-height: calc(100% - var(--bar-h) - 24px);
}
.win.open { display: flex; }
.win[data-place="readme"] { width: 590px; }
.win[data-place="work"] { width: 700px; }
.win[data-place="case"] { width: 900px; }
.win[data-place="setup"] { width: 680px; }
.win[data-place="pricing"] { width: 880px; }
.win[data-place="contact"] { width: 600px; }
.win[data-place="help"] { width: 640px; }
.win[data-place="security"], .win[data-place="doc"] { width: 560px; }
.win[data-place="legal"] { width: 420px; }
.win[data-place="undo"] { width: 480px; }
.win.max { inset: 8px 8px calc(var(--bar-h) + 8px) 8px !important; width: auto !important; max-height: none; }

.bar {
  display: flex; align-items: center; gap: 8px; min-height: 30px;
  padding: 3px 4px 3px 10px; background: var(--chrome); color: var(--paper);
  cursor: grab; user-select: none; touch-action: none;
}
.win:not(.front) .bar { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--chrome); }
.bar .ttl { margin: 0; font: 400 21px/1 var(--sys); letter-spacing: 1px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl { display: flex; gap: 4px; }
.ctl button {
  width: 22px; height: 20px; padding: 0; border: 1px solid var(--paper); background: var(--paper); color: var(--chrome);
  font: 18px/1 var(--sys); cursor: pointer; display: grid; place-items: center;
}
.win:not(.front) .ctl button { border-color: var(--chrome); }
.ctl button:hover { background: var(--chrome); color: var(--paper); border-color: var(--paper); }
.menu { display: flex; gap: 14px; padding: 2px 10px; border-bottom: 1px solid var(--chrome); font: 19px/1.2 var(--sys); }
.menu span { padding: 0 3px; }
.menu.address .field { flex: 1; border: 1px solid var(--chrome); padding: 0 6px; box-shadow: inset 1px 1px 0 var(--shade); }
.body { padding: 18px 20px 20px; overflow: auto; min-height: 0; flex: 1; }
.status {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--chrome); padding: 2px 10px; font: 17px/1.3 var(--sys);
}
.status span + span { border-left: 1px solid var(--chrome); padding-left: 12px; }

/* ---------- shared bits ---------- */
h1, h2, h3 { text-wrap: balance; }
.readme h1 { font: 400 clamp(38px, 4.4vw, 50px)/0.95 var(--sys); margin: 2px 0 14px; letter-spacing: 0.3px; }
.lede { font-size: 18px; margin: 0 0 14px; max-width: 58ch; }
ul.sys { list-style: square; margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
ul.sys li::marker { color: var(--chrome); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; min-height: 36px;
  font: 21px/1 var(--sys); letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
  color: var(--chrome); background: var(--paper); border: 2px solid var(--chrome); box-shadow: 3px 3px 0 var(--chrome);
}
.btn:hover { background: var(--tint); color: var(--chrome); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.primary { background: var(--chrome); color: var(--paper); }
.btn.primary:hover { background: var(--ink); color: var(--paper); }
.mini { font: 17px/1 var(--sys); padding: 2px 8px; border: 1px solid var(--chrome); background: var(--paper); color: var(--chrome); cursor: pointer; }
.note { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--chrome); background: var(--tint); font-size: 15px; }
.msg { margin: 0; font: 19px/1.2 var(--sys); min-height: 1.2em; }
.fine { font-size: 14px; margin: 14px 0 0; }

/* ---------- work folder ---------- */
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.files a { display: grid; gap: 6px; text-decoration: none; padding: 6px; border: 1px dotted transparent; }
.files a:hover, .files a:focus-visible { background: none; border-color: var(--chrome); outline: none; }
.files img { border: 2px solid var(--chrome); box-shadow: 4px 4px 0 var(--shade); aspect-ratio: 8 / 5; object-fit: cover; object-position: top; width: 100%; height: auto; }
.files .fn { font: 19px/1.1 var(--sys); justify-self: start; padding: 0 4px; }
.files a:hover .fn, .files a:focus-visible .fn { background: var(--chrome); color: var(--paper); }
.files .fd, .fd { font-size: 14px; }

/* ---------- case = Display Properties ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--chrome); margin-bottom: 14px; }
.tabs button {
  font: 20px/1 var(--sys); padding: 6px 14px 5px; cursor: pointer; color: var(--chrome);
  background: var(--paper); border: 2px solid var(--chrome); border-bottom: 0; margin-bottom: -2px;
}
.tabs button[aria-selected="true"] { background: var(--chrome); color: var(--paper); }
.monitor {
  margin: 0 auto; max-width: 760px; padding: 12px 12px 26px; position: relative;
  background: repeating-linear-gradient(45deg, var(--paper) 0 2px, var(--tint) 2px 4px);
  border: 2px solid var(--chrome); box-shadow: inset -3px -3px 0 var(--shade);
}
.monitor::after {
  /* the power light */
  content: ""; position: absolute; right: 16px; bottom: 9px; width: 10px; height: 6px; background: var(--chrome);
}
svg.defs { position: absolute; }
.compare { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border: 2px solid var(--chrome); overflow: hidden; background: var(--paper); --cut: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .after { clip-path: inset(0 0 0 var(--cut)); }
.compare .seam { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px var(--chrome); pointer-events: none; }
.compare .seam::after {
  content: "◄►"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font: 18px/1 var(--sys); color: var(--paper); background: var(--chrome); padding: 4px 5px; border: 2px solid var(--paper);
}
.compare::before, .compare::after {
  /* which side is which, always visible */
  position: absolute; top: 8px; z-index: 2; pointer-events: none;
  font: 16px/1 var(--sys); letter-spacing: 0.04em; padding: 3px 6px; border: 1px solid var(--chrome);
}
.compare::before { content: "TODAY"; left: 8px; background: var(--paper); color: var(--ink); }
.compare::after { content: "FRESH LOOK"; right: 8px; background: var(--chrome); color: var(--paper); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible + .seam, .compare:has(input:focus-visible) { outline: 2px dotted var(--ink); outline-offset: 2px; }
.scheme { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font: 19px/1 var(--sys); justify-content: center; }
.chip { border: 1px solid var(--chrome); padding: 3px 8px; }
.chip.on { background: var(--chrome); color: var(--paper); }
.scheme .hint { flex-basis: 100%; text-align: center; font-size: 17px; opacity: 0.85; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; align-items: center; }
.seg .gap { flex: 1; }
.seg button { font: 19px/1 var(--sys); padding: 5px 12px; border: 2px solid var(--chrome); background: var(--paper); color: var(--chrome); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--chrome); color: var(--paper); }
.scroller { height: min(56vh, 520px); overflow: auto; border: 2px solid var(--chrome); background: var(--tint); overscroll-behavior: contain; }
.scroller img { margin: 0 auto; width: 100%; height: auto; }
.scroller.phone { padding: 10px 0; }
.scroller.phone img { width: min(100%, 360px); border: 8px solid var(--chrome); border-radius: 18px; }
.story dl { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px 20px; }
.story dt { font: 21px/1.15 var(--sys); color: var(--chrome); }
.story dd { margin: 0; max-width: 64ch; }
.story dd ul.sys { margin-top: 0; }
.dialog-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dotted var(--chrome); }

/* ---------- setup wizard ---------- */
.wiz { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; min-height: 290px; }
.wiz-art {
  position: relative; overflow: hidden; border: 2px solid var(--chrome);
  background:
    radial-gradient(circle at 1px 1px, var(--paper) 1px, transparent 1.3px) 0 0 / 4px 4px,
    linear-gradient(var(--sky), var(--chrome));
}
.wiz-art span {
  position: absolute; left: 50%; bottom: 14px; transform-origin: left bottom; transform: rotate(-90deg) translateY(50%);
  font: italic 56px/1 var(--brand); color: var(--paper); white-space: nowrap;
  text-shadow: 2px 2px 0 var(--chrome);
}
.steps { list-style: none; margin: 0; padding: 0; }
.step h3 { font: 400 30px/1 var(--sys); margin: 2px 0 12px; }
.step p { margin: 0 0 10px; max-width: 54ch; }
.os .step { display: none; }
.os .step.on { display: block; }
.progress { height: 24px; border: 2px solid var(--chrome); padding: 2px; margin: 4px 0 14px; box-shadow: inset 1px 1px 0 var(--shade); }
.progress span {
  display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(90deg, var(--chrome) 0 12px, transparent 12px 15px);
}
.step.on .progress span { animation: fill 2.6s steps(26, end) both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 19px/1.2 var(--sys); }
.log li::before { content: "✓ "; }
.step.on .log li { animation: appear 0.01s both; }
.step.on .log li:nth-child(1) { animation-delay: 0.5s; }
.step.on .log li:nth-child(2) { animation-delay: 1.1s; }
.step.on .log li:nth-child(3) { animation-delay: 1.8s; }
.step.on .log li:nth-child(4) { animation-delay: 2.5s; }
@keyframes appear { from { visibility: hidden; } to { visibility: visible; } }

/* ---------- pricing & payment ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { border: 2px solid var(--chrome); box-shadow: 5px 5px 0 var(--shade); padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.plan .fit { margin: 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.pick { background: var(--tint); }
.plan.custom h3 { background: var(--ink); }
.price .from { font-size: 22px; margin-right: 8px; align-self: center; }
.includes .cols { display: block; columns: 2 260px; column-gap: 28px; margin: 4px 0 0; }
.includes .cols li { break-inside: avoid; margin-bottom: 4px; }
.pay .fine { margin-top: 8px; }
.agency { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--chrome); }
.agency p { margin: 0; flex: 1 1 320px; }
.kind { border: 1px solid var(--chrome); padding: 6px 12px 10px; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.kind legend { font: 19px/1 var(--sys); padding: 0 6px; }
.mail .kind label { margin: 4px 0 0; font: 16px/1.3 var(--text); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.kind input { width: auto; box-shadow: none; accent-color: var(--chrome); margin: 0; }
.plan h3 { font: 400 22px/1 var(--sys); margin: 0 -16px 12px; padding: 7px 16px; background: var(--chrome); color: var(--paper); }
.price { font: 72px/0.9 var(--sys); margin: 0; display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 38px; }
.price .per { font-size: 22px; margin-left: 8px; }
.group { margin: 18px 0 0; border: 1px solid var(--chrome); padding: 10px 14px 14px; }
.group legend { font: 20px/1 var(--sys); padding: 0 6px; }
.group p { margin: 0; }
.pay label { display: block; font: 19px/1.2 var(--sys); margin-bottom: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 240px; }
input, textarea {
  font: 16px/1.4 var(--text); color: var(--ink); background: var(--paper); width: 100%;
  border: 2px solid var(--chrome); padding: 7px 9px; box-shadow: inset 2px 2px 0 var(--tint); border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(30, 94, 168, 0.62); }
input:focus, textarea:focus { outline: 2px dotted var(--ink); outline-offset: 2px; }

/* ---------- contact = new message ---------- */
.mail { display: grid; gap: 6px; }
.mail .hdr { display: flex; align-items: center; gap: 10px; font: 20px/1 var(--sys); padding-bottom: 10px; border-bottom: 1px dotted var(--chrome); margin-bottom: 6px; }
.mail .to { user-select: all; }
.mail label { font: 19px/1.2 var(--sys); margin-top: 8px; }
.req, .opt { font-size: 15px; opacity: 0.8; margin-left: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > div { display: grid; gap: 6px; min-width: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- help, notepad, legal, bin ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px dotted var(--chrome); padding: 8px 0; }
.faq summary { font: 21px/1.2 var(--sys); cursor: pointer; list-style: none; display: flex; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸"; }
.faq details[open] summary::before { content: "▾"; }
.faq p { margin: 8px 0 4px 22px; max-width: 60ch; }
.paper { max-width: none; }
.paper h3 { font: 400 28px/1 var(--sys); margin: 2px 0 12px; }
.paper p, .paper ol { max-width: 62ch; }
.paper ol { padding-left: 22px; display: grid; gap: 6px; }
.docs { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.docs a { display: grid; justify-items: center; gap: 6px; text-decoration: none; font: 19px/1 var(--sys); padding: 6px; width: 104px; }
.docs a .glyph { width: 32px; height: 32px; }
.bin-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px dotted var(--chrome); margin-bottom: 14px; }
.file-glyph { width: 32px; height: 32px; display: block; }

/* ---------- taskbar, start menu, shut down ---------- */
#taskbar {
  position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 6px; background: var(--paper); border-top: 2px solid var(--chrome);
}
#start {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  font: 22px/1 var(--sys); color: var(--chrome); background: var(--paper);
  border: 2px solid var(--chrome); box-shadow: 2px 2px 0 var(--chrome); cursor: pointer;
}
#start[aria-expanded="true"] { transform: translate(2px, 2px); box-shadow: none; background: var(--tint); }
#start .logo { width: 14px; height: 14px; background: conic-gradient(var(--chrome) 0 25%, var(--sky) 0 50%, var(--chrome) 0 75%, var(--sky) 0); }
#tasks { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
#tasks button {
  height: 30px; max-width: 190px; min-width: 0; padding: 0 10px; font: 18px/1 var(--sys); color: var(--chrome);
  background: var(--paper); border: 1px solid var(--chrome); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#tasks button[aria-pressed="true"] {
  background: repeating-linear-gradient(45deg, var(--paper) 0 2px, rgba(94, 166, 229, 0.28) 2px 4px);
  box-shadow: inset 2px 2px 0 var(--shade);
}
#tray { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border: 1px solid var(--chrome); font: 19px/1 var(--sys); white-space: nowrap; }
#tray .lock { font-size: 16px; letter-spacing: 1px; }
#startmenu {
  position: fixed; z-index: 1001; left: max(6px, env(safe-area-inset-left, 0px)); bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) - 2px);
  display: flex; background: var(--paper); border: 2px solid var(--chrome); box-shadow: 6px 6px 0 var(--shade); min-width: 270px;
}
#startmenu .side { width: 38px; background: var(--chrome); position: relative; }
#startmenu .side span { position: absolute; bottom: 10px; left: 50%; transform-origin: left bottom; transform: rotate(-90deg) translateY(50%); font: italic 28px/1 var(--brand); color: var(--paper); white-space: nowrap; }
#startmenu ul { list-style: none; margin: 0; padding: 4px; flex: 1; }
#startmenu a, #startmenu button { display: block; width: 100%; text-align: left; padding: 7px 12px; font: 21px/1 var(--sys); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
#startmenu a:hover, #startmenu button:hover, #startmenu a:focus-visible, #startmenu button:focus-visible { background: var(--chrome); color: var(--paper); outline: none; }
#startmenu .sep { border-top: 1px solid var(--chrome); margin: 4px 0; }
#shutdown {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; gap: 24px; justify-items: center; text-align: center;
  background: var(--chrome); color: var(--paper); font: clamp(34px, 5vw, 56px)/1.1 var(--sys);
}
#shutdown[hidden] { display: none; }
#shutdown p { margin: 0; }

/* ---------- phones: one window at a time, full screen ---------- */
@media (max-width: 760px) {
  /* phones: the desktop scrolls — brand, icons, then the README as a card; other windows open full-screen */
  :root { --bar-h: 46px; }
  html, body { height: auto; min-height: 100%; }
  .brand-wall { position: relative; inset: auto; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .brand-wall span { font-size: clamp(76px, 26vw, 160px); }
  #desktop { height: auto; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 20px); }
  .icons {
    position: static; padding: 6px max(12px, env(safe-area-inset-left, 0px)) 14px max(12px, env(safe-area-inset-right, 0px));
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; justify-items: center;
  }
  .win, .win.max {
    position: fixed !important; inset: 0 0 calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)) 0 !important;
    width: auto !important; max-width: none; max-height: none; border-width: 0 0 2px; box-shadow: none; transform: none !important;
  }
  .os #win-readme {
    display: flex; position: relative !important; inset: auto !important; z-index: 3 !important;
    margin: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    border-width: 2px; box-shadow: 5px 5px 0 var(--shade);
  }
  #win-readme .ctl { display: none; }
  #win-readme .bar { padding-top: 3px; min-height: 32px; }
  .bar { cursor: default; min-height: 42px; padding-top: calc(3px + env(safe-area-inset-top, 0px)); }
  .ctl .min, .ctl .max { display: none; }
  .ctl button { width: 32px; height: 28px; }
  .files { grid-template-columns: 1fr; }
  .plans, .two { grid-template-columns: 1fr; }
  .story dl { grid-template-columns: 1fr; gap: 4px; }
  .story dd { margin-bottom: 10px; }
  .wiz { grid-template-columns: 1fr; }
  .wiz-art { height: 70px; }
  .wiz-art span { transform: none; left: 12px; bottom: 6px; font-size: 44px; }
  #win-readme .status { display: flex; }
  .status { display: none; }
  #tasks button { max-width: 150px; }
  #tray .lock { display: none; }
}

/* ---------- reading mode: no script, or a crawler ---------- */
html:not(.os) body { background: var(--paper); }
html:not(.os) #sky, html:not(.os) .icons, html:not(.os) #taskbar, html:not(.os) #startmenu, html:not(.os) .dialog-buttons [data-close], html:not(.os) .menu { display: none; }
html:not(.os) .brand-wall { position: static; padding: 24px 16px 0; }
html:not(.os) .win { display: flex; position: static; margin: 24px auto; max-height: none; max-width: min(900px, calc(100% - 32px)); }
html:not(.os) .pane[hidden] { display: block !important; }

@media (prefers-reduced-motion: reduce) {
  .step.on .progress span, .step.on .log li { animation: none; }
  .btn:active { transform: none; }
}
