 
@font-face {
  font-family: 'David Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/david-libre-400.woff2') format('woff2');
}
@font-face {
  font-family: 'David Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/david-libre-700.woff2') format('woff2');
}
 
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/frank-ruhl-libre.woff2') format('woff2');
}

:root {
   
  --border: #dde1e6;
  --border-strong: #c7ccd2;
  --accent: #54595f;
  --accent-dark: #3d4145;
  --accent-soft: #eef0f2;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --ruled: #fff3cd;
  --overridden: #e2e4e7;
  --paper: #ffffff;
  --surface: #ffffff;
  --bg: #f1f2f5;
  --danger: #b3261e;
   
  --nav-bg: #101c36;
  --nav-bg-2: #1a2b4d;
  --nav-ink: #a8b6cf;
  --ui-accent: #2563eb;
  --ui-accent-dark: #1d4ed8;
  --ui-accent-soft: #eef2ff;
   
  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-md: 0.9rem;
  --fs-lg: 1rem;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16,24,32,0.05), 0 1px 1px rgba(16,24,32,0.04);
  --shadow-md: 0 6px 20px rgba(16,24,32,0.10);
   
  --drawer-open: 0.26s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }

 
button, a, summary, label[for], [role="button"], .luach-chips,
input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button, a, summary, label[for], [role="button"] { touch-action: manipulation; }

 
button:active:not(:disabled), a:active, label[for]:active, [role="button"]:active {
  box-shadow: inset 0 0 0 100vmax rgba(16,24,32,0.10);
}
 
.nav-btn:active, .luach-back:active { box-shadow: inset 0 0 0 100vmax rgba(255,255,255,0.16); }

 
.panel:has(> summary:active) { background-color: var(--accent-soft); }
.luach-give-card:has(> summary:active) { background-color: #f4f1e9; }
 
.calc-exact > summary:active { opacity: 0.6; }
 
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
 
[hidden] { display: none !important; }
body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: inherit; }
h2 { font-size: 1.45rem; margin: 0 0 0.35rem; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.75rem; color: var(--accent-dark); }
 
#main > h2 + .hint { max-width: 70ch; margin: 0 0 1.4rem; font-size: var(--fs-md); }

 
.app-shell { display: flex; align-items: flex-start; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; flex: 0 0 15rem; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.15rem 0.85rem;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  color: var(--nav-ink);
}
 
.sidebar-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.2rem 0.4rem 0; -webkit-user-select: none; user-select: none; }
.sidebar-mark { width: 2.1rem; height: 2.1rem; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-title { display: flex; flex-direction: column; line-height: 1.15; color: #fff; font-weight: 700; letter-spacing: 0.01em; }
.sidebar-title small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nav-ink); }

#nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); color: var(--nav-ink);
  font-size: var(--fs-md); font-weight: 500; font-family: inherit; transition: background 0.15s ease, color 0.15s ease;
}
.nav-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; opacity: 0.85; }
.nav-btn.active .nav-icon { opacity: 1; }
.nav-btn.active { background: var(--ui-accent); color: #fff; }
.nav-btn:not(.active):hover { background: rgba(255,255,255,0.09); color: #fff; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-site { font-size: var(--fs-xs); color: rgba(255,255,255,0.45); text-align: center; }

 
.backup-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.backup-row .file-label {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.55rem 1.15rem;
  cursor: pointer; font-size: var(--fs-md); font-weight: 600; margin: 0;
}
.backup-row .file-label:hover { background: var(--border); }

 
main { flex: 1; min-width: 0; padding: 1.6rem 1.75rem; }
 
main:not(.is-sheet-view) { max-width: 62rem; }
main.is-wide { max-width: 78rem; }

@media (max-width: 900px) {
   
  .app-shell { flex-direction: column; align-items: stretch; }
  .sidebar { position: static; flex: none; width: 100%; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
  .sidebar-brand { padding: 0; }
  #nav { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; }
  .nav-btn { width: auto; padding: 0.45rem 0.85rem; }
  .sidebar-foot { margin-top: 0; margin-left: auto; flex-direction: row; align-items: center; gap: 0.5rem; }
  .sidebar-site { display: none; }
  main { padding: 1rem 0.9rem; }
}

.hint { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
 
.print-hint { display: none; }
@media (pointer: coarse) {
  .print-hint { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin: 0.5rem 0 0; max-width: 44rem; }
}
.error { color: var(--danger); font-weight: 600; }

.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-grid fieldset {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  background: var(--surface); box-shadow: var(--shadow-sm);
   
  min-inline-size: 0; min-width: 0;
}
 
.form-grid legend {
  float: left; width: 100%; padding: 0 0 0.6rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: var(--fs-lg); color: var(--ink); letter-spacing: -0.01em;
}
 
.form-grid fieldset > :not(legend) { clear: both; }
.form-grid label { display: block; margin-bottom: 0.5rem; font-size: var(--fs-md); font-weight: 500; }
.form-grid fieldset label { font-weight: 400; }
.form-grid label:has(input[type=checkbox]), .form-grid label:has(input[type=radio]) { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.form-grid input[type=text], .form-grid input[type=number], .form-grid select, .form-grid textarea, .form-grid input:not([type]) {
  display: block; width: 100%; max-width: 420px; margin-top: 0.3rem; padding: 0.45rem 0.65rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-sizing: border-box;
  font-size: var(--fs-md); font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
 
.richtext-field {
  max-width: 420px; min-height: 4.5em; padding: 0.45rem 0.65rem; margin-top: 0.3rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  font-size: var(--fs-md); text-align: left; cursor: text;
}
.richtext-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.richtext-field u { text-decoration: underline; text-underline-offset: 2px; text-decoration-skip-ink: none; }

 
.big { font-size: 1.3em; }

.rt-toolbar { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0.3rem 0; vertical-align: middle; }
.rt-label { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; margin-right: 0.15rem; }
 
.rt-toolbar button[data-rt] {
  min-width: 2rem; padding: 0.25rem 0.45rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; font-family: inherit; line-height: 1.2;
}
 
.rt-float {
  position: fixed; z-index: 200; margin: 0; padding: 0.25rem;
  background: var(--nav-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.rt-float button[data-rt] { background: none; border-color: transparent; color: #fff; }
.rt-float button[data-rt]:hover { background: rgba(255, 255, 255, 0.18); }
.rt-float button[data-rt]:active { background: var(--ui-accent); }
.rt-toolbar button[data-rt]:hover { background: var(--accent-soft); }
.rt-toolbar button[data-rt]:active { background: var(--accent); color: white; }

.actions { margin-top: 0.5rem; }
 
 
.form-grid button, .sheet-toolbar button, .saved-list button, button.btn-primary, button.btn-danger {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  padding: 0.55rem 1.15rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: var(--fs-md); font-weight: 600; font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.form-grid button:hover, .sheet-toolbar button:hover, .saved-list button:hover { background: var(--accent-soft); border-color: var(--border-strong); }
.form-grid button:active, .sheet-toolbar button:active, .saved-list button:active { transform: translateY(1px); }

 
button.btn-primary { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }
button.btn-primary:hover { background: var(--ui-accent-dark); border-color: var(--ui-accent-dark); }
button.btn-danger { background: none; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, white); }
button.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, white); }
 
.saved-list button { padding: 0.35rem 0.8rem; font-size: var(--fs-sm); font-weight: 500; }

 
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin: 0 0 1rem; padding: 0 1.1rem;
}
.panel > summary {
  cursor: pointer; padding: 0.75rem 0; font-size: var(--fs-md); list-style: none;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::before {
  content: '▸'; display: inline-block; width: 1em; margin-right: 0.3rem;
  color: var(--muted); transition: transform var(--drawer-open) ease;
}
.panel[open] > summary::before { transform: rotate(90deg); }
.panel[open] > summary { border-bottom: 1px solid var(--border); }
.panel > summary:hover { color: var(--ui-accent-dark); }

 
@media (prefers-reduced-motion: no-preference) {
  .panel, .calc-exact { interpolate-size: allow-keywords; }
  .panel::details-content, .calc-exact::details-content {
    block-size: 0; overflow: visible clip;
    transition: block-size var(--drawer-open) ease, content-visibility var(--drawer-open) allow-discrete;
  }
  .panel[open]::details-content, .calc-exact[open]::details-content { block-size: auto; }
   
  .panel > :not(summary), .calc-exact > :not(summary) {
    transform: translateY(-10px); transition: transform var(--drawer-open) ease;
  }
  .panel[open] > :not(summary), .calc-exact[open] > :not(summary) { transform: none; }
}
.panel-body { padding: 0.9rem 0 1rem; }
 
.form-grid > .panel { margin-bottom: 0; }
 
#settings-backup { margin-top: 1rem; }
.panel-section { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
 
#rules-host > h2 { display: none; }
.panel-section-title { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.6rem; }
.panel-section-title .hint { font-weight: 400; }

 
.week-list {
  columns: 2; column-gap: 2rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.75;
  padding: 0.9rem 0; margin: 0; list-style: none; counter-reset: week;
}
.week-list li { padding-left: 2.2rem; text-indent: -2.2rem; }
.week-list li:not(.week-marker) { counter-increment: week; }
.week-list li:not(.week-marker)::before {
  content: counter(week) ". "; color: var(--border-strong);
  display: inline-block; width: 2.2rem; text-indent: 0; text-align: right; padding-right: 0.45rem;
}
.week-list .week-marker { padding-left: 0; text-indent: 0; margin: 0.35rem 0; }

 
.steps { display: flex; align-items: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.1rem; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.steps li + li::before { content: ''; width: 1.6rem; height: 1px; background: var(--border-strong); margin-right: 0.5rem; }
.step-num {
  display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 700;
}
.steps .is-current { color: var(--ink); font-weight: 600; }
.steps .is-current .step-num { background: var(--ui-accent); border-color: var(--ui-accent); color: #fff; }
.steps .is-done { color: var(--ink); }
.steps .is-done .step-num { background: var(--ui-accent-soft); border-color: var(--ui-accent); color: var(--ui-accent-dark); }

 
.step-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0.8rem 1.1rem; margin: 0 0 1rem; font-size: var(--fs-lg);
}
.step-summary button {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.4rem 0.9rem; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; font-family: inherit;
}
.step-summary button:hover { background: var(--accent-soft); }

 
 
.gen-column { max-width: 42rem; }

.season-picker { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.season-radio { position: absolute; opacity: 0; pointer-events: none; }
.form-grid .season-picker .season-option {
  flex: 1 1 12rem; display: flex; flex-direction: row; align-items: center; gap: 0.9rem; margin: 0;
  padding: 0.9rem 1.1rem; cursor: pointer; background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.season-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.season-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.season-icon.is-summer { color: #f59e0b; }
.season-icon.is-winter { color: #3b82f6; }
.season-name { font-size: var(--fs-lg); font-weight: 700; }
.season-range { font-size: var(--fs-sm); color: var(--muted); }
.form-grid .season-picker .season-option:hover { border-color: var(--ui-accent); }
.form-grid .season-picker .season-radio:checked + .season-option,
.form-grid .season-picker .season-option.is-selected {
  border-color: var(--ui-accent); background: var(--ui-accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 15%, transparent);
}
 
.form-grid .season-picker .season-option:not(.is-selected) {
  border-color: var(--border-strong); background: var(--surface); box-shadow: none;
}
 
.form-grid .season-picker .season-radio:focus-visible + .season-option { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 45%, transparent); }
 
.form-grid .season-picker .season-option:active,
.form-grid .season-picker .season-radio:checked + .season-option:active {
  box-shadow: inset 0 0 0 100vmax rgba(16,24,32,0.10),
              0 0 0 3px color-mix(in srgb, var(--ui-accent) 15%, transparent);
}

 
.form-grid .year-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin: 1.4rem 0 0; padding: 0 0 1.4rem; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.year-label { font-size: var(--fs-lg); font-weight: 700; }
 
.form-grid .year-row + .actions { margin-top: 1.4rem; }
.form-grid .year-row + .actions .btn-primary { padding: 0.75rem 1.5rem; font-size: var(--fs-lg); }
.form-grid .year-row .stepper { margin: 0; height: 3.25rem; border-radius: var(--radius); }
.form-grid .year-row .step-btn { width: 3.25rem; font-size: 1.25rem; }
.form-grid .year-row .step-input { width: 5.5rem; font-size: 1.5rem; font-weight: 600; }

 
.stepper {
  display: inline-flex; align-items: stretch; margin-top: 0.3rem; height: 2rem;
  border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--surface);
}
.form-grid .stepper .step-btn {
  width: 2rem; flex-shrink: 0; border: none; background: transparent; color: var(--accent-dark);
  font-size: var(--fs-lg); font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
  border-radius: 0; transition: background 0.15s ease;
}
.form-grid .stepper .step-btn:hover { background: var(--accent-soft); }
.form-grid .stepper .step-btn:active { background: var(--ui-accent); color: white; }
.form-grid .stepper .step-input {
  width: 3.4rem; min-width: 0; max-width: none; text-align: center; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  border-radius: 0; margin: 0; padding: 0 0.2rem; font-size: var(--fs-md); -moz-appearance: textfield;
}
.form-grid .stepper .step-input:focus { box-shadow: none; outline: none; background: #fffbe6; }
.stepper .step-input::-webkit-inner-spin-button, .stepper .step-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

 
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100;
  background: var(--nav-bg); color: #fff; padding: 0.65rem 1.2rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-md);
  transform: translate(-50%, 0.6rem); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.toast-in { opacity: 1; transform: translate(-50%, 0); }

.col-group { margin-bottom: 0.75rem; }
.col-group-title { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.4rem; color: var(--accent); }
.col-check { display: inline-flex; align-items: center; gap: 0.4rem; width: 48%; font-size: var(--fs-sm); font-weight: 400; margin-bottom: 0.4rem; }

.rule-row {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rule-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.rule-summary { flex: 1; min-width: 0; }
.rule-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
 
@media (max-width: 640px) {
   
  .rule-row { flex-wrap: wrap; align-items: flex-start; gap: 0.6rem 0.7rem; }
  .rule-row > label { margin-top: 0.2rem; }
  .rule-summary { flex: 1 1 8rem; }
  .rule-actions { flex: 1 0 100%; justify-content: flex-end; }
  .rule-actions button { flex: 1; }
}
.rule-summary strong { font-size: var(--fs-lg); }
.rule-summary code {
  background: var(--ui-accent-soft); color: var(--ui-accent-dark); border-radius: 4px;
  padding: 0.05rem 0.35rem; font-size: var(--fs-sm);
}
 
.rule-enabled {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; flex-shrink: 0;
  width: 2.1rem; height: 1.2rem; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background 0.15s ease;
}
.rule-enabled::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.2rem - 4px); height: calc(1.2rem - 4px);
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.15s ease;
}
.rule-enabled:checked { background: var(--ui-accent); }
.rule-enabled:checked::after { transform: translateX(0.9rem); }
.rule-edit {
  background: none; color: var(--ui-accent-dark); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.35rem 0.75rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 500;
  font-family: inherit; transition: background 0.15s ease;
}
.rule-edit:hover { background: var(--ui-accent-soft); }
.rule-delete {
  background: none; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, white);
  border-radius: var(--radius-sm); padding: 0.35rem 0.75rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 500;
  font-family: inherit; transition: background 0.15s ease;
}
.rule-delete:hover { background: color-mix(in srgb, var(--danger) 10%, white); }
 
.form-grid .secondary-btn { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--border); margin-left: 0.5rem; }
.form-grid .secondary-btn:hover { background: var(--border); }

.saved-list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
 
.saved-list th, .saved-list td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); font-size: var(--fs-md); white-space: nowrap; }
.saved-list th { background: var(--bg); font-weight: 600; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.saved-list td:first-child { font-weight: 600; white-space: normal; }
.saved-list tr:last-child td { border-bottom: none; }
.saved-list tbody tr:hover td { background: var(--accent-soft); }
.saved-list button { margin-right: 0.4rem; }

.sheet-toolbar {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1rem; box-shadow: var(--shadow-sm);
}
.sheet-toolbar .hint { flex-basis: 100%; margin: 0.15rem 0 0; }
.sheet-toolbar button { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.sheet-toolbar button:hover { background: var(--accent-soft); }
.sheet-toolbar #print-btn { background: var(--ui-accent); color: white; border: none; }
.sheet-toolbar #print-btn:hover { background: var(--ui-accent-dark); }
.sheet-toolbar button:disabled { opacity: 0.4; cursor: not-allowed; }
 
.style-toolbar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: var(--fs-sm);
}
.style-toolbar label { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.style-toolbar select { padding: 0.3rem 0.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: inherit; }
.style-toolbar input[type=color] { width: 34px; height: 28px; padding: 1px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
.style-toolbar button { margin-left: auto; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.4rem 0.85rem; cursor: pointer; font-weight: 500; transition: background 0.15s ease; }
.style-toolbar button:hover { background: var(--border); }

.crop-tool { margin-bottom: 0.75rem; }
.crop-current-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.crop-current { height: 56px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); object-fit: cover; }
.crop-current-row .file-label {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.35rem 0.75rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; margin-bottom: 0.3rem;
}
.crop-current-row .file-label:hover { background: var(--border); }
.crop-current-row button { background: none; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, white); border-radius: var(--radius-sm); padding: 0.3rem 0.7rem; cursor: pointer; font-size: var(--fs-sm); display: block; }
.crop-current-row button:hover { background: color-mix(in srgb, var(--danger) 10%, white); }
.crop-editor { margin-top: 0.75rem; padding: 0.9rem; background: var(--accent-soft); border-radius: var(--radius); }
.crop-viewport { position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); cursor: grab; background: #ddd; touch-action: none; }
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img { position: absolute; user-select: none; -webkit-user-drag: none; }
.crop-zoom { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-size: var(--fs-sm); font-weight: 500; max-width: 320px; }
.crop-zoom input { flex: 1; }
.crop-editor .actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.crop-editor #crop-cancel { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.crop-editor #crop-cancel:hover { background: var(--border); }

@media (max-width: 680px) {
  .col-check { width: 100%; }
  .week-list { columns: 1; }
  .style-toolbar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .style-toolbar label { justify-content: space-between; }
  .style-toolbar button { margin-left: 0; }
  .saved-list, .saved-list thead, .saved-list tbody { display: block; width: 100%; }
  .saved-list tr { display: block; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
  .saved-list thead { display: none; }
  .saved-list td { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0; border: none; font-size: var(--fs-sm); }
  .saved-list td::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
  .saved-list td:last-child { justify-content: flex-start; margin-top: 0.4rem; }
}

 
.page-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0;
  padding: 0.35rem 0.7rem; border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: var(--fs-sm); cursor: pointer; background: var(--surface);
}
.page-chip:hover { border-color: var(--ui-accent); }
.page-chip:has(input:checked) { background: var(--ui-accent-soft); border-color: var(--ui-accent); }
 
.page-excluded { opacity: 0.45; outline: 2px dashed var(--border-strong); outline-offset: -2px; }


 
#sheet-stack.is-side-by-side > .pages { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
#sheet-stack.is-side-by-side > .pages > .page { zoom: 0.5; margin: 0 0 0.75rem; }
#side-by-side-btn.is-active { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }

.pages {
   
  --sheet-font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  --sheet-font-size: 10pt;
  --sheet-header-scale: 1;
   
  overflow-x: auto;
}

 
.page {
  background: var(--paper);
  width: 11in;
  min-height: 8.5in;
  margin: 0 auto 2rem;
  padding: 0.35in 0.5in;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  font-family: var(--sheet-font-family);
}

 
.page { font-weight: 700; }

.page-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 0.1in; }
 
.header-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; width: 100%; gap: 0.15in;
}
.header-row > .header-icon { justify-self: start; }
.header-row > .header-rabbi { justify-self: end; }
 
.header-icon,
.header-logo { height: calc(0.62in * var(--sheet-header-scale)); width: auto; }
.header-icon { flex-shrink: 0; }
.header-center { display: flex; flex-direction: column; align-items: center; flex: 1; }
.header-subtitle { font-size: calc(var(--sheet-font-size) + 1.5pt); margin-top: 1pt; }
.header-rabbi { font-size: var(--sheet-font-size); text-align: right; white-space: pre-line; flex-shrink: 0; line-height: 1.3; }

table { width: 100%; border-collapse: collapse; font-size: var(--sheet-font-size); flex: 1; table-layout: auto; }
 
th, td { border: 1px solid #9aa7b3; padding: 0.035in 0.05in; vertical-align: middle; text-align: center; }
th {
  background: var(--sheet-accent, var(--accent));
   
  color: var(--sheet-head-ink, white);
  font-weight: 700;
  font-size: calc(var(--sheet-font-size) + 2pt);
  white-space: pre-line;
  line-height: 1.2;
   
  min-height: 2.6em;
}
 
 
.parsha-cell { text-align: center; font-size: calc(var(--sheet-font-size) + 2pt); line-height: 1.15; }
 
table:not(.weekday-table) .parsha-cell { min-width: 5.5em; }
 
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sheet-accent, var(--accent)) 40%, white); }
 
 
.cell { min-height: 1.1em; outline: none; white-space: pre-line; text-align: center; line-height: 1.2; direction: ltr; overflow-wrap: normal; word-break: normal; }
.cell:focus { background: #fffbe6; }
td.ruled .cell { background: var(--ruled); }
 
 
 
.ul, u { text-decoration: underline; text-underline-offset: 2px; text-decoration-skip-ink: none; }
 
.shacharis-through { padding: 0; }
.shacharis-through.is-panel { position: relative; }
 
.shacharis-panel {
  position: absolute; z-index: 2;
  top: calc((0.35 - var(--above, 0)) * 100% + (0.35 - var(--above, 0)) * 1px);
  height: calc((var(--rows, 3) - 0.7) * 100% + (var(--rows, 3) - 0.7) * 1px);
  left: 18%; right: 18%;
  background: #fff; border: 1px solid #ccd3da; border-radius: 2px;
  box-shadow: 0 1px 4px rgba(38, 50, 62, 0.13);
  display: grid; place-content: center;
  padding: 0.14in 0.1in; box-sizing: border-box;
  white-space: pre-line; line-height: 1.3; direction: ltr;
}

 
.sh-sched {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
   
  --sh-t: 1.84em; --sh-star: 0.5em; --sh-star2: 1em; --sh-slash: 0.34em; --sh-space: 0.5em;
}
.sh-row.is-times {
  display: grid; column-gap: 0; align-items: baseline;
   
   
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.sh-row.is-big, .sh-wide.is-big { font-size: 1.3em; }
 
.sh-time { text-align: right; white-space: nowrap; }
 
.sh-mark { text-align: left; }
 
.sh-slash { text-align: center; }
 
.sh-wide { text-align: center; }
 
.sh-gap { height: 0.5em; }

 
.opt-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.opt-row .opt-input { flex: 1; min-height: 1.6em; margin-top: 0; text-align: left; }
 
.form-grid .opt-remove {
  flex-shrink: 0; width: 1.7rem; height: 1.7rem; padding: 0; line-height: 1;
  background: none; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, white);
  border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-lg); font-weight: 600;
}
.form-grid .opt-remove:hover { background: color-mix(in srgb, var(--danger) 10%, white); }
.form-grid .opt-add {
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--border);
  padding: 0.35rem 0.8rem; font-size: var(--fs-sm); margin-bottom: 0.9rem;
}
.form-grid .opt-add:hover { background: var(--border); }

 
.weekday-table { table-layout: fixed; }
 
.weekday-table col[data-colkey="parsha"] { width: 14%; }
 
.weekday-table tbody tr { height: calc(var(--sheet-font-size) * 2.6); }

.col-width-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.5rem 0 0.9rem; align-items: flex-end; }
.col-width-input { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--muted); gap: 0.2rem; }
.col-width-input input { width: 74px; padding: 0.25rem 0.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: inherit; }
#col-width-reset { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.35rem 0.8rem; cursor: pointer; height: 30px; font-weight: 500; transition: background 0.15s ease; }
#col-width-reset:hover { background: var(--border); }

.page-footer {
  margin-top: 0.08in;
  display: flex;
  align-items: center;
  gap: 0.12in;
}
.footer-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #9aa7b3, transparent); }
.footer-text { font-size: calc(var(--sheet-font-size) - 2.5pt); color: #444; text-align: center; white-space: pre-line; line-height: 1.3; }
.footer-address { display: block; font-size: calc(var(--sheet-font-size) + 3pt); color: var(--ink); margin-top: 2pt; }

.saved-list button:disabled { opacity: 0.4; cursor: not-allowed; }
 
.alloc { margin: 0.6rem 0 0.2rem; }
.alloc-bar {
  display: flex; height: 1.6rem; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--border); border: 1px solid var(--border);
}
.alloc-seg {
  display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  background: var(--ui-accent); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  border-right: 1px solid var(--surface); transition: width 0.15s ease;
}
.alloc-seg:last-child { border-right: none; }
 
.alloc-seg.is-short {
  background: repeating-linear-gradient(45deg, var(--border) 0 6px, var(--surface) 6px 12px);
  color: var(--muted);
}
.alloc-seg.is-over { background: var(--danger); }
.alloc-msg { margin: 0.35rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.alloc-msg.is-bad { color: var(--danger); font-weight: 500; }

 
 
.week-nav { margin: 0 0 1.1rem; }
.week-nav-when { text-align: center; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.5rem; }
 
 
.week-switches {
  display: grid; grid-template-columns: minmax(0, max-content) max-content;
  justify-content: center; align-items: center;
  gap: 0.45rem 0.6rem; margin-top: 0.6rem; color: var(--muted); font-size: var(--fs-sm);
}
.week-switch-label { text-align: right; }
 
@media (max-width: 24rem) {
  .week-switches { grid-template-columns: max-content; justify-items: center; gap: 0.25rem; }
  .week-switch-label { text-align: center; }
   
  .week-switch + .week-switch-label { margin-top: 0.55rem; }
}
 
.week-switch {
  position: relative; display: flex; padding: 3px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--accent-soft);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
 
.week-switch-radio {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.week-switch-side {
  position: relative; z-index: 1; cursor: pointer; user-select: none;
  padding: 0.32rem 0.85rem; border-radius: 999px; line-height: 1.3;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  transition: color 0.18s ease;
   
  flex: 1 1 0; min-width: 5.5rem; text-align: center;
}
.week-switch-radio:checked + .week-switch-side { color: var(--ink); }
.week-switch-side:hover { color: var(--ink); }
 
.week-switch-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px); border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,0.14);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
 
.week-switch:not(.is-three):has(.week-switch-radio:last-of-type:checked) .week-switch-thumb { transform: translateX(100%); }
 
.week-switch.is-three .week-switch-thumb { width: calc(33.3333% - 2px); }
.week-switch.is-three:has(.week-switch-radio:nth-of-type(2):checked) .week-switch-thumb { transform: translateX(100%); }
.week-switch.is-three:has(.week-switch-radio:nth-of-type(3):checked) .week-switch-thumb { transform: translateX(200%); }
 
.week-switch.is-four .week-switch-thumb { width: calc(25% - 1.5px); }
.week-switch.is-four:has(.week-switch-radio:nth-of-type(2):checked) .week-switch-thumb { transform: translateX(100%); }
.week-switch.is-four:has(.week-switch-radio:nth-of-type(3):checked) .week-switch-thumb { transform: translateX(200%); }
.week-switch.is-four:has(.week-switch-radio:nth-of-type(4):checked) .week-switch-thumb { transform: translateX(300%); }
.week-switch.is-four .week-switch-side { padding-inline: 0.4rem; min-width: 3.9rem; }
 
@supports not selector(:has(*)) {
  .week-switch-thumb { display: none; }
  .week-switch-radio:checked + .week-switch-side { background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,0.14); }
}
.week-switch-radio:focus-visible + .week-switch-side { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
 
.week-nav-hebrew { display: block; direction: rtl; font-family: "Times New Roman", "Frank Ruhl Libre", serif; font-size: var(--fs-md); }
.week-nav-row { display: flex; justify-content: center; gap: 0.5rem; }
 
.week-nav-row > button { flex: 1 1 0; max-width: 11rem; }

 
body:not(.is-luach) .week-nav,
body:not(.is-luach) .week-print-panel { max-width: 8.5in; }
 
.week-nav button {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-md); font-weight: 600;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.week-nav button {
  padding: 0.55rem 1.15rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
}
.week-nav button:hover:not(:disabled) { background: var(--accent-soft); }
.week-nav button:active:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(1px); }
.week-nav button:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
.week-nav button:disabled { opacity: 0.45; cursor: default; }
.week-nav-word { white-space: nowrap; }
.week-nav-print { margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.week-nav-print > button { max-width: 22rem; }
.week-when { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.week-cards { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
 
body.is-luach .week-cards { align-items: center; }

.week-card {
   
  --sheet-font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  --sheet-font-size: 11pt;
  --sheet-header-scale: 0.77;
  width: 8.5in;
  height: 11in;
  flex: none;
  padding: 0.55in 0.6in 0.5in;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--sheet-font-family);
  color: var(--ink);
  display: flex;
  flex-direction: column;
   
  overflow: hidden;
}

 
.week-title { margin: 0.24in 0 0; text-align: center; font-size: 20pt; font-weight: 700; direction: rtl; color: var(--ink); }

 
 
.week-lines { margin: 0.22in 0 0; flex: 1; overflow: hidden; }
 
 
.week-lines-inner { zoom: var(--fit-scale, 1); width: 100%; max-width: calc(3.6in / var(--fit-width, 1)); margin-inline: auto; }
 
.week-line {
   
  display: grid; grid-template-columns: 40% 40%; justify-content: space-between; align-items: center;
  gap: 0.2in; padding: 0.1in 0.16in; margin-bottom: 0.07in;
  background: var(--bg); border-radius: 6px;
}
.week-line > .week-time { grid-column: 1; grid-row: 1; }
.week-line > .week-label { grid-column: 2; grid-row: 1; }
.week-label { direction: rtl; font-weight: 600; font-size: 13pt; text-align: right; }
 
.head-room { font-size: 0.86em; }
 
.week-time {
  direction: ltr; font-weight: 700; font-size: 14pt; white-space: pre-line; line-height: 1.35;
   
  font-variant-numeric: tabular-nums; font-kerning: none;
  display: block; justify-self: stretch; text-align: left;
}
 
.time-mark { display: inline-block; width: 0; overflow: visible; white-space: pre; }
 
.time-pad { display: inline-block; width: 1ch; }
.week-days { display: inline-block; direction: ltr; font-weight: 500; font-size: 10pt; color: var(--muted); }
 
.week-card .big { font-size: inherit; }

 
.week-card.is-weekday-card .week-lines-inner { max-width: none; }
.week-card.is-weekday-card .week-line { display: block; text-align: center; }
 
.week-card.is-weekday-card .week-label { display: block; margin-bottom: 0.03in; font-size: 14pt; font-weight: 700; }
 
.week-card.is-weekday-card .week-label,
.week-card.is-weekday-card .week-time { text-align: center; }
 
.week-card.is-weekday-card .week-time { text-wrap: balance; }
 
.week-card.is-weekday-card .time-mark { display: inline; width: auto; }


 
.week-card .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.week-card .header-icon { justify-self: start; }
.week-card .header-rabbi { justify-self: end; white-space: pre-line; }
 
.week-card .header-rabbi, .week-pair .header-rabbi { font-size: 10pt; font-weight: 700; }

 
.week-legend { margin-top: auto; padding-top: 0.12in; text-align: center; font-size: 9.5pt; color: #444; line-height: 1.35; }
.week-legend:empty { display: none; }
.week-legend-line { unicode-bidi: isolate; }
 
.week-foot { margin-top: 0; padding-top: 0.15in; text-align: center; font-size: 10.5pt; font-weight: 700; }

 
.week-cards.is-scaled .week-card { zoom: var(--page-zoom, 1); }

 
.week-pair {
   
  --sheet-font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  --sheet-font-size: 11pt;
  --sheet-header-scale: 0.77;
   
  width: 8.5in; height: 11in; flex: none;
  padding: 0.38in 0.4in 0.3in;
  background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--sheet-font-family); color: var(--ink);
  display: flex; flex-direction: column;
   
  overflow: hidden;
}
 
.week-pair-cols { display: flex; flex-direction: row-reverse; flex: 1; gap: 0.3in; min-height: 0; }
 
.week-pair .week-card {
  width: auto; height: auto; flex: 1 1 0; min-width: 0;
  padding: 0; border: none; box-shadow: none; background: none;
}
.week-pair .week-card > .page-header, .week-pair .week-card > .week-foot { display: none; }

 
.week-pair .week-lines-inner { width: 94%; max-width: none; }
 
.week-pair .week-line { grid-template-columns: 47% 47%; }

 
.week-pair .header-row { display: block; position: relative; text-align: center; }
.week-pair .header-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.week-pair .header-rabbi { position: absolute; right: 0; top: 50%; transform: translateY(-50%); text-align: right; }
.week-pair .header-center { display: inline-block; }
  
.week-pair-title { margin: 0.12in 0 0; text-align: center; direction: rtl; font-size: 20pt; font-weight: 700; color: var(--ink); }
.week-pair .week-title { margin-top: 0.14in; font-size: 15pt; }
 
.week-pair .week-card > .week-legend { display: none; }
.week-pair-legend { margin-top: 0.08in; padding-top: 0.08in; }
.week-pair > .week-foot { padding-top: 0.12in; }
 
.week-cards.is-pairing .week-card { zoom: 1 !important; }

 
.guide-lede {
  background: var(--ui-accent-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.guide-lede p { margin: 0 0 0.6rem; }
.guide-lede p:last-child { margin-bottom: 0; }
.guide-steps { margin: 0; padding-left: 1.3rem; }
.guide-steps li { margin-bottom: 0.9rem; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps .hint { display: block; margin-top: 0.2rem; }
kbd {
  font-family: inherit; font-size: var(--fs-xs); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 4px; padding: 0.05rem 0.35rem; background: var(--bg);
}
.guide-nudge {
  background: var(--ui-accent-soft); border-left: 3px solid var(--ui-accent);
  padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: var(--fs-sm);
}
 
.linkish {
  background: none; border: none; padding: 0; font: inherit; color: var(--ui-accent-dark);
  text-decoration: underline; cursor: pointer;
}
 
.pair-chip {
  background: var(--ui-accent-soft); color: var(--ui-accent-dark); border-radius: 4px;
  padding: 0.05rem 0.4rem; font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
}
.lock-mark { font-size: var(--fs-sm); }
 
.folder-select {
  padding: 0.25rem 0.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: var(--fs-sm); background: var(--surface); color: var(--ink); max-width: 11rem;
}
 
.panel-body > .saved-list { margin: 0; }

 
.toast {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
  background: var(--nav-bg); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  font-size: var(--fs-md); font-weight: 500; max-width: 22rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.toast.is-leaving { opacity: 0; transform: translateY(0.5rem); }
@media (max-width: 900px) {
  .toast { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}

 
.published-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.8rem; margin-top: 0.4rem;
  background: var(--bg); border-radius: var(--radius-sm); font-size: var(--fs-md);
}
#publish-status { margin-top: 0.6rem; display: block; }

 
.live-chip {
  background: #dcfce7; color: #14532d; border-radius: 4px;
  padding: 0.05rem 0.4rem; margin-left: 0.35rem;
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.live-chip.is-superseded { background: var(--accent-soft); color: var(--muted); }
.live-chip.is-superseded::after { content: " (other)"; }

 
.week-days { display: inline-block; direction: ltr; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }

 
 
body.is-luach {
  --luach-navy: #162a43;
  --luach-navy-deep: #101f34;
  --luach-ink: #16294a;
  --luach-gold: #d1ad5f;
  --luach-gold-soft: #c6b184;
  --luach-cream: #f9f6ef;
   
  --luach-arc: clamp(15px, calc(4.92vw - 2px), 28px);
   
  background: var(--luach-cream);
}
body.is-luach main { max-width: none; margin: 0; padding: 1.25rem 1rem 3rem; }
 
body.is-luach main.is-home { padding-bottom: 1.25rem; }

 
body.is-luach main.is-home,
body.is-luach main.is-give { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.luach-home { max-width: 34rem; margin: 0 auto; width: 100%; text-align: center; flex: 1; display: flex; flex-direction: column; }
 
.luach-home > .luach-rule { margin-top: auto; padding-top: 1.9rem; }
 
 

 
.luach-cap-photo {
  position: absolute; top: 0.85rem; left: 1.25rem;
   
  height: clamp(1.6rem, calc(100% - 0.85rem - var(--luach-arc) - 0.7rem), 2.6rem);
  width: auto; aspect-ratio: 1400 / 821;
  object-fit: cover; border-radius: 7px;
  border: 1px solid rgba(209,173,95,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
   
  z-index: 1;
}
@media (min-width: 34rem) { .luach-cap-photo { top: 1.1rem; left: 1.6rem; } }
 
@media print { .luach-cap-photo { display: none !important; } }

 
.luach-bar {
  position: relative;
   
  -webkit-user-select: none; user-select: none;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: -1.25rem -1rem 1.6rem; padding: 0.85rem 1.25rem calc(var(--luach-arc) + 0.7rem);
   
  background: linear-gradient(180deg, var(--luach-navy-deep), var(--luach-navy));
}
 
.luach-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; z-index: 0;
  height: calc(var(--luach-arc) + 2px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 10.6 Q50 -8.6 100 10.6 L100 24 L0 24 Z' fill='%23f9f6ef'/%3E%3Cpath d='M0 10.6 Q50 -8.6 100 10.6' fill='none' stroke='%23d1ad5f' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
 
.luach-back, .luach-bar-title { position: relative; z-index: 1; }

 
 
 
.luach-bar-plain { display: block; margin-bottom: 1.6rem; padding: 0; }
 
.luach-bar-plain { min-height: calc(0.85rem + 1.125rem + var(--luach-arc) + 0.7rem); }

 
.luach-masthead { text-align: center; margin-bottom: 2.4rem; }
 
main:has(.luach-next) .luach-masthead { margin-bottom: 1.3rem; }
 
.luach-masthead-name { display: contents; }
 
.luach-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
 
.luach-intro {
  max-width: 34rem; margin: 0 auto 1.1rem; text-align: center;
  font-size: 0.92rem; line-height: 1.55; color: var(--luach-ink); opacity: 0.75;
}
.luach-logo { width: min(18rem, 74%); height: auto; }
.luach-place { margin: 0; font-family: "Times New Roman", "Frank Ruhl Libre", serif; font-size: 1.15rem; color: var(--luach-ink); }

 
 
.luach-rule {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; max-width: 22rem; align-self: center;
  margin: 1.1rem auto;
}
.luach-rule::before, .luach-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--luach-gold-soft) 25%, var(--luach-gold-soft) 75%, transparent);
}
.luach-rule > i { width: 7px; height: 7px; background: var(--luach-gold-soft); transform: rotate(45deg); }

 
 
.luach-sheets { max-width: 8.5in; margin: 0 auto; width: 100%; }
.luach-sheet { margin-bottom: 2rem; }
.luach-sheet:last-child { margin-bottom: 0; }
.luach-sheet-name {
  font-size: 1.15rem; font-weight: 700; color: var(--luach-ink);
  margin: 0 0 0.15rem; text-align: center;
}
 
.luach-sheet-when-he {
  font-size: 1.05rem; font-weight: 700; line-height: 1.5; color: var(--luach-ink);
  margin: 0 0 0.1rem; text-align: center;
}
.luach-sheet-when { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 0.7rem; text-align: center; }
.luach-sheet-page { width: 100%; overflow: hidden; display: flex; justify-content: center; }
 
.luach-sheet-page > .poster { flex: 0 0 auto; }
.luach-sheet-print { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.luach-sheet-none { max-width: 30rem; margin: 1.5rem auto; text-align: center; color: var(--luach-ink); line-height: 1.6; }
 
.luach-sheet-caveat {
  margin: 0.9rem auto 0; text-align: center;
  font-size: var(--fs-xs);
   
  color: #646b78;
}

 
.luach-next {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem;
}
 
.luach-next-box {
  display: flex; flex-direction: column;
  flex: 1 1 8rem; min-width: 0; container-type: inline-size;
  border: 1.5px solid var(--tone-line); border-radius: 18px;
  background: var(--tone-fill); padding: 0.7rem 0.8rem 0.6rem;
  text-align: center;
  --tone-line: rgba(184,143,58,0.62);
  --tone-fill: rgba(209,173,95,0.13);
  --tone-ink: #97721f;
}
 
.luach-next-head {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.4rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tone-ink); white-space: nowrap;
}
.luach-next-head::before, .luach-next-head::after {
  content: ""; flex: 1 1 0; height: 1px; background: var(--tone-line);
}
 
 
.luach-next-body { position: relative; display: flex; align-items: center; justify-content: center; margin-top: auto; }
.luach-next-body:last-child { margin-bottom: auto; }
.luach-next-mark {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2.65rem; height: 2.65rem; border-radius: 50%;
  border: 1.6px solid var(--tone-line); color: var(--tone-ink);
  display: flex; align-items: center; justify-content: center;
}
.luach-next-mark svg { width: 1.5rem; height: 1.5rem; }
 
.luach-next-main {
  display: flex; flex-wrap: wrap; direction: rtl;
  align-items: baseline; align-content: center; justify-content: center;
  column-gap: 0.5rem; min-width: 0;
}
.luach-next-what {
  font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--luach-ink);
}
 
.luach-next-where {
  font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 0.95rem; font-weight: 400; color: var(--tone-ink);
}
 
.luach-next-time {
  direction: ltr;
  font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.5rem; font-weight: 700; color: var(--luach-ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2;
}
.luach-next-time small { font-size: 0.7em; font-weight: 700; margin-left: 0.22em; }
.luach-next-when {
  display: flex; align-items: center; justify-content: center; gap: 0.32rem;
  margin: 0.3rem 0 auto; font-size: 0.86rem; color: var(--tone-ink);
}
.luach-next-wait { width: 0.95rem; height: 0.95rem; flex: none; }

 
.luach-next-time { flex-basis: 100%; }
@container (min-width: 19rem) {
  .luach-next-main { column-gap: 0.8rem; }
  .luach-next-time { flex-basis: auto; }
}
 
.luach-next-main.is-inline > .luach-next-time {
  border-right: 1.5px solid var(--tone-line); padding-right: 0.8rem;
}
 
.luach-next-main:not(.is-inline) > .luach-next-time { flex-basis: 100%; }
 
@container (max-width: 16rem) {
  .luach-next-mark { display: none; }
}
 
@container (min-width: 16rem) {
  .luach-next-main { max-width: calc(100% - 6.6rem); }
}
 
@container (max-width: 19rem) {
  .luach-next-what { font-size: 1.2rem; }
}

.luach-menu { display: flex; flex-direction: column; gap: 0.85rem; }
.luach-item {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 1.15rem 1.15rem; text-decoration: none; color: var(--luach-ink);
  background: #ffffff; border: none; border-radius: 18px;
  box-shadow: 0 3px 12px rgba(18,39,79,0.09), 0 1px 2px rgba(18,39,79,0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.luach-item:hover { box-shadow: 0 10px 26px rgba(18,39,79,0.15), 0 2px 4px rgba(18,39,79,0.08); }
.luach-item:active { transform: translateY(1px); }
.luach-item-icon { width: 30px; height: 30px; flex: none; }
 
.luach-item-title { flex: 1; font-family: "Times New Roman", "Frank Ruhl Libre", serif; font-size: 1.45rem; font-weight: 700; direction: ltr; text-align: left; }
.luach-item-go { width: 19px; height: 19px; flex: none; color: var(--luach-ink); opacity: 0.55; }

 
.luach-give-page { display: flex; flex-direction: column; gap: 0.6rem; }

.luach-give-head-block { margin-bottom: 0.1rem; }
.luach-give-heading {
  margin: 0.35rem 0 0; text-align: center;
  font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.6rem; font-weight: 700; color: var(--luach-ink); letter-spacing: -0.015em;
}
.luach-give-thanks {
  margin: 0.15rem 0 0; text-align: center;
  font-size: 0.88rem; line-height: 1.35; color: var(--luach-ink); opacity: 0.62;
}
 
.luach-give-legal {
  margin: 0.5rem auto 0; max-width: 34rem; text-align: center;
  font-size: 0.8rem; line-height: 1.45; color: var(--luach-ink); opacity: 0.72;
}

 
.luach-give-card {
  text-align: left;
  background: #ffffff; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(18,39,79,0.07), 0 1px 2px rgba(18,39,79,0.05);
}
 
@media (prefers-reduced-motion: no-preference) {
  .luach-give-card { interpolate-size: allow-keywords; }
  .luach-give-card::details-content {
    block-size: 0; overflow: clip; border-radius: 0 0 16px 16px;
    transition: block-size var(--drawer-open) ease, content-visibility var(--drawer-open) allow-discrete;
  }
  .luach-give-card[open]::details-content { block-size: auto; }
  .luach-give-open { transform: translateY(-10px); transition: transform var(--drawer-open) ease; }
  .luach-give-card[open] .luach-give-open { transform: none; }
}
 
.luach-give-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 0.95rem; cursor: pointer;
  list-style: none; -webkit-tap-highlight-color: transparent;
}
.luach-give-head::-webkit-details-marker { display: none; }
.luach-give-head:focus-visible { outline: 2px solid rgba(184,143,58,0.9); outline-offset: -2px; border-radius: 16px; }
 
.luach-give-card[open] > .luach-give-head { border-bottom: 1px solid rgba(184,143,58,0.42); }
.luach-give-chev {
  width: 1.35rem; height: 1.35rem; flex: none; margin-left: auto;
  color: var(--luach-ink); opacity: 0.45;
  transition: transform var(--drawer-open) ease, opacity var(--drawer-open) ease;
}
.luach-give-head:hover .luach-give-chev { opacity: 0.75; }
.luach-give-card[open] > .luach-give-head .luach-give-chev { transform: rotate(180deg); opacity: 0.75; }
 
.luach-give-open {
  padding: 0.9rem 0.95rem 0.95rem;
  background: #f6f1e4; border-radius: 0 0 16px 16px;
}
.luach-give-open > :first-child { margin-top: 0; }

 
.luach-give-account + .luach-give-account {
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(18,39,79,0.1);
}
.luach-account-title {
  margin: 0; font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.05rem; font-weight: 700; color: var(--luach-ink); letter-spacing: -0.01em;
}
.luach-account-blurb {
  margin: 0.1rem 0 0; font-size: 0.82rem; line-height: 1.35;
  color: var(--luach-ink); opacity: 0.64;
}
.luach-give-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1.5px solid rgba(184,143,58,0.5); color: #b08d3a;
  background: rgba(209,173,95,0.13);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.luach-give-mark-svg { width: 1.3rem; height: 1.3rem; }
 
.luach-give-mark-svg.is-brand { width: 1.85rem; height: 1.85rem; }
 
.luach-give-mark.is-zelle { background: #6d1ed4; border-color: #6d1ed4; color: #fff; }
.luach-give-body { flex: 1; min-width: 0; }
.luach-give-title {
  margin: 0; font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.2rem; font-weight: 700; color: var(--luach-ink); letter-spacing: -0.01em;
}
.luach-give-blurb {
  margin: 0.1rem 0 0; font-size: 0.86rem; line-height: 1.35;
  color: var(--luach-ink); opacity: 0.64;
}

 
 
.luach-chips {
  list-style: none; margin: 0.6rem 0 0; padding: 0 0 0.15rem;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0 0.55rem;
  font-size: 0.82rem; line-height: 1.35;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(184,143,58,0.5) transparent;
}
.luach-chips::-webkit-scrollbar { height: 4px; }
.luach-chips::-webkit-scrollbar-track { background: transparent; }
.luach-chips::-webkit-scrollbar-thumb { background: rgba(184,143,58,0.5); border-radius: 2px; }
.luach-chips:focus-visible { outline: 2px solid rgba(184,143,58,0.8); outline-offset: 3px; border-radius: 4px; }

 
@property --fade-l { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --fade-r { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes luach-chips-edges {
   
  0% { --fade-l: 0; --fade-r: 1; }
  5% { --fade-l: 1; --fade-r: 1; }
  95% { --fade-l: 1; --fade-r: 1; }
  100% { --fade-l: 1; --fade-r: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .luach-chips {
     
    mask-image: linear-gradient(to right,
      rgba(0,0,0,calc(1 - var(--fade-l))) 0,
      #000 2.4rem,
      #000 calc(100% - 2.4rem),
      rgba(0,0,0,calc(1 - var(--fade-r))) 100%);
    animation: luach-chips-edges linear both;
    animation-timeline: scroll(self inline);
  }
}
 
.luach-chip {
  display: inline-flex; align-items: center; gap: 0.32rem;
  flex: none; white-space: nowrap; color: var(--luach-ink);
}
.luach-chip-icon { width: 1.05rem; height: 1.05rem; color: #b08d3a; flex: none; }

 
.luach-chip + .luach-chip::before {
  content: "\2022";
  color: var(--luach-gold-soft);
  margin-right: 0.23rem;
}

 
.luach-give-go {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  margin-top: 0.6rem; padding: 0.62rem 1rem; border-radius: 11px; text-decoration: none;
  background: linear-gradient(180deg, #22406a 0%, var(--luach-navy) 100%);
  color: var(--luach-gold); font-weight: 700; font-size: 0.95rem; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(209,173,95,0.38), 0 1px 2px rgba(18,39,79,0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.luach-give-go:hover {
  box-shadow: inset 0 0 0 1px rgba(209,173,95,0.75), 0 6px 16px rgba(18,39,79,0.13);
  transform: translateY(-1px);
}
.luach-give-go:active { transform: translateY(1px) scale(0.985); }


 
.luach-copy {
  margin: 0; padding: 0.45rem 0.65rem; border-radius: 10px;
  background: rgba(18,39,79,0.05);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem;
  font-size: 0.85rem; color: var(--luach-ink); user-select: text;
}
.luach-give-card:has(.is-zelle) .luach-copy { background: rgba(109,30,212,0.07); }
 
.luach-copy-label { opacity: 0.7; flex: none; }
.luach-copy-value { font-weight: 600; word-break: break-word; }
 
.luach-copy-btn {
  margin-left: auto; flex: none; font: inherit; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.55rem; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(18,39,79,0.2); background: #ffffff; color: var(--luach-ink);
  -webkit-appearance: none; appearance: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.luach-copy-btn:hover { background: rgba(18,39,79,0.06); border-color: rgba(18,39,79,0.35); }
.luach-copy-btn:active { background: rgba(18,39,79,0.12); }
.luach-copy-btn:focus-visible { outline: 2px solid rgba(184,143,58,0.8); outline-offset: 2px; }
 
.luach-give-how {
  margin: 0.35rem 0 0; font-size: 0.82rem; line-height: 1.4;
  color: var(--luach-ink); opacity: 0.72;
}
.luach-copy-soon, .luach-give-soon { font-style: italic; opacity: 0.62; }
.luach-give-soon {
  margin: 0; padding: 0.45rem 0.65rem; border-radius: 10px;
  background: rgba(18,39,79,0.045); font-size: 0.85rem; color: var(--luach-ink);
}
 
.luach-give-frame {
  margin-top: 0.6rem; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(18,39,79,0.14); background: #ffffff;
}
.luach-frame-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.5rem 0.4rem 0.65rem; background: rgba(18,39,79,0.05);
  border-bottom: 1px solid rgba(18,39,79,0.1); font-size: 0.8rem;
}
.luach-frame-where {
  display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0;
  font-weight: 600; color: var(--luach-ink); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.luach-frame-lock { width: 0.85rem; height: 0.85rem; flex: none; opacity: 0.75; }
.luach-frame-out { margin-left: auto; color: var(--luach-ink); opacity: 0.72; text-decoration: none; }
.luach-frame-out:hover { opacity: 1; text-decoration: underline; }
.luach-frame-shut {
  flex: none; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--luach-ink); font-size: 1.1rem; line-height: 1;
  cursor: pointer; opacity: 0.6;
}
.luach-frame-shut:hover { background: rgba(18,39,79,0.08); opacity: 1; }
.luach-frame-shut:focus-visible { outline: 2px solid rgba(184,143,58,0.8); outline-offset: 1px; }
 
.luach-frame {
  display: block; width: 100%; border: 0; background: #ffffff;
  height: 34rem; height: min(82dvh, 44rem);
}
@media (min-width: 34rem) {
  .luach-frame { height: 42rem; height: min(80dvh, 48rem); }
}
 
.luach-frame-wrap { position: relative; display: flex; }
.luach-frame-load {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: #ffffff; color: var(--luach-ink); font-size: 0.86rem;
}
.luach-frame-spin {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  border: 2px solid rgba(184,143,58,0.3); border-top-color: #b08d3a;
}
 
@media (prefers-reduced-motion: no-preference) {
  .luach-frame-spin { animation: luach-spin 0.8s linear infinite; }
}
@keyframes luach-spin { to { transform: rotate(1turn); } }
 
 
.luach-frame-help {
  margin: 0; padding: 0.45rem 0.65rem; font-size: 0.78rem;
  color: var(--luach-ink); opacity: 0.72; border-top: 1px solid rgba(18,39,79,0.08);
}
.luach-frame-help a { color: inherit; }
@media print { .luach-give-frame { display: none !important; } }

 
 
body.is-luach .week-print-panel { max-width: 8.5in; margin-inline: auto; }

 
 
 
.luach-give-masthead { margin-bottom: 1rem; }
 
body.is-luach main.is-give { padding-bottom: 0.5rem; }

.luach-foot {
  margin: 0; font-family: "Times New Roman", "Frank Ruhl Libre", serif;
  font-size: 1.05rem; line-height: 1.5; color: var(--luach-ink);
}
 
.luach-foot-part { display: inline-block; }
 

 
.luach-back {
  color: #f3ecdc; text-decoration: none; font-weight: 600;
  padding: 0.4rem 0.55rem; margin: -0.4rem -0.55rem; border-radius: 8px;
}
.luach-back:hover { text-decoration: underline; }
 
 
.luach-bar-title {
  color: #b7c4dd; font-size: var(--fs-sm); font-weight: 400;
  margin: 0; flex: 1 1 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

 
.luach-bar-give {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: #f3ecdc; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1;
   
  padding: 0.42rem 0.7rem; margin-block: -0.42rem; border-radius: 999px;
  border: 1px solid rgba(209,173,95,0.7);
  background: rgba(209,173,95,0.1);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.luach-bar-give-icon { width: 0.95rem; height: 0.95rem; flex: none; }
.luach-bar-give:hover { background: rgba(209,173,95,0.22); border-color: var(--luach-gold); }
 
.luach-bar-give:active { background: rgba(209,173,95,0.3); border-color: var(--luach-gold); }

 
body.is-luach .week-nav button {
  background: #fff; color: var(--luach-ink);
  border: 1px solid rgba(22,42,67,0.14);
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(18,39,79,0.06), 0 2px 8px rgba(18,39,79,0.05);
  font-weight: 600;
   
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              box-shadow 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
body.is-luach .week-nav button { padding: 0.62rem 1.15rem; }

body.is-luach .week-nav button:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(22,42,67,0.3);
  box-shadow: 0 2px 4px rgba(18,39,79,0.08), 0 8px 20px rgba(18,39,79,0.13);
  transform: translateY(-1px);
}
 
body.is-luach .week-nav button:active:not(:disabled) {
  background: var(--luach-navy);
  border-color: var(--luach-navy);
  color: var(--luach-cream);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.28);
  transform: translateY(1px) scale(0.985);
  transition-duration: 0.04s;
}
body.is-luach .week-nav button:focus-visible {
  outline: none;
  border-color: var(--luach-gold);
  box-shadow: 0 0 0 3px rgba(209,173,95,0.45), 0 2px 8px rgba(18,39,79,0.08);
}
body.is-luach .week-nav button:disabled {
  opacity: 1; color: rgba(22,42,67,0.32);
  border-color: rgba(22,42,67,0.08); background: rgba(255,255,255,0.5);
  box-shadow: none; cursor: default;
}

 
body.is-luach .week-nav .print-btn {
  background: linear-gradient(180deg, #22406a 0%, var(--luach-navy) 100%);
  color: var(--luach-cream);
  border-color: transparent;
   
  box-shadow: inset 0 0 0 1px rgba(209,173,95,0.38), 0 1px 2px rgba(18,39,79,0.06),
              0 2px 8px rgba(18,39,79,0.05);
  letter-spacing: 0.01em;
}
body.is-luach .week-nav .print-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #2a4d7d 0%, #1a3055 100%);
  border-color: transparent;
   
  box-shadow: inset 0 0 0 1px rgba(209,173,95,0.75), 0 2px 4px rgba(18,39,79,0.08),
              0 8px 20px rgba(18,39,79,0.13);
  transform: translateY(-1px);
}
body.is-luach .week-nav .print-btn:active:not(:disabled) {
  background: linear-gradient(180deg, #14263f 0%, #0f1d33 100%);
  color: var(--luach-gold);
  box-shadow: inset 0 0 0 1px rgba(209,173,95,0.6), inset 0 3px 7px rgba(0,0,0,0.42);
  transform: translateY(1px) scale(0.985);
}

 
body.is-luach .luach-item {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: box-shadow 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
              background 0.18s ease;
}
body.is-luach .luach-item:hover { transform: translateY(-2px); }
body.is-luach .luach-item:active {
  background: var(--luach-navy); color: var(--luach-cream);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
  transform: translateY(1px) scale(0.992);
  transition-duration: 0.04s;
}
body.is-luach .luach-item:active .luach-item-go { color: var(--luach-gold); opacity: 1; }
body.is-luach .luach-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209,173,95,0.5), 0 6px 18px rgba(18,39,79,0.14);
}
 
body.is-luach .luach-item-go { transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.18s ease; }
body.is-luach .luach-item:hover .luach-item-go { transform: translateX(3px); opacity: 0.85; }

 
body.is-luach .week-nav-when { color: rgba(22,42,67,0.62); }
body.is-luach .week-print-panel > summary { color: var(--luach-ink); }
body.is-luach .week-print-panel > summary:hover { color: var(--luach-navy); }
body.is-luach .week-print-panel { border-color: rgba(22,42,67,0.12); }
body.is-luach .week-switches { color: var(--luach-ink); }
 
body.is-luach .week-switch {
  background: rgba(22,42,67,0.07);
  border-color: rgba(22,42,67,0.12);
}
body.is-luach .week-switch-side { color: rgba(22,42,67,0.55); }
body.is-luach .week-switch-side:hover,
body.is-luach .week-switch-radio:checked + .week-switch-side { color: var(--luach-ink); }
body.is-luach .week-switch-thumb { box-shadow: 0 1px 2px rgba(18,39,79,0.1), 0 2px 8px rgba(18,39,79,0.09); }
 
@supports not selector(:has(*)) {
  body.is-luach .week-switch-radio:checked + .week-switch-side {
    box-shadow: 0 1px 2px rgba(18,39,79,0.1), 0 2px 8px rgba(18,39,79,0.09);
  }
}
body.is-luach .week-switch-radio:focus-visible + .week-switch-side {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209,173,95,0.45);
}
body.is-luach .week-nav-print { border-top-color: rgba(22,42,67,0.12); }

 
@media (min-width: 48rem) {
  body.is-luach { --luach-arc: clamp(29px, calc(3.25vw - 2px), 47px); }
   
  .luach-bar-plain { min-height: clamp(6rem, 13vh, 9rem); margin-bottom: 2.8rem; }
  .luach-logo { width: 24rem; }
  .luach-place { font-size: 1.3rem; }
  .luach-rule { max-width: 26rem; }
   
  .luach-masthead { margin-top: auto; }
  .luach-home { max-width: 40rem; flex: 0 0 auto; margin-bottom: auto; }
   
  .luach-home > .luach-rule { padding-top: 2.2rem; }
  .luach-menu { gap: 1rem; }
  .luach-item { padding: 1.35rem 1.6rem; gap: 1.15rem; border-radius: 20px; }
  .luach-item-icon { width: 34px; height: 34px; }
  .luach-item-title { font-size: 1.65rem; }
  .luach-item-go { width: 21px; height: 21px; }
  .luach-foot { font-size: 1.15rem; }
}

 
@media (min-width: 48rem) and (max-height: 44rem) {
  .luach-bar-plain { min-height: 3.8rem; margin-bottom: 1.1rem; }
  .luach-masthead { margin-bottom: 1.1rem; }
  .luach-menu { gap: 0.7rem; }
  .luach-item { padding: 1.05rem 1.6rem; }
   
  .luach-rule { margin: 1rem auto; }
  .luach-home > .luach-rule { padding-top: 2rem; }
}

 
.pane-switch { display: flex; gap: 0.5rem; margin: 0 0 1.4rem; }
.pane-btn {
  flex: 1 1 0; max-width: 14rem; padding: 0.6rem 1rem; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-md); font-weight: 600;
  touch-action: manipulation;
}
.pane-btn:hover:not(.is-on) { background: var(--accent-soft); }
.pane-btn:active { transform: translateY(1px); }
.pane-btn:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
 
.pane-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

 
 
.dl-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.dl-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; text-decoration: none; color: inherit; background: var(--surface, #fff);
}
.dl-row:hover { border-color: var(--ui-accent); background: var(--ui-accent-soft); }
 
.dl-row.is-lead { border-color: var(--ui-accent); border-width: 2px; padding: calc(0.85rem - 1px) calc(1rem - 1px); }
.dl-what { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 14rem; min-width: 0; }
.dl-go {
  flex: 0 0 auto; background: var(--ui-accent); color: #fff; border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
}
.dl-row:hover .dl-go { background: var(--ui-accent-dark); }
.dl-warn {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 0.8rem 1rem; margin: 1rem 0; font-size: var(--fs-sm); line-height: 1.55;
}
 
.dl-heading { font-size: 1rem; margin: 1.6rem 0 0.35rem; }

 
 
 
.week-nav-print-one { margin-top: 0.6rem; }
.week-nav-print-one > .print-btn { flex: 0 1 11rem; }
 
.week-nav-print-one > .pdf-btn { flex: 0 1 6rem; }
 
.week-nav-print-one > .copy-btn { flex: 0 1 7rem; }
.week-print-panel .week-nav-print-one { margin-top: 0; }
.week-print-panel .week-nav-print-one > .print-btn { flex: 1 1 0; max-width: 22rem; }
 
.week-print-panel .week-nav-print { flex-direction: column; align-items: center; gap: 0.55rem; margin-top: 0.75rem; padding-top: 0.75rem; }
.week-print-panel .week-nav-print > button { flex: none; width: 100%; max-width: 22rem; }
.week-print-panel .week-switches { margin-top: 0.9rem; }
.week-print-panel .print-hint { margin-top: 0.7rem; }
.week-print-panel { margin-top: 0.6rem; }
.week-print-panel > .panel-body { padding-top: 0.2rem; }
 
 
.dl-heading-first { margin-top: 1rem; }
 
.dl-programs { margin-top: 1.4rem; }
.dl-programs .dl-list { margin-top: 0.6rem; }

 
 
.calc-not-rules { border-left: 3px solid var(--ui-accent); padding-left: 0.8rem; margin: 1rem 0 1.2rem; }
 
 
 
.poster.is-weeksheet .onepage-col {
   
  justify-content: center;
}
 
.poster.is-weeksheet .onepage-row { padding-block: calc(0.014in + var(--ws-gap, 0px) / 2); }
 
.poster.is-weeksheet .onepage-col + .onepage-col { border: 0; }

 
.poster.is-weeksheet .header-row { display: block; position: relative; text-align: center; }
.poster.is-weeksheet .header-center { display: inline-block; }
.poster.is-weeksheet .header-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.poster.is-weeksheet .header-rabbi { position: absolute; right: 0; top: 50%; transform: translateY(-50%); text-align: right; }

.calc-section { margin: 2rem 0 0.2rem; font-size: 1.15rem; }
.calc-section:first-of-type { margin-top: 1.4rem; }
.calc-chart { margin-bottom: 0.6rem; }
.calc-cols { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.9rem; }
.calc-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; background: var(--surface); }
.calc-col-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
 
.calc-col-name { font-size: 1.05rem; font-weight: 700; }
.calc-col-key { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.calc-plain { margin: 0; line-height: 1.6; }
 
.calc-worked {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  margin-top: 0.6rem; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  background: var(--ui-accent-soft);
}
.calc-worked-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.calc-worked-value { direction: ltr; font-weight: 700; line-height: 1.5; }
.calc-blank { color: var(--muted); font-weight: 400; }
.calc-exact { margin-top: 0.6rem; }
.calc-exact > summary {
  cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ui-accent-dark);
  list-style: none;
}
.calc-exact > summary::-webkit-details-marker { display: none; }
.calc-exact > summary::before { content: '▸ '; }
.calc-exact[open] > summary::before { content: '▾ '; }
.calc-exact > p { margin: 0.5rem 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }

 
.poster {
  position: relative;
  width: 8.5in; height: 11in;
  margin: 0 auto;
  background: #fff;
  box-sizing: border-box;
   
  --inner-top: 0.486in;     
  --inner-side: 0.444in;    
  --inner-bottom: 0.549in;  
   
  --art: 9.14pt;
   
  padding: 0.5in 0.5in 0.6625in;
  display: flex; flex-direction: column; align-items: center;
   
  font-family: var(--poster-font-family, serif);
  color: #000;
   
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
 
.poster::before {
  content: ""; position: absolute;
  inset:
    calc(var(--inner-top) - 6.07pt)
    calc(var(--inner-side) - 6.07pt)
    calc(var(--inner-bottom) - 6.07pt);
  border: 3pt solid #000; border-image: none;
  outline: 1.5pt solid #000; outline-offset: 1.57pt;
  pointer-events: none;
}
.poster::after {
  content: ""; position: absolute;
  inset:
    calc(var(--inner-top) - 1.5pt)
    calc(var(--inner-side) - 1.5pt)
    calc(var(--inner-bottom) - 1.5pt);
  border: 1.5pt solid #000;
  pointer-events: none;
}
 
.poster-wordmark { display: block; width: 5.285in; height: auto; margin: 0 auto; }
.poster-subtitle { font-size: 14pt; font-weight: 700; margin: 0.11in 0 0.02in; }
.poster-rule { display: block; width: 5.646in; height: auto; margin: 0 auto 0.12in; }
 
.poster-rabbi {
  align-self: flex-start; text-align: right;
  font-size: 11pt; font-weight: 700; line-height: 1.35; margin-bottom: 0.34in;
}
.poster-title {
  font-size: 30pt; font-weight: 700; text-decoration: underline;
  text-underline-offset: 0.06em; text-decoration-skip-ink: none; margin: 0 0 0.42in;
}
.poster-line { font-size: 24pt; font-weight: 700; margin: 0 0 0.24in; line-height: 1.25; }
 
.poster-rows {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; width: 100%;
  padding: 0.16in 0 0.85in;
}
 
.poster h3 { color: inherit; }
 
.poster-day {
  font-size: 15pt; font-weight: 700; text-decoration: underline;
  text-underline-offset: 0.06em; text-decoration-skip-ink: none; margin: 0.1in 0 0; text-align: center;
}
 
 
.poster.is-dense .poster-rabbi { margin-bottom: 0.16in; }
.poster.is-dense .poster-title { margin-bottom: 0.16in; }
.poster-rows.is-dense { padding: 0.06in 0 0.1in; }
.poster-rows.is-dense .poster-row { font-size: 12pt; line-height: 1.15; }
 
.poster-rows.is-dense .poster-day { font-size: 16pt; margin: 0.09in 0 0.02in; }
 
.poster-divider { border: 0; border-top: 1px dashed #000; width: 3in; margin: 0.08in auto 0.04in; }
 
 
.poster-sets { display: flex; flex-direction: column; justify-content: space-around; flex: 1; width: 100%; }
.poster-set { text-align: center; }
 
.poster-set-head {
  font-size: 27pt; font-weight: 700; text-decoration: underline;
  text-underline-offset: 0.06em; text-decoration-skip-ink: none; margin: 0 0 0.18in;
}
.poster-set-line { font-size: 23pt; font-weight: 700; line-height: 1.5; margin: 0; }
.poster-set-line u { text-underline-offset: 0.12em; }
 
.poster-set-note { font-size: 23pt; font-weight: 700; line-height: 1.5; margin: 0; }
 
.poster-all { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 100%; }
.poster-all-item { display: flex; flex-direction: column; align-items: center; width: 100%; }
.poster-all-name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  margin: 0 0 0.4rem; text-align: center;
}
 
.poster-all-item.is-sideways {
  width: 8.5in; height: 11in;
  position: relative; overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.poster-all-item.is-sideways .poster {
  position: absolute; top: 0; left: 0;
  margin: 0; box-shadow: none;
  transform-origin: 0 0;
  transform: translateY(11in) rotate(-90deg);
}

 
.poster.is-landscape { width: 11in; height: 8.5in; }
 
.poster-pair { display: flex; align-items: stretch; width: 100%; flex: 1; }
.poster-pair-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
 
.poster-pair-col + .poster-pair-col { border-inline-start: 1px solid #000; }
.poster.is-pair .poster-pair-col { padding-inline: 0.1in; }

 
.poster.is-pair { --pair-lead: 1.75; }
.poster.is-pair.is-landscape { --pair-lead: 1.15; }
 
.poster.is-pair:has(.poster-sets) { --pair-lead: 2.2; }
.poster.is-pair:has(.poster-sets).is-landscape { --pair-lead: 1.75; }
.poster.is-pair .poster-row { line-height: var(--pair-lead); }
 
.poster.is-vasikin .poster-rows { flex: 0 0 auto; justify-content: flex-start; padding-bottom: 0; }
.poster.is-vasikin .poster-pair { flex: 0 0 auto; }
.poster.is-vasikin .poster-title,
.poster.is-vasikin .poster-line,
.poster.is-vasikin .poster-day,
.poster.is-vasikin .poster-rows.is-dense .poster-row,
.poster.is-vasikin.is-pair .poster-row {
  font-size: 26pt; font-weight: 700; line-height: 1.5;
}
 
.poster.is-vasikin .poster-title { margin-bottom: 0; }
.poster.is-vasikin .poster-line { margin: 0; }
 
.poster.is-vasikin .poster-day { margin: 0.13in 0 0; }
.poster.is-vasikin .poster-pair-col > .poster-rows { padding-top: 0; }
 
.poster.is-vasikin .poster-times { display: flex; flex-direction: column; width: 100%; }
.poster.is-vasikin:not(.is-both) .poster-times {
  display: table; width: auto; margin-inline: auto;
}
.poster.is-vasikin:not(.is-both) .poster-times .poster-row { display: table-row; }
.poster.is-vasikin:not(.is-both) .poster-row-label {
  display: table-cell; text-align: right; margin-inline-end: 0; padding-inline-end: 0.3in;
}
.poster.is-vasikin:not(.is-both) .poster-row-times { display: table-cell; text-align: left; }
 
.poster.is-vasikin:not(.is-pair) .poster-rows { padding-top: 0.27in; }
 
.poster.is-vasikin { --vs-gutter: 0.1in; }
.poster.is-vasikin .poster-pair-col + .poster-pair-col { border-inline-start: 0; }
.poster.is-vasikin .poster-pair-col + .poster-pair-col .poster-rows { position: relative; }
.poster.is-vasikin .poster-pair-col + .poster-pair-col .poster-rows::before {
  content: ""; position: absolute; inset-block: 0;
  inset-inline-start: calc(-1 * var(--vs-gutter));
  border-inline-start: 1px solid #000;
}
.poster.is-pair .poster-rows.is-dense .poster-day { margin-top: calc(var(--pair-lead) * 0.11in); }
 
.poster.is-pair .poster-rows > .poster-day:first-child { margin-top: 0; }
 
.poster.is-pair .poster-sets { justify-content: space-between; }
 
.poster.is-pair:has(.poster-sets) .poster-row-label { margin-inline-end: 0.08in; }
.poster.is-pair .poster-rows,
.poster.is-pair .poster-sets { padding: 0.13in 0 0; }
.poster.is-pair .poster-rows { display: flex; flex-direction: column; }

 
 
.poster.is-vasikin.is-both .poster-both-part { width: 100%; }
.poster.is-vasikin.is-both .poster-line { text-align: center; font-size: 21pt; }
.poster.is-vasikin.is-both .poster-title { text-align: center; font-size: 24pt; margin: 0 0 0.06in; }
 
.poster.is-vasikin.is-both .poster-occasion {
  font-size: 27pt; font-weight: 700; text-align: center; margin: 0.12in 0 0.06in;
  text-decoration: underline; text-underline-offset: 0.08em; text-decoration-skip-ink: none;
}
.poster.is-vasikin.is-both .poster-both-rule {
  border: 0; border-top: 1.5pt solid #000; width: 60%; margin: 0.14in auto 0;
}
 
.poster.is-vasikin.is-both .poster-where { font-size: 20pt; margin: 0.02in 0 0; }
 
.poster.is-vasikin.is-both .poster-where bdi { font-size: 0.85em; }
 
.poster.is-vasikin.is-both { --vs-gutter: 0.5in; }
.poster.is-vasikin.is-both .poster-pair-col { padding-inline: var(--vs-gutter); }
.poster.is-vasikin.is-both .poster-rows { padding: 0.04in 0 0; }
 
.poster.is-vasikin.is-both .poster-pair.is-solo { width: 50%; margin-inline: auto; }
.poster.is-vasikin.is-both .poster-day { font-size: 21pt; line-height: 1.2; margin: 0 0 0.12in; }
 
.poster.is-vasikin.is-both .poster-day,
.poster.is-vasikin.is-both .poster-title { text-decoration: none; }
 
.poster.is-vasikin.is-both .poster-rows.is-dense .poster-row {
  font-size: 23pt; line-height: 1.34;
  display: flex; justify-content: space-between; align-items: baseline;
}
.poster.is-vasikin.is-both .poster-rows.is-dense .poster-row .poster-row-label { text-align: right; }
.poster.is-vasikin.is-both .poster-rows.is-dense .poster-row .poster-row-times { text-align: left; }
 
.poster.is-chart-head .page-header {
  --sheet-font-size: 7.5pt;
  --sheet-header-scale: 0.75;
  width: 100%; margin-bottom: 0.16in;
}
 
.poster.is-chart-head .header-year,
.poster.is-chart-head .header-rabbi { flex: 1 1 0; }
 
.poster.is-chart-head .header-year { font-size: 16pt; font-weight: 700; text-align: left; }
 
.poster.is-chart-head .header-year { line-height: 0; }
 
.poster.is-pair.is-landscape .page-header {
  --sheet-font-size: 10pt;
  --sheet-header-scale: 1;
   
  margin-bottom: 0.03in;
}
 
.poster.is-pair.is-landscape .poster-legend {
  display: flex; justify-content: center; align-items: baseline;
  gap: 0.35in; flex-wrap: wrap;
   
  padding-top: 0.08in;
}

 
.poster-box {
  border: 1px solid #000; padding: 0.13in 0.2in 0.15in; margin: 0.1in auto 0;
  width: fit-content; max-width: 100%;
}
.poster-box-head {
  font-size: 11.5pt; font-weight: 700; text-decoration: underline;
  text-underline-offset: 0.06em; text-decoration-skip-ink: none; margin: 0 0 0.1in; text-align: center;
}
 
.poster-box-row { font-size: 10pt !important; line-height: 1.45 !important; margin-top: 0.05in; }
.poster-box-row .poster-row-times { white-space: normal; }
 
.poster-box-row .poster-t + .poster-t::before { content: ", "; }
 
.poster-run-more { display: block; }
.poster-row { margin: 0; font-size: 17pt; font-weight: 700; line-height: 1.3; text-align: center; }
 
.poster-row-label { margin-inline-end: 0.14in; }
 
 
.poster-row-note { margin-inline-start: 0.06in; white-space: nowrap; }
 
.poster-row-second { margin-inline-start: 0.24in; }
.poster-row u { text-underline-offset: 0.12em; }
 
.poster-at { font-size: 26pt; font-weight: 700; margin: 0.1in 0 0; }
 
.poster-mincha { font-size: 18pt; font-weight: 700; margin: 0.75in 0 0; }

 
.poster.is-sukkos { --sk-scale: 1; --pair-lead: 1.5; }
.poster.is-sukkos .poster-title { font-size: 24pt; margin-bottom: 0.1in; }
.poster.is-sukkos .poster-rows.is-dense .poster-row { font-size: calc(12pt * var(--sk-scale)); }
.poster.is-sukkos .poster-rows.is-dense .poster-day {
  font-size: calc(15pt * var(--sk-scale)); margin: 0 0 0.02in;
}
 
.poster.is-sukkos .poster-block { padding-top: calc(0.14in * var(--sk-scale)); }
.poster.is-sukkos .poster-rows > .poster-block:first-child { padding-top: 0; }
 
.poster.is-sukkos .poster-rows { justify-content: flex-start; }
 
.poster.is-sukkos .poster-pair-col:nth-child(1) .poster-row { padding-block: calc(var(--sk-gap-1, 0px) / 2); }
.poster.is-sukkos .poster-pair-col:nth-child(2) .poster-row { padding-block: calc(var(--sk-gap-2, 0px) / 2); }
 
.poster.is-sukkos .poster-pair,
.poster.is-sukkos .poster-pair-col { min-height: 0; }
 
.poster.is-sukkos .poster-row-second { margin-inline-start: 0.14in; }
 
.poster.is-sukkos .poster-row-label { white-space: nowrap; }
 
.poster-run .poster-t + .poster-t::before { content: "/"; padding: 0 0.16em; }
.poster-run .poster-t::after { content: "\200B"; }
 
.poster.is-sukkos .poster-row.is-sentence .poster-row-label { white-space: normal; }

 
.poster-shuava {
  display: flex; flex-direction: column; justify-content: center; flex: 1; width: 100%;
   
  text-align: center;
}
 
.poster-shuava-head {
  font-size: 26pt; font-weight: 700; margin: 0 0 0.14in; line-height: 1.3;
}
.poster-shuava-line { font-size: 24pt; font-weight: 700; margin: 0 0 0.14in; line-height: 1.3; }
.poster-shuava-rule { border: 0; border-top: 1px solid #000; width: 3.4in; margin: 0.6in auto; }
.poster-mincha u { text-underline-offset: 0.12em; }
 
 
.poster-legend {
  margin-top: auto;
   
  padding-top: 0.2in;
   
  font-size: 10.5pt; font-weight: 700; line-height: 1.5; text-align: center;
}

 
.poster.is-onepage {
  --op-scale: 1;
   
  --op-ink: #000;
   
  --op-band: #d3dae2;
  --op-rule: #16283f;
  --op-hair: #dfe3e9;
   
   
  padding: var(--op-pad, 0.35in);
  padding-bottom: max(0.15in, calc(var(--op-pad, 0.35in) - 0.1in));
}
 
.poster.is-onepage.is-mono {
  --op-band: #e2e2e2;
  --op-rule: #000;
  --op-hair: #dcdcdc;
}
 
.poster.is-onepage::before,
.poster.is-onepage::after { content: none; }
.onepage-title {
  width: 100%; margin: 0 0 0.1in;
  padding-bottom: 0.05in;
  border-bottom: 1.5pt solid var(--op-rule);
  text-align: center; color: var(--op-ink);
  font-size: calc(15pt * var(--op-scale)); font-weight: 700;
}
 
.onepage-cols {
  width: 100%; flex: 1; min-height: 0;
  display: flex; align-items: stretch; gap: 0.26in;
}
.onepage-col {
  flex: 1 1 0; min-width: 0;
   
  display: flex; flex-direction: column; justify-content: flex-start;
}
 
.onepage-col + .onepage-col {
  border-inline-start: 0.75pt solid var(--op-hair);
  padding-inline-start: 0.26in; margin-inline-start: 0;
}
.onepage-sec { margin: 0; }
.onepage-sec-head {
  margin: 0 0 0.01in; padding: 0.03in 0.06in;
  background: var(--op-band);
  border-top: 1pt solid var(--op-rule);
  color: var(--op-ink); text-align: right;
  font-size: calc(10.5pt * var(--op-scale)); font-weight: 700; line-height: 1.3;
}
 
.onepage-row {
  display: flex; justify-content: space-between; align-items: baseline;
   
  gap: 0.1in; padding: calc(0.014in + var(--op-gap, 0px) / 2) 0.06in;
  border-bottom: 0.5pt solid var(--op-hair);
  font-size: calc(9.5pt * var(--op-scale)); line-height: 1.2;
}
 
.onepage-row:has(.onepage-line + .onepage-line) {
  padding-block: calc(0.014in + 0.035in * var(--op-scale) + var(--op-gap, 0px) / 2);
}
.onepage-sec > .onepage-row:last-child:has(.onepage-line + .onepage-line) {
  padding-bottom: calc(0.014in + var(--op-gap, 0px) / 2);
}
 
 
.onepage-row.is-pairs { align-items: center; }
.onepage-col:nth-child(1) .onepage-row { --op-gap: var(--op-gap-1, 0px); }
.onepage-col:nth-child(2) .onepage-row { --op-gap: var(--op-gap-2, 0px); }
.onepage-sec > .onepage-row:last-child { border-bottom: 0; }
.onepage-label { text-align: right; }
 
.onepage-sub { margin-inline-start: 0.05in; }
 
 
.poster.is-onepage .poster-legend {
  width: 100%;
  margin-top: 0.1in;
  padding-top: 0.05in;
  border-top: 1.5pt solid var(--op-rule);
   
  font-size: max(7pt, calc(7.6pt * var(--op-scale)));
}
.poster.is-onepage.is-weeksheet .poster-legend { font-size: 10.5pt; }
.onepage-times { font-weight: 700; text-align: left; }
.onepage-line { display: block; }
 
.onepage-line + .onepage-line { margin-top: calc(0.04in * var(--op-scale)); }
 
.onepage-t + .onepage-t::before { content: "\00a0/\00a0"; }

 
 
.zman-pairs { display: inline-block; line-height: 1; }
.zman-pair + .zman-pair { margin-inline-start: 0.14in; }
 
.zman-pair { display: inline-block; text-align: center; line-height: 1; }
 
.zman-pair-name { display: block; font-size: 0.62em; font-weight: 400; line-height: 1; }
.zman-pair-time { display: block; }
 
 
.onepage-times:has(.zman-pairs) { line-height: 0; }
.onepage-times u { text-underline-offset: 0.12em; }
.onepage-note { white-space: nowrap; }

 
.poster-when {
  margin: 0 0 1.1rem; padding: 0.7rem 0.9rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  max-width: 36rem;
}
 
.poster-when > * { text-align: left; }
.poster-when-what { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.3rem; }
.poster-when-he { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.poster-when-en { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

.poster-bar {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
 
.poster-bar label {
  display: grid; gap: 0.35rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
}
 
.poster-bar select {
  appearance: none; -webkit-appearance: none;
  min-width: 12rem; max-width: 100%;
  padding: 0.55rem 0.9rem; padding-inline-end: 2.1rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.65rem auto;
  color: var(--ink); font-family: inherit; font-size: var(--fs-md); font-weight: 600;
  line-height: 1.4; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.poster-bar select:hover { border-color: var(--ui-accent); background-color: var(--ui-accent-soft); }
.poster-bar select:focus-visible {
  outline: none; border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 22%, transparent);
}
 
.poster-bar select optgroup {
  font-weight: 700; font-style: normal; color: var(--muted);
}
.poster-bar select option { font-weight: 500; color: var(--ink); }
 
.poster-year {
  display: grid; gap: 0.35rem; justify-items: start;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.poster-year-step {
  display: flex; align-items: stretch;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.poster-year-step button {
   
  padding: 0.55rem 0.9rem; border: 0; border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: var(--fs-md); font-weight: 700; line-height: 1.4;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.poster-year-step button:hover:not(:disabled) { background: var(--ui-accent-soft); color: var(--ui-accent); }
.poster-year-step button:focus-visible {
  outline: 2px solid var(--ui-accent); outline-offset: -2px;
}
 
.poster-year-step button:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.poster-year-now {
  display: flex; align-items: center; justify-content: center;
  min-width: 11.5rem; padding: 0.55rem 0.4rem;
  border-inline: 1px solid var(--border);
  color: var(--ink); font-size: var(--fs-md); font-weight: 600; line-height: 1.4;
  text-align: center; white-space: nowrap;
}
 
.poster-bar .poster-year-step select {
  min-width: 11.5rem;
  border: 0; border-inline: 1px solid var(--border); border-radius: 0;
  background-color: transparent;
  padding-block: 0.55rem;
}
.poster-bar .poster-year-step select:hover { background-color: var(--ui-accent-soft); }
 
.poster-bar .poster-year-step select:focus-visible {
  outline: 2px solid var(--ui-accent); outline-offset: -2px;
  border-color: var(--border); box-shadow: none;
}
 
.poster-year-step .poster-year-reset {
  border-inline-start: 1px solid var(--border);
  padding-inline: 0.75rem;
  font-size: var(--fs-sm); color: var(--muted); white-space: nowrap;
}
.poster-year-step .poster-year-reset:hover:not(:disabled) { color: var(--ui-accent); }

 
.poster-bar-switch {
  display: grid; gap: 0.35rem; justify-items: start;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.poster-bar-switch .week-switch-label { text-align: start; }
 
.poster-bar-switch .week-switch-side { min-width: 8rem; white-space: nowrap; }
 
.poster-bar-switch .week-switch.is-three .week-switch-side { min-width: 6.5rem; }

 
.settings-switch {
  display: grid; gap: 0.35rem; justify-items: start;
  margin-bottom: 0.5rem;
  font-size: var(--fs-md); font-weight: 500;
}
.settings-switch .week-switch-label { text-align: start; }
.settings-switch .week-switch-side {
  display: inline-block; margin-bottom: 0;
  font-size: var(--fs-sm); font-weight: 600;
}
 
@media (max-width: 32rem) {
  .poster-bar { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
  .poster-bar select { width: 100%; }
  .poster-bar .print-btn { justify-self: start; }
   
  .poster-bar-switch { justify-items: stretch; }
  .poster-bar-switch .week-switch { width: 100%; }
   
  .poster-year { justify-items: stretch; }
  .poster-year-step { width: 100%; }
  .poster-year-now { flex: 1; min-width: 0; }
}

 
.own-editor .own-top { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.6rem 0 1rem; }
.own-editor .own-top label { display: grid; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.own-editor .own-top input { min-width: 14rem; }
.own-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem 0.8rem; margin: 0 0 0.9rem; }
.own-block > legend { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); padding: 0 0.4rem; }
.own-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.own-block-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem; margin-top: 0.5rem; }
 
.own-date, .own-word { display: inline-flex; gap: 0.35rem; align-items: center; }
.own-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0; border-top: 1px solid var(--border);
}
.own-rows .own-row:first-child { border-top: 0; }
.own-rule { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.own-editor input, .own-editor select { font: inherit; padding: 0.3rem 0.45rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; }
.own-editor .own-offset { width: 4.5rem; }
.own-editor .own-text { flex: 1 1 12rem; min-width: 9rem; }
.own-editor .own-when { color: var(--muted); }
.own-del-row {
  margin-inline-start: auto; border: 1px solid var(--border); background: none;
  border-radius: var(--radius-sm); cursor: pointer; padding: 0.15rem 0.5rem; color: var(--muted);
}
.own-del-row:hover, .own-del-block:hover { color: #b42318; border-color: #b42318; }
.own-add-row, .own-del-block {
  border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent-dark);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0.3rem 0.7rem; font: inherit;
}
.poster-own-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem; margin: 1.2rem 0 0.6rem; }
.poster-own-bar .hint { margin: 0; max-width: 60ch; }
#poster-own-new {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ui-accent-dark);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0.4rem 0.8rem; font: inherit; font-weight: 600;
}
 
@media (max-width: 32rem) {
  .own-row, .own-rule, .own-word, .own-date { display: grid; grid-template-columns: 1fr; gap: 0.4rem; width: 100%; }
  .own-editor .own-text, .own-editor .own-offset { width: 100%; }
  .own-del-row { margin-inline-start: 0; justify-self: start; }
}

 
body.is-locked { overflow: hidden; }
.lock-screen {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(120% 90% at 50% 0%, var(--nav-bg-2) 0%, var(--nav-bg) 55%, #080f1e 100%);
  animation: lock-in 0.35s ease both;
}
@keyframes lock-in { from { opacity: 0; } to { opacity: 1; } }
.lock-panel {
  display: grid; justify-items: center; gap: 1.5rem;
  padding: 2.4rem 2rem 2rem; width: min(19.5rem, 100%);
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
   
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.lock-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: rgba(255, 255, 255, 0.62); }
.lock-mark svg { width: 100%; height: 100%; }
 
.lock-dots { display: flex; gap: 0.95rem; }
.lock-dot {
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.lock-dot.is-on { background: #fff; border-color: #fff; transform: scale(1.12); }
.lock-keys { display: grid; grid-template-columns: repeat(3, 4rem); gap: 0.85rem; justify-content: center; }
.lock-key, .lock-key-gap { width: 4rem; height: 4rem; }
.lock-key {
  display: grid; place-items: center;
  font: inherit; font-size: 1.45rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, transform 0.12s ease;
}
.lock-key:hover { background: rgba(255, 255, 255, 0.13); }
 
.lock-key:active { background: rgba(255, 255, 255, 0.22); transform: scale(0.94); }
.lock-key:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.lock-key.is-del { background: none; border-color: transparent; color: rgba(255, 255, 255, 0.55); }
.lock-key.is-del svg { width: 1.5rem; height: 1.5rem; }
.lock-key.is-del:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
 
.lock-panel.is-wrong { animation: lock-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes lock-shake {
  10%, 90% { transform: translateX(-3px); }
  20%, 80% { transform: translateX(6px); }
  30%, 50%, 70% { transform: translateX(-10px); }
  40%, 60% { transform: translateX(10px); }
}
 
.lock-panel.is-open { transform: translateY(-10px) scale(0.97); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .lock-screen, .lock-panel.is-wrong, .lock-panel.is-open { animation: none; transition: none; }
  .lock-panel.is-open { opacity: 0; }
}
 
@media (max-height: 40rem), (max-width: 22rem) {
  .lock-panel { gap: 1.15rem; padding: 1.8rem 1.5rem 1.5rem; }
  .lock-keys { grid-template-columns: repeat(3, 3.5rem); gap: 0.7rem; }
  .lock-key, .lock-key-gap { width: 3.5rem; height: 3.5rem; }
  .lock-key { font-size: 1.3rem; }
}

 
.traffic-ranges { display: flex; gap: 0.4rem; margin: 0.2rem 0 1rem; }
.traffic-range {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.35rem 0.9rem; cursor: pointer;
  font-family: inherit; font-size: var(--fs-sm);
}
.traffic-range:hover { background: var(--accent-soft); }
.traffic-range.is-on { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }
 
.traffic-totals { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.2rem; }
.traffic-total { display: flex; flex-direction: column; }
.traffic-total-n { font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.traffic-total-w { font-size: var(--fs-sm); color: var(--muted); }
 
.traffic-chart {
  display: flex; align-items: flex-end; gap: 3px; height: 130px;
  padding-bottom: 1.3rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
 
.traffic-bar {
  flex: 1 1 0; position: relative; height: 100%; display: flex; align-items: flex-end;
  min-width: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
 
.traffic-chart.is-pickable .traffic-bar { cursor: pointer; border-radius: 3px; }
.traffic-chart.is-pickable .traffic-bar:hover .traffic-bar-fill,
.traffic-chart.is-pickable .traffic-bar:focus-visible .traffic-bar-fill {
  filter: brightness(0.86);
}
.traffic-chart.is-pickable .traffic-bar:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
 
.traffic-utc-note { margin: 0.35rem 0 1.6rem; }

 
.traffic-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.traffic-pick-label { color: var(--muted); font-size: var(--fs-sm); }
.traffic-date {
  font: inherit; font-size: var(--fs-sm); padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
 
.traffic-oneday {
  margin: 0 0 1.2rem; font-size: var(--fs-lg); font-weight: 600; color: var(--ink);
}
 
.traffic-bar-fill {
  width: 100%; background: var(--ui-accent); border-radius: 2px 2px 0 0; min-height: 2px;
}
 
.traffic-bar-day {
  position: absolute; bottom: -1.15rem; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; color: var(--muted); white-space: nowrap;
}
.traffic-chart:has(.traffic-bar:nth-child(9)) .traffic-bar-day { display: none; }
 
.traffic-hours .traffic-bar-day { display: block !important; }
.traffic-heading { font-size: var(--fs-lg); margin: 0 0 0.5rem; }
 
.traffic-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.traffic-table th, .traffic-table td {
  border: 0; border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.5rem; text-align: left; background-color: transparent; vertical-align: top;
}
.traffic-table th { color: var(--muted); font-weight: 500; }
.traffic-table tbody tr:last-child td { border-bottom: 0; }
 
.traffic-table tbody tr:nth-child(even) td { background-color: transparent; }
.traffic-figure { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
 
.traffic-page { display: flex; flex-direction: column; }
.traffic-path { font-size: 0.7rem; color: var(--muted); }
 
.traffic-shares .traffic-page {
   
  background-image: linear-gradient(to right,
    color-mix(in srgb, var(--ui-accent) 16%, transparent) 0 var(--share, 0%),
    transparent var(--share, 0%));
  background-repeat: no-repeat;
  border-radius: 2px;
  padding-inline: 0.4rem;
}
.traffic-pct { color: var(--muted); }
 
.traffic-panel-error { color: var(--danger); margin-top: 0; }
.traffic-foot { margin-top: 1.1rem; }
.traffic-setup ol { margin: 0.6rem 0 0.8rem 1.1rem; padding: 0; }
.traffic-setup li { margin-bottom: 0.4rem; }
.traffic-setup code, .traffic-error code { background: var(--accent-soft); border-radius: 3px; padding: 0.05rem 0.3rem; }
.traffic-error h3 { color: var(--danger); margin-top: 0; }

 
.tx-page { max-width: 44rem; margin: 0 auto; padding: 1.6rem 1rem 3rem; }
.tx-title { font-size: 1.6rem; margin: 0 0 0.3rem; }
.tx-hint { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 1.4rem; }
.tx-card {
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  margin-bottom: 1rem; overflow: hidden;
}
.tx-head {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
}
.tx-name { font-size: var(--fs-lg); margin: 0; }
 
.tx-date { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
 
.tx-when { color: var(--muted); font-size: var(--fs-sm); margin-right: auto; }
 
.tx-body {
  margin: 0; padding: 0.9rem; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.5;
}
 
.tx-body {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0; padding: 0.9rem; border: 0; background: none; color: inherit;
  font: inherit; line-height: 1.5; resize: none; overflow: hidden;
}
.tx-body:focus { outline: 2px solid var(--ui-accent); outline-offset: -2px; border-radius: 0 0 8px 8px; }
 
.tx-all {
  margin: 0 0 0.8rem; padding: 0.5rem 0.7rem; border-radius: 6px;
  background: color-mix(in srgb, var(--ui-accent) 10%, transparent);
  color: var(--muted); font-size: var(--fs-sm);
}
 
.tx-switches { margin: 0 0 1.3rem; }
.tx-switches-head {
  margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.02em;
}
.tx-kinds { justify-content: start; justify-items: start; margin-top: 0.45rem; }
.tx-kinds .week-switch-label { text-align: start; }

 
.copy-fallback { margin: 0.5rem 0; }
.copy-fallback .hint { margin: 0 0 0.3rem; }
.copy-fallback-text {
  width: 100%; box-sizing: border-box; font: inherit; line-height: 1.4;
  padding: 0.5rem; border: 1px solid var(--line, #ccd3da); border-radius: 6px;
  background: #fff; color: inherit; resize: vertical;
}

 
.blocked { max-width: 34rem; margin: 0 auto; text-align: left; }
.blocked-lead { font-weight: 600; margin: 0 0 0.6rem; }
.blocked .hint { margin: 0 0 0.5rem; }
.blocked-text {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 0.95rem; line-height: 1.45;
  padding: 0.6rem; border: 1px solid rgba(38, 50, 62, 0.22); border-radius: 8px;
  background: #fff; color: inherit; resize: vertical;
   
  white-space: pre-wrap;
}
.blocked-copy {
  margin-top: 0.6rem; padding: 0.6rem 1.1rem; font: inherit; font-weight: 600;
  border: 1px solid rgba(38, 50, 62, 0.22); border-radius: 8px; background: #fff;
  color: inherit; cursor: pointer;
}
.blocked-copy:hover { background: rgba(38, 50, 62, 0.05); }
