/* ===== Święcone 2026 — Custom Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --yellow: #F3E6D4;
  --yellow-dark: #8B1A1A;
  --mint: #EFE8DC;
  --mint-dark: #3D6B4F;
  --blue: #EFE8DC;
  --blue-dark: #6B5E54;
  --pink: #F3E6D4;
  --pink-dark: #8B1A1A;
  --cream: #F3EDE4;
  --warm-bg: #FAF7F2;
  --text-primary: #1A1210;
  --text-secondary: #6B5E54;
  --red-pl: #8B1A1A;
  --white-pl: #FFFcf7;
  --border: #D9CDB8;
  --shadow: rgba(26,18,16,0.06);
  --font-display: 'Fraunces', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --warm-bg: #1a1412;
  --yellow: #2d2a1a;
  --mint: #1a2d1e;
  --blue: #1a2230;
  --pink: #2d1a22;
  --cream: #221f14;
  --text-primary: #F5F0E8;
  --text-secondary: #C4B9A8;
  --border: #3d3530;
  --shadow: rgba(0,0,0,0.3);
}

/* Christmas stays on the same paper tokens — folk red, not candy pastels */
[data-holiday="christmas"] {
  --yellow: #F3E6D4;
  --yellow-dark: #8B1A1A;
  --mint: #EFE8DC;
  --mint-dark: #3D6B4F;
  --blue: #EFE8DC;
  --blue-dark: #6B5E54;
  --pink: #F3E6D4;
  --pink-dark: #8B1A1A;
  --red-pl: #8B1A1A;
  --cream: #F3EDE4;
  --warm-bg: #FAF7F2;
}
[data-holiday="christmas"][data-theme="dark"] {
  --yellow: #2d2518;
  --mint: #1a2d1a;
  --pink: #2d1a1a;
  --blue: #2d2520;
  --warm-bg: #1a1210;
  --cream: #221a14;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--warm-bg);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "locl" 1;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0.4;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-weight: 600;
}

/* Folk pattern border */
.folk-border {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 Q5 0 10 6 T20 6 T30 6 T40 6' stroke='%23DC143C' fill='none' stroke-width='1.5' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  height: 12px;
}

/* Header */
.hero-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-header {
  background: #221f14;
}
[data-holiday="christmas"] .hero-header {
  background: var(--cream);
}
[data-holiday="christmas"][data-theme="dark"] .hero-header {
  background: #1a1210;
}

.hero-header::before {
  display: none;
}
/* Christmas header pattern — stars & snowflakes */
[data-holiday="christmas"] .hero-header::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 L33 22 L45 22 L35 29 L38 42 L30 34 L22 42 L25 29 L15 22 L27 22 Z' fill='none' stroke='%23B71C1C' stroke-width='0.4' opacity='0.06'/%3E%3Ccircle cx='10' cy='10' r='2' fill='none' stroke='%232E7D32' stroke-width='0.3' opacity='0.06'/%3E%3Ccircle cx='50' cy='50' r='2' fill='none' stroke='%23F9A825' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
}

/* Christmas folk border — holly pattern */
[data-holiday="christmas"] .folk-border {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='6' r='2.5' fill='%23B71C1C' opacity='0.25'/%3E%3Ccircle cx='30' cy='6' r='2.5' fill='%23B71C1C' opacity='0.25'/%3E%3Cpath d='M5 4 Q10 0 15 4 M25 4 Q30 0 35 4' stroke='%232E7D32' fill='none' stroke-width='1.2' opacity='0.25'/%3E%3C/svg%3E");
}

/* Christmas basket/table checked items */
[data-holiday="christmas"] .basket-item.checked {
  border-color: var(--red-pl);
  background: var(--cream);
}
[data-holiday="christmas"] .progress-green,
.progress-green {
  background: var(--mint-dark);
}
[data-holiday="christmas"] .progress-pink,
.progress-pink {
  background: var(--red-pl);
}
[data-holiday="christmas"] .category-header {
  background: var(--cream);
}

/* Lock screen backgrounds */
.lock-bg-easter,
.lock-bg-christmas { background: #FAF7F2; }

.polish-flag {
  display: flex;
  height: 6px;
  width: 100%;
}
.polish-flag .white { flex: 1; background: #fff; }
.polish-flag .red { flex: 1; background: #DC143C; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
  background: var(--warm-bg);
}
.lock-card {
  text-align: center;
  background: var(--white-pl);
  padding: 2.25rem 1.75rem;
  border-radius: 4px;
  max-width: 22rem;
  width: 90%;
  border: 1px solid var(--border);
}
.lock-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}
.lock-lead {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-style: italic;
}
.lock-form { display: flex; flex-direction: column; gap: 0.75rem; }
.lock-form input {
  font-family: var(--font-body);
  padding: 0.7rem 3.25rem 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  background: var(--warm-bg);
  color: var(--text-primary);
}
.lock-form input:focus { border-color: var(--red-pl); outline: none; }
.lock-show {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.lock-submit {
  font-family: var(--font-body);
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
  background: var(--red-pl);
  color: var(--white-pl);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.lock-submit:hover { background: #6E1414; }
.lock-error { color: var(--red-pl); font-size: 0.8rem; margin: 0.75rem 0 0; display: none; }
.lock-hint { font-size: 0.65rem; color: var(--text-secondary); margin: 1rem 0 0; }

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}
.nav-link .ui-icon { width: 22px; height: 22px; }
.nav-link:hover, .nav-link.active {
  background: var(--white-pl);
  color: var(--red-pl);
  border-color: var(--border);
}
.holiday-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.holiday-tab {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--white-pl);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.holiday-tab.active,
[data-holiday="christmas"] .holiday-tab.active {
  background: var(--red-pl);
  color: var(--white-pl);
  border-color: var(--red-pl);
}
[data-theme="dark"] .holiday-tab {
  background: rgba(0,0,0,0.25);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: #3d2030;
}

/* Cards */
.card {
  background: var(--white-pl);
  border-radius: 0.25rem;
  box-shadow: none;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .card {
  background: #241f1b;
}

/* Section tabs */
.section { display: none; }
.section.active { display: block; }

/* Category headers */
.category-header {
  background: linear-gradient(90deg, var(--yellow), transparent);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}
[data-theme="dark"] .category-header {
  background: linear-gradient(90deg, var(--yellow), transparent);
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--cream);
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
[data-theme="dark"] .data-table th {
  background: #2a2420;
}
.data-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}
.data-table tr:hover td {
  background: var(--yellow);
}
[data-theme="dark"] .data-table tr:hover td {
  background: #2d2a1a;
}
.data-table .bought td {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Checkbox */
.custom-check {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--mint-dark);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--red-pl);
  color: white;
}
.btn-primary:hover { background: #6E1414; }
.btn-secondary {
  background: var(--mint);
  color: var(--mint-dark);
  border: 1px solid var(--mint-dark);
}
.btn-secondary:hover { background: #c8e6c9; }
.btn-edit {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 0.25rem;
}
.btn-edit:hover { background: var(--blue); }
.btn-danger {
  background: transparent;
  color: var(--red-pl);
  padding: 0.25rem;
}
.btn-danger:hover { background: var(--pink); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Progress bar */
.progress-bar {
  height: 0.5rem;
  background: var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 1rem;
  transition: width 0.5s ease;
}
.progress-green { background: linear-gradient(90deg, #66BB6A, #43A047); }
.progress-pink { background: linear-gradient(90deg, #EC407A, #D81B60); }

/* To-do list */
.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  transition: background 0.2s;
}
.todo-item:hover { background: var(--yellow); }
.todo-item.completed .todo-text {
  text-decoration: line-through;
  opacity: 0.5;
}
.todo-item.dragging {
  opacity: 0.4;
  background: var(--blue);
}
.todo-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--blue);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Święcone basket */
.basket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.basket-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.basket-item:hover { border-color: var(--mint-dark); transform: translateY(-2px); }
.basket-item.checked {
  border-color: var(--mint-dark);
  background: var(--mint);
}
.basket-item.checked::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--mint-dark);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}
.basket-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.basket-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.25rem;
  display: block;
  margin: 0 auto 0.5rem;
  background: var(--cream);
}
.holiday-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.25rem;
  display: block;
}
.holiday-thumb-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}
.ui-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn-edit .ui-icon { width: 16px; height: 16px; }
.ai-fab img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.holiday-tab img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.row-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
  background: var(--cream);
  vertical-align: middle;
}
.hero-table {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--cream);
}
.hero-table img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center 55%;
}

/* Floating AI button */
.ai-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-pl), #b71c1c);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220,20,60,0.3);
  z-index: 50;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-fab:hover { transform: scale(1.1); }

.ai-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  background: var(--white-pl);
  border-radius: 1rem;
  box-shadow: 0 8px 32px var(--shadow);
  border: 1px solid var(--border);
  z-index: 50;
  display: none;
  overflow: hidden;
}
[data-theme="dark"] .ai-panel { background: #241f1b; }
.ai-panel.open { display: block; }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white-pl);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 28rem;
  box-shadow: 0 8px 32px var(--shadow);
}
[data-theme="dark"] .modal { background: #241f1b; }

/* Editable cell */
.editable {
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  border-bottom: 1px dashed var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.editable:hover {
  background: var(--blue);
  border-bottom-color: var(--blue-dark);
}
.editable:focus {
  outline: 2px solid var(--blue-dark);
  background: white;
  border-bottom-color: transparent;
}

/* Print styles */
@media print {
  .no-print, nav, .hero-header, .folk-border, .ai-fab, .ai-panel { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .section { display: block !important; page-break-inside: avoid; }
  .data-table td, .data-table th { padding: 0.25rem; font-size: 0.7rem; }
  h2, h3 { page-break-after: avoid; }
}

/* Responsive */
@media (max-width: 640px) {
  /* Nav */
  .nav-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Shopping table: hide Shop/Notes columns, show inline instead */
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline !important; }
  .data-table { font-size: 0.8rem; }
  .data-table td, .data-table th { padding: 0.5rem 0.25rem; }

  /* Bigger checkboxes for touch */
  .custom-check { width: 1.5rem; height: 1.5rem; }

  /* Todo items: more padding for touch */
  .todo-item { padding: 0.75rem 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
  .btn-danger, .btn-edit { padding: 0.5rem; min-width: 2.5rem; min-height: 2.5rem; display: flex; align-items: center; justify-content: center; }

  /* Schedule events */
  .sched-event { flex-wrap: wrap; gap: 0.375rem; padding: 0.5rem; font-size: 0.85rem; }

  /* Basket grid */
  .basket-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }

  /* AI panel */
  .ai-fab { bottom: 1rem; right: 1rem; width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
  .ai-panel { width: calc(100vw - 1rem); bottom: 5rem; right: 0.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; }

  /* Forms: stack vertically */
  .mobile-stack { flex-direction: column !important; }
  .mobile-stack > * { min-width: 100% !important; flex: unset !important; }

  /* Collapsible summaries: bigger tap target */
  details.card > summary { padding: 1rem; }

  /* Smaller heading for mobile */
  h2 { font-size: 1rem !important; }
}

/* Schedule events */
.sched-event {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  transition: background 0.2s;
}
.sched-event:hover { background: var(--yellow); }
.sched-event.sched-main { background: var(--yellow); font-weight: 600; }

/* Collapsible sections */
details.card > summary {
  list-style: none;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
details[open].card > summary::before {
  transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* Input styles */
input[type="time"], input[type="date"] { touch-action: manipulation; }

input[type="text"], input[type="date"], select, textarea {
  font-family: var(--font-body);
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--white-pl);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1a1412;
  border-color: #3d3530;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 2px rgba(139,26,26,0.18);
}

.karaoke-card { padding: 1rem 1.25rem 1.5rem; }
.karaoke-lead { font-size: 0.85rem; color: var(--text-secondary); margin: 0.5rem 0 0; max-width: 40rem; }
.karaoke-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 1rem 0 0.75rem; }
.karaoke-label { font-size: 0.75rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 0.2rem; min-width: 12rem; }
.karaoke-label select { padding: 0.4rem 0.5rem; }
.karaoke-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
#karaokeProgressFill { height: 100%; width: 0; background: var(--red-pl); transition: width 0.1s linear; }
.karaoke-song-title { margin: 0 0 0.25rem; font-family: var(--font-display), Georgia, serif; font-size: 1.15rem; }
.karaoke-meta { margin: 0 0 1rem; font-size: 0.75rem; color: var(--text-secondary); }
.karaoke-lyrics { font-family: var(--font-display), Georgia, serif; font-size: 1.15rem; line-height: 1.7; }
.karaoke-line { margin: 0.15rem 0; color: var(--text-secondary); transition: color 0.15s, transform 0.15s; }
.karaoke-line.is-current { color: var(--red-pl); font-weight: 600; transform: translateX(4px); }
[data-theme="dark"] .karaoke-line.is-current { color: #f0c9c9; }





/* ── UX pass (Oct 2026): touch targets, readable small text, focus, motion ── */
.theme-toggle, .btn-sm, .lock-show { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { font-size: 0.8rem; padding: 0.25rem 0.75rem; }
.nav-link, .holiday-tab { min-height: 44px; }
.lock-hint { font-size: 0.8rem; }
.lock-lead { font-size: 0.9rem; }
.lock-submit { min-height: 48px; font-size: 1rem; }
.lock-form input { min-height: 48px; }
.lock-card { box-shadow: 0 8px 30px rgba(60, 20, 20, 0.08); }
.lock-error { font-size: 0.9rem; }
.lock-show { right: 0; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--red-pl);
  outline-offset: 2px;
}
.nav-link, .holiday-tabs { scroll-margin-top: 1rem; }
@media (max-width: 520px) {
  nav, .nav-links, .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .data-table td, .data-table th { font-size: 0.8rem; padding: 0.4rem 0.3rem; }
}
.date-plan { padding: 1rem; margin-bottom: 0.75rem; }
.date-plan h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.date-overlap { margin: 0 0 0.6rem; font-size: 0.85rem; }
.date-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem; padding: 0.35rem 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.date-row strong { font-family: var(--font-display), Georgia, serif; }
.date-overlap-mark strong { color: var(--red-pl); }
.date-hard strong { color: var(--text-secondary); }
.date-alt strong { font-style: italic; }
.date-foot { margin: 0.6rem 0 0; font-size: 0.75rem; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
