:root {
  --ink: #1a2a2e;
  --ink-soft: #3d5258;
  --paper: #f7f5f1;
  --paper-2: #efeae2;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --line: #d5cfc4;
  --brand: #0f5c57;
  --brand-deep: #0a3f3b;
  --brand-soft: #d8ebe8;
  --accent: #c45c26;
  --accent-soft: #f3e0d4;
  --ok: #1f7a4d;
  --ok-soft: #e8f5ef;
  --warn: #9a6b12;
  --warn-soft: #fff3d6;
  --danger: #a33b2d;
  --danger-soft: #f6ddd9;
  --reserved: #5c6b73;
  --reserved-soft: #e8ecee;
  --header-bg: rgba(247, 245, 241, 0.86);
  --footer-line: rgba(213, 207, 196, 0.7);
  --bg-glow-1: #d9ece8;
  --bg-glow-2: #f1e4d8;
  --bg-top: #fbfaf7;
  --bg-mid: #f7f5f1;
  --bg-bottom: #f3efe8;
  --shadow: 0 18px 50px rgba(26, 42, 46, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --focus-ring: rgba(15, 92, 87, 0.25);
  --theme-icon: "☾";
}

html[data-theme="dark"] {
  --ink: #e8eef0;
  --ink-soft: #a7b4b8;
  --paper: #12191b;
  --paper-2: #1a2427;
  --surface: rgba(26, 36, 39, 0.88);
  --surface-solid: #1c272b;
  --line: #2f3d42;
  --brand: #3db5ab;
  --brand-deep: #7fd4cb;
  --brand-soft: #1d3a38;
  --accent: #e08a55;
  --accent-soft: #3a2a21;
  --ok: #6ecf9a;
  --ok-soft: #1a3428;
  --warn: #e0b45a;
  --warn-soft: #3a3018;
  --danger: #e08274;
  --danger-soft: #3a221f;
  --reserved: #9aa8b0;
  --reserved-soft: #2a3338;
  --header-bg: rgba(14, 20, 22, 0.88);
  --footer-line: rgba(47, 61, 66, 0.9);
  --bg-glow-1: #163330;
  --bg-glow-2: #2a211a;
  --bg-top: #0e1416;
  --bg-mid: #12191b;
  --bg-bottom: #0c1214;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --focus-ring: rgba(61, 181, 171, 0.35);
  --theme-icon: "☀";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--bg-glow-1) 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, var(--bg-glow-2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg-bottom) 100%);
  min-height: 100vh;
  line-height: 1.55;
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--footer-line);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--brand);
}

.nav-burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.18s ease, background 0.18s ease;
  position: relative;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-burger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle::before {
  content: var(--theme-icon);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 1.5rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero p {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 92, 87, 0.22);
}

html[data-theme="dark"] .btn-primary {
  color: #062421;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

html[data-theme="dark"] .btn-primary:hover {
  color: #062421;
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.section {
  padding: 2rem 0 3rem;
  animation: rise 0.55s ease both;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.room-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: rise 0.6s ease both;
}

.room-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.room-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.chip.muted {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.chip.reserved {
  background: var(--reserved-soft);
  color: var(--reserved);
}

.chip.blocked {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip.pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: var(--surface-solid);
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--brand);
}

.flash-stack {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.55rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 650;
  animation: rise 0.35s ease both;
}

.flash.success {
  background: var(--ok-soft);
  color: var(--ok);
}

.flash.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.flash.info {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.planning-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.planning-toolbar > * {
  min-width: 140px;
}

.calendar-month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-weekdays {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.cal-weekdays span {
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cal-day {
  min-height: 118px;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface-solid);
}

.cal-day:nth-child(7n) {
  border-right: 0;
}

.cal-day.is-out {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  opacity: 0.55;
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.cal-day-num {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.cal-day-num small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.cal-slots {
  display: grid;
  gap: 0.3rem;
  margin-top: auto;
}

.slot {
  display: inline-flex;
  min-width: 4.5rem;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
}

.cal-slots .slot {
  width: 100%;
  min-width: 0;
}

.slot.free {
  background: var(--ok-soft);
  color: var(--ok);
}

.slot.busy {
  background: var(--reserved-soft);
  color: var(--reserved);
}

.slot.lock {
  background: var(--accent-soft);
  color: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-aside {
  background: linear-gradient(180deg, #0a3f3b, #123836);
  color: #e8f3f1;
  padding: 1.4rem 1rem;
}

.admin-aside a {
  color: #dff0ed;
  text-decoration: none;
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 650;
}

.admin-aside a:hover,
.admin-aside a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-aside .brand strong {
  color: #fff;
}

.admin-theme-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.admin-main {
  padding: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2.25rem 0 2.75rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--footer-line);
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.footer-brand p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.footer-meta {
  font-size: 0.85rem;
}

.changelog-player {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  min-height: 180px;
}

.cl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.cl-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.cl-controls {
  display: flex;
  gap: 0.35rem;
}

.cl-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cl-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.cl-play {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

html[data-theme="dark"] .cl-play {
  color: #062421;
}

.cl-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.cl-progress {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.35s ease;
}

.cl-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
}

.cl-meta {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
}

.cl-body {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.occ-global {
  margin-bottom: 1rem;
}

.occ-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
  margin-bottom: 0.45rem;
  border: 1px solid var(--line);
}

.occ-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: inherit;
  min-width: 0;
  transition: width 0.35s ease;
}

.occ-bar-sm {
  height: 8px;
  margin-bottom: 0.3rem;
  max-width: 180px;
}

.avail-picker {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface-solid);
}

.avail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.avail-weekdays,
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.avail-weekdays {
  margin-bottom: 0.35rem;
}

.avail-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.avail-day {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 10px;
  min-height: 2.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.avail-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.avail-day.is-free:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.avail-day.is-partial {
  background: var(--warn-soft);
  color: var(--warn);
}

.avail-day.is-busy,
.avail-day:disabled {
  background: var(--reserved-soft);
  color: var(--reserved);
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
}

.avail-day.is-suggest {
  cursor: pointer;
  opacity: 0.75;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.avail-day.is-suggest:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--accent);
}

.avail-day.is-past {
  cursor: not-allowed;
  opacity: 0.35;
}

.avail-alts {
  margin-top: 0.85rem;
}

.avail-alts-inner {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface-solid));
}

.avail-alts-inner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.avail-alts-inner p {
  margin: 0 0 0.65rem;
}

.avail-alts-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.avail-alt-card {
  appearance: none;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  font: inherit;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.avail-alt-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.avail-alt-card span,
.avail-alt-card small {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.room-map-panel {
  overflow: hidden;
}

.room-map-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.room-map-canvas {
  min-height: 340px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.room-map-side {
  max-height: 340px;
  overflow: auto;
}

.parking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.parking-item {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  font: inherit;
  color: var(--ink);
}

.parking-item:hover {
  border-color: var(--brand);
}

.parking-item span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.map-pin-room span {
  background: var(--brand);
}

.map-pin-parking span {
  background: #2f6fed;
}

@media (max-width: 860px) {
  .room-map-layout {
    grid-template-columns: 1fr;
  }

  .room-map-side {
    max-height: none;
  }
}

.avail-day.is-start,
.avail-day.is-end {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  opacity: 1;
}

.avail-day.is-in-range {
  box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--brand-soft) 55%, transparent);
}

.avail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.avail-day.demo {
  min-height: auto;
  padding: 0.25rem 0.65rem;
  width: auto;
  cursor: default;
  text-decoration: none;
  opacity: 1;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
}

.muted {
  color: var(--ink-soft);
}

.login-box {
  max-width: 420px;
  margin: 4rem auto;
}

.alternatives {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow);
}

.alt-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .form-grid,
  .detail-grid,
  .admin-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-aside {
    padding: 1rem;
  }

  .admin-aside nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .cal-day {
    min-height: 92px;
    padding: 0.4rem 0.3rem;
  }

  .cal-weekdays span {
    font-size: 0.68rem;
    padding: 0.55rem 0.15rem;
  }

  .slot {
    font-size: 0.62rem;
    padding: 0.28rem 0.2rem;
  }

  .nav-burger {
    display: inline-flex !important;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-tools {
    margin-left: auto;
    position: relative;
    z-index: 60;
  }

  .nav {
    display: none !important;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--footer-line);
    margin-top: 0.35rem;
  }

  .nav.is-open {
    display: flex !important;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
  }

  .nav a.is-active {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 560px) {
  .cal-day-num small {
    display: none;
  }

  .cal-slots .slot {
    border-radius: 8px;
  }

  .brand strong {
    font-size: 1.05rem;
  }
}
