:root {
  --snow: #f4fbff;
  --paper: #fff;
  --ink: #103654;
  --muted: #4b657c;
  --blue: #0875c9;
  --blue-hover: #0564af;
  --blue-ink: #075fa8;
  --sky: #e6f5ff;
  --line: #cae5f6;
  --field: #b6d8ed;
  --sun: #fff3d8;
  --sun-ink: #79531c;
  --done: #e8f4ee;
  --done-ink: #275f48;
  --alert: #fdecec;
  --alert-ink: #8a2c2c;
  --radius: 15px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.8 var(--font); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: fixed; top: -100px; left: 12px; background: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { top: 10px; }
.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.eyebrow { color: var(--blue-ink); font-size: 11px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: #fff; padding: 11px 22px; font-weight: 600; font-size: 14px; line-height: 1.6; text-align: center; }
.btn:hover { background: var(--blue-hover); }
.btn.secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.secondary:hover { background: var(--sky); }
.btn.danger { background: #fff; color: var(--alert-ink); border-color: #e7c3c3; }
.btn.danger:hover { background: var(--alert); }
.btn.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 5px 0; }
.badge { display: inline-block; padding: 4px 9px; font-size: 11px; font-weight: 550; color: var(--blue-ink); background: var(--sky); border-radius: 6px; white-space: nowrap; }
.badge.sun { color: var(--sun-ink); background: var(--sun); }
.badge.done { color: var(--done-ink); background: var(--done); }
.badge.off { color: var(--muted); background: #eef3f6; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; background: #fff; border: 1px solid var(--field); border-radius: 8px; }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.field .error, .error-text { color: var(--alert-ink); font-size: 12px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d48a8a; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: grid; gap: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 8px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 5px; width: 19px; height: 19px; flex-shrink: 0; accent-color: var(--blue); }
.notice { padding: 15px 18px; background: var(--sky); border-radius: 9px; color: #345b74; font-size: 13px; line-height: 1.85; }
.notice.sun { color: var(--sun-ink); background: var(--sun); }
.notice.done { color: var(--done-ink); background: var(--done); }
.notice.alert { color: var(--alert-ink); background: var(--alert); }
.avatar { width: 46px; height: 46px; background: #dff0fb; color: var(--blue-ink); display: grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 650; flex-shrink: 0; overflow: hidden; }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 50px; cursor: pointer; padding: 14px 27px 14px 0; list-style: none; position: relative; font-size: 14px; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; position: absolute; right: 3px; top: 9px; color: var(--blue); font-size: 23px; }
details[open] > summary:after { content: '−'; }
details > p, details > div { padding-bottom: 18px; font-size: 13px; line-height: 1.9; color: var(--muted); }
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .form-grid { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
