/* ==========================================================
   GKMI Kudus · Sistem Booking Ruangan
   Tema: clean modern — navy tenang, aksen emas, banyak ruang putih
   ========================================================== */

:root {
  /* Warna diambil dari logo GKMI: biru ikan, merah salib */
  --navy: #1F5591;
  --navy-600: #2563A6;
  --navy-800: #173F6E;
  --navy-900: #0E2240;
  --gold: #C9302C;
  --gold-soft: #F3C5C1;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --border: #E7E5E0;
  --border-strong: #D6D3CC;
  --text: #1B1E22;
  --text-2: #3A3E44;
  --muted: #6B6F76;
  --faint: #9A9DA3;

  --ok: #1E7B3A;      --ok-bg: #E6F4EA;
  --warn: #9A6200;    --warn-bg: #FFF4DE;   --warn-line: #E2A93B;
  --bad: #B42318;     --bad-bg: #FDECEC;
  --off: #55585E;     --off-bg: #EEEEEC;
  --info: #3D5A80;    --info-bg: #E8EEF7;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .05);
  --shadow: 0 1px 2px rgba(20, 30, 45, .04), 0 8px 24px -8px rgba(20, 30, 45, .10);
  --shadow-lg: 0 24px 60px -20px rgba(20, 30, 45, .28);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
.ic { display: inline-block; flex-shrink: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; color: var(--text); }
p { margin: 0 0 1em; }
small { font-size: .85em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 14px/1.2 var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px -8px rgba(31,85,145,.6); }
.btn-primary:hover { background: var(--navy-600); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #B02824; color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(30,58,95,.06); color: var(--text); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #17672F; color: #fff; }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #F1C9C5; }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-approved { background: var(--ok-bg); color: var(--ok); }
.badge-rejected { background: var(--bad-bg); color: var(--bad); }
.badge-cancelled { background: var(--off-bg); color: var(--off); }
.badge-rutin { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--off-bg); color: var(--off); }
.badge-neutral::before, .badge-plain::before { display: none; }

/* ---------- Kartu ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 700; }
.card-head .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.input, .select, .textarea { width: 100%; padding: 11px 14px; font: 500 14.5px/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; appearance: none; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6F76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #C3BFB6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,58,95,.12); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: #E5A39C; background: #FFFBFA; }
.field-error { margin: 0; font-size: 12.5px; color: var(--bad); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.input-group { display: flex; gap: 10px; }
.input-group > * { flex: 1; }
.form-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 6px 0 -4px; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.color-input { width: 52px; height: 44px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 99px; background: #D6D3CC; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--navy); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Alert ---------- */
.flash-wrap { max-width: 1180px; margin: 20px auto 0; padding: 0 24px; display: grid; gap: 10px; }
.admin .flash-wrap { max-width: none; margin: 0 0 20px; padding: 0; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert > .ic { margin-top: 2px; }
.alert > div { flex: 1; }
.alert-success { background: var(--ok-bg); color: #15562A; border-color: #BFE3C9; }
.alert-error { background: var(--bad-bg); color: #8E1C13; border-color: #F3C4BF; }
.alert-info { background: var(--info-bg); color: #2B4466; border-color: #CCD8EA; }
.alert-warn { background: var(--warn-bg); color: #774C00; border-color: #F1D59D; }
.alert-close { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 2px; }
.alert-close:hover { opacity: 1; }

/* ==========================================================
   PUBLIK
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,.85); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(231,229,224,.8); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.brand-mark img { width: auto; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.brand-light .brand-mark { border-color: transparent; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.main-nav a:not(.btn):hover { background: rgba(30,58,95,.06); color: var(--text); }
.main-nav a.active { color: var(--navy); background: rgba(30,58,95,.08); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); padding: 8px; border-radius: 8px; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(37,99,166,.12), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--navy); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--gold-soft); opacity: .7; z-index: -1; border-radius: 4px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats div span { font-size: 13px; color: var(--muted); }

.today-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.today-card .tc-head { padding: 20px 22px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.today-card .tc-head small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-soft); font-weight: 700; }
.today-card .tc-head strong { font-size: 20px; font-weight: 700; }
.today-card .tc-head .big { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; opacity: .95; }
.today-card .tc-body { padding: 8px 10px 12px; max-height: 340px; overflow: auto; }
.today-card .tc-foot { padding: 12px 22px; border-top: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); }

/* Section */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }

/* Grup ruangan per rayon */
.room-group + .room-group { margin-top: 40px; }
.room-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.room-group-head h3 { font-size: 18px; font-weight: 800; }
.room-group-head span { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface); border: 1px solid var(--border); padding: 2px 10px; border-radius: 99px; }
.room-group-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--info-bg); color: var(--navy); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Kartu ruangan */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.room-visual { height: 88px; position: relative; background: var(--c); overflow: hidden; }
.room-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 28px); }
.room-visual .ic-wrap { position: absolute; right: 18px; bottom: -18px; width: 74px; height: 74px; border-radius: 22px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(255,255,255,.85); transform: rotate(-8deg); }
.room-visual .cap { position: absolute; left: 18px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--text); font-size: 12.5px; font-weight: 700; }
.room-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-body h3 { font-size: 17px; font-weight: 700; }
.room-body p { margin: 0; color: var(--muted); font-size: 14px; }
.room-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); font-weight: 500; }
.room-body > .flex { margin-top: auto; padding-top: 6px; }

/* Mingguan */
.week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.week-toolbar .range { font-weight: 700; font-size: 16px; }
.pager { display: inline-flex; gap: 6px; align-items: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 220px; display: flex; flex-direction: column; overflow: hidden; }
.week-day .wd-head { color: var(--text); padding: 12px 12px 10px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; }
.week-day .wd-head span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.week-day .wd-head strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.week-day.today { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.week-day.today .wd-head { background: var(--navy); }
.week-day.today .wd-head span, .week-day.today .wd-head strong { color: #fff; }
.week-day.closed { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 8px, #F2F1ED 8px 16px); }
.week-day.sun .wd-head span { color: var(--bad); }
.week-day.today.sun .wd-head span { color: var(--gold-soft); }
.wd-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wd-empty { margin: auto; font-size: 12px; color: var(--faint); text-align: center; }
.wk-ev { display: block; padding: 7px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 9%, white); border-left: 3px solid var(--c); font-size: 12px; line-height: 1.35; color: var(--text); }
.wk-ev b { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.wk-ev span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-ev small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.pending { background: repeating-linear-gradient(-45deg, #FFFBF2 0 6px, #FFF4DE 6px 12px); border-left-color: var(--warn-line); }
.wk-ev.rutin { background: var(--info-bg); border-left-style: dashed; }
a.wk-ev:hover { filter: brightness(.97); }
.wd-add { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px; border-radius: 8px; text-align: center; border: 1px dashed var(--border-strong); margin-top: auto; }
.wd-add:hover { color: var(--navy); border-color: var(--navy); background: rgba(30,58,95,.04); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.approved { background: #DCE4EF; border-left: 3px solid var(--navy); }
.lg.pending { background: repeating-linear-gradient(-45deg, #FFFBF2 0 3px, #FBE3B0 3px 6px); border-left: 3px solid var(--warn-line); }
.lg.rutin { background: var(--info-bg); border-left: 3px dashed var(--info); }

/* Bulanan */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-toolbar h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.month-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.month-head div { padding: 10px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.month-head div.sun { color: var(--bad); }
.month-head .short { display: none; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { position: relative; min-height: 112px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: background .12s; }
.day:nth-child(7n) { border-right: 0; }
.day:nth-last-child(-n+7) { border-bottom: 0; }
.day:hover { background: #FBFAF7; color: var(--text); }
.day.out { background: #FCFCFA; }
.day.out .day-num, .day.out .day-evs { opacity: .45; }
.day.closed { background: repeating-linear-gradient(-45deg, #FCFCFA 0 6px, #F5F4F0 6px 12px); }
.day-num { font-size: 13px; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.day.sun .day-num { color: var(--bad); }
.day.today .day-num { background: var(--navy); color: #fff; }
.day.selected { background: #F3F6FA; box-shadow: inset 0 0 0 2px var(--navy); }
.day-count { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 0 7px; border-radius: 99px; }
.day-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-ev { font-size: 11px; line-height: 1.3; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c) 10%, white); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.mini-ev b { font-weight: 700; }
.mini-ev.pending { background: #FFF6E3; border-left-color: var(--warn-line); }
.mini-ev.rutin { background: var(--info-bg); }
.more { font-size: 11px; color: var(--muted); font-weight: 600; padding-left: 6px; }
.day-dots { display: none; gap: 3px; }
.day-dots i { width: 6px; height: 6px; border-radius: 50%; }

/* Detail hari & agenda */
.day-panel { position: sticky; top: 90px; }
.day-panel .dp-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.day-panel h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agenda-item > a, .agenda-item > div { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); position: relative; overflow: hidden; }
.agenda-item > a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.agenda-item > *::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.agenda-item.pending > *::before { background: var(--warn-line); }
.ag-time { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; min-width: 48px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ag-time small { font-weight: 500; color: var(--muted); font-size: 12px; }
.ag-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ag-body strong { font-size: 14px; font-weight: 700; }
.ag-body small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-sm { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 22px; color: var(--muted); font-size: 14px; text-align: center; }

/* Timeline */
.timeline-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.timeline { min-width: calc(200px + var(--hours) * 64px); }
.tl-row { display: flex; border-bottom: 1px solid var(--border); min-height: 64px; }
.tl-row:last-child { border-bottom: 0; }
.tl-header { min-height: 36px; background: var(--surface-2); }
.tl-room { width: 200px; flex-shrink: 0; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--border); font-size: 13px; font-weight: 700; position: sticky; left: 0; background: inherit; background-color: var(--surface); z-index: 2; }
.tl-header .tl-room { background: var(--surface-2); }
.tl-room i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.tl-room span { display: flex; flex-direction: column; line-height: 1.25; }
.tl-room small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.tl-track { position: relative; flex: 1; }
.tl-hour { position: absolute; top: 9px; transform: translateX(4px); font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); opacity: .7; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 1; }
.tl-ev { position: absolute; top: 8px; bottom: 8px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); border-left: 3px solid var(--c); font-size: 11.5px; line-height: 1.25; overflow: hidden; color: var(--text); z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.tl-ev strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.tl-ev small { color: var(--muted); white-space: nowrap; }
.tl-ev.pending { background: repeating-linear-gradient(-45deg, #FFFBF2 0 6px, #FFF1D4 6px 12px); border-color: #F1D59D; border-left-color: var(--warn-line); }
.tl-ev.rutin { background: var(--info-bg); border-style: dashed; border-left-style: solid; }
a.tl-ev:hover { filter: brightness(.96); color: var(--text); }

/* Halaman booking */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 640px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding: 24px 0 64px; }
.side-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.avail-head { display: flex; align-items: center; gap: 12px; }
.avail-head .day-bubble { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.avail-head .day-bubble b { font-size: 20px; font-weight: 800; }
.avail-head .day-bubble small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); font-weight: 700; margin-top: 3px; }
.avail-head strong { display: block; font-size: 15px; }
.avail-head span { font-size: 13px; color: var(--muted); }
.slot-bar { position: relative; height: 34px; border-radius: 9px; background: repeating-linear-gradient(90deg, var(--ok-bg) 0, var(--ok-bg) calc(100% / var(--n) - 1px), #fff calc(100% / var(--n) - 1px), #fff calc(100% / var(--n))); border: 1px solid #CFE7D6; overflow: hidden; margin: 14px 0 6px; }
.slot-bar .busy { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, #F7D7D3 0 5px, #FBE7E4 5px 10px); border-left: 2px solid var(--bad); border-right: 1px solid #F0B6AF; }
.slot-bar .busy.pending { background: repeating-linear-gradient(-45deg, #FBE3B0 0 5px, #FFF4DE 5px 10px); border-left-color: var(--warn-line); }
.slot-bar .pick { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: rgba(30,58,95,.85); box-shadow: 0 0 0 2px #fff; }
.slot-bar .pick.bad { background: rgba(180,35,24,.85); }
.slot-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.room-summary { display: flex; gap: 14px; align-items: flex-start; }
.room-summary .sw { width: 44px; height: 44px; border-radius: 12px; background: var(--c); flex-shrink: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.room-summary strong { display: block; }
.room-summary span { font-size: 13px; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list .ic { color: var(--gold); margin-top: 2px; }
.check-result { margin-top: 10px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.check-result.ok { color: var(--ok); }
.check-result.bad { color: var(--bad); }

/* Sukses */
.success-wrap { max-width: 680px; margin: 48px auto 72px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 0 0 10px rgba(30,123,58,.06); }
.success-icon.pending { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 10px rgba(226,169,59,.10); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); margin: 20px 0; }
.code-box small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.code-box strong { font-family: var(--mono); font-size: 22px; letter-spacing: .04em; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: 11px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { font-weight: 600; color: var(--text); }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* Status timeline */
.progress-steps { display: flex; gap: 0; margin: 8px 0 4px; }
.ps { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ps::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.ps:first-child::before { display: none; }
.ps .b { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); position: relative; z-index: 1; color: var(--faint); }
.ps.done .b { background: var(--ok); border-color: var(--ok); color: #fff; }
.ps.done::before { background: var(--ok); }
.ps.current .b { border-color: var(--warn-line); color: var(--warn); background: var(--warn-bg); }
.ps.fail .b { background: var(--bad); border-color: var(--bad); color: #fff; }
.ps.done, .ps.current, .ps.fail { color: var(--text); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 56px 0 0; margin-top: 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-contact, .footer-links, .hours-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links, .hours-list { margin-top: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .ic { color: var(--gold-soft); }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; max-width: 260px; font-variant-numeric: tabular-nums; }
.hours-list em { color: #F4A79F; font-style: normal; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.5); }

/* ==========================================================
   ADMIN
   ========================================================== */
.admin { background: #F4F3EF; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex-shrink: 0; background: var(--navy-900); color: rgba(255,255,255,.7); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60; }
.sidebar .brand { padding: 4px 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.side-nav, .side-foot { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; }
.side-nav a:hover, .side-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a.active .ic { color: var(--gold-soft); }
.side-nav span { flex: 1; }
.side-nav .count { font-style: normal; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(244,243,239,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-title { font-size: 19px; font-weight: 800; flex: 1; letter-spacing: -.02em; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #F4F3EF; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 600 13.5px var(--font); color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.admin-content { padding: 28px; max-width: 1320px; width: 100%; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 80; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-head strong { color: var(--text); font-size: 14px; }
.dropdown-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.dropdown-link:hover { background: var(--surface-2); color: var(--text); }
.notif-menu { width: 360px; max-width: calc(100vw - 32px); }
.notif-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.notif-item:hover { background: var(--surface-2); color: var(--text); }
.notif-item > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.notif-item strong { font-size: 13.5px; font-weight: 600; }
.notif-item small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item time { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.notif-item.unread strong { font-weight: 800; }
.notif-item.unread { background: #F7F9FC; }
.notif-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--info-bg); color: var(--navy); }
.notif-ic.notif-cancel { background: var(--off-bg); color: var(--off); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 16px; align-items: center; color: var(--text); }
a.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.stat .s-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.s-warn { background: var(--warn-bg); color: var(--warn); }
.s-ok { background: var(--ok-bg); color: var(--ok); }
.s-info { background: var(--info-bg); color: var(--navy); }
.s-gold { background: #FBF3E4; color: var(--gold); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFCFA; }
.table .t-main { font-weight: 700; color: var(--text); display: block; }
.table .t-sub { font-size: 12.5px; color: var(--muted); display: block; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.room-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.room-tag i { width: 9px; height: 9px; border-radius: 3px; }
.code { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.filters .field { min-width: 150px; }
.filters .field.search { flex: 1; min-width: 220px; }
.filters .input, .filters .select { padding: 9px 12px; font-size: 14px; }
.filters .select { padding-right: 34px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.tabs a em { font-style: normal; font-size: 11.5px; background: var(--off-bg); padding: 0 7px; border-radius: 99px; }
.pagination { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; color: var(--text-2); padding: 0 10px; }
.pagination span.cur { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--faint); }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 4px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.conflict-box { border: 1px solid #F3C4BF; background: var(--bad-bg); color: #8E1C13; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.conflict-box ul { margin: 6px 0 0; padding-left: 18px; }
.meta-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; }
.meta-list li span:first-child { color: var(--muted); }
.meta-list li span:last-child { font-weight: 600; text-align: right; }

.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 92px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.settings-nav a:hover { background: var(--surface); color: var(--text); }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table .input { padding: 8px 10px; }
.day-pill { display: inline-block; min-width: 74px; font-weight: 700; }

.week-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.week-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.rec-item { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--c); margin-bottom: 8px; font-size: 13px; }
.rec-item strong { display: block; font-size: 13px; line-height: 1.3; }
.rec-item small { color: var(--muted); display: block; }
.rec-item .rec-actions { display: flex; gap: 8px; margin-top: 6px; font-size: 12px; }
.rec-item.inactive { opacity: .5; }

.email-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 12px; background: #F4F3EF; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.login-art { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.02); }
.login-art h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; max-width: 420px; }
.login-art p { color: rgba(255,255,255,.7); max-width: 420px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }

/* ==========================================================
   Responsif
   ========================================================== */
@media (max-width: 1080px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-layout, .booking-layout, .detail-grid { grid-template-columns: 1fr; }
  .day-panel, .side-sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .week-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-toggle { display: inline-grid; }
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .backdrop { position: fixed; inset: 0; background: rgba(15,32,53,.4); z-index: 55; display: none; }
  .sidebar.open ~ .admin-main + .backdrop, body.sidebar-open .backdrop { display: block; }
  .topbar { padding: 0 16px; }
  .admin-content { padding: 20px 16px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .user-name { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .rooms-grid, .form-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .week-day .wd-body { min-height: 48px; }
  .week-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 40px 0 32px; }
  .hero-stats { gap: 22px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .day { min-height: 64px; padding: 6px; }
  .day-evs, .day-count { display: none; }
  .day-dots { display: flex; margin-top: auto; }
  .month-head .full { display: none; }
  .month-head .short { display: inline; }
  .month-head div { padding: 8px 6px; text-align: center; }
  .day-num { margin: 0 auto; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
  .card-body { padding: 18px; }
  .card-head { padding: 16px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-room { width: 140px; }
}

@media print {
  .site-header, .site-footer, .sidebar, .topbar, .btn, .no-print { display: none !important; }
  body { background: #fff; }
}

.login-logo { width: 88px; height: 88px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); margin-bottom: 28px; }
.login-logo img { height: 68px; width: auto; }
.footer-logo-text { margin-top: 2px; }
