/* Missions, achievements and analysis follow the phone-first Airquit layout. */
.progress-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
.programme-summary { display:flex; align-items:center; gap:16px; margin-bottom:22px; background:#e7f3ef; }
.programme-summary>div { flex:1; min-width:0; }
.programme-summary p { font-size:13px; margin-bottom:12px; }
.mission-list { display:grid; gap:12px; }
.mission-row { width:100%; display:flex; align-items:center; gap:15px; text-align:left; padding:18px; }
.mission-row>span:nth-child(2) { flex:1; }
.mission-row>span>small { display:block; color:#6a8e80; font-size:10px; letter-spacing:1px; margin-bottom:5px; }
.mission-row strong { font-size:15px; font-weight:550; }
.mission-row:disabled { cursor:default; opacity:.55; }
.mission-row.completed { background:#eff8f4; }
.mission-number { display:grid; place-items:center; border-radius:13px; width:43px; height:43px; background:#e2f1ec; color:#38796a; font-family:Georgia,serif; font-size:23px; flex-shrink:0; }
.daily-mission { order:2; background:#ecf7f2; }
.daily-mission .eyebrow { font-size:10px; margin-bottom:8px; }
.daily-mission>p { font-size:14px; line-height:1.8; }
.dashboard-grid>.stats-row { order:3; }
.dashboard-grid>.toolkit-preview { order:4; }
.dashboard-grid>.reason-card { order:5; }
.today-health-preview { order:6; }
.dashboard-grid>.journey-card { order:7; }
.dashboard-grid>.reward-banner { order:8; }
.today-health-preview h2 { font-size:21px; }
.today-health-preview p { font-size:14px; }
.today-health-preview small { display:block; font-size:11px; color:#738b7d; }
.achievement-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:15px; }
.achievement-card { text-align:center; position:relative; }
.achievement-medal { width:72px; height:72px; display:grid; place-items:center; background:#e0eae5; color:#829b8f; border-radius:50%; margin:0 auto 16px; border:5px solid #f0f4f1; outline:1px solid #dce7e0; }
.achievement-medal .icon { width:32px; height:32px; }
.achievement-card.earned .achievement-medal { background:#b9e7da; color:#254e4c; border-color:#e1f4eb; outline-color:#5dc1b9; }
.achievement-card.earned { border-color:#c0e1d5; background:#fbfefc; }
.achievement-card h2 { margin-top:14px; }
.achievement-card p { font-size:13px; min-height:42px; }
.achievement-card .progress { margin:18px 0 10px; }
.achievement-card>small { display:block; font-size:12px; color:#73887c; margin-bottom:14px; }
.achievement-card.locked .badge { background:#f0f3f1; color:#899b90; }
.certificate-preview { margin:20px 0; border:1px solid #dce9e2; border-radius:10px; overflow:hidden; }
.certificate-preview svg { display:block; width:100%; height:auto; }
.health-today { background:#e3f3ed; margin-bottom:20px; }
.health-today h2 { font-family:Georgia,serif; font-size:26px; font-weight:400; }
.health-today p,.daily-health p { font-size:14px; }
.health-today .eyebrow { line-height:1.7; }
.health-today .text-button { font-size:12px; }
.daily-health { margin-bottom:20px; }
.health-day-picker { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:20px 0; }
.health-day-picker label { font-size:12px; color:#658074; flex:1; }
.health-day-picker select { font-size:16px; width:100%; }
.day-buttons { display:flex; gap:8px; }
.day-buttons .square { width:48px; height:48px; font-size:26px; padding:0; }
.daily-benefit { border-radius:15px; padding:20px; background:#f2f7f3; }
.daily-benefit>h2 { font-size:21px; margin-top:15px; }
.daily-benefit>p { line-height:1.85; }
.benefit-event { display:flex; gap:13px; padding:16px 0; border-top:1px solid #e0eae2; }
.benefit-event>.icon { margin-top:4px; color:#4d9380; }
.benefit-event strong { font-size:13px; }
.benefit-event p { margin:5px 0 0; font-size:13px; }
.daily-health-tip { font-size:12px!important; color:#6d8678; border-top:1px solid #e0eae2; padding-top:15px; }
.timeline-title { margin:28px 0 17px; }
.time-progress { display:block; font-size:10px; color:#829489; margin-top:8px; }
.analysis-controls { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:20px; }
.segmented { display:flex; padding:4px; background:#e7efea; border-radius:12px; }
.segmented button { border:0; background:transparent; border-radius:9px; min-height:44px; padding:9px 17px; font-size:13px; color:#668172; }
.segmented button[aria-pressed="true"] { background:#fff; color:#254e4c; box-shadow:0 2px 6px #254e4c07; }
.analysis-stats { margin-bottom:20px; }
.analysis-stats .stat-card>div { width:100%; }
.analysis-stats strong small { font-size:10px; display:block; font-weight:400; letter-spacing:0; margin-top:3px; }
.analysis-stats .stat-card>div>small { display:block; margin-top:6px; font-size:10px; line-height:1.5; }
.trend-card,.coping-results { margin-bottom:20px; }
.metric-toggle { width:fit-content; }
.trend-chart { height:200px; padding:25px 2px 24px; }
.trend-bars { display:flex; height:100%; align-items:end; gap:5px; border-bottom:1px solid #dce7e0; }
.trend-column { flex:1; min-width:0; height:100%; display:flex; align-items:end; position:relative; }
.trend-bar { width:100%; background:#5dc1b9; border-radius:5px 5px 0 0; }
.trend-column>small { position:absolute; top:100%; padding-top:6px; width:100%; text-align:center; font-size:10px; color:#728b7d; }
.trend-data { margin-top:18px; font-size:13px; }
.trend-data summary { cursor:pointer; padding:10px 0; min-height:44px; color:#416f5d; }
.table-scroll { overflow:auto; }
.trend-data table { border-collapse:collapse; width:100%; text-align:left; font-size:12px; }
.trend-data td,.trend-data th { padding:10px; border-bottom:1px solid #e4ece6; }
.coping-results>.muted { font-size:13px; }
.coping-row { padding:15px 0; border-top:1px solid #e4ece6; }
.coping-row strong { display:block; font-size:14px; }
.coping-row>span { display:block; color:#7a8d80; font-size:12px; margin:4px 0 12px; }
.craving-details { border:1px solid #dce7df; border-radius:14px; margin:23px 0; padding:7px 16px 16px; }
.craving-details legend { font-size:12px; color:#628574; padding:0 8px; }
.craving-details>small { font-size:11px; color:#829589; }
@media(min-width:600px) { .achievement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:900px) {
  .progress-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mission-list { grid-template-columns:1fr 1fr; }
  .achievement-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sidebar nav .nav-link { font-size:11px; padding:9px 12px; margin:3px 0; }
  .sidebar-note { display:none; }
  .dashboard-grid>.daily-mission { grid-column:1; grid-row:4; order:initial; }
  .dashboard-grid>.today-health-preview { grid-column:2; grid-row:4; order:initial; }
  .dashboard-grid>.stats-row,.dashboard-grid>.toolkit-preview,.dashboard-grid>.reason-card,.dashboard-grid>.journey-card,.dashboard-grid>.reward-banner { order:initial; }
}
@media print {
  @page { size:landscape; margin:0; }
  body:has(.certificate-preview)>:not(#modal) { display:none!important; }
  body:has(.certificate-preview) { background:white; overflow:visible; }
  #modal:has(.certificate-preview) { position:static; display:block; width:100%; max-width:none; height:auto; max-height:none; padding:0; margin:0; border:0; box-shadow:none; background:white; overflow:visible; }
  #modal:has(.certificate-preview)>:not(.certificate-preview) { display:none!important; }
  #modal:has(.certificate-preview)::before,#modal::backdrop { display:none; }
  .certificate-preview { border:0; margin:0; width:100%; }
  .certificate-preview svg { width:100%; max-height:100vh; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
