/* Montserrat (SIL Open Font License, fonts/OFL.txt): the geometric letters of the AMIR GROUP logo */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  /* AMIR GROUP logo: cyan #08addc -> blue #167eb2 */
  --brand-1: #08addc;
  --brand-2: #167eb2;
  --bg: #ffffff;
  --surface: #f3f8fb;
  --card: #ffffff;
  --chip: #edf3f7;
  --text: #14212b;
  --text-2: #485867;
  --muted: #8292a0;
  --line: #e3eaef;
  --edge: #c9d5dd;
  --accent: #1586c0;
  --accent-ink: #0d6ea2;
  --accent-2: #a9d9ee;
  --accent-soft: #e4f4fb;
  --good: #15803d;
  --good-fill: #22c55e;
  --good-soft: #e6f6ec;
  --warn: #b45309;
  --warn-fill: #f59e0b;
  --warn-soft: #fdf2df;
  --bad: #dc2626;
  --bad-fill: #ef4444;
  --bad-soft: #fdebeb;
  --bad-deep: #991b1b;
  --r: 16px;
  --nav-h: 66px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 500 14.5px/1.45 Montserrat, Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  min-height: 100vh; overscroll-behavior-y: contain; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------------- login */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; }
.login-top { text-align: center; margin-bottom: 28px; }
.login-logo { width: 210px; max-width: 70%; height: auto; display: block; margin: 0 auto; }
.login-top p { margin: 14px 0 0; color: var(--text-2); font-size: 14px; }
.login-card { background: var(--card); padding: 0; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--edge); background: var(--bg); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 10px 0 0; text-align: center; }
.login-foot { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: 3px; margin-top: 28px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .1px; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(100deg, var(--brand-1), var(--brand-2)); color: #fff; }
.btn.primary:disabled { opacity: .55; }
.btn.ghost { color: var(--accent-ink); margin-top: 12px; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.danger { color: var(--bad); background: var(--bad-soft); }

/* ---------------- layout */
main { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.appbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 4px; margin: 0 -16px 10px;
  padding: env(safe-area-inset-top) 12px 0 4px; min-height: calc(60px + env(safe-area-inset-top)); background: var(--bg); }
.appbar .t { flex: 1; min-width: 0; padding-left: 4px; }
.appbar h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .kicker { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar.brand { padding-left: 16px; gap: 10px; }
.appbar.brand img { height: 34px; width: auto; display: block; }
.appbar.brand h1 { font-size: 17px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; display: inline-block;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.ibtn:active { background: var(--chip); }
.ibtn svg { width: 24px; height: 24px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
  background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.hello { margin: 2px 0 16px; }
.hello h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.2px; }
.hello p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.bar-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--edge);
  font-size: 14px; font-weight: 500; position: relative; max-width: 100%; }
.pick svg { width: 16px; height: 16px; color: var(--muted); }
.pick select { position: absolute; inset: 0; opacity: 0; width: 100%; }
.pick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.grow { flex: 1; }
.seg { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.seg button.on { background: var(--accent); color: #fff; }

/* tabs inside a screen (one thing at a time) */
.tabs { display: flex; margin: 0 -16px 16px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; height: 44px; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; }
.tabs button.on { color: var(--accent-ink); }
.tabs button.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

/* home: the menu of icons */
.menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 2px; margin: 20px -6px 8px; }
.menu button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 16px; min-width: 0; }
.menu button:active { background: var(--surface); }
.menu .mi { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent-ink); }
.menu .mi svg { width: 26px; height: 26px; stroke-width: 1.8; }
.menu b { font-size: 13px; font-weight: 500; }
.menu small { font-size: 12px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
button.card { display: block; width: 100%; text-align: left; }
.sum .row { display: flex; align-items: center; gap: 8px; }
.foot-note { text-align: center; font-size: 12px; color: var(--muted); margin: 18px 0 0; }

/* small tables (client card) */
.tbl { margin: 0 -16px -16px; }
.tbl .tr { display: grid; grid-template-columns: minmax(0, 1fr) 86px 86px; gap: 8px; align-items: baseline; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.tbl.c4 .tr { grid-template-columns: minmax(0, 1fr) 74px 74px 70px; }
.tbl .tr > :not(:first-child) { text-align: right; }
.tbl .tr .tag { font-size: 11px; padding: 3px 7px; }
.tbl .tr > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .th { font-size: 12px; color: var(--muted); font-weight: 500; border-top: 0; padding-top: 0; padding-bottom: 8px; }
.tbl .pay { color: var(--good); }
.tbl .owe { color: var(--bad); font-weight: 600; }

/* ---------------- cards */
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
.card-h .aside { font-size: 13px; color: var(--muted); }
.label { font-size: 13px; color: var(--muted); font-weight: 500; }
.big { font-size: 32px; font-weight: 600; letter-spacing: -.6px; line-height: 1.15; margin: 4px 0 2px; }
.mid { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.sub { font-size: 13px; color: var(--text-2); }

.hero { display: flex; gap: 16px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { stroke-width: 11; fill: none; }
.ring .track { stroke: var(--chip); }
.ring .val { stroke: var(--accent); transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.ring .mark { stroke: var(--text); stroke-width: 3; }
.ring.good .val { stroke: var(--good-fill); } .ring.warn .val { stroke: var(--warn-fill); } .ring.bad .val { stroke: var(--bad-fill); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .in b { font-size: 23px; font-weight: 600; letter-spacing: -.4px; }
.ring .in span { font-size: 11px; color: var(--muted); font-weight: 600; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.tag svg { width: 13px; height: 13px; stroke-width: 2.5; }
.tag.good { background: var(--good-soft); color: var(--good); } .tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.grey { background: var(--chip); color: var(--muted); }
.tag.blue { background: var(--accent-soft); color: var(--accent-ink); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 650; }
.delta svg { width: 14px; height: 14px; stroke-width: 2.5; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: left; display: block; min-width: 0; }
.tile .ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile .ic svg { width: 18px; height: 18px; }
.ic.blue { background: var(--accent-soft); color: var(--accent-ink); } .ic.red { background: var(--bad-soft); color: var(--bad); }
.ic.green { background: var(--good-soft); color: var(--good); } .ic.amber { background: var(--warn-soft); color: var(--warn); }
.tile .mid { margin: 2px 0; font-size: 20px; }

.segbar { display: flex; gap: 4px; margin: 14px 0 6px; }
.segbar i { flex: 1; height: 8px; border-radius: 4px; background: var(--chip); }
.segbar i.on { background: var(--accent); } .segbar.good i.on { background: var(--good-fill); } .segbar.warn i.on { background: var(--warn-fill); } .segbar.bad i.on { background: var(--bad-fill); }
.segbar i.half { background: linear-gradient(90deg, var(--seg-c, var(--accent)) var(--p), var(--chip) var(--p)); }
.segbar.good { --seg-c: var(--good-fill); } .segbar.warn { --seg-c: var(--warn-fill); } .segbar.bad { --seg-c: var(--bad-fill); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.stats div span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.stats div b { font-size: 15px; font-weight: 600; }

.line { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; margin-top: 8px; position: relative; }
.line i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.line i.good { background: var(--good-fill); } .line i.warn { background: var(--warn-fill); } .line i.bad { background: var(--bad-fill); }
.line em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .35; }

/* ---------------- rows */
.rows { margin: -4px -16px -16px; }
.r { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); }
.r:first-child { border-top: 0; }
.r .badge { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
  background: var(--chip); color: var(--text-2); flex: none; }
.r .badge.round { border-radius: 50%; }
.r .badge.red { background: var(--bad-soft); color: var(--bad); } .r .badge.amber { background: var(--warn-soft); color: var(--warn); }
.r .badge.green { background: var(--good-soft); color: var(--good); } .r .badge.blue { background: var(--accent-soft); color: var(--accent-ink); }
.r .badge.deep { background: var(--bad-fill); color: #fff; }
.r .badge svg { width: 18px; height: 18px; }
.r .mid-col { flex: 1; min-width: 0; }
.r .name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r .end { text-align: right; flex: none; min-width: 64px; }
.r .end b { display: block; font-size: 15px; font-weight: 600; }
.r .end small { font-size: 12px; color: var(--muted); }
.r .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.r.open .chev { transform: rotate(90deg); }
.r .rank { width: 22px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; flex: none; }
.r .acts { display: flex; gap: 8px; flex: none; }
.r .acts a { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.r .acts a svg { width: 18px; height: 18px; }
.sub-rows { background: var(--surface); padding: 4px 16px 8px 68px; border-top: 1px solid var(--line); }
.sr { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 13px; border-top: 1px dashed var(--line); }
.sr:first-child { border-top: 0; }
.sr .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.r.due .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.r.due .line { margin-top: 6px; }
.r.due.off { opacity: .45; }
.due-list { background: var(--surface); border-top: 1px solid var(--line); }
.due-list .r { padding-left: 30px; }
.more { display: block; width: 100%; padding: 14px; color: var(--accent-ink); font-weight: 600; border-top: 1px solid var(--line); text-align: center; }

.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.alert:first-child { border-top: 0; }
.alert .badge { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.alert .badge svg { width: 18px; height: 18px; }

/* ---------------- chips, search */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--edge); font-size: 13px; font-weight: 650; min-width: 76px; }
.chips button small { color: var(--muted); font-weight: 600; font-size: 12px; }
.chips button i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.chips button.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.chips button.on small { color: var(--accent-ink); opacity: .8; }
.search { position: relative; margin-bottom: 8px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: 11px 12px 11px 40px; border-radius: 999px; border: 1px solid transparent; background: var(--chip); font-size: 15px; outline: none; }
.search input:focus { border-color: var(--accent); }

/* ---------------- charts */
.cols { display: flex; align-items: flex-end; gap: 3px; height: 120px; position: relative; padding-top: 4px; }
.cols div { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--accent-2); min-height: 3px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.cols div.zero { background: var(--chip); }
.cols div.last { background: var(--accent); }
.cols .avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted); opacity: .6; height: 0; }
.cols-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 14px 0 8px; background: var(--chip); }
.stack i { display: block; height: 100%; }
.hbars .hb { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.hbars .hb span { width: 74px; flex: none; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars .hb .line { flex: 1; margin: 0; height: 8px; }
.hbars .hb b { width: 74px; text-align: right; font-size: 13px; flex: none; }

/* ---------------- nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: var(--bg);
  border-top: 1px solid var(--line); padding: 8px 4px calc(env(safe-area-inset-bottom) + 6px); }
.nav button { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.nav button svg { width: 22px; height: 22px; padding: 4px 19px; box-sizing: content-box; border-radius: 999px; transition: background .2s; }
.nav button.on { color: var(--accent-ink); font-weight: 700; }
.nav button.on svg { background: var(--accent-soft); }

/* ---------------- me, sheet, misc */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv span { color: var(--muted); }
.btns .btn { margin-top: 10px; }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(8, 14, 26, .45); display: flex; align-items: flex-end; animation: fade .15s; }
.sheet-body { width: 100%; max-width: 560px; margin: 0 auto; max-height: 78vh; overflow: auto; background: var(--card); border-radius: 24px 24px 0 0;
  padding: 8px 0 calc(env(safe-area-inset-bottom) + 12px); animation: up .2s cubic-bezier(.2, .8, .2, 1); }
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 6px auto 10px; }
.sheet .opt { display: flex; align-items: center; width: 100%; padding: 14px 20px; text-align: left; font-size: 16px; }
.sheet .opt.on { color: var(--accent-ink); font-weight: 600; }
.sheet .opt.on::after { content: "✓"; margin-left: auto; }
.sheet .grp { padding: 14px 20px 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.loading { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.spinner { width: 38px; height: 38px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%); z-index: 25;
  background: var(--text); color: var(--card); padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; max-width: 90vw; animation: up .2s; }
.screen { animation: fade .25s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- check-in */
.ck { display: block; }
.ck .ck-h { display: flex; align-items: center; gap: 12px; }
.ck .ck-h b { font-size: 15px; }
.ck .ic-wrap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.ck .ic-wrap svg, .ck .ck-h > svg { width: 22px; height: 22px; }
.ck .btn { flex: none; }
.ck .ck-big .btn { width: 100%; margin-top: 14px; height: 52px; font-size: 16px; }
.btn.sm svg { width: 18px; height: 18px; }
.ck .line { margin-top: 8px; }
.btn.sm { width: auto; height: 36px; padding: 0 14px; font-size: 13px; margin: 0; }
.btn svg { width: 20px; height: 20px; }
.ck-sheet { padding: 4px 4px 8px; display: grid; gap: 10px; }
.ck-sheet h3 { margin: 0 0 4px; font-size: 18px; }
.ck-step { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); font-weight: 600; }
.ck-step svg { width: 22px; height: 22px; flex: none; }
.ck-step.good { background: var(--good-soft); color: var(--good); }
.ck-step.bad { background: var(--bad-soft); color: var(--bad); }
.ck-sheet label.btn { cursor: pointer; }
.spinner.sm { width: 22px; height: 22px; border-width: 3px; }
.ck-phs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 0 10px; }
.ck-ph { margin: 0; }
.ck-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--chip); display: block; }
.ck-ph figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.r .acts .btn.sm { margin-left: 4px; }

/* ---------------- price editor */
.nav button[hidden] { display: none; }
.r.pr { align-items: center; gap: 10px; }
.r.pr .pr-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pin { position: relative; flex: none; display: inline-flex; align-items: center; }
.pin input { width: 104px; height: 40px; border: 1px solid var(--edge); border-radius: 12px; padding: 0 26px 0 10px; font: inherit; font-weight: 700;
  text-align: right; background: var(--card); color: var(--text); font-variant-numeric: tabular-nums; }
.pin input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pin input::placeholder { font-weight: 500; color: var(--muted); }
.pin input.has { background: var(--accent-soft); border-color: transparent; }
.pin input.has::placeholder { font-weight: 700; color: var(--accent-ink); font-size: 13px; }
.pt { color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.sr.mrow { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; align-items: center; }
.sr.mrow .n { display: flex; flex-direction: column; white-space: normal; color: var(--text); font-size: 14px; }
.sr.mrow .n small { font-size: 12px; }
.pin i { position: absolute; right: 8px; font-style: normal; font-size: 13px; font-weight: 800; }
.pin i.ok { color: var(--good); } .pin i.bad { color: var(--bad); } .pin i.busy { color: var(--muted); }
.sr.pr-item { align-items: center; gap: 8px; }
.sr.pr-item .n { flex: 1; min-width: 0; white-space: normal; }
.sr.pr-item .pin input { width: 96px; height: 36px; }
.r.pr .meta { white-space: normal; }
