/* stack-std (Nov 5 2026): Stacks page matched to the calculator standard (pills 24-30px, title 24px, 6-8px rhythm, cards 8px 12px / 18px) */
html body[data-page="stack"]{--sd-g:8px}
/* title + status + Rolodex/Studies: one compact block, the three pills on one row */
html body[data-page="stack"] .main>.page-head #stackLede[hidden],html body[data-page="stack"] .main>.page-head #stackLede:empty{display:none!important}
html body[data-page="stack"] .main>.page-head>div{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:15px 5px;width:100%}
html body[data-page="stack"] .main>.page-head #stackLede{flex:0 0 100%;margin:0!important}
html body[data-page="stack"] .stk-pause-row,html body[data-page="stack"] #stQuick{display:contents!important}
/* t8772: Pause/Activate Stack is a label-only brand pill, same box as Dosing Rolodex and Studies.
   The old status-dot gutter (22px left padding plus background-position:9px) slid the ring gradient
   so it repeated: a hard seam and a blue/pink join about 9px in, and the label sat right of center. */
html body[data-page="stack"] #stkPause,html body[data-page="stack"] #stRoloBtn,html body[data-page="stack"] #stDrBtn{height:26px!important;min-height:0!important;padding:0 9px!important;font-size:11.5px!important;font-weight:700!important;border-radius:999px!important;margin:0!important;white-space:nowrap!important;line-height:1!important;background-position:0 0!important;background-repeat:no-repeat!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
html body[data-page="stack"] #stkPause::before{content:none!important;display:none!important}
/* tabs: calculator segmented size (30px) */
html body[data-page="stack"] .stk-tabs{margin:0 auto var(--sd-g)!important;padding:2px!important;gap:2px!important;flex-wrap:nowrap!important;border-radius:999px!important}
html body[data-page="stack"] .stk-tabs [role="tab"]{min-height:30px!important;height:30px!important;padding:0 10px!important;font-size:13.5px!important;flex:1 1 auto!important}
/* List / Shot Mode and Active / Paused share one row */
html body[data-page="stack"] #panel-today{display:flex;flex-wrap:wrap;justify-content:center;column-gap:6px;align-content:flex-start}
html body[data-page="stack"] #panel-today>*{flex:0 0 100%;min-width:0}
html body[data-page="stack"] #panel-today>#viewSeg,html body[data-page="stack"] #panel-today>#stkPtWrap{flex:0 0 auto;margin:0 0 var(--sd-g)!important}
html body[data-page="stack"] #panel-today>#viewSeg[hidden]{display:none!important}
html body[data-page="stack"] #viewSeg{padding:2px!important;gap:2px!important}
html body[data-page="stack"] #viewSeg button{min-height:0!important;height:26px!important;min-width:0!important;padding:0 11px!important;font-size:12.5px!important;line-height:1!important}
html body[data-page="stack"] .stk-pt{padding:2px!important;gap:2px!important;width:auto!important}
html body[data-page="stack"] .stk-pt-tab{min-height:0!important;height:26px!important;padding:0 12px!important;font-size:12.5px!important;gap:5px!important;flex:0 0 auto!important}
html body[data-page="stack"] .stk-pt-n{min-width:16px!important;height:16px!important;font-size:10px!important;padding:0 4px!important;line-height:16px!important}
/* cards and sections: calculator card padding/radius and 8px rhythm */
html body[data-page="stack"] .stk-panel .card,html body[data-page="stack"] .stk-panel .card-grad{padding:8px 12px!important;border-radius:18px!important}
html body[data-page="stack"] .stk-panel>section,html body[data-page="stack"] .stk-panel>.card,html body[data-page="stack"] .stk-panel>div:not([hidden]){margin-top:0!important;margin-bottom:var(--sd-g)!important}
html body[data-page="stack"] .stk-panel h2{font-size:15px!important;line-height:1.2!important;margin-bottom:6px!important}
html body[data-page="stack"] .stk-panel .btn{min-height:0!important}
html body[data-page="stack"] .stk-panel .btn-sm{height:28px!important;padding:0 11px!important;font-size:13px!important}
html body[data-page="stack"] .stk-panel .btn:not(.btn-sm):not(.btn-2l){height:34px!important;padding:0 16px!important;font-size:14px!important}
html body[data-page="stack"] .stk-panel .pill{font-size:11px!important;padding:2px 8px!important;line-height:1.3!important}
html body[data-page="stack"] .stk-panel .input{min-height:0!important;height:34px!important}
/* My Stack card pill column: 26px pills like the calculator chips */
html body[data-page="stack"] #stackGrid .pause-tg,html body[data-page="stack"] #stackGrid .rolo-save-tg{min-height:0!important;height:26px!important;padding-top:0!important;padding-bottom:0!important;display:inline-flex!important;align-items:center!important;white-space:nowrap}
html body[data-page="stack"] #stackGrid .pause-tg{padding-left:22px!important;font-size:12px!important}
html body[data-page="stack"] #stackGrid .pause-tg::before{left:8px!important;width:10px!important;height:10px!important;margin-top:-5px!important}
html body[data-page="stack"] #stackGrid .pill-col{gap:5px!important}
/* Schedule & Log and Journal & Trackers: same calculator scale */
html body[data-page="stack"] .stk-panel .seg button{min-height:0!important;height:28px!important;padding:0 12px!important;font-size:13px!important;line-height:1!important}
html body[data-page="stack"] .stk-panel .seg{padding:2px!important;gap:2px!important}
html body[data-page="stack"] .stk-panel input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){min-height:0!important;height:34px!important;padding-top:0!important;padding-bottom:0!important}
html body[data-page="stack"] .stk-panel .chip:not(.site-chip){min-height:0!important;padding:5px 8px!important;font-size:12.5px!important;line-height:1.2!important}
html body[data-page="stack"] .stk-panel .chip.site-chip{min-height:0!important;padding:4px 2px!important;line-height:1.15!important}
html body[data-page="stack"] .stk-panel .pause-tg{min-height:0!important;height:26px!important;padding:0 10px 0 22px!important;font-size:12px!important}
html body[data-page="stack"] .stk-panel .pause-tg::before{left:8px!important;width:10px!important;height:10px!important;margin-top:-5px!important}
html body[data-page="stack"] .status-grid{gap:6px!important;margin-top:8px!important}
html body[data-page="stack"] .status-grid .s{padding:8px 10px!important;border-radius:12px!important}
html body[data-page="stack"] .stk-panel .head-actions,html body[data-page="stack"] .stk-panel [class*="-subnav"]{gap:6px!important}
html body[data-page="stack"] .stk-panel .cmp-tabs{gap:6px!important}
html body[data-page="stack"] .stk-panel .cmp-tabs button{min-height:0!important;height:28px!important;padding:0 12px!important;font-size:13px!important;line-height:1!important}
html body[data-page="stack"] .stk-panel .seg{width:max-content!important;max-width:100%}
html body[data-page="stack"] .stk-panel input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){box-sizing:border-box!important}
html body[data-page="stack"] #stackGrid .rolo-save-tg{padding-left:9px!important;padding-right:9px!important;font-size:11.5px!important}
html body[data-page="stack"] #stackGrid .pause-tg{font-size:11.5px!important;padding-right:9px!important}
html body[data-page="stack"] #stackGrid .vial,html body[data-page="stack"] #stackGrid .vial *{overflow-wrap:break-word!important;word-break:normal!important;hyphens:manual!important}
@media (max-width:379px){html body[data-page="stack"] #stkPause,html body[data-page="stack"] #stRoloBtn,html body[data-page="stack"] #stDrBtn{font-size:10.5px!important;padding:0 7px!important}
html body[data-page="stack"] .main>.page-head>div{column-gap:4px}}

html body[data-page="stack"] .main>.page-head{padding-bottom:var(--sd-g)!important}
html body[data-page="stack"] .main>.page-head h1{flex:0 0 100%}

/* ---- Nov 5 2026 round 2 (Erik voice) ---- */
/* (A) week grid: Add Compound + Add Doses to Calendar on one row, Export this week under it at the 24px pill scale */
html body[data-page="stack"] #pwWeek .wk-btnrow{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
html body[data-page="stack"] #pwWeek .wk-btnrow .btn{margin:0!important;width:auto!important;min-width:0!important;height:30px!important;min-height:0!important;padding:0 8px!important;font-size:12.5px!important;white-space:nowrap!important;border-radius:999px!important}
html body[data-page="stack"] main #pwWeek .wk-export-once{display:flex!important;width:max-content!important;margin:6px auto 0!important;height:24px!important;min-height:0!important;padding:0 10px!important;font-size:10.4px!important;font-weight:700!important;line-height:1!important;align-items:center;justify-content:center;border-radius:999px!important}
/* Daily Check-In: Save + Weekly report as two narrow pills on one row */
/* Daily Check-In Arc Dials (checkinarc1105 / Erik t8279u): Save + Weekly match Option 5 mockup */
html body[data-page="stack"] #checkin .ci-btnrow{display:flex;justify-content:center;gap:8px;margin-top:14px;flex-wrap:wrap}
html body[data-page="stack"] #checkin .ci-btnrow .btn{flex:0 1 auto!important;width:auto!important;margin:0!important;height:auto!important;min-height:40px!important;padding:0 16px!important;font-size:13.5px!important;white-space:nowrap!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html body[data-page="stack"] #checkin .ci-btnrow .ci-report{margin-top:0!important}
/* Commonly Discussed Together: collapsible, closed by default (same pattern and head style as the calculator's Library Reference, calc-combo.css libref1104) */
html body[data-page="stack"] #stackNotes.cc-coll.cc-closed>:not(.cc-collh){display:none!important}
html body[data-page="stack"] #stackNotes.cc-kbcoll>.kb-ref-head.cc-collh{cursor:pointer;position:relative;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;margin:0 0 8px;padding:6px 36px!important;min-height:44px;box-sizing:border-box;border-radius:12px!important;border:1px solid transparent;background:linear-gradient(90deg,rgba(230,25,230,.14),rgba(128,0,255,.14) 55%,rgba(0,128,255,.14)) padding-box,linear-gradient(#0E0E16,#0E0E16) padding-box,linear-gradient(90deg,#E619E6,#0080FF) border-box}
html body[data-page="stack"] #stackNotes.cc-kbcoll.cc-closed>.kb-ref-head.cc-collh{margin-bottom:0}
html body[data-page="stack"] #stackNotes.cc-kbcoll>.kb-ref-head.cc-collh h3{margin:0!important;font-size:15px!important}
html body[data-page="stack"] #stackNotes.cc-kbcoll>.kb-ref-head.cc-collh::after{content:'–';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#00DDEB;font-weight:800;font-size:20px}
html body[data-page="stack"] #stackNotes.cc-kbcoll.cc-closed>.kb-ref-head.cc-collh::after{content:'+'}
html body[data-page="stack"] #stackNotes.cc-kbcoll>.kb-ref-head.cc-collh:focus-visible{outline:2px solid #00DDEB;outline-offset:2px}
/* Supplies & Reorder: name/status left, Set Reminder pill right on the same row; tighter lab block */
html body[data-page="stack"] #supplies .sr-row{flex-direction:row!important;align-items:center!important;padding:6px 0!important;gap:8px!important}
html body[data-page="stack"] #supplies .sr-acts{flex:0 0 auto!important;flex-direction:row!important}
html body[data-page="stack"] #supplies .sr-acts .btn,html body[data-page="stack"] #supplies .sr-set{flex:0 0 auto!important;width:auto!important;height:26px!important;min-height:0!important;padding:0 11px!important;font-size:12px!important;border-radius:999px!important}
html body[data-page="stack"] #supplies .sr-head{margin-bottom:4px!important}
html body[data-page="stack"] #supplies .sr-head h2{font-size:15px!important;margin:0 0 2px!important}
html body[data-page="stack"] #supplies .sr-head p,html body[data-page="stack"] #supplies .sr-lab p{font-size:12.5px!important;line-height:1.35!important;margin-top:2px!important;margin-bottom:2px!important}
html body[data-page="stack"] #supplies .sr-lab{margin-top:8px!important;padding-top:8px!important}
html body[data-page="stack"] #supplies .sr-lab .sup-sec{margin-top:8px!important;padding-top:8px!important}
html body[data-page="stack"] #supplies .sr-lab h3,html body[data-page="stack"] #supplies .sr-lab h4{font-size:15px!important;margin:0 0 2px!important}
html body[data-page="stack"] #supplies .sr-lab .sup-addw,html body[data-page="stack"] #supplies .sr-lab .sup-rem,html body[data-page="stack"] #supplies .sr-lab .sup-fine{margin-top:6px!important;padding-top:6px!important}
html body[data-page="stack"] #supplies .sr-lab .btn{height:28px!important;min-height:0!important;padding:0 12px!important;font-size:12.5px!important;width:auto!important}
html body[data-page="stack"] #supplies .stock-row{min-height:0!important;padding:6px 10px!important;gap:8px!important;border-radius:12px!important}
html body[data-page="stack"] #supplies .stock-row b{font-size:13.5px!important}
html body[data-page="stack"] #supplies .stock-row small{font-size:11.5px!important}
html body[data-page="stack"] #supplies .sup-rem .stock-row{margin-bottom:6px!important}
/* (B) Journal & Trackers jump pills: all four on one row */
html body[data-page="stack"] .stk-jump{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;gap:5px!important}
html body[data-page="stack"] .stk-jump .btn{flex:0 0 auto!important;width:auto!important;height:26px!important;padding:0 9px!important;font-size:11.5px!important;white-space:nowrap!important;margin:0!important}
@media (max-width:379px){html body[data-page="stack"] .stk-jump{gap:4px!important}html body[data-page="stack"] .stk-jump .btn{padding:0 7px!important;font-size:10.4px!important}}
/* narrow cards: title + meta use the full width, the card pills sit in one centered row under them */
html body[data-page="stack"] #stackGrid .vial>.top{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}
html body[data-page="stack"] #stackGrid .vial>.top>.pill-col{flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:5px!important}
html body[data-page="stack"] #stackGrid .vial .bar-row{flex-wrap:wrap!important;white-space:normal!important;column-gap:6px!important;row-gap:0!important}
html body[data-page="stack"] #stackGrid .vial .bar-row>span{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
/* Compounds / Last 7 Days / Reorder Now: equal tiles, group centered, text centered by ink */
html body[data-page="stack"] #stackSummary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;justify-content:center!important;box-sizing:border-box}
html body[data-page="stack"] #stackSummary>.card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;margin:0!important;padding:8px 6px!important;border-radius:14px!important;min-width:0!important;box-sizing:border-box}
html body[data-page="stack"] #stackSummary>.card .label{margin:0!important;text-align:center!important;white-space:nowrap;font-size:11px!important;line-height:1.2!important}
html body[data-page="stack"] #stackSummary>.card .v{margin:2px 0 0!important;text-align:center!important;line-height:1.1!important}
html body[data-page="stack"] #stackNotes.cc-kbcoll.cc-closed{padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body[data-page="stack"] #stackNotes.cc-kbcoll.cc-closed::before,html body[data-page="stack"] #stackNotes.cc-kbcoll.cc-closed::after{display:none!important}
html body[data-page="stack"] #stackNotes.cc-kbcoll>.kb-ref-head.cc-collh h3{white-space:nowrap!important;font-size:14px!important}
html body[data-page="stack"] #supplies select,html body[data-page="stack"] #supplies .input{height:34px!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important}
/* List / Shot Mode / Active / Paused: four pills, identical 6px gaps (group trays removed so the gap between groups equals the gap inside them) */
html body[data-page="stack"] #panel-today>#viewSeg,html body[data-page="stack"] #stkPtWrap .stk-pt{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;gap:6px!important}
html body[data-page="stack"] #panel-today{column-gap:6px!important}
html body[data-page="stack"] #stkPtWrap{padding:0!important;border:0!important}
html body[data-page="stack"] #supplies .sr-row>:not(.sr-acts){flex:1 1 auto!important;min-width:0!important}
html body[data-page="stack"] #supplies .sr-row>:not(.sr-acts) *{white-space:normal!important;overflow-wrap:break-word}
html body[data-page="stack"] #supplies .sr-row{max-width:100%!important;box-sizing:border-box}
@media (max-width:420px){html body[data-page="stack"] .stk-jump{gap:4px!important}html body[data-page="stack"] .stk-jump .btn{padding:0 7px!important;font-size:10.4px!important}}
/* uploadpill1105 (Erik t8215u): two-line "Dosing Schedule Upload" pill grows to fit title + subtitle */
html body[data-page="stack"] .btn.btn-2l,html body .btn.btn-2l{height:auto!important;min-height:52px!important;padding:8px 16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;line-height:1.2!important;text-align:center!important;white-space:normal!important}
html body .btn.btn-2l .btn-main{display:block;line-height:1.2}
html body .btn.btn-2l .btn-sub{display:block;font-size:12px!important;line-height:1.2!important;font-weight:600;color:#C4C4D8}
