:root {
  --background: #fff7fb;
  --surface: #fffdf8;
  --surface-soft: #fff6f1;
  --surface-blue: #efe5ff;
  --ink: #372733;
  --muted: #78626f;
  --subtle: #927784;
  --primary: #5b40c7;
  --primary-dark: #432b9e;
  --primary-soft: #ece3ff;
  --teal: #187a5a;
  --teal-soft: #c9f6dc;
  --violet: #7046c7;
  --violet-soft: #eee1ff;
  --amber: #9a6805;
  --amber-soft: #ffefb7;
  --peach: #b75a33;
  --peach-soft: #ffdfcf;
  --danger: #b52f4c;
  --danger-soft: #ffe3e8;
  --accent-yellow: #ffd45f;
  --accent-green: #4edfa6;
  --border: #e6d9e0;
  --border-strong: #372733;
  --shadow-sm: 2px 2px 0 rgba(55, 39, 51, .08);
  --shadow-md: 3px 3px 0 rgba(55, 39, 51, .1);
  --shadow-lg: 5px 6px 0 rgba(55, 39, 51, .1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background-image: radial-gradient(rgba(55, 39, 51, .11) .75px, transparent .75px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

a { color: inherit; }

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

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, .88);
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand { flex: 0 0 auto; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(29, 78, 216, .16);
}

.brand-name {
  display: grid;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.brand-name small {
  color: var(--subtle);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.primary-nav a:hover, .primary-nav a:focus-visible {
  color: var(--primary);
  background: var(--surface-blue);
  outline: none;
}

.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(29, 78, 216, .16);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.header-cta:hover, .header-cta:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(29, 78, 216, .22);
  transform: translateY(-1px);
  outline: none;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-switcher summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.language-switcher summary::-webkit-details-marker { display: none; }

.language-switcher summary::after {
  content: "⌄";
  color: var(--subtle);
  font-size: 14px;
}

.language-switcher[open] summary,
.language-switcher summary:hover,
.language-switcher summary:focus-visible {
  color: var(--primary);
  border-color: #bfdbfe;
  outline: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 150px;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.language-menu-label,
.language-current,
.language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu-label {
  padding-bottom: 5px;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-current {
  color: var(--primary-dark);
  background: var(--surface-blue);
}

.language-menu a:hover,
.language-menu a:focus-visible {
  color: var(--primary);
  background: var(--surface-blue);
  outline: none;
}

.hero-section {
  display: block;
  max-width: 980px;
  padding-top: clamp(62px, 9vw, 104px);
  padding-bottom: clamp(56px, 8vw, 94px);
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow, .section-label, .panel-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--surface-blue);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

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

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -.045em;
}

h1 {
  max-width: 900px;
  margin: 20px auto;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: .98;
}

.hero-lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-bottom: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover, .button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(29, 78, 216, .18);
}

.button-primary:hover, .button-primary:focus-visible { background: var(--primary-dark); box-shadow: 0 14px 24px rgba(29, 78, 216, .23); }

.button-ghost {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--surface);
}

.button-ghost:hover, .button-ghost:focus-visible { border-color: #93c5fd; background: var(--surface-blue); }

.button-muted {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface-soft);
}

.button-danger {
  color: var(--danger);
  border-color: #fecaca;
  background: var(--danger-soft);
}

.button-danger:hover, .button-danger:focus-visible {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
}

.button-full { width: 100%; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.hero-proof > span { display: inline-flex; align-items: center; gap: 7px; }

.proof-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 800;
}

.tool-section { scroll-margin-top: 96px; padding-bottom: 88px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.section-heading h2 {
  max-width: 740px;
  margin: 9px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.section-heading p { max-width: 530px; margin: 0; color: var(--muted); }

.saved-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #115e59;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

.saved-icon { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: var(--teal-soft); font-size: 14px; }

.schedule-workbench {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.summary-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
.summary-header { grid-column: 1 / -1; }
.summary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.conflict-notice, .empty-notice { margin-top: 15px; }
.export-panel { border-top: 0; border-left: 1px solid var(--border); }
.clear-week { grid-column: 1 / -1; }

.panel-surface {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
}

.builder-panel, .summary-panel { overflow: hidden; }

.panel-header, .planner-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3, .planner-toolbar h3 {
  margin: 5px 0 0;
  font-size: 19px;
  line-height: 1.1;
}

.step-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
}

.block-form { display: grid; gap: 13px; padding: 17px 18px 18px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-group { display: grid; gap: 6px; }

.field-group label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-group label span { color: var(--subtle); font-size: 11px; font-weight: 500; }

.field-group input, .field-group select, .field-group textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field-group textarea { min-height: 66px; resize: vertical; }

.field-group input::placeholder, .field-group textarea::placeholder { color: #94a3b8; }

.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .18);
}

.form-error {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.form-actions { display: grid; gap: 8px; }
.panel-divider { height: 1px; margin: 0 18px; background: var(--border); }
.quick-start { padding: 16px 18px 18px; }
.quick-start-title, .export-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.shortcut-key { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 6px; color: var(--subtle); background: var(--surface-soft); font-size: 11px; }
.quick-template-list { display: grid; gap: 4px; margin-top: 8px; }

.quick-template {
  min-height: 40px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.quick-template:hover, .quick-template:focus-visible { color: var(--primary); outline: none; }
.template-swatch { width: 10px; height: 10px; border-radius: 3px; }
.template-swatch.blue { background: #60a5fa; }
.template-swatch.violet { background: #8b5cf6; }
.template-swatch.peach { background: #fb923c; }

.planner-panel { overflow: hidden; }
.planner-toolbar { align-items: center; }
.planner-actions { display: flex; align-items: center; gap: 7px; }
.week-picker { display: grid; gap: 3px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.week-picker input { min-height: 34px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--primary); background: #fff; cursor: pointer; font-size: 18px; }
.icon-button:hover, .icon-button:focus-visible { border-color: #93c5fd; background: var(--surface-blue); outline: none; }

.mode-tabs {
  display: flex;
  gap: 5px;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
}

.mode-tab {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--subtle);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mode-tab:hover, .mode-tab:focus-visible { color: var(--primary); outline: none; }
.mode-tab.is-active { border-bottom-color: var(--primary); color: var(--primary); }
.mode-hint { min-height: 43px; margin: 0; padding: 11px 18px 9px; color: var(--subtle); font-size: 12px; line-height: 1.5; }
.day-tabs { display: none; }
.mobile-schedule { display: none; }

.week-grid-shell { overflow: hidden; padding: 0 12px 12px; }
.week-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
.time-column, .day-column { min-width: 0; }
.time-head, .day-head { height: 40px; border-bottom: 1px solid var(--border); }
.time-column > span { height: 44px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 7px 7px 0 0; color: #94a3b8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.day-head { display: grid; place-content: center; gap: 1px; border-left: 1px solid var(--border); text-align: center; }
.day-head b { color: var(--ink); font-size: 11px; letter-spacing: .08em; line-height: 1; }
.day-head span { color: var(--subtle); font-size: 10px; }
.day-timeline { position: relative; height: 440px; border-left: 1px solid var(--border); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--border) 44px); }
.hour-lines { position: absolute; inset: 0; pointer-events: none; }
.hour-lines i { display: block; height: 44px; border-bottom: 1px solid var(--border); opacity: .58; }
.event-layer { position: absolute; inset: 0; }

.schedule-event {
  position: absolute;
  top: var(--event-top);
  left: calc(var(--event-left, 0%) + 5px);
  width: calc(var(--event-width, 100%) - 10px);
  right: auto;
  height: var(--event-height);
  min-height: 34px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow: visible;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: grab;
  user-select: none;
  transition: box-shadow .16s ease, transform .16s ease, outline .16s ease;
}

.schedule-event:hover { z-index: 2; transform: translateY(-1px); box-shadow: 0 6px 13px rgba(15, 23, 42, .12); }
.schedule-event:active { cursor: grabbing; }
.schedule-event:focus-visible, .schedule-event.is-selected { z-index: 3; outline: 3px solid rgba(29, 78, 216, .28); outline-offset: 1px; }
.schedule-event.event-short { min-height: 44px; }
.schedule-event strong, .schedule-event span { min-width: 0; display: block; overflow-wrap: break-word; word-break: normal; white-space: normal; }
.schedule-event strong { font-size: 10px; font-weight: 800; line-height: 1.15; }
.schedule-event span { color: inherit; font-size: 9px; font-weight: 700; line-height: 1.15; opacity: .84; }
.event-blue { border-color: #93c5fd; color: #1e40af; background: #dbeafe; }
.event-teal { border-color: #5eead4; color: #115e59; background: #ccfbf1; }
.event-violet { border-color: #c4b5fd; color: #5b21b6; background: #ede9fe; }
.event-yellow { border-color: #fcd34d; color: #92400e; background: #fef3c7; }
.event-peach { border-color: #fdba74; color: #9a3412; background: #ffedd5; }
.schedule-event.event-conflict { min-height: 76px; border: 2px solid var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65); }
.schedule-event.event-conflict::after { content: "!"; position: absolute; top: 3px; right: 4px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--danger); font-size: 9px; font-weight: 900; }
.day-column.drop-target .day-timeline { background-color: var(--surface-blue); box-shadow: inset 0 0 0 2px rgba(29, 78, 216, .28); }
.planner-tip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; margin: 0 16px 15px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--subtle); background: var(--surface-soft); font-size: 11px; font-weight: 600; line-height: 1.45; }
.planner-tip > span:last-child { min-width: 0; }
.tip-icon { width: 21px; height: 21px; display: inline-grid; place-items: center; flex: 0 0 21px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); font-size: 15px; }

.summary-header { align-items: center; }
.summary-live { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.summary-live span { width: 6px; height: 6px; border-radius: 50%; background: #14b8a6; }
.summary-metrics { display: grid; gap: 8px; padding: 15px 16px 8px; }
.metric-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 9px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.metric-card > span, .metric-card small { color: var(--subtle); font-size: 10px; font-weight: 800; }
.metric-card strong { grid-row: span 2; color: var(--ink); font-family: var(--font-display); font-size: 21px; line-height: 1; }
.metric-card small { font-weight: 600; }
.metric-primary { border-color: #bfdbfe; background: var(--surface-blue); }
.metric-primary strong { color: var(--primary); }
.conflict-notice, .empty-notice { display: flex; gap: 9px; margin: 8px 16px 14px; padding: 11px; border: 1px solid #fecaca; border-radius: 10px; background: #fff7ed; }
.conflict-notice strong, .empty-notice strong { display: block; color: #9a3412; font-size: 11px; line-height: 1.25; }
.conflict-notice p, .empty-notice p { margin: 3px 0 0; color: #9a3412; font-size: 10px; line-height: 1.45; }
.notice-icon, .empty-icon { width: 21px; height: 21px; display: inline-grid; place-items: center; flex: 0 0 21px; border-radius: 50%; color: #fff; background: var(--danger); font-size: 12px; font-weight: 900; }
.empty-notice { border-color: #a7f3d0; background: #ecfdf5; }
.empty-notice strong, .empty-notice p { color: #115e59; }
.empty-icon { color: #115e59; background: var(--teal-soft); }
.export-panel { padding: 15px 16px 12px; border-top: 1px solid var(--border); }
.export-hint { color: var(--subtle); font-size: 10px; font-weight: 600; }
.export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.export-button { min-height: 55px; display: grid; place-items: center; gap: 4px; padding: 6px 3px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; line-height: 1.1; cursor: pointer; text-align: center; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.export-button:hover, .export-button:focus-visible { border-color: #93c5fd; color: var(--primary); background: var(--surface-blue); transform: translateY(-1px); outline: none; }
.export-symbol { min-height: 19px; display: inline-flex; align-items: center; color: var(--primary); font-family: var(--font-display); font-size: 15px; }
.clear-week { width: calc(100% - 32px); min-height: 40px; margin: 0 16px 16px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--subtle); background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.clear-week:hover, .clear-week:focus-visible { border-color: #fca5a5; color: var(--danger); background: var(--danger-soft); outline: none; }
.tool-status { min-height: 24px; margin: 12px 0 0; color: var(--subtle); font-size: 12px; font-weight: 600; text-align: center; }
.tool-status.is-error { color: var(--danger); }

.content-section { scroll-margin-top: 96px; padding: 76px 0 78px; }
.soft-section { max-width: none; background: rgba(239, 246, 255, .62); border-top: 1px solid rgba(191, 219, 254, .58); border-bottom: 1px solid rgba(191, 219, 254, .58); }
.soft-section > .wrap { width: min(1240px, calc(100% - 48px)); }
.centered-heading { align-items: center; }
.centered-heading > div { flex: 0 1 560px; }
.centered-heading > p { flex: 0 1 490px; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.template-card { min-height: 244px; display: grid; align-content: space-between; gap: 22px; padding: 20px; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.template-card h3, .feature-card h3, .step-grid h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.12; }
.template-card p, .feature-card p, .step-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.template-card .card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.template-blue { border-top-color: var(--primary); }
.template-violet { border-top-color: var(--violet); }
.template-violet .card-icon { color: var(--violet); background: var(--violet-soft); }
.template-teal { border-top-color: var(--teal); }
.template-teal .card-icon { color: var(--teal); background: var(--teal-soft); }
.template-peach { border-top-color: var(--peach); }
.template-peach .card-icon { color: var(--peach); background: var(--peach-soft); }
.text-button { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.text-button:hover, .text-button:focus-visible { color: var(--primary-dark); outline: none; }

.step-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step-grid li { position: relative; padding-top: 9px; }
.step-grid li:not(:last-child)::after { content: ""; position: absolute; top: 25px; right: -18px; width: 18px; border-top: 1px dashed #93c5fd; }
.step-number, .feature-number { display: inline-flex; margin-bottom: 20px; color: var(--primary); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.step-number { align-items: center; gap: 7px; }
.step-number::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.feature-card { min-height: 235px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-number { width: 35px; height: 35px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.two-column-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.text-panel, .checklist-panel { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.text-panel h2 { margin: 10px 0 14px; font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1.08; }
.text-panel p { margin-bottom: 14px; color: var(--muted); line-height: 1.78; }
.text-panel p:last-child { margin-bottom: 0; }
.note-panel { border-color: #a7f3d0; background: linear-gradient(135deg, #f0fdfa 0%, #fff 70%); }
.note-panel .section-label { color: var(--teal); }
.checklist-panel { display: flex; flex-direction: column; justify-content: center; background: var(--ink); }
.checklist-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.checklist-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--teal); font-weight: 900; }
.checklist-heading strong, .checklist-heading span { display: block; }
.checklist-heading strong { color: #fff; font-family: var(--font-display); font-size: 19px; }
.checklist-heading span { color: #cbd5e1; font-size: 12px; }
.checklist-panel ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.checklist-panel li { display: flex; gap: 10px; color: #e2e8f0; font-size: 14px; line-height: 1.5; }
.checklist-panel li::before { content: "✓"; color: #5eead4; font-weight: 900; }
.last-content { padding-top: 0; }
.faq-section { max-width: none; background: #eef4ff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.faq-wrap { width: min(900px, calc(100% - 48px)); }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; color: var(--ink); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--primary); font-size: 21px; font-weight: 400; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.closing-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 72px; padding-bottom: 82px; }
.closing-section h2 { margin: 9px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; }
.closing-section p { max-width: 620px; margin: 0; color: var(--muted); }

.site-footer { margin-top: 0; padding: 48px 0 25px; border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand-block { max-width: 460px; }
.footer-logo { margin-bottom: 12px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.footer-logo img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand-block p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-email { color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-email:hover, .footer-email:focus-visible { text-decoration: underline; outline: none; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 35px; }
.footer-links > div { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 4px; color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--primary); outline: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; max-width: min(440px, calc(100% - 32px)); padding: 11px 15px; border: 1px solid #bfdbfe; border-radius: 10px; color: #1e3a8a; background: #eff6ff; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 35; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--primary); background: #fff; box-shadow: var(--shadow-md); font-size: 19px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { border-color: #93c5fd; background: var(--surface-blue); outline: none; }

.legal-page-body { background: var(--background); }
.legal-page { padding: 74px 0 90px; }
.legal-hero { max-width: 850px; margin: 0 auto 30px; text-align: center; }
.legal-hero h1 { max-width: none; margin: 14px 0 14px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.legal-hero p { margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.legal-panel { max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-md); }
.legal-panel .legal-meta { color: var(--primary); font-size: 13px; font-weight: 800; }
.legal-panel h2 { margin: 28px 0 9px; font-size: 1.5rem; line-height: 1.2; }
.legal-panel h2:first-of-type { margin-top: 24px; }
.legal-panel p, .legal-panel li { color: var(--muted); line-height: 1.8; }
.legal-panel ul { margin: 0 0 14px; padding-left: 20px; }
.legal-panel a { color: var(--primary); font-weight: 700; }

@media (max-width: 1120px) {
  .schedule-workbench { grid-template-columns: 270px minmax(0, 1fr); }
  .summary-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
  .summary-header { grid-column: 1 / -1; }
  .summary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .conflict-notice, .empty-notice { margin-top: 15px; }
  .export-panel { border-top: 0; border-left: 1px solid var(--border); }
  .clear-week { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .wrap, .soft-section > .wrap { width: min(100% - 32px, 720px); }
  .topbar { flex-wrap: wrap; gap: 10px 18px; padding: 12px 0; }
  .primary-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .primary-nav a { min-height: 38px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .header-cta { margin-left: auto; }
  .hero-section { max-width: 720px; padding-top: 58px; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .step-grid li:not(:last-child)::after { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
}

@media (max-width: 720px) {
  .wrap, .soft-section > .wrap, .faq-wrap { width: calc(100% - 28px); }
  .site-header { position: relative; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav language";
    align-items: center;
    gap: 8px 10px;
    padding: 10px 0 12px;
  }
  .brand { grid-area: brand; min-width: 0; }
  .header-cta { grid-area: cta; margin-left: 0; }
  .primary-nav {
    grid-area: nav;
    order: initial;
    width: auto;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
    gap: 1px;
  }
  .language-switcher {
    grid-area: language;
    justify-self: end;
  }
  .brand-name small { display: none; }
  .primary-nav { gap: 2px; }
  .primary-nav a:nth-child(3) { display: none; }
  .primary-nav a { min-height: 40px; padding: 6px 8px; font-size: 12px; }
  .header-cta { padding-inline: 12px; font-size: 12px; }
  .language-switcher summary { padding-inline: 8px; font-size: 12px; }
  .language-switcher summary > span:first-child { display: none; }
  .language-menu { right: auto; left: 0; }
  h1 {
    max-width: 100%;
    margin: 16px 0 18px;
    font-size: clamp(2.75rem, 13.2vw, 3.45rem);
    line-height: .98;
    text-wrap: balance;
  }
  .hero-section { padding-top: 48px; padding-bottom: 58px; }
  .section-heading, .closing-section { align-items: flex-start; flex-direction: column; }
  .saved-note { width: 100%; }
  .schedule-workbench { grid-template-columns: 1fr; }
  .summary-panel { grid-column: auto; display: block; }
  .summary-header { display: flex; }
  .summary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .export-panel { border-top: 1px solid var(--border); border-left: 0; }
  .builder-panel { order: 1; }
  .planner-panel { order: 2; }
  .summary-panel { order: 3; }
  .week-grid-shell { display: none; }
  .day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 0 12px 10px; }
  .day-tab { min-height: 42px; padding: 5px 2px; border: 1px solid var(--border); border-radius: 8px; color: var(--subtle); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
  .day-tab span { display: block; font-size: 9px; font-weight: 600; }
  .day-tab.is-active { border-color: #93c5fd; color: var(--primary); background: var(--surface-blue); }
  .mobile-schedule { display: grid; gap: 7px; padding: 0 12px 14px; }
  .mobile-day-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 3px 2px 6px; }
  .mobile-day-heading strong { font-family: var(--font-display); font-size: 18px; }
  .mobile-day-heading span { color: var(--subtle); font-size: 11px; font-weight: 700; }
  .mobile-event { display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 10px; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
  .mobile-event:hover, .mobile-event:focus-visible { border-color: #93c5fd; outline: none; }
  .mobile-event time { color: var(--subtle); font-size: 11px; font-weight: 800; }
  .mobile-event > span:nth-child(2) { min-width: 0; }
  .mobile-event strong, .mobile-event small { display: block; overflow-wrap: anywhere; white-space: normal; }
  .mobile-event strong { font-size: 13px; }
  .mobile-event small { color: var(--subtle); font-size: 10px; }
  .mobile-event.blue { border-left-color: #3b82f6; }
  .mobile-event.teal { border-left-color: #0f766e; }
  .mobile-event.violet { border-left-color: #7c3aed; }
  .mobile-event.yellow { border-left-color: #d97706; }
  .mobile-event.peach { border-left-color: #ea580c; }
  .mobile-event.conflict { border-color: #fecaca; border-left-color: var(--danger); background: #fff7ed; }
  .mobile-empty { padding: 25px 12px; border: 1px dashed var(--border-strong); border-radius: 9px; color: var(--subtle); font-size: 13px; text-align: center; }
  .planner-tip { margin-inline: 12px; }
  .template-grid, .two-column-section { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section { padding: 57px 0 60px; }
  .closing-section { padding-top: 56px; padding-bottom: 65px; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .footer-links { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { gap: 6px; }
}

@media (max-width: 460px) {
  .topbar { align-items: center; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .primary-nav { padding-bottom: 2px; }
  .primary-nav a { font-size: 12px; }
  .header-cta { min-height: 38px; }
  .language-switcher summary { min-height: 38px; }
  .hero-proof { display: grid; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .summary-metrics { gap: 5px; padding-inline: 10px; }
  .metric-card { display: block; padding: 9px 7px; text-align: center; }
  .metric-card strong { display: block; margin: 5px 0 2px; font-size: 18px; }
  .metric-card > span, .metric-card small { display: block; font-size: 9px; }
  .conflict-notice, .empty-notice { margin-inline: 10px; }
  .export-panel { padding-inline: 10px; }
  .clear-week { width: calc(100% - 20px); margin-inline: 10px; }
  .step-grid { grid-template-columns: 1fr; }
  .text-panel, .checklist-panel { padding: 22px; }
  .faq-wrap { width: calc(100% - 20px); }
  .faq-list summary { padding-inline: 13px; font-size: 14px; }
  .faq-list details p { padding-inline: 13px; }
}

/* CPM Calculator-inspired visual theme: warm surfaces, dark outlines, and offset shadows. */
.site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.topbar {
  border: 1px solid rgba(55, 39, 51, .08);
  border-radius: 16px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 7px 0 rgba(55, 39, 51, .04);
}

.brand-mark {
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .12);
}

.primary-nav {
  border: 1px solid rgba(55, 39, 51, .1);
  border-radius: 999px;
  background: rgba(255, 253, 248, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 8px 22px rgba(55, 39, 51, .04);
}

.primary-nav a {
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background: var(--primary-soft);
}

.header-cta {
  border-color: var(--ink);
  border-radius: 13px;
  color: var(--ink);
  background: var(--accent-yellow);
  box-shadow: 2px 3px 0 rgba(55, 39, 51, .14);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--ink);
  background: #ffc943;
  box-shadow: 3px 4px 0 rgba(55, 39, 51, .16);
}

.language-switcher summary {
  border-color: rgba(55, 39, 51, .16);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .08);
}

.language-switcher[open] summary,
.language-switcher summary:hover,
.language-switcher summary:focus-visible {
  color: var(--primary);
  border-color: var(--ink);
}

.language-menu {
  border-color: var(--ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 rgba(55, 39, 51, .1);
}

.language-current,
.language-menu a:hover,
.language-menu a:focus-visible {
  color: var(--ink);
  background: var(--primary-soft);
}

.eyebrow {
  border-color: var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .1);
}

.eyebrow-dot {
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(78, 223, 166, .24);
}

h1,
h2,
h3 {
  font-weight: 800;
}

.hero-lede,
.section-heading p,
.closing-section p {
  font-weight: 600;
}

.button {
  border-color: var(--ink);
  border-radius: 13px;
  box-shadow: 2px 3px 0 rgba(55, 39, 51, .1);
}

.button:hover,
.button:focus-visible {
  box-shadow: 3px 4px 0 rgba(55, 39, 51, .13);
}

.button-primary {
  color: var(--ink);
  background: var(--accent-yellow);
  box-shadow: 2px 3px 0 rgba(55, 39, 51, .14);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: #ffc943;
  box-shadow: 3px 4px 0 rgba(55, 39, 51, .16);
}

.button-ghost {
  border-color: var(--ink);
  background: var(--surface);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
  background: var(--primary-soft);
}

.button-muted {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.panel-surface,
.template-card,
.feature-card,
.text-panel,
.checklist-panel,
.legal-panel {
  border-color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.panel-header,
.planner-toolbar {
  border-bottom-color: var(--border);
}

.step-badge {
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--accent-yellow);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .1);
}

.planner-panel .step-badge,
.summary-panel .step-badge {
  background: var(--accent-green);
}

.field-group input,
.field-group select,
.field-group textarea,
.week-picker input {
  border-color: var(--ink);
  border-radius: 12px;
  background: #fff;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 64, 199, .18);
}

.shortcut-key,
.icon-button {
  border-color: var(--ink);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .08);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--ink);
  color: var(--primary);
  background: var(--primary-soft);
}

.mode-tabs {
  gap: 7px;
  border-bottom-color: var(--border);
}

.mode-tab {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
}

.mode-tab:hover,
.mode-tab:focus-visible {
  color: var(--ink);
  background: var(--surface-soft);
}

.mode-tab.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--accent-yellow);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .1);
}

.week-grid-shell {
  background: var(--surface);
}

.day-timeline {
  border-left-color: var(--border);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--border) 44px);
}

.hour-lines i {
  border-bottom-color: var(--border);
}

.schedule-event {
  border-radius: 10px;
}

.schedule-event:hover {
  box-shadow: 2px 3px 0 rgba(55, 39, 51, .14);
}

.schedule-event:focus-visible,
.schedule-event.is-selected {
  outline-color: rgba(91, 64, 199, .35);
}

.event-blue {
  border-color: #aa91e5;
  color: #4a2d91;
  background: #e5d9ff;
}

.event-teal {
  border-color: #4edfa6;
  color: #155c43;
  background: #bff3d5;
}

.event-violet {
  border-color: #bda3ed;
  color: #5d339d;
  background: #eadfff;
}

.event-yellow {
  border-color: #e2b83e;
  color: #725000;
  background: #ffe6a1;
}

.event-peach {
  border-color: #f2a174;
  color: #824326;
  background: #ffd5c0;
}

.schedule-event.event-conflict {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 2px 2px 0 rgba(181, 47, 76, .14);
}

.planner-tip,
.saved-note,
.metric-card,
.export-button,
.clear-week,
.faq-list details {
  border-color: var(--ink);
  border-radius: 14px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .08);
}

.planner-tip {
  background: var(--surface-soft);
}

.saved-note {
  color: #155c43;
  background: var(--teal-soft);
}

.metric-card {
  background: var(--surface-soft);
}

.metric-primary {
  border-color: var(--ink);
  background: #eee2ff;
}

.metric-primary strong {
  color: var(--primary);
}

.conflict-notice,
.empty-notice {
  border-color: var(--danger);
  border-radius: 14px;
  box-shadow: 2px 2px 0 rgba(181, 47, 76, .1);
}

.empty-notice {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.export-button {
  background: var(--surface);
}

.export-button:hover,
.export-button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--accent-yellow);
}

.clear-week:hover,
.clear-week:focus-visible {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.soft-section,
.faq-section {
  background: rgba(255, 253, 248, .72);
  border-color: var(--border);
}

.faq-section {
  background: #fff0f6;
}

.template-card,
.feature-card,
.text-panel,
.legal-panel {
  background: var(--surface);
}

.note-panel {
  background: var(--surface-soft);
}

.faq-list details {
  background: var(--surface);
}

.site-footer {
  border-top-color: var(--border);
  background: var(--surface);
}

.mobile-menu-toggle,
.mobile-nav-panel {
  display: none;
}

.mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 3px 0 rgba(55, 39, 51, .1);
  cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible,
.mobile-menu-toggle.is-open {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.mobile-menu-icon {
  width: 18px;
  display: grid;
  gap: 4px;
}

.mobile-menu-icon span {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-panel {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mobile-nav {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 1px 1px 0 rgba(55, 39, 51, .06);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  border-color: var(--ink);
  background: var(--primary-soft);
  outline: none;
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mobile-nav-label {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-language-switcher {
  display: block;
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand menu cta"
      "panel panel panel";
    align-items: center;
    gap: 8px 10px;
  }

  .brand { grid-area: brand; }
  .primary-nav,
  .desktop-language-switcher { display: none; }
  .mobile-menu-toggle { grid-area: menu; display: inline-flex; }
  .mobile-menu-label { display: none; }
  .header-cta { grid-area: cta; }
  .mobile-nav-panel:not([hidden]) {
    grid-area: panel;
    display: grid;
  }
}

@media (max-width: 460px) {
  .mobile-menu-toggle {
    width: 40px;
    min-width: 40px;
    padding: 8px;
  }

  .mobile-menu-label { display: none; }
}

.toast,
.back-to-top {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, .1);
}

@media print {
  @page { size: landscape; margin: 10mm; }
  body { background: #fff; }
  body::before, .site-header, .hero-section, .content-section, .closing-section, .site-footer, .tool-heading, .tool-status, .back-to-top, .toast, .builder-panel, .summary-panel, .mode-tabs, .mode-hint, .planner-tip, .day-tabs { display: none !important; }
  .tool-section { display: block !important; padding: 0 !important; }
  .schedule-workbench, .planner-panel { display: block !important; border: 0 !important; box-shadow: none !important; }
  .planner-toolbar { padding: 0 0 15px; border: 0; }
  .week-picker, .icon-button { display: none; }
  .week-grid-shell { display: block !important; padding: 0; overflow: visible; }
  .week-grid { min-width: 0; }
  .schedule-event {
    left: calc(var(--event-left, 0%) + 2px);
    width: calc(var(--event-width, 100%) - 4px);
    min-height: 34px;
    padding: 4px 6px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .schedule-event strong, .schedule-event span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

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