:root {
  --bg: #f7f4ec; --card: #fffdf9; --ink: #22252a; --muted: #5a6068; --line: #e6dfd0;
  --green: #2e5a4c; --green-dark: #234639; --green-soft: #e1eee8; --clay: #b4532a; --clay-soft: #fbeadf;
  --sun: #8a5a00; --sun-soft: #fdf1cf; --bad: #a92323; --bad-soft: #fbe9e7; --good: #1f6b45; --good-soft: #e3f2e8;
  --shadow: 0 1px 2px rgba(34,37,42,.06), 0 4px 14px rgba(34,37,42,.05); --tap: 44px;
}
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--green); } a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8a5a12; outline-offset: 2px; }
header.top a:focus-visible { outline-color: #c98a2e; }
h1, header.top .brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; } h1 { font-size: 25px; line-height: 1.2; margin: 4px 0 16px; letter-spacing: -.01em; } h2 { font-size: 18px; margin: 0 0 12px; } h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 10px; } p:last-child { margin-bottom: 0; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* frame */
header.top { background: var(--green-dark); color: #fff; position: sticky; top: 0; z-index: 5; }
header.top .bar { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; gap: 20px; align-items: center; }
header.top .brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top nav { display: none; }
.tabs { position: fixed; inset: auto 0 0 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: 12px; }
.tabs a.on { color: var(--green); font-weight: 650; }
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 32px; }
.demo { margin: 0; padding: 7px 16px; text-align: center; font-size: 13px; background: var(--sun-soft); color: var(--sun); }
@media (min-width: 860px) {
  body { padding-bottom: 0; } .tabs { display: none; } main { padding: 28px 16px 56px; } h1 { font-size: 29px; }
  header.top nav { display: flex; gap: 2px; flex: 1; justify-content: flex-end; }
  header.top nav a { color: #e1eee8; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
  header.top nav a.on, header.top nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
}

/* blocks */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); align-items: start; }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.cols > *, .grid > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.grid > .card { margin-bottom: 0; } .grid { margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .bad { color: var(--bad); } .good { color: var(--good); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .between { justify-content: space-between; } .top-row { align-items: flex-start; }
.gap { margin-top: 12px; } .gap-b { margin-bottom: 12px; } .grow { flex: 1; min-width: 0; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.kpis { display: flex; gap: 12px 26px; flex-wrap: wrap; margin: 4px 0 12px; }
.kpi b { display: block; font-size: 24px; line-height: 1.2; } .kpi span { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.badge.warn { background: var(--sun-soft); color: var(--sun); } .badge.grey { background: #ece7dc; color: #4c525b; } .badge.good { background: var(--good-soft); color: var(--good); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--sun-soft); border: 1px solid #f0dca0; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.notice.bad { background: var(--bad-soft); border-color: #f0c5c0; color: var(--ink); } .notice.info { background: var(--green-soft); border-color: #c3dbd0; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; background: var(--good-soft); border: 1px solid #bfdfca; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.flash.error { background: var(--bad-soft); border-color: #f0c5c0; color: var(--bad); }
.empty { text-align: center; padding: 32px 18px; } .empty svg.i { width: 40px; height: 40px; color: var(--green); margin-bottom: 8px; }
.line { border-top: 1px solid var(--line); padding: 12px 0; } .line:first-of-type { border-top: 0; } .line:last-child { padding-bottom: 0; }
table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* controls */
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: var(--tap); background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 12px; padding: 8px 18px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--green-dark); } .btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--green); border-color: #b3cdc1; } .btn.secondary:hover { background: var(--green-soft); }
.btn.quiet { background: transparent; color: var(--muted); border-color: transparent; font-weight: 500; padding: 8px 12px; } .btn.quiet:hover { background: #efe9db; color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: #e5bdb8; } .btn.danger:hover { background: var(--bad-soft); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 15px; } .btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 8px 4px; min-height: 40px; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }
.link.small { font-size: 14px; }
a.tap { display: inline-flex; align-items: center; min-height: 40px; }
.stack { display: grid; gap: 14px; } form.stack.two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { form.stack.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } } form.stack .full { grid-column: 1 / -1; }
label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); align-content: start; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 9px 12px; min-height: var(--tap); border: 1px solid #cfc7b6; border-radius: 10px; background: #fff; width: 100%; min-width: 0; }
textarea { min-height: 96px; resize: vertical; } input[type=file] { padding: 9px; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; accent-color: var(--green); margin: 0; flex: none; }
input.auto, select.auto { width: auto; max-width: 100%; } input.short { width: 110px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
details summary { cursor: pointer; color: var(--green); padding: 9px 0; min-height: 40px; } details[open] > summary { margin-bottom: 6px; }
code { background: #efe9db; padding: 1px 5px; border-radius: 4px; font-size: 14px; } pre { background: #efe9db; padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.menu { display: grid; gap: 0; padding: 4px 18px; } .menu a { display: flex; gap: 14px; align-items: center; min-height: 60px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); } .menu a:first-child { border-top: 0; }
.menu a svg { color: var(--green); } .menu a > span:nth-child(2) { flex: 1; }
.menu small { display: block; color: var(--muted); font-size: 14px; }

/* today */
.action { border-left: 5px solid var(--green); padding: 16px 18px; }
.action.double { border-left-color: var(--bad); } .action.review { border-left-color: var(--clay); } .action.arrival { border-left-color: var(--good); }
.action h2 { margin: 2px 0 6px; font-size: 19px; line-height: 1.3; } .action .where { font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; } .facts li { background: #f2ecde; border-radius: 8px; padding: 3px 10px; font-size: 14px; }
.action blockquote, .md blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid #d7cdb8; background: #f9f5ec; border-radius: 0 8px 8px 0; }
.estimate { color: var(--good); } .estimate details { display: inline-block; max-width: 100%; } .estimate summary { font-size: 14px; }
.act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .act label.price { display: flex; align-items: center; gap: 8px; font-size: 14px; } .act label.price input { width: 84px; }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .strip > * { text-align: center; font-size: 13px; border-radius: 8px; padding: 6px 0; color: var(--muted); }
.strip a { background: #f2ecde; color: var(--ink); text-decoration: none; min-height: 40px; display: grid; place-items: center; } .strip a.b { background: var(--green); color: #fff; } .strip a.h { background: var(--green-soft); color: var(--green-dark); } .strip a.x { background: repeating-linear-gradient(135deg, #ddd5c4 0 5px, #f2ecde 5px 10px); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 13px; }
.cal .head { color: var(--muted); text-align: center; padding: 4px 0; }
.cal a { position: relative; display: block; border-radius: 10px; padding: 6px 4px 4px; min-height: 60px; background: #f2ecde; color: var(--ink); text-decoration: none; text-align: center; border: 2px solid transparent; }
.cal a:hover { border-color: #93b8a8; } .cal a b { display: block; font-size: 15px; line-height: 1.2; } .cal a i { display: block; font-style: normal; font-size: 12px; white-space: nowrap; }
.cal a.b { background: var(--green); color: #fff; } .cal a.h { background: var(--green-soft); } .cal a.x { background: repeating-linear-gradient(135deg, #ddd5c4 0 5px, #f2ecde 5px 10px); } .cal a.past { opacity: .45; } .cal a.now { border-color: var(--clay); }
.cal a.ev::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #c98a2e; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin: 12px 0 0; } .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; background: #f2ecde; }
.legend i.b { background: var(--green); } .legend i.h { background: var(--green-soft); } .legend i.x { background: repeating-linear-gradient(135deg, #cfc5b0 0 3px, #f2ecde 3px 6px); } .legend i.ev { background: #c98a2e; border-radius: 50%; width: 10px; height: 10px; vertical-align: 0; }
.off { opacity: .6; }

/* import */
.drop { border: 2px dashed #b3cdc1; border-radius: 14px; padding: 22px 16px; text-align: center; background: var(--green-soft); color: var(--ink); display: block; cursor: pointer; font-size: 16px; } .drop svg.i { width: 34px; height: 34px; color: var(--green); display: block; margin: 0 auto 6px; } .drop input { margin-top: 12px; }
.item { display: grid; grid-template-columns: 40px minmax(0, 1fr); border-top: 1px solid var(--line); padding: 10px 0; } .item:first-of-type { border-top: 0; } .item .tick { min-height: 40px; display: grid; place-items: center start; } .item details { padding-left: 18px; } .item summary { color: var(--ink); } .item .tick input { margin-top: 8px; align-self: start; }
.item .pair { padding: 6px 0 10px; } .item .pair .full { grid-column: 1 / -1; }
.sticky { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); background: var(--bg); padding: 12px 0; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); } @media (min-width: 860px) { .sticky { bottom: 0; } }

/* first steps */
.steps { height: 8px; border-radius: 8px; background: #e6dfd0; overflow: hidden; display: flex; gap: 2px; margin: 0 0 18px; } .steps i { flex: 1; } .steps i.on { background: var(--good); }
.step > summary { display: flex; gap: 12px; align-items: center; font-weight: 650; font-size: 17px; color: var(--ink); list-style: none; } .step > summary::-webkit-details-marker { display: none; } .step > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .6; flex: none; } .step[open] > summary::after { transform: rotate(225deg); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 15px; flex: none; } .num.ok { background: var(--good-soft); color: var(--good); }

/* assistant and reports */
.skills { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.skill { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; } .skill button { margin-top: auto; align-self: flex-start; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 92%; } .msg.user { background: var(--green); color: #fff; align-self: flex-end; white-space: pre-wrap; } .msg.assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; max-width: 100%; overflow-x: auto; }
.msg p:first-child { margin-top: 0; } .msg p:last-child { margin-bottom: 0; }
.md { overflow-x: auto; } .md table { margin: 8px 0; font-size: 15px; } .md h1 { font-size: 21px; } .md h2 { font-size: 17px; margin-top: 20px; } .md td, .md th { overflow-wrap: normal; }
.login { max-width: 400px; margin: 6vh auto; }
.meter { height: 10px; border-radius: 10px; background: #e6dfd0; overflow: hidden; display: block; width: 100%; border: 0; appearance: none; } .meter::-webkit-progress-bar { background: #e6dfd0; } .meter::-webkit-progress-value { background: var(--green); } .meter::-moz-progress-bar { background: var(--green); }

/* guests and duties */
.action.duty { border-left-color: #c98a2e; } .pre { white-space: pre-wrap; }
label.check { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 15px; min-height: 40px; }
.stop { display: block; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #fdeeea; border: 2px solid var(--bad); color: var(--bad); text-align: left; font-size: 15px; } .drop .stop svg.i { width: 26px; height: 26px; color: var(--bad); display: inline-block; margin: 0 6px 0 0; vertical-align: -7px; } .stop b { font-size: 16px; }
.qr { display: block; width: 190px; max-width: 100%; margin: 0 auto 12px; border-radius: 8px; } .secret { background: #f9f5ec; padding: 12px; border-radius: 12px; }
@media (max-width: 859px) { .cols.answered aside { order: -1; } }
.guide { padding-bottom: 0; } .guide main { max-width: 680px; } .guide header { margin: 14px 0 18px; } .guide header p { margin: 0; } .guide footer { padding: 4px 18px 24px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; } .langs a { padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; } .langs a.on { background: var(--green); color: #fff; }
.guide dl { margin: 0; } .guide dt { font-weight: 650; margin-top: 14px; } .guide dt:first-child { margin-top: 0; } .guide dd { margin: 2px 0 0; white-space: pre-line; } .guide dd.code { font: 600 20px ui-monospace, Consolas, monospace; } .guide dd small { display: block; }
.answer { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; white-space: pre-line; margin: 0; }
.poster { background: #fff; text-align: center; } .poster h1 { font-size: 38px; margin: 40px 0 10px; } .poster img { width: 340px; max-width: 90%; } .poster .titles { font-size: 20px; }
@media print { .no-print, .langs { display: none; } body.guide { background: #fff; } .guide .card { box-shadow: none; break-inside: avoid; } }
header.top .brand img { width: 26px; height: 26px; flex: none; }
.credit { margin-top: 18px; display: flex; gap: 6px; align-items: center; } .credit img { width: 16px; height: 16px; }
