@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --text: #16201c;
  --muted: #485b53;
  --accent: #0f7b63;
  --line: #d7dfda;
  --white: #fff;
  font: 16px/1.5 Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.brandbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 64px; color: var(--muted); font-size: .85rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--accent); border-radius: 10px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-block: 35px 22px; }
.hero-actions, .actions, .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 6vw, 3.15rem); line-height: 1.13; letter-spacing: -.052em; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; line-height: 1.35; }
.eyebrow { color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.live, .chip { border-radius: 999px; padding: 4px 10px; font-size: .77rem; font-weight: 700; color: #0b5a47; background: #e1f2ea; }
.live::before { content: '●'; margin-right: 6px; }
.live.offline { background: #fff0d1; color: #7a4b00; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.metric strong { display: block; font-size: 2.02rem; letter-spacing: -.06em; line-height: 1.24; }
.metric span, .muted { color: var(--muted); font-size: .87rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 30px; }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h2 { margin-bottom: 12px; }
aside { display: grid; gap: 12px; }
ol { padding: 0; margin: 0 0 14px; list-style: none; }
.task { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task time { font-size: .85rem; color: var(--accent); font-weight: 700; }
.task strong, .summary, #pending p { overflow-wrap: anywhere; }
.task .actions { margin-top: 6px; }
.meta { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.chip.pending { background: #fff0d1; color: #7a4b00; }
.chip.moved { background: #e6ecf8; color: #2a4a8a; }
.chip.cancelled { background: #edf0ed; color: #485b53; }
.summary { border-radius: 12px; padding: 12px; background: #e1f2ea; white-space: pre-wrap; margin-bottom: 5px; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, select, input, textarea { border-radius: 9px; border: 1px solid #83968c; padding: 8px 11px; }
button { min-height: 40px; background: var(--accent); border-color: var(--accent); color: white; font-size: .85rem; font-weight: 700; cursor: pointer; }
button.secondary { background: white; color: #0b5a47; border-color: #83968c; }
button.danger { color: #9a2929; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #2a4a8a; outline-offset: 2px; }
label { display: grid; gap: 4px; color: var(--muted); font-size: .88rem; font-weight: 600; }
input, select, textarea { background: white; color: var(--text); min-width: 0; width: 100%; }
.hero-actions select { width: auto; }
.filters, .form-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); margin-bottom: 12px; }
.notice:not(:empty) { padding: 12px; background: #e6ecf8; color: #2a4a8a; border-radius: 10px; margin-top: 14px; }
dialog { width: min(570px, calc(100% - 24px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
dialog::backdrop { background: #16201c88; }
dialog form, .stack { display: grid; gap: 10px; }
dialog .actions { justify-content: end; }
.form-error { color: #9a2929; font-size: .9rem; }
.form-error:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.admin-main { padding-block: 25px; }
.admin-list { display: grid; gap: 10px; margin-top: 14px; }
.admin-item { display: flex; gap: 12px; justify-content: space-between; align-items: start; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 24px); }
  .hero { align-items: start; flex-direction: column; padding-top: 22px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .task { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
  button { min-height: 44px; }
}
