/* 가장 빠른 시간 우선형 — 숯색 머리띠에 호박색 큰 시각. Gothic A1 굵은 숫자, 본문은 회백색. */
:root {
  --night: #1E1F22;
  --night-2: #2A2C30;
  --paper: #F3F2EE;
  --card: #FFFFFF;
  --ink: #1E1F22;
  --soft: #6C6E72;
  --line: #DEDCD5;
  --amber: #F2A63B;
  --amber-deep: #B86E05;
  --amber-bg: #FDF0DA;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.in { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 18px; border-radius: 6px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn--amber { background: var(--amber); color: var(--night); }
.btn--amber:hover { background: var(--night); color: var(--amber); }
.btn--ghost { margin-top: 8px; background: none; border: 1.5px solid var(--line); color: var(--ink); }

/* 머리 + 가장 빠른 예약 */
.top { background: var(--night); color: #EDEBE6; padding-bottom: 34px; }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -0.3px; }
.owner { font-size: 14px; font-weight: 600; color: var(--amber); text-decoration: none; }
.owner:hover { text-decoration: underline; }
.first { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "menu menu" "main next"; gap: 20px 40px; align-items: end; padding-top: 18px; }
.first__menu { grid-area: menu; display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 6px; border: 1px solid #44464B; background: transparent; color: #CFCCC5; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.35; }
.tab small { font-weight: 400; font-size: 12px; color: #8F9196; }
.tab.is-on { background: var(--night-2); border-color: var(--amber); color: #fff; }
.tab.is-on small { color: var(--amber); }
.first__main { grid-area: main; }
.first__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--amber); letter-spacing: 1px; }
.first__when { margin: 0 0 16px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.first__when span { font-size: 30px; font-weight: 700; }
.first__when span small { display: block; font-size: 14px; font-weight: 400; color: #9A9CA1; }
.first__when b { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -3px; color: var(--amber); }
.first__go { padding: 14px 26px; border: 0; border-radius: 6px; background: var(--amber); color: var(--night); font-weight: 800; font-size: 16px; cursor: pointer; }
.first__go:hover { background: #fff; }
.first__next { grid-area: next; margin: 0; padding-bottom: 6px; font-size: 14px; color: #9A9CA1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid #55575C; background: transparent; color: #EDEBE6; cursor: pointer; font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--amber); color: var(--amber); }

/* 본문: 날짜 열 + 신청 패널 */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 36px; }
.days__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.days h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.days__nav { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.days__nav button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; }
.days__nav button:disabled { color: #C2C0BA; cursor: default; }
.days__sub { margin: 6px 0 18px; font-size: 14px; color: var(--soft); }
.cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--card); border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.col__h { padding: 12px 12px 10px; border-bottom: 3px solid var(--night); }
.col__h b { display: block; font-size: 17px; font-weight: 800; }
.col__h span { font-size: 12.5px; color: var(--soft); }
.col ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; }
.t { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 8px 10px; border-radius: 5px; border: 1.5px solid transparent; background: var(--amber-bg); cursor: pointer; text-align: left; }
.t b { font-size: 16px; font-weight: 800; }
.t span { font-size: 11.5px; color: var(--amber-deep); }
.t--open:hover { border-color: var(--amber); }
.t.is-on { background: var(--night); }
.t.is-on b { color: var(--amber); }
.t.is-on span { color: #EDEBE6; }
.t:disabled { cursor: default; }
.t--taken { background: repeating-linear-gradient(135deg, #F2F1EC 0 5px, #E7E5DE 5px 10px); }
.t--taken b { color: #9A9890; text-decoration: line-through; font-weight: 600; }
.t--taken span, .t--blocked span, .t--past span { color: var(--soft); }
.t--blocked { background: transparent; border: 1.5px dashed #CFCCC3; }
.t--blocked b { color: #9A9890; font-weight: 600; }
.t--past { background: #F0EFEA; }
.t--past b { color: #B4B2AA; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.k--open { background: var(--amber-bg); border: 1.5px solid var(--amber); }
.k--taken { background: repeating-linear-gradient(135deg, #F2F1EC 0 3px, #D9D6CD 3px 6px); }
.k--blocked { border: 1.5px dashed #CFCCC3; }
.k--past { background: #E6E4DD; }

.panel { position: sticky; top: 16px; background: var(--card); border-radius: 8px; border: 1px solid var(--line); padding: 20px; }
.panel__h { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.pick { margin: 0 0 16px; padding: 14px; border-radius: 6px; background: var(--night); color: #EDEBE6; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: baseline; }
.pick span { font-size: 14px; }
.pick b { font-size: 30px; font-weight: 800; color: var(--amber); grid-row: span 2; line-height: 1; }
.pick i { font-style: normal; font-size: 12.5px; color: #9A9CA1; }
.pick--empty { display: block; background: var(--paper); color: var(--soft); font-size: 14px; }
.f { display: block; margin-bottom: 10px; }
.f > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.f i { font-style: normal; font-weight: 400; color: var(--soft); }
.f input, .f textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.f textarea { resize: vertical; }
.err { margin: 0 0 8px; color: #B0321C; font-size: 14px; font-weight: 700; }
.err:empty { display: none; }
.small { margin: 10px 0 0; font-size: 12.5px; color: var(--soft); }
.done .badge { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: #FFE7A6; color: #7A5500; font-size: 12.5px; font-weight: 800; }
.done h2 { font-size: 20px; font-weight: 800; }
.done__big { margin: 10px 0 12px; font-size: 15px; }
.done__big b { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.done dl { display: grid; grid-template-columns: 54px 1fr; gap: 4px 10px; margin: 0 0 4px; font-size: 14px; }
.done dt { color: var(--soft); }
.done dd { margin: 0; font-weight: 700; }
.done .small { margin-bottom: 14px; }

.info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.info h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.info ul { list-style: none; margin: 0; padding: 0; }
.info li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info li span { color: var(--amber-deep); font-weight: 700; }
.info li small { color: var(--soft); font-size: 13px; }
.info p { margin: 0 0 8px; font-size: 14px; }
.info a { font-weight: 700; }
.maker { margin-top: 32px; }
.maker p { margin: 0; padding: 14px 16px; border-radius: 6px; background: #E8E6DF; font-size: 13.5px; color: var(--soft); }
.maker b { color: var(--ink); }
.maker a { color: var(--ink); font-weight: 700; }
.ft { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 48px; font-size: 13px; color: var(--soft); }

@media (max-width: 1000px) {
  .body { grid-template-columns: 1fr; }
  .panel { position: static; }
  .first { grid-template-columns: 1fr; grid-template-areas: "menu" "main" "next"; gap: 18px; }
}
@media (max-width: 720px) {
  .in { padding-left: 16px; padding-right: 16px; }
  .top { padding-bottom: 26px; }
  .tab { flex: 1 1 0; min-width: 0; padding: 7px 9px; font-size: 13px; }
  .tab small { font-size: 11px; }
  .first__when { gap: 4px 14px; }
  .first__when span { font-size: 22px; }
  .first__when b { font-size: 64px; }
  .first__go { width: 100%; }
  .body { padding-top: 26px; gap: 24px; }
  .days h1 { font-size: 19px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .t { padding: 8px; }
  .info { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .ft { flex-direction: column; }
}
