/* Shared visual language for every Chubook screen. */
:root {
  --paper: #f4ece5;
  --surface: #fffdfa;
  --ink: #302735;
  --muted: #6c6270;
  --line: #e9dfe7;
  --soft: #efe5f3;
  --purple: #62486c;
  --brand: #62486c;
  --orange: #c34b59;
  --focus: #62486c;
  --coral: #f78a8d;
  --butter: #ffcf70;
  --blue-tile: #d1e0f5;
  --mint-tile: #d7ecdf;
  --lilac-tile: #e9dcf1;
  --peach-tile: #f8ded4;
}
body {
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
}
h2 {
  font-size: clamp(21px, 2vw, 27px);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border-radius: 14px;
}
.primary,
.add-event {
  background: var(--purple);
  color: white;
  box-shadow: none;
}
.primary:hover,
.add-event:hover {
  background: #4d3656;
}
.secondary,
.link,
.back {
  color: var(--purple);
  background: #f4edf5;
  border: 1px solid #e8dceb;
}
.secondary:hover,
.link:hover,
.back:hover {
  background: #eaddef;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #80528f;
  outline-offset: 3px;
}
.field > span,
.field > label {
  font-weight: 600;
  color: #504456;
  font-size: 14px;
}
input,
select,
textarea {
  background: #fffefa;
  border: 1px solid #d9cddc;
  border-radius: 13px;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a388af;
  outline-offset: 1px;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  accent-color: var(--purple);
}
textarea {
  min-height: 90px;
}
.card,
.empty-panel,
.event-list-row,
.member-card,
.task-row,
.hall-day,
.auth-panel {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 20px;
}
.card,
.event-list-row,
.member-card,
.auth-panel {
  box-shadow: 0 3px 12px #50395106;
}
.note,
.small-text {
  color: var(--muted);
}
.tabs {
  background: #eee5ec;
  padding: 5px;
  border-radius: 17px;
  gap: 5px;
}
.tabs button {
  border-radius: 12px;
  color: #6c5d71;
  min-height: 44px;
}
.tabs button.active {
  color: #4e355b;
  background: #fffdfa;
  box-shadow: 0 2px 6px #5039510a;
}
.badge,
.origin-badge,
.tag:not(.auth-panel .tag) {
  border-radius: 9px;
}
.origin-badge {
  background: #eee1f3;
  color: #654572;
}
.modal-wrap {
  background: #34243c70;
  backdrop-filter: none;
}
.modal {
  border-radius: 28px;
  background: #fffdfa;
  border: 1px solid #eee2e8;
  box-shadow: 0 18px 65px #30203825;
}
.modal > .row:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee6ed;
  margin-bottom: 20px;
}
.modal .close {
  background: #f2eaf3;
  border-color: #e7dce9;
  color: #604667;
}
.modal footer {
  gap: 10px;
  padding-top: 16px;
}
.modal fieldset {
  border: 1px solid #e6dce9;
  border-radius: 18px;
  padding: 18px;
}
.wizard-heading {
  background: #f0e4f6;
  color: #62446e;
  border-radius: 12px;
  padding: 12px 16px;
}
.hall-checks label,
.checks label {
  border-color: #e4d7e8;
  border-radius: 13px;
  background: #fbf7fc;
}
.hall-checks label:has(input:checked) {
  background: #fce6b2;
  border-color: #ddbc6b;
}
.event-navigation {
  background: #f4edf4;
  padding: 8px;
  border-radius: 18px;
  gap: 6px;
}
.event-navigation button {
  border: 0;
  background: transparent;
  color: #68546e;
}
.event-navigation .active {
  background: #e8d9ee;
  color: #4a3356;
  border-radius: 12px;
}
.current-event {
  color: #756579;
}
.v-hero {
  background: #f7a1a1;
  color: #302735;
  border: 0;
  border-radius: 27px;
}
.v-hero h1,
.v-hero .v-eyebrow,
.v-date,
.v-time {
  color: #302735;
}
.v-room {
  background: #ffda8c;
  border-radius: 27px;
  border: 0;
}
.v-prep,
.readiness-panel,
.event-ready {
  border-color: var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.stage {
  border: 1px solid #e9deec;
  border-radius: 18px;
  box-shadow: none;
}
.stage .body {
  border-color: #e7dce8;
}
.stage:nth-child(4n + 1) {
  background: #f6e2d8;
}
.stage:nth-child(4n + 2) {
  background: #e5def1;
}
.stage:nth-child(4n + 3) {
  background: #deeddf;
}
.stage:nth-child(4n) {
  background: #dde8f5;
}
.stage button {
  color: #654e70;
}
.response-panel {
  background: transparent;
}
.accept-ok {
  background: #268047;
  color: #fff;
}
.finish-task {
  background: #62486c;
  color: white;
}
.response-secondary button:first-child {
  background: #ffe09a;
  color: #493919;
  border-color: #edcc85;
}
.personal-tasks .card {
  padding: 20px;
}
.participation-card {
  background: #e9ddf2;
}
.draft-banner {
  background: #ffe7ab;
  color: #473918;
}
.live-card {
  background: #ffd87e;
}
.calendar {
  border-radius: 24px;
  border-color: #e9deea;
  background: #fffdfa;
}
.cal-day,
.calendar-day {
  border-color: #eee5ee;
}
.assignment-row {
  border-color: #eadfe9;
  padding: 16px;
  border-radius: 14px;
  background: #fbf6fc;
  margin: 8px 0;
}
.member-card:nth-child(3n + 1) {
  border-top: 4px solid #ddc8eb;
}
.member-card:nth-child(3n + 2) {
  border-top: 4px solid #ffd486;
}
.member-card:nth-child(3n) {
  border-top: 4px solid #bfe2ce;
}
.file-link {
  background: #efe1f4;
  color: #61426b;
  border-radius: 11px;
}
.error-slot:not(:empty),
[role="alert"] {
  border-radius: 14px;
}
.day-context {
  background: #fffdfa;
  border: 1px solid #e6dcea;
  border-radius: 22px;
  padding: 18px;
  margin: 20px 0;
}
.day-context h2 {
  font-size: 20px;
  text-transform: capitalize;
  margin: 0;
}
.day-context-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.day-context-strip button {
  display: grid;
  gap: 5px;
  place-content: center;
  background: #f5edf5;
  color: #624b6b;
  padding: 12px 2px;
  border-radius: 15px;
}
.day-context-strip button span {
  font-size: 12px;
  text-transform: uppercase;
}
.day-context-strip button b {
  font-size: 21px;
}
.day-context-strip button.selected {
  background: #604868;
  color: #fff;
}
.booking-card {
  background: #eee2f4;
  border-radius: 17px;
  border-color: #e1d0e8;
}
.booking-approved {
  border-left-color: #528566;
}
.booking-pending {
  border-left-color: #b48424;
  background: #ffedc1;
}
.hall-catalog .card {
  background: #fffaf1;
}
.week-head {
  background: #fffaf7;
}
.week-head > div {
  background: #eee3f1;
}
.week-head > .week-today {
  background: #62486c;
}
.week-column.week-today {
  background-color: #fbf3ff;
}
.week-time-empty {
  background: #f1eaf2;
}
.week-booking {
  border-radius: 14px;
}
.week-booking > * {
  text-align: left;
}
.week-scale-tools .secondary {
  border-radius: 12px;
}
/* Main page: work in the centre, decisions in the yellow rail. */
.plum-page-heading {
  margin: 0 0 24px;
}
.plum-page-heading h1 {
  margin: 0 0 4px;
}
.plum-page-heading p {
  margin: 0;
  color: #6a5a70;
  text-transform: capitalize;
}
.home-create-event {
  display: none;
}
.plum-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: start;
}
.plum-main {
  min-width: 0;
}
.plum-main .dashboard {
  max-width: none;
  margin: 0;
  padding: 0;
}
.plum-attention {
  position: static;
  inset: auto;
  width: auto;
  padding: 24px 20px;
  border: 0;
  border-radius: 28px;
  background: #ffcf70;
  min-width: 0;
}
.plum-attention .focus-panel {
  margin-bottom: 24px;
}
.plum-attention .focus-panel h2,
.plum-attention .team-readiness h2 {
  font-size: 24px;
  margin: 0 0 18px;
}
.plum-attention .card {
  padding: 16px;
  margin: 12px 0;
  border-radius: 19px;
}
.plum-attention .card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.plum-attention .focus-row {
  font-size: 14px;
  padding: 12px 2px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #eee5ec;
  align-items: flex-start;
}
.plum-attention .focus-row:last-child {
  border: 0;
}
.plum-attention .focus-row span {
  flex: 1;
}
.plum-attention .participation-card {
  background: #fff7e6;
  padding: 16px;
}
.plum-attention .accept-ok {
  font-size: 16px;
  min-width: 0;
  min-height: 48px;
}
.plum-attention .inline-tools {
  flex-wrap: wrap;
}
.readiness-card {
  padding: 16px;
  border-radius: 17px;
  background: #fffdfa;
  margin: 10px 0;
  box-shadow: 0 3px 8px #6244190a;
}
.readiness-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.readiness-card progress {
  height: 9px;
  width: 100%;
  margin-top: 10px;
  accent-color: #5a9369;
}
.nearest-event {
  position: relative;
  background: #f58e94;
  color: #342335;
  padding: 26px;
  border-radius: 28px;
  max-width: none;
  overflow: hidden;
}
.nearest-event > span:first-of-type {
  color: #472b42;
  font-size: 14px;
}
.nearest-event h2 {
  color: #302133;
  font-size: clamp(24px, 2.6vw, 35px);
  padding-right: 90px;
}
.nearest-event > p {
  font-size: 16px;
  padding-right: 75px;
}
.nearest-event .summary-ready {
  margin-top: 22px;
  font-size: 15px;
}
.nearest-event .summary-ready span {
  background: #fff0e4;
  color: #503446;
  padding: 6px 10px;
  border-radius: 9px;
}
.nearest-event .readiness-explanation {
  font-size: 13px;
  padding: 0;
}
.nearest-event progress {
  height: 10px;
}
.hero-open {
  margin-top: 18px;
  background: #604468;
  color: white;
  border-radius: 15px;
  min-height: 48px;
}
.hero-open:hover {
  background: #4e3455;
}
.hero-illustration {
  position: absolute;
  top: 60px;
  right: 25px;
  width: 82px;
  height: 94px;
  display: grid;
  place-items: center;
  background: #fff1dc;
  border-radius: 18px;
  transform: rotate(8deg);
  box-shadow: 7px 8px 0 #875c6d30;
  color: #896475;
  pointer-events: none;
}
.hero-illustration .icon-svg {
  width: 54px;
  height: 54px;
}
.plum-main .event-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plum-main .event-tile {
  min-height: 190px;
  border-radius: 24px;
  padding: 20px;
  box-shadow: none;
}
.event-tile b {
  font-size: clamp(19px, 1.8vw, 25px);
}
.tone-blue {
  background: #d9e5f6;
}
.tone-mint {
  background: #d9ecdf;
}
.tone-lilac {
  background: #e7daf0;
}
.tone-peach {
  background: #f7ded5;
}
.plum-main .dashboard-heading {
  margin-top: 26px;
}
.plum-main .add-event {
  width: 44px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 28px;
}
@media (min-width: 900px) {
  #sidebar {
    inset: 20px auto 20px 20px;
    width: 196px;
    border: 0;
    border-radius: 29px;
    background: #51435e;
    padding: 30px 19px;
    box-shadow: 0 6px 20px #41304812;
  }
  #sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #sidebar .brand::after {
    content: "Чубук";
    font-size: 24px;
    color: #fff8ec;
    letter-spacing: -0.5px;
  }
  #sidebar .brand-symbol {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  #sidebar nav {
    margin-top: 42px;
    gap: 9px;
  }
  #sidebar nav button {
    color: #f6edf8;
    font-size: 14px;
    border-radius: 16px;
    padding: 15px 12px;
    gap: 10px;
  }
  #sidebar nav button:hover {
    background: #675674;
  }
  #sidebar nav button.active {
    background: #ffdc87;
    color: #44334c;
  }
  #sidebar .sidefoot {
    color: #d6c8dd;
    left: 24px;
    bottom: 24px;
    font-size: 11px;
  }
  main {
    box-sizing: border-box;
    width: calc(100% - 236px);
    max-width: 1560px;
    margin: 20px 20px 20px 236px;
    padding: 24px 28px 50px;
    border-radius: 32px;
    background: #fffdfa;
    min-height: calc(100vh - 40px);
  }
  .top {
    margin-bottom: 22px;
    padding: 0;
  }
  .account-button {
    border: 0;
    background: transparent;
  }
  .avatar {
    background: #e6d8ed;
    color: #594060;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .plum-dashboard {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  main {
    padding: 22px;
  }
  .plum-main .event-tiles {
    grid-template-columns: 1fr;
  }
  .nearest-event {
    padding: 22px;
  }
  .hero-illustration {
    width: 60px;
    height: 72px;
    right: 18px;
  }
  .hero-illustration .icon-svg {
    width: 40px;
    height: 40px;
  }
  .nearest-event h2 {
    padding-right: 60px;
  }
  .plum-attention {
    padding: 20px 15px;
  }
}
@media (max-width: 899px) {
  .plum-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .plum-page-heading > div {
    min-width: 0;
  }
  .plum-page-heading .home-create-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  .plum-main .dashboard-heading .add-event {
    display: none;
  }
  #sidebar {
    display: none;
  }
  main {
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 20px 18px 120px;
    border-radius: 0;
    background: #fffaf6;
  }
  #bottomNav:not([hidden]) {
    display: flex;
    background: #51435e;
    border-radius: 23px;
    padding: 8px;
  }
  #bottomNav button {
    color: #eee2f2;
  }
  #bottomNav button.active {
    background: #ffdc87;
    color: #44334c;
    border-radius: 16px;
  }
  #bottomNav button.active .nav-icon {
    background: transparent;
  }
  .plum-dashboard {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plum-attention {
    display: block;
  }
  .plum-main .event-tile {
    min-height: 164px;
    padding: 16px;
  }
  .plum-page-heading {
    margin-bottom: 18px;
  }
  .nearest-event h2 {
    padding-right: 70px;
  }
  .hero-illustration {
    width: 62px;
    height: 75px;
    right: 19px;
  }
  .hero-illustration .icon-svg {
    width: 42px;
    height: 42px;
  }
  .plum-attention .focus-row {
    min-height: 48px;
  }
  .day-context {
    padding: 14px;
  }
  .day-context-strip {
    gap: 4px;
  }
  .modal {
    border-radius: 23px;
    padding: 20px;
  }
  .hall-filters {
    gap: 8px;
  }
}
body.auth main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--paper);
  padding: 24px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
#sidebar .brand-symbol {
  mix-blend-mode: normal;
  background: transparent url("/team/assets/brand-logo.png?v=20261115-12")
    center / contain no-repeat;
  border-radius: 0;
}
.readiness-card progress {
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.readiness-card progress::-webkit-progress-bar {
  background: #eee4e9;
  border-radius: 8px;
}
.readiness-card progress::-webkit-progress-value {
  background: #5b936d;
  border-radius: 8px;
}
.readiness-card progress::-moz-progress-bar {
  background: #5b936d;
  border-radius: 8px;
}
.member-card button + button {
  margin-left: 8px;
}
.event-navigation .active {
  box-shadow: inset 0 -3px #9b77ac;
}
@media (max-width: 500px) {
  .member-card button + button {
    margin-left: 0;
    margin-top: 8px;
  }
  .hero-illustration {
    display: none;
  }
  .nearest-event h2,
  .nearest-event > p {
    padding-right: 0;
  }
  .nearest-event .summary-ready {
    flex-wrap: wrap;
    gap: 8px;
  }
  .plum-main .event-tile b {
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  #sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  #sidebar .brand,
  #sidebar nav,
  #sidebar-account {
    flex-shrink: 0;
  }
  #sidebar .sidefoot {
    position: static;
    margin-top: auto;
    padding: 24px 4px 16px;
  }
  #sidebar-account #account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #ffffff24;
  }
  #sidebar-account .account-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    color: #fff8ec;
    font-size: 13px;
  }
  #sidebar-account .avatar {
    flex-shrink: 0;
    background: #e9dbea;
    color: #543d61;
  }
  #sidebar-account .mobile-name {
    white-space: normal;
    text-align: left;
  }
  #sidebar-account #notice-button,
  #sidebar-account #account > .secondary {
    width: 100%;
    padding: 12px 8px;
    background: #6a5776;
    border-color: #806a8c;
    color: #fff8ec;
    font-size: 13px;
  }
  main > .top:not(:has(#account)) {
    display: none;
  }
}

/* Halls share the dashboard palette; each room keeps its colour in every view. */
.halls-page .hall-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.halls-page .hall-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 148px;
  padding: 22px 20px;
  background: var(--hall-color);
  border: 0;
  border-radius: 22px;
  color: #302735;
  text-align: left;
  box-shadow: none;
}
.hall-tile strong {
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.halls-page .hall-tile .note {
  color: #504253;
  font-size: 14px;
  margin: 10px 0 22px;
}
.hall-tile-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fffaf1;
  font-size: 23px;
}
.halls-page .booking-card {
  background: var(--booking-color);
  border: 0;
  border-radius: 20px;
  padding: 20px;
  color: #302735;
}
.halls-page .booking-card strong {
  font-size: 20px;
}
.halls-page .booking-card small {
  width: fit-content;
  background: #fffaf1b8;
  border-radius: 9px;
  padding: 4px 8px;
}
.halls-page .day-context {
  padding: 16px;
}
.halls-page .day-context-strip button {
  padding: 9px 2px;
}
.halls-page .hall-day {
  padding: 16px;
  border: 0;
  background: #fffaf5;
}
.halls-page > .tabs {
  max-width: 460px;
  margin: 12px 0;
}
.halls-page .hall-filters {
  grid-template-columns: 44px minmax(160px, 240px) 44px minmax(180px, 1fr);
  gap: 10px;
  margin: 10px 0 18px;
}
.halls-page .hall-filters input,
.halls-page .hall-filters select,
.halls-page .hall-filters > button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 15px;
}
.halls-page .section {
  margin-top: 22px;
}
@media (min-width: 1000px) {
  .halls-page .booking-week {
    max-height: none;
    border: 1px solid #ded3d7;
    background: #fffaf5;
    border-radius: 18px;
  }
  .halls-page .week-head {
    padding: 0;
    background: #fffaf5;
  }
  .halls-page .week-head > * {
    padding: 10px 2px;
    font-size: 13px;
  }
  .halls-page .week-head > div {
    background: transparent;
    margin: 0;
    border-radius: 12px;
  }
  .halls-page .week-head > .week-today {
    background: #604868;
    color: white;
  }
  .halls-page .week-booking {
    font-size: 14px;
    line-height: 1.2;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    gap: 3px;
    background: var(--booking-color);
  }
  .halls-page .week-booking strong {
    font-size: 15px;
    line-height: 1.15;
    margin: 0;
  }
  .halls-page .week-booking small {
    font-size: 11px;
    background: #fffaf1cf;
    border-radius: 8px;
    padding: 3px 4px;
    width: fit-content;
    max-width: 100%;
  }
  .halls-page .week-hours .compressed-label {
    line-height: 22px;
  }
  .halls-page .week-time-empty {
    background: #ede4ec;
    border-top: 1px solid #e1d7df;
  }
  .halls-page .week-column.week-today {
    background: transparent;
  }
  .halls-page .week-scale-tools {
    margin-top: 8px;
  }
  .halls-page .week-scale-tools .secondary {
    padding: 8px 12px;
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .halls-page .hall-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .halls-page .hall-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .halls-page .hall-tile {
    padding: 18px 14px;
    min-height: 140px;
  }
  .hall-tile strong {
    font-size: 19px;
  }
  .halls-page .hall-filters {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .halls-page .hall-filters > label:last-child {
    grid-column: 1/-1;
  }
}

.halls-page .hall-filters {
  display: grid;
}
.halls-page .hall-tile > .icon-svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.halls-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 12px 0 18px;
}
.halls-toolbar > .tabs {
  flex: 0 0 280px;
  margin: 0;
}
.halls-toolbar .hall-filters {
  flex: 1;
  margin: 0;
  grid-template-columns: 40px minmax(130px, 1fr) 40px minmax(120px, 1fr);
}
.halls-toolbar .hall-filters .field {
  min-width: 0;
}
@media (max-width: 1200px) {
  .halls-toolbar {
    flex-wrap: wrap;
  }
  .halls-toolbar .hall-filters {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .halls-toolbar .hall-filters {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .halls-toolbar > .tabs {
    flex: 1;
  }
}

/* Calendar and department settings use the same compact, colourful cards. */
.event-calendar-layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.event-calendar-layout .calendar {
  padding: 22px;
  background: #fff5df;
  border: 0;
  border-radius: 24px;
}
.event-calendar-layout .calendar .row {
  margin-bottom: 18px;
  gap: 8px;
}
.event-calendar-layout .calendar h2 {
  font-size: 19px;
  text-transform: capitalize;
}
.event-calendar-layout .calendar .secondary {
  padding: 8px 13px;
  min-height: 44px;
  background: #fffaf5;
  border: 0;
}
.event-calendar-layout .calendar-grid {
  gap: 5px;
}
.event-calendar-layout .calendar-day {
  position: relative;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 14px;
  background: transparent;
  color: #45354d;
  font-size: 16px;
}
.event-calendar-layout .calendar-day.selected {
  background: #604868;
  color: white;
}
.event-calendar-layout .calendar-day:not(.selected):has(.day-count) {
  background: #e6d4ef;
}
.event-calendar-layout .day-count {
  display: block;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
}
.event-calendar-layout .weekday {
  font-size: 12px;
  padding: 8px 0;
  color: #66576b;
}
.calendar-agenda h2 {
  margin: 0 0 18px;
  font-size: 24px;
}
.calendar-agenda .event-list-row {
  background: #d4e3f4;
  border: 0;
  border-radius: 22px;
  margin-bottom: 14px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
}
.calendar-agenda .event-list-row:nth-of-type(3n + 2) {
  background: #e6d4ef;
}
.calendar-agenda .event-list-row:nth-of-type(3n + 3) {
  background: #d8e9dc;
}
.calendar-agenda .event-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 18px;
  text-align: left;
  min-width: 0;
  flex: 1 1 220px;
}
.calendar-agenda .event-card b {
  font-size: 22px;
  line-height: 1.2;
}
.calendar-agenda .event-card .note {
  color: #514556;
  font-size: 14px;
}
.calendar-agenda .trash-action {
  align-self: end;
  margin: 8px;
  background: #fffaf1ab;
  padding: 10px 14px;
  font-size: 13px;
}
.department-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.department-tile {
  background: var(--tile-color);
  border: 0;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: #302735;
}
.department-tile > .icon-svg {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}
.department-tile h3 {
  font-size: 23px;
  margin: 0 0 20px;
  line-height: 1.2;
}
.department-tile .note {
  font-size: 12px;
  color: #5a4a60;
}
.department-tile p {
  font-size: 16px;
  margin: 5px 0 20px;
}
.department-tile .secondary {
  margin-top: auto;
  background: #fffaf1b8;
  border: 0;
  min-height: 44px;
  padding: 10px 16px;
  color: #493450;
}
@media (max-width: 1200px) {
  .department-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-calendar-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .event-calendar-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .department-tiles {
    grid-template-columns: 1fr;
  }
  .department-tile {
    padding: 22px;
  }
  .event-calendar-layout .calendar {
    padding: 16px;
  }
  .calendar-agenda .event-card b {
    font-size: 20px;
  }
}

.events-colour-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.events-colour-list .event-list-row {
  background: #d4e3f4;
  border: 0;
  border-radius: 24px;
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.events-colour-list .event-list-row:nth-child(3n + 2) {
  background: #e6d4ef;
}
.events-colour-list .event-list-row:nth-child(3n + 3) {
  background: #d8e9dc;
}
.events-colour-list .event-card {
  background: transparent;
  border: 0;
  padding: 18px;
  box-shadow: none;
  text-align: left;
  width: 100%;
  flex: 1;
}
.events-colour-list .event-card b {
  font-size: 24px;
  line-height: 1.25;
}
.events-colour-list .event-card .note {
  color: #514556;
  font-size: 15px;
}
.events-colour-list .trash-action {
  align-self: flex-end;
  background: #fffaf1b8;
  padding: 10px 14px;
  font-size: 13px;
  margin: 0 8px 8px;
}
.serving-page {
  width: 100%;
  margin-top: 22px;
}
.serving-heading {
  align-items: center;
  gap: 24px;
  background: #fff5df;
  padding: 22px 24px;
  border-radius: 22px;
}
.serving-heading h2 {
  margin: 0 0 8px;
}
.serving-heading .note {
  margin: 0;
}
.serving-heading .field {
  margin: 0;
  min-width: 180px;
}
.serving-day {
  margin-top: 24px;
}
.serving-day h3 {
  font-size: 21px;
  margin: 0 0 14px;
}
.serving-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.serving-person {
  padding: 22px;
  border-radius: 24px;
  background: #e6d4ef;
  min-width: 0;
}
.serving-day:nth-of-type(3n + 2) .serving-person {
  background: #d4e3f4;
}
.serving-day:nth-of-type(3n + 3) .serving-person {
  background: #d8e9dc;
}
.serving-person-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.serving-person strong {
  font-size: 21px;
  line-height: 1.2;
}
.serving-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fffaf1b8;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.serving-event {
  display: block;
  text-align: left;
  width: 100%;
  margin: 18px 0;
  padding: 14px;
  background: #fffaf1a8;
  color: #493450;
  border: 0;
  border-radius: 15px;
  font-weight: 700;
  white-space: normal;
}
.serving-event span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
}
.serving-person summary {
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
}
.serving-person li {
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 1200px) {
  .serving-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .events-colour-list,
  .serving-grid {
    grid-template-columns: 1fr;
  }
  .serving-heading {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .serving-person {
    padding: 20px;
  }
  .events-colour-list .event-card b {
    font-size: 22px;
  }
}

/* Inbox uses the same filled pastel cards as the home dashboard. */
.inbox-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 18px;
}
.inbox-section-heading h2 {
  margin: 0;
  font-size: 24px;
}
.inbox-section-heading .note {
  margin: 8px 0 0;
}
.inbox-waiting {
  background: #f8d67a;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.inbox-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.inbox-page .artifact-card {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 26px;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.inbox-page .inbox-tone-mint {
  background: #d8e9dc;
}
.inbox-page .inbox-tone-lilac {
  background: #e6d4ef;
}
.inbox-page .inbox-tone-yellow {
  background: #f8d67a;
}
.inbox-page .inbox-tone-blue {
  background: #d4e3f4;
}
.inbox-page .artifact-card .tag {
  font-size: 13px;
  color: #504558;
}
.inbox-page .artifact-card h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 10px 0 12px;
}
.inbox-page .artifact-card p {
  margin: 10px 0;
}
.inbox-page .artifact-card .note,
.inbox-page .artifact-card .stage-note {
  font-size: 14px;
  line-height: 1.5;
  color: #514858;
}
.inbox-page .artifact-card .badge {
  margin: 4px 0;
  background: #fffaf1c9;
  color: #594232;
}
.inbox-page .artifact-card .badge.green {
  background: #fffaf1;
  color: #226344;
}
.inbox-page .artifact-card .field {
  margin: 18px 0 12px;
  font-size: 14px;
}
.inbox-page .artifact-card .file-control {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 12px;
  background: #fffaf1b8;
  border-radius: 16px;
  gap: 10px;
}
.inbox-page .artifact-card .file-control .secondary {
  width: auto;
  margin: 0;
  background: #5e466c;
  color: #fff;
}
.inbox-page .artifact-card .file-name {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
}
.inbox-page .artifact-card .secondary,
.inbox-page .artifact-card .primary {
  font-size: 14px;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: 13px;
}
.inbox-page .artifact-card .inline-tools {
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.inbox-page .artifact-card textarea {
  background: #fffdfa;
  border: 1px solid #ffffff;
  border-radius: 16px;
  font-size: 16px;
  min-height: 100px;
}
.inbox-page .artifact-version {
  background: #fffaf1b8;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  font-size: 14px;
}
.inbox-page .artifact-card .songs-form .note {
  font-size: 13px;
}
.inbox-material-grid > .empty-panel {
  grid-column: 1/-1;
}
@media (max-width: 850px) {
  .inbox-material-grid {
    grid-template-columns: 1fr;
  }
  .inbox-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .inbox-page .artifact-card {
    padding: 20px;
  }
  .inbox-page .artifact-card h3 {
    font-size: 22px;
  }
}
/* Stage summaries stay compact; departments own the detailed work. */
.stage-workspace h1 {
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 40px);
}
.plan-tabs {
  margin: 24px 0;
  flex-wrap: wrap;
}
.plan-stage-grid,
.department-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.plan-stage-grid {
  grid-template-columns: minmax(0, 1fr);
}
.plan-stage-grid .plan-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 0;
  border-radius: 24px;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.plan-stage-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: left;
  color: var(--text, #302638);
  background: transparent;
  border: 0;
  padding: 22px;
  padding-right: 40px;
}
.plan-stage-open strong,
.plan-department strong {
  font-size: 22px;
  line-height: 1.25;
}
.plan-stage-open > span:not(.plan-status) {
  font-size: 14px;
  line-height: 1.5;
}
.plan-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.plan-chevron {
  position: absolute;
  right: 48px;
  top: 26px;
  font-size: 25px !important;
}
.plan-order {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px;
}
.plan-order button {
  width: 36px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #51435f;
  background: #fffaf17d;
  margin: 2px;
}
.plan-status {
  display: inline-block;
  align-self: flex-start;
  border-radius: 20px;
  padding: 6px 12px;
  background: #fffaf1bb;
  color: #403345;
  font-size: 13px;
  font-weight: 600;
}
.plan-status.attention {
  background: #ffdf85;
}
.plan-general {
  margin-top: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  text-align: left;
  border: 0;
  border-radius: 22px;
  background: #efe5db;
  color: #403345;
}
.plan-attention {
  background: #f6d3bc;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.plan-attention summary,
.plan-more summary,
.plan-group summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.plan-attention .link {
  display: block;
  padding: 10px;
}
.plan-more {
  margin: 20px 0;
}
.plan-more > .inline-tools {
  flex-wrap: wrap;
}
.stage-detail-head {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.stage-detail-head > span:last-child {
  flex-basis: 100%;
}
.plan-group {
  padding: 12px 20px;
  margin: 12px 0;
  border-radius: 20px;
}
.plan-group summary strong {
  margin-right: 16px;
  font-size: 19px;
}
.plan-group summary span {
  font-size: 14px;
}
.plan-task-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid #51435f22;
}
.plan-task-summary span {
  font-size: 14px;
}
.plan-department {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  color: #403345;
}
.plan-task {
  padding: 24px;
  border-radius: 24px;
  min-width: 0;
}
.plan-task h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 12px 0;
}
.plan-task .response-panel {
  background: #fffaf17d;
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
}
.plan-task .response-secondary,
.plan-task .response-links {
  flex-wrap: wrap;
}
.plan-task .note,
.plan-prerequisite {
  font-size: 14px;
}
.plan-task .dependency {
  overflow-wrap: anywhere;
}
.plan-task .secondary,
.plan-task .primary {
  font-size: 14px;
}
.plan-prerequisite {
  background: #fffaf199;
  padding: 12px;
  border-radius: 12px;
}
.department-workspace > .row {
  margin-bottom: 24px;
}
.supplies-scroll {
  overflow-x: auto;
}
.supplies-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 14px;
}
.supplies-table th {
  text-align: left;
  padding: 10px 4px;
}
.supplies-table th:first-child {
  width: 36%;
}
.supplies-table th:nth-child(2) {
  width: 12%;
}
.supplies-table input {
  width: 100%;
  min-width: 0;
  padding: 9px 5px;
  min-height: 44px;
  font-size: 14px;
}
.supplies-table td {
  padding: 5px 3px;
}
.supply-missing {
  text-align: center;
  font-weight: 700;
}
.plan-preview-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #e6d4ef;
  border-radius: 18px;
  margin: 10px 0;
}
.plan-preview-row:nth-child(even) {
  background: #d8e9dc;
}
.plan-preview-row small {
  line-height: 1.5;
}
.plan-option {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.plan-option input {
  width: 20px;
  height: 20px;
}
.tone-yellow {
  background: #f8d67a;
}
@media (max-width: 700px) {
  .plan-stage-grid,
  .department-task-grid {
    grid-template-columns: 1fr;
  }
  .plan-stage-open,
  .plan-task {
    padding: 20px;
  }
  .plan-chevron {
    display: none;
  }
  .plan-group summary strong,
  .plan-group summary span {
    display: block;
  }
  .plan-tabs button {
    flex: 1;
  }
  .supplies-table {
    font-size: 12px;
  }
  .supplies-table input {
    font-size: 13px;
  }
  .plan-general {
    flex-direction: column;
    align-items: flex-start;
  }
}
#stages.plan-stage-grid .plan-stage {
  padding: 0;
  gap: 0;
  align-items: stretch;
  border-radius: 22px;
}
#stages.plan-stage-grid .plan-stage.tone-mint {
  background: #d8e9dc;
}
#stages.plan-stage-grid .plan-stage.tone-lilac {
  background: #e6d4ef;
}
#stages.plan-stage-grid .plan-stage.tone-yellow {
  background: #f8d67a;
}
#stages.plan-stage-grid .plan-stage.tone-blue {
  background: #d4e3f4;
}
#stages.plan-stage-grid .plan-stage.tone-peach {
  background: #f6d3bc;
}
#stages.plan-stage-grid .plan-stage-open {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 18px 20px;
  color: #302638;
}
.plan-stage-open strong,
.plan-stage-open .plan-time {
  grid-column: 1;
}
.plan-stage-open > span:nth-of-type(2) {
  grid-column: 1;
}
.plan-stage-open .plan-status {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.plan-stage-open .plan-chevron {
  display: none;
}
@media (max-width: 1000px) {
  #stages.plan-stage-grid .plan-stage-open {
    display: flex;
  }
}
.plan-task .response-primary:has(.accept-ok),
.plan-task .response-primary:has(.finish-task) {
  position: static;
  margin: 0 0 12px;
}
.plan-task .response-primary > span {
  display: inline !important;
  font-size: 14px;
}
.plan-task .accept-ok,
.plan-task .finish-task {
  min-height: 44px;
  min-width: 80px;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 13px;
}

.assignment-origin {
  font-size: 14px;
  color: #66596c;
  margin: 4px 0 12px;
}
.task-next-action {
  font-weight: 600;
}
.plan-task .response-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.plan-task .delegate-gold,
.plan-task .decline-red {
  background: transparent;
  color: #594661;
  border: 1px solid #b9a8c1;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  flex: none;
}
.personal-queue {
  margin: 20px 0;
  padding: 20px;
  background: #f4edf7;
  border-radius: 22px;
}
.queue-task {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  padding: 14px;
  margin: 10px 0;
  text-align: left;
  background: #fffdf9;
  color: #302638;
}
.queue-task span {
  font-size: 14px;
}
.assignment-preview {
  padding-left: 20px;
}
.assignment-preview li {
  margin: 14px 0;
}
.assignment-preview li span {
  display: block;
  margin-top: 6px;
}

.plan-stage-grid > div > .plan-department {
  width: 100%;
  margin-bottom: 8px;
}

/* Compact preparation cards: one context and one status. */
.department-workspace .plan-task {
  padding: 20px;
  line-height: 1.35;
}
.department-workspace .plan-task h3 {
  margin: 8px 0;
}
.department-workspace .plan-task p {
  margin: 8px 0;
  line-height: 1.35;
}
.department-workspace .plan-task .response-panel {
  margin: 12px 0;
  padding: 12px;
}
.department-workspace .plan-task .response-secondary,
.department-workspace .plan-task .response-links {
  margin-top: 8px;
  gap: 8px;
}

/* Booking approval and event readiness are separate indicators. */
.week-booking .booking-approved-icon {
  display: block;
  width: 20px;
  height: 20px;
  min-height: 20px;
  color: #157339;
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  margin-top: 2px;
}
.week-booking .booking-approved-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.week-booking .booking-readiness {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  margin-top: 2px;
}
@media (min-width: 1000px) {
  .halls-page .week-booking {
    padding: 6px;
    font-size: 12px;
    line-height: 1.2;
  }
  .halls-page .week-booking strong {
    font-size: 14px;
    line-height: 1.15;
  }
  .week-booking .booking-approved-icon {
    width: 16px;
    height: 16px;
    min-height: 16px;
  }
}

/* Internal event controls remain hidden in program-only views. */
[hidden] {
  display: none !important;
}

/* Stage details: assignment is the first action, details remain secondary. */
.modal.stage-detail-modal,
.modal.stage-editor-modal {
  max-width: 760px;
}
.stage-detail-modal .stage-detail-head {
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 12px;
}
.stage-detail-head > div {
  display: grid;
  gap: 4px;
}
.stage-detail-modal .stage-detail-head > span:last-child {
  flex-basis: auto;
}
.stage-eyebrow {
  display: block;
  color: #6d6373;
  font-size: 13px;
  font-weight: 500;
}
.stage-detail-head b {
  font-size: 19px;
}
.stage-assignment {
  padding: 20px;
  background: #f4edf7;
  border: 1px solid #e5d7ed;
  border-radius: 20px;
  margin: 16px 0;
}
.stage-assignment-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.stage-assignment-fields .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.stage-assignment-fields select {
  width: 100%;
  min-height: 48px;
  background: #fffdf9;
}
.stage-assignment-fields button {
  min-height: 48px;
  white-space: nowrap;
}
.stage-assignment .note {
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 0 0;
}
.stage-owner-readonly {
  display: grid;
  gap: 5px;
  margin: 18px 0;
}
.stage-detail-section {
  padding: 6px 0 18px;
  border-bottom: 1px solid #e9e0eb;
  margin-bottom: 20px;
}
.stage-detail-section h3 {
  margin: 0;
}
.stage-detail-section .body-wrap {
  line-height: 1.5;
  margin: 12px 0 0;
}
.stage-detail-section .secondary {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 14px;
}
.stage-detail-modal .plan-group {
  margin: 10px 0;
  border-radius: 16px;
  padding: 14px 16px;
}
.stage-editor-modal form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.stage-editor-modal form > * {
  grid-column: 1 / -1;
  margin: 0;
}
.stage-editor-modal form > label:has([name="duration"]),
.stage-editor-modal form > label:has([name="owner"]) {
  grid-column: auto;
}
.stage-editor-modal form .field > span {
  font-size: 14px;
}
.stage-editor-modal textarea {
  min-height: 100px;
}
.stage-editor-modal .plan-more {
  background: #f4edf7;
  padding: 16px;
  border-radius: 16px;
}
.stage-editor-modal footer {
  border-top: 1px solid #e9e0eb;
  padding-top: 16px;
}
@media (max-width: 600px) {
  .stage-assignment {
    padding: 16px;
  }
  .stage-assignment-fields {
    flex-direction: column;
    align-items: stretch;
  }
  .stage-editor-modal form {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-detail-modal .stage-detail-head {
    align-items: flex-start;
  }
  .stage-detail-section .row {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.my-task-page {
  max-width: 1000px;
}
.my-task-event {
  margin: 24px 0;
  padding: 22px;
  border-radius: 24px;
  background: #f4edf7;
}
.my-task-event h2 {
  margin: 0;
  font-size: 22px;
}
.my-task-event .note {
  margin: 6px 0 16px;
}
.my-task-list {
  display: grid;
  gap: 10px;
}
.my-task-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fffdf9;
  color: #332b39;
  border: 1px solid #e9dfec;
  border-radius: 16px;
  text-align: left;
}
.my-task-link > span:first-child {
  display: grid;
  gap: 6px;
}
.my-task-link strong {
  font-size: 16px;
}
.my-task-link small {
  font-size: 13px;
  color: #6d6373;
}
.my-tasks-empty {
  padding: 28px;
  border-radius: 24px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .my-task-event {
    padding: 16px;
  }
  .my-task-event h2 {
    font-size: 19px;
  }
  .bottom nav {
    overflow-x: auto;
  }
}

.event-tile .tile-bottom {
  gap: 12px;
  align-items: center;
}
.event-tile .tile-bottom small {
  margin-right: auto;
}
.event-tile .event-readiness-ring {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: conic-gradient(
    #24814c var(--readiness),
    rgba(255, 255, 255, 0.55) 0
  );
  display: grid;
  place-items: center;
}
.event-tile .event-readiness-ring > span {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #fffdf9;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 750;
  color: #332b39;
}
@media (max-width: 760px) {
  #bottomNav:not([hidden]) {
    overflow-x: auto;
    justify-content: flex-start;
  }
  #bottomNav button {
    flex: 0 0 76px;
  }
}
@media (max-width: 600px) {
  .event-tile .tile-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  .event-tile .tile-bottom small {
    flex-basis: 100%;
    margin-right: 0;
  }
  .event-tile .event-readiness-ring {
    margin-right: auto;
  }
}
.my-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #fffdf9;
  border: 1px solid #e9dfec;
  border-radius: 16px;
  padding-right: 12px;
}
.my-task-item .my-task-link {
  border: 0;
  background: transparent;
}
.my-task-ok {
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 76px;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: #24814c;
  color: #fff;
}
.my-task-ok strong {
  font-size: 18px;
}
.my-task-ok small {
  font-size: 11px;
  font-weight: 500;
}
.my-task-ok:disabled {
  opacity: 0.55;
  cursor: wait;
}
.my-task-item > .error-slot:empty {
  display: none;
}
.my-task-item > .error-slot:not(:empty),
.my-task-item > .loading-status {
  grid-column: 1 / -1;
  margin: 0 16px 12px;
}
@media (max-width: 600px) {
  .my-task-item {
    gap: 6px;
    padding-right: 8px;
  }
  .my-task-ok {
    min-width: 64px;
  }
  .my-task-item .my-task-link {
    padding: 14px 12px;
  }
  .my-task-item .my-task-link > span:last-child {
    display: none;
  }
}
