:root {
  --bg: #f6f4ef;
  --ink: #1f241c;
  --muted: #6f756d;
  --line: rgba(31, 36, 28, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 80px rgba(31, 36, 28, 0.14);
  --shadow-soft: 0 12px 34px rgba(31, 36, 28, 0.11);
  --green: #456d4c;
  --green-2: #dfe9dc;
  --amber: #a56e2b;
  --red: #9f3c31;
  --blue: #386a88;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.scene { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 10% 15%, rgba(211, 228, 204, 0.85), transparent 36%), radial-gradient(circle at 80% 10%, rgba(231, 201, 165, 0.78), transparent 30%), linear-gradient(140deg, #f7f5ef 0%, #edf3ec 44%, #f6eee2 100%); z-index: -2; }
.scene::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.42) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at center, rgba(0,0,0,0.65), transparent 70%); }
.orb { position: absolute; border-radius: 999px; filter: blur(18px); opacity: 0.72; }
.orb-one { width: 420px; height: 420px; top: -120px; left: -90px; background: rgba(139, 174, 134, 0.48); }
.orb-two { width: 360px; height: 360px; top: 12%; right: -110px; background: rgba(223, 176, 121, 0.4); }
.orb-three { width: 300px; height: 300px; bottom: -90px; left: 42%; background: rgba(145, 183, 196, 0.3); }
.glass-card { background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.68); box-shadow: var(--shadow-soft); backdrop-filter: blur(28px) saturate(1.35); -webkit-backdrop-filter: blur(28px) saturate(1.35); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(460px, 100%); padding: 34px; border-radius: var(--radius-xl); }
.login-card h1 { margin: 12px 0 8px; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 0.96; }
.badge, .pill, .status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(31, 36, 28, 0.08); color: var(--green); font-weight: 750; font-size: 0.82rem; }
form label { display: grid; gap: 8px; margin: 18px 0; color: var(--muted); font-size: 0.92rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.7); color: var(--ink); padding: 12px 14px; outline: none; transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
input:focus, select:focus, textarea:focus { border-color: rgba(69, 109, 76, 0.48); box-shadow: 0 0 0 5px rgba(69, 109, 76, 0.12); background: rgba(255, 255, 255, 0.92); }
textarea { min-height: 96px; resize: vertical; }
.primary-button, .ghost-button, .chip-button, .danger-button, .tiny-button { border: 0; border-radius: 999px; padding: 12px 16px; font-weight: 800; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { color: white; background: linear-gradient(135deg, #315a3a, #5a7e55); box-shadow: 0 12px 24px rgba(49, 90, 58, 0.25); }
.primary-button:hover, .ghost-button:hover, .chip-button:hover, .danger-button:hover, .tiny-button:hover { transform: translateY(-1px); }
.ghost-button, .chip-button, .tiny-button { color: var(--ink); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); }
.danger-button { color: #fff; background: linear-gradient(135deg, #8f332d, #b8694d); }
.tiny-button { padding: 7px 10px; font-size: 0.76rem; }
.error-text { color: var(--red); min-height: 20px; }
.muted { color: var(--muted); }
.tiny { font-size: 0.82rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; padding: 18px; }
.sidebar { position: sticky; top: 18px; height: calc(100vh - 36px); border-radius: var(--radius-xl); padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.brand-mark { display: flex; align-items: center; gap: 12px; padding: 10px 8px; }
.brand-mark strong, .brand-mark small { display: block; }
.logo-dot { width: 42px; height: 42px; border-radius: 14px; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 18%), linear-gradient(140deg, #4f764b, #d48a4e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 24px rgba(31, 36, 28, 0.16); }
.nav-list { display: grid; gap: 8px; }
.nav-list button { text-align: left; border: 0; border-radius: 17px; background: transparent; padding: 13px 14px; color: var(--muted); font-weight: 760; }
.nav-list button.active, .nav-list button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9); }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.user-mini { padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255,255,255,0.72); }
.workspace { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-width: 0; }
.topbar { border-radius: var(--radius-xl); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--green); font-weight: 840; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; }
.topbar h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.05em; }
.topbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.pill.success, .status-pill.ready, .status-pill.checked-in, .status-pill.complete { color: var(--green); background: rgba(223, 233, 220, 0.78); }
.status-pill.needs-help, .status-pill.urgent, .status-pill.high { color: var(--red); background: rgba(255, 232, 222, 0.82); }
.status-pill.medium, .status-pill.watching { color: var(--amber); background: rgba(255, 240, 211, 0.8); }
.status-pill.unconfirmed, .status-pill.open, .status-pill.low, .status-pill.upcoming, .status-pill.active, .status-pill.ended { color: var(--blue); background: rgba(221, 237, 246, 0.82); }
.view { display: grid; gap: 18px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 14px; }
.stat-card, .panel, .event-card, .leader-card, .issue-card, .task-card { border-radius: var(--radius-lg); background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.76); box-shadow: 0 14px 42px rgba(31, 36, 28, 0.09); }
.stat-card { padding: 18px; min-height: 132px; display: grid; align-content: space-between; }
.stat-card strong { display: block; font-size: 2.35rem; line-height: 1; letter-spacing: -0.07em; }
.stat-card span { color: var(--muted); font-weight: 720; }
.panel { padding: 18px; }
.panel-header, .section-header, .inline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-header h3, .section-header h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.event-list, .leader-list, .issue-list, .task-list { display: grid; gap: 12px; }
.day-column { display: grid; gap: 12px; align-content: start; }
.day-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; color: var(--muted); font-weight: 850; }
.event-card { padding: 15px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(#4e7650, #d08b53); opacity: 0.75; }
.event-card.ops::before { background: linear-gradient(#386a88, #8aa8b8); }
.event-card h4 { margin: 0; font-size: 1.05rem; letter-spacing: -0.03em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.84rem; font-weight: 720; }
.assignment-line { display: grid; gap: 8px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.leader-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 999px; border: 1px solid rgba(31, 36, 28, 0.1); background: rgba(255, 255, 255, 0.74); font-size: 0.82rem; font-weight: 780; user-select: none; }
.leader-chip[draggable="true"] { cursor: grab; }
.leader-dot { width: 11px; height: 11px; border-radius: 999px; background: linear-gradient(135deg, #4f764b, #d48a4e); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }
.leader-dot.seed-2 { background: linear-gradient(135deg, #386a88, #8aa8b8); }
.leader-dot.seed-3 { background: linear-gradient(135deg, #744f83, #c7a5d2); }
.leader-dot.seed-4 { background: linear-gradient(135deg, #9f5b31, #e5b37d); }
.leader-dot.seed-5 { background: linear-gradient(135deg, #4b746a, #a1c7ba); }
.leader-dot.seed-6 { background: linear-gradient(135deg, #7a5b35, #d7bd87); }
.event-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.76); flex-wrap: wrap; }
.segmented button { border: 0; padding: 8px 12px; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 820; }
.segmented button.active { background: rgba(255,255,255,0.9); color: var(--ink); box-shadow: 0 6px 16px rgba(31, 36, 28, 0.08); }
.roster { display: flex; flex-wrap: wrap; gap: 8px; }
.source-tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 0.72rem; font-weight: 850; background: rgba(31,36,28,0.07); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.leader-card, .issue-card, .task-card { padding: 15px; display: grid; gap: 10px; }
.leader-card h4, .issue-card h4, .task-card h4 { margin: 0; }
.leader-title { color: var(--green); font-weight: 820; }
.task-card.done { opacity: 0.68; }
.task-card.done h4 { text-decoration: line-through; }
.task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.task-row input[type="checkbox"] { width: 20px; height: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: 360px; padding: 14px 16px; border-radius: 18px; background: rgba(31, 36, 28, 0.9); color: #fff; box-shadow: var(--shadow); }
.empty-state { padding: 22px; border-radius: 20px; text-align: center; background: rgba(255, 255, 255, 0.52); border: 1px dashed rgba(31, 36, 28, 0.14); color: var(--muted); }
@media (max-width: 1080px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2, .hero-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .app-shell { padding: 10px; } .topbar { display: grid; } .nav-list, .hero-grid, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; } .sidebar, .topbar, .login-card { border-radius: 22px; } }

/* v1.1.0 mobile, alerts, leader admin, and event editing additions */
.device-line { margin-top: 8px; color: var(--green); font-size: 0.74rem; font-weight: 850; }
.stat-card.countdown { background: linear-gradient(150deg, rgba(255,255,255,0.9), rgba(223,233,220,0.86)); }
.stat-card small { color: var(--muted); font-weight: 720; }
.alert-shelf { display: grid; gap: 12px; }
.alert-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.78); box-shadow: 0 18px 48px rgba(31, 36, 28, 0.12); position: relative; overflow: hidden; }
.alert-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--amber); }
.alert-card.info { background: rgba(221,237,246,0.92); }
.alert-card.success { background: rgba(223,233,220,0.94); }
.alert-card.warning { background: rgba(255,240,211,0.95); }
.alert-card.urgent { background: rgba(255,232,222,0.96); animation: alertPulse 1.6s ease-in-out infinite; }
.alert-card.info::before { background: var(--blue); }
.alert-card.success::before { background: var(--green); }
.alert-card.warning::before { background: var(--amber); }
.alert-card.urgent::before { background: var(--red); }
.alert-card h3 { margin: 3px 0 4px; font-size: 1.25rem; }
.alert-card p { margin: 0 0 8px; font-weight: 680; }
.alert-label { color: var(--muted); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.alert-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes alertPulse { 0%, 100% { box-shadow: 0 18px 48px rgba(159, 60, 49, 0.10); } 50% { box-shadow: 0 22px 58px rgba(159, 60, 49, 0.23); } }
.nested-panel { margin-bottom: 14px; background: rgba(255,255,255,0.52); box-shadow: none; }
.broadcast-panel { border-color: rgba(165,110,43,0.24); }
.event-manager { border-color: rgba(69,109,76,0.2); }
.assignment-tools { display: grid; grid-template-columns: minmax(160px,1fr) minmax(160px,1fr) auto; gap: 8px; align-items: end; }
.event-editor { border-top: 1px solid var(--line); padding-top: 10px; }
.event-editor summary { cursor: pointer; color: var(--green); font-weight: 850; }
.compact-form { grid-template-columns: repeat(2, minmax(140px, 1fr)); margin-top: 10px; }
.check-line { display: flex !important; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-weight: 750; }
.check-line input { width: 20px; height: 20px; }
.leader-admin-panel { border-color: rgba(56,106,136,0.2); }
.leader-edit textarea, .compact-form textarea { min-height: 70px; }
.event-card.custom::before { background: linear-gradient(#744f83, #c7a5d2); }
.calendar-grid { grid-template-columns: repeat(5, minmax(230px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
.calendar-grid .day-column { min-width: 230px; }

@media (max-width: 1200px) {
  .calendar-grid { grid-template-columns: repeat(5, minmax(260px, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app-shell { gap: 12px; }
  .sidebar { padding: 12px; gap: 12px; }
  .brand-mark { padding: 6px; }
  .nav-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .nav-list button { white-space: nowrap; text-align: center; scroll-snap-align: start; }
  .topbar { padding: 16px; }
  .topbar-actions { justify-content: flex-start; }
  .panel { padding: 14px; }
  .stat-card { min-height: 104px; }
  .stat-card strong { font-size: 2rem; }
  .event-card, .leader-card, .issue-card, .task-card { padding: 13px; }
  .alert-card { grid-template-columns: 1fr; padding: 15px; }
  .alert-actions { justify-content: flex-start; }
  .assignment-tools { grid-template-columns: 1fr; }
  .calendar-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; }
  .calendar-grid .day-column { flex: 0 0 88vw; scroll-snap-align: start; }
  .segmented { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .segmented button { flex: 0 0 auto; }
  .event-actions .tiny-button, .form-actions .ghost-button, .form-actions .primary-button, .form-actions .danger-button, .alert-actions .primary-button, .alert-actions .ghost-button { width: 100%; }
  .task-row { grid-template-columns: auto minmax(0, 1fr); }
  .task-row .tiny-button { grid-column: 2; justify-self: start; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 430px) {
  .login-card { padding: 24px; }
  .hero-grid { gap: 10px; }
  input, select, textarea { font-size: 16px; }
  .pill, .status-pill { font-size: 0.76rem; }
}

/* v1.2.0 profile photos, phone-aware views, add-event dropdown, and leader health circles */
.user-mini-row, .profile-heading, .leader-card-top, .health-card-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(69,109,76,0.92), rgba(212,138,78,0.88)); color: #fff; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.58), 0 8px 22px rgba(31,36,28,0.13); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar span { line-height: 1; }
.avatar-sm { width: 38px; height: 38px; font-size: 0.82rem; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 62px; height: 62px; font-size: 1.05rem; }
.avatar-xl { width: 82px; height: 82px; font-size: 1.45rem; }
.avatar-chip { width: 24px; height: 24px; font-size: 0.62rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65); }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.health-card { padding: 15px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.68); border: 1px solid rgba(255,255,255,0.78); display: grid; gap: 12px; box-shadow: 0 14px 40px rgba(31,36,28,0.08); }
.health-card.needs-attention { border-color: rgba(159,60,49,0.24); background: rgba(255,241,235,0.9); }
.health-card.watch { border-color: rgba(165,110,43,0.24); background: rgba(255,247,229,0.9); }
.health-card.steady { border-color: rgba(69,109,76,0.16); }
.health-card-header { justify-content: space-between; }
.health-card-header h4 { margin: 0; }
.circle-row { display: flex; gap: 12px; flex-wrap: wrap; }
.circle-row.large { gap: 18px; }
.donut-block { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,0.58); border: 1px solid rgba(31,36,28,0.06); }
.donut-block strong, .donut-block small { display: block; }
.donut-block small { color: var(--muted); font-size: 0.78rem; font-weight: 730; margin-top: 2px; }
.donut { --p: 0%; width: 62px; height: 62px; border-radius: 999px; display: grid; place-items: center; position: relative; background: conic-gradient(var(--green) 0 var(--p), rgba(31,36,28,0.09) var(--p) 100%); }
.event-donut .donut { background: conic-gradient(var(--blue) 0 var(--p), rgba(31,36,28,0.09) var(--p) 100%); }
.task-donut .donut { background: conic-gradient(var(--green) 0 var(--p), rgba(31,36,28,0.09) var(--p) 100%); }
.donut::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: rgba(255,255,255,0.92); box-shadow: inset 0 0 0 1px rgba(31,36,28,0.04); }
.donut span { position: relative; z-index: 1; color: var(--ink); font-weight: 920; font-size: 0.82rem; }
.health-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 720; }
.health-meta span { padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,0.58); border: 1px solid rgba(31,36,28,0.06); }
.profile-pulse-panel { border-color: rgba(69,109,76,0.22); }
.profile-pulse-panel input[type="file"] { padding: 10px; background: rgba(255,255,255,0.62); }
.pulse-actions .danger-button { box-shadow: 0 12px 24px rgba(159,60,49,0.16); }
.personal-progress-panel { border-color: rgba(56,106,136,0.18); }
.calendar-toolbar { align-items: flex-start; }
.event-manager .panel-header { margin-bottom: 0; }
.event-manager .form-grid { margin-top: 14px; }
.assignment-help { border-color: rgba(56,106,136,0.18); }
body.is-phone .leader-chip[draggable="true"] { cursor: default; }
body.is-phone .workspace { gap: 12px; }
body.is-phone .event-card { scroll-margin-top: 12px; }

@media (max-width: 1180px) {
  .health-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .user-mini-row, .profile-heading, .leader-card-top, .health-card-header { align-items: flex-start; }
  .health-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .health-card-header .status-pill { grid-column: 1 / -1; justify-self: start; }
  .avatar-xl { width: 70px; height: 70px; }
  .circle-row, .circle-row.large { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .donut-block { min-width: 0; }
  .profile-pulse-panel .form-actions button, .pulse-actions button { width: 100%; }
  .calendar-toolbar { display: grid; }
  .event-manager .panel-header { display: grid; }
  .event-manager .panel-header .primary-button { width: 100%; }
  .health-meta span { width: 100%; border-radius: 14px; }
}

/* v1.4.0 commander polish, solid pulse menu, card-drop assignments, and focused user dashboards */
.login-brand { margin-bottom: 18px; display: flex; justify-content: center; }
.brand-logo { --logo-safe-padding: 8px; display: inline-flex; align-items: center; justify-content: center; width: 94px; height: 50px; padding: var(--logo-safe-padding); border-radius: 16px; background: rgba(255,255,255,0.72); border: 1px solid rgba(31,36,28,0.08); color: var(--green); font-weight: 950; letter-spacing: -0.04em; line-height: 1; box-shadow: 0 12px 28px rgba(31,36,28,0.10); overflow: hidden; flex: 0 0 auto; }
.brand-logo.logo-safe-fit img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; display: block; }
.brand-logo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.brand-logo span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo-login { width: min(240px, 82vw); height: 112px; font-size: 1.75rem; border-radius: 24px; --logo-safe-padding: 14px; margin-inline: auto; }
.brand-logo-sidebar { width: 62px; height: 52px; padding: 7px; font-size: 0.92rem; --logo-safe-padding: 7px; }
.brand-logo-preview { width: min(280px, 100%); height: 96px; font-size: 1.45rem; --logo-safe-padding: 12px; }
.brand-logo-header { width: 38px; height: 32px; padding: 5px; border-radius: 11px; font-size: .62rem; box-shadow: 0 8px 20px rgba(31,36,28,.12); --logo-safe-padding: 5px; }
.view-title-with-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { min-width: 0; }
.brand-mark > div { min-width: 0; }
.brand-mark strong { line-height: 1.1; }
.topbar-actions { align-items: center; }
#header-pulse-wrap { position: relative; z-index: 20; }
.header-pulse-wrap { position: relative; }
.pulse-button { border: 1px solid rgba(31,36,28,0.08); border-radius: 999px; padding: 7px 8px 7px 7px; background: rgba(255,255,255,0.78); display: inline-flex; align-items: center; gap: 9px; color: var(--ink); box-shadow: 0 10px 26px rgba(31,36,28,0.09); }
.pulse-button > span:not(.avatar):not(.status-pill) { display: grid; gap: 1px; text-align: left; line-height: 1.05; }
.pulse-button small { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.pulse-menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 28px)); padding: 16px; border-radius: 24px; display: grid; gap: 12px; text-align: left; }
.pulse-menu label { display: grid; gap: 7px; margin: 0; color: var(--muted); font-weight: 760; font-size: 0.84rem; }
.pulse-menu textarea { min-height: 74px; }
.pulse-menu-head { display: grid; gap: 2px; }
.pulse-menu-head small { color: var(--muted); font-weight: 720; }
.pulse-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pulse-menu-actions button { width: 100%; }
.countdown-pill { color: var(--green); background: rgba(223,233,220,0.82); }
.calendar-panel { overflow: hidden; }
.calendar-board { display: grid; grid-template-columns: repeat(5, minmax(320px, 1fr)); gap: 18px; overflow-x: auto; align-items: start; padding: 4px 2px 14px; scroll-padding: 12px; }
.calendar-board .day-column { min-width: 320px; gap: 14px; }
.calendar-board .day-title { position: sticky; top: 0; z-index: 2; padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(18px); }
.calendar-board .event-card { padding: 18px; gap: 14px; }
.calendar-board .event-actions { gap: 10px; }
.calendar-board .event-actions .tiny-button { padding: 9px 12px; }
.calendar-board .assignment-tools { grid-template-columns: 1fr; }
.calendar-board .event-meta { gap: 9px 10px; }
.brand-panel { border-color: rgba(69,109,76,0.18); }

@media (min-width: 1500px) {
  .calendar-board { grid-template-columns: repeat(5, minmax(340px, 1fr)); }
  .calendar-board .day-column { min-width: 340px; }
}

@media (max-width: 1080px) {
  .topbar-actions { justify-content: flex-start; width: 100%; }
  #header-pulse-wrap { width: 100%; }
  .pulse-button { width: 100%; justify-content: flex-start; }
  .pulse-menu { left: 0; right: auto; }
}

@media (max-width: 760px) {
  .brand-logo-login { width: min(210px, 82vw); height: 96px; }
  .brand-logo-sidebar { width: 54px; height: 46px; }
  .topbar-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .pulse-button .status-pill { justify-self: start; }
  .pulse-menu { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
  .pulse-menu-actions { grid-template-columns: 1fr; }
  .calendar-board { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .calendar-board .day-column { flex: 0 0 92vw; min-width: 0; scroll-snap-align: start; }
  .calendar-board .event-card { padding: 15px; }
  .calendar-board .day-title { position: static; }
}

/* v1.4.0 cleanup: solid quick-pulse menu and whole-card drag assignment targets */
.pulse-menu.glass-card {
  background: #fffaf2;
  border: 1px solid rgba(31, 36, 28, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.event-card.drag-target { transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.event-card.drag-target.drag-over {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(69, 109, 76, 0.34), var(--shadow-soft);
  transform: translateY(-1px);
}

/* v1.5.0 smart event pulse, stronger overlay stacking, and health summaries */
.workspace, .topbar, .topbar-actions, .header-pulse-wrap { overflow: visible; }
.topbar { position: relative; z-index: 900; }
.view { position: relative; z-index: 1; }
.alert-shelf { position: relative; z-index: 1; }
#header-pulse-wrap { z-index: 1100; }
.header-pulse-wrap.open { z-index: 1200; }
.pulse-menu { z-index: 1300; background: #fffaf2; }
.pulse-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(223,233,220,0.72); border: 1px solid rgba(69,109,76,0.14); }
.pulse-current.empty { background: rgba(221,237,246,0.68); }
.pulse-current strong, .pulse-current small { display: block; }
.pulse-current small { color: var(--muted); margin-top: 2px; font-weight: 720; }
.pulse-event-picker { border: 1px solid rgba(31,36,28,0.1); border-radius: 16px; padding: 10px 12px; background: rgba(255,255,255,0.72); }
.pulse-event-picker summary { cursor: pointer; font-weight: 850; color: var(--green); }
.pulse-event-picker label { margin-top: 10px; }
.smart-pulse-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pulse-good, .pulse-busy { border: 0; border-radius: 999px; padding: 12px 14px; font-weight: 900; display: inline-flex; justify-content: center; align-items: center; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pulse-good { color: var(--green); background: rgba(223,233,220,0.96); box-shadow: inset 0 0 0 1px rgba(69,109,76,0.15); }
.pulse-busy { color: var(--amber); background: rgba(255,240,211,0.96); box-shadow: inset 0 0 0 1px rgba(165,110,43,0.14); }
.pulse-good:hover, .pulse-busy:hover { transform: translateY(-1px); }
.need-help-box { display: grid; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,232,222,0.9); border: 1px solid rgba(159,60,49,0.16); }
.full-width { width: 100%; }
.pulse-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pulse-summary-tile { padding: 16px; border-radius: 20px; display: grid; gap: 4px; background: rgba(255,255,255,0.74); border: 1px solid rgba(31,36,28,0.08); }
.pulse-summary-tile strong { font-size: 2rem; line-height: 1; letter-spacing: -0.06em; }
.pulse-summary-tile span { color: var(--muted); font-weight: 850; }
.pulse-summary-tile.ready { background: rgba(223,233,220,0.82); }
.pulse-summary-tile.medium { background: rgba(255,240,211,0.86); }
.pulse-summary-tile.urgent { background: rgba(255,232,222,0.9); }
.pulse-summary-tile.unconfirmed { background: rgba(221,237,246,0.78); }
.event-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-health-card { border-radius: 20px; background: rgba(255,255,255,0.74); border: 1px solid rgba(31,36,28,0.08); padding: 14px; display: grid; gap: 10px; }
.event-health-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.event-health-head strong, .event-health-head small { display: block; }
.event-health-head small { color: var(--muted); margin-top: 2px; font-weight: 720; }
.leader-pulse-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 8px; background: rgba(255,255,255,0.78); border: 1px solid rgba(31,36,28,0.08); font-weight: 820; font-size: 0.78rem; }
.leader-pulse-chip.ready { background: rgba(223,233,220,0.88); color: var(--green); }
.leader-pulse-chip.medium { background: rgba(255,240,211,0.9); color: var(--amber); }
.leader-pulse-chip.urgent { background: rgba(255,232,222,0.92); color: var(--red); }
.leader-pulse-chip.unconfirmed { background: rgba(221,237,246,0.84); color: var(--blue); }
@media (max-width: 760px) {
  .smart-pulse-actions, .pulse-summary-grid, .event-health-grid { grid-template-columns: 1fr; }
  .pulse-current, .event-health-head { display: grid; }
  .pulse-menu { z-index: 1300; }
}

/* v1.6.0 live refresh, emergency sound, and Excel import */
.pill.medium { color: var(--amber); background: rgba(255,240,211,0.86); }
.pill.warning { color: var(--red); background: rgba(255,232,222,0.9); }
#alert-sound-wrap { position: relative; z-index: 1090; }
.sound-button {
  border: 1px solid rgba(31,36,28,0.08);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255,255,255,0.78);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(31,36,28,0.09);
  min-height: 44px;
}
.sound-button > span:last-child { display: grid; gap: 1px; text-align: left; line-height: 1.05; }
.sound-button small { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.sound-button.urgent {
  color: var(--red);
  background: rgba(255,232,222,0.98);
  box-shadow: 0 0 0 3px rgba(159,60,49,0.13), 0 12px 28px rgba(159,60,49,0.16);
}
.import-panel { border-color: rgba(56,106,136,0.2); }
.import-panel input[type="file"] { padding: 10px; background: rgba(255,255,255,0.62); }
.import-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(221,237,246,0.58);
  border: 1px solid rgba(56,106,136,0.15);
}
.import-summary strong { grid-column: 1 / -1; }
.import-summary span, .import-summary small {
  display: block;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
  color: var(--muted);
  font-weight: 760;
}
.import-summary small { grid-column: 1 / -1; }

@media (max-width: 1080px) {
  #alert-sound-wrap { width: 100%; }
  .sound-button { width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .import-summary { grid-template-columns: 1fr; }
  .sound-button { min-height: 50px; }
}
.event-card.imported::before { background: linear-gradient(#386a88, #5a7e55); }


/* v1.7.0 login sound prompt and repeating emergency audio */
.sound-prompt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 36, 28, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sound-prompt-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: #fffaf2;
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 30px 90px rgba(31,36,28,0.28);
}
.sound-prompt-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255,232,222,0.96);
  color: var(--red);
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 1px rgba(159,60,49,0.12);
}
.sound-prompt-copy h3 {
  margin: 2px 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.sound-prompt-copy p { margin-top: 0; }
.sound-prompt-alert {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,232,222,0.98);
  border: 1px solid rgba(159,60,49,0.15);
  color: var(--red);
}
.sound-prompt-alert span { color: var(--ink); font-weight: 720; }
.sound-prompt-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sound-button.emergency-active { animation: emergencyButtonPulse 1.25s ease-in-out infinite; }
@keyframes emergencyButtonPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(159,60,49,0.13), 0 12px 28px rgba(159,60,49,0.16); }
  50% { box-shadow: 0 0 0 7px rgba(159,60,49,0.18), 0 18px 36px rgba(159,60,49,0.24); }
}
@media (max-width: 760px) {
  .sound-prompt-backdrop { align-items: end; padding: 10px; }
  .sound-prompt-card { grid-template-columns: 1fr; padding: 20px; border-radius: 24px; }
  .sound-prompt-actions { display: grid; grid-template-columns: 1fr; }
  .sound-prompt-actions button { width: 100%; min-height: 50px; }
}

/* v1.8.0 admin-configurable emergency alert sound */
.sound-settings-panel .panel-header .pill { white-space: nowrap; }
.sound-settings-panel select { min-height: 48px; }
@media (max-width: 760px) {
  .sound-settings-panel .panel-header { align-items: flex-start; }
  .sound-settings-panel .panel-header .pill { white-space: normal; }
}


/* v1.8.0 emergency sound cannot be disabled by end users once enabled */
.sound-button.sound-status { cursor: default; user-select: none; }
.sound-button.sound-status:hover { transform: none; }


/* v1.9.0: hide enabled emergency sound status and support custom alert sound settings */
#alert-sound-wrap:empty { display: none; }
.custom-sound-status {
  border: 1px solid rgba(31,36,28,0.08);
  background: rgba(255,255,255,0.62);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 8px 0 2px;
}
.sound-settings-panel input[type="file"] {
  padding: 10px;
  background: rgba(255,255,255,0.62);
}


/* v2.0.0: tested emergency sound setup with HTML Audio + Web Audio fallback */
.sound-setup-card { max-width: 760px; }
.sound-setup-actions { align-content: center; }
.sound-setup-actions .primary-button,
.sound-setup-actions .ghost-button { min-height: 48px; }
.sound-test-meter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(26, 45, 36, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.92rem;
}
.sound-test-meter span { color: var(--muted); font-weight: 760; }
.sound-test-meter.success { border-color: rgba(36, 132, 83, 0.28); background: rgba(232, 248, 238, 0.98); }
.sound-test-meter.warning { border-color: rgba(196, 120, 35, 0.34); background: rgba(255, 246, 226, 0.98); }
@media (max-width: 760px) {
  .sound-setup-card { width: 100%; }
  .sound-test-meter { display: grid; gap: 3px; }
}

/* v2.1.0 forced leader password change */
.password-prompt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 36, 28, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.password-prompt-card {
  background: #fffaf2;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.password-prompt-icon {
  background: rgba(223,233,220,0.96);
  color: var(--green);
}
.password-change-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}
.password-change-form label { margin: 0; }
.password-prompt-actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .password-prompt-backdrop { align-items: end; padding: 10px; }
  .password-prompt-card { grid-template-columns: 1fr; border-radius: 24px; padding: 20px; width: 100%; }
  .password-prompt-actions { display: grid; grid-template-columns: 1fr; }
  .password-prompt-actions button { width: 100%; min-height: 50px; }
}

/* v2.2.0 prerequisites, pulse filtering, and backups */
.pulse-summary-tile {
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.pulse-summary-tile.active {
  outline: 3px solid rgba(40, 92, 58, 0.28);
  transform: translateY(-1px);
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: -8px 0 14px;
  flex-wrap: wrap;
}
.prerequisites-overview { margin-bottom: 0; }
.prerequisite-card .check-line {
  align-items: flex-start;
  gap: 10px;
}
.prerequisite-card.done strong {
  text-decoration: line-through;
  color: var(--muted);
}
.form-actions.compact {
  margin-top: 8px;
  gap: 8px;
}
.admin-prereq-builder textarea,
.backup-panel textarea {
  min-height: 110px;
}
.task-donut .donut {
  background: conic-gradient(var(--green) var(--p), rgba(31,36,28,0.1) 0);
}
.backup-table {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.backup-table div {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(31,36,28,0.08);
  font-size: 0.88rem;
}
.backup-table a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}
.backup-panel .danger-button {
  background: linear-gradient(135deg, #8b1e1e, #c2492f);
  color: #fff;
}
@media (max-width: 760px) {
  .filter-bar { justify-content: stretch; }
  .filter-bar .ghost-button,
  .filter-bar .pill { width: 100%; text-align: center; justify-content: center; }
  .pulse-summary-tile { min-height: 88px; }
  .backup-table div { grid-template-columns: 1fr; }
  .admin-prereq-builder .form-grid,
  .backup-panel .form-grid { grid-template-columns: 1fr; }
}

/* v2.3.0 global events, my calendar, weather, profile setup, and contact actions */
.weather-widget {
  border-color: rgba(56, 106, 136, 0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(238,246,250,0.76));
}
.weather-widget.compact { margin: 12px 0; }
.weather-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(31,36,28,0.08);
}
.weather-current strong { font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -0.08em; line-height: 1; }
.weather-current span { display: block; font-weight: 850; }
.weather-current small { color: var(--muted); font-weight: 680; }
.weather-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.weather-days div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(31,36,28,0.07);
}
.weather-days span { font-weight: 850; }
.weather-days small, .weather-empty span { color: var(--muted); font-size: 0.82rem; }
.weather-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px dashed rgba(31,36,28,0.16);
}
.my-calendar-panel { padding: 0; overflow: hidden; }
.my-calendar-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  font-weight: 900;
}
.my-calendar-panel > summary::-webkit-details-marker { display: none; }
.my-calendar-panel > summary span { font-size: 1.35rem; letter-spacing: -0.03em; }
.my-calendar-panel > summary small { color: var(--muted); font-weight: 680; }
.my-calendar-panel > summary::after {
  content: "⌄";
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,36,28,0.08);
}
.my-calendar-panel[open] > summary::after { transform: rotate(180deg); }
.my-calendar-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 14px;
}
.mini-stat {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(31,36,28,0.08);
  display: grid;
  align-content: space-between;
  min-height: 104px;
}
.mini-stat strong { font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.05em; }
.mini-stat span { color: var(--muted); font-weight: 750; }
.mini-stat.wide { grid-column: span 1; }
.my-calendar-panel .weather-widget { margin: 0 18px 14px; }
.personal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
  overflow-x: auto;
}
.personal-day-card {
  min-width: 240px;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(31,36,28,0.08);
}
.personal-day-items { display: grid; gap: 8px; }
.calendar-pill {
  display: grid;
  gap: 3px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,36,28,0.08);
  border-left: 5px solid var(--green);
}
.calendar-pill strong { color: var(--green); font-size: 0.8rem; }
.calendar-pill span { font-weight: 800; }
.calendar-pill small { color: var(--muted); }
.calendar-pill.task { border-left-color: var(--blue); }
.calendar-pill.prereq { border-left-color: var(--amber); }
.calendar-pill.done { opacity: 0.62; }
.calendar-pill.done span { text-decoration: line-through; }
.leader-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}
.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(223,233,220,0.88);
  border: 1px solid rgba(69,109,76,0.16);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}
.contact-icon:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,36,28,0.12); }
.contact-actions.compact .contact-icon { width: 24px; height: 24px; font-size: 0.72rem; }
.profile-prompt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3700;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31,36,28,0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-setup-card {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: #fffaf2;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.profile-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-settings-panel { border-color: rgba(69,109,76,0.2); }
@media (max-width: 980px) {
  .my-calendar-dashboard { grid-template-columns: 1fr; }
  .mini-stat.wide { grid-column: auto; }
  .weather-days { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .weather-current { grid-template-columns: 1fr; }
  .personal-calendar-grid { display: flex; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .personal-day-card { flex: 0 0 86vw; scroll-snap-align: start; min-width: 0; }
  .my-calendar-panel > summary { align-items: flex-start; }
  .my-calendar-panel > summary small { display: block; margin-top: 4px; }
  .profile-prompt-backdrop { align-items: end; padding: 10px; }
  .profile-setup-card { border-radius: 24px; padding: 20px; }
  .profile-preview-row { align-items: flex-start; }
  .contact-icon { width: 34px; height: 34px; }
}


/* v2.5.0 dashboard cleanup, compact sidebar weather, and weather visibility setting */
.stat-card.clickable {
  text-align: left;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.stat-card.clickable:hover,
.stat-card.clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(31, 36, 28, 0.14);
  outline: none;
}
.stat-card.clickable small::after { content: " →"; }
#sidebar-weather { display: flex; justify-content: flex-start; align-items: center; min-height: 0; width: 100%; overflow: hidden; }
#sidebar-weather:empty { display: none; }
.weather-widget.weather-mini {
  width: 158px;
  max-width: 100%;
  border: 1px solid rgba(56, 106, 136, 0.14);
  border-radius: 17px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 8px 22px rgba(31,36,28,0.07);
  padding: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-align: left;
}
.weather-widget.weather-mini:hover { transform: translateY(-1px); background: rgba(255,255,255,0.86); }
.weather-mini-temp {
  min-width: 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(221,237,246,0.78);
  color: var(--blue);
  font-weight: 950;
  font-size: 0.9rem;
  letter-spacing: -0.06em;
}
.weather-widget.weather-mini strong,
.weather-widget.weather-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-widget.weather-mini strong { font-size: 0.72rem; }
.weather-widget.weather-mini small { color: var(--muted); font-weight: 720; font-size: 0.62rem; margin-top: 0; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: rgba(31, 36, 28, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 22px;
}
.app-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 30px;
  background: #fffaf2;
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 16px;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.modal-head h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -0.05em; }
.modal-head p { margin: 4px 0 0; }
.venue-info-grid { display: grid; gap: 12px; }
.venue-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,36,28,0.08);
}
.venue-card.full { grid-column: 1 / -1; }
.venue-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.venue-card p { margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.venue-icon { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: rgba(223,233,220,0.8); }
.emergency-contact-list { display: grid; gap: 8px; }
.emergency-contact-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,0.72); border: 1px solid rgba(31,36,28,0.07); font-weight: 760; }
.weather-dashboard-body { display: grid; gap: 14px; }
.weather-hourly { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.weather-hourly div { display: grid; gap: 3px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,0.58); border: 1px solid rgba(31,36,28,0.07); }
.weather-hourly span { font-weight: 850; }
.weather-hourly small { color: var(--muted); font-size: 0.8rem; }
.radar-frame { border-radius: 22px; overflow: hidden; min-height: 360px; border: 1px solid rgba(31,36,28,0.08); background: rgba(221,237,246,0.44); }
.radar-frame iframe { width: 100%; min-height: 420px; border: 0; display: block; }
.my-events-toolbar .panel-header { margin-bottom: 0; }
.my-calendar-panel { padding: 18px; }
.my-calendar-panel .panel-header { margin-bottom: 14px; }
.my-calendar-dashboard { padding: 0 0 14px; }
.personal-calendar-grid { padding: 0; }
.venue-settings-panel textarea { min-height: 118px; }
@media (max-width: 980px) {
  .weather-hourly { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { height: auto; position: relative; }
  .weather-widget.weather-mini { grid-template-columns: auto minmax(0, 1fr); width: 158px; }
  .modal-backdrop { align-items: end; padding: 10px; }
  .app-modal { max-height: calc(100vh - 20px); border-radius: 24px; padding: 16px; }
  .weather-hourly, .weather-days { grid-template-columns: 1fr; }
  .radar-frame { min-height: 300px; }
  .radar-frame iframe { min-height: 340px; }
  .my-events-toolbar .form-actions, .my-events-toolbar .segmented { width: 100%; }
  .my-events-toolbar .segmented button { flex: 1; }
}

/* v2.5.0 */
.weather-toggle { align-self: end; padding: 12px 0; }
.dashboard-next-panel .event-list { max-width: none; }


/* v2.6.0 collapsible work widgets, event details, and location map tools */
.location-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.location-link:hover { color: var(--accent); }
.event-title-button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.event-title-button h4 { margin: 0; }
.event-title-button:hover h4 { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.minimize-widget { padding: 0; overflow: hidden; }
.minimize-widget > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.minimize-widget > summary::-webkit-details-marker { display: none; }
.minimize-widget > summary::before { content: '+'; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.78); margin-right: 8px; }
.minimize-widget[open] > summary::before { content: '–'; }
.minimize-widget .widget-body { padding: 0 20px 20px; }
.minimize-widget .panel { box-shadow: none; }
.calendar-pill.event { border: 0; text-align: left; width: 100%; cursor: pointer; }
.compact-list { gap: 8px; }
.mini-work-card { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(42,51,41,.1); display: grid; gap: 4px; }
.mini-work-card.done { opacity: .62; }
.event-detail-body { display: grid; gap: 14px; }
.location-map-modal-body { display: grid; gap: 14px; }
.location-map-view, .map-admin-surface {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(42,51,41,.14);
}
.location-map-view img, .map-admin-surface img { width: 100%; display: block; object-fit: contain; max-height: 68vh; }
.map-admin-surface { cursor: crosshair; }
.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #ff3b30;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.26);
}
.map-pin.active { width: 24px; height: 24px; }
.map-pin.active::after { content: ''; position: absolute; inset: -10px; border-radius: 999px; border: 2px solid rgba(255,59,48,.42); }
.location-map-admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; align-items: start; }
.location-pin-list { display: grid; gap: 8px; margin-top: 10px; }
.location-pin-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.7); }
.location-pin-row span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.issue-card.archived { opacity: .78; }
.issues-board .form-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .location-map-admin-grid { grid-template-columns: 1fr; }
  .location-map-view, .map-admin-surface { min-height: 190px; }
}


/* v2.7.0 notifications, log systems, and check-in prerequisite modal */
.notification-widget { border-color: rgba(184, 136, 50, .24); background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,230,.86)); }
.notification-list { display: grid; gap: 10px; }
.notification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.76); border: 1px solid rgba(42,51,41,.12); }
.notification-card.warning { border-color: rgba(184,136,50,.36); }
.notification-card.urgent { border-color: rgba(194,62,47,.36); }
.checkin-modal-body { display: grid; gap: 14px; }
.checkin-prereq-row { border: 1px solid rgba(42,51,41,.11); border-radius: 16px; padding: 11px 12px; background: rgba(255,255,255,.72); }
.checkin-prereq-row.done { opacity: .68; }
.add-calendar-button { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(42,51,41,.09); }
.log-table { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(255,255,255,.6); }
.log-table th, .log-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(42,51,41,.08); vertical-align: top; font-size: .88rem; }
.log-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(255,255,255,.66); }
.log-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .notification-card { grid-template-columns: 1fr; }
  .add-calendar-button { margin-left: 0; width: 100%; justify-content: center; }
}

/* v2.8.0 My Next Up card editor */
.my-next-up-panel .event-list { max-width: none; }
.my-next-card { gap: 10px; }
.my-next-render-row { display: grid; gap: 6px; }
.my-next-row-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-weight: 720; }
.my-next-row-content strong { color: var(--ink); }
.my-next-title-row { align-items: flex-start; }
.my-next-title-row .event-title-button[disabled] { cursor: default; }
.my-next-row-content.notes { align-items: flex-start; }
.inline-progress { display: grid; gap: 8px; }
.inline-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.inline-progress strong { color: var(--ink); }
.inline-progress small { color: var(--muted); font-weight: 720; }
.progress-track { display: block; height: 9px; overflow: hidden; border-radius: 999px; background: rgba(42, 51, 41, .09); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(78,118,80,.82), rgba(208,139,83,.82)); }
.my-next-editor-panel { border-color: rgba(78, 118, 80, .22); }
.my-next-editor-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 16px; align-items: start; }
.my-next-preview .event-card { box-shadow: none; }
.layout-row-list { display: grid; gap: 8px; margin: 14px 0; }
.my-next-layout-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(42,51,41,.1); }
.my-next-layout-row .check-line { padding: 0; font-weight: 800; }
.row-move-actions { display: inline-flex; gap: 6px; }
.row-move-actions .tiny-button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 900px) {
  .my-next-editor-grid { grid-template-columns: 1fr; }
  .my-next-row-content { align-items: flex-start; }
}
@media (max-width: 560px) {
  .my-next-layout-row { grid-template-columns: 1fr; }
  .row-move-actions { justify-content: flex-start; }
}

/* v2.9.0 My Events managers + My Next Up checklist */
.progress-link { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; border-radius: 16px; }
.progress-link:hover .inline-progress { background: rgba(255,255,255,0.68); }
.progress-link .inline-progress { padding: 8px; border-radius: 16px; transition: background 0.18s ease, transform 0.18s ease; }
.progress-link:active .inline-progress { transform: scale(0.99); }
.my-next-checklist-actions .task-checklist-button { width: 100%; justify-content: center; }
.my-events-tabs { max-width: 100%; }
.work-manager-panel, .prerequisite-manager-panel { display: grid; gap: 14px; }
.work-manager-panel > .panel-header, .prerequisite-manager-panel > .panel-header { align-items: flex-start; }
.task-composer-panel { background: rgba(255,255,255,0.72); }
.work-board { display: grid; gap: 14px; }
.day-work-group { background: rgba(255,255,255,0.62); }
.modern-task-list { display: grid; gap: 10px; }
.modern-task-card { padding: 12px; background: rgba(255,255,255,0.82); }
.modern-task-card .task-row { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; }
.task-check { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 12px; background: rgba(70,91,62,0.08); border: 1px solid rgba(70,91,62,0.16); cursor: pointer; }
.task-check input { position: absolute; opacity: 0; pointer-events: none; }
.task-check span { font-weight: 900; color: var(--green); }
.task-main { min-width: 0; display: grid; gap: 4px; }
.task-title-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.task-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.text-link, .heading-link, .pill-open-button { border: 0; background: transparent; color: var(--green); font-weight: 850; padding: 0; cursor: pointer; text-align: left; }
.text-link:hover, .heading-link:hover, .pill-open-button:hover { text-decoration: underline; }
.pill-open-button { display: grid; gap: 2px; width: 100%; color: inherit; }
.quick-add-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.task-quick-add { grid-template-columns: minmax(140px, .65fr) minmax(180px, 1fr) auto; }
.quick-add-line input, .quick-add-line select { min-width: 0; }
.event-work-modal .app-modal, .task-edit-modal .app-modal { max-width: 980px; }
.event-work-modal-body { display: grid; gap: 14px; }
.event-work-summary.grid-3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.prerequisite-manager-panel .personal-prereq-form-panel, .prerequisite-manager-panel .admin-prereq-builder { margin-top: 14px; }
@media (max-width: 760px) {
  .modern-task-card .task-row { grid-template-columns: auto 1fr; }
  .task-actions { grid-column: 1 / -1; justify-content: stretch; }
  .task-actions button { flex: 1; }
  .quick-add-line, .task-quick-add { grid-template-columns: 1fr; }
  .event-work-summary.grid-3 { grid-template-columns: 1fr; }
}
.app-modal.event-work-modal, .app-modal.task-edit-modal { max-width: 980px; }


/* v3.3.0: global task board cleanup */
.task-command-list { gap: 16px; }
.task-group { border-radius: 22px; padding: 10px; background: rgba(255,255,255,.48); border: 1px solid rgba(42,51,41,.08); }
.task-group-title { padding: 4px 4px 10px; }
.task-group-title div { display: grid; gap: 2px; }
.task-group-title small { color: var(--muted); font-weight: 760; }
.modern-task-card { position: relative; display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 14px; overflow: hidden; }
.modern-task-card .task-row { display: contents; }
.task-status-rail { align-self: stretch; min-height: 48px; display: grid; place-items: center; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 950; background: rgba(111,117,109,.45); }
.task-status-rail.not-started { background: rgba(56,106,136,.45); }
.task-status-rail.in-progress { background: rgba(184,136,50,.72); }
.task-status-rail.blocked { background: rgba(194,62,47,.76); }
.task-status-rail.complete { background: rgba(78,118,80,.78); }
.task-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; font-weight: 760; }
.task-category-pill { border-radius: 999px; background: rgba(70,91,62,.08); border: 1px solid rgba(70,91,62,.12); padding: 4px 8px; color: var(--green); font-weight: 850; }
.task-owner-chip { display: inline-flex; align-items: center; gap: 5px; }
.task-event-link { border-radius: 999px; background: rgba(255,255,255,.64); padding: 3px 8px; }
.task-notes { margin: 3px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.task-composer-panel .form-grid { align-items: end; }
@media (max-width: 760px) {
  .modern-task-card { grid-template-columns: auto minmax(0, 1fr); }
  .task-status-rail { display: none; }
  .modern-task-card .task-actions { grid-column: 1 / -1; justify-content: stretch; }
}

/* v3.3.0: single Tasks workflow and stable rotating TV mode */
.status-pill.not-started { color: var(--blue); background: rgba(221, 237, 246, 0.82); }
.status-pill.in-progress { color: var(--amber); background: rgba(255, 240, 211, 0.86); }
.status-pill.blocked { color: var(--red); background: rgba(255, 232, 222, 0.86); }
.grouped-task-list { display: grid; gap: 14px; }
.task-group { display: grid; gap: 8px; }
.task-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; color: var(--muted); }
.task-group-title strong { color: var(--ink); font-size: .92rem; }
.task-group-title span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.improved-task-section { display: grid; gap: 12px; }
.task-category-before { border-left: 4px solid rgba(69,109,76,.45); }
.task-category-during { border-left: 4px solid rgba(56,106,136,.45); }
.task-category-after { border-left: 4px solid rgba(165,110,43,.45); }
.task-category-general { border-left: 4px solid rgba(111,117,109,.28); }
.tv-settings-panel { border-color: rgba(56,106,136,.24); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tv-screen-picker { display: grid; gap: 6px; }
.tv-mode-backdrop { position: fixed; inset: 0; z-index: 4000; background: #10140f; color: #f9fbf7; padding: 18px; }
.tv-mode-stage { width: 100%; height: 100%; border-radius: 28px; border: 1px solid rgba(255,255,255,.16); background: radial-gradient(circle at 12% 12%, rgba(84,132,88,.34), transparent 34%), linear-gradient(135deg, #151b13 0%, #202619 52%, #111813 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 18px; padding: clamp(18px, 2vw, 32px); overflow: hidden; }
.tv-mode-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tv-mode-head h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 5rem); letter-spacing: -.07em; line-height: .95; }
.tv-mode-head span, .tv-mode-foot, .tv-event-line span, .tv-empty { color: rgba(249,251,247,.7); font-weight: 760; }
.tv-mode-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tv-mode-actions .ghost-button { color: #f9fbf7; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.tv-screen-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tv-screen-tabs button { border: 0; border-radius: 999px; padding: 10px 14px; color: rgba(249,251,247,.72); background: rgba(255,255,255,.08); font-weight: 850; white-space: nowrap; }
.tv-screen-tabs button.active { color: #10140f; background: #f9fbf7; }
.tv-mode-body { min-height: 0; overflow: auto; }
.tv-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; height: 100%; }
.tv-grid section, .tv-list-screen { border-radius: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: clamp(16px, 2vw, 28px); display: grid; align-content: start; gap: 12px; }
.tv-grid h3, .tv-list-screen h3 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.7rem); letter-spacing: -.05em; }
.tv-event-line { display: flex; justify-content: space-between; gap: 18px; align-items: center; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 14px 16px; }
.tv-event-line strong, .tv-event-line span { display: block; }
.tv-event-line strong { font-size: clamp(1.05rem, 2vw, 1.8rem); }
.tv-event-line em { font-style: normal; color: #dbeed3; font-weight: 900; white-space: nowrap; }
.tv-event-line .location-link { color: inherit; padding: 0; background: transparent; border: 0; font-weight: 800; }
.tv-pulse-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.tv-pulse-cards div, .tv-task-grid article, .tv-emergency { border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 16px; }
.tv-pulse-cards strong { display: block; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .9; }
.tv-pulse-cards span { color: rgba(249,251,247,.72); font-weight: 850; }
.tv-leader-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tv-leader-groups section { border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 14px; }
.tv-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-chip-row span { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 10px; background: rgba(255,255,255,.12); font-weight: 850; }
.tv-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tv-task-grid article { display: grid; gap: 8px; }
.tv-task-grid article div { display: flex; align-items: center; gap: 8px; }
.tv-task-grid progress { width: 100%; height: 10px; accent-color: #dbeed3; }
.tv-task-board { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); gap: 18px; height: 100%; min-height: 0; }
.task-status-grid { display: grid; grid-template-columns: 1fr; gap: 14px; min-height: 0; overflow: auto; }
.task-status-grid section { border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: clamp(14px, 1.6vw, 22px); display: grid; gap: 10px; align-content: start; }
.tv-task-stack { display: grid; gap: 10px; }
.tv-task-line { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; }
.tv-task-line strong, .tv-task-line span, .tv-task-line small { display: block; }
.tv-task-line strong { font-size: clamp(1rem, 1.5vw, 1.35rem); }
.tv-task-line small, .tv-task-line span { color: rgba(249,251,247,.68); font-weight: 760; }
.tv-task-line em { font-style: normal; font-weight: 950; color: #dbeed3; white-space: nowrap; }
.tv-emergency { display: grid; gap: 10px; }
.tv-emergency strong { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.tv-emergency pre { white-space: pre-wrap; margin: 0; color: rgba(249,251,247,.78); font: inherit; font-weight: 760; }
.tv-vertical .tv-grid.two, .tv-vertical .tv-leader-groups, .tv-vertical .tv-task-grid, .tv-vertical .tv-task-board { grid-template-columns: 1fr; }
.tv-vertical .tv-event-line { align-items: flex-start; }
.tv-mode-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .check-grid, .tv-grid.two, .tv-pulse-cards, .tv-leader-groups, .tv-task-grid, .tv-task-board { grid-template-columns: 1fr; }
  .tv-mode-backdrop { padding: 0; }
  .tv-mode-stage { border-radius: 0; }
  .tv-event-line { display: grid; }
}

/* v3.8.0 customer comments page and QR settings */
.comments-page-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.public-comments-shell {
  width: min(720px, 100%);
  position: relative;
  z-index: 1;
}
.public-comments-card {
  padding: clamp(24px, 5vw, 44px);
  border-radius: 32px;
}
.public-comments-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.public-comments-card h1 {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.4rem);
}
.public-comments-card > .muted {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 24px;
}
.comments-form {
  display: grid;
  gap: 16px;
}
.comments-form textarea,
.comments-form select,
.comments-form input {
  width: 100%;
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(36, 52, 43, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}
.comments-status {
  margin: 0;
  min-height: 1.35rem;
  font-weight: 700;
}
.success-text { color: #1f7a4d; }
.customer-comments-settings-panel .link-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feedback-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.feedback-list h4 {
  margin: 0;
}
.feedback-card {
  border: 1px solid rgba(36, 52, 43, .1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .72);
}
.feedback-card p {
  margin: 8px 0;
  white-space: pre-wrap;
}
.feedback-card-head,
.feedback-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.feedback-contact {
  justify-content: flex-start;
}
.feedback-contact a {
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 640px) {
  .comments-page-body { padding: 14px; }
  .contact-fields { grid-template-columns: 1fr; }
}

/* v4.1.0 public comments alignment, conflicts, and golf cart planning */
.public-comments-brand .brand-logo {
  width: min(340px, 88vw);
  height: 170px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  --logo-safe-padding: 0px;
}
.public-comments-brand .brand-logo span {
  font-size: clamp(2rem, 10vw, 4rem);
}
.comments-form .contact-toggle {
  justify-content: flex-start;
  width: fit-content;
  gap: 6px;
  color: var(--ink);
  font-weight: 850;
}
.comments-form .contact-toggle input {
  flex: 0 0 auto;
  margin: 0;
}
@media (max-width: 720px) {
  .public-comments-brand .brand-logo { width: min(280px, 84vw); height: 138px; }
}

/* v3.9.0 compact homepage weather tile and TV radar weather screen */
#sidebar-weather {
  max-height: 78px;
  align-items: flex-start;
}
.weather-widget.weather-mini {
  width: 172px;
  max-width: 100%;
  min-height: 0;
  max-height: 72px;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 9px 10px;
  overflow: hidden;
  align-content: center;
}
.weather-mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.weather-mini-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}
.weather-mini-main strong {
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.08em;
  color: var(--blue);
  flex: 0 0 auto;
}
.weather-mini-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}
.tv-mode-body { overflow: hidden; }
.tv-weather-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.tv-weather-layout > section,
.tv-weather-screen,
.tv-weather-risk > section {
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: clamp(14px, 1.8vw, 26px);
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  align-content: start;
}
.tv-weather-layout h3,
.tv-weather-screen h3,
.tv-weather-risk h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.5rem); letter-spacing: -.05em; }
.tv-weather-summary {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
}
.tv-weather-summary > span { color: rgba(249,251,247,.72); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.tv-weather-summary strong { font-size: clamp(4rem, 9vw, 8rem); line-height: .85; letter-spacing: -.09em; }
.tv-weather-summary em { font-style: normal; font-size: clamp(1.1rem, 2vw, 2rem); font-weight: 900; color: #dbeed3; }
.tv-weather-summary div { display: grid; gap: 7px; }
.tv-weather-summary small { color: rgba(249,251,247,.72); font-weight: 820; font-size: clamp(.9rem, 1.3vw, 1.2rem); }
.tv-radar-panel { grid-template-rows: auto minmax(0, 1fr); }
.tv-radar-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(221,237,246,.18);
  border: 1px solid rgba(255,255,255,.14);
}
.tv-radar-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}
.tv-weather-screen.radar-only {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.tv-weather-risk {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(280px, .42fr) minmax(0, .8fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.tv-weather-risk .tv-radar-panel { grid-template-rows: auto minmax(0, 1fr); }
.tv-risk-list { display: grid; gap: 10px; min-height: 0; overflow: hidden; align-content: start; }
.tv-hourly-strip { display: grid; gap: 8px; }
.tv-hourly-strip span { display: flex; justify-content: space-between; gap: 12px; border-radius: 16px; background: rgba(255,255,255,.1); padding: 9px 11px; font-weight: 850; color: rgba(249,251,247,.74); }
.tv-hourly-strip strong { color: #f9fbf7; }
.tv-vertical .tv-weather-layout,
.tv-vertical .tv-weather-risk { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); }
.tv-vertical .tv-weather-summary strong { font-size: clamp(3rem, 8vw, 6rem); }
@media (max-width: 760px) {
  .weather-widget.weather-mini { width: 148px; max-height: 68px; }
  .tv-weather-layout, .tv-weather-risk { grid-template-columns: 1fr; }
}

/* v4.0.0 account-selectable themes and uploadable theme files */
.theme-selector-panel { border-color: rgba(56,106,136,0.16); }
.admin-theme-panel { border-color: rgba(69,109,76,0.18); }
.theme-file-list { display: grid; gap: 10px; margin-top: 12px; }
.theme-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.58); border: 1px solid var(--line); }
.theme-file-row strong, .theme-file-row span { display: block; }

body.theme-sketch-mobile {
  --bg: #fbfaf4;
  --ink: #22221e;
  --muted: #68645d;
  --glass: rgba(255,255,255,0.82);
  --glass-strong: rgba(255,255,255,0.94);
  --line: rgba(34,34,30,0.22);
}

@media (max-width: 760px) {
  body.theme-sketch-mobile { font-family: "Comic Sans MS", "Marker Felt", "Segoe Print", ui-rounded, system-ui, sans-serif; letter-spacing: 0; }
  body.theme-sketch-mobile .scene { background: #fbfaf4; }
  body.theme-sketch-mobile .scene::after { background-image: linear-gradient(rgba(34,34,30,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,34,30,.05) 1px, transparent 1px); background-size: 24px 24px; mask-image: none; }
  body.theme-sketch-mobile .orb { display: none; }
  body.theme-sketch-mobile .app-shell { display: block; padding: 10px 10px 92px; }
  body.theme-sketch-mobile .sidebar { position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto; height: auto; z-index: 30; padding: 8px; border-radius: 24px; background: #fffdf6; border: 2px solid #24231f; box-shadow: 4px 5px 0 rgba(34,34,30,.15); }
  body.theme-sketch-mobile .brand-mark, body.theme-sketch-mobile #sidebar-weather, body.theme-sketch-mobile #signed-in-card, body.theme-sketch-mobile .sidebar .ghost-button { display: none !important; }
  body.theme-sketch-mobile .nav-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  body.theme-sketch-mobile .nav-list button { text-align: center; border-radius: 18px; padding: 10px 4px; font-size: .72rem; color: #292820; border: 1px dashed transparent; }
  body.theme-sketch-mobile .nav-list button.active { background: #f8f0d9; border: 1px solid #24231f; box-shadow: 2px 2px 0 rgba(34,34,30,.12); }
  body.theme-sketch-mobile .workspace { display: block; }
  body.theme-sketch-mobile .topbar { padding: 14px; margin-bottom: 12px; border-radius: 24px; background: #fffdf6; border: 2px solid #24231f; box-shadow: 4px 5px 0 rgba(34,34,30,.12); backdrop-filter: none; }
  body.theme-sketch-mobile .topbar h2 { font-size: 1.65rem; letter-spacing: 0; }
  body.theme-sketch-mobile .eyebrow { color: #585144; font-size: .7rem; }
  body.theme-sketch-mobile .topbar-actions { gap: 6px; }
  body.theme-sketch-mobile .panel, body.theme-sketch-mobile .stat-card, body.theme-sketch-mobile .event-card, body.theme-sketch-mobile .leader-card, body.theme-sketch-mobile .issue-card, body.theme-sketch-mobile .task-card { background: #fffdf6; border: 2px solid #24231f; border-radius: 24px; box-shadow: 4px 5px 0 rgba(34,34,30,.12); }
  body.theme-sketch-mobile .panel { padding: 14px; }
  body.theme-sketch-mobile .hero-grid, body.theme-sketch-mobile .grid-2, body.theme-sketch-mobile .grid-3 { grid-template-columns: 1fr; }
  body.theme-sketch-mobile .stat-card { min-height: 105px; }
  body.theme-sketch-mobile .primary-button, body.theme-sketch-mobile .ghost-button, body.theme-sketch-mobile .tiny-button, body.theme-sketch-mobile .chip-button { border: 2px solid #24231f; background: #fffdf6; color: #24231f; box-shadow: 3px 4px 0 rgba(34,34,30,.12); border-radius: 18px; }
  body.theme-sketch-mobile .primary-button { background: #f7e4b8; }
  body.theme-sketch-mobile input, body.theme-sketch-mobile select, body.theme-sketch-mobile textarea { background: #fff; border: 2px solid #24231f; border-radius: 16px; box-shadow: 2px 3px 0 rgba(34,34,30,.08); }
  body.theme-sketch-mobile .event-card::before { background: #24231f; width: 4px; opacity: 1; }
  body.theme-sketch-mobile .dashboard-card-my-next-up, body.theme-sketch-mobile .my-next-card { outline: 2px dashed rgba(34,34,30,.22); outline-offset: -8px; }
  body.theme-sketch-mobile .pill, body.theme-sketch-mobile .status-pill, body.theme-sketch-mobile .badge { background: #f8f0d9; border: 1.5px solid #24231f; color: #24231f; }
  body.theme-sketch-mobile .modal-card, body.theme-sketch-mobile .pulse-menu-card { background: #fffdf6; border: 2px solid #24231f; box-shadow: 6px 7px 0 rgba(34,34,30,.16); backdrop-filter: none; }
}


/* v4.1.0 conflicts, golf carts, and comment checkbox polish */
.comments-form .contact-toggle {
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}
.comments-form .contact-toggle input {
  width: auto;
  inline-size: 18px;
  block-size: 18px;
}
.conflict-list,
.cart-schedule-list,
.volunteer-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.conflict-card,
.cart-schedule-card,
.volunteer-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 52, 43, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}
.conflict-card {
  grid-template-columns: auto 1fr;
}
.conflict-pair {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(36, 52, 43, .08);
}
.conflict-pair:first-child { border-top: 0; }
.cart-schedule-card {
  grid-template-columns: 1.3fr auto .9fr 1.3fr auto;
}
.cart-schedule-card small,
.volunteer-row span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.volunteer-row {
  grid-template-columns: 1fr auto auto;
}
.notification-reset-panel .danger-button { width: fit-content; }
@media (max-width: 760px) {
  .cart-schedule-card,
  .volunteer-row,
  .conflict-card { grid-template-columns: 1fr; }
  .comments-form .contact-toggle { white-space: normal; }
}

/* v4.3.0 public golf cart dashboard */
.golf-cart-public-body { min-height: 100vh; margin: 0; background: var(--bg, #f4f1e8); color: var(--text, #1d241d); }
.golf-cart-public-shell { width: min(920px, calc(100% - 28px)); margin: 18px auto; position: relative; z-index: 1; }
.golf-cart-public-header { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 28px; background: rgba(255,255,255,.78); border: 1px solid rgba(36,54,37,.12); box-shadow: 0 20px 50px rgba(26,43,31,.10); }
.golf-cart-public-header .brand-logo { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 22px; background: transparent; box-shadow: none; }
.golf-cart-public-header h1 { margin: 2px 0 4px; font-size: clamp(2rem, 8vw, 3.5rem); line-height: .96; letter-spacing: -.06em; }
.golf-cart-public-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.golf-cart-public-summary article { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.72); border: 1px solid rgba(36,54,37,.10); text-align: center; }
.golf-cart-public-summary strong { display: block; font-size: 2rem; line-height: 1; }
.golf-cart-public-summary span { display: block; color: var(--muted, #677167); font-size: .78rem; margin-top: 4px; }
.golf-cart-public-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.golf-cart-public-tabs button { border: 1px solid rgba(36,54,37,.13); background: rgba(255,255,255,.72); border-radius: 999px; padding: 10px 14px; font-weight: 900; white-space: nowrap; color: inherit; }
.golf-cart-public-tabs button.active { background: #3c7343; color: white; border-color: #3c7343; }
.golf-day-group { margin: 10px 0 22px; }
.golf-day-group h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #677167); margin: 10px 4px; }
.golf-run-card { background: rgba(255,255,255,.84); border: 1px solid rgba(36,54,37,.12); border-left: 8px solid #3c7343; border-radius: 24px; padding: 16px; margin: 10px 0; box-shadow: 0 16px 40px rgba(20,40,22,.10); }
.golf-run-card.phase-before { border-left-color: #4a78a8; }
.golf-run-card.phase-during { border-left-color: #3c7343; }
.golf-run-card.phase-after { border-left-color: #a76b37; }
.golf-run-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.golf-run-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.golf-run-driver { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; margin: 14px 0; padding: 12px; border-radius: 18px; background: rgba(60,115,67,.08); }
.golf-run-driver span { color: var(--muted, #677167); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.golf-run-driver a { text-decoration: none; padding: 8px 10px; border-radius: 999px; background: white; border: 1px solid rgba(36,54,37,.12); color: #315f38; font-weight: 900; }
.golf-run-route { display: grid; gap: 7px; font-size: .96rem; }
.golf-run-notes { margin: 12px 0 0; padding: 12px; border-radius: 16px; background: rgba(247,242,227,.9); }
.qr-share-panel { margin-bottom: 14px; }
@media (max-width: 640px) {
  .golf-cart-public-shell { width: min(100% - 18px, 520px); margin: 10px auto 20px; }
  .golf-cart-public-header { align-items: flex-start; border-radius: 22px; padding: 14px; }
  .golf-cart-public-header .brand-logo { width: 62px; height: 62px; flex-basis: 62px; }
  .golf-cart-public-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .golf-cart-public-summary article { padding: 10px 6px; }
  .golf-cart-public-summary strong { font-size: 1.55rem; }
  .golf-run-card { border-radius: 20px; padding: 14px; }
  .golf-run-driver { grid-template-columns: 1fr auto auto; }
  .golf-run-driver span { grid-column: 1 / -1; }
}

/* v4.3.0 golf cart driver-focused dashboard */
.golf-cart-public-drivers { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.golf-cart-public-drivers button { border: 1px solid rgba(36,54,37,.14); background: rgba(255,255,255,.78); border-radius: 999px; padding: 10px 14px; font-weight: 950; white-space: nowrap; color: inherit; box-shadow: 0 10px 24px rgba(24,42,28,.06); }
.golf-cart-public-drivers button.active { background: #203b25; color: white; border-color: #203b25; }
.golf-cart-public-drivers button span { display: inline-flex; justify-content: center; align-items: center; min-width: 22px; height: 22px; margin-left: 6px; border-radius: 999px; background: rgba(60,115,67,.12); font-size: .75rem; }
.golf-cart-public-drivers button.active span { background: rgba(255,255,255,.18); }
.golf-filter-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin: -2px 0 8px; color: var(--muted, #677167); font-size: .9rem; }
.golf-run-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cart-number-pill { flex: 0 0 auto; border: 1px solid rgba(36,54,37,.13); background: #203b25; color: white; border-radius: 999px; padding: 8px 10px; font-size: .78rem; font-weight: 950; }
.driver-name-button, .location-inline-button { appearance: none; border: 0; background: transparent; padding: 0; color: #315f38; font: inherit; font-weight: 950; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.golf-run-driver .driver-name-button { justify-self: start; }
.public-modal-backdrop { position: fixed; inset: 0; z-index: 1000; padding: 18px; display: grid; place-items: center; background: rgba(15,26,18,.48); backdrop-filter: blur(6px); }
.public-location-modal { position: relative; width: min(720px, 100%); max-height: min(88vh, 900px); overflow: auto; border-radius: 28px; background: #fffdf7; border: 1px solid rgba(36,54,37,.14); box-shadow: 0 30px 90px rgba(13,28,17,.32); padding: 20px; }
.public-location-modal h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -.05em; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid rgba(36,54,37,.13); border-radius: 999px; background: white; font-size: 1.4rem; font-weight: 900; }
.public-location-map { position: relative; overflow: hidden; border-radius: 22px; background: rgba(60,115,67,.08); border: 1px solid rgba(36,54,37,.12); min-height: 220px; display: grid; place-items: center; }
.public-location-map img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.public-pin { position: absolute; transform: translate(-50%, -50%); font-size: 2.2rem; line-height: 1; color: #d83b2d; text-shadow: 0 2px 0 white, 0 0 18px rgba(216,59,45,.55); }
@media (max-width: 640px) {
  .golf-filter-note { align-items: flex-start; flex-direction: column; }
  .golf-run-title-row { flex-direction: column; gap: 8px; }
  .cart-number-pill { align-self: flex-start; }
  .public-modal-backdrop { padding: 10px; align-items: end; }
  .public-location-modal { border-radius: 24px 24px 18px 18px; max-height: 90vh; }
}

/* v4.6.0 status controls */
.checkin-window-hint { align-self: center; padding: 0.25rem 0.5rem; }
.tiny-button.warning-button { border-style: dashed; }
.tiny-button:disabled { opacity: 0.55; cursor: not-allowed; }

/* v4.7.0 safe editing/live update banner */
.live-update-notice {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.96);
  color: #3f2f09;
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.12);
  margin-bottom: 16px;
}
.live-update-notice strong { display: block; }
.live-update-notice span { display: block; font-size: 0.9rem; opacity: 0.82; }
.live-update-notice .button-row { margin: 0; flex-shrink: 0; }
@media (max-width: 760px) {
  .live-update-notice { align-items: stretch; flex-direction: column; }
  .live-update-notice .button-row { width: 100%; }
  .live-update-notice .button-row button { flex: 1; }
}

/* v4.8.0 settings reliability */
.settings-nav-panel { padding: 12px; }
.settings-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.settings-nav-button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 750;
  cursor: pointer;
}
.settings-nav-button.active {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.settings-section-shell { display: grid; gap: 16px; }
@media (max-width: 720px) {
  .settings-section-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .settings-nav-button { flex: 0 0 auto; }
}

/* v4.9 golf cart time-window admin views */
.golf-admin-split { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 1rem; margin-top: 1rem; }
.cart-mini-list { display: grid; gap: .65rem; }
.cart-mini-group { border: 1px solid var(--border); border-radius: 16px; padding: .85rem; background: var(--panel-soft); }
.cart-mini-group h4 { margin: 0 0 .45rem; }
.cart-mini-group p { margin: .25rem 0; font-size: .85rem; color: var(--muted); }
.danger-text { color: #b91c1c !important; font-weight: 800; display: block; }
@media (max-width: 960px) { .golf-admin-split { grid-template-columns: 1fr; } }
