:root {
  --bg: #f2f6fb;
  --panel: #fff;
  --line: #d8e2ef;
  --text: #14263b;
  --muted: #64748b;
  --accent: #1769d1;
  --accent-dark: #0f4d9b;
  --mint: #078661;
  --danger: #b42318;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(12, 30, 52, .18), 0 8px 24px rgba(12, 30, 52, .08);
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); font-family: var(--font); background: radial-gradient(900px 510px at -8% -10%, rgba(32, 113, 220, .16), transparent 70%), radial-gradient(760px 410px at 108% 100%, rgba(2, 151, 114, .12), transparent 70%), var(--bg); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #f5b942; outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { width: min(1680px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 32px; }
.site-header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: var(--text); }
.brand-lockup svg { color: var(--mint); flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none; }
.brand svg { color: var(--mint); }
.brand strong { color: var(--accent); }
.header-note, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.header-note { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); letter-spacing: .03em; text-transform: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.welcome, .role-view, .done-view, .error-view { width: min(1100px, 100%); margin: 2vh auto 0; padding: clamp(26px, 4vw, 42px); }
.welcome { padding-bottom: 30px; }
.welcome h1 { font-size: clamp(26px, 3.4vw, 39px); letter-spacing: -.03em; }
.start-subnote { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.campaign-section { margin: 22px 0; text-align: left; }
.campaign-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
.campaign-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: all 0.18s ease; text-align: left; }
.campaign-card:hover { border-color: #a8c3e8; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(12, 30, 52, .08); }
.campaign-card.is-active { border-color: var(--accent); background: #f4f8ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.campaign-card.is-loading { opacity: 0.85; background: linear-gradient(180deg, #fff, #fbfdff); cursor: default; }
.campaign-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.campaign-target { padding: 3px 10px; border-radius: 99px; background: #eef4ff; color: var(--accent); font-size: 11px; font-weight: 800; }
.campaign-target.is-done { background: #e8f8ef; color: var(--mint); }
.campaign-target.in-progress { background: #fff8e6; color: #b45309; }
.campaign-card h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.campaign-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.campaign-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.card-action-btn { flex: 1; min-height: 36px; padding: 6px 12px; font-size: 12px; }
.card-reset-btn { font-size: 11px; padding: 6px 8px; color: var(--muted); text-decoration: underline; }
.card-reset-btn:hover { color: var(--danger); background: transparent; }

.role-view { width: min(800px, 100%); margin: 4vh auto 0; padding: 32px 32px 30px; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 800; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .56; cursor: wait; }
.primary { color: #fff; background: var(--accent); box-shadow: 0 7px 16px rgba(23,105,209,.22); }
.primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 9px 19px rgba(23,105,209,.28); }
.subtle { color: #244260; border-color: #cbd8e7; background: #fff; }
.subtle:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: #f5f9ff; }
.text-button { color: #5f7083; background: transparent; }
.text-button:hover:not(:disabled) { color: var(--text); background: #f4f7fb; }

.role-options { display: grid; gap: 11px; margin: 28px 0 22px; }
.role-option { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 58px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; color: #233a53; background: #fff; text-align: left; cursor: pointer; }
.role-option:hover, .role-option[aria-checked="true"] { border-color: var(--accent); background: #f4f8ff; }
.role-option[aria-checked="true"] { box-shadow: 0 0 0 2px rgba(23,105,209,.1); }
.role-option span { width: 23px; font-size: 18px; text-align: center; }
.form-actions { display: flex; justify-content: flex-end; }

.progress-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  width: 100%;
}
.study-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid rgba(203, 216, 231, 0.8);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(12, 30, 52, 0.05);
}
.study-home-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #f0f6ff;
  transform: translateY(-1px);
}
.campaign-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(23, 105, 209, 0.25);
  border-radius: 999px;
  background: #edf4ff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 105, 209, 0.08);
}
.question-count {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.study-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 4px 3px 14px; }
.study-head h1 { margin-bottom: 4px; font-size: clamp(20px, 2.4vw, 30px); }
.study-head p { font-size: 13px; color: var(--muted); margin: 0; }
.progress-wrap { width: auto; max-width: 380px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 12px; font-weight: 800; text-align: right; }
progress { display: block; width: 100%; height: 7px; margin-top: 8px; overflow: hidden; border: 0; border-radius: 99px; background: #dfe8f2; accent-color: var(--mint); }
progress::-webkit-progress-bar { background: #dfe8f2; } progress::-webkit-progress-value { background: var(--mint); border-radius: 99px; } progress::-moz-progress-bar { background: var(--mint); border-radius: 99px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.mobile-comparison-facts { display: none; }
.schedule-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(12, 30, 52, .07), 0 4px 10px rgba(12, 30, 52, .04);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.schedule-card:hover:not([aria-disabled="true"]) {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(12, 30, 52, .14), 0 0 0 3px rgba(23, 105, 209, .12);
}

.schedule-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.schedule-card.is-selected {
  border-color: var(--mint);
  background: #f7fdf9;
  box-shadow: 0 0 0 3px rgba(7, 134, 97, .2), 0 12px 32px rgba(12, 30, 52, .12);
}
.schedule-head { display: flex; align-items: center; gap: 9px; min-height: 57px; padding: 12px 16px; border-bottom: 1px solid #e7edf4; }
.option-mark { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--accent); background: #eaf2ff; font-size: 12px; font-weight: 900; }
.schedule-head h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.schedule-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 62px;
  padding: 9px 12px;
  border-bottom: 1px solid #e7edf4;
  background: #fbfdff;
}
.facts-heading { grid-column: 1 / -1; color: #60758c; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.fact-chip { display: grid; gap: 1px; min-width: 0; padding: 6px 7px; border: 1px solid #dce7f2; border-radius: 7px; background: #fff; }
.fact-chip span { overflow: hidden; color: #687d92; font-size: 9px; font-weight: 700; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.fact-chip strong { color: #183b5c; font-size: 11px; font-weight: 900; line-height: 1.2; }
.schedule-scroll { overflow-x: auto; padding: 12px; }
.schedule { min-width: 0; }
.week-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr); border: 1px solid #dfe8f1; border-radius: 10px; overflow: hidden; background: #fff; }
.time-corner, .grid-day-label { min-height: 43px; border-bottom: 1px solid #dfe8f1; background: #f7faff; }
.time-corner { border-right: 1px solid #dfe8f1; }
.grid-day-label { display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 0; padding: 6px 3px; border-right: 1px solid #e5edf5; color: #405973; text-align: center; }
.grid-day-label:last-of-type { border-right: 0; }
.grid-day-label span { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.grid-day-label small { color: #7c8da0; font-size: 10px; font-weight: 700; }
.grid-day-label.is-focus-day { color: #0b5aa8; background: #e9f3ff; box-shadow: inset 0 -3px 0 #2f80d0; }
.time-axis { position: relative; height: var(--timeline-height); border-right: 1px solid #dfe8f1; background: #fbfdff; }
.time-label { position: absolute; right: 6px; color: #7b8ca0; font-family: "IBM Plex Mono", monospace; font-size: 10px; line-height: 1; transform: translateY(-50%); }
.time-label:first-child { transform: translateY(0); }
.time-label:last-child { transform: translateY(-100%); }
.day-track { position: relative; height: var(--timeline-height); min-width: 0; border-right: 1px solid #e5edf5; background-color: #fff; background-image: linear-gradient(to bottom, rgba(203, 216, 231, .78) 1px, transparent 1px); background-size: 100% var(--hour-height); }
.day-track:last-child { border-right: 0; }
.day-track.is-focus-day { background-color: #f5faff; box-shadow: inset 2px 0 0 rgba(47, 128, 208, .35), inset -2px 0 0 rgba(47, 128, 208, .35); }
.day-track.is-context-day .calendar-event { opacity: .58; }
.calendar-event { position: absolute; left: 4px; right: 4px; display: grid; align-content: center; gap: 1px; overflow: hidden; border: 0; border-left: 3px solid var(--event-color, #6286c9); border-radius: 6px; padding: 3px 6px; color: #17324c; background: color-mix(in srgb, var(--event-color, #6286c9) 12%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-color, #6286c9) 26%, white); text-align: left; pointer-events: none; }
.calendar-event.is-unchanged { opacity: .46; filter: saturate(.55); }
.calendar-event.is-changed { z-index: 1; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--event-color, #6286c9) 48%, white), 0 2px 6px rgba(21, 62, 103, .16); }
.day-track.is-context-day .calendar-event.is-changed { opacity: .82; }
.calendar-event-time { color: #48637d; font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; line-height: 1.05; }
.calendar-event-title { overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-meta { overflow: hidden; color: #475569; font-size: 10px; font-weight: 700; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.room-badge-highlight {
  display: inline-block;
  max-width: 100%;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 5px rgba(133, 77, 14, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.highlight-room-test .calendar-event-title {
  font-size: 10px;
  color: #334155;
  font-weight: 700;
}
.choice-button { width: calc(100% - 24px); min-height: 48px; margin: auto 12px 12px; border: 1px solid #a8c3e8; border-radius: 10px; color: #104f9f; background: #f3f8ff; font-size: 13px; font-weight: 800; cursor: pointer; transition: .14s ease; }
.choice-button:hover:not(:disabled) { border-color: var(--accent); background: #eaf3ff; transform: translateY(-1px); }
.choice-button:disabled { opacity: .6; cursor: wait; }
.neutral-choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 19px 0 8px; padding: 0; border: 0; }
.neutral-choices legend { width: 100%; margin-bottom: 7px; color: var(--muted); font-size: 12px; text-align: center; }
.neutral-choices .button { min-height: 39px; padding: 8px 12px; font-size: 12px; }
.keyboard-hint { color: #8493a3; font-size: 11px; text-align: center; }
kbd { padding: 1px 4px; border: 1px solid #cbd8e7; border-bottom-width: 2px; border-radius: 4px; color: #54697e; background: #fff; font-family: inherit; font-size: 10px; }
.report-link { display: block; margin: 14px auto 0; border: 0; color: #63778d; background: transparent; font-size: 11px; text-decoration: underline; cursor: pointer; }
.report-link:hover { color: var(--danger); }
.inline-status { min-height: 22px; margin-top: 8px; color: var(--mint); font-size: 12px; font-weight: 700; text-align: center; }
.inline-status.error { color: var(--danger); }
.schedule-card.is-selected { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(7, 134, 97, .18), 0 8px 25px rgba(17, 38, 63, .08); }
.choice-button.is-selected { border-color: var(--mint); background: #e6f9f2; color: #046347; }
.user-badge { display: inline-flex; align-items: center; margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #e8f8ef; color: var(--mint); font-size: 11px; font-weight: 800; animation: popIn .25s ease; }

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 38, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.feedback-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feedback-overlay.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feedback-overlay .feedback-panel {
  display: block !important;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  margin: 0;
  padding: 28px 32px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(10, 25, 48, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-overlay.is-visible .feedback-panel {
  transform: scale(1) translateY(0);
}

@media (min-width: 768px) and (min-height: 550px) {
  body.is-testing {
    height: 100vh;
    overflow: hidden;
  }
  body.is-testing .app-shell {
    height: 100vh;
    max-height: 100vh;
    padding: 10px 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  body.is-testing .site-header {
    margin-bottom: 8px;
  }
  body.is-testing .study-view {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
  }
  body.is-testing .study-head {
    padding: 4px 0 8px;
  }
  body.is-testing .study-head h1 {
    margin-bottom: 2px;
    font-size: clamp(19px, 2.2vw, 24px);
  }
  body.is-testing .comparison-grid {
    min-height: 0;
    flex: 1;
  }
  body.is-testing .schedule-card {
    min-height: 0;
  }
  body.is-testing .schedule-scroll {
    min-height: 0;
    padding: 8px 12px;
  }
  body.is-testing .neutral-choices {
    margin: 8px 0 4px;
  }
  body.is-testing .keyboard-hint {
    margin-bottom: 2px;
  }
  body.is-testing .report-link {
    margin-top: 4px;
  }
  body.is-testing .app-footer {
    margin: 4px 0 4px;
  }
}

.feedback-head { margin-bottom: 18px; }
.feedback-title { margin: 4px 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.feedback-subtitle { font-size: 13px; color: var(--muted); }
.feedback-bars { margin-bottom: 14px; }
.feedback-bar-item { display: flex; flex-direction: column; gap: 6px; }
.fb-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text); }
.fb-label-split { gap: 16px; }
.fb-label-split > span:last-child { text-align: right; }
.fb-percent { font-family: "IBM Plex Mono", monospace; font-size: 15px; font-weight: 700; color: var(--accent); }
.fb-track { position: relative; display: flex; height: 14px; border-radius: 99px; background: #edf3f9; overflow: hidden; }
.fb-fill { height: 100%; transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.fb-fill-a { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.fb-fill-b { background: linear-gradient(90deg, #078661, #10b981); }
.feedback-pills { display: flex; gap: 10px; margin-bottom: 20px; }
.fb-pill { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; font-size: 11px; color: var(--muted); font-weight: 700; }
.fb-pill strong { color: var(--text); }
.feedback-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.undo-choice-btn { min-height: 40px; font-size: 13px; color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.undo-choice-btn:hover { background: #f1f5f9; color: #1e293b; }
.animated-next-btn { position: relative; overflow: hidden; min-width: 200px; font-size: 14px; }
.countdown-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(255, 255, 255, 0.65); width: 0%; }

.done-view.bilan-card { width: min(1100px, 100%); margin-top: 2vh; text-align: left; }
.done-hero { text-align: center; margin-bottom: 30px; }
.done-icon-wrap { margin-bottom: 12px; }
.done-icon { display: inline-grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: var(--mint); background: #e8f8ef; font-size: 26px; font-weight: 900; box-shadow: 0 0 0 8px rgba(7, 134, 97, .08); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.kpi-card { display: flex; flex-direction: column; align-items: center; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(17, 38, 63, .06); }
.kpi-icon { font-size: 24px; margin-bottom: 4px; }
.kpi-value { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.kpi-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.done-history { margin-top: 30px; }
.history-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.history-list { display: grid; gap: 12px; }
.history-item { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(17, 38, 63, .03); opacity: 0; animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.history-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.history-item-title { font-size: 13px; font-weight: 800; color: var(--text); }
.history-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.history-badge-user { background: #eaf2ff; color: #1769d1; }
.history-badge-neutral { background: #f1f5f9; color: #475569; }
.history-split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #edf3f9; margin-bottom: 8px; }
.h-bar-left { background: #2563eb; transition: width .6s ease; }
.h-bar-right { background: #078661; transition: width .6s ease; }
.h-bar-neutral { background: #94a3b8; transition: width .6s ease; }
.history-item-footer { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 700; }
.history-tag { color: var(--mint); font-weight: 800; }
.history-tag.original { color: var(--accent); }
.done-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }

@keyframes popIn { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUpFade { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes countdownAnimation { 0% { width: 0%; } 100% { width: 100%; } }

@media (max-width: 760px) { .study-head { align-items: stretch; flex-direction: column; gap: 14px; }.progress-wrap { width: 100%; max-width: none; align-self: stretch; margin-left: 0; align-items: flex-end; text-align: right; }.progress-top-row { width: 100%; justify-content: flex-end; gap: 6px; }.question-count { text-align: right; }.campaign-title-badge { font-size: 10px; padding: 3px 9px; max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.comparison-grid { gap: 13px; }.feedback-bars { grid-template-columns: 1fr; gap: 10px; }.kpi-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .app-shell { width: min(100% - 22px, 600px); padding-top: 12px; }.site-header { margin-bottom: 18px; }.header-note { display: none; }.welcome, .role-view, .done-view, .error-view { margin-top: 4vh; padding: 25px 20px; }.mobile-comparison-facts { display: grid; gap: 0; margin: 2px 0 12px; overflow: hidden; border: 1px solid #cfdeed; border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(12, 30, 52, .06); }.mobile-facts-head, .mobile-facts-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(58px, .7fr) minmax(58px, .7fr); align-items: center; gap: 6px; padding: 7px 10px; }.mobile-facts-head { color: #536b83; background: #edf5fd; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }.mobile-facts-head strong { display: grid; width: 23px; height: 23px; place-items: center; justify-self: center; border-radius: 50%; color: #1769d1; background: #fff; font-size: 11px; }.mobile-facts-row { border-top: 1px solid #e4edf5; font-size: 11px; }.mobile-facts-row > span { color: #61778d; font-weight: 700; }.mobile-facts-row > strong { color: #173b5e; text-align: center; }.comparison-grid { grid-template-columns: 1fr; }.schedule-card { overflow: visible; }.schedule-facts { display: none; }.choice-button { position: sticky; bottom: 8px; z-index: 1; box-shadow: 0 7px 16px rgba(17,38,63,.14); }.neutral-choices { display: grid; grid-template-columns: 1fr 1fr; }.neutral-choices legend { grid-column: 1 / -1; }.neutral-choices .text-button { grid-column: 1 / -1; }.keyboard-hint { display: none; }.done-actions { flex-direction: column; } }
@media (max-width: 390px) { .app-shell { width: calc(100% - 16px); }.brand { font-size: 15px; }.study-head h1 { font-size: 22px; }.schedule-scroll { padding: 8px; }.schedule-head { min-height: 52px; padding: 10px; }.neutral-choices { gap: 6px; }.neutral-choices .button { padding: 7px 5px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.app-footer { margin: 28px 0 16px; text-align: center; color: var(--muted); opacity: 0.6; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.delete-data-btn, .delete-data-footer-btn { background: none; border: none; padding: 0; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: underline; cursor: pointer; opacity: 0.65; transition: opacity 0.2s ease, color 0.2s ease; }
.delete-data-btn:hover, .delete-data-footer-btn:hover { opacity: 1; color: var(--danger, #b42318); }
.delete-data-btn { margin-top: 8px; font-size: 12px; }
