:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --panel: #ffffff;
  --panel-soft: #fbfcfd;
  --ink: #202326;
  --muted: #68717b;
  --line: #d9dee3;
  --line-dark: #aeb7c1;
  --accent: #178de8;
  --accent-dark: #086bb7;
  --success: #168058;
  --onsite: #158a62;
  --online: #3578d4;
  --danger: #b42318;
  --blocked: #d6d9dd;
  --warn: #ba5b24;
  --mobile-create-bar-space: 84px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 141, 232, .28);
  outline-offset: 2px;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto;
}

.site-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a,
.legal-content a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.site-footer a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.legal-shell {
  width: min(760px, calc(100vw - 32px));
  margin: 28px auto 48px;
}

.legal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-header p,
.legal-updated {
  color: var(--muted);
  font-size: 13px;
}

.legal-brand {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
}

.legal-content {
  margin-top: 36px;
}

.legal-intro {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}

.legal-content section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-content section h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.legal-content section p,
.legal-content li,
.legal-intro > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.85;
}

.legal-content section p + p {
  margin-top: 10px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.legal-content li + li {
  margin-top: 6px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  flex: none;
}

.tagline {
  display: none;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

body:not(.is-admin-route).is-create-view .tagline,
body:not(.is-admin-route).is-results-view .tagline {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.back-to-results {
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--accent-dark);
  font-weight: 800;
  text-align: left;
}

.back-to-results[hidden] {
  display: none;
}

.view {
  display: none;
  margin-top: 24px;
}

.view.is-active {
  display: block;
}

.missing-state {
  display: grid;
  gap: 10px;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 36px 20px;
  text-align: center;
}

.missing-state p {
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.response-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.response-save-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: min(100%, 440px);
}

.response-save-mount {
  display: none;
}

.advanced-panel,
.tools-menu {
  min-width: 0;
}

.advanced-panel summary,
.tools-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.advanced-panel summary::-webkit-details-marker,
.tools-menu summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary::after,
.tools-menu summary::after {
  content: "⌄";
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.advanced-panel[open] summary::after,
.tools-menu[open] summary::after {
  content: "⌃";
}

.share-readiness {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.share-readiness.is-ready {
  color: var(--success);
}

.completion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.completion-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.completion-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.completion-summary div {
  display: grid;
  align-content: center;
  min-height: 78px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 12px;
}

.completion-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.completion-summary dd {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.url-safety-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 12px;
  margin-bottom: 18px;
}

.url-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}

.url-card.is-primary {
  border-color: rgba(23, 141, 232, .36);
  background: #f5faff;
}

.url-card strong {
  display: block;
  margin-bottom: 4px;
}

.url-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.url-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  margin: 1px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f7f8;
  color: var(--muted);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.url-status.is-issued {
  border-color: rgba(21, 138, 98, .28);
  background: #f5fbf8;
  color: var(--onsite);
}

.url-status.is-admin.is-issued {
  border-color: rgba(186, 91, 36, .32);
  background: #fff8f3;
  color: var(--warn);
}

.url-card input {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.url-card.is-admin {
  border-color: rgba(186, 91, 36, .42);
  background: #fffaf6;
}

.save-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfd;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auto-delete-status {
  width: 100%;
  margin: 0;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 4px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: white;
  padding: 12px 22px;
}

.create-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.create-action-buttons {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.field.mobile-event-title-field,
.mobile-create-candidate-count {
  display: none;
}

.turnstile-widget {
  min-height: 1px;
}

.turnstile-status {
  flex: 1 1 360px;
  margin: 0;
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
}

.publish-button {
  min-width: 220px;
  min-height: 52px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 800;
}

.event-edit-cancel-button {
  min-height: 52px;
}

.secondary-button {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  padding: 11px 18px;
}

.secondary-button.is-warning {
  border-color: var(--warn);
  color: var(--warn);
}

.secondary-button.is-danger {
  border-color: #b42318;
  color: #b42318;
}

.secondary-button.is-active-sort {
  border-color: var(--accent);
  background: #f2f8fe;
  color: var(--accent-dark);
}

button.is-copied {
  border-color: var(--success);
  color: var(--success);
}

.primary-button.is-copied {
  background: var(--success);
  color: white;
}

button.is-copy-fallback {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.text-button {
  background: transparent;
  color: var(--accent-dark);
  padding: 4px 0;
}

.creator-grid {
  display: grid;
  grid-template-columns: 360px 168px minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.creator-grid.is-readonly {
  opacity: .72;
}

.advanced-panel {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.advanced-fields {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.scheduler-panel,
.time-panel,
.event-panel,
.event-summary,
.response-action-panel,
.response-board,
.heatmap,
.results-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.scheduler-panel {
  padding: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.weekday-row {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.day-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}

.day-cell.is-other {
  color: #a9b1ba;
  background: #f1f3f5;
}

.day-cell.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(23, 141, 232, .42);
  color: white;
  font-weight: 800;
}

.day-cell.has-candidates {
  box-shadow: inset 0 -4px 0 var(--onsite);
}

.day-cell.is-selected.has-candidates {
  box-shadow: inset 0 -4px 0 var(--onsite), 0 0 0 2px white, 0 0 0 4px rgba(23, 141, 232, .42);
}

.day-cell:focus-visible,
.slot-time-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.time-panel {
  min-height: 612px;
  overflow: hidden;
}

.time-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.time-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.time-list {
  max-height: 568px;
  overflow: auto;
}

.time-slot,
.response-slot {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.time-slot {
  grid-template-columns: 1fr;
}

.time-slot button,
.response-slot button {
  border: 0;
  background: transparent;
  text-align: left;
}

.slot-time {
  display: flex;
  align-items: center;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  border-right: 1px solid var(--line);
}

.slot-fill {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 700;
}

.slot-fill small {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  opacity: .76;
}

.slot-time-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.time-slot.is-selected .slot-time-button {
  background: rgba(23, 141, 232, .14);
  color: var(--text);
}

@media (hover: hover) {
  .primary-button:hover {
    background: var(--accent-dark);
  }

  .icon-button:hover {
    border-color: var(--line-dark);
  }

  .time-slot:not(.is-selected) .slot-time-button:hover {
    background: rgba(23, 141, 232, .08);
  }
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 28px;
}

textarea {
  resize: vertical;
}

.deadline-inputs {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 82px 82px auto;
  gap: 8px;
  align-items: end;
}

.deadline-part {
  display: grid;
  gap: 5px;
}

.deadline-part span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.deadline-clear {
  min-height: 40px;
  align-self: end;
}

.event-panel {
  padding: 16px;
}

.candidate-box {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

#copyCandidatesCreate {
  align-self: flex-end;
  margin-top: 12px;
  padding: 0 12px;
  min-height: 38px;
}

.candidate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.candidate-head span {
  display: grid;
  gap: 2px;
}

.candidate-head small {
  color: var(--muted);
  font-size: 12px;
}

.candidate-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow: auto;
}

.candidate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 10px;
  background: #fbfcfd;
}

.candidate-item span {
  display: grid;
  gap: 3px;
}

.candidate-item small {
  color: var(--muted);
  font-size: 12px;
}

.candidate-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.empty-state,
.loading-state {
  border: 1px dashed var(--line-dark);
  border-radius: 4px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.loading-state {
  background: var(--panel-soft);
  font-weight: 800;
}

.response-layout {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.event-summary {
  grid-column: 1;
  position: sticky;
  top: 16px;
  padding: 16px;
}

.response-action-panel {
  grid-column: 1;
  padding: 12px;
}

.response-board {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.event-summary p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 18px;
}

.event-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7fbf8;
  padding: 3px 8px;
  color: var(--onsite);
  font-size: 12px;
  font-weight: 800;
}

.event-state.is-closed {
  background: #fff7f3;
  border-color: rgba(186, 91, 36, .42);
  color: var(--warn);
}

.response-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  background: var(--line);
}

.response-overview div {
  min-width: 0;
  background: var(--panel-soft);
  padding: 9px 8px;
}

.response-overview dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.response-overview dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mode-picker {
  display: grid;
  gap: 8px;
}

.mode {
  border: 1px solid var(--line-dark);
  background: white;
  border-radius: 4px;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}

.mode.is-active[data-mode="onsite"] {
  border-color: var(--onsite);
  background: rgba(21, 138, 98, .11);
  color: var(--onsite);
}

.mode.is-active[data-mode="online"] {
  border-color: var(--online);
  background: rgba(53, 120, 212, .12);
  color: var(--online);
}

.mode.is-active[data-mode="unavailable"] {
  border-color: var(--line-dark);
  background: var(--blocked);
}

.response-save-notice {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-soft);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.response-save-notice[hidden] {
  display: none;
}

.response-save-notice.is-dirty {
  border-color: rgba(186, 91, 36, .34);
  background: #fff7f3;
  color: var(--warn);
}

.response-save-notice.is-saved {
  border-color: rgba(21, 138, 98, .24);
  background: #f5fbf8;
  color: var(--onsite);
}

.response-save-notice.is-closed {
  border-color: rgba(189, 55, 45, .24);
  background: #fff6f5;
  color: var(--danger);
}

.response-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  overflow: hidden;
}

.response-board.is-readonly {
  opacity: .72;
}

.response-day {
  border-right: 1px solid var(--line);
}

.response-day:last-child {
  border-right: 0;
}

.response-day h3 {
  min-height: 50px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.response-slot {
  grid-template-columns: 58px 1fr;
}

.response-slot.is-confirmed .slot-fill {
  box-shadow: inset 0 0 0 2px rgba(23, 141, 232, .34);
}

.confirmed-slot-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  border-radius: 999px;
  background: #f2f8fe;
  color: var(--accent-dark);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.response-slot.is-onsite .slot-fill {
  background: rgba(21, 138, 98, .18);
  color: var(--onsite);
}

.response-slot.is-online .slot-fill {
  background: rgba(53, 120, 212, .18);
  color: var(--online);
}

.response-slot.is-unavailable .slot-fill {
  background: repeating-linear-gradient(135deg, #eceff2, #eceff2 6px, #dfe3e7 6px, #dfe3e7 12px);
  color: var(--muted);
}

.response-slot.is-unanswered .slot-fill {
  border-left: 3px solid rgba(186, 91, 36, .42);
  background: #fff9f5;
  color: var(--warn);
}

.response-slot:not(.is-available) {
  opacity: .45;
}

.results-grid {
  min-width: 0;
}

.results-summary-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.results-summary-toggle::-webkit-details-marker {
  display: none;
}

.results-summary-toggle::after {
  content: "⌄";
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.results-summary-collapse[open] .results-summary-toggle::after {
  content: "⌃";
}

@media (min-width: 921px) {
  .results-summary-collapse::details-content {
    content-visibility: visible;
  }

  .results-summary-collapse > .results-summary-toggle {
    display: none;
  }

  .results-summary-collapse > .results-summary {
    display: grid;
  }
}

.participant-results-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding: 4px 0 20px;
}

.organizer-results-bar {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
  border: 1px solid rgba(186, 91, 36, .42);
  background: #fffaf6;
  padding: 14px;
}

.organizer-results-bar[hidden] {
  display: none;
}

.organizer-results-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.organizer-results-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.organizer-results-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.organizer-share-url {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.organizer-share-url span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.organizer-share-url input {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.participant-results-intro[hidden] {
  display: none;
}

.participant-results-intro > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.participant-results-intro h2 {
  overflow-wrap: anywhere;
  font-size: 26px;
}

.participant-results-intro > div > p:last-child {
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.65;
}

.participant-response-start {
  min-width: 190px;
  min-height: 48px;
}

.results-insight {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 14px;
}

.results-insight span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.results-insight strong {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.results-insight-label {
  color: var(--onsite) !important;
}

.tools-menu .action-row {
  min-width: min(620px, calc(100vw - 48px));
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px;
}

.response-tools-menu .action-row {
  min-width: min(520px, calc(100vw - 48px));
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--line);
}

.summary-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  background: var(--panel);
  padding: 12px;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item.has-unanswered strong {
  color: var(--warn);
}

.heatmap {
  min-width: 0;
  overflow: hidden;
}

.result-grid-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-grid-legend b {
  font-size: 16px;
}

.result-grid-legend .is-onsite,
.result-mode-cell.is-onsite {
  color: var(--onsite);
}

.result-grid-legend .is-online,
.result-mode-cell.is-online {
  color: var(--online);
}

.result-grid-legend .is-unavailable,
.result-mode-cell.is-unavailable {
  color: var(--danger);
}

.result-grid-legend .is-unanswered,
.result-mode-cell.is-unanswered {
  color: var(--muted);
}

.result-grid-scroll {
  max-height: min(62vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.result-grid-table {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.result-grid-table th,
.result-grid-table td {
  height: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.result-grid-table tr:last-child > * {
  border-bottom: 0;
}

.result-grid-table tr > *:last-child {
  border-right: 0;
}

.result-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f0f3f5;
  text-align: center;
}

.result-date-column {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  background: var(--result-heat, var(--panel));
  box-shadow: 1px 0 0 var(--line-dark);
  text-align: center;
  white-space: nowrap;
}

.result-grid-table thead .result-date-column {
  z-index: 4;
  background: #f0f3f5;
}

.result-date-column > span {
  display: block;
  font-weight: 800;
}

.result-best-badge {
  display: inline-flex;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--success);
  padding: 2px 6px;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.result-participant-column,
.result-mode-cell,
.result-note-cell {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

.result-empty-heading,
.result-empty-cell {
  width: 196px;
  min-width: 196px;
  max-width: 196px;
}

.result-empty-cell {
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}

.result-participant-link {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.result-participant-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.result-mode-cell {
  background: var(--panel);
  text-align: center;
  font-size: 23px;
  font-weight: 800;
}

.result-mode-cell.is-onsite {
  background: rgba(21, 138, 98, .08);
}

.result-mode-cell.is-online {
  background: rgba(53, 120, 212, .08);
}

.result-mode-cell.is-unavailable {
  background: rgba(180, 35, 24, .06);
}

.result-note-row .result-date-column {
  background: var(--panel-soft);
  vertical-align: middle;
  font-weight: 800;
}

.result-note-cell {
  background: var(--panel-soft);
  color: var(--ink);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.5;
}

@media (hover: hover) {
  .result-participant-link:hover {
    color: var(--accent);
    background: rgba(23, 141, 232, .08);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  border-radius: 4px;
  padding: 10px 14px;
  transition: opacity .18s ease, transform .18s ease;
}

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

body.has-confirm-modal {
  overflow: hidden;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 29, 38, .58);
}

.confirm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: white;
  box-shadow: 0 18px 48px rgba(20, 29, 38, .3);
  padding: 20px;
}

.confirm-modal-panel h2 {
  font-size: 20px;
}

.confirm-modal-panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.confirm-modal-actions button {
  min-height: 44px;
  padding: 10px 14px;
}

@media (max-width: 920px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row {
    justify-content: stretch;
  }

  .results-toolbar {
    justify-content: stretch;
  }

  .response-toolbar {
    justify-content: stretch;
  }

  .share-readiness {
    text-align: left;
  }

  .action-row button,
  .results-toolbar > button,
  .response-save-bar,
  .response-toolbar > button,
  .tools-menu,
  .tools-menu summary {
    flex: 1 1 180px;
    width: 100%;
  }

  .create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .create-action-buttons {
    width: 100%;
  }

  .create-action-buttons button {
    flex: 1 1 0;
  }

  .publish-button {
    width: 100%;
  }

  .organizer-results-bar,
  .organizer-results-controls {
    grid-template-columns: 1fr;
  }

  .organizer-results-controls button {
    width: 100%;
  }

  .creator-grid,
  .completion-panel,
  .url-safety-panel,
  .response-layout,
  .results-grid,
  .results-summary {
    grid-template-columns: 1fr;
  }

  .time-panel {
    min-height: 0;
  }

  .event-summary {
    position: static;
  }

  .event-summary,
  .response-action-panel,
  .response-board {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .confirm-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirm-modal-actions button {
    width: 100%;
  }

  .site-footer,
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell {
    width: calc(100vw - 20px);
    margin: 16px auto;
  }

  #createView.is-active {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #createView > .section-head {
    margin-bottom: 0;
  }

  #createView > .section-head p {
    display: none;
  }

  #createView > .mobile-event-title-field {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
  }

  #createView > .mobile-event-title-field > span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
  }

  #createView > .mobile-event-title-field > input {
    min-height: 48px;
    font-size: 18px;
    font-weight: 700;
  }

  #createView > .section-head h2 {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
  }

  #createView > .creator-grid {
    gap: 8px;
  }

  #createView .desktop-event-title-field {
    display: none;
  }

  #createView .time-panel {
    overflow: visible;
  }

  #createView > .create-actions {
    margin-top: 2px;
  }

  .day-cell {
    aspect-ratio: auto;
    min-height: 36px;
  }

  .time-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding: 10px;
  }

  .time-slot {
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }

  .time-slot button {
    min-height: 44px;
    padding: 8px 6px;
    text-align: center;
  }

  #clearCandidates {
    min-height: 44px;
    scroll-margin-bottom: calc(var(--mobile-create-bar-space) + 24px + env(safe-area-inset-bottom));
    padding: 8px 4px;
  }

  body.is-create-view.has-shareable-event {
    padding-bottom: calc(var(--mobile-create-bar-space) + 24px + env(safe-area-inset-bottom));
  }

  body.is-create-view.has-shareable-event .create-actions {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 1px solid rgba(23, 141, 232, .28);
    border-radius: 6px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 34px rgba(38, 57, 75, .24);
    padding: 10px;
  }

  body.is-create-view.has-shareable-event .turnstile-widget,
  body.is-create-view.has-shareable-event .turnstile-status {
    grid-column: 1 / -1;
  }

  body.is-create-view.has-shareable-event .mobile-create-candidate-count {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  body.is-create-view.has-shareable-event .share-readiness {
    display: none;
  }

  body.is-create-view.has-shareable-event .publish-button {
    min-width: 0;
    width: 100%;
  }

  body.is-create-view.has-shareable-event .create-action-buttons {
    min-width: 0;
  }

  body.is-create-view.has-shareable-event.has-event-draft .create-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-create-view.has-shareable-event.has-event-draft .mobile-create-candidate-count {
    display: none;
  }

  body.is-create-view.has-shareable-event.has-event-draft .create-action-buttons button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  body.is-create-view.has-shareable-event .toast {
    bottom: calc(var(--mobile-create-bar-space) + 48px + env(safe-area-inset-bottom));
  }

  .url-card {
    grid-template-columns: 1fr;
  }

  .completion-summary {
    grid-template-columns: 1fr;
  }

  .response-overview {
    grid-template-columns: 1fr;
  }

  .mode-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mode {
    min-height: 42px;
    padding: 8px 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
  }

  .response-save-bar,
  .response-toolbar > .tools-menu {
    flex-basis: 100%;
    width: 100%;
  }

  .response-save-bar {
    flex-direction: column;
    min-width: 0;
  }

  .response-save-mount {
    display: contents;
  }

  .response-save-notice {
    flex-basis: auto;
  }

  .response-action-panel {
    position: sticky;
    top: 8px;
    z-index: 20;
    box-shadow: 0 10px 18px rgba(38, 57, 75, .08);
  }

  body.is-respond-view .toast.is-above-response-save {
    bottom: var(--response-save-toast-bottom, 24px);
  }

  body.is-respond-view .response-save-bar {
    grid-column: 1;
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
    border: 1px solid rgba(186, 91, 36, .26);
    border-radius: 6px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 34px rgba(38, 57, 75, .24);
    padding: 10px;
  }

  body.is-respond-view.has-unsaved-response .response-save-notice {
    flex: 0 1 auto;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  body.is-respond-view.has-unsaved-response #saveResponse {
    width: 100%;
    min-height: 46px;
  }

  .participant-results-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .participant-results-intro h2 {
    font-size: 23px;
  }

  .participant-response-start {
    width: 100%;
  }

  .tools-menu .action-row {
    width: 100%;
    min-width: 0;
  }

  .result-grid-legend {
    gap: 6px 12px;
    padding: 9px 10px;
  }

  .result-grid-scroll {
    max-height: min(64vh, 560px);
  }

  .response-board {
    grid-template-columns: 1fr;
  }

  .deadline-inputs {
    grid-template-columns: 1fr 1fr auto;
  }

  .deadline-part.is-date {
    grid-column: 1 / -1;
  }

}
