/* Layout + components. Colours/fonts come only from theme.css variables. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: var(--text-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(el) body, html:lang(el) { line-height: 1.55; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-small); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ico { flex: none; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); line-height: 1.1; letter-spacing: var(--display-tracking); }
.display--sm { font-size: 1.5rem; }
.eyebrow { font-size: var(--text-small); color: var(--ink-3); font-weight: 500; margin-bottom: var(--space-2); }
.lede { color: var(--ink-2); font-size: 1rem; margin-top: var(--space-2); max-width: 62ch; }
.lede--sm { font-size: var(--text-body); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.section-title { font-size: var(--text-h2); font-weight: 600; display: flex; align-items: center; gap: var(--space-2); margin: var(--space-6) 0 var(--space-3); }
.mini-title { font-size: var(--text-small); font-weight: 600; color: var(--ink-2); margin-bottom: var(--space-3); }
.link { color: var(--accent-ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; font-size: var(--text-small); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--back { margin-bottom: var(--space-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--text-small); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-sunken); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--primary:disabled:hover { background: var(--accent); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--accent-ink); }
.btn--quiet:hover { background: var(--accent-soft); }
.btn--sm { height: 32px; padding: 0 12px; }
.btn--xs { height: 26px; padding: 0 8px; font-size: var(--text-micro); }
.btn--lg { height: 46px; font-size: var(--text-body); }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-s); border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--surface-sunken); color: var(--ink); }
.iconbtn--sm { width: 28px; height: 28px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* segmented control */
.seg { display: inline-flex; padding: 2px; border-radius: var(--radius-s); background: var(--surface-sunken); border: 1px solid var(--border); }
.seg__b { border: 0; background: transparent; padding: 0 12px; height: 30px; border-radius: 5px; font-size: var(--text-small); font-weight: 500; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg__b.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px var(--scrim); }
.seg--sm .seg__b { height: 26px; padding: 0 10px; font-size: var(--text-micro); }
.acc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.acc--cobalt { background: var(--accent); }
:root[data-accent="terracotta"] .acc--cobalt, :root:not([data-accent="terracotta"]) .acc--terracotta { background: var(--border-strong); }
.acc--terracotta { background: var(--accent); }

/* chips, badges, deltas */
.demo-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--text-micro); font-weight: 600; color: var(--ink-2); border: 1px dashed var(--border-strong); background: var(--surface); white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--text-micro); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--text-micro); font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active { background: var(--accent-soft); color: var(--accent-ink); }
.badge--needs { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge--needs::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.badge--off { background: var(--surface-sunken); color: var(--ink-2); }
.badge--plan { background: var(--accent-soft); color: var(--accent-ink); }
.badge--plan::before { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--text-micro); font-weight: 600; border: 1px solid var(--border-strong); color: var(--ink-2); white-space: nowrap; }
.tag--ok { border-color: var(--border); color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-small); font-weight: 600; padding: 2px 8px 2px 5px; border-radius: 999px; white-space: nowrap; }
.delta--good { color: var(--good); background: var(--good-soft); }
.delta--warn { color: var(--warn); background: var(--warn-soft); }
.delta--bad { color: var(--bad); background: var(--bad-soft); }
.delta--neutral { color: var(--ink-2); background: var(--surface-sunken); }
.delta__vs { font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px var(--accent-soft); margin-right: 4px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: var(--text-small); flex: none; }
.avatar--sm { width: 30px; height: 30px; font-size: var(--text-micro); }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 20;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: var(--space-3); gap: var(--space-2);
  transition: width .2s ease;
}
.main { margin-left: var(--sidebar-w); padding: var(--space-6) var(--space-7) var(--space-7); max-width: calc(1280px + var(--sidebar-w)); transition: margin .2s ease; outline: none; }
.is-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
.is-collapsed .main { margin-left: var(--sidebar-w-collapsed); }
.is-collapsed .nav__label, .is-collapsed .pswitch__txt, .is-collapsed .pswitch__btn > .ico, .is-collapsed .demo-chip--side, .is-collapsed .seg__txt { display: none; }
.is-collapsed .seg--side { flex-direction: column; align-self: center; }
.is-collapsed .pswitch__btn { justify-content: center; padding: 8px 0; }
.is-collapsed .nav__item { justify-content: center; padding: 0; }
.is-collapsed .nav__count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface); }
.demo-chip--side { align-self: flex-start; margin: 0 var(--space-2) var(--space-2); }

.pswitch { position: relative; }
.pswitch__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; }
.pswitch__btn:hover { background: var(--surface-sunken); }
.pswitch__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 1.05rem; flex: none; }
.pswitch__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pswitch__txt b { font-size: var(--text-small); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pswitch__txt span { font-size: var(--text-micro); color: var(--ink-3); }

.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); padding: 6px; display: none; }
.menu.is-open { display: block; }
.menu--right { left: auto; right: 0; }
.menu__label { font-size: var(--text-micro); color: var(--ink-3); padding: 6px 8px; font-weight: 600; }
.menu__item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: transparent; border-radius: var(--radius-s); cursor: pointer; text-align: left; text-decoration: none; font-size: var(--text-small); }
.menu__item:hover { background: var(--surface-sunken); }
.menu__item > .ico:last-child { color: var(--accent); margin-left: auto; }
.menu__hint { font-size: var(--text-micro); color: var(--ink-3); padding: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.menu__sep { height: 1px; background: var(--border); margin: 6px 0; }
.menu__row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: var(--text-small); gap: 12px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--text-body); border: 0; background: transparent; cursor: pointer; width: 100%; }
.nav__item:hover { background: var(--surface-sunken); color: var(--ink); }
.nav__item.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--text-micro); font-weight: 700; display: inline-grid; place-items: center; }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.seg--side { align-self: flex-start; margin-left: var(--space-2); }
.nav__collapse { color: var(--ink-3); }

.mtop, .bnav { display: none; }

/* ---------- page head ---------- */
.page-head { margin-bottom: var(--space-5); }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.pubbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.pubbar__state { font-size: var(--text-small); color: var(--ink-2); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-5); min-width: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__title { font-size: var(--text-h2); font-weight: 600; line-height: 1.3; }
.card__meta { font-size: var(--text-small); color: var(--ink-3); margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.note { font-size: var(--text-small); color: var(--ink-2); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-m); background: var(--surface-sunken); color: var(--ink-2); font-size: var(--text-small); margin-top: var(--space-3); }
.tip .ico { margin-top: 2px; }
.tip--accent { background: var(--accent-soft); color: var(--accent-ink); margin: 0 0 var(--space-4); }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.hero { grid-column: span 8; padding: var(--space-5) var(--space-5) var(--space-4); display: flex; flex-direction: column; }
.hero .chart { flex: 1; min-height: 150px; }
.actions { grid-column: span 4; display: flex; flex-direction: column; }
.kpis, .mh { grid-column: span 12; }
.hero__figure { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.hero__num { font-size: var(--text-hero); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.hero__sub { color: var(--ink-2); margin-top: var(--space-2); font-size: var(--text-body); }
.hero__foot { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: var(--text-small); color: var(--ink-2); }
.hero__foot .ico { margin-top: 2px; color: var(--accent); }

.chart { position: relative; height: 150px; margin-top: var(--space-4); }
.chart__svg { width: 100%; height: 100%; overflow: visible; }
.chart__base { stroke: var(--border); stroke-width: 1; }
.chart__prev { fill: none; stroke: var(--chart-prev); stroke-width: 2; stroke-dasharray: 4 4; }
.chart__now { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; }
.chart__area { fill: var(--accent); opacity: .07; }
.chart__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none; }
.chart__tick { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.chart__tick--first { transform: none; }
.chart__cross { stroke: var(--ink-3); stroke-width: 1; opacity: 0; }
.chart__dot, .chart__hdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.chart__hdot { opacity: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.chart__hdot--b { background: var(--chart-prev); }
.chart__hit { position: absolute; inset: 0; cursor: crosshair; touch-action: pan-y; }
.chart__tip { position: absolute; top: -8px; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); box-shadow: var(--shadow-pop); padding: 8px 10px; font-size: var(--text-micro); display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .12s; font-variant-numeric: tabular-nums; }
.chart__tip b { font-size: var(--text-small); }
.chart__tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend { display: flex; gap: var(--space-4); font-size: var(--text-micro); color: var(--ink-2); margin-top: var(--space-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 0; border-top: 2.25px solid var(--accent); }
.sw--b { border-top: 2px dashed var(--chart-prev); }

.alist { display: flex; flex-direction: column; }
.aitem { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "body body" "time btn"; column-gap: var(--space-3); row-gap: 10px; padding: var(--space-4) 0; border-top: 1px solid var(--border); align-items: center; }
.aitem:first-child { border-top: 0; padding-top: 0; }
.aitem__body { grid-area: body; min-width: 0; }
.aitem .btn { grid-area: btn; }
.aitem__title { font-weight: 600; font-size: var(--text-body); line-height: 1.35; }
.aitem__sub { font-size: var(--text-small); color: var(--ink-2); margin-top: 2px; }
.aitem__time { grid-area: time; display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-micro); color: var(--ink-3); }

.kpis__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 0 var(--space-5); border-left: 1px solid var(--border); }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi__label { font-size: var(--text-small); font-weight: 600; color: var(--ink); display: flex; flex-direction: column; min-height: 2.6em; }
.kpi__sub { font-weight: 400; color: var(--ink-3); font-size: var(--text-micro); }
.kpi__value { font-size: var(--text-big); font-weight: 600; letter-spacing: -.015em; margin: var(--space-2) 0 var(--space-2); line-height: 1.1; }
.kpi__delta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi__was { font-size: var(--text-micro); color: var(--ink-3); }

.mh__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh__cell { padding: 0 var(--space-5); border-left: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.mh__cell:first-child { padding-left: 0; border-left: 0; }
.mh__label { font-size: var(--text-small); font-weight: 600; }
.mh__value { font-size: var(--text-big); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.mh__value--muted { font-size: 1.125rem; color: var(--ink-2); font-weight: 500; }
.mh__note { font-size: var(--text-small); color: var(--ink-2); max-width: 34ch; }
.mh__cell .btn { margin-left: -12px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--space-5) var(--space-3); color: var(--ink-2); }
.empty > .ico { color: var(--accent); margin-bottom: 4px; }
.empty__title { font-weight: 600; color: var(--ink); }
.empty__sub { font-size: var(--text-small); max-width: 40ch; }
.empty--inline { flex: 1; justify-content: center; }
.empty--left { flex-direction: row; text-align: left; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 0; }
.empty--left .empty__sub { max-width: 60ch; margin-top: 4px; }
.empty--page { padding: var(--space-7) 0; gap: var(--space-3); }

/* ---------- sheets + toasts ---------- */
#overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--space-4); }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet { position: relative; background: var(--surface); border-radius: var(--radius-l); width: min(560px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: rise .18s ease-out; }
.sheet--wide { width: min(780px, 100%); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.sheet__head { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sheet__title { font-size: 1.125rem; font-weight: 600; }
.sheet__sub { color: var(--ink-2); font-size: var(--text-small); margin-top: 4px; }
.sheet__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.sheet__foot { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.sheet__foot .muted { margin-right: auto; font-size: var(--text-small); }
.sheet__foot--in { padding: var(--space-4) 0 0; margin: 0; position: static; }
#toasts { position: fixed; left: 50%; bottom: var(--space-5); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--toast-bg); color: var(--toast-ink); padding: 12px 16px; border-radius: var(--radius-m); font-size: var(--text-small); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-in { opacity: 1; transform: none; }
.toast .ico { margin-top: 1px; }

.posts { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.post { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: 0; padding-bottom: 0; }
.post.is-done { opacity: .7; }
.post__img { aspect-ratio: 1; border-radius: var(--radius-m); }
.post__day { display: flex; align-items: center; gap: 6px; font-size: var(--text-micro); color: var(--ink-3); }
.post__text { margin: 6px 0 var(--space-3); }
.post__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.post__state { display: flex; gap: 6px; align-items: center; font-size: var(--text-small); color: var(--ink-2); font-weight: 600; }
.post__change { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.post__change .field { width: 100%; }
.reels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding: var(--space-5); }
.reel__img { aspect-ratio: 9 / 14; border-radius: var(--radius-m); }
.reel figcaption { font-size: var(--text-small); color: var(--ink-2); margin-top: 8px; }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field__label { font-size: var(--text-small); font-weight: 600; color: var(--ink); }
.field input, .field textarea, .selectwrap select {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-s); background: var(--surface);
  padding: 9px 12px; font-size: var(--text-body); line-height: 1.4; resize: vertical;
}
.field input[readonly] { background: var(--surface-sunken); color: var(--ink-2); }
.field input:focus, .field textarea:focus, .selectwrap select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field__hint { font-size: var(--text-micro); color: var(--ink-3); align-self: flex-end; }
.field--short { max-width: 220px; }
.selectwrap { position: relative; display: inline-flex; align-items: center; }
.selectwrap select { appearance: none; padding-right: 34px; height: 38px; padding-top: 0; padding-bottom: 0; font-size: var(--text-small); font-weight: 600; cursor: pointer; }
.selectwrap .ico { position: absolute; right: 10px; pointer-events: none; color: var(--ink-2); }
.selectwrap--full { display: flex; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch__ui { width: 40px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { box-shadow: var(--focus); }
.check, .radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); cursor: pointer; font-size: var(--text-small); }
.check input, .radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks legend { margin-bottom: 8px; }

/* ---------- sample images ---------- */
.simg { position: relative; display: block; overflow: hidden; background: var(--img-sky); }
.simg svg { width: 100%; height: 100%; }
.simg__tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink-2); }
.i-sky { fill: var(--img-sky); } .i-sea { fill: var(--img-sea); } .i-sea-deep { fill: var(--img-sea-deep); }
.i-wall { fill: var(--img-wall); } .i-shadow { fill: var(--img-shadow); } .i-wood { fill: var(--img-wood); }
.i-linen { fill: var(--img-linen); } .i-plant { fill: var(--img-plant); } .i-sun { fill: var(--img-sun); }

/* ---------- website ---------- */
.site { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4); align-items: start; }
.site__edit { padding: 0; overflow: hidden; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 var(--space-3); overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 14px 10px 12px; text-decoration: none; font-weight: 500; font-size: var(--text-small); color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabpane { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.tabpane__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.tabpane__head .muted { font-size: var(--text-small); max-width: 46ch; }
.rlist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.rrow + .rrow { border-top: 1px solid var(--border); }
.rrow__main { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.rrow__main:hover { background: var(--surface-sunken); }
.rrow__main > .ico { color: var(--ink-3); transition: transform .15s; }
.rrow.is-open .rrow__main > .ico { transform: rotate(180deg); }
.rrow__img { width: 56px; height: 42px; border-radius: 6px; flex: none; }
.rrow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rrow__txt b { font-size: var(--text-small); }
.rrow__txt > span:not(.tag) { font-size: var(--text-micro); color: var(--ink-3); }
.rrow__txt .tag { align-self: flex-start; margin-top: 6px; }
.rrow__edit { padding: var(--space-4); background: var(--surface-sunken); display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--border); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-3); }
.ph { position: relative; border-radius: var(--radius-m); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.ph .simg { aspect-ratio: 4 / 3; }
.ph figcaption { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 8px; font-size: var(--text-micro); min-height: 36px; }
.ph__cover { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 2px 6px; border-radius: 4px; }
.ph--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--border-strong); background: transparent; cursor: pointer; min-height: 136px; color: var(--accent-ink); font-weight: 600; font-size: var(--text-small); padding: var(--space-3); text-align: center; }
.ph--add small { font-weight: 400; color: var(--ink-3); font-size: var(--text-micro); }
.ph--add:hover { background: var(--accent-soft); }
.llist { border: 1px solid var(--border); border-radius: var(--radius-m); }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 12px 14px; }
.lrow + .lrow { border-top: 1px solid var(--border); }
.lrow__name { display: flex; flex-direction: column; }
.lrow__name b { font-size: var(--text-small); }
.lrow__name .muted, .lrow > .muted { font-size: var(--text-micro); }

.site__preview { position: sticky; top: var(--space-5); }
.site__ptools { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); font-size: var(--text-small); }
.pv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; margin: 0 auto; transition: width .2s; }
.pv--mobile { width: 320px; border-radius: 26px; border-width: 6px; border-color: var(--ink); }
.pv__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-sunken); }
.pv__chrome > span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pv__chrome p { flex: 1; margin-left: 8px; font-size: 11px; color: var(--ink-3); background: var(--surface); border-radius: 999px; padding: 3px 10px; }
.pv--mobile .pv__chrome > span { display: none; }
.pv__page { max-height: 640px; overflow: auto; }
.pv__nav { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 12px; }
.pv__nav b { font-family: var(--font-display); font-weight: 500; font-size: 15px; margin-right: auto; }
.pv__nav span { display: flex; gap: 6px; color: var(--ink-3); font-size: 11px; }
.pv__nav i { font-style: normal; }
.pv__nav i.is-on { color: var(--ink); font-weight: 700; }
.pv em, .pv__intro em { font-style: normal; display: inline-block; background: var(--ink); color: var(--surface); padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.pv__hero { aspect-ratio: 16 / 7; }
.pv--mobile .pv__hero { aspect-ratio: 4 / 3; }
.pv__intro { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pv__intro h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 24px; line-height: 1.2; max-width: 22ch; }
.pv--mobile .pv__intro h3 { font-size: 20px; }
.pv__intro p { font-size: 13px; color: var(--ink-2); max-width: 48ch; }
.pv__rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 20px 24px; }
.pv--mobile .pv__rooms { grid-template-columns: 1fr; }
.pv__room { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.pv__room .simg { aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 4px; }
.pv__room b { font-size: 13px; }
.pv__room p { color: var(--ink-2); font-size: 11.5px; }
.pv__room span { color: var(--ink-3); font-size: 11.5px; }
.pv__missing { font-style: italic; color: var(--ink-3) !important; }

/* ---------- services ---------- */
.svc-summary { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-4); font-size: var(--text-small); color: var(--ink-2); }
.svc-summary > span { display: inline-flex; align-items: center; gap: 6px; }
.svc-summary .badge { padding: 0 6px; }
.svc-summary .badge::before { margin-right: -1px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-4); }
.svc { display: flex; flex-direction: column; gap: var(--space-2); }
.svc__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.svc__ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-m); background: var(--accent-soft); color: var(--accent-ink); }
.svc--off .svc__ic { background: var(--surface-sunken); color: var(--ink-2); }
.svc__name { font-size: 1.125rem; font-weight: 600; }
.svc__benefit { color: var(--ink-2); }
.svc__gets { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-2); font-size: var(--text-small); color: var(--ink-2); }
.svc__gets li { display: flex; gap: 6px; align-items: flex-start; }
.svc__gets .ico { margin-top: 3px; color: var(--accent); }
.svc__note { font-size: var(--text-micro); color: var(--ink-3); }
.svc__foot { margin-top: auto; padding-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); border-top: 1px solid var(--border); flex-wrap: wrap; }
.svc__foot { margin-top: var(--space-3); }
.svc__price { font-size: var(--text-small); color: var(--ink-2); }
.svc__price b { font-size: 1.0625rem; color: var(--ink); font-weight: 600; }
.mini-title + .steps-plain { margin-top: -4px; }
.steps-plain { list-style: decimal; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.steps-plain li::marker { color: var(--accent); font-weight: 700; }
.pricebox { padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-sunken); font-size: var(--text-small); font-weight: 500; }

/* ---------- wizard ---------- */
.wz { max-width: 1040px; }
.wz__head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: var(--space-5); }
.progress { margin-bottom: var(--space-4); }
.progress__bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.progress__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.progress__steps li { display: flex; align-items: center; gap: 8px; font-size: var(--text-small); color: var(--ink-3); }
.progress__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: var(--text-micro); font-weight: 700; flex: none; }
.progress__steps .is-on { color: var(--ink); font-weight: 600; }
.progress__steps .is-on .progress__n { border-color: var(--accent); color: var(--accent-ink); }
.progress__steps .is-done .progress__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wz__card { padding: 0; }
.wz__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); }
.wz__title { font-size: 1.375rem; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.wz__intro { color: var(--ink-2); margin-top: var(--space-2); }
.wz__list { list-style: decimal; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-4); }
.wz__list li::marker { color: var(--accent); font-weight: 700; }
.wz__extra { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.wz__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); flex-wrap: wrap; }
.wz__footr { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.copyfield { display: flex; flex-direction: column; gap: 6px; }
.copyfield > div { display: flex; align-items: center; gap: 8px; }
.copyfield code { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-size: 1.125rem; font-weight: 600; letter-spacing: .06em; padding: 6px 12px; background: var(--surface-sunken); border-radius: var(--radius-s); border: 1px solid var(--border); }
.wz__done { padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 640px; }
.wz__doneic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.wz__done .steps-plain { margin-top: var(--space-2); }
.wz__doneacts { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

.mock { position: relative; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface-sunken); overflow: hidden; }
.mock__tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px dashed var(--border-strong); z-index: 1; }
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.mock__bar span { margin-left: 8px; font-size: 10.5px; color: var(--ink-3); }
.mock__body { padding: var(--space-4); min-height: 220px; display: grid; place-items: center; }
.mock__body--split { display: grid; grid-template-columns: 42% 1fr; gap: var(--space-3); place-items: stretch; }
.mock__side { display: flex; flex-direction: column; gap: 4px; font-size: 12px; background: var(--surface); border-radius: var(--radius-s); padding: 10px; }
.mock__side b { font-size: 12px; margin-bottom: 4px; }
.mock__side span { padding: 5px 8px; border-radius: 4px; color: var(--ink-2); }
.mock__main { background: var(--surface); border-radius: var(--radius-s); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock__line { height: 8px; border-radius: 4px; background: var(--border); }
.w60 { width: 60%; } .w40 { width: 40%; }
.mock__box { flex: 1; border-radius: 6px; background: var(--surface-sunken); min-height: 80px; }
.mock__dialog { background: var(--surface); border-radius: var(--radius-m); padding: 16px; width: min(320px, 100%); display: flex; flex-direction: column; gap: 8px; font-size: 12px; box-shadow: var(--shadow-pop); }
.mock__dialog b { font-size: 13px; margin-bottom: 4px; }
.mock__label { color: var(--ink-3); font-size: 11px; }
.mock__input { border: 1px solid var(--border-strong); border-radius: 4px; padding: 7px 10px; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.mock__btn { align-self: flex-end; background: var(--ink-2); color: var(--surface); border-radius: 4px; padding: 5px 12px; font-weight: 600; margin-top: 4px; }
.mock__row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 4px; border: 1px solid var(--border); }
.mock__row em { font-style: normal; margin-left: auto; color: var(--ink-3); font-size: 10.5px; }
.mock__cb { width: 13px; height: 13px; border-radius: 3px; background: var(--ink-2); flex: none; }
.mock__cb--off { background: transparent; border: 1.5px solid var(--border-strong); }
.mock .is-hl { box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mock__cap { font-size: var(--text-small); color: var(--ink-2); padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border); }

/* ---------- results ---------- */
.res__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-6); }
.did { display: flex; flex-direction: column; gap: 10px; }
.did li { display: flex; gap: 8px; align-items: flex-start; }
.did .ico { color: var(--accent); margin-top: 3px; }
.rmetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.rm { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rm__label { font-size: var(--text-small); color: var(--ink-2); }
.rm__value { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.rm__extra { font-size: var(--text-micro); color: var(--ink-3); }
.res--empty { border-style: dashed; background: transparent; }

/* ---------- reports ---------- */
.rp-wrap { display: flex; justify-content: center; padding: var(--space-2) 0 var(--space-6); }
.rp { width: min(794px, 100%); aspect-ratio: 210 / 297; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-pop); padding: 56px 60px; display: flex; flex-direction: column; gap: 22px; }
.rp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--accent); }
.rp__brand { font-family: var(--font-display); font-size: 1.125rem; color: var(--accent-ink); }
.rp__title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 1.75rem; line-height: 1.2; margin-top: 6px; }
.rp__prop { color: var(--ink-2); margin-top: 4px; }
.rp__demo { font-size: 11px; font-weight: 600; color: var(--ink-2); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rp__summary { font-size: 1.125rem; line-height: 1.5; }
.rp__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 8px; }
.rp__k { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.rp__k:nth-child(3n + 1) { border-left: 0; }
.rp__k:nth-child(-n + 3) { border-top: 0; }
.rp__k span { font-size: 12px; color: var(--ink-2); }
.rp__k b { font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
.rp__line { font-size: var(--text-small); color: var(--ink-2); }
.rp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rp__cols h3 { font-size: var(--text-small); font-weight: 700; margin-bottom: 10px; color: var(--accent-ink); }
.rp__cols ul { display: flex; flex-direction: column; gap: 8px; list-style: disc; padding-left: 1.1rem; font-size: var(--text-small); }
.rp__cols li::marker { color: var(--accent); }
.rp__foot { margin-top: auto; font-size: 12px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--border); }
body.is-print { background: var(--surface); }
.print-page { display: flex; justify-content: center; }
.print-page .rp { width: 210mm; height: 297mm; aspect-ratio: auto; border: 0; box-shadow: none; border-radius: 0; padding: 20mm 20mm 16mm; }
@page { size: A4; margin: 0; }

/* ---------- billing ---------- */
.bill { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4); align-items: start; }
.bill__inv { grid-column: 1 / -1; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.plan { border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.plan.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan__top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.plan__name { font-size: 1.0625rem; }
.plan__price { color: var(--ink-2); font-size: var(--text-small); }
.plan__price b { font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.plan ul { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-small); color: var(--ink-2); margin: 4px 0 8px; }
.plan li { display: flex; gap: 6px; align-items: flex-start; }
.plan li .ico { margin-top: 3px; color: var(--accent); }
.lines { display: flex; flex-direction: column; margin-bottom: var(--space-4); }
.lines > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 0; font-size: var(--text-small); border-top: 1px solid var(--border); }
.lines > div:first-child { border-top: 0; }
.lines dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.lines .is-muted { color: var(--ink-3); }
.lines .is-sub { border-top-color: var(--border-strong); }
.lines .is-total { font-weight: 700; font-size: var(--text-body); }
.bill__sum .muted { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-3); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: var(--text-micro); padding: 0 12px 8px 0; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.paid { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }

/* ---------- settings ---------- */
.team li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.team li:first-child { border-top: 0; padding-top: 0; }
.team__who { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--text-small); }
.team__who .muted { font-size: var(--text-micro); overflow: hidden; text-overflow: ellipsis; }
.team__role { font-size: var(--text-small); color: var(--ink-2); text-align: right; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 12px 0; border-top: 1px solid var(--border); }
.card__head + .set-row { border-top: 0; padding-top: 0; }
.set-row b { font-size: var(--text-small); }
.engine { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-m); }
.engine__logo { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--surface-sunken); font-weight: 700; color: var(--ink-2); }
.engine__txt { display: flex; flex-direction: column; flex: 1; font-size: var(--text-small); }
.engine__txt .muted { display: flex; align-items: center; gap: 4px; font-size: var(--text-micro); }
.disclose { margin-top: var(--space-3); }
.disclose summary { cursor: pointer; font-size: var(--text-small); font-weight: 600; color: var(--accent-ink); padding: 6px 0; }
.engines { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: var(--space-2) 0; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login__panel { display: flex; flex-direction: column; padding: var(--space-6) var(--space-7); }
.login__top { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-display); font-size: 1.375rem; color: var(--accent-ink); }
.login__form { margin: auto 0; max-width: 400px; display: flex; flex-direction: column; gap: var(--space-4); align-items: stretch; padding: var(--space-6) 0; }
.login__form .demo-chip { align-self: flex-start; }
.login__form .display { font-size: 2.25rem; }
.login__foot { margin-top: auto; }
.login__art { position: relative; background: var(--accent-soft); display: grid; place-items: center; padding: var(--space-6); }
.login__card { width: min(400px, 100%); background: var(--surface); border-radius: var(--radius-l); padding: var(--space-6); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: var(--space-3); }
.login__cardk { font-size: var(--text-small); font-weight: 600; }
.login__cardrow { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.login__cardv { font-size: 2.75rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.login__acts { border-top: 1px solid var(--border); margin-top: var(--space-2); }
.login__acts li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--text-small); font-weight: 600; }
.login__acts i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.login__cardn { font-size: var(--text-small); color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-column: span 12; }
  .actions { grid-column: span 12; }
  .alist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .aitem { border-top: 0; padding: 0 0 0 var(--space-4); border-left: 1px solid var(--border); grid-template-columns: 1fr; grid-template-areas: "body" "time" "btn"; align-content: start; row-gap: 8px; }
  .aitem:first-child { padding-left: 0; border-left: 0; }
  .aitem .btn { justify-self: start; }
  .site { grid-template-columns: 1fr; }
  .site__preview { position: static; }
  .bill { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .main { padding: var(--space-5) var(--space-5) var(--space-6); }
  .kpis__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-5); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .wz__grid { grid-template-columns: 1fr; padding: var(--space-5); }
  .res__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media screen and (max-width: 860px) {
  :root { --text-hero: 2.75rem; --text-title: 1.625rem; --text-big: 1.5rem; }
  .sidebar { display: none; }
  .main, .is-collapsed .main { margin-left: 0; padding: var(--space-4) var(--space-4) calc(88px + env(safe-area-inset-bottom)); }
  .mtop { display: flex; align-items: center; gap: var(--space-2); position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 10px var(--space-4); border-bottom: 1px solid var(--border); }
  .mtop .pswitch { flex: 1; min-width: 0; }
  .pswitch--compact .pswitch__btn { border: 0; padding: 4px; background: transparent; }
  .pswitch--compact .pswitch__mark { width: 30px; height: 30px; }
  .pswitch--compact .pswitch__txt { flex: 0 1 auto; }
  .hero .chart { flex: none; height: 120px; min-height: 0; }
  .mtop__acct { position: relative; }
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: var(--radius-s); }
  .bnav__item.is-on { color: var(--accent-ink); }
  .bnav__ic { position: relative; display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; }
  .bnav__item.is-on .bnav__ic { background: var(--accent-soft); }
  .nav__count--dot { position: absolute; top: -3px; right: 6px; margin: 0; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .page-head { margin-bottom: var(--space-4); }
  .home { gap: var(--space-3); }
  .card { padding: var(--space-4); border-radius: var(--radius-m); }
  .hero { padding: var(--space-4); }
  .chart { height: 120px; }
  .alist { display: flex; }
  .aitem { padding: var(--space-3) 0; border-left: 0; border-top: 1px solid var(--border); grid-template-columns: 1fr auto; grid-template-areas: "body body" "time btn"; }
  .aitem:first-child { border-top: 0; padding-top: 0; }
  .aitem .btn { justify-self: end; }
  .kpi { padding: 0 var(--space-3); }
  .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .kpi__label { min-height: 0; }
  .kpi__sub { display: none; }
  .mh__row { grid-template-columns: 1fr; }
  .mh__cell { padding: var(--space-3) 0; border-left: 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-3); row-gap: 4px; align-items: center; }
  .mh__cell:first-child { padding-top: 0; border-top: 0; }
  .mh__label { grid-column: 1 / -1; }
  .mh__note { grid-column: 1 / -1; }
  .mh__cell .btn { grid-column: 1 / -1; justify-self: start; }
  .card__head { flex-wrap: wrap; }
  .page-head--row { align-items: flex-start; }
  .tabpane { padding: var(--space-4); }
  .tabpane__head { flex-direction: column; }
  .pv--mobile { width: min(320px, 100%); }
  .pv__rooms { grid-template-columns: 1fr 1fr; }
  .wz__grid { padding: var(--space-4); gap: var(--space-5); }
  .wz__foot { padding: var(--space-4); flex-direction: column-reverse; align-items: stretch; }
  .wz__footr { flex-direction: column-reverse; }
  .wz__footr .btn, .wz__foot > .btn { width: 100%; }
  .progress__l { display: none; }
  .progress__steps .is-on .progress__l { display: inline; }
  .progress__steps { grid-template-columns: auto auto auto auto; justify-content: start; gap: var(--space-3); }
  .rmetrics { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .empty--left { flex-direction: column; align-items: flex-start; }
  .rp { aspect-ratio: auto; padding: 24px 20px; gap: 18px; }
  .rp__grid { grid-template-columns: 1fr 1fr; }
  .rp__k:nth-child(3n + 1) { border-left: 1px solid var(--border); }
  .rp__k:nth-child(odd) { border-left: 0; }
  .rp__k:nth-child(3) { border-top: 1px solid var(--border); }
  .rp__cols { grid-template-columns: 1fr; }
  .rp__head { flex-direction: column-reverse; }
  .plans { grid-template-columns: 1fr; }
  #overlay { place-items: end center; padding: 0; }
  .sheet, .sheet--wide { width: 100%; max-height: 92vh; border-radius: var(--radius-l) var(--radius-l) 0 0; }
  .sheet__head, .sheet__body, .sheet__foot, .posts { padding-left: var(--space-4); padding-right: var(--space-4); }
  .post { grid-template-columns: 96px 1fr; gap: var(--space-3); }
  .reels { padding: var(--space-4); }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__panel { padding: var(--space-5) var(--space-4); min-height: 100vh; }
  .login__form .display { font-size: 1.875rem; }
  .set-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .team__role { font-size: var(--text-micro); max-width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
