:root {
  --bg: #05070f;
  --fg: #e8edf2;
  --muted: #8b97a5;
  --accent: #e0877e;
  --accent-contrast: #1a0604;
  --card: #14181d;
  --line: #232a32;
  --well: #0f1216;
  --calm: #7ee0a8;
  --warn: #e0b87e;
  --alert: #e0937e;
  --read: 46rem;
  --wide: 80rem;
  --bar-start: 0px;
  --bar-end: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar > .bar-inner { margin-left: var(--bar-start); margin-right: var(--bar-end); }
:root[data-window="mac-app"] { --bar-start: 4rem; }
@media (display-mode: window-controls-overlay) {
  :root { --bar-start: max(0px, calc(env(titlebar-area-x, 0px) - 1rem)); --bar-end: max(0px, calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) - 1rem)); }
  .bar { min-height: env(titlebar-area-height, 0px); -webkit-app-region: drag; app-region: drag; }
  .bar a, .bar button, .bar select, .bar input, .bar label { -webkit-app-region: no-drag; app-region: no-drag; }
}
.bar-inner { display: flex; align-items: center; gap: 1rem; }
.spacer { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.4rem; margin-left: -0.4rem; border: 0; border-radius: 0.5rem; background: none; color: var(--fg); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.brand:hover { background: var(--card); }
.brand::after { content: ""; width: 0.35rem; height: 0.35rem; margin: -0.2rem 0 0 0.1rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mark { width: 0.9rem; height: 0.9rem; border-radius: 0.3rem; background: var(--accent); flex: none; }
.me { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.me:hover { color: var(--fg); }
.me svg { width: 1.1rem; height: 1.1rem; }
.menu { position: fixed; inset: auto; top: 3.6rem; bottom: auto; width: max-content; height: auto; max-height: calc(100vh - 4.5rem); overflow-y: auto; margin: 0; min-width: 14rem; padding: 0.35rem; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 12px 30px rgb(0 0 0 / 0.5); }
.menu:popover-open { display: grid; align-content: start; gap: 2px; }
.menu-start { left: calc(0.6rem + var(--bar-start)); }
.menu-end { right: calc(0.6rem + var(--bar-end)); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.5rem 0.7rem; border: 0; border-radius: 0.5rem; background: none; color: var(--fg); font: inherit; font-size: 0.92rem; text-align: left; text-decoration: none; cursor: pointer; }
.menu > a:hover, .menu > button:hover { background: var(--line); }
.menu > [aria-current] { font-weight: 600; }
.menu > a > i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); }
.menu hr { width: 100%; margin: 0.25rem 0; border: 0; border-top: 1px solid var(--line); }
.menu .to-sluice > i { background: #7ec4e0; }
.menu .to-scan > i { background: #b8a0e8; }
.menu .to-iris > i { background: #d0dc7e; }
.menu .to-streamline > i { background: #e0877e; }
.menu .to-exchange > i { background: #7ee0a8; }
.menu .to-cadence > i { background: #e0b07e; }
.menu .to-account > i { background: #e89ab8; }
.menu .to-home > i { background: #9fb8e8; border-radius: 50%; }
.shell { flex: 1 0 auto; width: 100%; max-width: calc(var(--shell) + 14.5rem); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 12.5rem; gap: 2rem; }
.nav { position: sticky; top: 3.5rem; align-self: start; padding: 1.5rem 0; display: grid; gap: 0.15rem; }
.nav a, .nav button { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border: 0; border-radius: 0.55rem; background: none; color: var(--muted); font: inherit; font-size: 0.93rem; text-align: left; text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover { color: var(--fg); background: var(--card); }
.nav [aria-current="page"], .nav [aria-pressed="true"] { color: var(--fg); background: var(--card); box-shadow: inset 2px 0 0 var(--accent); }
.nav .count { font-size: 0.75rem; color: var(--accent-contrast); background: var(--accent); border-radius: 999px; padding: 0 0.45rem; font-weight: 700; }
.nav hr { border: 0; border-top: 1px solid var(--line); margin: 0.75rem 0.5rem; }
.tabbar { display: none; }
@media (max-width: 1100px) {
  .shell { max-width: var(--shell); grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav { display: none; }
  body:has(.tabbar:not([hidden])) { padding-bottom: 4.5rem; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); padding: 0.35rem env(safe-area-inset-right) calc(0.35rem + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 0.1rem; padding: 0.3rem 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.7rem; text-decoration: none; position: relative; cursor: pointer; }
  .tabbar b { font-size: 1.05rem; font-weight: 400; }
  .tabbar [aria-current="page"], .tabbar [aria-pressed="true"] { color: var(--accent); }
  .tabbar .count { position: absolute; top: 0; left: 55%; font-size: 0.65rem; background: var(--accent); color: var(--accent-contrast); border-radius: 999px; padding: 0 0.35rem; font-weight: 700; }
}
img[data-turn="90"] { rotate: 90deg; }
img[data-turn="180"] { rotate: 180deg; }
img[data-turn="270"] { rotate: 270deg; }
.freshtoast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 2rem); padding: 0.55rem 1.1rem; background: var(--card); color: var(--fg); border: 1px solid var(--accent); border-radius: 999px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); font-size: 0.9rem; text-align: center; }
@media (max-width: 1100px) { .freshtoast { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); } }
.installbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 1rem; background: var(--card); border-bottom: 1px solid var(--accent); color: var(--fg); font-size: 0.875rem; }
.installbar-text { margin: 0; flex: 1 1 20rem; }
.installbar-actions { display: flex; gap: 0.5rem; }
.installbar-actions button { font: inherit; border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.installbar-install { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
.installbar-dismiss { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.skel { display: grid; gap: 0.75rem; }
.skel > i { display: block; height: 0.95rem; width: 100%; border-radius: 0.4rem; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel > .skel-title { height: 2rem; width: 55%; margin-bottom: 0.25rem; }
.skel > .skel-line { width: 75%; }
.skel > .skel-short { width: 35%; }
.skel > .skel-block { height: 6.5rem; border-radius: 0.75rem; }
.skel > .skel-row { height: 3.25rem; border-radius: 0.6rem; }
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.skel-tiles > i { display: block; height: 6.5rem; border-radius: 0.75rem; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel > .skel-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel > i, .skel-tiles > i { animation: none; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.muted { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.muted:last-child { margin-bottom: 0; }
.section-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 0.75rem; font-weight: 600; }
.field { display: block; margin-bottom: 1rem; }
.field > span, .field > label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 3.2rem; }
button.ghost, button.primary, a.ghost, a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
a.ghost { text-decoration: none; }
a.primary { text-decoration: none; }
button.ghost, a.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@media (hover: hover) { .ghost:hover { background: var(--accent); color: var(--accent-contrast); } }
button.primary, a.primary { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
button.primary:disabled, button.ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.notice { border-left: 2px solid var(--accent); padding-left: 0.75rem; margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted); }
:root {
  --raised: #1a1f25;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --info: #7ec4e0;
  --radius: 0.75rem;
  --shell: var(--wide);
}
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
p { margin: 0; }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }

.bar { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.bar-inner { padding: 0 1.25rem; min-height: 3.5rem; }
.picker { display: flex; align-items: center; gap: 0.4rem; min-width: 0; flex: 0 1 auto; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.88rem; }
.picker b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.picker .caret { color: var(--muted); }
.picker:has(select:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker select:focus-visible { outline: none; }
.bar-inner > .me { margin-left: auto; }
.picker > .muted { margin: 0; font-size: inherit; line-height: 1.2; white-space: nowrap; }
.credits { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.credits b { color: var(--fg); font-weight: 600; }
.credits.low b { color: var(--warn); }
.credits.out b { color: var(--alert); }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; background: #2b333d; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }

main { padding: 1.75rem 0 4rem; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head p { margin-top: 0.3rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.crumbs a { color: var(--muted); }

.card { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.85rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.many { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: 999px; padding: 0.55rem 1.05rem; font: inherit; font-weight: 600; font-size: 0.92rem; border: 1px solid var(--line); background: var(--raised); color: var(--fg); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #36404b; text-decoration: none; }
.btn .pill { background: var(--accent-contrast); color: var(--accent); border-radius: 999px; padding: 0 0.45rem; font-size: 0.78rem; }
button.ghost, button.primary, a.ghost, a.primary { margin: 0; }
.btn.danger { color: var(--alert); }
.btn.small { padding: 0.35rem 0.8rem; font-size: 0.83rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
kbd { font: 600 0.72rem/1 ui-monospace, monospace; border: 1px solid #3a434e; border-bottom-width: 2px; border-radius: 0.3rem; padding: 0.15rem 0.35rem; color: var(--muted); }
.btn kbd { border-color: currentColor; color: inherit; opacity: 0.7; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.actions > select.input { width: auto; flex: 1 1 10rem; max-width: 20rem; min-width: 0; }
.actions > .btn { margin: 0; }
.stack.steps > .setting + .setting { margin-top: 0; }
.stack.steps > .setting:first-child { padding-top: 0.25rem; }
.stack.steps > .setting:last-child { padding-bottom: 0; }

.chip { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.8rem; color: var(--muted); background: var(--well); white-space: nowrap; }
.chip.on { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.chip .n { font-weight: 700; color: var(--fg); }
.chip.on .n { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; border-radius: 0.35rem; padding: 0.08rem 0.4rem; text-transform: uppercase; }
.tag.prompt { color: var(--warn); background: rgba(224, 184, 126, 0.12); }
.tag.block { color: var(--alert); background: rgba(224, 147, 126, 0.14); }
.tag.calm { color: var(--calm); background: rgba(126, 224, 168, 0.12); }
.tag.info { color: var(--info); background: rgba(126, 196, 224, 0.12); }
.tag.proposal { color: var(--accent); background: var(--accent-soft); }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.calm { background: var(--calm); } .dot.warn { background: var(--warn); } .dot.alert { background: var(--alert); } .dot.info { background: var(--info); }

.notice.warn { border-color: var(--warn); }
.notice.alert { border-color: var(--alert); }
.notice.calm { border-color: var(--calm); }
.notice b { display: block; margin-bottom: 0.15rem; }
.banner { background: rgba(224, 147, 126, 0.1); border-bottom: 1px solid rgba(224, 147, 126, 0.35); }
.banner .bar-inner { min-height: 2.75rem; font-size: 0.9rem; }

.stage { display: grid; gap: 0.35rem; }
.stage .label { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.stage .big { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stage .meter { height: 0.3rem; background: var(--well); border-radius: 999px; overflow: hidden; }
.stage .meter i { display: block; height: 100%; background: var(--info); border-radius: inherit; }
.stage .meter i.calm { background: var(--calm); }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; position: relative; }
.flow .card { padding: 0.95rem 1rem; }
.flow .card.you { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 70%); }

.list { display: grid; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0.25rem; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .title { font-weight: 600; }
.row .sub { font-size: 0.85rem; color: var(--muted); }
.row.sel { background: var(--raised); border-radius: 0.6rem; border-top-color: transparent; box-shadow: inset 2px 0 0 var(--accent); padding-left: 0.75rem; }
.row.sel + .row { border-top-color: transparent; }

.thumb { width: 3.25rem; height: 3.25rem; border-radius: 0.55rem; overflow: hidden; flex: none; }
.pair-thumbs { display: flex; }
.pair-thumbs .thumb + .thumb { margin-left: -0.9rem; box-shadow: -2px 0 0 var(--card); }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 0.65rem; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #2a313a, #161a1f 70%); border: 1px solid var(--line); }
.photo svg, .thumb svg { width: 100%; height: 100%; display: block; }
.thumb { background: radial-gradient(120% 90% at 30% 20%, #2a313a, #161a1f 70%); }
.photo .cap { position: absolute; left: 0.5rem; bottom: 0.45rem; font-size: 0.72rem; background: rgba(11, 13, 16, 0.75); padding: 0.1rem 0.45rem; border-radius: 999px; color: var(--muted); }
.photo.chosen { outline: 2px solid var(--accent); outline-offset: -2px; }
.photo .mark { position: absolute; right: 0.45rem; top: 0.45rem; display: grid; place-items: center; width: auto; height: 1.3rem; min-width: 1.3rem; padding: 0 0.35rem; font-size: 0.72rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-contrast); background: var(--accent); border-radius: 999px; }
.views { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.views .photo { aspect-ratio: 1; }
.hero-photo { aspect-ratio: 16 / 9; }
.setting.wide { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.setting.wide .seg { justify-self: start; }

.ladder { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ladder th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0.5rem 0.5rem; }
.ladder td { padding: 0.6rem 0.5rem; border-top: 1px solid var(--line); vertical-align: middle; }
.ladder td:first-child { color: var(--muted); width: 5.5rem; }
.ladder .val { font-weight: 600; }
.ladder tr.unknown .val { color: var(--muted); font-weight: 400; font-style: italic; }
.ladder tr.stop td { border-top: 1px dashed var(--accent); }
.conf { display: flex; align-items: center; gap: 0.5rem; min-width: 7.5rem; }
.conf .bar-track { flex: 1; height: 0.3rem; background: var(--well); border-radius: 999px; overflow: hidden; }
.conf .bar-track i { display: block; height: 100%; background: var(--calm); }
.conf .bar-track i.mid { background: var(--warn); }
.conf .bar-track i.low { background: var(--alert); }
.conf span { font-size: 0.78rem; color: var(--muted); width: 2.4rem; text-align: right; }
.src { font-size: 0.78rem; color: var(--muted); }

.compare { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr); gap: 0; font-size: 0.9rem; }
.compare > div { padding: 0.55rem 0.6rem; border-top: 1px solid var(--line); }
.compare .lvl { text-align: center; color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.compare .same { color: var(--calm); }
.compare .diff { color: var(--alert); }
.compare .unk { color: var(--warn); }
.compare .r { text-align: right; }

.figure { display: grid; gap: 0.2rem; }
.figure .big { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.figure.chosen .big { color: var(--accent); }

table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0.6rem 0.5rem; white-space: nowrap; }
table.data td { padding: 0.6rem; border-top: 1px solid var(--line); vertical-align: middle; }
table.data td.r, table.data th.r { text-align: right; white-space: nowrap; }
table.data tr.excluded td { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139, 151, 165, 0.5); }
.cell-item { display: flex; align-items: center; gap: 0.7rem; }
.cell-item .thumb { width: 2.4rem; height: 2.4rem; }
.chips-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.6rem; }
.tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 0.65rem; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 1rem 1rem; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile.blank { background: radial-gradient(120% 90% at 30% 20%, #2a313a, #161a1f 70%); padding: 0.5rem; text-align: center; }
.tile:hover, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.input, select.input, textarea.input { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; }
.input[type="search"] { appearance: none; }
.input[type="search"]::-webkit-search-cancel-button { appearance: none; }
.input-row { display: flex; gap: 0.5rem; }
.switch { width: 2.4rem; height: 1.35rem; border-radius: 999px; background: #2b333d; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 0.18rem; left: 0.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--fg); }
.switch.on { background: var(--accent); }
.switch.on::after { left: auto; right: 0.2rem; background: var(--accent-contrast); }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.seg { display: inline-flex; background: var(--well); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem; }
.seg span { padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.84rem; color: var(--muted); }
.seg span.on { background: var(--raised); color: var(--fg); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.tabs { display: flex; gap: 0.25rem; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 1.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 0.6rem 0.85rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--fg); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.cost { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; font-size: 0.88rem; }
.cost .total { border-top: 1px solid var(--line); padding-top: 0.4rem; font-weight: 700; }

.timeline { display: grid; }
.event { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: start; }
.event:first-child { border-top: 0; }
.event .ico { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: var(--well); color: var(--muted); border: 1px solid var(--line); }
.event .ico.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.event .ico.calm { color: var(--calm); border-color: rgba(126, 224, 168, 0.35); }
.event .when { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

.quote { border-left: 2px solid var(--line); padding: 0.2rem 0 0.2rem 0.8rem; color: #c3ccd6; font-style: italic; }
.quote .at { font-style: normal; font-size: 0.78rem; color: var(--muted); display: block; margin-top: 0.2rem; }

.scrim { position: fixed; inset: 0; background: rgba(5, 7, 10, 0.7); display: grid; place-items: center; padding: 1rem; z-index: 20; }
.dialog { width: min(32rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; background: var(--raised); border: 1px solid #2e3640; border-radius: 1rem; padding: 1.4rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.dialog h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.state { text-align: center; padding: 2.25rem 1.25rem; display: grid; gap: 0.6rem; justify-items: center; }
.state .glyph { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--well); border: 1px solid var(--line); }
.state .glyph.calm { color: var(--calm); } .state .glyph.warn { color: var(--warn); } .state .glyph.alert { color: var(--alert); } .state .glyph.accent { color: var(--accent); }
.state p { max-width: 26rem; }

.hint { font-size: 0.8rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 960px) {
  .flow, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .g3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 4.5rem; }
  .credits span, .bar .hide-sm { display: none; }
  .picker b { max-width: 8.5rem; }
  .picker { flex: 1 1 0; padding: 0.3rem 0.55rem; }
  .credits:not(.low):not(.out) { display: none; }
  .bar-inner > .spacer { display: none; }
  .bar-inner { gap: 0.6rem; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .views { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-head { align-items: flex-start; }
  main { padding-top: 1.25rem; }
  .compare { grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr); font-size: 0.82rem; }
  .sticky-actions { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 4.4rem; background: #1a1f25; border: 1px solid #2e3640; border-radius: 1rem; padding: 0.6rem; z-index: 9; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
  .sticky-actions .spacer, .sticky-actions > a.small, .sticky-actions kbd { display: none; }
  body:has(.sticky-actions) { padding-bottom: 9.5rem; }
  .g2.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .keep2 > .card { padding: 0.7rem; }
  .keep2 .views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keep2 .card-head { flex-direction: column; gap: 0.1rem; margin-bottom: 0.5rem; }
  .keep2 .hero-photo { aspect-ratio: 1; }
  .sticky-actions .btn { flex: 1; }
  table.data .hide-sm, .hint { display: none; }
}

.mt-xs { margin-top: 0.35rem; } .mt-s { margin-top: 0.6rem; } .mt { margin-top: 1rem; } .mt-l { margin-top: 1.5rem; }
.mb-s { margin-bottom: 0.6rem; } .mb { margin-bottom: 1rem; }
.card.tight { padding: 0.5rem 0.9rem; }
.card.prompt-card { border-color: rgba(224, 184, 126, 0.45); }
a.card, a.row { color: inherit; text-decoration: none; }
a.row:hover .title { text-decoration: underline; }
.end { justify-content: flex-end; }
.bullets { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.empty-view { display: grid; place-items: center; }
.loading { color: var(--muted); padding: 3rem 0; text-align: center; }
.row.pick { cursor: pointer; }
.row.pick input { accent-color: var(--accent); }
.row.pick:has(input:checked) { background: var(--raised); border-radius: 0.6rem; box-shadow: inset 2px 0 0 var(--accent); }
.figure.pick { cursor: pointer; }
.figure.pick:has(input:checked) { border-color: var(--accent); }
.figure.pick input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.figure { position: relative; }
.picker select { background: transparent; color: var(--fg); border: 0; font: inherit; font-weight: 600; line-height: 1.2; padding: 0.15rem 0; min-width: 0; width: 100%; max-width: 14rem; text-overflow: ellipsis; }
.picker option { background: var(--card); color: var(--fg); font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--raised); border: 1px solid #2e3640; border-radius: 999px; padding: 0.55rem 1.1rem; z-index: 30; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 0.9rem; }
.toast.alert { border-color: var(--alert); }
.panel { max-width: 32rem; margin: 12vh auto 0; padding-left: 1.25rem; padding-right: 1.25rem; }
.panel:has(> .loading:not([hidden])) { max-width: none; margin-top: 0; }
.panel h1 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.photo img, .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo { container-type: size; }
.photo img[data-turn="90"], .photo img[data-turn="270"] { position: absolute; left: 50%; top: 50%; width: 100cqh; height: 100cqw; translate: -50% -50%; }
.views .more { display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 1100px) {
  .toast { bottom: 5.2rem; }
}
@media (max-width: 760px) {
  .row.member { grid-template-columns: auto minmax(0, 1fr); }
  .row.member > .actions, .row.member > .chip { grid-column: 2; justify-self: start; }
  .picker select { max-width: none; }
}
.btn.disabled { opacity: 0.45; pointer-events: none; }
.seg a, .seg a:hover, a.chip:hover { text-decoration: none; }
.seg label { cursor: pointer; }
.seg label span, .seg a span { display: inline-block; }
.input.role { width: auto; }
.check { display: flex; gap: 0.5rem; align-items: center; }
fieldset.ask { border: 1px solid var(--line); border-radius: 0.55rem; padding: 0.6rem 0.9rem; margin: 0; display: grid; gap: 0.35rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
button.photo { width: 100%; padding: 0; cursor: pointer; color: inherit; font: inherit; display: block; }
.pre { white-space: pre-line; }
.focus { max-width: 46rem; margin: 0 auto; display: grid; gap: 1.25rem; }
.focus .stack > * + * { margin-top: 0.4rem; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.back { color: var(--muted); font-size: 0.88rem; }
.hero { display: grid; gap: 0.4rem; justify-items: start; }
.hero h1 { font-size: 2.3rem; line-height: 1.1; letter-spacing: -0.03em; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 36rem; }
.pill { display: inline-flex; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.alert { color: var(--alert); background: color-mix(in srgb, var(--alert) 14%, transparent); }
.pill.info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.pill.acc { color: var(--accent); background: var(--accent-soft); }
.dots { display: flex; gap: 0.3rem; }
.dots i { width: 1.6rem; height: 0.3rem; border-radius: 999px; background: var(--line); }
.dots i.on { background: var(--accent); }
.dock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6rem; }
.dock .btn { padding: 0.9rem; font-size: 0.98rem; border-radius: 1rem; white-space: normal; }
@media (min-width: 761px) { .only-sm { display: none; } }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .hero h1 { font-size: 1.75rem; }
  .dock { grid-auto-flow: row; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 4.4rem; z-index: 9; padding: 0.8rem 1rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  body:has(.dock) { padding-bottom: 13rem; }
  body:has(.dock) .toast { bottom: 13.5rem; }
}
.detail-row { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; border-top: 1px solid var(--line, #e5e5e5); }
.detail-row:first-child { border-top: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.stack-s > * + * { margin-top: 0.5rem; }
.pick { display: inline-flex; margin-right: 0.5rem; vertical-align: middle; }
.ask-tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
@media (max-width: 760px) { .ask-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; } }
.ask-tile .photo { aspect-ratio: 1; }
.ask-tile .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 0.9rem); }
.feedback-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.feedback-link:hover, .feedback-link:focus-visible { color: var(--fg); }
dialog.feedback { width: min(32rem, calc(100vw - 2rem)); background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
dialog.feedback::backdrop { background: rgb(0 0 0 / 0.6); }
.feedback-form h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.feedback-note, .feedback-status { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.feedback-status:empty { display: none; }
.feedback-field { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.feedback-field textarea, .feedback-field select { font: inherit; color: var(--fg); background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; width: 100%; box-sizing: border-box; }
.feedback-field textarea { resize: vertical; }
.feedback-shared { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.75rem 0.25rem; margin: 0 0 0.75rem; font-size: 0.875rem; }
.feedback-shared legend { padding: 0 0.25rem; }
.feedback-details { list-style: none; margin: 0; padding: 0; }
.feedback-details li { margin-bottom: 0.5rem; }
.feedback-details label { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.5rem; align-items: baseline; cursor: pointer; }
.feedback-details code { grid-column: 2; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.feedback-actions button { font: inherit; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.feedback-cancel { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.feedback-send { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
.feedback-send:disabled { opacity: 0.45; cursor: not-allowed; }
.feedback-signin { display: flex; gap: 0.5rem; margin: 0 0 0.75rem; }
.feedback-signin[hidden] { display: none; }
.feedback-shot-chosen { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.5rem 0; }
.feedback-shot-preview { display: block; max-width: 60%; max-height: 10rem; border: 1px solid var(--line); border-radius: 8px; }
