:root {
  color-scheme: light;
  --accent: #d23877;
  --accent-dark: #9f2f61;
  --ink: #17201c;
  --muted: #61706a;
  --line: #ead5de;
  --soft: #fff6fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #fff 0, var(--soft) 100%);
  color: var(--ink);
}

a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
a:hover { color: var(--accent); }

.checklist-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgb(226 215 221 / 90%);
  background: rgb(255 250 253 / 94%);
  backdrop-filter: blur(16px);
}

footer {
  display: flex;
  width: min(100% - 32px, 1180px);
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 400; line-height: 1.5; }
.brand-lockup img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; }
.brand-lockup span { display: grid; }
.brand-lockup strong { font-size: 1.04rem; font-weight: 700; }
.brand-lockup small { color: #65706a; font-weight: 400; }

.checklist-header nav { display: flex; align-items: center; gap: 18px; }
.checklist-header nav a { font-weight: 700; }
.save-status { color: #107c41; font-size: .88rem; }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.language-switch button { min-width: 42px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; }
.language-switch button[aria-pressed="true"] { background: #c63f79; color: #fff; }
.language-switch button:focus-visible { outline: 3px solid rgb(198 63 121 / 25%); outline-offset: 2px; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }

.checklist-shell {
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 164px);
  margin-inline: auto;
  padding: 56px 0;
}

.date-field { display: grid; gap: 8px; }
.date-field > span { color: var(--muted); font-size: .88rem; font-weight: 750; }
.date-control { display: grid; grid-template-columns: 68px minmax(88px, 1fr) 96px; gap: 8px; }
.date-control:has(.date-time) { grid-template-columns: 68px minmax(78px, 1fr) 88px minmax(104px, 1fr); }
.date-control input, .date-control select { min-width: 0; }
.date-control select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #4d5d58 50%), linear-gradient(135deg, #4d5d58 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; }
.day-picker { position: relative; min-width: 0; }
.day-picker > input { padding-right: 30px; }
.day-picker::after { position: absolute; top: 19px; right: 12px; width: 7px; height: 7px; border-right: 2px solid #4d5d58; border-bottom: 2px solid #4d5d58; transform: rotate(45deg); pointer-events: none; content: ""; }
.day-picker.is-open::after { top: 23px; transform: rotate(225deg); }
.day-options { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 100%; max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid #cfbec7; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(52, 31, 42, .16); }
.day-options[hidden] { display: none; }
.day-options button { width: 100%; min-height: 34px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.day-options button:hover, .day-options button:focus { outline: 0; background: var(--soft); color: var(--accent-dark); }

.checklist-empty {
  width: min(100%, 620px);
  border: 1px dashed #dcaac0;
  border-radius: 12px;
  background: rgb(255 255 255 / 86%);
  padding: clamp(32px, 7vw, 72px) 24px;
  text-align: center;
}

.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
.checklist-empty > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.checklist-empty > p span { font-size: 15px; }

footer { min-height: 82px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

button, input, select { font: inherit; }
button { cursor: pointer; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-weight: 800; }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgb(159 47 97 / 16%); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: #d9bdc9; background: #fff; color: var(--accent-dark); }
.button.text-button { background: transparent; color: var(--accent-dark); }
.button.danger, .danger { color: #a22634; }
.hero-card { display: grid; min-height: 540px; align-items: center; gap: clamp(32px, 8vw, 100px); grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); }
.hero-card h1, .setup-shell h1, .workspace-head h1 { max-width: 740px; margin: 0; font-size: clamp(38px, 6vw, 66px); letter-spacing: -.04em; line-height: 1.02; }
.hero-copy { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.privacy-card { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 24px; box-shadow: 0 18px 50px rgb(102 44 68 / 8%); }
.privacy-card > span { font-size: 28px; }
.privacy-card strong { font-size: 17px; }
.privacy-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.setup-shell { width: min(100%, 920px); margin-inline: auto; }
.setup-top { margin-bottom: 30px; }
.setup-shell h1, .workspace-head h1 { font-size: clamp(32px, 5vw, 48px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.steps i { height: 5px; border-radius: 5px; background: #eadde3; }
.steps i.done { background: var(--accent); }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: clamp(20px, 4vw, 38px); }
legend { max-width: 90%; padding: 0 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 850; }
.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; }
.choice-card input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; pointer-events: none; }
.choice-card span { display: grid; min-height: 112px; align-content: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 20px; cursor: pointer; }
.choice-card input:checked + span { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 3px rgb(210 56 119 / 9%); }
.choice-card input:focus-visible + span, .status-check input:focus-visible + span { outline: 3px solid rgb(210 56 119 / 28%); outline-offset: 2px; }
.choice-card strong { font-size: 18px; }
.choice-card small, .field-hint { color: var(--muted); line-height: 1.45; }
.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-grid label { display: flex; min-height: 52px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.check-grid input { width: 19px; height: 19px; accent-color: var(--accent); }
.inline-add { display: flex; align-items: end; gap: 10px; margin-top: 20px; }
.inline-add label { flex: 1; }
.inline-add span, .field-grid label > span, .dialog-form label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 750; }
input, select { width: 100%; min-height: 44px; border: 1px solid #cfb9c2; border-radius: 7px; background: #fff; padding: 9px 11px; color: var(--ink); }
input:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgb(210 56 119 / 28%); outline-offset: 2px; }
.custom-chip { display: inline-flex; align-items: center; gap: 5px; margin: 12px 6px 0 0; border-radius: 999px; background: #f3e8ed; padding: 7px 9px 7px 12px; }
.custom-chip button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #972954; }
.field-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .wide { grid-column: 1 / -1; }
.setup-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.workspace-head-actions { display: flex; align-items: center; gap: 10px; }
.event-meta-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; }
.event-meta-grid div { display: grid; gap: 2px; }
.event-meta-grid dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.event-meta-grid dd { margin: 0; font-size: 14px; font-weight: 750; }
.actions-menu { position: relative; }
.actions-menu summary { list-style: none; cursor: pointer; }
.actions-menu > div { position: absolute; z-index: 5; right: 0; width: 250px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px; box-shadow: 0 16px 40px rgb(57 28 40 / 17%); }
.actions-menu button { width: 100%; border: 0; border-radius: 6px; background: transparent; padding: 11px; text-align: left; }
.actions-menu button:hover { background: var(--soft); }
.workspace-footer-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.actions-menu-bottom > div { top: auto; bottom: calc(100% + 8px); margin-top: 0; }
.readiness-card { display: grid; align-items: center; gap: 24px; grid-template-columns: auto 1fr; margin: 32px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px; }
.readiness-number { display: grid; min-width: 110px; place-items: center; }
.readiness-number strong { color: var(--accent-dark); font-size: 40px; line-height: 1; }
.readiness-number span, .progress-copy small { color: var(--muted); font-size: 13px; }
.progress-copy p { margin: 0 0 9px; font-weight: 800; }
progress { width: 100%; height: 12px; overflow: hidden; border: 0; border-radius: 8px; background: #f0dfe7; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #f0dfe7; } progress::-webkit-progress-value { background: var(--accent); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.filter-group { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 4px; }
.filter-group button { min-height: 38px; border: 0; border-radius: 6px; background: transparent; padding: 7px 12px; color: var(--muted); font-weight: 800; }
.filter-group button.active { background: var(--ink); color: #fff; }
.category-list { display: grid; gap: 16px; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.category-card > h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; font-size: 19px; }
.category-card > h2 span { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--soft); color: var(--accent-dark); font-size: 13px; }
.check-item { padding: 17px 20px; border-bottom: 1px solid #f0e4e9; }
.check-item:last-child { border-bottom: 0; }
.status-check { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.status-check input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; }
.status-check > span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 2px solid #c9abb8; border-radius: 6px; }
.status-check input:checked + span { border-color: var(--accent); background: var(--accent); }
.status-check input:checked + span::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 900; }
.status-check b { font-size: 16px; }
.status-check em { border-radius: 999px; background: #f0e8ec; padding: 3px 7px; color: var(--muted); font-size: 10px; font-style: normal; text-transform: uppercase; }
.is-ready .status-check b { color: var(--muted); text-decoration: line-through; }
.item-details { display: grid; gap: 8px; grid-template-columns: 110px 100px minmax(180px, 1fr); margin: 13px 0 0 34px; }
.item-details label { min-width: 0; }
.item-details label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.item-details input { min-height: 37px; padding: 6px 8px; font-size: 13px; }
.item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin: 10px 0 0 34px; }
.item-actions button { border: 0; border-radius: 6px; background: transparent; padding: 6px 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.item-actions button:hover { background: var(--soft); color: var(--accent-dark); }
.item-actions .support-link { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; border-radius: 6px; padding: 6px 8px; color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.item-actions a.support-link:hover { background: var(--soft); }
.organiser-section { margin-top: 28px; border: 1px solid #b7d9c6; border-radius: 12px; background: #f4fbf7; padding: 20px; }
.organiser-section h2 { margin: 0 0 13px; color: #236443; font-size: 19px; }
.organiser-section > p { margin: 0; color: var(--muted); }
.organiser-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organiser-grid div { display: flex; gap: 9px; }
.organiser-grid span { color: #278355; font-weight: 900; }
.empty-result { border: 1px dashed #dcaac0; border-radius: 12px; padding: 35px; text-align: center; }
dialog { width: min(100% - 28px, 520px); border: 0; border-radius: 13px; padding: 0; box-shadow: 0 30px 90px rgb(38 18 27 / 25%); }
dialog::backdrop { background: rgb(23 32 28 / 55%); }
.dialog-form { display: grid; gap: 18px; padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-head h2 { margin: 0; font-size: 24px; }
.dialog-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); font-size: 23px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.dialog-actions .danger { margin-right: auto; }
.product-options { display: grid; gap: 9px; }
.product-options a { display: flex; min-height: 54px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; }
.product-options a > span { display: grid; gap: 2px; }
.product-options a small { color: var(--muted); font-size: .78rem; font-weight: 650; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); border-radius: 8px; background: var(--ink); padding: 12px 16px; color: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / 20%); }

@media (max-width: 700px) {
  .checklist-header { position: static; padding: 10px 16px; }
  .checklist-header .brand-lockup span, .checklist-header .save-status { display: none; }
  .checklist-header nav { gap: 10px; }
  .checklist-header nav a { font-size: .88rem; }
  .brand-lockup img { width: 44px; height: 44px; }
  footer { width: min(100% - 24px, 1180px); align-items: stretch; flex-direction: column; padding: 14px 0; }
  footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  footer nav a { display: grid; min-height: 42px; place-items: center; padding: 7px 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; text-align: center; }
  .checklist-shell { width: min(100% - 24px, 1180px); min-height: 58vh; padding: 32px 0; }
  .hero-card { min-height: 0; grid-template-columns: 1fr; }
  .hero-card h1 { font-size: 39px; }
  .choice-grid, .check-grid, .field-grid, .organiser-grid { grid-template-columns: 1fr; }
  .date-control, .date-control:has(.date-time) { grid-template-columns: 68px minmax(84px, 1fr) 88px; }
  .date-control .date-time { grid-column: 1 / -1; }
  .workspace-head, .toolbar { align-items: stretch; flex-direction: column; }
  .workspace-head-actions { align-items: stretch; flex-direction: column; }
  .actions-menu > summary { width: 100%; }
  .actions-menu > div { right: auto; left: 0; width: 100%; }
  .readiness-card { gap: 14px; grid-template-columns: 90px 1fr; padding: 17px 12px; }
  .readiness-number { min-width: 80px; }
  .readiness-number strong { font-size: 32px; }
  .filter-group { display: grid; grid-template-columns: repeat(3, 1fr); }
  .item-details { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .item-details .notes-field { grid-column: 1 / -1; }
  .item-actions { margin-left: 0; }
  .setup-actions .button { flex: 1; }
}

@media (max-width: 430px) {
  .checklist-header nav { flex: 1; justify-content: flex-end; gap: 8px; }
  .checklist-header nav a { font-size: .78rem; }
  .language-switch button { min-width: 36px; padding-inline: 7px; }
  .hero-actions .button { width: 100%; }
  .inline-add { align-items: stretch; flex-direction: column; }
  .check-item { padding-inline: 14px; }
}
