:root {
  --ink: #173f4f; --muted: #65747c; --paper: #f7f5ef; --card: #fffdf8;
  --line: #dce3df; --accent: #e46d4c; --blue: #5b8db8; --green: #5a9a7c;
  --yellow: #d9a82e; --red: #c85d62; --shadow: 0 14px 36px rgba(27, 55, 64, .12);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; margin: 0; color: var(--ink); background: radial-gradient(circle at 10% -10%, #e2efe9, transparent 33%), var(--paper); font: 15px/1.4 system-ui, -apple-system, Segoe UI, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { position: relative; z-index: 5; display: grid; grid-template-columns: auto minmax(105px, 1fr) auto auto; align-items: center; gap: 18px; flex: 0 0 auto; padding: 8px clamp(16px, 2.3vw, 42px); color: white; background: rgba(23,63,79,.96); backdrop-filter: blur(12px); box-shadow: 0 5px 20px rgba(23,63,79,.16); }
h1, h2, p { margin: 0; } h1 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; } h2 { letter-spacing: -.025em; }
.version-badge { display: inline-block; vertical-align: middle; margin-left: 5px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 11px; letter-spacing: 0; opacity: .8; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; opacity: .72; font-weight: 800; }
.controls { display: flex; gap: 9px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; justify-self: end; }.planner-only.tab-inactive { visibility: hidden; pointer-events: none; }.clock { display: grid; justify-self: center; min-width: 94px; text-align: center; line-height: 1; }.clock strong { font-size: 32px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }.clock span { margin-top: 4px; font-size: 11px; text-transform: capitalize; opacity: .72; }
.main-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(255,255,255,.09); }.main-tabs button { padding: 9px 13px; color: rgba(255,255,255,.76); background: transparent; }.main-tabs button:hover { color: white; background: rgba(255,255,255,.09); }.main-tabs button.active { color: var(--ink); background: white; }
button { border: 0; border-radius: 12px; padding: 10px 15px; font-weight: 750; }
.primary { background: var(--accent); color: white; box-shadow: 0 6px 16px rgba(228,109,76,.25); }
.secondary { color: var(--ink); background: #edf1ef; }
.icon-button { width: 42px; height: 42px; padding: 0; font-size: 26px; background: rgba(255,255,255,.12); color: white; }
main { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 10px clamp(12px, 2.2vw, 42px) 12px; }
#plannerView { display: flex; flex-direction: column; gap: 7px; height: 100%; min-height: 0; overflow: hidden; }#plannerView.hidden { display: none; }
.duty-strip { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; padding: 9px 12px; margin: 0; border-radius: 14px; color: white; background: var(--ink); }.duty-card { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.11); }.duty-card i { width: 10px; height: 10px; border-radius: 50%; }.duty-card strong { font-size: 13px; }.duty-card span { font-size: 13px; opacity: .86; }
.view-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex: 0 0 auto; margin: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }.view-toolbar strong { flex: 0 0 auto; font-size: 12px; }.filter-cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }.week-choice { display: flex; align-items: center; gap: 7px; }.source-label { margin-left: 26px; }.person-filters, .week-view-buttons { display: flex; flex-wrap: wrap; gap: 7px; }.person-filter, .week-view-buttons button { padding: 7px 10px; border: 1px solid var(--line); background: white; color: var(--ink); }.person-filter.active, .week-view-buttons button.active { color: white; border-color: var(--ink); background: var(--ink); }.person-filter i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }.empty-duty { color: rgba(255,255,255,.72); font-size: 13px; }
.calendar-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }.filter-button { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--ink); background: #e5ebe8; border: 1px solid transparent; }.filter-button.off { color: var(--muted); background: transparent; border-color: var(--line); opacity: .7; }.filter-button i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.feature-view { height: 100%; display: grid; place-items: start center; padding-top: 70px; overflow: hidden; }.feature-view.hidden { display: none; }.feature-card { width: min(720px, 100%); display: flex; align-items: center; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }.feature-card h2 { margin-bottom: 6px; }.feature-card p { color: var(--muted); }.feature-icon { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; border-radius: 18px; background: #edf1ef; font-size: 34px; }
.music-view { height: 100%; padding: 18px; overflow: hidden; }.music-view.hidden { display: none; }.music-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 20px 26px; color: white; border-radius: 22px; background: linear-gradient(125deg,#173f4f,#276579); }.music-header h2 { margin: 2px 0 4px; font-size: 28px; }.music-header p { opacity: .8; }.music-kicker { font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }.music-services { display: flex; gap: 10px; }.service-button { display: inline-flex; align-items: center; padding: 12px 17px; border-radius: 999px; color: white; font-weight: 850; text-decoration: none; white-space: nowrap; }.service-button.spotify { color: #0c2616; background: #1ed760; }.service-button.youtube-music { background: #e53d3d; }
.spotify-panel { display: grid; grid-template-columns: minmax(220px,.7fr) auto minmax(0,2.3fr); gap: 13px; align-items: stretch; margin-top: 14px; }.now-playing { display:flex; align-items:center; gap:11px; min-width:0; padding:10px; border:1px solid var(--line); border-radius:15px; background:white; }.now-playing img { width:58px; height:58px; border-radius:10px; object-fit:cover; }.now-playing div { display:grid; min-width:0; }.now-playing small,.now-playing span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.now-playing strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.spotify-controls { display:flex; align-items:center; gap:6px; padding:8px; border-radius:15px; background:#e8eeeb; }.spotify-controls button { min-width:44px; padding:10px; color:var(--ink); background:white; font-size:19px; }.spotify-playlists { min-width:0; }.spotify-playlists h3 { margin:0 0 7px; font-size:14px; }.playlist-grid { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(185px,1fr); grid-template-rows:repeat(2,68px); gap:8px; overflow-x:auto; padding:0 0 4px; scrollbar-width:thin; }.playlist-card { display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; gap:9px; padding:8px; color:var(--ink); border:1px solid var(--line); border-radius:13px; background:white; text-align:left; box-shadow:none; }.playlist-card img,.playlist-placeholder { display:grid; place-items:center; width:50px; height:50px; border-radius:9px; object-fit:cover; background:#dff7e7; color:#13853d; font-size:23px; }.playlist-card span:nth-child(2) { display:grid; min-width:0; }.playlist-card strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.playlist-card small { color:var(--muted); }.playlist-card b { color:#13853d; font-size:18px; }.playlist-card:disabled { opacity:.55; }.spotify-loading,.spotify-error { display:grid; place-items:center; min-height:70px; padding:12px; color:var(--muted); border:1px dashed var(--line); border-radius:13px; }.spotify-error { color:#962e38; background:#fff0f1; }
.theme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 14px; }.theme-card { position: relative; min-height: 175px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 24px rgba(42,66,70,.07); overflow: hidden; }.theme-card::after { content:''; position:absolute; width:150px; height:150px; right:-55px; top:-55px; border-radius:50%; background:var(--theme-color); opacity:.14; }.theme-card.pop-rock { --theme-color:#e46d4c; }.theme-card.easy { --theme-color:#5b8db8; }.theme-card.motown { --theme-color:#d9a82e; }.theme-symbol { display:grid; place-items:center; width:41px; height:41px; margin-bottom:10px; border-radius:12px; color:white; background:var(--theme-color); font-size:22px; }.theme-card h3 { margin:0 0 4px; font-size:20px; }.theme-card p { min-height:21px; margin:0 0 12px; color:var(--muted); }.theme-card div { display:flex; gap:8px; }.theme-card a { padding:8px 11px; border-radius:10px; color:var(--ink); background:#edf1ef; font-weight:800; text-decoration:none; }.theme-card a:first-child { color:#0c4320; background:#d9f8e4; }.music-future { display:flex; gap:14px; align-items:center; margin-top:14px; padding:13px 16px; border:1px dashed #9bb4ad; border-radius:15px; background:rgba(255,255,255,.6); }.music-future span { color:var(--muted); }
.range-row { display: flex; justify-content: space-between; align-items: end; gap: 15px; flex: 0 0 auto; margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 5px; }.dot { width: 9px; height: 9px; border-radius: 50%; }
.type-legend span { font-weight: 700; color: var(--ink); }
.calendar { display: grid; flex: 1 1 auto; min-height: 0; gap: 8px; min-width: 850px; overflow: hidden; }.weeks-1 .calendar { grid-template-rows: minmax(0,1fr); }.weeks-2 .calendar { grid-template-rows: repeat(2,minmax(0,1fr)); }.weeks-4 .calendar { grid-template-rows: repeat(4,minmax(0,1fr)); }
.week { display: grid; grid-template-columns: 64px repeat(7, minmax(105px, 1fr)); height: 100%; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: 0 6px 18px rgba(42,66,70,.07); }
.week-block { min-height: 0; overflow: hidden; }.school-strip { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 31px; padding: 5px 10px; border-left: 4px solid var(--yellow); border-radius: 8px; background: #fff6da; font-size: 11px; overflow: hidden; }.school-strip strong { flex: 0 0 auto; }.school-pill { flex: 0 0 auto; padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.75); }.school-pill.urgent { color: #bd1e2d; font-weight: 900; background: #ffe1e4; }.school-pill.done { opacity: .5; text-decoration: line-through; }.school-empty { color: #8a7545; font-style: italic; }
.week-label { padding: 14px 8px; background: #edf1ef; text-align: center; color: var(--muted); font-weight: 800; font-size: 12px; }.week-label strong { display: block; color: var(--ink); font-size: 19px; }
.day { min-width: 0; min-height: 0; padding: 8px; border-left: 1px solid var(--line); overflow: hidden; transition: background .2s; }.day:hover { background: #fffaf1; }
.day.today { background: #fff3e7; box-shadow: inset 0 4px var(--accent); }.day.other-month { color: #829097; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }.weekday { text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 850; }.day-number { font-size: 20px; font-weight: 800; }
.quick-add { margin-left: 4px; padding: 1px 5px; border-radius: 7px; color: var(--muted); background: transparent; font-size: 16px; }.quick-add:hover { color: white; background: var(--accent); }
.events { display: grid; align-content: start; min-height: 0; gap: 4px; overflow: hidden; }.event { position: relative; width: 100%; padding: 5px 7px 5px 11px; text-align: left; border-radius: 8px; color: #183742; border: 0; background: #f0f3f1; font-size: 12px; font-weight: 650; box-shadow: none; overflow: hidden; }.event::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--person-colors); }.event.done { opacity: .55; text-decoration: line-through; }.event small { display: block; font-weight: 500; opacity: .78; }
dialog { width: min(570px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; border: 0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: var(--shadow); } dialog::backdrop { background: rgba(12,32,40,.54); backdrop-filter: blur(3px); }
form { padding: 24px; }.dialog-head { display: flex; justify-content: space-between; margin-bottom: 20px; }.close { background: transparent; font-size: 27px; padding: 0 8px; color: var(--muted); }
label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input, select, textarea { width: 100%; border: 1px solid #cbd7d2; border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; } textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }.check { display: flex; align-items: center; flex-direction: row; gap: 8px; }.check input { width: auto; }
.actions { display: flex; gap: 9px; margin-top: 20px; }.spacer { flex: 1; }.danger { background: #f8dfe1; color: #962e38; }.hidden { display: none; }
.people-field { grid-column: 1 / -1; border: 1px solid #cbd7d2; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }.people-field legend { padding: 0 5px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }.people-field small, .helper { color: var(--muted); font-size: 12px; }.people-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; }.person-choice { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; text-transform: none; letter-spacing: 0; }.person-choice input { width: auto; }.color-chip { width: 11px; height: 11px; border-radius: 50%; }
.helper { margin: 4px 0 14px; }.member-row { display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; align-items: center; margin-bottom: 9px; }.member-row input[type=color] { height: 42px; padding: 4px; }.member-row input[type=text] { height: 42px; }.remove-member, .remove-calendar { padding: 8px; background: #f8dfe1; color: #962e38; font-size: 20px; }
.duty-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-bottom: 8px; }.duty-row .remove-duty { padding: 8px; background: #f8dfe1; color: #962e38; font-size: 20px; }
.small-dialog { max-width: 390px; }.admin-dialog { width: min(760px, calc(100% - 24px)); }.admin-section { padding: 17px 0; border-top: 1px solid var(--line); }.admin-section:first-of-type { border-top: 0; padding-top: 0; }.admin-section h3 { margin: 0; font-size: 17px; }.calendar-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(190px, 1.7fr) minmax(110px, .7fr) 38px; gap: 8px; align-items: center; margin-bottom: 9px; }.calendar-row input, .calendar-row select { height: 42px; }.calendar-row .enabled-wrap { display: flex; align-items: center; gap: 5px; margin: 0; text-transform: none; letter-spacing: 0; }.calendar-row .enabled-wrap input { width: auto; height: auto; }.calendar-warning { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; color: #8b4b00; background: #fff0cf; font-size: 12px; }
.spotify-admin-status { margin:10px 0 14px; padding:10px 12px; color:#7a4d00; border-radius:10px; background:#fff0cf; font-weight:800; }.spotify-admin-status.connected { color:#0c6b31; background:#dff7e7; }.spotify-admin-actions { display:flex; gap:9px; margin:4px 0 15px; }.spotify-connect { color:#0b351a; background:#1ed760; }.spotify-device-wrap { margin-top:12px; padding:14px; border-radius:13px; background:#f0f4f2; }.spotify-device-wrap label { margin-bottom:9px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 10px 17px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.tablet-mode #members { display: none; } body.tablet-mode .topbar { padding-block: 10px; } body.tablet-mode .event { font-size: 14px; } body.tablet-mode .event small { font-size: 11px; }
@media (max-width: 1200px) { .topbar { min-width: 1080px; }.main-tabs button { padding-inline: 9px; }.view-toolbar, .range-row { min-width: 1000px; } }
@media (max-width: 900px) { body { overflow-x: auto; }.calendar { min-width: 1000px; }.week { grid-template-columns: 55px repeat(7, minmax(125px, 1fr)); }.day { padding: 8px; } }
@media (max-width: 600px) { dialog { width: calc(100% - 16px); }.form-grid { grid-template-columns: 1fr 1fr; }.topbar { align-items: flex-start; }.controls { max-width: 470px; }.calendar-row { grid-template-columns: 1fr 1fr 38px; }.calendar-row .calendar-url { grid-column: 1 / -1; grid-row: 2; }.calendar-row .remove-calendar { grid-column: 3; grid-row: 1; } }
