:root {
  --ink: #18352f;
  --cream: #f5f0e4;
  --paper: rgba(255, 253, 247, 0.9);
  --orange: #e7653c;
  --mint: #c9e0d2;
  --line: rgba(24, 53, 47, 0.16);
  --muted: #65756f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, #f9c97d 0 8%, transparent 29%),
    radial-gradient(circle at 88% 0%, #b8d8c7 0 11%, transparent 33%),
    var(--cream);
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 72px; }
.masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 42px; }
.eyebrow, .step { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--orange); }
h1, h2 { font-family: "Fraunces", "Noto Serif TC", serif; margin: 0; }
h1 { max-width: 850px; font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.04em; }
h1 em { color: var(--orange); font-style: normal; }
h2 { font-size: clamp(28px, 4vw, 44px); }
button, input, select { font: inherit; }
button { border: 0; border-radius: 999px; padding: 12px 19px; cursor: pointer; background: var(--ink); color: #fff; font-weight: 700; }
button:hover { background: var(--orange); }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.session-actions { display: flex; gap: 8px; }
.login-card { max-width: 720px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 80px rgba(45, 55, 43, .09); }
.login-card > p { color: var(--muted); }
.login-row { display: flex; gap: 10px; margin-top: 8px; }
label { display: block; font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; color: var(--ink); padding: 13px 15px; outline: none; }
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(231, 101, 60, .12); }
.message { min-height: 24px; }
.board-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.board-toolbar select { width: min(340px, 100%); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.summary span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.62); border: 1px solid var(--line); font-size: 13px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lane { min-height: 260px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.46); }
.lane h3 { margin: 0 0 14px; font-size: 15px; }
.card { padding: 15px; margin-bottom: 10px; border-radius: 15px; background: var(--paper); border: 1px solid rgba(24,53,47,.1); box-shadow: 0 8px 24px rgba(24,53,47,.06); }
.card strong { display: block; line-height: 1.45; }
.card time, .card p { color: var(--muted); font-size: 12px; }
.card p { margin: 8px 0 0; }
.empty { color: var(--muted); font-size: 13px; }
.read-only-note { margin-top: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead { display: block; }
  .session-actions { margin-top: 22px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 1280px); padding-top: 28px; }
  .board, .board-toolbar { display: block; }
  .lane { min-height: 0; margin-bottom: 12px; }
  .board-toolbar select { margin-top: 14px; }
  .login-card { padding: 22px; }
  .login-row { display: block; }
  .login-row button { width: 100%; margin-top: 10px; }
}
