/* findlocal.music -- Phase 0 base styles.
   Deliberately small and dependency-free. A real design system lands with the
   public browse experience in Phase 3. */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-muted: #9aa3b2;
  --accent: #ff5c39;
  --accent-soft: rgba(255, 92, 57, 0.12);
  --radius: 10px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --border: #dfe3e9;
    --text: #16181d;
    --text-muted: #616b7a;
    --accent-soft: rgba(255, 92, 57, 0.1);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--accent); }
.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-size: 0.94rem; }
.site-nav a.muted { color: var(--text-muted); cursor: default; }
.site-nav a.muted:hover { text-decoration: none; }

/* hero */

.hero { padding: 48px 0 28px; }
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lede { margin: 0; color: var(--text-muted); font-size: 1.08rem; }
.hero-logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 20px;
  margin: 0 0 20px;
}

/* panels */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.panel-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* forms */

.region-form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted, #aaa);
  opacity: 0.55;
}

.field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 0.98rem;
  min-width: 150px;
}
.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 0.88rem; }
.btn-quiet { background: var(--surface, #f4f4f4); color: var(--text, #111); border: 1px solid var(--border, #ddd); }
.btn-quiet:hover { background: var(--border, #ddd); filter: none; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.claim-cta { border: 1px dashed var(--border, #ccc); }

.inline-form { display: inline; }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

.panel-narrow { max-width: 420px; margin-inline: auto; margin-top: 40px; }

.stack-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.stack-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 0.98rem;
  width: 100%;
}
.stack-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* results */

.result-summary { margin: 4px 0 14px; }

.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.empty {
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.empty p { margin: 0 0 6px; }
.empty p:last-child { margin-bottom: 0; }

/* key/value list */

.kv {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 8px 20px;
  margin: 16px 0;
}
.kv dt { color: var(--text-muted); font-size: 0.88rem; }
.kv dd { margin: 0; }

/* alerts */

.alert {
  padding: 11px 15px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 14px 0;
}
.alert-error { border-color: #b4443a; }
.alert-success { border-color: #3f8f5a; }

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 26px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.footer-icon { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }

.muted { color: var(--text-muted); }
.small { font-size: 0.86rem; }

/* ---- profiles ---- */

.hero-compact { padding: 32px 0 18px; }

.field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 0.98rem;
  min-width: 150px;
}

.card-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.card:hover { border-color: var(--accent); }
.card-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--text);
}
.card-link:hover { text-decoration: none; }

.card-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-initial { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-title { font-weight: 600; letter-spacing: -0.01em; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); }

.badge-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 3px;
}

.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

/* profile header */

.profile-header { margin: 22px 0 18px; }
.profile-banner {
  aspect-ratio: 3 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-banner-empty {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}

.profile-identity {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-top: -38px;
  padding: 0 20px;
}
.profile-avatar {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-empty span { font-size: 2rem; font-weight: 700; color: var(--accent); }

.profile-titles { padding-bottom: 4px; min-width: 0; }
.profile-titles h1 {
  margin: 0 0 2px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.profile-titles p { margin: 0; }

.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.alert-claim { border-color: var(--accent); background: var(--accent-soft); }

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.subhead { font-size: 0.95rem; margin: 14px 0 4px; }

.link-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.link-row a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.88rem;
}
.link-row a:hover { border-color: var(--accent); text-decoration: none; }

@media (max-width: 860px) {
  .detail-columns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .profile-identity { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 12px; }
}

@media (max-width: 620px) {
  .region-form { flex-direction: column; align-items: stretch; }
  .field input { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}

/* ---- shows ---- */

.show-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.show-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.show-card:hover { border-color: var(--accent); }

.show-card-link {
  display: flex;
  gap: 0;
  color: var(--text);
  text-decoration: none;
}
.show-card-link:hover { text-decoration: none; }

.show-flyer {
  flex: 0 0 80px;
  width: 80px;
  overflow: hidden;
  background: var(--surface);
}
.show-flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }

.show-date-block {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--accent-soft);
  border-right: 1px solid var(--border);
  min-height: 80px;
}
.show-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.show-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.show-body {
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}

.show-venue {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-lineup {
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-artist-pending { opacity: 0.6; }
.show-pending-mark {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 0.65rem;
  text-align: center;
  line-height: 14px;
  vertical-align: middle;
  margin-left: 2px;
}

.show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.show-cover-free { color: #3f8f5a; }
.show-age { }

.show-cancelled-banner {
  background: #b4443a22;
  border-top: 1px solid #b4443a55;
  color: #e87060;
  font-size: 0.8rem;
  padding: 4px 14px;
}

/* show detail */

.show-detail-flyer {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 480px;
  background: var(--surface);
}
.show-flyer-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.show-detail-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 16px 0 22px;
}

.show-date-block-lg {
  flex: 0 0 72px;
  min-height: auto;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.show-date-block-lg .show-day { font-size: 2.2rem; }
.show-year { display: block; font-size: 0.72rem; margin-top: 2px; }

.show-detail-title {
  margin: 0 0 4px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.show-detail-venue { margin: 0; color: var(--text-muted); }

.lineup-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lineup-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lineup-name {
  font-weight: 600;
}

.venue-banner-thumb {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  max-height: 120px;
  display: block;
  margin-top: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .show-date-block { flex: 0 0 52px; }
  .show-day { font-size: 1.3rem; }
  .show-body { padding: 8px 10px; }
  .show-detail-header { flex-direction: column; gap: 12px; }
}

/* ---- admin bar (staff only, fixed floating) ---- */

.admin-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
}

.admin-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0 6px 0 2px;
  border-right: 1px solid var(--border);
  margin-right: 2px;
  white-space: nowrap;
}

.admin-bar-btn {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.admin-bar-btn:hover { background: var(--surface-2); text-decoration: none; }
.admin-bar-danger { color: #e87060; }
.admin-bar-danger:hover { background: rgba(180, 68, 58, 0.15); text-decoration: none; }

/* ---- admin edit chip on list cards (hover reveal) ---- */

.card-admin-edit {
  position: absolute;
  top: 7px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}
.show-card:hover .card-admin-edit,
.card:hover .card-admin-edit,
.festival-card:hover .card-admin-edit {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Phase 3: date preset pills ---- */

.date-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
}

.date-preset-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-2);
  cursor: pointer;
  white-space: nowrap;
}
.date-preset-btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.date-preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.date-preset-separator { color: var(--text-muted); font-size: 0.85rem; }

.date-range-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 9px;
  color: var(--text);
  font-size: 0.88rem;
  color-scheme: dark;
}

.time-range-field { align-items: flex-start; }

.time-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.time-sel-group {
  display: flex;
  align-items: center;
}

/* Selects sit edge-to-edge so they read as one compound control. */
.time-sel {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  padding: 8px 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}
.time-sel:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  position: relative;
  z-index: 1;
}

/* Hour: wide enough for two digits */
.time-sel-h {
  width: 48px;
  border-radius: 7px 0 0 7px;
  border-right: none;
}
/* Minute: ":00" etc — no left/right border so it merges with neighbours */
.time-sel-m {
  width: 48px;
  border-radius: 0;
  border-left: 1px solid var(--border);
  border-right: none;
  padding-left: 2px;
}
/* AM/PM: narrowest, closes the group */
.time-sel-ap {
  width: 52px;
  border-radius: 0 7px 7px 0;
  border-left: 1px solid var(--border);
}

.time-range-sep { font-size: 1rem; line-height: 1; user-select: none; }

/* ---- Phase 3: festival cards ---- */

.festivals-section { margin-bottom: 20px; }
.festivals-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.festival-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.festival-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.festival-card:hover { border-color: var(--accent); }

.festival-card-link {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
  padding: 0;
}
.festival-card-link:hover { text-decoration: none; }

.festival-date-block {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--accent-soft);
  border-right: 1px solid var(--border);
  min-height: 72px;
}
.festival-end-label {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1px;
}

.festival-body {
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.festival-name {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.festival-organizer {
  font-size: 0.83rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.festival-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  align-items: center;
}
.festival-badge {
  flex: 0 0 auto;
  margin: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Phase 3: home page ---- */

.home-location-form {
  margin-bottom: 20px;
}

.home-see-more {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: light) {
  .date-range-input,
  .time-sel { color-scheme: light; }
}

@media (max-width: 620px) {
  .date-presets { gap: 6px; }
  .date-preset-btn { padding: 4px 10px; font-size: 0.8rem; }
}

/* ---- Show detail: carousel prev/next navigation ---- */

.show-nav-fixed {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.show-nav-fixed-prev { left: 16px; }
.show-nav-fixed-next { right: 16px; }

/* On wide screens, tuck arrows just outside the content column. */
@media (min-width: 1280px) {
  .show-nav-fixed-prev { left: calc((100vw - 1080px) / 2 - 72px); }
  .show-nav-fixed-next { right: calc((100vw - 1080px) / 2 - 72px); }
}

.show-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.show-nav-arrow:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.show-nav-arrow-disabled {
  opacity: 0.25;
  cursor: default;
}
.show-nav-pos {
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .show-nav-fixed { display: none; }
}

/* ---- Profile switcher ---- */
.profile-switcher {
  position: relative;
}
.profile-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  cursor: pointer;
}
.profile-switcher-trigger:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.profile-switcher-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 200;
  overflow: hidden;
}
.profile-switcher:hover .profile-switcher-menu,
.profile-switcher:focus-within .profile-switcher-menu {
  display: block;
}
.profile-switcher-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.profile-switcher-item:hover { background: var(--surface-2); text-decoration: none; }
.profile-switcher-item.active { color: var(--accent); }

/* ---- Status badges ---- */
.badge-pending { background: #b8860b22; color: #d4a017; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; }
.badge-approved { background: #1a5c2a22; color: #4caf50; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; }
.badge-rejected { background: #5c1a1a22; color: #e57373; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; }

/* ---- Dashboard profile list ---- */
.profile-list { list-style: none; margin: 0; padding: 0; }
.profile-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-list-item:last-child { border-bottom: none; }
.profile-name { flex: 1; font-weight: 500; }
.profile-actions { display: flex; gap: 6px; }

/* ---- Form helpers ---- */
.field-error { color: #e57373; font-size: 0.85rem; margin: 2px 0 0; }
.field-help { margin: 2px 0 4px; }
.field-check { display: flex; align-items: flex-start; gap: 8px; }
.field-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.alert-warning { border-color: #b8860b; background: #b8860b11; }
.input-sm { font-size: 0.85rem; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }


/* ---- Notification bell ---- */
.nav-bell { position: relative; text-decoration: none; }
.nav-bell-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e57373;
  color: #fff;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
}

/* ---- Inbox unread indicator ---- */
.agenda-item--unread { border-left: 3px solid var(--accent, #7ec8e3); padding-left: 8px; }
.badge-unread {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent, #7ec8e3);
  color: #000;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ---- Messaging ---- */
.message-thread { display: flex; flex-direction: column; gap: 16px; margin-top: 1rem; }
.message { max-width: 75%; padding: 12px 16px; border-radius: 8px; }
.message--mine { align-self: flex-end; background: var(--accent-dim, #1a3a4a); }
.message--theirs { align-self: flex-start; background: var(--surface, #1e1e1e); border: 1px solid var(--border); }
.message-meta { margin-bottom: 4px; }
.message-body p { margin: 0 0 8px; }
.message-body p:last-child { margin-bottom: 0; }

/* ---- New message dialog ---- */
.msg-dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  width: min(520px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
}
.msg-dialog::backdrop { background: rgba(0,0,0,0.6); }
.msg-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.msg-dialog-title { margin: 0; font-size: 1.1rem; }
.msg-dialog-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted, #888);
  padding: 0 4px;
}
.msg-dialog-close:hover { color: var(--text); }
.msg-type-row { padding: 14px 20px 10px; }
#section-artist, #section-venue { padding: 0 20px 4px; }
.msg-filter-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.msg-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  padding: 4px;
}
.msg-select option:disabled { color: var(--text-muted, #888); font-style: italic; }
.msg-restricted-note { margin: 6px 0 4px; }
#section-compose { padding: 0 20px 4px; }
.msg-subject-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.msg-body-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
}
.msg-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.msg-privacy-notice {
  margin: 0;
  padding: 6px 20px 14px;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.7;
}
