/* Anime Club — Retro Night theme */
:root {
  --accent: #FF5FA8;
  --bg: #0E0E2C;
  --band: #17173F;
  --raise: #26265A;
  --line: #4B4890;
  --text: #F4F2FF;
  --muted: #C9C6E8;
  --dim: #9C98C8;
  --danger: #FF8A8A;
  --display: 'Rubik Mono One', 'Arial Black', sans-serif;
  --body: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: #7CF3FA; }
a:hover { color: #FFFFFF; }
h1, h2 { font-family: var(--display); font-weight: 400; color: #FFFFFF; margin: 0; line-height: 1.1; }
h2 { font-size: 28px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.accent-text { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--display); font-size: 20px; color: var(--text); text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.topbar nav a, .linkbtn { color: var(--text); text-decoration: none; padding: 12px 14px; font-weight: 700; font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; }
.topbar nav a:hover, .linkbtn:hover { color: var(--accent); }

/* Flash */
.flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; font-weight: 700; background: #1F4D3A; color: #DFFFEF; }
.flash-err { background: #5A1F2E; color: #FFE3E8; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
.hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-weight: 700; color: var(--accent); letter-spacing: .3em; font-size: 15px; }
.hero h1 { font-size: clamp(40px, 7vw, 58px); line-height: 1.05; overflow-wrap: anywhere; }
.tagline { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.sun-wrap { --sun: 300px; flex: 1 1 300px; display: flex; justify-content: center; position: relative; height: var(--sun); }
/* Stripes are sized as a share of the sun, so it looks the same at any size. */
.sun { width: var(--sun); height: var(--sun); border-radius: 50%; background: repeating-linear-gradient(180deg, #FFB547 0 7.333%, transparent 7.333% 10%); }
.horizon { position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: var(--bg); border-top: 3px solid var(--accent); }

/* Ticket */
.ticket { flex: 1 1 100%; display: flex; flex-wrap: wrap; background: #F4F2FF; color: var(--bg); border-radius: 14px; overflow: hidden; }
.ticket-main { flex: 999 1 420px; padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.label { font-family: var(--display); font-size: 13px; letter-spacing: .1em; }
.ticket-main .label { color: #5A31A6; }
.ticket-date { font-family: var(--display); font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.ticket-where { font-size: 18px; font-weight: 700; }
.pills { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 2px solid var(--bg); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.perf { flex: 0 0 22px; margin-left: -11px; border-left: 3px dashed var(--bg); background-image: radial-gradient(circle, var(--bg) 5px, transparent 5.5px); background-size: 100% 22px; background-repeat: repeat-y; }
.ticket-stub { flex: 1 1 260px; padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; background: var(--accent); color: var(--bg); }
.prizes { margin: 0; padding: 0; list-style: none; font-weight: 700; font-size: 17px; display: flex; flex-direction: column; gap: 6px; }
.going { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.going-who { font-size: 15px; line-height: 1.4; }
.going-hint { font-weight: 700; font-size: 13px; text-align: center; }
.ticket .going input[type=text] { background: #FFFFFF; color: var(--bg); border-color: var(--bg); border-radius: 999px; color-scheme: light; }
.ticket .going input::placeholder { color: #55507A; }
.ticket .going input[type=text]:focus { border-color: var(--bg); box-shadow: 0 0 0 3px rgba(14,14,44,.35); }
.who { margin-top: 6px; font-size: 14px; }
.who summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.who ul { margin: 6px 0 0; padding-left: 18px; columns: 2 160px; }

/* Buttons */
button { font: inherit; }
.btn-dark, .btn-accent, .btn-light, .btn-ghost, .btn-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; border: 0; }
.btn-dark { background: var(--bg); color: #FFFFFF; width: 100%; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-light { background: #F4F2FF; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); min-height: 44px; padding: 0 16px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border: 2px solid var(--danger); min-height: 44px; padding: 0 16px; }
.btn-danger:hover { background: var(--danger); color: var(--bg); }
.btn-dark:hover, .btn-accent:hover, .btn-light:hover { filter: brightness(1.1); }
.self-start { align-self: flex-start; }
.center { justify-content: center; }

/* Bands & sections */
.band { background: var(--band); }
.section { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }

/* Calendar */
.cal-layout { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.cal-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.picked { border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; display: flex; flex-direction: column; gap: 4px; }
.picked-date { font-weight: 700; color: var(--accent); }
.picked-show { font-family: var(--display); font-size: 17px; color: #FFFFFF; line-height: 1.3; }
.cal-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.cal-scroll { flex: 999 1 520px; min-width: 0; overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { text-align: center; font-weight: 700; font-size: 13px; color: var(--dim); padding: 6px 0; }
.day { min-height: 64px; border-radius: 10px; background: #1F1F4D; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.day.blank { background: transparent; }
.day.today { box-shadow: inset 0 0 0 2px var(--line); color: #FFFFFF; font-weight: 700; }
.day.meet { flex-direction: column; gap: 2px; border: 2px solid var(--accent); background: transparent; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.day.meet span { font-size: 11px; }
.day.meet:hover { background: var(--raise); }
.day.meet.on { background: var(--accent); color: var(--bg); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { flex: 1 1 260px; }
.field label, legend { font-weight: 700; }
input[type=text], input[type=password], input[type=date], input[type=time], textarea, select {
  font: inherit; color: #FFFFFF; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; min-height: 48px; width: 100%; color-scheme: dark;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form input { border-radius: 999px; background: var(--band); padding: 0 18px; }
.hint { font-size: 14px; color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > .field { flex: 1 1 140px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
form.inline { display: inline; margin: 0; }

/* Requests */
.req-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.req { background: var(--band); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.req-votes { font-family: var(--display); font-size: 24px; color: var(--accent); min-width: 44px; }
.req-title { flex: 1 1 auto; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.vote { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; color: #FFFFFF; font-weight: 700; cursor: pointer; }
.vote:hover { background: var(--raise); }
.vote.voted { background: var(--accent); color: var(--bg); }

/* Chat */
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.chat li { display: flex; gap: 12px; align-items: flex-start; }
.avatar { flex: 0 0 32px; height: 32px; margin-top: 4px; font-size: 14px; border-radius: 50%; background: var(--who, var(--accent)); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.msg { background: var(--raise); border-radius: 4px 14px 14px 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg-head { font-size: 14px; }
.msg-name { font-weight: 700; color: var(--who, var(--accent)); }
.msg-head time { color: var(--dim); margin-left: 6px; }
.msg-text { overflow-wrap: anywhere; }
.chat-form { display: flex; flex-direction: column; gap: 12px; }
.chat-form .btn-light { align-self: flex-start; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; color: var(--dim); }

/* ---------- Admin ---------- */
.adminbar { border-bottom: 2px solid var(--raise); }
.adminbar .topbar { padding-top: 14px; padding-bottom: 14px; }
.brand-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { font-weight: 700; font-size: 13px; letter-spacing: .1em; background: var(--accent); color: var(--bg); padding: 4px 10px; border-radius: 999px; }
.card { background: var(--band); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.card h1 { font-size: 22px; }
.card h2 { font-size: 22px; }
.login { padding-top: 64px; padding-bottom: 64px; max-width: 480px; }
.admin { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.admin h2 { font-size: 22px; }
.admin-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.admin-cols > .card { flex: 1 1 360px; min-width: 0; }
.admin-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.admin-main section { display: flex; flex-direction: column; gap: 12px; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row-item { background: var(--band); border-radius: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-date { font-weight: 700; color: var(--accent); min-width: 100px; }
.row-body { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.past summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--muted); }
.posts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 6px; }
.tabs a { color: #FFFFFF; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); }
.tabs a.on { background: var(--line); }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-bottom: 1px solid var(--raise); padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--raise); color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.field.end { align-self: end; }
fieldset { border: 0; margin: 0; padding: 0; }
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 48px; height: 48px; margin: 0; cursor: pointer; }
.swatch span:not(.sr) { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 3px var(--band); }
.swatch input:checked + span { border-color: #FFFFFF; }
.swatch input:focus-visible + span { outline: 3px solid #FFFFFF; outline-offset: 2px; }
code { background: var(--raise); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .ticket-main, .ticket-stub { padding: 24px; }
  .perf { display: none; }
  .ticket-stub { border-top: 3px dashed var(--bg); }
  .sun-wrap { --sun: 240px; }
  /* Menu on one line under the club name */
  .topbar { gap: 4px; padding-top: 16px; padding-bottom: 12px; }
  .topbar nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 0 -8px; width: calc(100% + 16px); }
  .topbar nav a { padding: 12px 8px; font-size: 15px; white-space: nowrap; }
  .card { padding: 20px; }
}

/* In-page updates */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.35); background: #1F4D3A; color: #DFFFEF; }
.toast-err { background: #5A1F2E; color: #FFE3E8; }
.toast[hidden] { display: none; }
.is-busy { opacity: .6; transition: opacity .15s; }
.is-busy button { cursor: progress; }

/* Chat scroll box */
.chat-box { position: relative; max-height: 500px; overflow-y: auto; overscroll-behavior-y: auto; padding: 16px; background: var(--bg); border: 2px solid var(--raise); border-radius: 14px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.chat-box:focus-visible { outline-offset: 4px; border-radius: 8px; }
.chat-older { display: block; margin: 0 auto 14px; font: inherit; font-weight: 700; font-size: 14px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.chat-older:hover { border-color: var(--accent); }
.chat-new { position: sticky; bottom: 8px; display: block; margin: 10px auto 0; font: inherit; font-weight: 700; font-size: 14px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--bg); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.chat-new[hidden], .chat-older[hidden] { display: none; }
@media (max-width: 560px) {
  .chat-box { max-height: min(55vh, 420px); padding: 12px; }
  .cal-layout { gap: 24px; }
  .cal-grid { gap: 4px; }
  .dow { font-size: 12px; }
  .day { min-height: 44px; border-radius: 8px; font-size: 15px; }
  .day.meet span { display: none; }
  .day.meet { border-width: 2px; }
}

/* Show images */
.ticket-art { flex: 0 1 240px; min-height: 220px; background: var(--bg); }
.ticket-art img { display: block; width: 100%; height: 100%; max-height: 440px; object-fit: cover; }
.picked-img { display: block; width: 100%; max-width: 280px; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .ticket-art { flex-basis: 100%; min-height: 0; }
  .ticket-art img { height: auto; max-height: 360px; }
}

/* Admin: image picker */
.img-pick { display: flex; flex-direction: column; gap: 10px; }
.img-preview { display: block; max-width: 100%; max-height: 240px; object-fit: contain; border-radius: 10px; background: var(--bg); align-self: flex-start; }
.img-preview[hidden] { display: none; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); }
.row-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 56px; }

/* Admin: posts list in its own scroll box */
.posts-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.posts-box { max-height: 520px; overflow-y: auto; border: 2px solid var(--raise); border-radius: 14px; padding: 0 16px; background: var(--bg); scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.posts-box:empty { display: none; }
.posts-box .posts li:last-child { border-bottom: 0; }
@media (max-width: 560px) { .posts-box { max-height: min(60vh, 440px); padding: 0 12px; } }

/* Admin: confirm overlay */
.btn-danger-solid { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; cursor: pointer; border: 0; background: var(--danger); color: var(--bg); }
.btn-danger-solid:hover { filter: brightness(1.08); }
.confirm-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 6, 22, .72); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); }
.confirm-overlay[hidden] { display: none; }
.confirm-card { width: 100%; max-width: 420px; background: var(--band); border: 2px solid var(--raise); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: pop .14s ease-out; }
.confirm-card h2 { font-size: 20px; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .confirm-card { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 350px) {
  .topbar nav a { padding: 12px 5px; font-size: 14px; }
}

/* Show description (scrolls when long) */
.desc-box { --thumb: #5A31A6; --track: #E2DDF7; max-height: 150px; overflow-y: auto; margin-top: 4px; padding: 2px 12px 2px 0; font-size: 16px; line-height: 1.55; color: #2A2750; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--thumb) var(--track); }
.desc-box.desc-dark { --thumb: var(--accent); --track: var(--raise); color: var(--muted); max-height: 140px; margin: 4px 0; font-size: 15px; }
.desc-box:focus-visible { outline: 2px solid var(--thumb); outline-offset: 4px; border-radius: 4px; }

/* Custom scrollbars in the Retro Night style (Chrome, Edge, Safari) */
.desc-box::-webkit-scrollbar, .chat-box::-webkit-scrollbar, .posts-box::-webkit-scrollbar { width: 10px; }
.desc-box::-webkit-scrollbar-track { background: var(--track); border-radius: 999px; }
.desc-box::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 999px; border: 2px solid var(--track); }
.chat-box::-webkit-scrollbar-track, .posts-box::-webkit-scrollbar-track { background: transparent; }
.chat-box::-webkit-scrollbar-thumb, .posts-box::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--bg); }
.desc-box::-webkit-scrollbar-thumb:hover, .chat-box::-webkit-scrollbar-thumb:hover, .posts-box::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Ticket description fills the free space in the ticket and only scrolls
   when the text is actually longer than that space. */
.ticket-main .desc-box { flex: 1 1 0; min-height: 4.8em; max-height: none; }
@media (max-width: 760px) { .ticket-main .desc-box { flex: none; max-height: 220px; } }
.desc-box::-webkit-scrollbar-button { display: none; height: 0; }
.chat-box::-webkit-scrollbar-button, .posts-box::-webkit-scrollbar-button { display: none; height: 0; }

/* Calendar: description tucked behind a toggle */
.desc-toggle { margin: 2px 0; }
.desc-toggle summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 700; font-size: 15px; color: var(--accent); }
.desc-toggle summary::-webkit-details-marker { display: none; }
.desc-toggle summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.desc-toggle[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.desc-toggle summary:hover { text-decoration: underline; }
.desc-toggle .when-open { display: none; }
.desc-toggle[open] .when-open { display: inline; }
.desc-toggle[open] .when-closed { display: none; }

/* Phones and narrow screens: month name, then the calendar, then the
   selected night's details. */
@media (max-width: 860px) {
  .cal-layout { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .cal-side { display: contents; }
  .cal-side > h2 { order: 1; }
  .cal-side > p.muted { order: 2; margin-top: -4px; }
  .cal-scroll { order: 3; flex: none; width: 100%; margin-bottom: 10px; }
  .cal-side > .picked { order: 4; }
}

/* Admin: custom date picker */
.datefield { position: relative; }
.date-btn { font: inherit; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: #FFFFFF; cursor: pointer; text-align: left; }
.date-btn:hover, .date-btn[aria-expanded="true"] { border-color: var(--accent); }
.date-btn .placeholder { color: var(--dim); }
.date-icon { flex: 0 0 18px; height: 16px; border: 2px solid var(--muted); border-top-width: 5px; border-radius: 3px; }
.dp { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--band); border: 2px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.dp[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-weight: 700; }
.dp-nav { font: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.dp-nav:hover { border-color: var(--accent); }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dp-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--dim); padding: 4px 0; }
.dp-day { font: inherit; font-size: 15px; aspect-ratio: 1; min-height: 36px; border-radius: 8px; border: 2px solid transparent; background: #1F1F4D; color: var(--text); cursor: pointer; padding: 0; }
.dp-day.sun { font-weight: 700; }
.dp-day:hover { border-color: var(--accent); }
.dp-day.today { border-color: var(--line); }
.dp-day.sel { background: var(--accent); color: var(--bg); font-weight: 700; }
.dp-day.taken, .dp-key { background: repeating-linear-gradient(135deg, #2A2A55 0 4px, #1A1A40 4px 8px); color: #6E6A99; cursor: not-allowed; text-decoration: line-through; }
.dp-day.taken:hover { border-color: transparent; }
.dp-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.dp-key { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
