/* ==========================================================================
   Washer — design system
   ========================================================================== */
:root {
  --brand: #0b7285;
  --brand-600: #0a6577;
  --brand-700: #085563;
  --brand-50: #e8f6f8;
  --brand-100: #cdeef3;
  --brand-200: #a5dfe8;
  --accent: #f08c00;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #f8fbfb;
  --border: #e1e8eb;
  --border-strong: #c9d5da;
  --text: #102a33;
  --text-2: #3a5059;
  --muted: #687f88;
  --ok: #2b8a3e;
  --ok-bg: #ebfbee;
  --warn: #b35c00;
  --warn-bg: #fff4e6;
  --bad: #c92a2a;
  --bad-bg: #fff5f5;
  --info: #1864ab;
  --info-bg: #e7f5ff;
  --pending: #5f3dc4;
  --pending-bg: #f3f0ff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 51, 0.06);
  --shadow: 0 6px 20px rgba(16, 42, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 42, 51, 0.2);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sidebar: 252px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
.h2 { font-size: 1.5rem; }

p { margin: 0 0 0.9em; }

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: var(--brand-50);
  padding: 1px 6px;
  border-radius: 5px;
  word-break: break-all;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.block { display: block; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }
.pad { padding: 16px 20px; margin: 0; }
.plain { margin: 0; padding-left: 18px; }
.error { color: var(--bad); }
.icon { flex-shrink: 0; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b-bg: var(--brand);
  --b-fg: #fff;
  --b-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--b-bd);
  background: var(--b-bg);
  color: var(--b-fg);
  font: 600 0.93rem/1.2 var(--font);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: not-allowed; }
.btn--primary:hover { --b-bg: var(--brand-600); --b-bd: var(--brand-600); filter: none; }
.btn--secondary { --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong); }
.btn--secondary:hover { --b-bg: var(--surface-2); filter: none; border-color: var(--brand-200); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text-2); --b-bd: transparent; }
.btn--ghost:hover { --b-bg: var(--brand-50); filter: none; }
.btn--danger { --b-bg: var(--bad); --b-bd: var(--bad); }
.btn--light { --b-bg: #fff; --b-fg: var(--brand-700); --b-bd: #fff; }
.btn--sm { min-height: 32px; padding: 6px 11px; font-size: 0.84rem; border-radius: 8px; gap: 6px; }
.btn--lg { min-height: 50px; padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.9rem;
}
.icon-btn:hover { background: var(--brand-50); color: var(--text); }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--brand-100);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner--sm { width: 15px; height: 15px; border-width: 2px; border-color: rgba(255, 255, 255, 0.45); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row-end { display: flex; justify-content: flex-end; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: 0.88rem; color: var(--text-2); }
.field__req { color: var(--bad); font-style: normal; }
.field__hint { font-size: 0.8rem; color: var(--muted); }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }
.field--inline .input { width: 80px; }

.input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: 400 0.95rem/1.4 var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
textarea.input { resize: vertical; min-height: 70px; }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2714%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23687f88%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input--sm { min-height: 34px; padding: 6px 9px; font-size: 0.88rem; border-radius: 8px; }
.input--code { font-size: 1.4rem; letter-spacing: 0.4em; text-align: center; font-weight: 700; }
input[type='file'].input { padding: 8px; }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; }
.input-prefix > span:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.input-prefix > span:last-child:not(:first-child) { border-left: 0; border-radius: 0 10px 10px 0; }
.input-prefix > .input { border-radius: 0; flex: 1; min-width: 0; }
.input-prefix > .input:first-child { border-radius: 10px 0 0 10px; }
.input-prefix > .input:last-child { border-radius: 0 10px 10px 0; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; color: var(--text-2); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.check.is-disabled { opacity: 0.6; cursor: default; }

.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-list--row { flex-direction: row; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); font-size: 0.93rem; transition: border-color 0.15s, background 0.15s; }
.radio input { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.radio.is-active { border-color: var(--brand); background: var(--brand-50); }
.radio--block { align-items: flex-start; }
.radio--block input { margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font: 600 0.86rem var(--font); cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; font: 600 0.92rem var(--font); color: var(--text); }
.switch__track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--border-strong); transition: background 0.2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.switch.is-on .switch__track { background: var(--ok); }
.switch.is-on .switch__thumb { transform: translateX(22px); }
.switch[disabled] { opacity: 0.6; cursor: wait; }

.segmented { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; gap: 4px; max-width: 100%; overflow-x: auto; }
.segmented button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 0.92rem var(--font); cursor: pointer; white-space: nowrap; }
.segmented button.is-active { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ cards & blocks */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card__heading { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.card__title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.card__sub { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.card__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.card__body > :last-child { margin-bottom: 0; }
.card__body--flush { padding: 12px 0 0; gap: 0; }
.card__note { padding: 12px 16px 16px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head__title { font-size: 1.65rem; margin: 0; }
.page-head__sub { margin: 4px 0 0; color: var(--muted); max-width: 680px; }
.page-head__back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.page-head__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack--sm { gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-bottom: 20px; }
.grid-main > .card { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2--top { align-items: start; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shell__content > .card,
.shell__content > .alert,
.shell__content > .stack > .card { margin-bottom: 18px; }
.narrow-l { max-width: 760px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); min-width: 0; }
.stat--link:hover { text-decoration: none; border-color: var(--brand-200); box-shadow: var(--shadow); }
.stat__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stat__label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.stat__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand); }
.stat__icon--ok { background: var(--ok-bg); color: var(--ok); }
.stat__icon--warn { background: var(--warn-bg); color: var(--warn); }
.stat__icon--bad { background: var(--bad-bg); color: var(--bad); }
.stat__value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.stat__hint { font-size: 0.8rem; color: var(--muted); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.mini-stats strong { display: block; font-size: 1.4rem; }
.mini-stats span { font-size: 0.8rem; color: var(--muted); }

.kv { margin: 0; display: flex; flex-direction: column; }
.kv__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 0.86rem; }
.kv dd { margin: 0; font-size: 0.93rem; overflow-wrap: anywhere; }

.summary { display: flex; flex-direction: column; gap: 8px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.93rem; color: var(--text-2); }
.summary__row span:last-child { font-weight: 600; color: var(--text); text-align: right; }
.summary__total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 1.08rem; color: var(--text); }
.summary__total span { font-weight: 800 !important; }
.summary__neg span:last-child { color: var(--bad); }
.summary__earn { padding-top: 8px; border-top: 1px dashed var(--border); }
.summary__earn span:last-child { color: var(--ok); font-weight: 800; font-size: 1.05rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); text-transform: none; }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--ok-bg); color: var(--ok); border-color: #c3ecc9; }
.badge--warn { background: var(--warn-bg); color: var(--warn); border-color: #ffd8a8; }
.badge--bad { background: var(--bad-bg); color: var(--bad); border-color: #ffc9c9; }
.badge--info { background: var(--info-bg); color: var(--info); border-color: #a5d8ff; }
.badge--pending { background: var(--pending-bg); color: var(--pending); border-color: #d0bfff; }
.badge--action { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.badge--muted { background: #f1f3f5; color: #6c7a80; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 16px; font-size: 0.93rem; }
.alert__icon { margin-top: 1px; }
.alert__body { flex: 1; min-width: 0; }
.alert__title { display: block; margin-bottom: 2px; }
.alert__text > :last-child { margin-bottom: 0; }
.alert__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.alert--info { background: var(--info-bg); border-color: #a5d8ff; color: #11406b; }
.alert--ok { background: var(--ok-bg); border-color: #b2f2bb; color: #1f5f2c; }
.alert--warn { background: var(--warn-bg); border-color: #ffd8a8; color: #7a3f00; }
.alert--bad { background: var(--bad-bg); border-color: #ffc9c9; color: #8a1c1c; }
.alert--action { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.card .alert { margin-bottom: 0; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; color: var(--muted); }
.empty__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: var(--brand-50); color: var(--brand); margin-bottom: 4px; }
.empty__title { color: var(--text); font-size: 1rem; }
.empty__text { margin: 0; max-width: 380px; }
.empty--error { color: var(--bad); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; color: var(--muted); }
.page-loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------------ tables & lists */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { padding: 14px 16px; border-top: 1px solid var(--border); font-weight: 600; background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table--hover tbody tr:hover { background: var(--surface-2); }
.table--lg td { padding: 14px 18px; }
.table--edit td { padding: 8px 10px; vertical-align: middle; }
.table--edit .price-col { width: 150px; }
.table--edit .sort-col { width: 80px; }
.table tr.is-off td { opacity: 0.55; }
.table td.is-mismatch { color: var(--bad); font-weight: 700; }
.table tr.is-mismatch-row td { background: var(--warn-bg); }
.table tr.clickable { cursor: pointer; }
.card__body--flush > .table-wrap:first-child .table th { border-top: 1px solid var(--border); }
.card__body--flush > .table-wrap:last-child .table tr:last-child td { border-bottom: 0; }
pre.meta { font-size: 0.78rem; background: var(--surface-2); border: 1px solid var(--border); padding: 8px; border-radius: 8px; white-space: pre-wrap; margin: 8px 0 0; }

.list { display: flex; flex-direction: column; }
.list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.list__row:first-child { border-top: 0; }
.list__row.is-off { opacity: 0.55; }
.list__row--link { color: var(--text); }
.list__row--link:hover { background: var(--surface-2); text-decoration: none; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 20px; flex-wrap: wrap; font-size: 0.88rem; }
.pager__btns { display: flex; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 10px 14px; border: 0; background: none; font: 600 0.92rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand-700); }
.tab.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tab__count { background: var(--brand-50); color: var(--brand-700); border-radius: 999px; font-size: 0.75rem; padding: 0 7px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters > .input { width: auto; min-width: 150px; flex: 0 1 auto; }
.filters__search { flex: 1 1 240px !important; }

/* ------------------------------------------------------------------ modal, toast, dropdown */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9, 30, 38, 0.48); animation: fade 0.15s ease; }
.modal__panel { position: relative; width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop 0.18s ease; }
.modal__panel--sm { max-width: 440px; }
.modal__panel--md { max-width: 560px; }
.modal__panel--lg { max-width: 860px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.modal__head h2 { font-size: 1.15rem; margin: 0; }
.modal__body { padding: 6px 20px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal__text { margin: 0; color: var(--text-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--text); color: #fff; box-shadow: var(--shadow-lg); font-size: 0.92rem; cursor: pointer; animation: pop 0.2s ease; border-left: 4px solid var(--brand-200); }
.toast--success { border-left-color: #51cf66; }
.toast--error { background: #7d1a1a; border-left-color: #ff8787; }

.bell { position: relative; }
.bell__btn { position: relative; }
.bell__count { position: absolute; top: 1px; left: 21px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; border: 2px solid var(--bg); background: var(--bad); color: #fff; font: 700 0.64rem/13px var(--font); font-style: normal; text-align: center; box-sizing: border-box; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.dropdown__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.dropdown__list { max-height: 380px; overflow-y: auto; }
.dropdown__empty { padding: 24px 16px; margin: 0; color: var(--muted); text-align: center; font-size: 0.9rem; }
.dropdown__foot { display: block; padding: 11px 16px; text-align: center; border-top: 1px solid var(--border); font-weight: 600; font-size: 0.88rem; }
.notif { display: flex; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--text); align-items: flex-start; }
.notif:hover { background: var(--surface-2); }
.notif.is-unread { background: #f3fbfc; }
.notif__dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.notif.is-unread .notif__dot { background: var(--brand); }
.notif.is-unread .notif__dot--warning { background: var(--accent); }
.notif.is-unread .notif__dot--success { background: var(--ok); }
.notif__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif__body strong { font-size: 0.9rem; }
.notif__text { font-size: 0.85rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.notif__text--full { -webkit-line-clamp: unset; display: block; }
.notif__body time { font-size: 0.76rem; color: var(--muted); }
.notif--row { padding: 14px 20px; align-items: center; }
.notif-list .notif:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none !important; }
.brand__mark { display: inline-flex; width: 34px; height: 34px; padding: 4px; border-radius: 10px; background: var(--brand); color: #fff; }
.brand__logo { height: 36px; width: auto; }
.brand--small { font-size: 1.1rem; }
.brand--small .brand__mark { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ public site */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.site-main { flex: 1; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-header__menu { display: none; margin-left: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; }
.site-nav > a:hover, .site-nav > a.active { color: var(--brand-700); background: var(--brand-50); text-decoration: none; }
.site-nav__cta { display: flex; gap: 8px; margin-left: 12px; }

.announcement { border-bottom: 1px solid; font-size: 0.9rem; }
.announcement__inner { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 8px 20px; }
.announcement p { margin: 0; flex: 1; }
.announcement__link { margin-left: 8px; font-weight: 700; color: inherit; text-decoration: underline; }
.announcement--info { background: var(--info-bg); border-color: #a5d8ff; color: #11406b; }
.announcement--success { background: var(--ok-bg); border-color: #b2f2bb; color: #1f5f2c; }
.announcement--warning { background: var(--warn-bg); border-color: #ffd8a8; color: #7a3f00; }
.shell__content .announcement { border: 1px solid; border-radius: var(--radius); margin-bottom: 16px; }
.shell__content .announcement__inner { padding: 10px 14px; }

.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: var(--brand-200); }
.lead { font-size: 1.12rem; color: var(--text-2); line-height: 1.6; }

.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-50), transparent 60%), linear-gradient(180deg, #fff, #f6fbfc); padding: 64px 0 72px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.hero__trust li { display: inline-flex; gap: 7px; align-items: center; }
.hero__trust .icon { color: var(--brand); }
.hero__img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3.4; }

.hero-art { position: relative; min-height: 420px; }
.hero-art__blob { position: absolute; inset: 30px 10px 10px 40px; border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; background: linear-gradient(140deg, var(--brand) 0%, #15aabf 100%); opacity: 0.95; }
.hero-art__bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.08) 70%); border: 1px solid rgba(255, 255, 255, 0.7); animation: float 6s ease-in-out infinite; }
.hero-art__bubble.b1 { width: 70px; height: 70px; top: 10px; left: 30px; }
.hero-art__bubble.b2 { width: 42px; height: 42px; top: 70px; right: 30px; animation-delay: -2s; }
.hero-art__bubble.b3 { width: 28px; height: 28px; bottom: 40px; left: 18px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-art__card { position: absolute; left: 12%; right: 8%; top: 70px; background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-lg); }
.hac__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hac__head strong { display: block; }
.hac__head span { font-size: 0.85rem; color: var(--muted); }
.hac__icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.hac__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hac__steps li { position: relative; padding-left: 28px; font-size: 0.9rem; color: var(--muted); }
.hac__steps li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; }
.hac__steps li.is-done { color: var(--text); }
.hac__steps li.is-done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.hac__steps li.is-current { color: var(--brand-700); font-weight: 700; }
.hac__steps li.is-current::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.hero-art__pill { position: absolute; right: 2%; bottom: 26px; display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 0.88rem; font-weight: 700; color: var(--ok); }

.section { padding: 76px 0; }
.section--tint { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--brand { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.service-card h3 { font-size: 1.35rem; margin: 6px 0 0; }
.service-card p { color: var(--text-2); flex: 1; }
.service-card__icon { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.service-card--pickup .service-card__icon { background: #fff4e6; color: var(--accent); }
.service-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.service-card__fee { font-size: 0.85rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 5px 10px; border-radius: 8px; margin-bottom: 8px; }

.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; }
.how-steps li { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.how-steps p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.how-steps__n { display: inline-flex; width: 36px; height: 36px; border-radius: 11px; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv { display: flex; gap: 14px; padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.adv h3 { font-size: 1rem; margin-bottom: 4px; }
.adv p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.adv__icon { display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }

.trust { display: flex; gap: 24px; align-items: center; }
.trust h2 { color: #fff; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--brand-100); font-size: 1.05rem; max-width: 760px; }
.trust__icon { display: inline-flex; flex-shrink: 0; width: 72px; height: 72px; border-radius: 22px; background: rgba(255, 255, 255, 0.14); align-items: center; justify-content: center; }

.pricing-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price-list { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 8px 22px; box-shadow: var(--shadow); }
.price-list__row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.price-list__row:last-child { border-bottom: 0; }

.provider-cta { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 48px; border-radius: 28px; background: linear-gradient(135deg, #0b3a45, var(--brand-700)); color: #fff; }
.provider-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.provider-cta p { color: var(--brand-100); font-size: 1.05rem; margin-bottom: 24px; }
.provider-cta__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.provider-cta__list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.provider-cta__img { border-radius: 20px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.faq { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s; color: var(--muted); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq .prose { padding: 0 18px 16px; color: var(--text-2); }

.page { padding-top: 48px; padding-bottom: 72px; }
.page-intro { margin-bottom: 28px; }
.big-code { font-size: 5rem; font-weight: 800; color: var(--brand-100); margin: 0; line-height: 1; }

.prose { font-size: 1rem; line-height: 1.7; color: var(--text-2); }
.prose h1 { font-size: 2.1rem; color: var(--text); }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; color: var(--text); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: 14px; margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--brand-200); color: var(--text-2); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose a { text-decoration: underline; }
.prose > :first-child { margin-top: 0; }
.cms-page { background: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.contact-card__icon { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); margin-bottom: 8px; }

.auth { max-width: 460px; margin: 0 auto; padding: 48px 20px 72px; }
.auth__card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth__card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth__card > .muted { margin-bottom: 22px; }
.auth__foot { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

.washer-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.washer-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.check-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 3px; }
.bullets { padding-left: 1.2em; color: var(--text-2); }
.bullets li { margin-bottom: 6px; }

.center-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; background: radial-gradient(800px 400px at 50% -10%, var(--brand-50), transparent 70%), var(--bg); }
.center-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.center-card .alert { margin: 0; }
.checkout { text-align: center; align-items: center; }
.checkout .stack { width: 100%; }
.checkout__badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 0.82rem; font-weight: 700; }
.checkout__amount { font-size: 2.4rem; font-weight: 800; margin: 0; letter-spacing: -0.03em; }

.site-footer { background: #0b2a33; color: #b8cdd3; padding: 56px 0 24px; margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer__grid > div { display: flex; flex-direction: column; gap: 9px; }
.site-footer a, .site-footer span { color: #b8cdd3; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer__about p { font-size: 0.92rem; margin: 6px 0 0; }
.site-footer__social { display: flex !important; flex-direction: row !important; gap: 14px !important; flex-wrap: wrap; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; }

/* ------------------------------------------------------------------ dashboard shell */
.shell { min-height: 100vh; }
.shell__sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar); display: flex; flex-direction: column; background: #0b2a33; color: #c6d9de; z-index: 70; }
.shell__brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 18px 14px; }
.shell__brand .brand { color: #fff; font-size: 1.15rem; }
.shell__brand .brand__mark { background: rgba(255, 255, 255, 0.12); }
.shell__area { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-200); background: rgba(255, 255, 255, 0.07); padding: 3px 8px; border-radius: 6px; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav__section { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6f8c95; padding: 16px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #c6d9de; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-nav a.active { background: var(--brand); color: #fff; }
.side-nav__badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 0.72rem/20px var(--font); font-style: normal; text-align: center; }
.shell__person { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.shell__person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell__person-text strong { color: #fff; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell__person-text span { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell__person .icon-btn { color: #c6d9de; }
.shell__person .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.shell__main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.shell__topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 28px; background: rgba(244, 247, 248, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.shell__menu, .shell__topbar-brand { display: none; }
.shell__topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.shell__content { padding: 28px; width: 100%; max-width: 1320px; }
.shell__backdrop { display: none; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: 800; object-fit: cover; flex-shrink: 0; }
.person { display: flex; align-items: center; gap: 14px; }
.person--edit { margin-bottom: 4px; }

/* ------------------------------------------------------------------ order bits */
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.list .order-row:first-child { border-top: 0; }
.order-row:hover { background: var(--surface-2); }
.order-row__icon { display: inline-flex; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.order-row__icon--pickup { background: #fff4e6; color: var(--accent); }
.order-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-row__main .muted { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.step { position: relative; display: flex; gap: 12px; padding-bottom: 16px; color: var(--muted); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--ok); }
.step__dot { position: relative; z-index: 1; display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--border-strong); background: #fff; font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.step.is-done .step__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-current .step__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-100); }
.step__text { display: flex; flex-direction: column; padding-top: 3px; }
.step__label { font-weight: 600; font-size: 0.93rem; }
.step.is-done .step__label { color: var(--text); }
.step.is-current .step__label { color: var(--brand-700); font-weight: 800; }
.step__time { font-size: 0.78rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl__dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--brand); flex-shrink: 0; box-shadow: 0 0 0 3px #fff; }
.tl--note .tl__dot { background: var(--muted); }
.tl--refund .tl__dot, .tl--payment .tl__dot { background: var(--accent); }
.tl--warn .tl__dot { background: var(--bad); }
.tl--internal .tl__body { background: #fffbea; border: 1px dashed #ffe066; border-radius: 10px; padding: 8px 10px; }
.tl__body { flex: 1; min-width: 0; }
.tl__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; }
.tl__head time { font-size: 0.78rem; color: var(--muted); }
.tl__note { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-2); white-space: pre-wrap; }
.tl__actor { font-size: 0.76rem; color: var(--muted); }
.counts { list-style: none; margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.counts .is-mismatch { color: var(--bad); }
.counts__kind { color: var(--muted); width: 100%; font-size: 0.76rem; }

.book-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.book-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #1098ad); color: #fff; text-decoration: none !important; box-shadow: var(--shadow); transition: transform 0.15s; }
.book-card:hover { transform: translateY(-2px); }
.book-card--alt { background: linear-gradient(135deg, #0b3a45, var(--brand-700)); }
.book-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.book-card strong { font-size: 1.05rem; }
.book-card > span:nth-child(2) > span { font-size: 0.86rem; opacity: 0.85; }
.book-card__icon { display: inline-flex; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.15); }

.service-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-pick__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; text-align: left; border: 2px solid var(--border); border-radius: 22px; background: #fff; cursor: pointer; font: inherit; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.service-pick__card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.service-pick__card strong { font-size: 1.25rem; }
.service-pick__card > span:not(.service-pick__icon):not(.service-pick__fee) { color: var(--text-2); }
.service-pick__icon { display: inline-flex; width: 60px; height: 60px; border-radius: 18px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.service-pick__fee { font-size: 0.85rem; font-weight: 700; color: var(--brand-700); }

.items-table td { vertical-align: middle; }
.items-table .qty-col { width: 110px; text-align: center; }
.items-table tbody tr.has-qty { background: #f3fbfc; }
.qty-input { width: 84px; text-align: center; font-weight: 700; font-size: 1.05rem; min-height: 44px; }
.grid-main--book { grid-template-columns: minmax(0, 1fr) 340px; }
.book-summary { position: sticky; top: 80px; }
.trust-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 0; }
.trust-note .icon { color: var(--ok); margin-top: 2px; }
.review p { margin: 0; }
.review__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.review__items li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.93rem; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.job-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.job-card p { margin: 0; }
.job-card__head { display: flex; gap: 12px; align-items: center; }
.job-card__head > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.job-card__earn { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 1.15rem; color: var(--ok); }
.job-card__earn small { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--text-2); }
.job-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.job-card__items { font-size: 0.9rem; font-weight: 600; }
.job-card__note { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.job-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto; }

.online-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 2px solid var(--border); margin-bottom: 20px; }
.online-card > div { display: flex; flex-direction: column; }
.online-card strong { font-size: 1.15rem; }
.online-card span { color: var(--muted); font-size: 0.9rem; }
.online-card.is-online { border-color: #8ce99a; background: var(--ok-bg); }

.next-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--brand-200); flex-wrap: wrap; }
.next-step > div { display: flex; flex-direction: column; }
.next-step strong { font-size: 1.2rem; }

.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li.is-done { color: var(--ok); }
.area-picker { display: flex; flex-direction: column; gap: 12px; }
.area-picker__city { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--border-strong); vertical-align: middle; }
.stars .is-on { color: #f59f00; fill: #f59f00; }
.stars__count { margin-left: 5px; font-size: 0.8rem; color: var(--muted); }
.star-input { display: inline-flex; gap: 6px; margin: 8px 0; }
.star-input button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--border-strong); }
.star-input button.is-on { color: #f59f00; }
.star-input button.is-on .icon { fill: #f59f00; }

.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.msg p { margin: 4px 0 0; font-size: 0.93rem; }
.msg__head { display: flex; gap: 10px; justify-content: space-between; font-size: 0.82rem; }
.msg__head time { color: var(--muted); }
.msg.is-mine { align-self: flex-end; background: var(--brand-50); border-color: var(--brand-100); }
.msg--admin:not(.is-mine) { border-color: #ffe066; background: #fffbea; }
.reply { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; margin-top: 8px; }

.bars-wrap { position: relative; padding-top: 18px; }
.bars__max { position: absolute; top: 0; left: 0; font-size: 0.75rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 22px; position: relative; }
.bars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.bars__bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #15aabf, var(--brand)); transition: height 0.3s; }
.bars__col:hover .bars__bar { filter: brightness(1.1); }
.bars__label { position: absolute; bottom: -20px; font-size: 0.7rem; color: var(--muted); }

.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.pick input { accent-color: var(--brand); width: 17px; height: 17px; }
.pick.is-active { border-color: var(--brand); background: var(--brand-50); }
.pick.is-disabled { opacity: 0.6; cursor: default; }
.pick__main { flex: 1; min-width: 0; }
.pick__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 20px; }

.copy { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; word-break: break-all; }
.copy .icon { color: var(--muted); }
.copy:hover .icon { color: var(--brand); }
.gateway { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px dashed var(--border); }

/* CMS */
.md-editor { display: flex; flex-direction: column; gap: 8px; }
.md-editor__bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.md-editor__bar button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; background: none; font: 600 0.82rem var(--font); color: var(--text-2); cursor: pointer; }
.md-editor__bar button:hover { background: #fff; border-color: var(--border); }
.md-editor__views { margin-left: auto; display: none; gap: 4px; }
.md-editor__views button.is-active { background: var(--brand); color: #fff; }
.md-editor__panes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-editor__text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; line-height: 1.6; min-height: 320px; }
.md-editor__preview { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; overflow: auto; max-height: 620px; background: #fff; }
.md-editor__preview .prose { font-size: 0.93rem; }

.image-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.image-field img { width: 140px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.image-field__empty { display: inline-flex; width: 140px; height: 84px; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--muted); }
.upload-drop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; border: 2px dashed var(--border-strong); border-radius: 14px; color: var(--muted); cursor: pointer; text-align: center; font-weight: 600; }
.upload-drop:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.media-grid--manage { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.media-tile { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--text); }
.media-tile:hover { border-color: var(--brand); }
.media-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.media-tile > span { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-tile--manage { cursor: default; }
.media-tile__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.media-tile__meta strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-bar { position: sticky; bottom: 16px; z-index: 30; display: none; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--shadow-lg); }
.save-bar span { margin-right: auto; font-weight: 600; }
.save-bar.is-visible { display: flex; }
.save-bar .btn--ghost { --b-fg: #fff; }
.save-bar .btn--ghost:hover { --b-bg: rgba(255, 255, 255, 0.1); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .grid-main, .grid-main--book { grid-template-columns: minmax(0, 1fr) 320px; }
  .stats-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .site-header__menu { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px; }
  .site-nav__cta { margin: 10px 0 0; flex-direction: column; }
  .site-nav__cta .btn { width: 100%; }

  .hero { padding: 40px 0 48px; }
  .hero__inner, .pricing-preview, .provider-cta, .washer-hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .provider-cta { padding: 32px 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  .shell__sidebar { transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  .shell.is-nav-open .shell__sidebar { transform: none; }
  .shell.is-nav-open .shell__backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(9, 30, 38, 0.45); }
  .shell__main { margin-left: 0; }
  .shell__menu { display: inline-flex; }
  .shell__topbar-brand { display: block; }
  .shell__topbar { padding: 8px 16px; }
  .shell__content { padding: 20px 16px; }

  .grid-main, .grid-main--book { grid-template-columns: minmax(0, 1fr); }
  .book-summary { position: static; }
  .md-editor__panes { grid-template-columns: 1fr; }
  .md-editor__views { display: inline-flex; }
  .md-editor__panes.is-write .md-editor__preview { display: none; }
  .md-editor__panes.is-preview .md-editor__text { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.7rem; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .service-cards, .book-cards, .service-pick, .adv-grid, .grid-2, .grid-3, .stats-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .stats-grid, .stats-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat__value { font-size: 1.15rem; }
  .stat__icon { display: none; }
  .trust { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .page-head__title { font-size: 1.4rem; }
  .card__head { padding: 16px 16px 0; }
  .card__body:not(.card__body--flush) { padding: 14px 16px 16px; }
  .order-row { padding: 12px 16px; gap: 10px; }
  .order-row__icon { width: 36px; height: 36px; }
  .list__row { padding: 12px 16px; }
  .table th, .table td { padding: 10px 12px; }
  .items-table .qty-col { width: 86px; }
  .qty-input { width: 66px; }
  .kv__row { grid-template-columns: 1fr; gap: 2px; }
  .auth__card { padding: 24px 20px; }
  .modal { padding: 10px; align-items: flex-end; }
  .modal__panel { max-height: calc(100vh - 20px); }
  .filters > .input { flex: 1 1 140px; }
  .hero-art__card { left: 4%; right: 4%; }
  .msg { max-width: 100%; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

