:root {
  --teal: #2BBFBF;
  --teal-dark: #1E9E9E;
  --teal-light: #E4F9F9;
  --black: #111;
  --mid: #444;
  --muted: #888;
  --border: #E0E0E0;
  --bg: #F5F5F5;
  --white: #FFF;
  --green: #2A9D5C;
  --amber: #E6A817;
  --blue: #2C6FAD;
  --red: #C42;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  border-radius: 50%;
}

.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.logo-name span {
  color: var(--teal);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.tabs {
  display: flex;
  height: 60px;
}

.tab {
  height: 60px;
  padding: 0 1.4rem;
  background: none;
  border: none;
  color: #888;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

.tab:hover {
  color: white;
}

.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.section {
  display: none;
  animation: fadeIn .3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero {
  background: var(--black);
  color: white;
  text-align: center;
  position: relative;
}

.hero-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  padding: 2rem 2rem 2.5rem;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.hero::before {
  content: 'Ö';
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22rem;
  color: rgba(255, 255, 255, 0.03);
  right: -2rem;
  top: -3rem;
  line-height: 1;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-event-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  display: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-date-loc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* HERO LINKS */
.hero-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  color: #FFF;
  text-decoration: none;
  font-weight: 700;
}

.hero-link-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* DEADLINE */
.hero-deadline {
  display: none;
  margin-bottom: 0.8rem;
}

.hero-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 0.8rem;
}

.hero-cal-btn:hover {
  background: var(--teal-dark);
}

/* DESCRIPTION */
.hero-desc-wrap {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: left;
}

.hero-desc-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  word-break: break-word;
}

.hero-desc-text a {
  color: #7DD3FC;
  text-decoration: underline;
}

.hero-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 0.45rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.hero-chip.loc {
  border-color: rgba(43, 191, 191, 0.6);
  background: rgba(43, 191, 191, 0.15);
}

.hero-chip.loc:hover {
  background: rgba(43, 191, 191, 0.3);
  border-color: rgba(43, 191, 191, 0.9);
  cursor: pointer;
}

.hero-chip.date {
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-chip.time {
  border-color: rgba(255, 200, 80, 0.5);
  background: rgba(255, 200, 80, 0.1);
}

#heroDescFull table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

#heroDescFull th {
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#heroDescFull td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  vertical-align: top;
}

#heroDescFull tr:last-child td {
  border-bottom: none;
}

#heroDescFull ul, #heroDescFull ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}

#heroDescFull li {
  margin-bottom: 0.3rem;
}

#heroDescFull strong {
  color: white;
  font-weight: 700;
}

#heroDescPreview table, #heroDescPreview ul, #heroDescPreview ol {
  display: none;
}

.desc-toggle-btn {
  display: block;
  margin: 0.6rem auto 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 20px;
  padding: 0.35rem 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  text-align: center;
}

.desc-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cap-overview {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.cap-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  min-width: 100px;
  text-align: center;
}

.cap-chip-name {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.3rem;
}

.cap-chip-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 0.3rem;
  overflow: hidden;
}

.cap-chip-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width .6s;
}

.cap-chip-fill.full {
  background: var(--red);
}

.cap-chip-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.no-event-wrap {
  max-width: 480px;
  margin: 5rem auto;
  text-align: center;
  padding: 2rem;
}

.no-event-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.no-event-wrap h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.no-event-wrap p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 1rem 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.span2 {
  grid-column: 1/-1;
}

label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

label .req {
  color: var(--teal);
}

input, select, textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 191, 191, 0.15);
  background: white;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: checkbox;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

input::placeholder, textarea::placeholder {
  color: #CCC;
}

.check-row {
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.check-row label {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mid);
  cursor: pointer;
  line-height: 1.5;
}

.radio-row {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.radio-row input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: radio;
}

.radio-row label {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mid);
  cursor: pointer;
  line-height: 1.5;
  flex-shrink: 0;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

input[type="range"] {
  -webkit-appearance: none;
  flex: 1;
  height: 4px;
  background: #EEE;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-size: 70% 100%;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(43, 191, 191, 0.4);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.score-bubble {
  background: var(--teal);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.9rem 2rem;
  background: var(--teal);
  border: 2px solid var(--teal);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, transform .1s;
}

.submit-btn:hover {
  background: var(--teal-dark);
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.outline-btn {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--mid);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  transition: all .12s;
}

.outline-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.outline-btn.teal-btn {
  border-color: var(--teal);
  color: var(--teal);
}

.outline-btn.teal-btn:hover {
  background: var(--teal);
  color: white;
}

.outline-btn.red-btn {
  border-color: var(--red);
  color: var(--red);
}

.outline-btn.red-btn:hover {
  background: var(--red);
  color: white;
}

.outline-btn.green-btn {
  border-color: var(--green);
  color: var(--green);
}

.outline-btn.green-btn:hover {
  background: var(--green);
  color: white;
}

.confirm-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.confirm-icon {
  width: 90px;
  height: 90px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: popIn .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6)
  }
  to {
    opacity: 1;
    transform: scale(1)
  }
}

.confirm-wrap h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.confirm-wrap h2 em {
  color: var(--green);
  font-style: normal;
}

.confirm-wrap .sub {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.confirm-wrap .sub strong {
  color: var(--black);
}

.confirm-wrap .sub em {
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
}

.cal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  border: none;
  border-radius: 20px;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  transition: background .15s;
}

.cal-add-btn:hover {
  background: var(--teal-dark);
}

.cal-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-width: 220px;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cal-dropdown.open {
  display: block;
}

.cal-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--black);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.cal-dd-item:last-child {
  border-bottom: none;
}

.cal-dd-item:hover {
  background: var(--bg);
}

.cal-dd-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
}

.confirm-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.confirm-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid #F5F5F5;
}

.confirm-row:last-child {
  border-bottom: none;
}

.ck {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv {
  font-size: 0.9rem;
  font-weight: 500;
}

.back-btn {
  padding: 0.7rem 2rem;
  background: none;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
}

.back-btn:hover {
  background: var(--teal);
  color: white;
}

.picker-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.picker-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(43, 191, 191, 0.13);
}

.picker-card-inner {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.picker-left {
  flex: 1;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.picker-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.picker-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  margin-top: auto;
}

.picker-desc {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.5;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 0.5rem 0.8rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.5rem;
}

.picker-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.2rem 1.5rem;
  background: #FAFAFA;
  border-left: 1px solid var(--border);
  min-width: 140px;
  text-align: center;
}

.picker-fill-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.picker-fill-bar {
  width: 100%;
  height: 4px;
  background: #EEE;
  border-radius: 2px;
  overflow: hidden;
}

.picker-fill-inner {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
}

.picker-fill-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.picker-btn {
  margin-top: 0.3rem;
  padding: 0.5rem 1.1rem;
  background: var(--teal);
  border: none;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  transition: background .15s;
  white-space: nowrap;
}

.picker-card:hover .picker-btn {
  background: var(--teal-dark);
}

.event-grid {
  display: grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.2rem 1rem;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: #CCC;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.event-card.active-event {
  border-color: var(--teal);
  border-left: 4px solid var(--teal);
}

.ec-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ec-status.archived {
  color: var(--muted);
}

.archived-event {
  border-style: dashed;
}

.ec-body {
  flex: 1;
}

.ec-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.ec-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.ec-stats {
  display: flex;
  gap: 1.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ec-stat {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ec-stat strong {
  display: block;
  font-weight: 700;
  color: var(--black);
  font-size: 1rem;
  line-height: 1.1;
}

.ec-acts {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #F0F0F0;
  flex-wrap: wrap;
}

.new-event-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: none;
}

.new-event-form.open {
  display: block;
  animation: fadeIn .25s ease;
}

.section-divider {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

#newEventLimits, #editEvLimits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}

.limit-row span {
  color: var(--mid);
}

.limit-mini-input {
  width: 52px;
  padding: 0.25rem 0.4rem;
  font-size: 0.82rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.limit-row.inst-disabled {
  opacity: 0.45;
}

.limit-row.inst-disabled span {
  text-decoration: line-through;
}

.inst-toggle {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.inst-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.inst-toggle-slider {
  position: absolute;
  inset: 0;
  background: #CCC;
  border-radius: 16px;
  cursor: pointer;
  transition: background .2s;
}

.inst-toggle-slider:before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}

.inst-toggle input:checked + .inst-toggle-slider {
  background: var(--teal);
}

.inst-toggle input:checked + .inst-toggle-slider:before {
  transform: translateX(12px);
}

.inner-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.inner-tab {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}

.inner-tab:hover {
  color: var(--black);
}

.inner-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.inner-panel {
  display: none;
  animation: fadeIn .25s ease;
}

.inner-panel.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns:repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1rem;
  text-align: center;
}

.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
}

.stat-l {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.sn-total {
  color: var(--teal)
}

.sn-conf {
  color: var(--green)
}

.sn-wait {
  color: var(--amber)
}

.sn-pend {
  color: var(--blue)
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.fpill {
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
  transition: all .15s;
}

.fpill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.fpill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.sort-sel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.sort-sel select {
  width: auto;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
}

.musician-row-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}

.musician-row-wrap:hover {
  border-color: #CCC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.musician-row {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 10px 0 0;
}

.row-num {
  width: 36px;
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #DDD;
  text-align: center;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-info {
  flex: 1;
  padding: 10px 12px;
  min-width: 0;
}

.row-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.row-meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  align-items: center;
}

.row-extra {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.row-extra-spacer {
  margin-top: 0.4rem;
  height: 24px;
}

.col-eager {
  width: 72px;
  flex-shrink: 0;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.col-status {
  width: 82px;
  flex-shrink: 0;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-acts {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 4px;
  flex-shrink: 0;
}

.eager-mini {
  display: contents;
}

.eager-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eager-track {
  width: 100%;
  height: 5px;
  background: #EEE;
  border-radius: 3px;
  overflow: hidden;
}

.eager-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}

.eager-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--teal);
}

.badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
}

.b-registered {
  background: #F0F0F0;
  color: #888;
}

.b-confirmed {
  background: #E6F7EE;
  color: var(--green);
}

.b-waitlist {
  background: #FFF8E6;
  color: var(--amber);
}

.b-cancelled {
  background: #FEE;
  color: var(--red);
}

.abtn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .12s;
  position: relative;
}

.abtn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 10;
}

.abtn:hover::after {
  opacity: 1;
}

.abtn-view:hover {
  background: #E8F4FF;
  border-color: #85B7EB;
  color: #185FA5;
}

.abtn-edit:hover {
  background: #F0E6FF;
  border-color: #7C3AED;
  color: #7C3AED;
}

.abtn-confirm:hover {
  background: #E6F7EE;
  border-color: var(--green);
  color: var(--green);
}

.abtn-wait:hover {
  background: #FFF8E6;
  border-color: var(--amber);
  color: var(--amber);
}

.abtn-cancel:hover {
  background: #FEE;
  border-color: var(--red);
  color: var(--red);
}

.violin-part-select {
  height: 24px;
  font-size: 0.72rem;
  padding: 0 0.5rem;
  border-radius: 20px;
  border: 1px solid #C4B5FD;
  background: #F5F3FF;
  color: #6D28D9;
  font-weight: 600;
  cursor: pointer;
}

.memo-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.memo-inline label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  white-space: nowrap;
}

.memo-inline input {
  font-size: 0.76rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #E0DDD5;
  border-radius: 4px;
  background: white;
  color: var(--black);
  height: 24px;
  width: 160px;
}

.memo-inline input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(230, 168, 23, 0.15);
}

.memo-inline input.has-value {
  border-color: #EF9F27;
  background: #FAEEDA;
  color: #633806;
  font-weight: 600;
}

.memo-tag-amber {
  background: #FAEEDA;
  color: #633806;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
}

.needs-inst-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--amber);
  background: #FFF8E6;
  border: 1px solid #F0D890;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

.inst-limits-table {
  width: 100%;
  border-collapse: collapse;
}

.inst-limits-table th {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid var(--border);
}

.inst-limits-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.88rem;
  vertical-align: middle;
}

.inst-limits-table tr:last-child td {
  border-bottom: none;
}

.inst-limits-table tr:hover td {
  background: #FAFAFA;
}

.inst-section-row td {
  background: #F8F8F8;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.6rem 0.3rem;
  border-bottom: 1px solid #EEE;
}

.limit-input {
  width: 60px;
  padding: 0.3rem 0.4rem;
  font-size: 0.88rem;
  text-align: center;
}

.cap-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.cap-bar-track {
  flex: 1;
  height: 4px;
  background: #EEE;
  border-radius: 2px;
  overflow: hidden;
  min-width: 60px;
}

.cap-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width .4s;
}

.cap-bar-fill.warn {
  background: var(--amber);
}

.cap-bar-fill.over {
  background: var(--red);
}

.cap-count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-acts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.conf-inst-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.conf-inst-table th {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.4rem 0.7rem;
  border-bottom: 2px solid var(--border);
}

.conf-inst-table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid #F5F5F5;
  font-size: 0.88rem;
  vertical-align: middle;
}

.conf-inst-table tr:last-child td {
  border-bottom: none;
}

.conf-inst-table tr:hover td {
  background: #FAFAFA;
}

.conf-inst-section {
  background: #F8F8F8;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.7rem 0.3rem;
  border-bottom: 1px solid #EEE;
}

.conf-inst-empty {
  text-align: center;
  padding: 2rem;
  color: #CCC;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inst-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.inst-filter-row label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.inst-filter-row select {
  width: auto;
  max-width: 220px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 560px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: popIn .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #EEE;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: background .12s;
}

.modal-close:hover {
  background: #DDD;
}

.modal h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid #F0F0F0;
}

.detail-row:last-of-type {
  border-bottom: none;
}

.dk {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dv {
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
}

.modal-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.modal-btns .outline-btn {
  flex: 1;
  text-align: center;
}

.empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #CCC;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.empty p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--black);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .35s;
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.ok {
  background: var(--green);
}

.toast.err {
  background: var(--red);
}

.cond-section {
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.cond-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.cond-grid {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 1rem;
}

.cond-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cond-field.full {
  grid-column: 1/-1;
}

.cond-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.cb-grid {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

input.field-error, select.field-error, textarea.field-error {
  border-color: var(--red) !important;
  background: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(204, 68, 34, 0.12) !important;
}

input.field-error:focus, select.field-error:focus, textarea.field-error:focus {
  border-color: var(--red) !important;
}

.rte-wrap {
  border: 1.5px solid #CCC;
  border-radius: 5px;
  background: #FAFAFA;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.rte-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 191, 191, 0.15);
  background: white;
}

.rte-toolbar {
  display: flex;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem;
  background: white;
  border-bottom: 1.5px solid var(--border);
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rte-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: all .12s;
  font-family: 'Barlow', sans-serif;
}

.rte-btn:hover {
  background: #F0F0F0;
  border-color: var(--border);
}

.rte-btn.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

select.rte-btn {
  display: inline-block;
  width: auto;
  appearance: auto;
  -webkit-appearance: menulist;
}

.rte-sep {
  width: 1px;
  background: var(--border);
  margin: 2px 3px;
  align-self: stretch;
}

.rte-body {
  min-height: 320px;
  padding: 0.8rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white);
  background-color: var(--black);
  outline: none;
  overflow-y: auto;
  max-height: 560px;
}

.rte-body a {
  color: var(--teal);
  text-decoration: underline;
}

.rte-body:empty:before {
  content: attr(data-placeholder);
  color: #CCC;
  pointer-events: none;
}

/* ── LOGIN MODAL ── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.login-overlay.open {
  display: flex;
}

.login-modal {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 92%;
  text-align: center;
  animation: popIn .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo {
  width: 52px;
  height: 52px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin: 0 auto 1rem;
}

.login-modal h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.login-modal p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.role-cards {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.role-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.role-card:hover {
  border-color: var(--teal);
}

.role-card.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}

.role-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.role-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.role-card-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.login-pw-wrap {
  text-align: left;
  margin-bottom: 1rem;
}

.login-pw-wrap label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 0.35rem;
}

.login-pw-wrap input {
  width: 100%;
}

.login-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.8rem;
  min-height: 1.2em;
}

.login-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--teal);
  border: none;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
}

.login-submit:hover {
  background: var(--teal-dark);
}

.role-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-left: 0.5rem;
}

.role-badge.staff {
  background: var(--teal);
  color: white;
}

.role-badge.ambassador {
  background: #7C3AED;
  color: white;
}

body.ambassador-mode .staff-only {
  display: none !important;
}

body.ambassador-mode .stats-grid {
  display: none !important;
}

.copy-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.copy-box-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-btn-sm {
  padding: 0.3rem 0.9rem;
  background: var(--teal);
  border: none;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s;
}

.copy-btn-sm:hover {
  background: var(--teal-dark);
}

.copy-textarea {
  width: 100%;
  min-height: 90px;
  max-height: 180px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: var(--black);
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.7rem 0.8rem;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}

.ec-status.open {
  color: var(--green);
}

.ec-status.closed {
  color: var(--muted);
}

.ec-status.draft {
  color: var(--amber);
}

button[data-action="archive"] {
  display: none !important;
}

@media (max-width: 640px) {

  /* ── NAV ── */
  nav {
    padding: 0 0.75rem;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    gap: 0;
  }

  .logo-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .logo-sub {
    display: none;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .logo img {
    height: 28px !important;
  }

  .tabs {
    height: auto;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 0 0.6rem;
    font-size: 0.7rem;
    height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  #roleBadge {
    font-size: 0.6rem;
  }

  #logoutBtn {
    font-size: 0.62rem;
    padding: 0.18rem 0.5rem;
    margin-left: 0.3rem;
    flex-shrink: 0;
  }

  /* ── HERO ── */
  .hero {
    padding: 1.5rem 0.9rem 1.2rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-event-title {
    font-size: 1.4rem;
    line-height: 1.15;
  }

  .hero-info-bar {
    gap: 0.3rem;
  }

  .hero-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    gap: 0.3rem;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hero-link-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }

  .cap-chips {
    gap: 0.35rem;
  }

  .cap-chip {
    min-width: 64px;
    padding: 0.35rem 0.45rem;
  }

  .hero-content {
    padding: 1.5rem 1rem 2rem;
  }

  /* ── WRAPPER & FORMS ── */
  .wrapper {
    padding: 1rem 0.8rem 4rem;
  }

  .form-grid, .limits-mini-grid, .cond-grid, .cb-grid {
    grid-template-columns:1fr;
  }

  .form-group.span2 {
    grid-column: 1;
  }

  .stats-grid {
    grid-template-columns:1fr 1fr;
  }

  .event-grid {
    grid-template-columns:1fr;
  }

  .role-cards {
    grid-template-columns:1fr 1fr;
    gap: 0.4rem;
  }

  .role-card {
    padding: 0.65rem 0.4rem;
  }

  .role-card-icon {
    font-size: 1.1rem;
  }

  /* ── EVENT PICKER ── */
  .picker-card-inner {
    flex-direction: column;
  }

  .picker-right {
    border-left: none;
    border-top: 1px solid var(--border);
    min-width: unset;
  }

  .picker-meta {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .picker-name {
    font-size: 1rem;
  }

  /* ── ADMIN INNER TABS ── */
  .inner-tabs {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .inner-tabs::-webkit-scrollbar {
    display: none;
  }

  .inner-tab {
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 0.55rem 0.6rem;
    flex-shrink: 0;
  }

  /* ── ROSTER ── */
  /* Roster layout: single column, sidebar below */
  #panel-roster .layout-grid,
  #panel-roster > div > div[style*="grid-template-columns:1fr 170px"] {
    grid-template-columns:1fr !important;
  }

  /* Cap overview cards wrap tighter */
  #rosterCapOverview {
    gap: 0.4rem;
  }

  #rosterCapOverview > div {
    min-width: 80px !important;
    padding: 0.4rem 0.6rem !important;
  }

  /* Status filter pills */
  #rosterFilterGroup {
    gap: 0.3rem;
  }

  .fpill {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }

  /* Sort row wraps */
  .sort-sel {
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.72rem;
  }

  .sort-sel select {
    font-size: 0.72rem;
    max-width: 100%;
  }

  /* ── ROSTER ROWS ── */
  .musician-row {
    min-height: auto;
    padding: 0.7rem 0.7rem 0 0.7rem;
    flex-wrap: wrap;
  }

  .row-num {
    display: none;
  }

  .row-info {
    padding: 0 0.5rem 0.5rem 0;
  }

  .col-eager {
    width: 56px;
    padding: 0 4px;
  }

  .col-status {
    width: 70px;
    padding: 0 4px;
  }

  .badge {
    min-width: 60px;
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
  }

  .row-acts {
    width: 100%;
    justify-content: flex-end;
    padding: 0.4rem 0.5rem;
    border-top: 1px solid #F0F0F0;
    gap: 0.2rem;
  }

  .abtn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .row-extra-spacer {
    height: 20px;
  }

  .memo-inline input {
    width: 100px;
    font-size: 0.7rem;
  }

  .memo-inline label {
    font-size: 0.6rem;
  }

  /* ── MODALS ── */
  .overlay {
    padding: 0.4rem;
  }

  .modal {
    padding: 1.1rem;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
    margin: 0;
  }

  .login-modal {
    padding: 1.3rem 1rem 1rem;
    width: 96% !important;
  }

  #editRegOverlay .modal .form-grid {
    grid-template-columns:1fr;
  }

  #editRegOverlay .modal .form-group.span2 {
    grid-column: 1;
  }

  /* ── RTE ── */
  .rte-toolbar {
    gap: 0.15rem;
    padding: 0.35rem;
  }

  .rte-btn {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .rte-body {
    min-height: 160px;
  }

  /* ── TOOLS ── */
  .inst-filter-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  #confInstPills {
    gap: 0.2rem;
  }

  .conf-inst-table {
    font-size: 0.75rem;
  }

  .conf-inst-table th, .conf-inst-table td {
    padding: 0.35rem 0.45rem;
  }

  /* ── SLIDERS ── */
  .slider-row {
    gap: 0.4rem;
  }

  .score-bubble {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  /* ── CONFIRM VIEW ── */
  .confirm-wrap {
    padding: 1.2rem 0.9rem 3rem;
  }

  .confirm-row {
    flex-direction: column;
    gap: 0.1rem;
  }

  .ck {
    min-width: unset;
  }

  .confirm-wrap h2 {
    font-size: 1.8rem;
  }

  /* ── AMBASSADOR PICKER ── */
  #ambassadorPicker .pill-grid,
  #ambassadorPickerGroups .pill-grid {
    gap: 0.3rem;
  }

  #ambassadorPickerGroups button {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  /* ── CAL DROPDOWN ── */
  .cal-dropdown {
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
  }

  /* ── GENERAL ── */
  .outline-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  .card {
    padding: 1rem;
  }

  .card-title {
    font-size: 0.75rem;
  }
}
