/* ==========================================================================
   Backstage — light, print-friendly content with a dark "backstage wings"
   sidebar. Gold spotlight accents throughout.
   ========================================================================== */

:root {
  /* content (light) */
  --bg: #f3f5f9;
  --bg-raised: #f7f8fb;
  --bg-panel: #ffffff;
  --bg-hover: #edf0f6;
  --line: #dfe4ee;
  --text: #24273a;
  --text-muted: #6c7390;
  --gold: #eab63f;
  --gold-deep: #c98f1b;
  --gold-text: #8a6210;         /* gold that passes contrast on white */
  --danger: #d6455d;
  --ok: #1f9e6d;

  /* sidebar (dark) */
  --side-bg-1: #131735;
  --side-bg-2: #0e1128;
  --side-line: #2b3163;
  --side-text: #9aa1c9;
  --side-text-bright: #e8eaf6;
  --side-hover: #232952;

  --kind-park: #6f5bd6;
  --kind-meal: #d96a24;
  --kind-entertainment: #cf3f8d;
  --kind-activity: #14948a;
  --kind-break: #4a78d0;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(36, 39, 58, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
code { background: var(--bg-hover); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* ---------- sidebar (stays dark — the backstage wings) ---------- */

.sidebar {
  width: 230px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--side-bg-1), var(--side-bg-2));
  border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column;
  padding: 1.2rem .9rem;
  position: sticky; top: 0; height: 100vh;
  color: var(--side-text);
}
.brand { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.8rem; padding: 0 .4rem; }
.brand-icon { font-size: 1.9rem; filter: drop-shadow(0 0 10px rgba(242, 193, 78, .45)); }
.brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; color: var(--side-text-bright); }
.brand-text small { display: block; font-size: .62rem; font-weight: 500; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }

.sidebar nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .8rem; border-radius: 10px;
  color: var(--side-text); font-weight: 500; font-size: .95rem;
  transition: background .15s, color .15s;
}
.sidebar nav a:hover { background: var(--side-hover); color: var(--side-text-bright); }
.sidebar nav a.active { background: var(--side-hover); color: var(--gold); }
.sidebar-foot { margin-top: auto; }

/* ---------- layout ---------- */

.main { flex: 1; padding: 1.8rem 2.2rem 4rem; min-width: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.7rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.crumb { font-size: .85rem; color: var(--text-muted); margin-bottom: .3rem; }
.crumb a:hover { color: var(--gold-text); }

.muted { color: var(--text-muted); }
.muted-sm { color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.empty { color: var(--text-muted); padding: 1rem 0; }
.section-title { margin: 2rem 0 1rem; font-size: 1.15rem; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.3rem;
}
.panel h2 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: baseline; gap: .6rem; }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.3rem; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---------- buttons & pills ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 10px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--text);
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #241c04; box-shadow: 0 1px 4px rgba(201, 143, 27, .4); }
.btn-ghost { border-color: var(--line); color: var(--text-muted); background: var(--bg-panel); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--bg-panel); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }

.status-pill {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25em .7em; border-radius: 99px;
}
.status-planning { background: #e3ecfc; color: #2f5eb8; }
.status-booked { background: #ddf3e8; color: #17805a; }
.status-traveling { background: #fdf0d2; color: #8a6210; }
.status-completed { background: #e9ebf2; color: var(--text-muted); }

.cat-pill {
  font-size: .68rem; font-weight: 700; padding: .3em .7em; border-radius: 99px;
  background: var(--bg-hover); color: var(--text-muted); white-space: nowrap;
}
.cat-welcome { color: var(--ok); }
.cat-payment-reminder { color: var(--gold-text); }
.cat-dining-day { color: var(--kind-meal); }
.cat-lightning-lane { color: #a07d00; }
.cat-pre-trip { color: var(--kind-activity); }
.cat-welcome-home { color: var(--kind-park); }
.cat-bounce-back { color: var(--kind-entertainment); }

.dest-chip {
  font-size: .68rem; font-weight: 700; padding: .15em .55em; border-radius: 6px;
  background: var(--bg-hover); color: var(--text-muted); white-space: nowrap;
}

/* ---------- dashboard ---------- */

.stat-row { display: flex; gap: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.stat-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.6rem; min-width: 160px; box-shadow: var(--shadow);
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gold-text); }
.stat-alert .stat-value { color: var(--danger); }
.stat-label { color: var(--text-muted); font-size: .85rem; }

.due-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 1rem 0 .4rem; }
.due-group.overdue { color: var(--danger); }

.due-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .7rem; border-radius: 10px; margin-bottom: .2rem;
}
a.due-row:hover { background: var(--bg-hover); }
.due-icon { font-size: 1.3rem; width: 1.8rem; text-align: center; flex-shrink: 0; }
.due-main { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.due-client { font-weight: 700; font-size: .95rem; }
.due-what { color: var(--text-muted); font-size: .84rem; }
.due-date {
  text-align: right; font-weight: 700; font-size: .9rem; flex-shrink: 0;
  display: flex; flex-direction: column;
  width: 108px;                     /* column-aligned deadlines down the list */
}
.due-date small { color: var(--text-muted); font-weight: 400; }
.due-date.urgent { color: var(--gold-text); }
.due-date.overdue { color: var(--danger); }

.trip-chip {
  display: flex; flex-direction: column; gap: .15rem; position: relative;
  padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  margin-bottom: .5rem; transition: border-color .15s;
}
.trip-chip:hover { border-color: var(--gold); }
.trip-chip.traveling { border-color: rgba(201, 143, 27, .6); background: #fdf8ea; }
.trip-chip .countdown { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--gold-text); }

/* ---------- clients ---------- */

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.2rem; }
.client-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
  display: flex; flex-direction: column; gap: .35rem;
}
.client-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.client-card.past { opacity: .75; }
.client-card-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.client-card-top h3 { font-size: 1.15rem; }
.client-card-top small { color: var(--text-muted); font-weight: 400; }

.client-card-metrics { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.countdown-big { font-size: .95rem; color: var(--text-muted); }
.countdown-big strong { font-size: 1.6rem; color: var(--gold-text); }
.countdown-big.traveling-now { color: var(--gold-text); font-weight: 700; }

.progress-wrap { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.progress-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--gold-deep) calc(var(--pct) * 1%), var(--bg-hover) 0);
  display: grid; place-items: center;
}
.progress-ring span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-panel);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.next-milestone {
  margin-top: .7rem; padding: .5rem .7rem; border-radius: 8px;
  background: var(--bg-raised); border: 1px solid var(--line); font-size: .84rem; color: var(--text-muted);
}
.next-milestone.urgent { color: var(--gold-text); background: #fdf8ea; border-color: #f2e3b6; }
.next-milestone.overdue { color: var(--danger); background: #fbeef0; border-color: #f2ccd3; }

/* ---------- trip hub ---------- */

.head-countdown { flex-shrink: 0; }
.countdown-hero {
  font-size: 2.6rem; font-weight: 800; color: var(--gold-text); text-align: center; line-height: 1;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.6rem; box-shadow: var(--shadow);
}
.countdown-hero small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-top: .4rem; letter-spacing: .08em; text-transform: uppercase; }

.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabs a {
  padding: .6rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--gold-text); border-bottom-color: var(--gold-deep); }
.tab-badge {
  background: var(--bg-hover); border-radius: 99px; padding: .1em .55em;
  font-size: .72rem; margin-left: .3rem;
}

.party-list { list-style: none; }
.party-list li { padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.party-list li:last-child { border-bottom: none; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-top: .8rem; }
.facts dd { margin-top: .15rem; }
.notes { color: var(--text-muted); white-space: pre-wrap; }

/* ---------- milestones timeline ---------- */

.timeline { display: flex; flex-direction: column; }
.timeline-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .6rem; border-left: 3px solid var(--line); margin-left: .5rem;
}
.timeline-row.done { opacity: .55; }
.timeline-row.done .due-main strong { text-decoration: line-through; }

.check-btn {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--bg-panel); color: var(--ok);
  font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.check-btn:hover:not(:disabled) { border-color: var(--ok); }
.timeline-row.done .check-btn, .hw-card.completed .check-btn { border-color: var(--ok); background: #ddf3e8; }
.check-btn:disabled { cursor: not-allowed; opacity: .4; }

.inline-form { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 120px; }
.inline-form input[type=date] { flex: 0 0 auto; }
.icon-input { flex: 0 0 3.2rem !important; min-width: 0 !important; text-align: center; }

/* ---------- homework levels ---------- */

.levels { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.level-col {
  flex: 1; min-width: 200px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; transition: opacity .5s, filter .5s, border-color .5s;
}
.level-col.locked { opacity: .5; filter: grayscale(.9); }
.level-col.complete { border-color: #9ed9be; background: #f4fbf7; }
.level-col.just-unlocked { animation: unlock 1.4s ease; }
@keyframes unlock {
  0% { opacity: .5; filter: grayscale(.9); transform: scale(1); }
  45% { opacity: 1; filter: none; transform: scale(1.04); border-color: var(--gold); box-shadow: 0 0 24px rgba(234, 182, 63, .55); }
  100% { transform: scale(1); }
}

.level-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.level-head h3 { font-size: .95rem; }
.level-num { font-size: 1.2rem; }

.hw-card {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem; margin-bottom: .6rem;
  transition: border-color .2s;
}
.hw-card.completed { border-color: #9ed9be; }
.hw-card.completed .hw-body strong { text-decoration: line-through; color: var(--text-muted); }
.hw-card .hw-icon { font-size: 1.3rem; }
.hw-card .hw-body { flex: 1; min-width: 0; }
.hw-card .hw-body strong { font-size: .88rem; display: block; margin-bottom: .15rem; }
.hw-card .check-btn { width: 24px; height: 24px; font-size: .8rem; }

/* ---------- planner ---------- */

.planner { display: flex; gap: 1.1rem; align-items: flex-start; }

.bucket {
  width: 250px; flex-shrink: 0;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; max-height: calc(100vh - 180px); overflow-y: auto;
  position: sticky; top: 1rem; box-shadow: var(--shadow);
}
#bucket-search { width: 100%; margin-bottom: .8rem; }
.bucket-group summary {
  cursor: pointer; font-weight: 700; font-size: .85rem; padding: .45rem .2rem;
  color: var(--text-muted); list-style: none; display: flex; justify-content: space-between;
}
.bucket-group summary::before { content: '▸ '; }
.bucket-group[open] summary::before { content: '▾ '; }
.bucket-items { display: flex; flex-direction: column; gap: .35rem; padding: .2rem 0 .6rem; min-height: 8px; }

.p-item {
  border-radius: 9px; padding: .45rem .6rem .45rem .8rem;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  font-size: .84rem; cursor: grab; position: relative;
  display: flex; flex-direction: column; gap: .1rem;
  user-select: none;
}
.p-item:active { cursor: grabbing; }
.p-item-name { font-weight: 600; padding-right: 1rem; }
.p-item-park { font-size: .7rem; color: var(--text-muted); }
.kind-park { border-left-color: var(--kind-park); }
.kind-meal { border-left-color: var(--kind-meal); }
.kind-entertainment { border-left-color: var(--kind-entertainment); }
.kind-activity { border-left-color: var(--kind-activity); }
.kind-break { border-left-color: var(--kind-break); }

.p-note { font-size: .72rem; color: var(--gold-text); font-weight: 600; }
.p-note.empty { display: none; }
.p-item.placed:hover .p-note.empty { display: block; }
.p-item.placed:hover .p-note.empty::before { content: '+ add note'; color: var(--text-muted); font-style: italic; font-weight: 400; }

.rope-badge { display: none; font-size: .8rem; position: absolute; top: -7px; left: -7px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.p-item.rope-drop .rope-badge { display: block; }
.p-item.rope-drop { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep); }

.p-remove {
  position: absolute; top: .25rem; right: .35rem;
  background: none; border: none; color: var(--text-muted); font-size: .95rem;
  cursor: pointer; opacity: 0; transition: opacity .15s;
  line-height: 1;
}
.p-item:hover .p-remove { opacity: 1; }
.p-remove:hover { color: var(--danger); }

.drag-ghost { opacity: .4; }

.board-scroll { flex: 1; overflow-x: auto; padding-bottom: 1rem; min-width: 0; }
.board { display: flex; gap: .8rem; min-width: min-content; }
.day-col {
  width: 215px; flex-shrink: 0;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem; box-shadow: var(--shadow);
}
.day-col.today { border-color: var(--gold-deep); box-shadow: 0 0 14px rgba(201, 143, 27, .25); }
.day-head { margin-bottom: .6rem; }
.day-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; padding: 0 .1rem; }

.park-slot {
  min-height: 42px; border: 2px dashed var(--line); border-radius: 9px; padding: .25rem;
  transition: border-color .15s;
}
.park-slot:empty::after {
  content: '🎡 drop a park'; display: block; text-align: center;
  color: var(--text-muted); font-size: .74rem; padding: .5rem 0;
}
.park-slot .p-item { background: linear-gradient(135deg, #efeafd, var(--bg-panel)); }

.block { margin-bottom: .55rem; }
.block-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: .25rem; padding-left: .15rem;
}
.cell {
  min-height: 40px; border-radius: 9px; padding: .3rem;
  background: var(--bg); border: 1px solid transparent;
  display: flex; flex-direction: column; gap: .35rem;
  transition: border-color .15s, background .15s;
}
.cell:hover { border-color: var(--line); }

.note-pop {
  position: absolute; z-index: 50; display: flex; flex-direction: column; gap: .45rem;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem; box-shadow: 0 8px 28px rgba(36, 39, 58, .18); width: 320px;
}
.note-pop-row { display: flex; gap: .4rem; }
.note-pop-row input { flex: 1; }
.rope-toggle {
  display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised);
  padding: .45rem .6rem; font-size: .84rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; text-align: left;
}
.rope-toggle small { font-weight: 400; }
.rope-toggle .rope-toggle-icon { filter: grayscale(1); opacity: .6; }
.rope-toggle.on { border-color: var(--gold-deep); background: #fdf8ea; color: var(--gold-text); }
.rope-toggle.on .rope-toggle-icon { filter: none; opacity: 1; }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 99;
  background: var(--danger); color: #fff; font-weight: 600; font-size: .9rem;
  padding: .7rem 1.3rem; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- forms ---------- */

input, select, textarea {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: .55rem .7rem; font-size: .9rem; font-family: inherit;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(234, 182, 63, .45); border-color: var(--gold-deep); }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); margin-bottom: .8rem; }
.check-label { flex-direction: row; align-items: center; }
.check-label input { width: auto; }

.form-panel { max-width: 720px; }
.form-panel h2 { margin: 1.2rem 0 .9rem; }
.form-panel h2:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1rem; }
.party-row { display: flex; gap: .6rem; margin-bottom: .5rem; }
.party-row input[type=number] { width: 90px; flex-shrink: 0; }

.dest-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.dest-option { flex-direction: row; margin: 0; }
.dest-option input { position: absolute; opacity: 0; width: 0; }
.dest-option span {
  display: block; text-align: center; padding: .55rem .8rem; min-width: 92px;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: .8rem; font-weight: 600; line-height: 1.5; background: var(--bg-panel);
}
.dest-option input:checked + span { border-color: var(--gold-deep); background: #fdf8ea; color: var(--gold-text); }

/* ---------- email templates ---------- */

.email-list { display: flex; flex-direction: column; gap: .4rem; }
.email-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-panel);
}
a.email-row:hover { border-color: var(--gold); }
.row-actions { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }

.merge-toolbar { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.merge-chip {
  background: var(--bg-hover); border: 1px solid var(--line); color: #0e7c74;
  border-radius: 99px; padding: .25em .7em; font-size: .76rem; font-family: Consolas, monospace;
  cursor: pointer;
}
.merge-chip:hover { border-color: var(--kind-activity); }

.preview-panel { border-color: var(--gold); }
.preview-meta { margin-bottom: 1rem; max-width: 420px; }
.email-preview { background: var(--bg-raised); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 1.1rem 1.3rem; }
.ep-field { padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ep-field span { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-right: .5rem; }
.ep-body { font-family: inherit; white-space: pre-wrap; padding-top: .9rem; font-size: .92rem; line-height: 1.55; }

/* ---------- admin ---------- */

.dest-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.dest-tab {
  padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 99px;
  font-size: .84rem; font-weight: 600; color: var(--text-muted); background: var(--bg-panel);
}
.dest-tab:hover { border-color: var(--text-muted); }
.dest-tab.active { border-color: var(--gold-deep); background: #fdf8ea; color: var(--gold-text); }

.admin-group { border-bottom: 1px solid var(--line); }
.admin-group summary {
  cursor: pointer; padding: .7rem .2rem; display: flex; align-items: center; gap: .6rem;
  list-style: none;
}
.admin-group summary::before { content: '▸'; color: var(--text-muted); }
.admin-group[open] summary::before { content: '▾'; }
.admin-group .inline-delete { margin-left: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table td, .admin-table th { padding: .55rem .5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table-head th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-top: none; }
.admin-table tr.inactive { opacity: .45; }
.admin-table .row-actions { display: flex; gap: .3rem; justify-content: flex-end; }
.nowrap { white-space: nowrap; }

.kind-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-right: .35rem; }
.kind-dot.kind-park { background: var(--kind-park); }
.kind-dot.kind-meal { background: var(--kind-meal); }
.kind-dot.kind-entertainment { background: var(--kind-entertainment); }
.kind-dot.kind-activity { background: var(--kind-activity); }
.kind-dot.kind-break { background: var(--kind-break); }

.btn-x {
  background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer;
  padding: .1rem .4rem; border-radius: 6px;
}
.btn-x:hover { color: var(--danger); background: #fbeef0; }
.inline-delete { display: inline; }

/* ---------- quote hub embed ---------- */

.hub-frame-wrap { height: calc(100vh - 3.6rem); margin: -1.8rem -2.2rem -4rem; }
.hub-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- print ---------- */

@media print {
  body { background: #fff; display: block; }
  .sidebar, .bucket, .note-pop, .toast, .p-remove, .btn, .tabs, .inline-form, .form-actions { display: none !important; }
  .main { padding: 0; }
  .panel, .day-col, .client-card, .stat-card { box-shadow: none; }
  .planner { display: block; }
  .board-scroll { overflow: visible; }
  .board { flex-wrap: wrap; }
  .day-col { break-inside: avoid; width: 200px; }
  .levels { flex-wrap: wrap; overflow: visible; }
  .level-col { break-inside: avoid; }
  a.due-row { break-inside: avoid; }
}

/* ---------- misc ---------- */

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: #c6cddd; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- login ---------- */

.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--side-bg-2); }
.login-card {
  background: var(--bg-panel); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  padding: 2rem 2.2rem; width: 100%; max-width: 340px;
}
.login-brand { justify-content: center; margin-bottom: 1.4rem; }
.login-brand .brand-text { color: var(--text); }
.login-error { background: #fbeef0; color: var(--danger); border-radius: 8px; padding: .6rem .8rem; font-size: .85rem; margin-bottom: 1rem; }
.sidebar-user { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; padding: 0 .4rem; font-size: .8rem; color: var(--side-text); }
.btn-link { background: none; border: none; color: var(--gold); font-size: .78rem; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }
