/* Payout app (/app): draft B's map with the batch as its cells, the corner as the composer, windows over the map.
   Shared tokens, rail, ticker, buttons, detail window and picker come from hushel.css. */

/* ---------- work area: the map fills it edge to edge ---------- */
.work { position: fixed; top: var(--tick); left: var(--rail); right: 0; bottom: 0; }
.map-wrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; outline: none; }
#map:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.phone-only, .phone-foot { display: none !important; }
.noscript { position: fixed; bottom: 16px; right: 16px; z-index: 60; font-size: 13px; }

/* ---------- the corner: org, steps, the composer, checks ---------- */
.app-corner { position: absolute; z-index: 5; left: 0; top: 0; width: var(--corner); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 24px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
html.js .app-corner > * { opacity: 0; transform: translateY(8px); animation: rise 700ms var(--ease-out) forwards; }
html.js .app-corner > :nth-child(2) { animation-delay: 60ms; } html.js .app-corner > :nth-child(3) { animation-delay: 120ms; }
html.js .app-corner > :nth-child(n+4) { animation-delay: 180ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.org-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-logo img { display: block; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.app-corner h1 { margin: 0; min-width: 0; font: 900 44px/.95 var(--f-head); letter-spacing: -.04em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 2px; }
.verif { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; color: var(--ink-2); }
.verif-tag { display: inline-flex; align-items: center; font: 800 15px/1 var(--f-head); letter-spacing: .01em; padding: 7px 10px 6px; border-radius: 4px;
  background: #000; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.verif-tag.ok { background: var(--ink); color: #000; box-shadow: none; }
.verif-tag.sm { font: 700 13px/1 var(--f-head); padding: 4px 7px; }
.app-corner .line { margin: 0; font: 500 18px/1.25 var(--f-head); letter-spacing: -.01em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.step { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 6px; border-radius: 22px; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; font: 600 13px/1.1 var(--f-body); color: var(--ink-2); text-align: left;
  transition: background-color 160ms var(--ease-press), color 160ms var(--ease-press), transform 150ms var(--ease-press); }
.step:hover { background: var(--raised-2); color: var(--ink); }
.step:active { transform: scale(.97); }
.step .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--f-head); box-shadow: inset 0 0 0 1.5px currentColor; }
.step .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step[data-state="now"] { background: var(--ink); color: #000; border-color: var(--ink); }
.step[data-state="now"]:hover { background: #e9e2f7; }
.step[data-state="done"] { color: var(--ink); background: var(--raised-2); }
.step[data-state="done"] .n { background: var(--purple); color: transparent; box-shadow: none; position: relative; }
.step[data-state="done"] .n::after { position: absolute; left: 8px; top: 8px; }
.step[data-state="done"] .n::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.step[aria-busy="true"] { cursor: progress; }

.compose { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.compose-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.compose label { font-size: 13px; color: var(--ink-2); }
.compose .count { font-size: 13px; color: var(--ink-3); }
.compose textarea { width: 100%; min-height: 96px; resize: vertical; border-radius: 16px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink);
  padding: 12px 14px; font: 400 13px/1.5 var(--f-mono); transition: border-color 160ms var(--ease-press), background-color 160ms var(--ease-press); }
.compose textarea::placeholder { color: var(--ink-3); font-family: var(--f-body); }
.compose textarea:hover { border-color: rgba(255,255,255,.34); }
.compose textarea:focus-visible { outline: none; border-color: var(--ink); background: #000; }
.compose-act { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.asset-pick span { margin-right: 4px; }
.asset-pick button { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font: 600 13px/1 var(--f-mono); cursor: pointer; transition: background-color 160ms var(--ease-press), color 160ms var(--ease-press), border-color 160ms var(--ease-press); }
.asset-pick button:hover { border-color: rgba(255,255,255,.34); color: var(--ink); }
.asset-pick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #000; }
.asset-pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn.sm { height: 44px; padding: 0 14px; }
.btn.send { background: var(--purple); color: #fff; height: 52px; border-radius: 26px; padding: 0 22px; font-size: 15px; }
.btn.send:hover { background: #a75cff; }
.btn.send[aria-disabled="true"]:hover { background: var(--purple); }
.spin-s { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 900ms linear infinite; vertical-align: -3px; margin-right: 8px; }
.btn .spin-s { margin-right: 0; }
.msg.shake, .w-msg.shake { animation: shake 280ms var(--ease-press); }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.checks li { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; }
.checks li b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.checks li span:last-child { grid-column: 2; }
.checks li b + span { grid-column: 2; }
.ck { grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 4px; }
.ck.ok { background: var(--ink); border-radius: 50%; }
.ck.bad { background: var(--purple); }
.ck.wait { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 50%; }
.ck.unk { box-shadow: inset 0 0 0 1.5px var(--ink-3); border-radius: 2px; }
.ck.idle { background: var(--line-2); border-radius: 50%; }
.ck.run { border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin 900ms linear infinite; }

.send-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.send-row .send { flex: 1 1 auto; }
.remind a { color: var(--ink); display: inline-block; padding: 14px 2px; margin: -14px -2px; }
.remind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--raised-2);
  font-size: 13px; color: var(--ink); box-shadow: inset 3px 0 0 var(--purple); }
.linkish { min-height: 44px; border: 0; background: transparent; padding: 0 4px; cursor: pointer; font: 600 13px/1 var(--f-body); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color 160ms var(--ease-press); }
.linkish:hover { text-decoration-color: var(--ink); }

/* legend: the row states drawn on the map */
.a-legend { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: var(--ink-2); }
.a-legend li { display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.a-legend li.wide { grid-column: 1 / -1; color: var(--ink-3); }
.a-legend .pub-only { display: none; }
body.has-pub .a-legend .pub-only { display: flex; }
.sw.st-ready { background: #000; box-shadow: inset 0 0 0 2px var(--ink); }
.sw.st-waiting { background: #000; border: 2px dashed var(--ink); }
.sw.st-unchecked { background: #000; border: 1.5px dotted rgba(255,255,255,.6); }
.sw.st-invalid { background: repeating-linear-gradient(-45deg, rgba(153,69,255,.55) 0 2px, #000 2px 5px); box-shadow: inset 0 0 0 2px var(--purple); }
.sw.st-blocked { background: linear-gradient(45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), #000;
  box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- empty states and the reading chip, over the map ---------- */
.map-empty { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 12px; padding: 32px max(32px, 6vw); pointer-events: none; }
.map-empty > * { pointer-events: auto; }
.map-empty .e-big { margin: 0; max-width: 16ch; font: 900 56px/.98 var(--f-head); letter-spacing: -.04em; display: flex; align-items: center; flex-wrap: wrap; }
.map-empty .e-big .spin-s { width: 28px; height: 28px; border-width: 3px; margin-right: 14px; }
.map-empty .e-sub { margin: 0; max-width: 46ch; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.map-empty .btn { margin-top: 6px; }
.map-caption { position: absolute; z-index: 3; left: calc(var(--corner) + 16px); bottom: 16px; max-width: min(560px, calc(100% - var(--corner) - 32px)); margin: 0; padding: 12px 14px;
  border-radius: 12px; background: #000; border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.map-caption p { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.map-caption .btn { flex: none; }
.map-chip { position: absolute; z-index: 3; right: 16px; bottom: 16px; margin: 0; max-width: min(460px, calc(100% - 32px)); padding: 10px 14px; border-radius: 12px;
  background: #000; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink); display: flex; align-items: center; }

/* ---------- windows over the map ---------- */
.win { width: 440px; z-index: 25; }
.win.wide { width: 520px; }
.w-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.w-head h2 { flex: 1; min-width: 0; margin: 0; font: 800 24px/1.1 var(--f-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.w-head .sw { width: 18px; height: 18px; }
.w-sub { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.w-lead { margin: 6px 0 4px; font: 500 16px/1.4 var(--f-head); color: var(--ink); }
.w-sec { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.w-sec h3 { margin: 0 0 8px; font: 700 16px/1.2 var(--f-head); letter-spacing: -.01em; }
.w-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.w-note a, .w-checks a, .pay td a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
/* inline links keep the line height but get a 44 px tall press area */
.w-note a, .w-checks a { display: inline-block; padding: 14px 2px; margin: -14px -2px; }
.w-alert { color: var(--ink); }
.w-alert::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--purple); margin-right: 8px; transform: translateY(-1px); }
.w-msg { margin: 12px 0 0; min-height: 20px; font-size: 13px; color: var(--ink-2); }
.w-msg.err { color: var(--ink); }
.w-msg.err::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--purple); margin-right: 8px; transform: translateY(-1px); }
.w-state { margin: 10px 0 0; }
.w-empty { margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.w-empty b { font: 700 16px/1.3 var(--f-head); display: flex; align-items: center; }
.w-empty span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.w-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.w-warn { background: var(--raised-2); border-top: 0; border-radius: 12px; padding: 14px; box-shadow: inset 3px 0 0 var(--purple); }
.w-warn p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.w-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.w-more summary:hover { color: var(--ink); }
.hex { margin: 0; font-size: 13px; line-height: 1.5; word-break: break-all; color: var(--ink-2); user-select: all; }
.msgtext { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.kv dd.addr { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.icon-btn.sm { width: 44px; height: 44px; }

.w-checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.w-checks li { position: relative; padding-left: 20px; }
.w-checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; }
.w-checks li.ok::before { background: var(--ink); border-radius: 50%; }
.w-checks li.bad { color: var(--ink); }
.w-checks li.bad::before { background: var(--purple); }
.w-checks li.wait::before { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 50%; }
.w-checks li.unk::before { box-shadow: inset 0 0 0 1.5px var(--ink-3); border-radius: 2px; }
.w-checks li.run::before { border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin 900ms linear infinite; box-sizing: border-box; }
.w-checks b { color: var(--ink); font-weight: 600; }
.w-checks .src { color: var(--ink-3); }

.w-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.w-sec.w-form { margin-top: 14px; }
.w-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.w-form .lab { display: flex; justify-content: space-between; gap: 8px; }
.w-form label .cnt { color: var(--ink-3); }
.w-form input:not([type="checkbox"]):not([type="file"]), .w-form textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raised-2);
  color: var(--ink); padding: 0 14px; font: 400 16px/1.2 var(--f-body); transition: border-color 160ms var(--ease-press), background-color 160ms var(--ease-press); }
.w-form textarea { padding: 10px 14px; min-height: 84px; resize: vertical; font: 400 13px/1.5 var(--f-mono); }
.w-form input.mono { font-family: var(--f-mono); font-size: 15px; }
.w-form input::placeholder, .w-form textarea::placeholder { color: var(--ink-3); }
.w-form input:hover, .w-form textarea:hover { border-color: rgba(255,255,255,.34); }
.w-form input:focus-visible, .w-form textarea:focus-visible { outline: none; border-color: var(--ink); background: #000; }
.w-form input[type="date"] { color-scheme: dark; }
.w-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.w-form.inline input { flex: 1 1 160px; width: auto; }
.pre { position: relative; display: block; }
.pre > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-family: var(--f-mono); pointer-events: none; }
.pre input { padding-left: 30px !important; font-family: var(--f-mono) !important; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.logo-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.w-org { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.w-org img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.w-org-blank { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: var(--raised-2); font: 900 24px/1 var(--f-head); color: var(--ink-2); flex: none; }
.w-org-blank.sm { width: 44px; height: 44px; font-size: 18px; border-radius: 8px; }
.w-org-name { margin: 0 0 6px; font: 800 20px/1.15 var(--f-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.quote { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #000; border: 1px solid var(--line-2); }
.quote p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.toggle { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; color: var(--ink) !important; line-height: 1.5; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--line-2); position: relative;
  transition: background-color 160ms var(--ease-press); margin-top: 1px; }
.toggle .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2);
  transition: transform 200ms var(--ease-out), background-color 160ms var(--ease-press); }
.toggle input:checked + .track { background: var(--purple); }
.toggle input:checked + .track::after { transform: translateX(18px); background: #fff; }
.toggle input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }

.figs { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
.fig { display: flex; align-items: center; gap: 10px; }
.fig b { font: 900 34px/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fig span { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.confirm { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.confirm .fine { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12px; }

.w-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.w-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.w-list li .w-note { flex-basis: 100%; margin: 0; }
.rcs .rc { display: block; }
.rc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-h b { font: 700 16px/1.2 var(--f-head); }
.r-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.r-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.r-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--f-head); box-shadow: inset 0 0 0 1.5px var(--ink-2); color: var(--ink-2); }
.r-step.done .n { background: var(--purple); color: #fff; box-shadow: none; }
.r-step b { font: 700 16px/1.3 var(--f-head); }
.r-step .w-note:first-of-type { margin-top: 2px; }
.w-navs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.w-nav { width: 100%; min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease-press); }
.w-nav:hover { background: var(--raised-2); }
.w-nav b { font: 700 16px/1.2 var(--f-head); }
.w-nav span { font-size: 13px; color: var(--ink-2); }
.win .pay { margin-top: 8px; }
.win .pay td { font-size: 13px; }
.win .pay .pill { white-space: nowrap; }

/* ---------- ticker additions ---------- */
.t-note { color: var(--ink-2); }
.rail-off { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); margin-right: 8px; }
.ticker .fix.r { gap: 0; }
#tkLeft { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- a short window ---------- */
@media (min-width: 760px) and (max-height: 860px) {
  .app-corner { gap: 10px; padding-top: 16px; }
  .app-corner h1 { font-size: 38px; }
  .app-corner .line { font-size: 16px; }
  .compose textarea { min-height: 76px; }
  .map-empty .e-big { font-size: 46px; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  :root { --corner: 320px; }
  .map-empty .e-big { font-size: 42px; }
  .win, .win.wide { width: min(440px, calc(100vw - var(--rail) - 24px)); }
}

/* ---------- phone ---------- */
@media (max-width: 759px) {
  .phone-only { display: flex !important; }
  .phone-foot { display: flex !important; }
  .work { position: relative; top: 0; left: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
  .app-corner { display: contents; }
  .app-corner > * { margin-left: 16px; margin-right: 16px; }
  .org-head { order: 1; margin-top: 18px; } .verif { order: 2; } .app-corner .line { order: 3; } .steps { order: 4; } .compose { order: 5; }
  .map-wrap { order: 6; } .send-row { order: 7; } .remind { order: 8; } .checks { order: 9; }
  #journal { order: 5; } .a-legend { order: 10; } .phone-foot { order: 11; }
  #mapText { order: 12; }
  .app-corner h1 { font-size: 40px; }
  .app-corner .line { margin-left: 16px; margin-right: 16px; }
  .map-wrap { position: relative; inset: auto; height: max(520px, calc(100svh - 160px)); }
  .map-empty { left: 0 !important; padding: 24px 16px; justify-content: flex-start; }
  .map-empty .e-big { font-size: 36px; }
  .compose textarea { font-size: 16px; }
  .win, .win.wide { width: 100%; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .w-form .two { grid-template-columns: 1fr; }
  .figs { gap: 10px 18px; }
  .fig b { font-size: 28px; }
  .map-chip { left: 16px; right: 16px; bottom: 12px; }
  .map-caption { left: 16px; right: 16px; bottom: 12px; max-width: none; }
  .ticker .belt { mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
}
@media (max-width: 380px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .step { padding: 0 6px 0 4px; gap: 4px; }
  .step .n { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .app-corner > * { animation: none; opacity: 1; transform: none; }
  .msg.shake, .w-msg.shake, .win.open { animation: none; }
  .spin-s, .ck.run, .w-checks li.run::before { animation-duration: 2.4s; }
}
