/* Greektopia Dashboard — layout (reuses brand variables from ../css/style.css) */
body.dash { background: var(--cream); color: var(--ink); }

/* Top bar */
.dash-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dash-top .brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.dash-top .brand-text span { color: var(--gold); }
.dash-top .dash-brand { display: inline-flex; align-items: center; gap: 10px; }
.dash-top .dash-logo { height: 20px; width: auto; display: block; filter: brightness(0); }
.dash-top .dash-admin-tag { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); border-left: 1px solid rgba(0,0,0,0.15); padding-left: 10px; }
.dash-top .who { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; color: var(--grey); }
.dash-top .who a, .dash-top .who button {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: var(--gold-deep); background: none; border: none; cursor: pointer;
}
.dash-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 24px 80px; }
.dash-wrap h1 { font-size: 1.9rem; margin-bottom: 6px; }
.dash-wrap .sub { color: var(--grey); margin-bottom: 28px; }

/* Cards / panels */
.panel { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 24px; margin-bottom: 22px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; }

/* Forms */
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.15);
}
.field .hint { font-size: 0.78rem; color: var(--grey); margin-top: 4px; }
.checkline { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.checkline input { width: auto; }

/* Overview stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--cream); border-radius: 12px; padding: 18px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold-deep); }
.stat-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); margin-top: 4px; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Small inline action buttons in tables */
.mini { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold-deep); background: #fff; cursor: pointer; margin-right: 6px; }
.mini:hover { background: var(--gold); color: #fff; }
.mini.ghost { border-color: rgba(0,0,0,0.15); color: var(--grey); }
.mini.ghost:hover { background: #eee; color: var(--ink); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th { text-align: left; font-family: var(--font-head); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); padding: 10px 12px; border-bottom: 2px solid rgba(0,0,0,0.08); }
.tbl td { padding: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); vertical-align: middle; }
.tbl tr:hover td { background: var(--cream); }
.tbl a { color: var(--gold-deep); font-weight: 600; }

/* Status badges */
.badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.badge.reference { background: #eef2f9; color: #55617a; }
.badge.sent      { background: #fff3d6; color: #96690a; }
.badge.viewed    { background: #dbeafe; color: #1e5fb4; }
.badge.signed    { background: #d8f5e3; color: #1c7a45; }
.badge.declined  { background: #fbe0e0; color: #b3261e; }
.pill-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-deep); }

/* Auth card */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 34px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.auth-card .logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .logo-text span { color: var(--gold); }
.auth-card .auth-logo { height: 30px; width: auto; display: block; margin: 0 auto 8px; filter: brightness(0); }
.auth-logo-link { display: block; width: fit-content; margin: 0 auto 8px; transition: opacity .15s ease; }
.auth-logo-link .auth-logo { margin: 0; }
.auth-logo-link:hover { opacity: 0.6; }
.auth-card .tag { text-align: center; color: var(--grey); font-size: 0.9rem; margin-bottom: 24px; }
.msg { font-size: 0.88rem; margin: 10px 0; padding: 10px 12px; border-radius: 8px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fbe0e0; color: #b3261e; }
.msg.ok  { background: #d8f5e3; color: #1c7a45; }
.full { width: 100%; text-align: center; }
.muted-link { color: var(--gold-deep); font-weight: 600; cursor: pointer; }

@media (max-width: 640px) { .f-row { grid-template-columns: 1fr; } .dash-wrap { padding: 24px 16px 60px; } }

/* Chapters (Phase 1) */
.org-card { border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: #fff; }
.org-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.org-card .org-school { color: var(--grey); font-size: 0.82rem; margin-bottom: 12px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.member-row .who2 { flex: 1; }
.role-tag2 { font-family: var(--font-head); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--gold-deep); }
.add-member { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.12); }
.add-member select, .add-member input { padding: 8px 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; font-size: 0.85rem; font-family: var(--font-body); }
.add-member .lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); width: 100%; }

/* Document folders (client) */
.folder { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.folder-head { background: var(--cream); padding: 12px 16px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.folder-count { background: #fff; border-radius: 999px; padding: 1px 9px; font-size: 0.72rem; color: var(--grey); margin-left: 6px; }
.folder-doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(0,0,0,0.05); font-size: 0.92rem; }
.folder-doc .fd-title { flex: 1; font-weight: 600; }
.folder-doc a { color: var(--gold-deep); font-weight: 600; }

/* ===================== CHAT (Phase 4) ===================== */
.chat-list {
  max-height: 340px; overflow-y: auto; padding: 6px 4px;
  background: var(--cream, #f4f6f9); border-radius: 12px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-empty { color: var(--grey); text-align: center; padding: 28px 10px; }
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%; background: #fff; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chat-row.mine .chat-bubble { background: var(--gold, #1863dc); color: var(--on-accent, #fff); border-color: transparent; }
.chat-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.chat-who { font-weight: 700; font-size: 0.72rem; }
.chat-time { font-size: 0.66rem; opacity: 0.65; }
.chat-body { font-size: 0.92rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 10px; }
.chat-form input {
  flex: 1; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px; font: inherit;
}
.chat-form input:focus { outline: none; border-color: var(--gold, #1863dc); }

/* ===================== INSPIRATION (Phase 5) ===================== */
.inspo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.inspo-card { position: relative; background: var(--cream, #f4f6f9); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.inspo-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.inspo-card.link a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; text-decoration: none; color: var(--gold-deep, #0056a7); background: #fff; }
.inspo-link-ico { font-size: 2rem; }
.inspo-link-host { font-size: 0.8rem; font-weight: 600; margin-top: 6px; word-break: break-all; padding: 0 8px; text-align: center; }
.inspo-cap { padding: 8px 10px; font-size: 0.8rem; color: var(--black, #17181c); line-height: 1.3; }
.inspo-del {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px;
  border: none; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.inspo-del:hover { background: rgba(0,0,0,0.8); }

/* ---- photo gallery ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo-card { position: relative; margin: 0; background: var(--cream, #f4f6f9); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.photo-card img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .25s ease; }
.photo-card video { width: 100%; height: 190px; object-fit: cover; display: block; background: #000; }
.photo-card a:hover img { transform: scale(1.04); }
.photo-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 0.82rem; color: var(--black, #17181c); }
.photo-cap-txt { line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-actions { display: flex; gap: 4px; flex-shrink: 0; }
.photo-actions .mini { text-decoration: none; padding: 2px 8px; }

/* ---- next-event countdown ---- */
.countdown-card {
  display: flex; align-items: center; gap: 18px; margin-bottom: 18px;
  padding: 20px 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, var(--gold, #1863dc), var(--gold-deep, #0056a7));
  box-shadow: 0 8px 24px rgba(var(--accent-rgb, 24,99,220), 0.28);
}
.countdown-card .cd-tile { min-width: 78px; text-align: center; line-height: 1; background: rgba(255,255,255,0.15); border-radius: 14px; padding: 10px 6px; }
.countdown-card .cd-day { font-family: var(--font-head, Montserrat, sans-serif); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.countdown-card .cd-mon { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.92; margin-top: 4px; }
.countdown-card .cd-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.countdown-card .cd-title { font-family: var(--font-head, Montserrat, sans-serif); font-size: 1.3rem; font-weight: 700; margin: 2px 0; }
.countdown-card .cd-sub { font-size: 0.9rem; opacity: 0.92; }

/* ---- your event planner ---- */
.planner-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.planner-card { display: flex; gap: 16px; align-items: flex-start; min-width: 260px; flex: 1 1 300px; }
.planner-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(var(--accent-rgb, 24,99,220), 0.2); }
.planner-initials { display: flex; align-items: center; justify-content: center; font-family: var(--font-head, Montserrat, sans-serif); font-weight: 700; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--gold, #1863dc), var(--gold-deep, #0056a7)); }
.planner-info { min-width: 0; }
.planner-name { font-family: var(--font-head, Montserrat, sans-serif); font-weight: 700; font-size: 1.1rem; color: var(--black, #17181c); }
.planner-title { font-size: 0.85rem; color: var(--gold-deep, #0056a7); font-weight: 600; margin-bottom: 6px; }
.planner-bio { font-size: 0.88rem; color: var(--grey, #565c66); line-height: 1.45; margin: 0 0 8px; }
.planner-contact { font-size: 0.88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.planner-contact a { color: var(--black, #17181c); text-decoration: none; font-weight: 600; }
.planner-contact a:hover { color: var(--gold-deep, #0056a7); text-decoration: underline; }
.planner-dot { color: var(--grey, #565c66); }

/* ---- payment tracker ---- */
.pay-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.pay-stat .pay-num { font-family: var(--font-head, Montserrat, sans-serif); font-weight: 800; font-size: 1.6rem; color: var(--black, #17181c); }
.pay-stat .pay-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey, #565c66); }
.pay-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,0.08); overflow: hidden; margin-top: 14px; }
.pay-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold, #1863dc), var(--gold-deep, #0056a7)); transition: width .4s ease; }
.roster-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.06); margin-bottom: 8px; }
.roster-row.is-paid { background: rgba(12,166,120,0.07); border-color: rgba(12,166,120,0.25); }
.roster-check { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; font-weight: 500; }
.roster-check input { width: 18px; height: 18px; cursor: pointer; }
.roster-amt { font-weight: 600; font-size: 0.9rem; }

/* ---- planning timeline / checklist ---- */
.ck-progress { margin-bottom: 4px; }
.ck-prog-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--grey, #565c66); margin-bottom: 6px; }
.ck-prog-head strong { color: var(--black, #17181c); }
.ck-row .ck-txt { flex: 1; }
.ck-due { font-size: 0.76rem; font-weight: 600; color: var(--grey, #565c66); white-space: nowrap; margin: 0 6px; }
.ck-due.od { color: #c92a2a; }
.ck-row.done .ck-due { text-decoration: none; opacity: 0.6; }

/* ---- public RSVP page ---- */
.rsvp-card { max-width: 460px; }
.rsvp-head { text-align: center; margin-bottom: 18px; }
.rsvp-event { font-family: var(--font-head, Montserrat, sans-serif); font-size: 1.7rem; line-height: 1.15; margin: 4px 0; color: var(--black, #17181c); }
.rsvp-meta { color: var(--grey, #565c66); font-size: 0.92rem; }
.rsvp-choice { display: flex; flex-direction: column; gap: 8px; }
.rsvp-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 10px; cursor: pointer; font-weight: 500; transition: all .15s ease; }
.rsvp-opt:has(input:checked) { border-color: var(--gold, #1863dc); background: rgba(var(--accent-rgb,24,99,220),0.06); }
.rsvp-opt input { width: 18px; height: 18px; }

/* ---- RSVP management (dashboard) ---- */
.rsvp-linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--cream, #f4f6f9); border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 10px 12px; }
.rsvp-linkbox code { flex: 1; min-width: 180px; font-size: 0.82rem; color: var(--ink, #17181c); overflow-wrap: anywhere; }
.rsvp-tally { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 14px; }
.rsvp-tally .pay-num { font-family: var(--font-head, Montserrat, sans-serif); font-weight: 800; font-size: 1.6rem; color: var(--black, #17181c); }
.rsvp-tally .pay-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey, #565c66); }
.rsvp-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; margin-bottom: 8px; font-size: 0.9rem; }
.rsvp-row.not-going { opacity: 0.55; }
.rsvp-row .rsvp-diet { color: var(--grey, #565c66); font-size: 0.85rem; }
.rsvp-row .rsvp-badge { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.rsvp-row .rsvp-badge.go { background: rgba(12,166,120,0.15); color: #087f5b; }
.rsvp-row .rsvp-badge.no { background: rgba(0,0,0,0.08); color: var(--grey, #565c66); }
@media (max-width: 620px) { .rsvp-row { grid-template-columns: 1fr auto; } .rsvp-row .rsvp-diet { grid-column: 1 / -1; } }

/* ===================== MODAL (Phase 6 signing) ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,24,28,0.55); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  position: relative; background: #fff; border-radius: 16px; padding: 30px;
  max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto;
}
.modal-x {
  position: absolute; top: 14px; right: 16px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; color: var(--grey); cursor: pointer;
}
.modal-x:hover { color: var(--black, #17181c); }

/* ===================== EVENT PLANNING TOOLS (Phase 6 extras) ===================== */
.et-h { font-size: 0.95rem; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.et-count { font-weight: 500; font-size: 0.8rem; color: var(--grey); margin-left: 8px; }
.et-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.et-add input, .et-add select {
  flex: 1; min-width: 130px; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.14);
  border-radius: 9px; font: inherit;
}
.et-add input:focus, .et-add select:focus { outline: none; border-color: var(--gold, #1863dc); }
.et-add .btn { flex: 0 0 auto; }
.et-list { display: flex; flex-direction: column; gap: 6px; }
.et-empty { color: var(--grey); font-size: 0.9rem; padding: 4px 0; }
.et-sub { color: var(--grey); font-size: 0.8rem; margin-top: 2px; }
.et-del {
  border: none; background: none; color: var(--grey); font-size: 1.2rem; line-height: 1;
  cursor: pointer; padding: 0 4px; margin-left: auto;
}
.et-del:hover { color: #b3261e; }
.ck-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--cream, #f4f6f9); border-radius: 9px; cursor: pointer;
}
.ck-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold, #1863dc); }
.ck-row.done span { text-decoration: line-through; color: var(--grey); }
.vn-row, .gs-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--cream, #f4f6f9); border-radius: 9px;
}
.vn-row > div:first-child, .gs-row > div:first-child { flex: 1; }
.gs-row select, .vn-row select {
  padding: 6px 8px; border: 1px solid rgba(0,0,0,0.14); border-radius: 7px; font: inherit; font-size: 0.85rem;
}

/* ===================== DASHBOARD V2 — SIDEBAR SHELL ===================== */
body.dash { background-color: #f4f6f9; }
.dash-shell { display: flex; min-height: 100vh; align-items: stretch; }
.dash-sidebar {
  width: 236px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(var(--accent-rgb,24,99,220),0.07), #fff 210px), #fff;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex; flex-direction: column; padding: 20px 14px;
  position: sticky; top: 0; height: 100vh;
}
.dash-sidebar .dash-brand { display: block; padding: 4px 8px 18px; }
.dash-sidebar .dash-logo { height: 22px; width: auto; filter: brightness(0); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 14px; border: none; background: none; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.nav-btn .ni { width: 18px; text-align: center; color: var(--grey); font-size: 0.95rem; }
.nav-btn:hover { background: var(--cream); }
.nav-btn.active { background: var(--gold); color: #fff; }
.nav-btn.active .ni { color: #fff; }
.dash-signout {
  margin-top: 12px; padding: 10px; border: 1px solid rgba(0,0,0,0.12);
  background: none; border-radius: 10px; font-family: var(--font-body);
  font-weight: 600; color: var(--grey); cursor: pointer;
}
.dash-signout:hover { color: var(--ink); border-color: rgba(0,0,0,0.25); }

.dash-content { flex: 1; min-width: 0; padding: 0 34px 60px; }
.dash-topbar {
  display: flex; align-items: center; gap: 16px; padding: 22px 0 18px;
  position: sticky; top: 0; background: #f4f6f9; z-index: 10;
}
.dash-topbar h1 { font-size: 1.5rem; flex: 1; }
.dash-topbar .who { color: var(--grey); font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.sidebar-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

.view { display: none; }
.view.active { display: block; }

/* Calendar */
.cal-head { display: flex; align-items: center; gap: 14px; }
.cal-head h2 { flex: 1; text-align: center; margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; }
.cal-dow { text-align: center; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); padding: 6px 0; }
.cal-day {
  min-height: 116px; border: 1px solid rgba(0,0,0,0.07); border-radius: 12px;
  padding: 9px 10px; cursor: pointer; background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.cal-day:hover { border-color: var(--gold); background: var(--cream); }
.cal-day.empty { border: none; background: none; cursor: default; }
.cal-day.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cal-day .dnum { font-weight: 700; font-size: 0.95rem; }
.cal-day.today .dnum { color: var(--gold-deep); }
.cal-ev { margin-top: 5px; font-size: 0.72rem; background: var(--gold); color: #fff; border-radius: 6px; padding: 3px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.theme-swatch { border: 2px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; background: #fff; transition: border-color .15s ease; font: inherit; }
.theme-swatch:hover { border-color: rgba(0,0,0,0.2); }
.theme-swatch.active { border-color: currentColor; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.theme-dot { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 10px; margin-bottom: 10px; }
.theme-emoji { font-size: 1.5rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.theme-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.theme-desc { font-size: 0.76rem; color: var(--grey); margin-top: 1px; }
.theme-current { font-size: 0.72rem; font-weight: 700; color: currentColor; margin-top: 6px; }

/* Settings tabs */
.settings-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.set-tab { border: 1px solid rgba(0,0,0,0.1); background: #fff; padding: 9px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--ink); transition: all .15s ease; }
.set-tab:hover { border-color: var(--gold); }
.set-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.set-panel { display: none; }
.set-panel.active { display: block; }
.acct-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.acct-row:last-child { border-bottom: none; }
.acct-row .acct-k { color: var(--grey); font-size: 0.9rem; }
.acct-row .acct-v { font-weight: 600; text-align: right; }
.notif-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; cursor: pointer; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.05); }
.notif-row:last-child { border-bottom: none; }
.notif-row input { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.danger-zone { border: 1px solid rgba(201,42,42,0.28) !important; }
.danger-zone h2 { color: #c92a2a; }

/* Overview event list */
.sem-group + .sem-group { margin-top: 18px; }
.sem-head { font-family: var(--font-head, Montserrat, sans-serif); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep, #0056a7); padding: 4px 0; border-bottom: 2px solid rgba(var(--accent-rgb,24,99,220),0.18); margin-bottom: 4px; }
.ov-ev { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ov-ev:last-child { border-bottom: none; }
.ov-ev .when { color: var(--grey); font-size: 0.85rem; }

/* ===== Themes: accent color + a whisper-faint page tint. Subtle, not busy. ===== */
body.dash[data-theme="rose"]     { --gold:#e0407a; --gold-deep:#b02063; --gold-light:#f06595; --accent-rgb:224,64,122; background-color:#faf6f8; }
body.dash[data-theme="lavender"] { --gold:#7048e8; --gold-deep:#5a35c9; --gold-light:#9775fa; --accent-rgb:112,72,232; background-color:#f8f6fc; }
body.dash[data-theme="emerald"]  { --gold:#0ca678; --gold-deep:#087f5b; --gold-light:#20c997; --accent-rgb:12,166,120; background-color:#f5faf7; }
body.dash[data-theme="sunset"]   { --gold:#f76707; --gold-deep:#d9480f; --gold-light:#ff922b; --accent-rgb:247,103,7; background-color:#fdf8f4; }

@media (max-width: 860px) {
  .dash-sidebar { position: fixed; left: 0; top: 0; z-index: 300; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
  .dash-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .dash-content { padding: 0 18px 50px; }
}
