/* the participant bar (kaLLM Sessions 1.11.5 moved the desktop bar into kchrome.css, which the web page does not load;
   these are the rules the web bar was drawn with, kept here) */
body.web #topbar{flex:none;height:52px;display:flex;align-items:center;gap:10px;background:var(--navy);color:#EDF1F7;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.06)}
body.web #topbar .logo{height:30px;width:auto;display:block}
body.web #topbar .vsep{width:1px;height:26px;background:rgba(255,255,255,.14)}
/* Back (Dr. K, 2 October 2026): right after the logo, as in the kaLLM apps */
body.web .kc-back{display:inline-flex;align-items:center;gap:6px;flex:none;height:30px;padding:0 .75em;border:1px solid rgba(255,255,255,.24);border-radius:0;background:transparent;color:#EDF1F7;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
body.web .kc-back:hover:not(:disabled){background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.45)}
body.web .kc-back:disabled{opacity:.38;cursor:default}
body.web .kc-back-arrow{font-size:14px;line-height:1}
body.portal .kc-back{color:var(--f-ink);border-color:var(--f-rule);height:34px;font-size:13px;font-weight:500}
body.portal .kc-back:hover:not(:disabled){background:transparent;border-color:var(--f-ink)}
@media (max-width:480px){ body.web .kc-back-label{display:none} }
body.web #topcrumb{font-size:13px;color:#A9BBD2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:40px}
body.web #topcrumb > *{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
body.web #topmid{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:14px;min-width:0;white-space:nowrap;overflow:hidden}
body.web #topright{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:none}
body.web #toplang{flex:none}
/* kaLLM Sessions Web: on top of the desktop stylesheet (vendor/styles.css),
   the participant layout, phone widths and the few widgets the desktop has
   no equivalent for. Brand tokens are the desktop's. */
body.web{overflow:auto;min-height:100%;height:auto}
body.web #view{flex:1;display:flex;flex-direction:column;min-height:0;overflow:clip}  /* clip, not hidden: a scrolling box would stop the side rails (journey, My account) from staying in view (12 October 2026) */
body.web #topbar{position:sticky;top:0;z-index:20;height:52px}
body.web #topbar .appname{display:none}
body.web #guidefab{display:none}
body.web .page{overflow:visible;padding:clamp(14px,3vw,32px) 16px 80px}
body.web .webtitle{font-size:clamp(24px,4vw,34px);margin:0 0 16px}
body.web .card{padding:20px 22px}
body.web .cardtitle{font-family:var(--serif);font-size:19px;color:var(--navy);margin-bottom:10px;font-weight:400}
body.web .formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
body.web .formgrid .full{grid-column:1 / -1}
body.web input,body.web select,body.web textarea{width:100%;max-width:none;font-size:16px}
body.web input[type=radio],body.web input[type=checkbox]{width:auto}
body.web .p-opts .p-opt{flex:1 1 auto}
body.web .fielderr{color:var(--red);font-size:13px;min-height:18px;margin-top:4px}
body.web .checklist{display:flex;flex-direction:column}

/* the journey: rail beside the page on wide screens, above it on phones */
body.web .page.journey{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;max-width:1180px;margin:0 auto;width:100%;align-items:start}
.jrail{position:sticky;top:64px;max-height:calc(100vh - 76px);overflow-y:auto;background:var(--paper);border:1px solid var(--warmline);border-radius:0;padding:12px 8px;box-shadow:var(--shadow)}
.jrail-head{padding:6px 10px 10px;border-bottom:1px solid var(--warmline);margin-bottom:6px}
.jrail-title{font-family:var(--serif);font-weight:400;color:var(--navy);font-size:15px;line-height:1.25}
.jrail-sub{font-size:11.5px;color:var(--mut);margin-top:4px;font-family:var(--mono)}
.jrail-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:0;font-size:13.5px;color:var(--slate)}
.jrail-item.on{background:var(--goldpale);color:var(--navy);font-weight:600;border:1px solid rgba(226,162,44,.5)}
.jrail-item.done .jrail-tick{color:var(--green);font-weight:600}
.jrail-tick{width:16px;flex:none;text-align:center}
.jrail-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jrail-count{font-family:var(--mono);font-size:11px;color:var(--mut)}
.jmain{min-width:0}
.jhead{margin:0 0 16px}
.jhead h2{font-size:clamp(22px,3.4vw,30px);margin-bottom:6px}
.jnav{margin-top:22px;padding-top:16px;border-top:1px solid var(--warmline)}
.stepcol{display:flex;flex-direction:column;gap:14px}
.jline .sayaloud,.jassistant .sayaloud{margin:6px 0 0;padding:0 0 0 14px;border-left:3px solid var(--gold);font-size:18px;line-height:1.5;font-weight:600;color:var(--navy)}
.jassistant{background:#E9F4F3;border-color:#BFDDDA;border-left:5px solid #3F8F8C}
.jassistant .sayaloud{border-left-color:#3F8F8C;font-style:italic;font-weight:500}
.jassistant .k-eyebrow{background:#DDEFEE;color:#2C6B68}
.jsubhead{font-size:15px;letter-spacing:0;text-transform:none;color:var(--slate);margin:6px 0 0}
.jhint{margin:0}
.jline .sayaloud{margin:0}
.jline .sayaloud+.sayaloud{margin-top:12px}
.jline .sayaloud.ar{font-family:var(--arfont);border-left:0;border-right:3px solid var(--gold);padding:0 14px 0 0;text-align:right}
.jcounterpart{border-left:5px solid #3F8F8C}
.jlead{margin:0 0 4px;color:var(--slate)}
.jnote{margin-top:8px;font-size:14.5px;line-height:1.5}
.jprompt .ptext.ar{font-family:var(--arfont);text-align:right}
.saymore{white-space:normal;text-align:left}
#gate-list ul{margin:8px 0 0 18px;padding:0}
#gate-list li{margin:4px 0}
.jprompt{padding:14px 16px 16px}
.jprompt .promptmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.jprompt .ptext{font-size:19px;line-height:1.5;font-weight:600;color:var(--navy)}
.jprompt .jgate{color:#9A6A12}
.readcard{margin-top:12px;background:#fff;border:1px solid var(--gold);border-radius:0;padding:18px 22px;font-size:26px;line-height:1.6;color:var(--navy)}
.readcard.ar{font-family:var(--arfont);font-size:30px;line-height:1.9;text-align:right}
.reccontrols{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.recbtn{min-width:160px}
.recbtn.rec{background:var(--red)}
.rectimer{font-family:var(--mono);font-size:20px;font-weight:600;color:var(--red);min-width:64px}
.meter.small{width:180px;height:34px;background:var(--navy);border-radius:0}
.takes{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.takerow{display:block;background:var(--cream);border-radius:0;padding:10px 12px}
.takerow.confirmed{background:#EFF4EA}
.takehead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.takelabel{font-family:var(--mono);font-size:12.5px;color:var(--navy2)}
.probes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px dashed var(--warmline)}
.probe{font-size:13.5px;color:var(--navy);background:var(--goldpale);border:1px solid rgba(226,162,44,.4);border-radius:0;padding:3px 10px}
.wdbox{margin-top:14px;border:1px solid var(--navy);border-radius:0;padding:10px 14px;display:inline-block}
.wdbox b{font-family:var(--mono);font-size:18px;letter-spacing:.06em}
.acctrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--warmline)}
.acctrow:first-child{border-top:0}
.radio-row{display:flex;align-items:flex-start;gap:8px;font-size:14px;font-weight:500;color:var(--ink);margin:8px 0}
.radio-row input{width:auto;margin-top:4px}
.modal{max-width:560px;width:calc(100vw - 32px)}
body.web .primer-card{margin-bottom:14px}
body.web .acsumrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0}

@media (max-width:900px){
  body.web .page.journey{grid-template-columns:1fr;gap:14px}
  .jrail{position:static;max-height:none;overflow:visible;display:flex;flex-wrap:wrap;gap:4px;padding:8px}
  .jrail-head{width:100%;border-bottom:0;margin:0 0 4px;padding:4px 6px}
  .jrail-item{padding:4px 8px;font-size:12px;border:1px solid var(--warmline)}
  .jrail-item .jrail-label{white-space:normal}
  body.web .formgrid{grid-template-columns:1fr}
  body.web #topcrumb{display:none}
  .readcard{font-size:22px}
  .readcard.ar{font-size:26px}
  .jprompt .ptext{font-size:17px}
  .meter.small{width:120px}
  .fb-n{width:40px;height:40px}
}
@media (max-width:480px){
  body.web .card,.jprompt{padding:14px}
  .recbtn{width:100%}
  .btnrow .btn{flex:1 1 auto}
}
/* topbar buttons sit on navy */
body.web #topright .btn-ghost{color:#EDF1F7;border-color:rgba(255,255,255,.35)}
body.web #topright .btn-ghost:hover:not(:disabled){background:rgba(255,255,255,.08);border-color:#fff}
body.web a.btn{text-decoration:none}
