/* The dashboard's look (D144: quiet glass). Colours, faces and sizes come from design/web/tokens.css;
   the marks and icons from design/web/components.css. Answers have no box; only what floats over
   content is glass. */

* { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: var(--faint) transparent; scrollbar-width: thin; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: var(--body-weight) var(--body-size)/var(--body-line) var(--body-face);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgb(235 235 235 / 0.22); color: var(--ink); }
:focus-visible { outline: var(--focus) solid var(--ink); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--ink); }

/* --- materials -------------------------------------------------------------------------------- */
.glass {
  background: rgb(24 24 24 / 0.6);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 10px 30px rgb(0 0 0 / 0.45);
}
/* a menu or panel over text needs a heavier material than the bar it comes from */
.menu.glass, .panel.glass, .kill-hint.glass, #gresults { background: rgb(26 26 26 / 0.88); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .top::before { background: var(--sheet) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* --- header ----------------------------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--s6), env(safe-area-inset-right, 0px)) 0 max(var(--s6), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between;
}
.top::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--ground) 30%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(#000 45%, transparent); -webkit-mask-image: linear-gradient(#000 45%, transparent);
}
[data-screen="graph"] .top::before { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; }
.seg { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.seg button {
  border: 0; background: none; color: var(--dim); font-size: 0.8125rem; padding: 6px 18px; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: rgb(255 255 255 / 0.09); }
.tools { position: relative; display: flex; align-items: center; gap: var(--s1); }
.plan { display: flex; align-items: center; gap: 6px; margin-right: var(--s3); color: var(--dim); font-size: var(--label-size); }
.plan i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.plan.plan--warn i { background: var(--signal); }
.icon {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim);
  display: grid; place-items: center; transition: color 0.2s, background-color 0.2s, scale 0.1s;
}
.icon .s-ic { margin: 0; }
.icon:hover { color: var(--ink); background: rgb(255 255 255 / 0.07); }
.icon:active { scale: 0.94; }
.kill:hover, .kill[aria-pressed="true"], .kill.armed { color: var(--signal); }
.kill-hint {
  position: absolute; right: 0; top: calc(100% + 6px); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--signal); font-size: var(--label-size);
}
.back { rotate: -90deg; }

.banner {
  position: fixed; z-index: 19; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: var(--s3); padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--signal); color: var(--on-signal); font-size: var(--data-size); max-width: calc(100% - 32px);
}
.banner button { border: 0; border-radius: 999px; padding: 4px 12px; background: var(--on-signal); color: var(--signal); }

/* --- the conversation --------------------------------------------------------------------------- */
.log {
  width: min(720px, calc(100% - 48px)); margin: 0 auto;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 0 calc(170px + env(safe-area-inset-bottom, 0px));
}
.me { display: flex; justify-content: flex-end; margin: var(--s8) 0 var(--s4); }
.me p {
  margin: 0; max-width: 78%; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--sheet);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.reply { margin-bottom: var(--s6); }
.who {
  display: flex; align-items: center; gap: var(--s2); min-height: 20px; margin: 0 0 var(--s2);
  color: var(--dim); font-size: var(--label-size); line-height: var(--label-line);
}
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.note { color: var(--dim); font-size: var(--label-size); margin: var(--s2) 0; }
.error { color: var(--signal); font-size: var(--data-size); margin: var(--s2) 0; }

.answer { overflow-wrap: anywhere; }
.answer > :first-child { margin-top: 0; }
.answer p, .answer ul, .answer ol, .answer pre, .answer .table, .answer blockquote { margin: 0 0 var(--s3); max-width: 68ch; }
.answer p { text-wrap: pretty; }
.answer strong { font-weight: 600; }
.answer em { font-style: italic; }
.answer del { color: var(--dim); }
.answer :is(h1, h2, h3, h4, h5, h6) { margin: var(--s6) 0 var(--s2); font: 600 var(--body-size)/var(--body-line) var(--body-face); text-wrap: balance; }
.answer :is(h1, h2) { font-size: 1.0625rem; }
.answer ol { list-style: decimal; padding-left: 1.4em; }
.answer li { margin: 2px 0; }
.answer li > :is(ul, ol) { margin: 2px 0 0; }
.answer li > p { margin: 0; }
.answer li::marker { color: var(--dim); }
.answer a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
.answer a:hover { text-decoration-color: var(--ink); }
.answer blockquote { padding-left: var(--s4); box-shadow: inset 2px 0 0 var(--faint); color: var(--dim); }
.answer blockquote p { margin: 0 0 var(--s2); }
.answer hr { border: 0; height: 1px; max-width: 68ch; margin: var(--s6) 0; background: rgb(255 255 255 / 0.08); }
.answer code { font-variant-numeric: tabular-nums; background: var(--sheet); padding: 1px 5px; border-radius: 6px; font-size: 0.92em; }
.answer pre { background: var(--sheet); padding: var(--s3) var(--s4); border-radius: 12px; white-space: pre-wrap; font-size: var(--data-size); }
.answer pre code { background: none; padding: 0; font-size: inherit; }
:is(.answer, .pic) .table { overflow-x: auto; max-width: 100%; }
:is(.answer, .pic) table { border-collapse: collapse; font-size: var(--data-size); line-height: var(--data-line); font-variant-numeric: tabular-nums; }
:is(.answer, .pic) :is(th, td) { text-align: left; padding: 6px 16px 6px 0; vertical-align: top; }
:is(.answer, .pic) :is(th, td):last-child { padding-right: 0; }
:is(.answer, .pic) th { color: var(--dim); font-weight: 500; }
:is(.answer, .pic) tr + tr td, .pic tbody tr:first-child td { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); }
:is(.answer, .pic) :is(.num, .al-right) { text-align: right; }
:is(.answer, .pic) .al-center { text-align: center; }

/* Pictures under an answer (D145). Typst draws them on the page's own ground, so they need no frame; on a
   wide screen a drawing may reach past the text column to its own 960 px. */
.figures:empty { display: none; }
.pic { margin: var(--s4) 0 var(--s6); }
.pic img { display: block; width: calc(100% + 48px); height: auto; margin: 0 -24px; }
.pic figcaption { margin: 0 0 var(--s2); font-weight: 600; text-wrap: balance; }
.pic figcaption small { display: block; color: var(--dim); font-weight: 400; font-size: var(--label-size); }
.inline-graph { position: relative; height: 340px; border-radius: 16px; background: rgb(255 255 255 / 0.03); overflow: hidden; }
.inline-graph__foot { display: flex; gap: var(--s2); align-items: center; justify-content: space-between; margin-top: var(--s2); color: var(--dim); font-size: var(--label-size); }
@media (min-width: 1100px) {
  #app:not(.with-panel) .pic img { width: 960px; margin-left: calc((100% - 960px) / 2); }
}
@media (max-width: 767px) {  /* the narrow drawing, 420 px: never blown up past a phone's size */
  .pic img { max-width: 468px; }
}
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.05); color: var(--dim);
  font-size: var(--label-size); transition: color 0.2s, background-color 0.2s;
}
.chip:hover, .chip[aria-expanded="true"] { color: var(--ink); background: rgb(255 255 255 / 0.09); }
.chip .s-ic { margin: 0; width: 12px; height: 12px; }
.mini { width: 28px; height: 14px; }
.mini path { fill: none; stroke: currentColor; stroke-width: 1; }
.mini circle { fill: currentColor; }

/* --- the stage: the orb, big, with what it touched around it, while SARMIS works ---------------- */
.stage { position: relative; margin: var(--s2) 0 var(--s4); }
.stage__field { position: relative; height: 420px; display: grid; place-items: center; }
.stage .map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .big { position: relative; }
.stage__thinking {
  width: min(56ch, 100%); margin: 0 auto; min-height: 3lh; max-height: 3lh; overflow: hidden;
  color: var(--faint); font-size: var(--label-size); line-height: var(--label-line); text-align: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  mask-image: linear-gradient(transparent, #000 60%); -webkit-mask-image: linear-gradient(transparent, #000 60%);
}
.map .edge { fill: none; stroke-width: 1; animation: draw 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; stroke-dasharray: 900; }
.map .edge.solid { stroke: var(--line-solid); opacity: 0.45; }
.map .edge.faint { stroke: var(--line-faint); }
.map .node { animation: appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.map .dot { fill: var(--ink); }
.map .dot.small { fill: var(--dim); }
.map .ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.map text { fill: var(--dim); font: 400 11px var(--sans); }
.map .new text { fill: var(--ink); }
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }
::view-transition-group(orb) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

/* --- questions from SARMIS (AskUserQuestion) ----------------------------------------------------- */
.ask { display: grid; gap: var(--s3); margin: var(--s3) 0; max-width: 68ch; }
.ask__q { margin: 0; }
.ask__opts { display: grid; gap: var(--s2); }
.opt {
  display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 0; border-radius: 14px;
  background: rgb(255 255 255 / 0.05); transition: background-color 0.2s;
}
.opt:hover { background: rgb(255 255 255 / 0.09); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.opt small { color: var(--dim); font-size: var(--label-size); line-height: var(--label-line); }
.opt[aria-pressed="true"] small { color: var(--ground); opacity: 0.7; }
.ask__own { display: flex; gap: var(--s2); }
.field {
  flex: 1; min-width: 0; padding: 8px 14px; border: 0; border-radius: 999px; outline: 0;
  background: rgb(255 255 255 / 0.06); color: var(--ink);
}
.field::placeholder { color: var(--dim); }
.field:focus-visible { box-shadow: inset 0 0 0 1px var(--dim); }
.btn {
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: var(--ink);
  font-size: var(--data-size); white-space: nowrap; transition: background-color 0.2s;
}
.btn:hover { background: rgb(255 255 255 / 0.14); }
.btn--main { background: var(--ink); color: var(--ground); }
.btn--main:hover { background: var(--ink); opacity: 0.9; }
.btn--quiet { height: 26px; padding: 0 10px; background: transparent; color: var(--dim); font-size: var(--label-size); }
.btn--quiet:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }

/* --- the composer: one floating object holding every control ------------------------------------ */
.dock {
  position: fixed; z-index: 15; left: 50%; translate: -50% 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100% - 32px));
}
[data-screen="graph"] .dock { display: none; }
.composer { padding: 10px 10px 10px 18px; border-radius: 26px; }
.composer textarea {
  display: block; width: 100%; min-height: 30px; max-height: 200px; padding: 6px 0; border: 0; outline: 0; resize: none;
  background: transparent; color: var(--ink); caret-color: var(--ink);
}
.composer textarea::placeholder { color: var(--dim); }
.row { display: flex; align-items: center; gap: var(--s1); }
.grow { flex: 1; }
.effort { margin-left: -8px; background: transparent; }
.effort b { color: var(--ink); font-weight: 500; }
.ctx { background: transparent; gap: 8px; }
.bar { display: flex; gap: 3px; }
.bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.bar i.on { background: var(--ink); }
.ctx.ctx--high .bar i.on { background: var(--signal); }
.send {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--ground);
  display: grid; place-items: center; transition: scale 0.1s, opacity 0.2s;
}
.send .s-ic { margin: 0; }
.send:active { scale: 0.94; }
.send:disabled { opacity: 0.3; }

.menu {
  position: absolute; bottom: calc(100% + 10px); left: 8px; width: 280px; max-width: calc(100vw - 32px);
  padding: 8px; border-radius: 20px; transform-origin: 20% 100%;
  animation: materialize 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
#ctx-menu { left: 80px; }
#slash-menu { width: 360px; }
#slash-menu button span { white-space: nowrap; min-width: 9.5em; }
@keyframes materialize { from { opacity: 0; scale: 0.96; filter: blur(4px); } }
.menu button {
  display: flex; align-items: baseline; gap: var(--s2); width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
  text-align: left; background: transparent;
}
.menu button:hover, .menu button.active { background: rgb(255 255 255 / 0.08); }
.menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); align-self: center; }
.menu button small { color: var(--dim); font-size: var(--label-size); }
.menu__head { display: flex; align-items: baseline; gap: var(--s2); margin: 6px 10px 0; }
.menu__head span { margin-left: auto; color: var(--dim); font-size: var(--label-size); }
.menu__note { margin: 2px 10px 8px; color: var(--dim); font-size: var(--label-size); line-height: var(--label-line); }
.menu__credits { margin: 8px 10px 4px; color: var(--faint); font-size: 0.6875rem; line-height: 1rem; }

/* --- the side panel: an answer's steps, sources and graph; a person's page; the edits -------------- */
.panel {
  position: fixed; z-index: 18; top: calc(72px + env(safe-area-inset-top, 0px)); right: 16px; bottom: 16px;
  width: min(560px, 44vw); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
  animation: slide-in 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slide-in { from { opacity: 0; translate: 24px 0; } }
#app.with-panel .log { margin-left: max(24px, calc((100% - min(560px, 44vw) - 32px - 720px) / 2)); }
#app.with-panel .dock { left: calc((100% - min(560px, 44vw) - 32px) / 2); width: min(720px, calc(100% - min(560px, 44vw) - 64px)); }
.panel__head { display: flex; align-items: center; gap: var(--s2); padding: 12px 12px 4px 20px; }
.panel__head h2 { flex: 1; margin: 0; font: 600 var(--name-size)/var(--name-line) var(--name-face); letter-spacing: var(--name-tracking); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 2px; padding: 4px 16px 8px; }
.tabs button { border: 0; background: none; color: var(--dim); padding: 6px 12px; border-radius: 999px; font-size: var(--data-size); }
.tabs button[aria-selected="true"] { color: var(--ink); background: rgb(255 255 255 / 0.09); }
.panel__body { flex: 1; overflow-y: auto; padding: 8px 20px 24px; overscroll-behavior: contain; }
.panel__body.flush { padding: 0; overflow: hidden; position: relative; }
.panel .sub { color: var(--dim); font-size: var(--label-size); line-height: var(--label-line); margin: 0 0 var(--s3); }
.panel h3 { margin: var(--s6) 0 var(--s2); color: var(--dim); font: 500 var(--label-size)/var(--label-line) var(--label-face); }
.panel .empty { color: var(--dim); font-size: var(--data-size); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.inline-form { display: grid; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.inline-form .row { gap: var(--s2); }
.msg { color: var(--dim); font-size: var(--label-size); margin: var(--s1) 0; }
.msg.bad { color: var(--signal); }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.item { display: flex; gap: var(--s2); padding: 8px 0; align-items: flex-start; }
.item + .item { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.item__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.item__line { overflow-wrap: anywhere; }
.item__meta { color: var(--dim); font-size: var(--label-size); line-height: var(--label-line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.item--past .item__line { color: var(--dim); }
.item .s-mark { margin-top: 3px; }
.item--sub { padding-left: var(--s6); }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; text-align: left; }
.linkish:hover { text-decoration-color: var(--ink); }
.episode { margin: var(--s2) 0; padding: var(--s3) var(--s4); border-radius: 12px; background: rgb(255 255 255 / 0.04); white-space: pre-wrap; font-size: var(--data-size); line-height: var(--data-line); }
.edit--undone .item__line { color: var(--dim); text-decoration: line-through; }

/* --- the graph ---------------------------------------------------------------------------------- */
.graph-canvas { position: fixed; inset: 0; }
#app.with-panel .graph-canvas { right: calc(min(560px, 44vw) + 32px); }
.gsearch {
  position: fixed; z-index: 16; top: calc(76px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0;
  width: min(480px, calc(100% - 32px)); border-radius: 22px; padding: 0 8px 0 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
}
#app.with-panel .gsearch { left: calc((100% - min(560px, 44vw) - 32px) / 2); }
.gsearch .s-ic { margin: 0; color: var(--dim); }
.gsearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.gsearch input::placeholder { color: var(--dim); }
.gsearch input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.5; }
#gresults {
  flex-basis: 100%; list-style: none; margin: 0 -8px 0 -16px; padding: 6px; border-radius: 0 0 22px 22px;
  max-height: 50vh; overflow-y: auto; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
#gresults li { display: flex; gap: var(--s2); align-items: baseline; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
#gresults li:hover, #gresults li[aria-selected="true"] { background: rgb(255 255 255 / 0.08); }
#gresults small { color: var(--dim); font-size: var(--label-size); margin-left: auto; white-space: nowrap; }
.gcount {
  position: fixed; z-index: 16; left: 50%; translate: -50% 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  margin: 0; color: var(--dim); font-size: var(--label-size); text-align: center; max-width: calc(100% - 32px);
}
.mini-graph { position: absolute; inset: 0; }
.mini-graph__foot { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; gap: var(--s2); align-items: center; justify-content: space-between; color: var(--dim); font-size: var(--label-size); }

/* --- login --------------------------------------------------------------------------------------- */
.login { width: min(360px, calc(100% - 32px)); margin: 22vh auto 0; display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.login h1 { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; }
.login .field { width: 100%; height: 44px; text-align: center; }
.login p { margin: 0; color: var(--dim); font-size: var(--label-size); line-height: var(--label-line); }
.login .bad { color: var(--signal); }

/* --- phone ---------------------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .panel { inset: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; z-index: 30; }
  #app.with-panel .log, #app.with-panel .dock, #app.with-panel .gsearch { margin-left: auto; left: 50%; width: min(760px, calc(100% - 32px)); }
  #app.with-panel .log { width: min(720px, calc(100% - 32px)); }
  #app.with-panel .graph-canvas { right: 0; }
}
@media (max-width: 639px) {
  .top { height: calc(56px + env(safe-area-inset-top, 0px)); padding-left: max(var(--s3), env(safe-area-inset-left, 0px)); padding-right: max(var(--s3), env(safe-area-inset-right, 0px)); }
  .brand span, .plan span { display: none; }
  .plan { margin-right: var(--s1); }
  .seg button { padding: 6px 14px; }
  .log { width: calc(100% - 32px); padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  .me p { max-width: 88%; }
  .stage__field { height: 470px; }
  .map text { font-size: 12px; }
  .dock { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 16px); }
  .composer { border-radius: 24px; }
  .pic img { width: calc(100% + 32px); margin: 0 -16px; }
  .inline-graph { height: 300px; }
  .gsearch { top: calc(64px + env(safe-area-inset-top, 0px)); }
  #ctx-menu { left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .map *, .menu, .panel, .caret { animation: none !important; }
  ::view-transition-group(orb) { animation-duration: 0s; }
}
