:root{
  --bg:#f5f1e8;
  --bg-elev:#fffaf0;
  --card:#fffdf7;
  --ink:#1f1f1f;
  --muted:#6f6a61;
  --line:#d8cfbf;
  --gold:#b18a2e;
  --gold-2:#caa24a;
  --accent:#7a1f1f;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --radius:18px;
  --radius-sm:12px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(177,138,46,.08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(122,31,31,.06), transparent 55%),
    linear-gradient(180deg, #f8f4ec 0%, #f3eee3 100%);
  line-height:1.5;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}

.hidden{display:none !important}

.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin-inline:auto;
}

/* page header */

.app-page-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:300;
  background:rgba(245,241,232,.84);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(216,207,191,.9);
}

.app-page-header-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:64px;
}

.app-home-link{
  display:inline-flex;
  align-items:center;
}

/* landing */

.hero-landing{
  position:relative;
  min-height:calc(100vh - 64px);
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-image:url("../assets/images/hero.png");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
  transform:scale(1.01);
  filter:saturate(.97) contrast(1.01);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(50% 30% at 50% 18%, rgba(255,240,200,.22), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,.14), rgba(10,10,10,.08) 42%, rgba(10,10,10,.34) 100%);
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:2;
  min-height:calc(100vh - 64px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:20px;
  padding:40px 16px 52px;
}


.hero-title{
  font-size:clamp(28px, 3.8vw, 46px);
  font-weight:800;
}


.hero-small{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:700;
  color:#f3ead8;
  text-shadow:0 2px 14px rgba(0,0,0,.32);
}


.hero-tag{
  font-size:clamp(20px, 2.6vw, 34px);
  font-weight:700;
}


.hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  width:100%;
}

.hero-btn{
  min-width:220px;
}

/* buttons */

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:12px 18px;
  font-weight:700;
  letter-spacing:.2px;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
  box-shadow:var(--shadow);
}

.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}

.btn-primary{
  background:linear-gradient(180deg, var(--gold-2), var(--gold));
  color:#1c1609;
}

.btn-ghost{
  background:rgba(255,250,240,.82);
  color:#2a241b;
  border:1px solid rgba(202,162,74,.35);
  backdrop-filter:blur(6px);
}

/* app shell */

.app-root{
  padding:18px 0 56px;
}

.app-header{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-mark-logo{
  height:34px;
  width:auto;
}

.brand-text{
  min-width:0;
}

.brand-text .title{
  font-weight:800;
  letter-spacing:.2px;
}

.brand-text .subtitle{
  color:var(--muted);
  font-size:.95rem;
}

.app-toolbar{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto 10px;
  display:flex;
  justify-content:flex-end;
}

.app-toolbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  width:100%;
}

.app-toolbar-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(216,207,191,.9);
  background:rgba(255,253,247,.88);
  color:var(--ink);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.app-toolbar-link:hover{
  border-color:rgba(177,138,46,.45);
}

/* layout */

.sheet{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}

.card{
  background:rgba(255,253,247,.9);
  border:1px solid rgba(216,207,191,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.row{
  display:flex;
  align-items:center;
  gap:12px;
}

.gap{gap:12px}
.wrap{flex-wrap:wrap}

.small{font-size:.92rem}
.muted{color:var(--muted)}

.h2{
  margin:0 0 10px;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.2px;
}

.prompt{
  margin:0 0 12px;
  font-size:.98rem;
  color:#3b342a;
}

.divider{
  height:1px;
  background:rgba(216,207,191,.95);
  margin:14px 0;
}

.note{
  padding:12px 14px;
  background:rgba(177,138,46,.08);
  border:1px solid rgba(202,162,74,.24);
  border-radius:14px;
}

.warning{
  background:rgba(177,138,46,.08);
}

/* accordion */

.acc{
  overflow:hidden;
}

.acc + .acc{
  margin-top:14px;
}

.acc-head{
  width:100%;
  border:none;
  background:transparent;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  text-align:left;
  padding:16px;
  cursor:pointer;
}

.acc-head:hover{
  background:rgba(177,138,46,.045);
}

.acc-title{
  font-weight:800;
  letter-spacing:.2px;
}

.acc-summary{
  text-align:right;
  min-width:0;
}

.acc-icon{
  font-size:16px;
  transition:transform .18s ease;
}

.acc-head[aria-expanded="true"] .acc-icon{
  transform:rotate(180deg);
}

.acc-body{
  padding:0 16px 16px;
  border-top:1px solid rgba(216,207,191,.85);
}

/* choices */

.choice-grid,
.choice-list{
  display:grid;
  gap:10px;
}

.choice{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:14px;
  background:#fffdf8;
  border:1px solid rgba(216,207,191,.92);
  border-radius:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
  cursor:pointer;
  transition:
    border-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.choice:hover{
  border-color:rgba(177,138,46,.48);
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(0,0,0,.05);
}

.choice.selected{
  border-color:rgba(177,138,46,.7);
  background:linear-gradient(180deg, rgba(177,138,46,.12), rgba(177,138,46,.04));
  box-shadow:0 10px 20px rgba(177,138,46,.08);
}

.choice:focus{
  outline:3px solid rgba(202,162,74,.32);
  outline-offset:2px;
}

.choice-main{
  min-width:0;
}

.ctitle{
  font-weight:800;
  letter-spacing:.15px;
}

.csub{
  margin-top:4px;
  color:var(--muted);
  font-size:.95rem;
}

.choice-detail-btn{
  flex:0 0 auto;
  border:1px solid rgba(216,207,191,.95);
  background:#fff;
  color:var(--ink);
  border-radius:999px;
  padding:8px 11px;
  cursor:pointer;
  white-space:nowrap;
}

.choice-detail-btn:hover{
  border-color:rgba(177,138,46,.42);
}

/* cluster / two-column areas */

.cluster-wrap,
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.cluster-col{
  min-width:0;
}

/* chosen boxes */

.chosen-box{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(177,138,46,.09), rgba(177,138,46,.03)),
    rgba(255,253,247,.96);
  border:1px solid rgba(202,162,74,.26);
}

.chosen-label{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:6px;
}

.chosen-title{
  font-weight:800;
  letter-spacing:.15px;
  cursor:pointer;
}

.chosen-summary{
  margin-top:4px;
}

/* selections / prayer output */

.selections{
  display:grid;
  gap:8px;
}

.sel{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px dashed rgba(216,207,191,.95);
}

.sel:last-child{
  border-bottom:none;
}

.sel-k{
  color:var(--muted);
  min-width:148px;
}

.sel-v{
  text-align:right;
  font-weight:700;
}

.bullets{
  margin:0;
  padding-left:20px;
}

.bullets li{
  margin:8px 0;
}

.sublist{
  margin-top:8px !important;
}

#lockedNote{
  margin-bottom:12px;
}

/* detail modal + app help overlay */

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(15,15,15,.42);
  backdrop-filter:blur(3px);
  display:grid;
  place-items:center;
  padding:12px;
}

.modal{
  width:min(calc(100vw - 24px), 780px);
  max-height:min(88vh, 920px);
  overflow:auto;
  background:rgba(255,253,247,.98);
  border:1px solid rgba(216,207,191,.98);
  border-radius:22px;
  box-shadow:0 26px 60px rgba(0,0,0,.2);
  padding:0;
}

.modal-hd,
.modal-header,
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(216,207,191,.95);
}

.modal-bd,
.modal-body{
  padding:18px;
}

.modal-title{
  margin:0;
  font-size:1.05rem;
  font-weight:800;
}

.modal-sub{
  color:var(--muted);
  font-size:.92rem;
}

.modal-x{
  border:none;
  background:transparent;
  cursor:pointer;
  width:38px;
  height:38px;
  border-radius:999px;
}

.modal-x:hover{
  background:rgba(177,138,46,.08);
}

.modal-panel{
  background:transparent;
}

/* dialog element modals */

dialog.modal{
  border:none;
}

dialog.modal::backdrop{
  background:rgba(15,15,15,.42);
  backdrop-filter:blur(3px);
}

/* detail content */

.detail{
  padding:12px 14px;
  border:1px solid rgba(216,207,191,.95);
  border-radius:16px;
  background:#fffdf9;
}

.detail-h{
  font-weight:800;
  margin-bottom:6px;
}

.detail-p{
  color:#342f28;
}

.detail-body h4,
#detailBody h4{
  margin:16px 0 8px;
  font-size:.98rem;
}

.detail-body ul,
#detailBody ul{
  margin:0;
  padding-left:20px;
}

.detail-body li,
#detailBody li{
  margin:6px 0;
}

.kv{
  margin:10px 0;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(216,207,191,.95);
  background:#fff;
  font-size:.85rem;
  font-weight:700;
  margin-bottom:8px;
}

.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:#fff;
  border:1px solid rgba(216,207,191,.95);
  padding:10px 12px;
  border-radius:12px;
}

/* menu / info modals */

.menu-list{
  display:grid;
  gap:12px;
}

.menu-item{
  width:100%;
  justify-content:center;
}

.howto-list{
  margin:0;
  padding-left:20px;
}

.howto-list li{
  margin:8px 0;
}

.howto-k{
  font-weight:800;
}

.resource-item{
  display:grid;
  grid-template-columns:84px 1fr;
  gap:14px;
  align-items:start;
  margin:14px 0;
}

.resource-thumb{
  width:84px;
  border-radius:10px;
  border:1px solid rgba(216,207,191,.95);
}

.resource-blurb{
  margin:6px 0 8px;
  color:#4c463d;
}

.p{
  margin-top:0;
}

/* forms */

.form-label{
  display:block;
  font-weight:700;
  margin:12px 0 6px;
}

.form-input{
  width:100%;
  border:1px solid rgba(216,207,191,.95);
  background:#fff;
  border-radius:14px;
  padding:12px 14px;
  color:var(--ink);
}

.form-input:focus{
  outline:3px solid rgba(202,162,74,.24);
  outline-offset:1px;
  border-color:rgba(177,138,46,.55);
}

.form-actions{
  margin-top:14px;
}

.form-status{
  margin-top:12px;
  color:var(--muted);
}

/* toast */

#toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%) translateY(20px);
  bottom:22px;
  z-index:120;
  background:rgba(24,24,24,.92);
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

#toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* training banner */

.training-banner{display:none !important;}

.training-banner-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
}

.training-banner-copy{
  min-width:0;
}

.training-banner-kicker{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:4px;
}

.training-banner-title{
  font-weight:800;
  letter-spacing:.2px;
  color:var(--ink);
}

.training-banner-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.training-banner-btn{
  white-space:nowrap;
}

/* scenario briefing */

.scenario-briefing{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto 14px;
}

.scenario-briefing-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.scenario-briefing-head-copy{
  min-width:0;
}

.scenario-briefing-mode{
  margin:0;
}

.scenario-briefing-mode-help{
  color:var(--muted);
  font-size:.92rem;
  margin-top:4px;
}

.scenario-briefing-body{
  display:grid;
  gap:14px;
}

.scenario-briefing-title{
  font-size:1.2rem;
  font-weight:800;
  letter-spacing:.2px;
}

.scenario-briefing-subtitle{
  color:var(--muted);
  font-size:.98rem;
}






.scenario-briefing-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* responsive */

@media (max-width: 820px){
  .cluster-wrap,
  .grid-2{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .container{
    width:min(calc(100% - 20px), var(--max));
  }

  .hero-content{
    padding:30px 12px 40px;
  }

  
.hero-tag{
  font-size:clamp(20px, 2.6vw, 34px);
  font-weight:700;
}


  .app-header,
  .app-toolbar,
  .training-banner,
  .scenario-briefing{
    width:min(calc(100% - 20px), var(--max));
  }

  .choice{
    flex-direction:column;
    align-items:stretch;
  }

  .choice-detail-btn{
    align-self:flex-start;
  }

  .acc-head{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "title icon"
      "summary summary";
    row-gap:6px;
    padding:14px;
  }

  .acc-title{grid-area:title}
  .acc-summary{
    grid-area:summary;
    text-align:left;
  }
  .acc-icon{grid-area:icon}

  .acc-body{
    padding:0 14px 14px;
  }

  .sel{
    flex-direction:column;
    gap:2px;
  }

  .sel-v{
    text-align:left;
  }

  .training-banner-inner{
    flex-direction:column;
    align-items:stretch;
  }

  .training-banner-actions{
    justify-content:flex-start;
  }

  .resource-item{
    grid-template-columns:1fr;
  }

  .resource-thumb{
    width:110px;
  }
}

.scenario-briefing-narrative{
  display:grid;
  gap:10px;
  padding:14px;
  border-radius:16px;
  background:rgba(255,253,247,.96);
  border:1px solid rgba(216,207,191,.95);
}

.scenario-briefing-narrative p{
  margin:0;
  color:#403a31;
  line-height:1.6;
}


/* ===== top header app menu cleanup ===== */

.app-page-header-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.app-header{
  display:none !important;
}

.app-toolbar{
  display:none !important;
}

.app-menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  border-radius:999px;
  color:transparent;
  font-size:0;
  line-height:1;
}

.app-menu-btn::before{
  content:"";
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--ink);
  box-shadow:0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.app-menu-btn:hover{
  background:rgba(0,0,0,.06);
}

.app-menu-btn:focus{
  outline:2px solid rgba(0,0,0,.18);
  outline-offset:2px;
}

.training-banner-actions,
.scenario-briefing-actions,
#btnResetLink,
#trainingBannerView,
#scenarioBriefingView{
  display:none !important;
}

@media (max-width: 640px){
  .app-menu-btn{
    width:38px;
    height:38px;
  }
  .app-menu-btn::before{
    width:17px;
  }
}


body.site{
  padding-top:64px;
  background:
    linear-gradient(rgba(248,244,236,.80), rgba(243,238,227,.88)),
    url("../assets/images/hero.png") center center / cover no-repeat fixed;
}


/* scenario feedback evaluator */

.feedback-eval{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(216,207,191,.95);
  border-radius:16px;
  background:rgba(255,253,247,.96);
}

.feedback-line,
.feedback-overall{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  font-size:.96rem;
  line-height:1.45;
  border:1px solid rgba(216,207,191,.9);
  background:#fff;
}

.feedback-line.good,
.feedback-overall.good{
  border-color:rgba(76,132,83,.45);
  background:rgba(76,132,83,.08);
}

.feedback-line.ok,
.feedback-overall.ok{
  border-color:rgba(177,138,46,.45);
  background:rgba(177,138,46,.10);
}

.feedback-line.warn,
.feedback-overall.warn{
  border-color:rgba(160,88,46,.45);
  background:rgba(160,88,46,.08);
}


.feedback-explain{
  margin:6px 2px 12px;
  padding:0 2px;
  font-size:.93rem;
  line-height:1.5;
  color:#5f574c;
}

.feedback-explain-inline{
  margin-top:8px;
  font-size:.93rem;
  line-height:1.5;
  color:#5f574c;
}

.feedback-explain-block + .feedback-explain-block{
  margin-top:10px;
}

.feedback-explain-label{
  font-size:.77rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7a705f;
  margin-bottom:3px;
  font-weight:700;
}


.feedback-insight{
  margin:12px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(216,207,191,.9);
  background:rgba(248,244,235,.9);
  font-size:.94rem;
  line-height:1.5;
  color:#5f574c;
}

.feedback-insight-discernment{
  border-color:rgba(91,125,159,.35);
  background:rgba(91,125,159,.08);
}

.feedback-insight-teaching{
  border-color:rgba(130,115,79,.35);
  background:rgba(130,115,79,.09);
}


/* Session context and progress dashboard */
.session-context-bar,
.progress-dashboard,
.scenario-complete-box{
  background:rgba(255,253,247,.96);
  border:1px solid rgba(54,41,18,.12);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(37,29,16,.08);
}

.session-context-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  margin:16px 0 20px;
}

.session-context-label,
.progress-summary-label,
.progress-week-label{
  font-size:.82rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#7a6a46;
}

.session-context-title,
.progress-dashboard-title,
.progress-summary-value{
  font-size:1.05rem;
  color:#2f2615;
}

.session-context-help,
.progress-week-note,
.progress-assignment-meta,
.progress-empty,
.scenario-complete-note,
.progress-dashboard-copy p{
  color:#66583b;
  font-size:.94rem;
}

.session-context-actions,
.progress-dashboard-actions,
.progress-dashboard-tabs,
.progress-summary-grid,
.progress-week-actions,
.scenario-complete-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.progress-tab.active{
  background:#3f2f14;
  color:#fff7e8;
  border-color:#3f2f14;
}

.progress-dashboard{
  padding:20px;
  margin-bottom:22px;
}

.progress-dashboard-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.progress-dashboard-tabs{
  margin-bottom:18px;
}

.progress-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-bottom:18px;
}

.progress-summary-card,
.progress-week-card,
.progress-activity-card,
.progress-real-card{
  border:1px solid rgba(54,41,18,.12);
  border-radius:16px;
  background:#fffdf8;
  padding:14px 16px;
}

.progress-weeks,
.progress-real-grid{
  display:grid;
  gap:12px;
}

.progress-real-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.progress-week-card.is-complete{
  border-color:rgba(63,110,52,.36);
  box-shadow:0 0 0 1px rgba(63,110,52,.08) inset;
}

.progress-week-card.is-current{
  border-color:rgba(177,138,46,.48);
}

.progress-week-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.progress-assignment-list,
.progress-activity-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
}

.progress-assignment-item,
.progress-activity-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:10px 0;
  border-top:1px solid rgba(54,41,18,.08);
}

.progress-assignment-item:first-child,
.progress-activity-item:first-child{
  border-top:0;
  padding-top:0;
}

.progress-assignment-title,
.progress-activity-title,
.progress-week-head .progress-summary-value{
  color:#2f2615;
}

.progress-assignment-check{
  min-width:92px;
  text-align:right;
}

.progress-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:#f4ebd4;
  color:#5f4b1f;
  font-size:.82rem;
}

.progress-badge-idle{
  background:#f7dfe5;
  color:#8a4a5d;
}

.progress-badge-progress,
.progress-badge-current{
  background:#efe2b6;
  color:#5f4b1f;
}

.progress-badge-complete{
  background:#dfead7;
  color:#30512a;
}

.progress-continue-card{
  margin-bottom:18px;
}

.scenario-complete-box{
  margin:16px 0;
  padding:16px 18px;
}

.scenario-complete-title{
  color:#2f2615;
  margin:0 0 6px;
  font-size:1rem;
}

@media (max-width: 820px){
  .session-context-bar,
  .progress-dashboard-head,
  .progress-week-head,
  .progress-assignment-item,
  .progress-activity-item{
    flex-direction:column;
  }

  .progress-assignment-check{
    min-width:0;
    text-align:left;
  }
}


#progressDashboard .btn.btn-primary{
  white-space:nowrap;
}


/* ===== app-only header/logo match website while preserving no-white-strip fix ===== */
body.site .site-header.app-page-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  margin: 0 !important;
  padding: 0 !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  background: rgba(245,241,232,.84);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216,207,191,.9);
  overflow: hidden;
}

body.site .site-header.app-page-header .site-shell,
body.site .app-page-header-shell{
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

body.site .site-header.app-page-header .site-brand,
body.site .app-page-header .site-brand{
  min-height: 0 !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.site .site-header.app-page-header .site-brand-logo,
body.site .app-page-header .site-brand-logo{
  height: 78px !important;
  width: auto !important;
  max-width: min(560px, 44vw) !important;
  object-fit: contain !important;
  display: block !important;
}

body.site .site-header.app-page-header .app-menu-btn{
  width: 44px;
  height: 44px;
}

body.site{
  padding-top: 0 !important;
}

#landing.hero-landing{
  min-height: calc(100vh - 104px) !important;
}

#landing .hero-content{
  min-height: calc(100vh - 104px) !important;
}

#appRoot.app-root{
  padding-top: 122px !important;
}

@media (max-width: 980px){
  body.site .site-header.app-page-header{
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
  }
  body.site .site-header.app-page-header .site-shell,
  body.site .app-page-header-shell{
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
  }
  body.site .site-header.app-page-header .site-brand-logo,
  body.site .app-page-header .site-brand-logo{
    height: 64px !important;
    max-width: min(440px, 48vw) !important;
  }
  #landing.hero-landing,
  #landing .hero-content{
    min-height: calc(100vh - 92px) !important;
  }
  #appRoot.app-root{
    padding-top: 108px !important;
  }
}

@media (max-width: 860px){
  body.site .site-header.app-page-header{
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
  }
  body.site .site-header.app-page-header .site-shell,
  body.site .app-page-header-shell{
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
  }
  body.site .site-header.app-page-header .site-brand-logo,
  body.site .app-page-header .site-brand-logo{
    height: 50px !important;
    max-width: min(340px, 64vw) !important;
  }
  #landing.hero-landing,
  #landing .hero-content{
    min-height: calc(100vh - 74px) !important;
  }
  #appRoot.app-root{
    padding-top: 88px !important;
  }
}

@media (max-width: 640px){
  body.site .site-header.app-page-header{
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
  body.site .site-header.app-page-header .site-shell,
  body.site .app-page-header-shell{
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
  body.site .site-header.app-page-header .site-brand-logo,
  body.site .app-page-header .site-brand-logo{
    height: 42px !important;
    max-width: min(285px, 72vw) !important;
  }
  #landing.hero-landing,
  #landing .hero-content{
    min-height: calc(100vh - 64px) !important;
  }
  #appRoot.app-root{
    padding-top: 76px !important;
  }
}
