:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --ink: #121212;
  --muted: #6b7280;
  --line: #e8e8ec;
  --soft: #f4f4f6;
  --hot: #e1306c;
  --sun: #fcaf45;
  --violet: #833ab4;
  --blue: #405de6;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(18, 18, 18, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  min-height: 100vh;
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: grid;
}

.login-view {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(225, 48, 108, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(252, 175, 69, 0.18), transparent 36%),
    var(--bg);
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.05;
  margin: 0;
}

.muted,
.hint {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.hint {
  font-size: 12px;
  margin-top: 12px;
}

.form-error {
  color: #c02652;
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
  margin: 0;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 38px;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  align-content: center;
  gap: 3px;
  height: 38px;
  justify-items: center;
  place-items: center;
  width: 38px;
}

.menu-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 16px;
}

.brand-logo {
  display: block;
  height: 28px;
  max-width: 148px;
  object-fit: contain;
}

.brand-logo-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  padding: 0;
}

.brand h1,
.panel-header h2,
.preview-toolbar h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

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

.top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.is-admin-page .top-actions > :not(#logoutBtn),
body.is-agenda-page .top-actions > :not(#logoutBtn) {
  display: none;
}

.side-menu {
  background: rgba(18, 18, 18, 0.18);
  inset: 0;
  position: fixed;
  z-index: 30;
}

.side-menu-inner {
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  gap: 20px;
  height: 100%;
  padding: 22px;
  position: relative;
  width: min(300px, 86vw);
}

.side-menu-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.side-menu-header img {
  display: block;
  height: 26px;
  max-width: 138px;
  object-fit: contain;
}

.side-menu-close {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  height: 38px;
  justify-self: end;
  width: 38px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-item {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.side-nav-item strong {
  color: var(--ink);
  font-size: 15px;
}

.side-nav-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.side-nav-item.is-active,
.side-nav-item:hover {
  background: var(--soft);
}

.ghost-button,
.danger-button,
.primary-button,
.small-button,
.icon-button,
.ghost-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 14px;
}

.ghost-button,
.danger-button,
.small-button,
.icon-button,
.ghost-link {
  background: var(--panel);
  color: var(--ink);
}

.danger-button {
  color: #c02652;
}

.danger-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.primary-button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}

.icon-button {
  align-items: center;
  display: grid;
  font-size: 24px;
  font-weight: 300;
  height: 38px;
  line-height: 1;
  padding: 0;
  place-items: center;
  width: 38px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
}

.file-button {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.file-button input {
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.show-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 38px;
  min-width: 210px;
  padding: 0 36px 0 12px;
}

.workspace {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  margin: 0 auto;
  max-width: 1500px;
  padding: 24px;
}

.app-page:not(.is-active) {
  display: none !important;
}

.page-shell {
  margin: 0 auto;
  max-width: 1040px;
  padding: 32px 24px;
}

.page-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.agenda-list,
.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.agenda-header {
  align-items: end;
}

.agenda-header h2 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
}

.agenda-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.calendar-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
}

.artist-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.artist-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
}

.artist-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.artist-chip i {
  background: var(--artist-color);
  border-radius: 999px;
  display: block;
  height: 9px;
  width: 9px;
}

.artist-clear {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  height: 30px;
  margin-top: 10px;
  width: 30px;
}

.calendar-weekday {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 8px;
  text-align: right;
}

.calendar-day {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 132px;
  padding: 8px;
}

.calendar-day:nth-child(7n + 7) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #fbfbfc;
  color: #b7bcc5;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--ink);
  color: #fff;
}

.calendar-day-number {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  justify-self: end;
  width: 26px;
}

.calendar-events {
  align-content: start;
  display: grid;
  gap: 5px;
  margin-top: 6px;
  min-width: 0;
}

.calendar-event {
  background: transparent;
  border: 0;
  border-radius: 5px;
  display: grid;
  gap: 2px;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  min-height: 24px;
  padding: 3px 4px;
  text-align: left;
}

.calendar-event:hover {
  background: var(--soft);
}

.calendar-event span {
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  display: block;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 22px;
  width: 4px;
}

.calendar-event strong,
.calendar-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event strong {
  grid-column: 2 / -1;
  font-size: 12px;
}

.calendar-event small {
  color: var(--muted);
  font-size: 11px;
  grid-column: 2 / -1;
}

.editor-panel,
.preview-panel {
  min-width: 0;
}

.editor-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 92px;
}

.panel-header,
.preview-toolbar,
.subsection-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.save-state,
.pill {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.share-box {
  background: var(--soft);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
}

.share-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.share-box input {
  background: #fff;
  font-size: 12px;
  min-height: 36px;
}

.segmented {
  background: var(--soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 4px;
}

.segmented label {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
}

.segmented label:has(input:checked) {
  background: #fff;
  box-shadow: 0 1px 8px rgba(18, 18, 18, 0.08);
  color: var(--ink);
}

.segmented input {
  height: 14px;
  min-height: 14px;
  width: 14px;
}

.tabs {
  background: var(--soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(6, 1fr);
  margin: 18px 0;
  padding: 4px;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  min-height: 36px;
}

.tab.is-active {
  background: #fff;
  box-shadow: 0 1px 8px rgba(18, 18, 18, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

label.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  outline: 0;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.12);
}

.subsection {
  margin-top: 22px;
}

.subsection-title h3 {
  font-size: 14px;
  margin: 0;
}

.rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.data-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(95px, 0.8fr) minmax(120px, 1.2fr) 34px;
}

.team-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(95px, 0.75fr) minmax(120px, 1fr) minmax(120px, 0.85fr) 34px;
}

.carpool-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1.2fr) 34px;
}

.time-row {
  grid-template-columns: 110px minmax(160px, 1fr) 34px;
}

.guest-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) 120px 34px;
}

.tech-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 0.9fr) 34px;
}

.tech-link-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1.2fr) 34px;
}

.admin-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.2fr) minmax(130px, 0.9fr) 120px minmax(160px, 0.9fr) 38px;
  padding: 10px;
}

.admin-row .admin-phone,
.admin-row .admin-role,
.admin-row .password-status,
.admin-row .remove-row {
  grid-column: span 1;
}

.password-status {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 10px;
}

.show-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.show-admin-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  font-size: 13px;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
}

.show-admin-option span {
  line-height: 1.35;
}

.show-admin-option input {
  min-height: auto;
  width: auto;
}

.data-row input,
.team-row input,
.team-row select,
.carpool-row input,
.guest-row input,
.tech-row input,
.tech-link-row input,
.admin-row input,
.admin-row select {
  min-height: 38px;
}

.remove-row {
  background: var(--soft);
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.preview-toolbar {
  margin-bottom: 14px;
}

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.print-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #111;
  overflow: hidden;
}

.sheet-hero {
  align-items: center;
  background:
    radial-gradient(circle at 94% 18%, rgba(252, 175, 69, 0.28), transparent 26%),
    linear-gradient(135deg, #111 0%, #262126 54%, #4b1430 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 174px;
  padding: 30px;
}

.sheet-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sheet-hero h2 {
  font-size: 46px;
  line-height: 0.96;
  margin: 0 0 10px;
  max-width: 760px;
}

.sheet-hero p {
  margin: 0;
}

.date-badge {
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  color: #111;
  display: grid;
  height: 102px;
  justify-items: center;
  min-width: 92px;
  padding: 14px;
}

.date-badge span {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.date-badge strong {
  color: var(--hot);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.info-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-grid div {
  min-width: 0;
  padding: 22px 28px;
}

.info-grid div + div {
  border-left: 1px solid var(--line);
}

.info-grid span,
.section-heading span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-grid strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.info-grid p {
  color: var(--muted);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.sheet-section {
  padding: 24px 28px;
}

.sheet-section + .sheet-section,
.people-grid {
  border-top: 1px solid var(--line);
}

.section-heading h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.section-heading.with-count {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.list-preview,
.people-list {
  display: grid;
  gap: 8px;
}

.preview-row,
.person-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr;
  padding: 9px 0;
}

.preview-row:last-child,
.person-row:last-child {
  border-bottom: 0;
}

.preview-row strong,
.person-row strong {
  font-size: 14px;
}

.preview-row span,
.person-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.timeline-preview {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  gap: 18px;
  grid-template-columns: 74px 1fr;
  min-height: 54px;
  position: relative;
}

.timeline-item::before {
  background: var(--line);
  content: "";
  height: 100%;
  left: 83px;
  position: absolute;
  top: 16px;
  width: 1px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-time {
  font-size: 18px;
  font-weight: 800;
}

.timeline-label {
  align-items: start;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.timeline-dot {
  background: linear-gradient(135deg, var(--hot), var(--sun));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
  height: 20px;
  margin-top: 2px;
  width: 20px;
  z-index: 1;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.people-grid.single-section {
  grid-template-columns: 1fr;
}

.carpool-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.carpool-preview-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.carpool-preview-group strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.carpool-preview-group p {
  color: var(--muted);
  margin: 0 0 8px;
}

.carpool-preview-group ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.carpool-preview-group li {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.guest-preview {
  display: grid;
  gap: 0;
}

.guest-preview-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 70px 1fr 100px 1fr;
  padding: 10px 0;
}

.guest-preview-row.header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.guest-preview-row:last-child {
  border-bottom: 0;
}

.guest-preview-row span {
  overflow-wrap: anywhere;
}

.people-grid .sheet-section + .sheet-section {
  border-left: 1px solid var(--line);
  border-top: 0;
}

.notes-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.is-hidden {
  display: none;
}

.public-view {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px;
}

.public-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.guest-print-sheet {
  background: #fff;
  color: var(--ink);
  display: none;
}

.guest-print-header {
  background: #111;
  color: #fff;
  padding: 26px 28px;
}

.guest-print-header h1 {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 10px;
}

.guest-print-header p {
  margin: 0;
}

.guest-print-header strong {
  background: #fff;
  border-radius: var(--radius);
  color: #111;
  display: inline-flex;
  font-size: 13px;
  margin-top: 18px;
  padding: 8px 10px;
}

.guest-print-table {
  border-collapse: collapse;
  width: 100%;
}

.guest-print-table th,
.guest-print-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.guest-print-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .topbar,
  .workspace,
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar,
  .sheet-hero,
  .panel-header,
  .preview-toolbar,
  .public-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .sheet-hero h2 {
    font-size: 32px;
  }

  .field-grid,
  .info-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .info-grid div + div,
  .people-grid .sheet-section + .sheet-section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .data-row,
  .team-row,
  .carpool-row,
  .time-row,
  .tech-row,
  .tech-link-row {
    grid-template-columns: 1fr 1fr 34px;
  }

  .guest-row,
  .tech-row,
  .tech-link-row,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 24px;
    max-width: 124px;
  }

  .agenda-header {
    align-items: stretch;
  }

  .agenda-header h2 {
    font-size: 28px;
  }

  .calendar-grid {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(118px, 1fr));
  }

  .calendar-day {
    min-height: 118px;
  }

  .guest-row .remove-row,
  .team-row .remove-row,
  .carpool-row .remove-row,
  .tech-row .remove-row,
  .tech-link-row .remove-row,
  .admin-row .remove-row {
    min-height: 38px;
    width: 100%;
  }

  .preview-row,
  .person-row,
  .guest-preview-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 7mm;
    size: A4;
  }

  body {
    background: #fff;
    font-size: 10px;
  }

  .topbar,
  .editor-panel,
  .preview-toolbar,
  .public-actions,
  .login-view,
  .guest-print-sheet {
    display: none !important;
  }

  .workspace {
    display: block;
    padding: 0;
  }

  .preview-panel {
    display: block;
  }

  .print-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: scale(0.94);
    transform-origin: top left;
    width: 106.4%;
  }

  .sheet-hero {
    min-height: 88px;
    padding: 14px 16px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sheet-hero h2 {
    font-size: 25px;
    line-height: 1;
    margin-bottom: 5px;
  }

  .sheet-label {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .sheet-hero p {
    font-size: 10px;
  }

  .date-badge {
    height: 62px;
    min-width: 58px;
    padding: 8px;
  }

  .date-badge span {
    font-size: 26px;
  }

  .date-badge strong {
    font-size: 10px;
  }

  .info-grid div {
    padding: 9px 14px;
  }

  .info-grid strong {
    font-size: 12px;
  }

  .info-grid p {
    font-size: 9px;
    margin-top: 3px;
  }

  .info-grid span,
  .section-heading span {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .sheet-section {
    padding: 9px 14px;
  }

  .sheet-hero,
  .info-grid,
  .sheet-section,
  .people-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .section-heading h3 {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .list-preview,
  .people-list,
  .carpool-preview {
    gap: 0;
  }

  .preview-row,
  .person-row {
    gap: 8px;
    grid-template-columns: 110px 1fr;
    padding: 3px 0;
  }

  .preview-row strong,
  .person-row strong {
    font-size: 9.5px;
  }

  .preview-row span,
  .person-row span {
    font-size: 9.5px;
  }

  .carpool-preview {
    margin-top: 5px;
  }

  .carpool-preview-group {
    border-radius: 0;
    padding: 5px 0;
  }

  .carpool-preview-group strong {
    font-size: 9.5px;
    margin-bottom: 1px;
  }

  .carpool-preview-group p,
  .carpool-preview-group li {
    font-size: 9px;
  }

  .carpool-preview-group p {
    margin-bottom: 3px;
  }

  .carpool-preview-group li {
    padding-top: 2px;
  }

  .timeline-item {
    gap: 10px;
    grid-template-columns: 48px 1fr;
    min-height: 27px;
  }

  .timeline-item::before {
    left: 55px;
    top: 10px;
  }

  .timeline-time {
    font-size: 11px;
  }

  .timeline-label {
    gap: 7px;
    padding-bottom: 7px;
  }

  .timeline-label strong {
    font-size: 9.5px;
  }

  .timeline-dot {
    border-width: 2px;
    height: 12px;
    width: 12px;
  }

  .notes-section p {
    font-size: 9px;
    line-height: 1.35;
  }

  .notes-section {
    max-height: 36mm;
    overflow: hidden;
  }

  body.guest-printing .app-shell,
  body.guest-printing .public-view {
    display: none !important;
  }

  body.guest-printing .guest-print-sheet {
    border: 0;
    display: block !important;
  }

  body.guest-printing .guest-print-header {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
