:root {
  color-scheme: light;
  --paper: #fffaf5;
  --ink: #231f20;
  --muted: #655e65;
  --line: #e7dfe5;
  --soft: #f4eafa;
  --purple: #7138bd;
  --surface: #fff;
  --brand: #fb602c;
  --blue-tile: #b8d5ff;
  --mint-tile: #b6f0cd;
  --lilac-tile: #e2c7fa;
  --peach-tile: #ffd3c0;
}
body {
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
}
button {
  transition:
    background-color 0.12s,
    transform 0.12s;
}
button:not(:disabled):active {
  transform: scale(0.98);
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #8247c9;
  outline-offset: 4px;
}
.primary,
.add-event {
  background: var(--brand);
  color: #fff;
  min-height: 48px;
  font-weight: 700;
}
.primary:hover {
  background: #d74618;
}
.secondary,
.link,
.back {
  min-height: 44px;
}
input,
textarea,
select {
  color: var(--ink);
  background: var(--surface);
}
.card,
.auth-panel,
.modal,
.event-list-row,
.stage {
  background: var(--surface);
  border-color: var(--line);
}
.dashboard {
  max-width: 1000px;
  margin: auto;
}
.dashboard h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 16px 0 22px;
}
.nearest-event {
  background: #ffcf13;
  color: #211c11;
  padding: 28px;
  border-radius: 28px;
}
.nearest-event h2 {
  font-size: clamp(25px, 4vw, 36px);
  margin: 8px 0 12px;
  line-height: 1.16;
}
.nearest-event p {
  margin: 8px 0;
  font-size: 17px;
  font-weight: 550;
}
.nearest-event p svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.summary-ready {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
  flex-wrap: wrap;
}
.summary-ready span {
  background: #fff4c5;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
}
.nearest-event progress {
  width: 100%;
  height: 14px;
  appearance: none;
  border: 0;
  background: #fff1b2;
  border-radius: 20px;
  overflow: hidden;
}
.nearest-event progress::-webkit-progress-bar {
  background: #fff1b2;
}
.nearest-event progress::-webkit-progress-value {
  background: #139c64;
  border-radius: 20px;
}
.nearest-event progress::-moz-progress-bar {
  background: #139c64;
}
.hero-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #29221f;
  color: #fff;
  font-weight: 750;
  font-size: 17px;
}
.hero-open svg {
  width: 20px;
}
.dashboard-heading {
  margin: 24px 0 14px;
}
.dashboard-heading h2 {
  margin: 0;
  font-size: 25px;
}
.add-event {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  padding: 0;
  flex-shrink: 0;
}
.event-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.event-tile {
  min-height: 178px;
  border-radius: 23px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: #211c28;
}
.event-tile b {
  font-size: 21px;
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.event-tile > span {
  font-size: 14px;
}
.tone-blue {
  background: var(--blue-tile);
}
.tone-mint {
  background: var(--mint-tile);
}
.tone-lilac {
  background: var(--lilac-tile);
}
.tone-peach {
  background: var(--peach-tile);
}
.tile-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
}
.tile-bottom small {
  background: #ffffffb0;
  border-radius: 10px;
  padding: 6px 8px;
  color: #27212c;
}
.tile-bottom i {
  background: #ffffffcf;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  text-align: center;
  line-height: 32px;
  font-style: normal;
  font-size: 22px;
}
#stages {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
#stages .stage {
  border: 0;
  border-radius: 18px;
  padding: 18px 14px;
  margin: 0;
  align-items: flex-start;
  gap: 10px;
  background: var(--peach-tile);
  color: #231f29;
}
#stages .stage:nth-child(4n + 2) {
  background: var(--blue-tile);
}
#stages .stage:nth-child(4n + 3) {
  background: var(--mint-tile);
}
#stages .stage:nth-child(4n + 4) {
  background: var(--lilac-tile);
}
#stages .stage .body {
  border: 0;
  padding: 0;
  min-width: 0;
  background: transparent;
  color: inherit;
}
#stages .stage .body b {
  font-size: 19px;
}
#stages .stage .time {
  color: #42364b;
  font-size: 14px;
}
#stages .stage small,
#stages .stage-note {
  color: #42364b;
}
#stages .program-actions {
  display: flex;
  flex-direction: column;
  width: 44px;
  flex-shrink: 0;
}
.drag-grip {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  width: 44px;
  min-height: 48px;
  font-size: 30px;
  color: #514656;
  cursor: grab;
}
.reorder-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 28px;
  text-align: center;
  border-radius: 8px;
}
.reorder-menu button {
  min-width: 44px;
  min-height: 44px;
}
.stage.dragging {
  position: relative;
  z-index: 4;
  box-shadow: 0 12px 28px #28212c40;
  outline: 3px solid #9952ec;
  transform: scale(1.015);
}
.is-reordering {
  user-select: none;
  -webkit-user-select: none;
}
#stages:has(.dragging) {
  overflow-anchor: none;
}
.block-end {
  white-space: normal;
}
.task-row,
.my-task {
  position: relative;
  padding: 22px 0;
}
.task-row:has(.accept-ok) .task-editor,
.task-row:has(.finish-task) .task-editor {
  padding-right: 98px;
  min-height: 84px;
}
.my-task:has(.accept-ok) > b,
.my-task:has(.finish-task) > b {
  display: block;
  padding-right: 100px;
  min-height: 84px;
}
.task-editor label {
  align-items: flex-start;
}
.task-editor input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: #008f36;
}
.response-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0;
}
.response-primary:has(.accept-ok),
.response-primary:has(.finish-task) {
  position: absolute;
  top: 20px;
  right: 0;
  margin: 0;
}
.response-primary:has(.accept-ok) > span,
.response-primary:has(.finish-task) > span {
  display: none;
}
.accept-ok,
.finish-task {
  background: #008f36;
  color: white;
  min-width: 80px;
  min-height: 76px;
  padding: 14px;
  font-size: 27px;
  font-weight: 800;
  border-radius: 19px;
}
.finish-task {
  font-size: 18px;
  background: #2459ca;
}
.response-secondary {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.response-secondary button {
  flex: 1;
  padding: 13px 14px;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
}
.delegate-gold {
  background: #ffcf21;
  color: #342600;
}
.decline-red {
  background: #c92d33;
  color: #fff;
}
.response-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.response-links .link {
  font-size: 14px;
}
.task-state {
  color: var(--muted);
  font-weight: 600;
}
.template-suggestion {
  background: var(--lilac-tile);
  color: #302039;
  padding: 22px;
  border-radius: 24px;
  margin: 14px 0;
}
.template-suggestion h3 {
  margin: 10px 0;
  font-size: 24px;
}
.template-suggestion .link {
  color: #56228b;
  display: block;
  margin: auto;
}
.template-applied {
  padding: 16px;
  background: var(--mint-tile);
  border-radius: 16px;
  color: #163e2c;
}
.assignment-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}
.assignment-row .link {
  text-align: left;
  padding: 0;
}
.assignment-row summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.assignment-row li {
  padding: 4px 0;
}
.serving-date {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.v-hero {
  background: #ffcf13;
  color: #211c11;
}
.v-hero:after {
  display: none;
}
.v-eyebrow,
.v-date,
.v-time {
  color: inherit;
}
.loading-status {
  position: fixed;
  z-index: 80;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 20px #0002;
}
@media (min-width: 900px) {
  .event-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nearest-event {
    max-width: 660px;
  }
  .dashboard {
    padding-bottom: 30px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 14px 18px 120px;
  }
  .top {
    padding: 0 0 12px;
  }
  .dashboard h1 {
    font-size: 32px;
  }
  .nearest-event {
    padding: 22px;
    border-radius: 26px;
  }
  .event-tile {
    padding: 16px;
    min-height: 166px;
  }
  .event-tile b {
    font-size: 19px;
  }
  .event-tiles {
    gap: 12px;
  }
  .bottom {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    width: auto;
    border: 0;
    background: #29221f;
    color: #fff;
    border-radius: 28px;
    padding: 6px;
    box-shadow: 0 5px 20px #211c2026;
  }
  .bottom button {
    color: #f6eee8;
    border-radius: 22px;
    min-height: 54px;
    padding: 6px 2px;
    font-size: 11px;
  }
  .bottom button.active {
    background: #fb602c;
    color: #fff;
  }
  .bottom .nav-icon {
    color: inherit;
  }
  .modal {
    background: var(--surface);
    padding: 22px 18px;
  }
  .task-editor {
    flex-wrap: wrap;
  }
  .task-editor label {
    width: 100%;
  }
  .task-editor > .link {
    min-height: 36px;
  }
  .task-row {
    padding: 20px 0;
  }
  .my-task {
    padding: 20px 0;
  }
  .response-secondary button {
    padding: 12px 8px;
  }
  .stage .body .auto-link {
    font-size: 12px;
  }
}
@media (max-width: 359px) {
  .event-tiles {
    grid-template-columns: 1fr;
  }
  .event-tile {
    min-height: 144px;
  }
  .summary-ready {
    gap: 8px;
  }
  #stages .stage {
    gap: 6px;
    padding: 14px 8px;
  }
  #stages .stage .time {
    min-width: 56px;
    width: 56px;
  }
  .accept-ok,
  .finish-task {
    min-width: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  button:not(:disabled):active,
  .stage.dragging {
    transform: none;
  }
}
@media print {
  .drag-grip,
  .reorder-menu {
    display: none;
  }
  #stages .stage {
    background: white !important;
    color: black !important;
  }
  .loading-status {
    display: none;
  }
}

.bottom button.active .nav-icon {
  background: transparent;
  color: inherit;
}

.program-toolbar {
  align-items: flex-start;
}
.program-more {
  position: relative;
}
.program-more summary {
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
}
.program-more > div {
  position: absolute;
  z-index: 8;
  right: 0;
  width: 240px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px #0002;
  background: var(--surface);
}
#app:has(#stages) .current-event {
  display: none;
}
@media (max-width: 700px) {
  #app:has(#stages) .event-navigation {
    margin-bottom: 10px;
  }
  #app:has(#stages) .event-navigation > button:last-child {
    display: none;
  }
  #app:has(#stages) > .back {
    margin: 0 0 12px;
  }
  .event-title {
    font-size: 28px;
  }
  .program-toolbar {
    margin: 12px 0;
  }
  .program-toolbar + .note {
    font-size: 13px;
  }
}

.hall-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.hall-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #d9d1c8;
  border-radius: 14px;
  background: #fffaf5;
}
.hall-checks input {
  width: 22px;
  height: 22px;
  flex: none;
}
.booking-slot {
  padding: 16px;
  background: #f1e5ff;
  border-radius: 18px;
  margin-bottom: 12px;
}
.booking-availability {
  white-space: pre-line;
}
.conference-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 12px;
}
.conference-days button {
  flex: none;
  min-height: 48px;
}
#conference-program .stage {
  background: #e0edff;
  margin: 12px 0;
}
#conference-program .stage:nth-child(3n + 2) {
  background: #dcf8e4;
}
#conference-program .stage:nth-child(3n) {
  background: #f0e2ff;
}
#conference-program .body {
  text-align: left;
  flex: 1;
  min-width: 0;
}
#conference-program .body b,
#conference-program .body small {
  display: block;
}
[hidden] {
  display: none !important;
}

/* Account actions stay on the right without the duplicate brand. */
.top {
  justify-content: flex-end;
}

.focus-panel {
  margin: 0 0 28px;
}
.focus-panel h2 {
  font-size: 24px;
  margin: 0 0 16px;
}
.focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  background: #f1e5ff;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.focus-row span {
  min-width: 0;
}
.focus-row small {
  display: block;
  margin-top: 6px;
  color: #574f5d;
}
.focus-row b {
  font-size: 14px;
  flex-shrink: 0;
  max-width: 45%;
}
.participation-card {
  background: #e0edff;
  border-radius: 22px;
  padding: 20px;
  margin: 14px 0;
}
.participation-card strong {
  font-size: 22px;
}
.participation-card .accept-ok {
  min-width: 150px;
}
.personal-tasks {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.personal-tasks h2 {
  font-size: 22px;
}
.draft-banner {
  background: #f1e5ff;
  padding: 20px;
  border-radius: 20px;
  margin: 16px 0;
}
.wizard-heading {
  font-weight: 700;
  margin: 8px 0 22px;
  color: #6637a8;
}
.live-card {
  background: #ffe17a;
  border-radius: 24px;
  padding: 24px;
  margin: 16px 0;
}
.live-card h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin: 12px 0;
}
.live-card .live-time {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.live-view #live-clock {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.live-card small {
  display: block;
}
@media (max-width: 600px) {
  .focus-row {
    flex-wrap: wrap;
  }
  .focus-row b {
    max-width: 100%;
  }
  .live-card {
    padding: 20px;
  }
}

.personal-tasks .response-primary:has(.accept-ok),
.personal-tasks .response-primary:has(.finish-task) {
  position: static;
  margin: 12px 0;
}
.personal-tasks .response-primary button {
  width: 100%;
}
.personal-tasks .finish-task {
  min-height: 56px;
}

.booking-week {
  display: none;
}
@media (min-width: 1000px) {
  .hall-week-mobile {
    display: none;
  }
  .booking-week {
    display: block;
    width: 100%;
    min-width: 0;
    max-height: 72vh;
    overflow: auto;
    border: 1px solid #d9d3df;
    border-radius: 16px;
    background: #fffdfa;
  }
  .week-head,
  .week-body {
    display: grid;
    grid-template-columns: 58px repeat(7, minmax(0, 1fr));
  }
  .week-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fffdfa;
    border-bottom: 1px solid #c9c2cf;
  }
  .week-head > * {
    padding: 15px 3px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid #e4dfe8;
  }
  .week-head > span {
    font-size: 11px;
    color: #635b69;
  }
  .week-body {
    height: 1440px;
  }
  .week-hours {
    position: relative;
    color: #635b69;
    font-size: 12px;
  }
  .week-hours span {
    position: absolute;
    right: 7px;
    line-height: 18px;
  }
  .week-column {
    position: relative;
    min-width: 0;
    border-left: 1px solid #d9d3df;
    background-image: repeating-linear-gradient(
      to bottom,
      #d9d3df 0,
      #d9d3df 1px,
      transparent 1px,
      transparent 30px,
      #eee9f0 30px,
      #eee9f0 31px,
      transparent 31px,
      transparent 60px
    );
  }
  .week-today {
    background-color: #f5edff;
  }
  .week-booking {
    align-content: start;
    position: absolute;
    display: block;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 5px 6px;
    border: 1px solid #8d7a9e;
    border-left: 4px solid #715196;
    border-radius: 7px;
    background: var(--booking-color);
    color: #29232e;
    text-align: left;
    font-size: 12px;
    line-height: 1.25;
    box-shadow: none;
  }
  .week-booking strong,
  .week-booking span,
  .week-booking small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
  }
  .week-booking strong {
    font-size: 13px;
  }
  .week-booking:hover,
  .week-booking:focus-visible {
    z-index: 2;
    outline: 2px solid #7141b1;
    outline-offset: -2px;
  }
  .week-status-pending {
    border-style: dashed;
  }
  .week-status-cancelled,
  .week-status-rejected {
    background: #ebe8ed;
    color: #625b68;
    border-color: #a49ba9;
  }
}

.week-scale-tools {
  display: none;
}
@media (min-width: 1000px) {
  .booking-week {
    border: 0;
    border-radius: 20px;
    background: #fffaf2;
  }
  .week-head {
    background: #fffaf2;
    border: 0;
    padding-bottom: 8px;
  }
  .week-head > div {
    border: 0;
    border-radius: 14px;
    background: #fffdf8;
    margin: 0 3px;
  }
  .week-head > .week-today {
    background: #29232e;
    color: white;
  }
  .week-head,
  .week-body {
    grid-template-columns: 76px repeat(7, minmax(0, 1fr));
  }
  .week-head > span {
    border: 0;
  }
  .week-column {
    background-image: none;
    border-left: 1px solid #eee7dc;
  }
  .week-time-band {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #e8e1d7;
    pointer-events: none;
  }
  .week-time-empty {
    background: #f2eee5;
    border-top: 1px dashed #d8d0c3;
  }
  .week-hours .compressed-label {
    font-size: 10px;
    line-height: 30px;
    white-space: nowrap;
  }
  .week-booking {
    border: 0;
    border-left: 3px solid #9274b0;
    border-radius: 13px;
    padding: 9px 8px;
    align-content: start;
  }
  .week-booking strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
  }
  .week-status-pending {
    border: 1px dashed #9274b0;
    border-left-width: 3px;
  }
  .week-scale-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
  }
  .week-scale-tools .secondary {
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .week-booking {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
  }
  .week-booking > * {
    flex-shrink: 0;
  }
}
