:root {
  --green: #0e5c4a;
  --green-deep: #0a4537;
  --sign-yellow: #ffd23f;
  --page: #f6f7f5;
  --card: #ffffff;
  --ink: #1b2420;
  --ink-soft: #55615b;
  --line: #d8ddd9;
  --free: #e6f2ec;
  --taken: #eceeed;
  --error: #b42318;
  --focus: #1f5fd6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
}
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sign {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--green); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--sign-yellow); color: var(--green-deep); font-weight: 700;
}
.where { color: #cfe4dc; font-size: 15px; }
.sign nav { margin-left: auto; display: flex; gap: 20px; }
.sign nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 0; }
.sign nav a:hover { text-decoration: underline; }

main { max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; }
.intro h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.intro p { margin: 0 0 8px; color: var(--ink-soft); max-width: 64ch; }
.crumb a { font-weight: 700; text-decoration: none; }
.crumb a::before { content: "\2039  "; }

.grid-wrap { margin-top: 24px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.grid { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 15px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 0; text-align: center; }
.grid thead th { padding: 10px 4px; color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; }
.grid tbody th { text-align: left; padding: 12px 16px; min-width: 190px; position: sticky; left: 0; background: var(--card); }
.grid tbody th a { font-weight: 700; text-decoration: none; color: var(--ink); }
.grid tbody th small { display: block; color: var(--ink-soft); font-size: 13px; }
.grid tr:last-child th, .grid tr:last-child td { border-bottom: 0; }
.slot { height: 64px; border-left: 1px solid var(--line); }
.slot span, .slot a { display: grid; place-items: center; height: 100%; min-height: 44px; }
.slot.free a { background: var(--free); color: var(--green-deep); font-weight: 700; text-decoration: none; }
.slot.free a:hover { background: var(--green); color: #fff; }
.slot.taken span { background: repeating-linear-gradient(135deg, var(--taken) 0 8px, #e2e5e3 8px 16px); color: var(--ink-soft); }
.slot.past span { color: #a3aba7; }
.slot.yours a { background: var(--sign-yellow); color: var(--green-deep); font-weight: 700; text-decoration: none; }
.plan { margin-top: 18px; }
.plan img { display: block; width: 100%; max-width: 640px; height: auto; border: 1px solid var(--line); border-radius: 10px; }

.day { font-size: 20px; margin: 28px 0 10px; }
.times { list-style: none; padding: 0; margin: 0; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.times li { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.times li:last-child { border-bottom: 0; }
.times .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.times .taken span:last-child { color: var(--ink-soft); }

.card { max-width: 480px; margin-top: 20px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input:not([type]) {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: #fff;
}
.error { color: var(--error); font-weight: 700; margin: 10px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; margin-top: 16px;
  border: 0; border-radius: 8px; background: var(--green); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-deep); }
.btn.small { min-height: 40px; margin: 0; padding: 0 16px; }
.btn.ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.share { margin-top: 18px; color: var(--ink-soft); }
.share a { font-weight: 700; }
.share .mono { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.grid tbody th small.left { color: var(--green); font-weight: 700; }

.ticket {
  max-width: 480px; margin-top: 20px; padding: 24px 28px; background: var(--card);
  border: 1px solid var(--line); border-left: 10px solid var(--sign-yellow); border-radius: 10px;
}
.ticket p { margin: 0 0 6px; }
.ticket .room { font-size: 26px; font-weight: 700; }
.ticket .code strong { font-size: 22px; letter-spacing: 0.08em; }

.mine { list-style: none; padding: 0; max-width: 560px; }
.mine li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.mine li { align-items: center; }
.mine li a { flex: 1; }
.mine .code { font-weight: 700; letter-spacing: 0.08em; color: var(--ink-soft); }
.mine form { margin: 0; }
.done { background: var(--free); color: var(--green-deep); font-weight: 700; padding: 10px 14px; border-radius: 8px; max-width: 560px; }

.foot { border-top: 1px solid var(--line); padding: 20px clamp(16px, 4vw, 48px); color: var(--ink-soft); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }

@media (max-width: 640px) {
  .where { display: none; }
  .sign nav { gap: 14px; }
}
