:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --gold: #dec178;
  --text: #f5f3ef;
  --muted: #9a958a;
  --line: #2a2a2a;
  --err: #e07070;
  --ok: #8ecf9a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
h1, h2 { font-family: Sora, Inter, sans-serif; font-weight: 600; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.rec-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.rec-login {
  max-width: 24rem;
  margin: 14vh auto;
  padding: 0 1.25rem;
}
.rec-login h1 { font-size: 1.85rem; margin: 0 0 0.5rem; }
.rec-lead { color: var(--muted); margin: 0 0 1.5rem; }
.rec-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}
.rec-login label {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
input, button { font: inherit; }
input[type="search"], input[type="date"], .rec-login input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #3a3a3a;
  border-radius: 0.6rem;
  background: #111;
  color: var(--text);
}
input:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.rec-login button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #0b0b0b;
  font-weight: 600;
  cursor: pointer;
}
.rec-err { color: var(--err); }
.rec-hint { color: var(--muted); font-size: 0.8rem; margin-top: 1.5rem; }
.rec-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}
.rec-center {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  background: #111;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 22rem;
}
.rec-top h1 { margin: 0; font-size: 1.35rem; }
.rec-week {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.rec-week-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-height: 3.4rem;
  padding: 0.4rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #111;
  color: var(--text);
  cursor: pointer;
}
.rec-week-day strong { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; }
.rec-week-day span { font-size: 1.05rem; font-weight: 600; }
.rec-week-day small { color: var(--muted); font-size: 0.68rem; }
.rec-week-day.is-on { border-color: var(--gold); }
.rec-week-day.is-closed { opacity: 0.5; }
.rec-week-day:hover { border-color: var(--gold); }
.rec-icon {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.rec-icon:hover { border-color: var(--gold); color: var(--gold); }
.rec-daynav input[type="date"] { width: 10.5rem; margin: 0; }
.rec-user { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.rec-user span { margin-right: 0; }
.rec-mail-item { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.rec-mail-item strong { display: block; margin-bottom: 0.25rem; }
.rec-mail-item p { margin: 0.35rem 0 0; white-space: pre-wrap; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.rec-sheet-body input[type="date"] {
  width: auto;
  margin: 0 0 0.85rem;
}
.rec-print-list { margin: 0; padding: 0 0 0 1.2rem; }
@media print {
  body { background: #fff; }
  .rec-top, .rec-side, .rec-help, .rec-msg, .rec-scroll, .rec-sheet, .rec-dialog, .rec-week { display: none !important; }
  .rec-layout { display: block; }
  .rec-print-list { display: block !important; color: #111; }
}
.rec-msg {
  margin: 0;
  padding: 0.65rem 1.5rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.rec-msg.is-err { color: var(--err); background: #1a1010; }
.rec-msg.is-ok { color: var(--ok); }
.rec-layout {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 5.5rem);
}
.rec-side {
  border-right: 1px solid var(--line);
  padding: 1.1rem 1.15rem 2rem;
  background: #101010;
}
.rec-side h2 { margin: 0 0 0.75rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rec-people { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.75rem 0; }
.rec-people button {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid #333;
  border-radius: 0.55rem;
  background: #171717;
  color: var(--text);
  cursor: pointer;
}
.rec-people button:hover, .rec-people button.is-on {
  border-color: var(--gold);
  color: var(--gold);
}
.rec-card {
  margin-top: 0.5rem;
  padding: 0.9rem;
  border-radius: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.rec-card.is-empty { color: var(--muted); font-size: 0.88rem; }
.rec-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.rec-card .rec-level { color: var(--gold); font-size: 0.8rem; }
.rec-card .rec-week { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); }
.rec-card.is-blocked .rec-week { color: var(--err); }
.rec-main { padding: 1rem 1.25rem 2rem; overflow-x: auto; }
.rec-help { color: var(--muted); font-size: 0.8rem; margin: 0 0 0.75rem; }
.rec-textbtn, .rec-gold {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.rec-textbtn {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: var(--text);
}
.rec-textbtn:hover { border-color: var(--gold); color: var(--gold); }
.rec-gold {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0b0b;
}
.rec-scroll {
  overflow-x: auto;
  padding: 0.35rem 0 0.5rem;
}
.rec-axis {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  display: grid;
  grid-template-columns: 9.5rem repeat(11, 1fr);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.2rem 0 0.45rem;
  min-width: 70rem;
}
.rec-axis span { text-align: center; }
.rec-axis span:first-child { text-align: left; }
.rec-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.rec-dialog[hidden] { display: none; }
.rec-dialog-box {
  width: min(22rem, 92vw);
  background: #161616;
  border: 1px solid #3a3a3a;
  border-radius: 0.85rem;
  padding: 1.2rem 1.25rem 1rem;
}
.rec-dialog-box p { margin: 0 0 1rem; line-height: 1.45; }
.rec-dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.rec-clear {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}
.rec-board { min-width: 70rem; }
.rec-lane {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  align-items: stretch;
  min-height: 3.6rem;
  border-top: 1px solid var(--line);
}
.rec-lane-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  width: 100%;
  min-height: 3.2rem;
}
.rec-lane-name:hover, .rec-lane.is-on .rec-lane-name {
  color: var(--gold);
}
.rec-lane-name small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}
.rec-track {
  position: relative;
  margin: 0.35rem 0;
  border-radius: 0.4rem;
  background:
    repeating-linear-gradient(
      90deg,
      #1a1a1a 0,
      #1a1a1a calc(100% / 11 - 1px),
      #222 calc(100% / 11 - 1px),
      #222 calc(100% / 11)
    );
}
.rec-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 0.35rem;
  background: #2a2418;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 0 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}
.rec-block:hover { background: #3a3220; }
.rec-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 18;
  padding: 1rem;
}
.rec-sheet[hidden] { display: none; }
.rec-sheet-box {
  width: min(34rem, 94vw);
  max-height: min(86vh, 40rem);
  background: #161616;
  border: 1px solid #3a3a3a;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.rec-sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.rec-sheet-top h2 { margin: 0; font-size: 1.15rem; }
.rec-sheet-sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }
.rec-sheet-body { overflow: auto; -webkit-overflow-scrolling: touch; }
.rec-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
}
.rec-fact dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.12rem;
}
.rec-fact dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.rec-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.rec-slot-hour { margin-bottom: 0.85rem; }
.rec-slot-hour h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rec-slot-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: 0.45rem;
}
.rec-slot {
  min-height: 3rem;
  border: 1px solid #3a3a3a;
  border-radius: 0.7rem;
  background: #1c1c1c;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.rec-slot:hover, .rec-slot:focus {
  border-color: var(--gold);
  color: var(--gold);
}
.rec-slot-empty { color: var(--muted); margin: 1rem 0; }
@media (max-width: 900px) {
  .rec-layout { grid-template-columns: 1fr; }
  .rec-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .rec-people button, .rec-lane-name, .rec-slot, .rec-textbtn, .rec-gold {
    min-height: 2.85rem;
  }
}
