:root {
  --bg: #09090b;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(214, 224, 238, 0.3);
  --text: #f1f1ee;
  --muted: #9b9ba3;
  --ice: #9cc7ff;
  --danger: #ff8d8d;
  --warn: #f0c987;
  --ok: #8fd6a8;
  --violet: #c7b8ff;
  --chrome: linear-gradient(180deg, #f6f8fb 0%, #aeb6c2 50%, #e6e9ee 100%);
  --r: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(14px, 4.5vw, 22px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 'Onest', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(156, 199, 255, 0.12), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(200, 210, 225, 0.06), transparent 70%);
}
button { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.app { max-width: 600px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--pad); }
.top { padding-top: calc(12px + env(safe-area-inset-top)); }
.brand { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kicker { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.langs, .curs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.curs { margin-top: 10px; }
.langs button, .curs button {
  all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease);
}
.curs button { flex: 1 1 0; min-width: 0; padding: 6px 2px; }
.langs button[aria-pressed="true"] { background: var(--glass-hi); color: var(--text); }
.curs button[aria-pressed="true"] { background: var(--glass-hi); color: var(--ice); }

.tabs { display: flex; gap: 4px; margin: 12px 0 6px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.tab { all: unset; flex: 1 1 0; min-width: 0; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 10px; text-align: center; font-weight: 500; font-size: 14px; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease); }
.tab[aria-selected="true"] { background: var(--glass-hi); color: var(--text); }
.badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ice); color: #09090b; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

:is(.langs button, .curs button, .tab, .cat, .row, .tag, .opt, .cta, .ghost, .link, .check, .switch, .ocard, .icon, .backlink, .stepper button, .cal-day, .cal-nav, .seg button, .file):focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.view { flex: 1; padding: 14px 0 28px; min-width: 0; }
h1 { margin: 6px 0 14px; font: 600 clamp(26px, 8vw, 34px)/1.08 'Oswald', sans-serif; letter-spacing: .02em; text-transform: uppercase; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { margin: 0; }
.lead { margin: -4px 0 18px; color: var(--muted); font-size: 14px; }
.step { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.prog { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #cfd6e0, var(--ice)); border-radius: 3px; transition: width .45s var(--ease); }
.stepof { margin: 8px 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumb { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }

/* categories and services */
.cats { display: grid; gap: 10px; }
.cat {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.cat:active, .row:active, .ocard:active, .opt:active { transform: scale(0.99); }
.cat:hover, .row:hover, .ocard:hover, .opt:hover { border-color: var(--line-hi); }
.cat[aria-pressed="true"], .row[aria-pressed="true"] { border-color: var(--ice); background: rgba(156, 199, 255, 0.09); }
.cat-name { font: 600 20px/1.15 'Oswald', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.cat-hint { color: var(--muted); font-size: 13.5px; }
.cat-price { margin-top: 4px; color: var(--ice); font-size: 13px; font-weight: 500; }
.cat-go { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.rows { display: grid; gap: 8px; }
.row {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.row-main { display: grid; flex: 1 1 150px; min-width: 0; }
.row-name { font-weight: 500; }
.row-hint { font-size: 12.5px; color: var(--muted); }
.row-price { color: var(--ice); font-size: 13.5px; white-space: nowrap; }

/* fields */
.q { margin-bottom: 18px; }
.sub { display: block; margin: 0 0 8px; font-size: 13px; color: #c9ced6; }
.card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card .sub:not(:first-child) { margin-top: 16px; }
input[type="text"], input[type="number"], textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.35); color: var(--text);
  font: inherit; font-size: 16px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(156,199,255,.16); }
.search { margin-bottom: 10px; }
.chosen { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: -4px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.chosen b { color: var(--ice); font-weight: 500; font-size: 14px; }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.hint.top { margin: -2px 0 12px; }
.hint.warn { color: var(--warn); } .hint.dim { opacity: .75; }
.err { margin: 8px 0 0; font-size: 13px; color: var(--danger); }
.center { text-align: center; }
.mt { margin-top: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 12px; padding: 2px var(--pad); scrollbar-width: none; }
.tags.scroll::-webkit-scrollbar { display: none; }
.tag {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; background: rgba(0,0,0,.28); white-space: nowrap; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.tag.small { padding: 6px 12px; font-size: 13px; }
.tag:hover { border-color: var(--line-hi); }
.tag[aria-pressed="true"] { border-color: var(--ice); background: rgba(156,199,255,.12); color: var(--ice); }
.tag[disabled] { opacity: .5; cursor: progress; }
.tags .tag[class*="st-"] { white-space: normal; }

/* option cards (Twitch set) */
.opts { display: grid; gap: 8px; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease); }
.opt > i { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--line-hi); border-radius: 7px; display: grid; place-items: center; color: transparent; transition: background .2s var(--ease); }
.opt svg { width: 14px; height: 14px; stroke-width: 3; }
.opt span { display: grid; gap: 2px; min-width: 0; }
.opt b { font-weight: 500; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.opt[aria-pressed="true"] { border-color: var(--ice); background: rgba(156,199,255,.09); }
.opt[aria-pressed="true"] > i { background: var(--ice); border-color: var(--ice); color: #09090b; }
.opt.all { border-style: dashed; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.28); }
.stepper button { all: unset; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; color: var(--ice); }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper b { min-width: 48px; text-align: center; font: 600 20px 'Oswald', sans-serif; }
.switch { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.28); }
.switch i { flex: none; width: 40px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.14); position: relative; transition: background .25s var(--ease); }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e9ecf1; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { border-color: var(--ice); }
.switch[aria-checked="true"] i { background: var(--ice); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); background: #09090b; }

.money { position: relative; }
.money input { padding-right: 56px; }
.unit { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: 13px; letter-spacing: .06em; pointer-events: none; }
.datebtn svg { color: var(--muted); }

/* calendar */
.cal { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.35); animation: rise .35s var(--ease) both; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head b { font-weight: 500; text-transform: capitalize; }
.cal-nav { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; color: var(--ice); }
.cal-nav:hover { background: var(--glass-hi); } .cal-nav[disabled] { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cal-wd { font-size: 11px; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { all: unset; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 14px; transition: background .2s var(--ease); }
.cal-day:hover:not([disabled]) { background: var(--glass-hi); }
.cal-day.now { box-shadow: inset 0 0 0 1px var(--line-hi); }
.cal-day.on { background: var(--ice); color: #09090b; font-weight: 600; }
.cal-day[disabled] { opacity: .22; cursor: default; }

/* summary and rules */
.summary { margin: 0 0 14px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); }
.summary dt { margin: 12px 0 2px; font: 500 12px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); white-space: pre-wrap; }
.summary dd:last-child { border-bottom: 0; }
.rules ul { margin: 0 0 14px; padding-left: 18px; color: #c9ced6; font-size: 14px; }
.rules li { margin-bottom: 5px; } .rules li::marker { color: var(--ice); }
.check { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.check i { flex: none; width: 22px; height: 22px; border: 1px solid var(--line-hi); border-radius: 7px; background: rgba(0,0,0,.35); display: grid; place-items: center; color: transparent; transition: background .2s var(--ease), border-color .2s var(--ease); }
.check svg { width: 14px; height: 14px; stroke-width: 3; }
.check[aria-checked="true"] i { background: var(--ice); border-color: var(--ice); color: #09090b; }

/* buttons */
.cta {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: center; align-items: center; flex: 1 1 auto; min-width: 0; text-align: center; width: 100%;
  padding: 15px 18px; border-radius: 14px; font: 600 15px/1.2 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #0b0b0d;
  background: var(--chrome); box-shadow: 0 8px 30px rgba(156,199,255,.14), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .2s var(--ease), box-shadow .3s var(--ease), opacity .2s;
}
.cta:hover { box-shadow: 0 10px 36px rgba(156,199,255,.26), inset 0 1px 0 rgba(255,255,255,.7); }
.cta:active { transform: scale(.985); }
.cta[disabled] { opacity: .55; cursor: progress; }
.ghost { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--line-hi); border-radius: 14px; font-weight: 500; text-align: center; transition: background .25s var(--ease); }
.ghost:hover { background: var(--glass-hi); }
.ghost.wide { display: flex; width: 100%; margin-top: 10px; }
.ghost.danger { color: var(--danger); border-color: rgba(255,141,141,.4); }
.link { all: unset; cursor: pointer; font-size: 13.5px; color: var(--ice); border-bottom: 1px dashed currentColor; }
.link.danger { color: var(--danger); }
.cancel { display: block; width: max-content; margin: 18px auto 0; }
.icon { all: unset; flex: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); transition: background .2s var(--ease), color .2s; }
.icon:hover { background: var(--glass-hi); color: var(--text); }
.icon.send { background: var(--ice); color: #09090b; } .icon.send[disabled] { opacity: .5; }

/* bottom bar */
.bar {
  position: sticky; bottom: 0; z-index: 5; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(9,9,11,0), rgba(9,9,11,.94) 28%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bar[hidden] { display: none !important; }
.bar.nav { display: flex; gap: 10px; }
.bar.nav .ghost { flex: 0 0 auto; white-space: nowrap; }
.bar.nav .ghost.grow { flex: 1; }
.comp { display: flex; align-items: flex-end; gap: 6px; padding: 5px; border: 1px solid var(--line-hi); border-radius: 18px; background: rgba(20,20,24,.92); }
.comp textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 11px 6px; border: 0; background: transparent; resize: none; box-shadow: none; }
.comp textarea:focus { box-shadow: none; }
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; max-width: 100%; }
.fchip button { all: unset; cursor: pointer; width: 20px; height: 20px; text-align: center; color: var(--muted); }
.work-toggle[aria-pressed="true"] { border-color: var(--ok); background: rgba(143,214,168,.12); color: var(--ok); }

/* done / empty */
.done, .empty { text-align: center; padding: 40px 4px; animation: rise .5s var(--ease) both; }
.done .cta, .empty .cta { margin: 18px auto 0; max-width: 360px; }
.tick { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid var(--line-hi); background: var(--glass); display: grid; place-items: center; color: var(--ice); }
.tick svg { width: 28px; height: 28px; } .tick.dim { color: var(--muted); }
.num { margin: 0 0 8px; color: var(--muted); }
.empty h2 { font: 600 22px 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.skeleton { height: 96px; margin-bottom: 10px; border-radius: var(--r); background: linear-gradient(100deg, var(--glass) 30%, var(--glass-hi) 50%, var(--glass) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* order list */
.grp { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.grp i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--glass-hi); }
.olist { display: grid; gap: 10px; }
.ocard { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: 5px; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); overflow: hidden; transition: border-color .25s var(--ease), transform .2s var(--ease); }
.ocard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar, var(--line-hi)); }
.ocard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ocard-top b { font: 500 13px 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ocard-name { font-weight: 500; font-size: 16px; } .ocard-name em { font-style: normal; color: var(--muted); font-weight: 400; }
.ocard-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ice); }
.ocard-meta span:last-child { color: var(--muted); }
.ocard-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 20px); }
.dot { position: absolute; right: 14px; bottom: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(156,199,255,.15); }
.needs { position: absolute; right: 12px; bottom: 11px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; color: #09090b; background: var(--warn); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid currentColor; white-space: nowrap; }
.st-new { color: #cfd6e0; } .st-reviewing { color: #b5d6ff; } .st-awaiting_payment { color: var(--warn); } .st-in_progress { color: var(--ice); }
.st-review { color: var(--violet); } .st-done { color: var(--ok); } .st-postponed { color: var(--muted); }
.st-rejected { color: var(--danger); } .st-cancelled { color: var(--muted); }
.st-bar-new { --bar: #cfd6e0; } .st-bar-reviewing { --bar: #b5d6ff; } .st-bar-awaiting_payment { --bar: var(--warn); } .st-bar-in_progress { --bar: var(--ice); }
.st-bar-review { --bar: var(--violet); } .st-bar-done { --bar: var(--ok); } .st-bar-postponed, .st-bar-cancelled { --bar: #5c5c66; } .st-bar-rejected { --bar: var(--danger); }

/* order page */
.backlink { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.backlink svg { transform: rotate(180deg); width: 1em; height: 1em; }
.ohead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ohead h1 { margin: 4px 0 0; }
.osvc { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.track { display: flex; margin: 4px 0 14px; padding: 0; list-style: none; }
.track li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 10.5px; letter-spacing: .02em; color: var(--muted); overflow-wrap: normal; word-break: normal; }
.track li i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-hi); background: var(--bg); }
.track li::before { content: ''; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.past::before, .track li.now::before { background: var(--ice); }
.track li.past i { background: var(--ice); border-color: var(--ice); }
.track li.now i { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(156,199,255,.2); }
.track li.now { color: var(--text); }
@media (max-width: 380px) { .track li { font-size: 9.5px; } }
.side-status { margin: 4px 0 14px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 12px; text-align: center; font-weight: 500; }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.offer div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); display: grid; gap: 2px; min-width: 0; }
.offer small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.offer b { font-weight: 500; font-size: 15px; }
.offer .hi { border-color: rgba(156,199,255,.45); background: rgba(156,199,255,.08); } .offer .hi b { color: var(--ice); }
.status-hint { margin: 0 0 14px; font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.actions .cta { flex: 1 1 200px; width: auto; } .actions .ghost { flex: 1 1 140px; }
.confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.confirm span { flex: 1 1 100%; }
.confirm .ghost { padding: 10px 16px; }
.seg { display: flex; gap: 2px; padding: 3px; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.seg button { all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 0; cursor: pointer; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease); }
.seg button[aria-selected="true"] { background: var(--glass-hi); color: var(--text); }

/* chat */
.thread { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; }
.chat-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 12px; text-align: center; color: var(--muted); }
.chat-empty svg { width: 34px; height: 34px; opacity: .6; }
.day { text-align: center; margin: 12px 0 6px; }
.day span { padding: 2px 12px; border-radius: 999px; font-size: 11.5px; color: var(--muted); background: var(--glass); }
.msg { max-width: 84%; padding: 8px 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.055); animation: rise .3s var(--ease) both; }
.msg.first { margin-top: 8px; }
.msg p { margin: 2px 0; white-space: pre-wrap; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.msg .who { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.msg.mine { align-self: flex-end; background: linear-gradient(180deg, rgba(156,199,255,.2), rgba(156,199,255,.11)); border-color: rgba(156,199,255,.32); border-bottom-right-radius: 5px; }
.msg.mine .who { color: var(--ice); }
.msg.theirs { align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.work { border-color: rgba(143,214,168,.5); background: rgba(143,214,168,.08); }
.msg.work .who { color: var(--ok); }
.file { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; background: rgba(0,0,0,.3); }
.file .ext { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--glass-hi); font: 600 11px 'Oswald', sans-serif; letter-spacing: .06em; color: var(--ice); }
.file .fn { flex: 1; min-width: 0; display: grid; }
.file .fn b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fn small { font-size: 11.5px; color: var(--muted); }
.file > svg { color: var(--ice); }
.file.work .ext { background: rgba(143,214,168,.18); color: var(--ok); }
.sys { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0; }
.sys span { padding: 3px 12px; border-radius: 999px; font-size: 12px; color: #c9ced6; background: var(--glass); border: 1px solid var(--line); }
.sys time { font-size: 10.5px; color: var(--muted); }

/* responsive */
@media (max-width: 360px) {
  body { font-size: 14.5px; }
  .tab { font-size: 13px; padding: 9px 4px; }
  .cat { padding: 14px 38px 14px 14px; } .cat-name { font-size: 18px; }
  .cta { letter-spacing: .08em; font-size: 14px; padding: 14px 12px; }
  .langs button { padding: 5px 8px; }
  .msg { max-width: 94%; }
}
@media (min-width: 700px) {
  .app { max-width: 680px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat { min-height: 132px; align-content: start; }
  .view { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- v3: order workflow ---- */
.langs button, .curs button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.tag.small { min-height: 34px; }
.contact-link { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 13px 16px; border: 1px dashed var(--line-hi); border-radius: 14px; color: var(--muted); font-size: 14px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact-link:hover { color: var(--text); border-color: var(--ice); }
.contact-link:focus-visible, .link:focus-visible, .fget:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); color: var(--muted); font-size: 13.5px; }
.note > span { display: grid; gap: 2px; min-width: 0; } .note b { color: var(--text); font-weight: 500; }
.note svg { color: var(--ice); margin-top: 2px; }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.titlebar h1 { flex: 1; min-width: 0; }
.lock { text-align: center; padding: 18px 0; }
.lock .card { text-align: left; }
.lock input { margin-bottom: 10px; }
.step-card h2 { font: 600 20px/1.2 'Oswald', sans-serif; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.flag { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(240,201,135,.12); border: 1px solid rgba(240,201,135,.4); color: var(--warn); font-size: 13.5px; }
.preview { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(156,199,255,.08); border: 1px solid rgba(156,199,255,.25); font-size: 13.5px; color: #cfe2ff; }
.offerbox { margin-bottom: 14px; padding: 14px; border: 1px solid rgba(156,199,255,.4); border-radius: var(--r); background: rgba(156,199,255,.06); }
.offerbox h2 { margin: 0 0 10px; font: 600 15px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.offerbox .offer { margin-bottom: 10px; }
.offerbox .actions { margin: 4px 0 8px; }
.onote { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.28); font-size: 14px; }
.onote small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.req { margin: 6px 0 10px; padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: var(--r); background: var(--glass); }
.req-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.req-head b { font: 500 13px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.req-head time { font-size: 11.5px; color: var(--muted); }
.req dl { margin: 0; }
.req dt { margin-top: 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.req dd { margin: 1px 0 0; white-space: pre-wrap; font-size: 14.5px; }
.req .link { margin-top: 10px; display: inline-block; }
.evt { align-self: center; width: min(100%, 420px); margin: 8px 0; padding: 10px 14px; border: 1px solid rgba(156,199,255,.35); border-radius: 14px; background: rgba(156,199,255,.07); text-align: center; }
.evt b { font: 500 12px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.evt p { margin: 2px 0; white-space: pre-wrap; font-size: 15px; }
.evt small { color: var(--muted); font-size: 12px; } .evt time { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.evt.old { opacity: .55; }
.evt.pay { text-align: left; border-color: rgba(143,214,168,.4); background: rgba(143,214,168,.07); }
.evt.pay b { color: var(--ok); } .evt.pay time { text-align: right; }
.fget { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; color: var(--ice); background: rgba(156,199,255,.08); }
.release { margin-top: 8px; } .release small { display: block; margin-bottom: 6px; color: var(--warn); font-size: 12px; }
.release .tags { gap: 6px; }
.attach { display: grid; gap: 6px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,24,.95); font-size: 13.5px; color: var(--muted); }
.attach b { color: var(--text); font-weight: 500; }
.attach .ghost { padding: 10px 14px; justify-self: start; }
.closed { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,24,.92); color: var(--muted); font-size: 14px; }
.chatinfo { margin: 0 0 8px; font-size: 12px; color: var(--muted); text-align: center; }
.tag[class*="st-"] { border-color: currentColor; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 20; max-width: min(92vw, 420px); padding: 10px 16px; border-radius: 12px; background: #1c1c22; border: 1px solid var(--line-hi); color: var(--text); font-size: 14px; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.track li { font-size: 10px; }
@media (max-width: 380px) { .track li { font-size: 9px; } .offerbox, .req { padding: 12px; } }
.h-actions { display: flex; gap: 8px; }

/* tap targets: every control is at least ~40px tall */
.backlink { min-height: 40px; padding: 8px 10px 8px 0; }
.link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; border-bottom: 0; text-decoration: underline dashed; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.check { min-height: 44px; align-items: center; }
.cancel { margin-top: 10px; }
/* the file hint floats above the composer instead of making the bar taller (matters on short screens) */
.bar.composer { position: sticky; }
.attach { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(100% - 6px); z-index: 6; box-shadow: 0 -10px 30px rgba(0,0,0,.45); }

/* answer panel docked above the message field */
.dock { display: grid; gap: 8px; margin-bottom: 8px; padding: 12px; border: 1px solid rgba(156,199,255,.4); border-radius: 16px; background: rgba(14,18,26,.96); box-shadow: 0 -8px 24px rgba(0,0,0,.4); }
.dock-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin: 0; }
.dock-sum b { font: 500 12px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.dock-sum span { font-size: 15px; font-weight: 500; }
.dock .cta { padding: 13px 14px; }
.dock-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dock-row .ghost { flex: 1 1 130px; padding: 11px 12px; font-size: 14px; }
.dock .hint { margin: 0; }
.evt-note { margin: 4px 0 2px; color: #cfd6e0; font-size: 14px; }
.dock-row { flex-wrap: nowrap; }
.dock-row .ghost { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 13.5px; line-height: 1.2; }
@media (max-height: 640px) { .dock { gap: 6px; padding: 10px; } .dock .cta { padding: 11px 12px; } .dock-row .ghost { padding: 8px; } }

/* ---- header: one slim block instead of three tall rows ---- */
.top { display: grid; gap: 8px; padding-top: calc(10px + env(safe-area-inset-top)); }
.kicker { font-size: 11px; }
.chrome { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.langs, .curs { margin: 0; padding: 2px; }
.curs { flex: 1 1 200px; }
.langs button, .curs button { min-height: 30px; padding: 4px 9px; }
.curs button { padding: 4px 2px; }
.tabs { margin: 2px 0 0; padding: 3px; }
.tab { position: relative; padding: 9px 6px; white-space: nowrap; font-size: 14px; }
.tab .badge { position: absolute; top: 3px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
.view { padding-top: 10px; }
.langs button { padding: 4px 7px; font-size: 11.5px; letter-spacing: .04em; }
.curs { flex: 1 1 170px; }
.curs button { padding: 4px 0; font-size: 11.5px; letter-spacing: .03em; }
button.mt { margin-top: 12px; }

.filesend { margin: 4px 0 12px; }
.filesend .actions { display: grid; gap: 8px; margin: 0; }
.filesend .actions .cta, .filesend .actions .ghost { width: 100%; flex: none; }

/* ---------- studio sections: leads, reviews, statistics, settings ---------- */
.secnav { margin-bottom: 12px; }
.rolebadge { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.card.lead, .card.review { position: relative; padding-left: 18px; }
.card.lead::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--ice); opacity: .8; }
.card.lead.st-bar-cancelled::before { background: var(--muted); opacity: .4; }
.card.lead.st-bar-done::before { background: var(--ok); }
.card.lead.st-bar-reviewing::before { background: var(--violet); }
.lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lhead b { font: 500 17px/1.2 'Oswald', sans-serif; letter-spacing: .02em; }
.lmeta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.lhead .lmeta { margin: 0; }
.lcontact { margin: 10px 0 0; font-weight: 600; color: var(--text); }
.lmsg { margin: 6px 0 12px; white-space: pre-wrap; color: #d6d9df; max-height: 9.5em; overflow: auto; }
.pill[class*="lstate-"] { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.lstate-new { color: var(--ice); border-color: rgba(156,199,255,.45); }
.pill.lstate-converted { color: var(--ok); border-color: rgba(143,214,168,.4); }
.actions.wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cta.small { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.stars { color: var(--ice); letter-spacing: .12em; font-family: system-ui, sans-serif; font-size: 16px; }
.card.review.is-hidden { opacity: .6; }
.pubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pub { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pub-1 { color: var(--ok); border-color: rgba(143,214,168,.35); }
.pub-2 { color: var(--warn); border-color: rgba(240,201,135,.4); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); display: grid; gap: 2px; align-content: start; }
.tile > span { font-size: 12px; color: var(--muted); }
.tile b { font: 500 22px/1.15 'Oswald', sans-serif; letter-spacing: .02em; }
.tile b small, .tile small.dim { font: 400 11.5px/1.2 'Onest', sans-serif; color: var(--muted); letter-spacing: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-l { fill: var(--ice); } .chart .bar-o { fill: #e6e9ee; }
.chart .axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axl { fill: var(--muted); font: 400 8px 'Onest', sans-serif; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.legend span { margin-left: auto; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; } .sw-l { background: var(--ice); } .sw-o { background: #e6e9ee; }
.hbar { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 13.5px; }
.hbar i { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ice) var(--w), rgba(255,255,255,.07) var(--w)); }
.hbar b { font-weight: 600; }
.money { margin: 0; font-size: 18px; } .money small { color: var(--muted); }
.paynote { margin-top: 10px; }
.dock-pay { margin: 2px 0 6px; }
.method { padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); display: grid; gap: 8px; }
.method.on { border-color: rgba(156,199,255,.4); }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.srow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.srow em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.audit { list-style: none; margin: 0; padding: 0; font-size: 13px; color: #cfd3da; max-height: 320px; overflow: auto; }
.audit li { padding: 6px 0; border-bottom: 1px solid var(--line); } .audit time { color: var(--muted); margin-right: 6px; }
.mt { margin-top: 12px; } .link.danger, button.link.danger { color: var(--danger); }
@media (max-width: 380px) { .tiles { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }
.chart text { stroke: none; paint-order: normal; } .chart rect { stroke: none; }
.mrow input, .grid2 input { min-width: 0; }
input[type="date"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.35); color: var(--text); font: inherit; color-scheme: dark; } .mb { margin-bottom: 12px; }
.flag { margin: 0 0 6px; color: var(--warn); font-size: 13px; }
input[type="time"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.35); color: var(--text); font: inherit; color-scheme: dark; } .preview { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--line-hi); border-radius: 12px; display: grid; gap: 4px; } .preview small { color: var(--muted); font-size: 11.5px; }
.dg { list-style: none; padding: 5px 0; } .dg b { display: inline-block; width: 1.3em; } .dg-ok b { color: var(--ok); } .dg-bad b { color: var(--danger); } .dg small { color: var(--muted); }
