@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F1EA; --card: #FFFDFA; --ink: #221A14; --mute: #6E6157; --line: #E7DDD1; --line2: #D8CBBC;
  --accent: #A4552B; --accent-2: #8E4722; --accent-soft: #F5E7DC; --warn-soft: #FBEFD9; --warn: #8A5A12;
  --ok: #3B4A5C; --err: #A23A2A; --err-soft: #FBE9E5;
  --r: 14px; --pad: 20px;
  --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-top: 1.4em; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { margin-bottom: 1.4em; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font: 650 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--block { width: 100%; }
.btn--add { width: 100%; border-style: dashed; color: var(--accent); margin-top: 6px; }
.btn:disabled { opacity: .6; cursor: default; }
.linkbtn { background: none; border: 0; padding: 10px 4px; font: 600 15px var(--font); color: var(--accent); cursor: pointer; min-height: 44px; }
.linkbtn:disabled { color: var(--line2); cursor: default; }
.linkbtn.danger { color: var(--err); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 12px; color: var(--mute); }
.brand--big b { font-size: 20px; }

/* cards, pills */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); margin-bottom: 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill--soft { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.pill--sample { background: var(--accent-soft); color: var(--accent-2); }
.error { color: var(--err); background: var(--err-soft); padding: 10px 12px; border-radius: 10px; font-size: 15px; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span, .field > label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.field small { display: block; margin-top: 4px; font-size: 13px; }
input, textarea, select { width: 100%; font: 400 17px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line2); border-radius: 10px; padding: 11px 12px; min-height: 48px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* login */
.login__wrap { max-width: 420px; margin: 0 auto; padding: 40px 18px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.login__card { padding: 26px 22px; margin: 0; }
.login__card .btn { margin: 6px 0 16px; }

/* top bar + tabs */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.top .brand { flex: 1; }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; color: var(--mute); text-decoration: none; font-weight: 650; font-size: 15px; }
.tabs a[aria-current="page"] { color: var(--accent-2); background: var(--accent-soft); }
.tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tabs .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* pages */
.page { max-width: 680px; margin: 0 auto; padding: 24px 16px 120px; }
.page--wide { max-width: 1080px; }
.hello { margin-bottom: 18px; }
.grid { display: grid; gap: 0 16px; }
@media (min-width: 880px) { .grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.status { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.status h2 { margin-bottom: .2em; }
.status p { margin: 0; }
.status--draft { background: var(--warn-soft); border-color: #EBD3A6; }

.quick { list-style: none; margin: 0; padding: 0; }
.quick li + li { border-top: 1px solid var(--line); }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); text-decoration: none; min-height: 56px; }
.quick a > span:first-child { flex: 1; display: flex; flex-direction: column; }
.quick small { color: var(--mute); font-size: 14px; }
.chev { font-size: 26px; color: var(--mute); line-height: 1; }

.hist { list-style: none; margin: 0; padding: 0; }
.hist li { padding: 10px 0; display: flex; flex-direction: column; }
.hist li + li { border-top: 1px solid var(--line); }
.hist b { font-weight: 600; font-size: 15px; }
.hist small { color: var(--mute); font-size: 13px; }

/* stats */
.stats__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stats__head h2 { margin: 0; }
.note { font-size: 14px; color: var(--accent-2); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 12px 0 16px; }
.stats__big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.delta { font-size: 14px; font-weight: 650; color: var(--ok); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin: 12px 0 4px; }
.spark i { flex: 1; background: color-mix(in srgb, var(--accent) 55%, #fff); border-radius: 3px 3px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.tile .big { font-size: 26px; }
.tile span:last-child { color: var(--mute); font-size: 14px; font-weight: 600; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.bars__track { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bars__track i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bars__n { text-align: right; color: var(--mute); font-variant-numeric: tabular-nums; }

/* edit */
.edit__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list { margin-bottom: 16px; }
.item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; min-height: 52px; cursor: pointer; font-weight: 600; }
.item summary::-webkit-details-marker { display: none; }
.item summary::after { content: '›'; margin-left: auto; font-size: 22px; color: var(--mute); transition: transform .15s; }
.item[open] summary::after { transform: rotate(90deg); }
.item[open] summary { border-bottom: 1px solid var(--line); }
.item__sum { min-width: 0; overflow-wrap: anywhere; }
.item > .field { margin: 14px 14px 0; }
.item__tools { display: flex; gap: 6px; padding: 4px 10px 6px; flex-wrap: wrap; }
.item__tools .danger { margin-left: auto; }

.savebar { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 6; max-width: 656px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 10px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 10px 30px rgba(34, 26, 20, .25); }
.savebar span { font-weight: 600; }

/* preview */
.preview { display: grid; gap: 16px; }
@media (min-width: 960px) { .preview { grid-template-columns: 320px 1fr; align-items: start; } .preview__side { position: sticky; top: 84px; } }
.changes { list-style: none; margin: 0 0 16px; padding: 0; }
.changes li { padding: 10px 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.changes li + li { border-top: 1px solid var(--line); }
.changes small { font-size: 13px; }
.changes s { color: var(--mute); }
.stack { display: grid; gap: 10px; }
.preview__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: 600 14px var(--font); color: var(--mute); padding: 8px 14px; border-radius: 8px; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.preview__device { margin: 0 auto; border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; background: #fff; transition: max-width .2s; }
.preview__device.is-phone { max-width: 400px; }
.preview__device.is-desktop { max-width: 100%; }
.preview__frame { display: block; width: 100%; height: 72vh; min-height: 520px; border: 0; }

.done { text-align: center; padding: 32px 22px; }
.done__mark { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; line-height: 56px; }

/* toast + dialog */
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: 78px; z-index: 20; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast--error { background: var(--err); }
.dialog { border: 0; border-radius: 18px; padding: 24px; max-width: 420px; width: calc(100% - 32px); color: var(--ink); background: var(--card); }
.dialog::backdrop { background: rgba(34, 26, 20, .45); }
.row-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.row-btns .btn { flex: 1; }

/* phone: tabs become a bottom bar */
@media (max-width: 719px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabs a { flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 10px; min-width: 80px; }
  .tabs .dot { right: 22px; top: 4px; }
  h1 { font-size: 26px; }
  .card { padding: 18px 16px; }
  .bars li { grid-template-columns: 84px 1fr 44px; }
}
@media (min-width: 720px) {
  .savebar { bottom: 20px; }
}
@media (max-width: 719px) { .seg { display: none; } }

/* account pages */
.check { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--accent); }
.login__card .done__mark { margin-top: 4px; }
.login__card > .center { margin: 0; }
.login__card > .btn + .small { margin-top: 14px; }

/* how Google reads the hours (preview) */
.google { font-size: 15px; }
.google ul { list-style: none; margin: 0 0 6px; padding: 0; }
.google li { padding: 3px 0; font-variant-numeric: tabular-nums; }
