/* ==============================================================
   Headquarters, the "software" look (2 Nov 2026).
   Everything is prefixed hq- so nothing else in the app moves.
   ============================================================== */
.view.hq-view{max-width:1180px}
.hq{display:flex;flex-direction:column;gap:20px;color:var(--ink)}
.hq *{box-sizing:border-box}
.hq-mono{font-family:inherit;letter-spacing:0;text-transform:none}
.hq-num{font-variant-numeric:tabular-nums}
.hq-label{font-size:14px;font-weight:600;color:var(--ink)}
.hq-gold{font-size:14px;font-weight:600;color:#8A6328}
.hq-foot{font-size:12.5px;color:#66736D;margin:0}
.hq-body{font-size:14px;line-height:1.55;color:var(--ink-2);margin:0}
.hq-lead{font-size:15px;line-height:1.5;margin:0}
.hq-big{font-size:30px;font-weight:600;letter-spacing:-.02em;line-height:1.1}

.hq-header{display:flex;flex-direction:column;gap:4px;padding-bottom:4px}
.hq-date{font-size:14px;color:var(--ink-3)}
.hq-hello{margin:0;font-size:34px;font-weight:600;letter-spacing:-.02em;line-height:1.15}

.hq-bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hq-bento>*,.hq-stats>*{min-width:0}
.hq-span2{grid-column:span 2}
.hq-span3{grid-column:span 3}
.hq-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}

/* cards */
.hq-card{background:#fff;border:1px solid #E6E0D4;border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:14px;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 1px 2px rgba(17,27,22,.04),0 12px 32px -20px rgba(17,27,22,.28);
  transition:box-shadow .2s ease,transform .2s ease}
.hq-card:hover{box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 1px 2px rgba(17,27,22,.05),0 18px 40px -20px rgba(17,27,22,.34);transform:translateY(-1px)}
.hq-cardhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

/* chips */
.hq-chip{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font:500 12px var(--font);font-variant-numeric:tabular-nums;white-space:nowrap}
.hq-chip.up{background:#E4F0E8;color:#1D5E40}
.hq-chip.down{background:#F8E7E4;color:#9A3529}
.hq-chip.flat{background:#EFEBE3;color:#4B5A53}
.hq-chip.gold{background:#F6EFE4;color:#7A5621}

/* buttons */
.hq-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;
  font:600 14px var(--font);border:0;cursor:pointer;white-space:nowrap;transition:filter .15s ease,background .15s ease}
.hq-btn.sm{min-height:38px;padding:0 14px;font-size:13px}
.hq-btn.gold{background:linear-gradient(180deg,#D4A85A,#B98431);color:#1A1205;box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 6px 16px -8px rgba(185,132,49,.8)}
.hq-btn.gold:hover{filter:brightness(1.05)}
.hq-btn.dark{background:var(--green);color:#F3EEE3;box-shadow:0 1px 0 rgba(255,255,255,.12) inset}
.hq-btn.dark:hover{background:var(--green-700)}
.hq-btn.plain{background:#fff;color:var(--ink);box-shadow:0 0 0 1px #E6E0D4 inset,0 1px 2px rgba(17,27,22,.05)}
.hq-btn.plain:hover{background:#FBF9F5}
.hq-btn:focus-visible,.hq-lesson:focus-visible{outline:2px solid #B98431;outline-offset:2px}

/* the stage */
.hq-hero{background-color:var(--green);color:#F3EEE3;border:1px solid #0E4A31;border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:24px;
  background-image:radial-gradient(520px 260px at 88% -10%,rgba(212,168,90,.28),transparent 65%),radial-gradient(rgba(243,238,227,.07) 1px,transparent 1.2px);
  background-size:auto,14px 14px;box-shadow:0 1px 0 rgba(243,238,227,.08) inset,0 24px 48px -28px rgba(0,45,27,.7)}
.hq-track{display:flex;gap:6px}
.hq-pip{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.hq-pipbar{height:4px;border-radius:4px;background:rgba(243,238,227,.14)}
.hq-pip.past .hq-pipbar{background:#C9A26B}
.hq-pip.now .hq-pipbar{background:#D4A85A}
.hq-pipname{font-size:12px;color:rgba(243,238,227,.6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hq-pip.now .hq-pipname{color:#E9CF97}
.hq-heroin{display:flex;gap:32px;align-items:center}
.hq-knot{width:200px;height:184px;flex:none;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(closest-side,rgba(212,168,90,.24),rgba(212,168,90,.06) 60%,transparent)}
.hq-knot .bk{width:184px;height:169px;display:block}
.hq-herotext{flex:1;display:flex;flex-direction:column;gap:12px;min-width:0}
.hq-prog{display:flex;align-items:center;gap:14px;margin-top:6px;flex-wrap:wrap}
.hq-progbar{flex:1 1 200px;max-width:360px;height:6px;border-radius:6px;background:rgba(243,238,227,.12);overflow:hidden}
.hq-progbar span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#B98431,#D4A85A);transition:width .8s ease}
.hq-progpct{font-size:15px;font-weight:600;color:#F3EEE3}
.hq-progsub{font-size:12.5px;color:rgba(243,238,227,.66)}
.hq-beltname{font-size:14px;font-weight:500;color:#E9CF97}
.hq-stagename{margin:0;font-size:30px;font-weight:600;letter-spacing:-.02em;color:#F3EEE3}
.hq-stageline{margin:0;font-size:15px;line-height:1.55;color:rgba(243,238,227,.8);max-width:540px}
.hq-ends{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:rgba(243,238,227,.05);box-shadow:0 0 0 1px rgba(243,238,227,.09) inset;color:#D4A85A}
.hq-ends svg{flex:none;margin-top:2px}
.hq-ends span{display:block;font-size:12.5px;font-weight:500;color:rgba(243,238,227,.62);margin-bottom:4px}
.hq-ends p{margin:0;font-size:14px;color:#F3EEE3;line-height:1.5}

/* the next thing */
.hq-next{background:linear-gradient(180deg,#FFFDF8,#fff)}
.hq-nexttitle{margin:0;font-size:22px;font-weight:600;letter-spacing:-.01em;line-height:1.25}
.hq-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hq-sentback{margin:0;font-size:14px;line-height:1.5;color:#7A3B32;background:#FBEFED;border-radius:10px;padding:10px 12px}
.hq-lesson{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#F7F3EA;border:0;text-align:left;cursor:pointer;font:inherit;color:inherit;width:100%}
.hq-lesson:hover{background:#F2ECDF}
.hq-lessonplay{width:40px;height:40px;border-radius:10px;background:var(--green);color:#D4A85A;display:flex;align-items:center;justify-content:center;flex:none}
.hq-lessontext{display:flex;flex-direction:column;gap:2px;min-width:0}
.hq-lessontext b{font-size:13px;font-weight:500}
.hq-lessontext span{font-size:12px;color:#66736D;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hq-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.hq-actions .hq-btn{flex:1}

/* waiting */
.hq-waitgrid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.hq-waitgrid.one{grid-template-columns:1fr}
.hq-wait{margin-top:10px;padding:10px 12px;border-radius:10px;font-size:13.5px}
.hq-wait b{display:block;font-weight:500}
.hq-wait span{display:block;font-size:12.5px;margin-top:3px}
.hq-wait.back{background:#FBEFED}.hq-wait.back span{color:#7A3B32}
.hq-wait.gus{background:var(--green-50)}.hq-wait.gus span{color:#66736D}

/* months owed */
.hq-owed{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 14px 12px 18px;border-radius:14px;
  background:#F6EFE4;border:1px solid #EADBC0}
.hq-owedtext{font-size:14px;color:#5E4319}
.hq-owedtext b{font-weight:600;color:#3F2C10;margin-right:4px}

/* the two numbers */
.hq-stat{gap:10px;padding:20px}
.hq-spark{width:100%;height:36px;display:block}
.hq-spark-empty{height:36px;border-bottom:1px dashed #E6E0D4}

/* the gold grid */
.hq-activity{gap:20px}
.hq-loading{min-height:280px;background:linear-gradient(90deg,#fff,#FBF8F2,#fff);background-size:200% 100%;animation:hqShimmer 1.4s ease infinite}
@keyframes hqShimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.hq-acthead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.hq-actlead{display:flex;flex-direction:column;gap:6px}
.hq-actstats{display:flex;gap:10px;flex-wrap:wrap}
.hq-mini{padding:10px 14px;border-radius:12px;background:#F7F3EA;display:flex;flex-direction:column;gap:2px}
.hq-mini b{font-size:16px;font-weight:600}
.hq-mini span{font-size:12px;color:#66736D}
.hq-grid{display:grid;gap:4px}
.hq-week{display:flex;flex-direction:column;gap:4px}
.hq-cell{display:block;aspect-ratio:1/1;border-radius:3px}
.hq-cell.l0{background:#ECE6DA}.hq-cell.l1{background:#EBD8AE}.hq-cell.l2{background:#D9B568}.hq-cell.l3{background:#BF8A2F}.hq-cell.l4{background:#8A6224}
.hq-cell.pre{background:transparent;box-shadow:0 0 0 1px #EFEAE0 inset}
.hq-cell.future{background:transparent}
.hq-actfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hq-months{flex:1;min-width:240px;display:grid;font-size:11.5px;color:#66736D}
.hq-months span{white-space:nowrap}
.hq-legend{display:flex;align-items:center;gap:4px;font-size:11px;color:#66736D}
.hq-legend .hq-cell{width:11px}

/* the check-in */
.hq-weeks{display:flex;gap:6px}
.hq-wk{flex:1;height:8px;border-radius:4px;background:#EFEBE3}
.hq-wk.in{background:#0E4A31}
.hq-wk.miss{background:#E0D9CC}
.hq-wk.due{background:#D4A85A}
.hq-wk.none{background:transparent;box-shadow:0 0 0 1px #EFEAE0 inset}
.hq-checkin .hq-btn{margin-top:auto}

/* the money */
.hq-cashside{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hq-bars{display:grid;gap:14px;align-items:end;height:200px;padding:0 4px;background-image:linear-gradient(#EFEBE3 1px,transparent 1px);background-size:100% 50px}
.hq-barcol{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}
.hq-barval{font-size:11px;color:#66736D;opacity:0;transition:opacity .15s ease;white-space:nowrap}
.hq-barcol:hover .hq-barval{opacity:1}
.hq-bar{display:block;width:100%;max-width:72px;border-radius:8px;background:linear-gradient(180deg,#0E4A31,#002D1B)}
.hq-bar.now{background:linear-gradient(180deg,#D4A85A,#B98431)}
.hq-barlabels{display:grid;gap:14px;padding:0 4px;font-size:11.5px;color:#66736D;text-align:center}

@media (max-width:980px){
  .hq-bento{grid-template-columns:minmax(0,1fr)}
  .hq-span2,.hq-span3{grid-column:auto}
  .hq-heroin{flex-direction:column;align-items:flex-start;gap:18px}
  .hq-knot{width:160px;height:148px}.hq-knot .bk{width:150px;height:138px}
}
@media (max-width:560px){
  .hq-stats{grid-template-columns:minmax(0,1fr)}
  .hq-hello{font-size:28px}
  .hq-hero,.hq-card{padding:20px}
  .hq-waitgrid{grid-template-columns:1fr}
  .hq-bars{gap:8px}.hq-barlabels{gap:8px}
}
@media (prefers-reduced-motion:reduce){
  .hq-card,.hq-progbar span{transition:none}
  .hq-card:hover{transform:none}
  .hq-loading{animation:none}
}
