:root {
  --navy: #061521;
  --surface: #0b1d2a;
  --surface2: #0f2636;
  --line: #294455;
  --copper: #d47a3d;
  --copper2: #f09a5e;
  --ivory: #f7f2eb;
  --muted: #aeb9c2;
  --green: #7bd6a0;
  --blue: #7fb4e5;
  --danger: #f08a84;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--navy);
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 0, #123044 0, transparent 34%), var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
}
button,
input,
select {
  font: inherit;
}
.professional-shell {
  width: min(1480px, calc(100% - 64px));
  margin: auto;
  padding-bottom: 50px;
}
.professional-topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.professional-brand {
  white-space: nowrap;
  color: var(--ivory);
  font: 700 25px/1 var(--serif);
  text-decoration: none;
}
.professional-brand span {
  color: var(--copper2);
}
.professional-topbar nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.professional-topbar nav a {
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.professional-topbar nav a:hover,
.professional-topbar nav a.active {
  border-bottom-color: var(--copper2);
  color: var(--ivory);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 54px 0 34px;
}
.admin-heading h1 {
  margin: 0 0 8px;
  font: 600 clamp(42px, 5vw, 64px)/1 var(--serif);
  letter-spacing: -0.03em;
}
.admin-heading p {
  margin: 0;
  color: var(--muted);
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.primary-button {
  border: 1px solid var(--copper);
  background: linear-gradient(135deg, #ad6536, var(--copper2));
  color: #101820;
}
.secondary-button {
  border: 1px solid var(--copper);
  background: transparent;
  color: var(--ivory);
}
.admin-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.status-filters {
  display: flex;
}
.status-filters button,
.mode-switch button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.status-filters button:first-child,
.mode-switch button:first-child {
  border-radius: 7px 0 0 7px;
}
.status-filters button:last-child,
.mode-switch button:last-child {
  border-radius: 0 7px 7px 0;
}
.status-filters button.active,
.mode-switch button.active {
  border-color: var(--copper);
  color: var(--ivory);
  background: #d47a3d12;
}
.search-field {
  width: min(420px, 40%);
}
.search-field input,
.dialog-card input,
.dialog-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #071923;
  color: var(--ivory);
  padding: 0 13px;
}
.plans-table {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.plan-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) 130px minmax(
      160px,
      0.9fr
    ) 135px 160px minmax(260px, 1.2fr);
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.plan-head {
  min-height: 48px;
  border-top: 0;
  background: #ffffff05;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan-title strong {
  display: block;
  font: 600 18px/1.2 var(--serif);
}
.plan-title small,
.plan-date small,
.updated-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.progress-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.progress-rail {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: #223948;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
.progress-rail::-webkit-progress-bar {
  background: #223948;
}
.progress-rail::-webkit-progress-value,
.progress-rail::-moz-progress-bar {
  background: linear-gradient(90deg, var(--copper), var(--copper2));
}
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.status-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #778894;
}
.status-label.submitted::before {
  background: var(--blue);
}
.status-label.reviewed::before {
  background: var(--green);
}
.plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.action-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ivory);
  font-size: 12px;
  cursor: pointer;
}
.action-button.primary-action {
  border-color: #875332;
  color: var(--copper2);
}
.action-button.danger-action {
  border-color: #f08a847a;
  color: var(--danger);
}
.action-button.danger-action:hover,
.action-button.danger-action:focus-visible {
  border-color: var(--danger);
  background: #f08a8412;
}
.action-button.spotify-action{border-color:#1db95499;color:#85eda7;background:#1db95410}
.spotify-dialog-kicker{display:block;margin-bottom:6px;color:#71df95;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.spotify-folder-field{margin-top:24px!important}.spotify-folder-field input{margin-top:8px}
.spotify-playlist-list{display:grid;gap:8px;margin:20px 0}.spotify-playlist-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:#071923}.spotify-playlist-row>b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1db95417;color:#85eda7}.spotify-playlist-row span strong,.spotify-playlist-row span small{display:block}.spotify-playlist-row span small{margin-top:3px;color:var(--muted);font-size:11px}.spotify-playlist-row>a{color:#85eda7;font-size:12px;font-weight:750}.spotify-waiting{color:var(--muted);font-size:11px}.spotify-collection-card footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.empty-plans {
  padding: 54px 20px;
  color: var(--muted);
  text-align: center;
}
.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.login-card h1 {
  margin: 34px 0 8px;
  font: 600 38px/1.1 var(--serif);
}
.login-card p {
  color: var(--muted);
}
.login-card label,
.dialog-card label {
  display: block;
  margin: 22px 0 0;
  font-size: 13px;
  font-weight: 650;
}
.login-card input {
  width: 100%;
  min-height: 46px;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #071923;
  color: var(--ivory);
  padding: 0 13px;
}
.login-card .primary-button {
  width: 100%;
}
.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 12px;
}
.admin-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ivory);
}
.admin-dialog::backdrop {
  background: #010912c4;
}
.dialog-card {
  padding: 30px;
}
.dialog-card header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-card h2 {
  margin: 0 0 7px;
  font: 600 32px/1.1 var(--serif);
}
.dialog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.close-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 27px;
  cursor: pointer;
}
.mode-switch {
  display: flex;
  margin: 26px 0 18px;
}
.dialog-card label input,
.dialog-card label select {
  margin-top: 8px;
}
.field-help {
  margin-top: 10px !important;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.dialog-card footer,
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.result-card {
  text-align: center;
}
.result-card label {
  text-align: left;
}
.result-card > .text-button {
  margin-top: 18px;
}
.summary-card {
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.summary-phase {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.summary-phase h3 {
  margin: 0 0 12px;
  font: 600 22px var(--serif);
}
.summary-phase h3 small {
  margin-left: 7px;
  color: var(--green);
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.summary-phase.is-disabled {
  opacity: 0.62;
}
.summary-phase.is-disabled h3 small {
  color: var(--muted);
}
.summary-moment {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 14px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.summary-moment strong {
  color: var(--ivory);
}
.summary-footer {
  position: sticky;
  bottom: -30px;
  align-items: center;
  margin-inline: -30px;
  padding-inline: 30px !important;
  background: linear-gradient(180deg, #0b1d2af2, var(--surface) 24%);
}
.summary-footer p {
  max-width: 340px;
  margin-right: auto;
}
.summary-footer .primary-button {
  white-space: nowrap;
}
.primary-button:disabled,
.action-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 15px);
  padding: 12px 17px;
  border-radius: 7px;
  background: var(--ivory);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1050px) {
  .professional-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .professional-topbar nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .plan-head {
    display: none;
  }
  .plan-row {
    grid-template-columns: 1.2fr 1fr 1fr;
    min-height: 120px;
  }
  .plan-title {
    grid-column: 1;
  }
  .plan-date {
    grid-column: 2;
  }
  .progress-cell {
    grid-column: 3;
  }
  .status-label {
    grid-column: 1;
  }
  .updated-copy {
    grid-column: 2;
  }
  .plan-actions {
    grid-column: 3;
  }
}
@media (min-width: 1051px) {
  .plan-row {
    grid-template-columns: minmax(185px, 1.25fr) 115px minmax(135px, 0.75fr) 120px 135px minmax(345px, 1.5fr);
    gap: 14px;
  }
}
@media (max-width: 680px) {
  .professional-shell {
    width: calc(100% - 28px);
  }
  .professional-topbar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .professional-topbar nav a {
    text-align: center;
  }
  .admin-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 36px 0 26px;
  }
  .admin-heading .primary-button {
    width: 100%;
  }
  .admin-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .status-filters {
    overflow-x: auto;
  }
  .status-filters button {
    flex: 1;
    padding: 0 12px;
    white-space: nowrap;
  }
  .search-field {
    width: 100%;
  }
  .plan-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }
  .plan-title,
  .plan-date,
  .progress-cell,
  .status-label,
  .updated-copy,
  .plan-actions {
    grid-column: 1;
  }
  .plan-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .dialog-card footer,
  .result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .result-actions .link-button {
    width: 100%;
  }
}
