/* STC Charting Tutorial (v1.7.2): coach mark, step card, tutorial page, practice patient cards. */
.tut-ring{position:fixed;z-index:210;pointer-events:none;border-radius:12px;border:2.5px solid #C2410C;box-shadow:0 0 0 4px rgba(194,65,12,.28),0 0 0 9999px rgba(7,22,41,.32);transition:left .18s,top .18s,width .18s,height .18s;animation:tutPulse 1.6s ease-in-out infinite}
.tut-ring.nodim{box-shadow:0 0 0 4px rgba(194,65,12,.32)}
@keyframes tutPulse{50%{border-color:#E4A992}}
@media (prefers-reduced-motion:reduce){.tut-ring{animation:none;transition:none}}
.tut-card{position:fixed;z-index:220;right:18px;bottom:18px;width:370px;max-width:calc(100vw - 20px);max-height:min(560px,calc(100vh - 60px));display:flex;flex-direction:column;background:#fff;color:#0F1E36;border-radius:16px;box-shadow:0 18px 50px rgba(7,22,41,.32),0 0 0 1px rgba(11,31,58,.08);font:14px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;overflow:hidden}
.tut-card.at-top{bottom:auto;top:44px}
.tut-card .tut-h{display:flex;align-items:center;gap:8px;padding:10px 12px 8px 14px;background:linear-gradient(90deg,#0B1F3A,#1D3A63);color:#fff}
.tut-kick{font:700 11px/1 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#E4A992}
.tut-card .tut-n{margin-left:auto;font-size:12px;font-weight:600;opacity:.9}
.tut-x{border:0;background:rgba(255,255,255,.14);color:#fff;width:28px;height:28px;border-radius:8px;font-size:18px;line-height:1;cursor:pointer}
.tut-pbar{height:5px;background:#E2E8F0;border-radius:4px;overflow:hidden}
.tut-pbar i{display:block;height:100%;background:linear-gradient(90deg,#C2410C,#9A3412);border-radius:4px}
.tut-card>.tut-pbar{border-radius:0}
.tut-card h3{margin:10px 14px 4px;font:700 16px/1.25 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.01em}
.tut-b-in{padding:0 14px 6px;overflow-y:auto;flex:1 1 auto;min-height:0}
.tut-b-in p{margin:6px 0}
.tut-s{color:#475569;font-size:13px}
.tut-card blockquote{margin:6px 0;padding:8px 10px;border-left:3px solid #C2410C;background:#F1F4F9;border-radius:6px;font-size:13px}
.tut-ex{white-space:pre-wrap;margin:6px 0;padding:8px 10px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;font:12.5px/1.45 ui-monospace,Menlo,Consolas,monospace;color:#0F1E36}
.tut-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12.5px}
.tut-two>div{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;padding:7px 9px}
.tut-dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:6px 0;font-size:13px}
.tut-dl dt{font-weight:700;color:#9A3412}.tut-dl dd{margin:0}
.tut-read{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.tut-read span{background:#071629;color:#9EF5C8;border-radius:8px;padding:5px 8px;font-size:12.5px}
.tut-read b{color:#fff;font-size:14px}
.tut-form{display:grid;gap:8px;margin:8px 0}
.tut-form label{display:grid;gap:3px;font-size:12px;font-weight:600;color:#475569}
.tut-form input,.tut-form select{font:15px Inter,sans-serif;padding:8px 10px;border:1px solid #CBD5E1;border-radius:8px;min-height:40px;background:#fff;color:#0F1E36}
.tut-list{list-style:none;margin:6px 0;padding:0;display:grid;gap:4px}
.tut-list li{display:grid;grid-template-columns:auto 1fr;column-gap:8px;padding:5px 8px;border-radius:8px;border:1px solid #E2E8F0;font-size:12.5px}
.tut-list li b{grid-row:span 2}
.tut-list li span{color:#64748B}
.tut-list li::before{content:"○";color:#94A3B8;grid-row:span 2}
.tut-list li.ok::before{content:"✓";color:#9A3412;font-weight:700}
.tut-list li.now{border-color:#C2410C;background:#F1F4F9}
.tut-list li.now::before{content:"➜";color:#C2410C}
.tut-checks{display:grid;gap:5px;margin:6px 0}
.tut-checks label{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border:1px solid #E2E8F0;border-radius:8px;cursor:pointer}
.tut-checks input{width:18px;height:18px;margin-top:2px;accent-color:#9A3412;flex:none}
.tut-checks span{display:grid}.tut-checks small{color:#64748B}
.tut-row{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.tut-tip{margin:10px 0 6px;padding:8px 10px;border-radius:10px;background:#FFF7ED;border:1px solid #FED7AA;display:grid;gap:2px;font-size:12.5px}
.tut-tip b{color:#C2410C}
.tut-st{margin:0 14px;padding:0;font-size:13.5px;font-weight:600;min-height:0}
.tut-st:not(:empty){margin:6px 14px 0;padding:8px 10px;border-radius:10px}
.tut-st.ok{background:#ECFDF5;color:#047857;border:1px solid #A7F3D0}
.tut-st.hint{background:#FFFBEB;color:#92400E;border:1px solid #FDE68A;font-weight:500}
.tut-f{display:flex;align-items:center;gap:6px;padding:10px 12px;border-top:1px solid #E2E8F0;margin-top:8px}
.tut-f .sp{flex:1}
.tut-b{font:600 13px Inter,sans-serif;border:1px solid #CBD5E1;background:#fff;color:#0F1E36;border-radius:9px;padding:7px 12px;min-height:38px;cursor:pointer}
.tut-b.sm{min-height:30px;padding:4px 9px;font-size:12px}
.tut-b.pri{background:#9A3412;border-color:#9A3412;color:#fff}
.tut-b.ghost{border-color:transparent;color:#64748B}
.tut-b.done{background:#ECFDF5;border-color:#A7F3D0;color:#047857}
.tut-b:disabled{opacity:.45;cursor:not-allowed}
.tut-b:focus-visible,.tut-x:focus-visible{outline:3px solid #E4A992;outline-offset:2px}
.tut-card.min .tut-b-in{display:none}
.tut-card.min h3{margin-bottom:0}
.tut-card.min .tut-f{margin-top:0}
.tut-chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:#92400E;background:#FEF3C7;border:1px solid #FDE68A;border-radius:999px;padding:3px 9px;margin-right:6px;white-space:nowrap}
.tut-pill-r{position:fixed;z-index:130;right:16px;bottom:78px;display:grid;gap:1px;background:linear-gradient(90deg,#9A3412,#C2410C);color:#fff;border-radius:14px;padding:9px 14px;box-shadow:0 10px 26px rgba(7,22,41,.28);cursor:pointer;font:13px/1.25 Inter,sans-serif}
.tut-pill-r b{font-family:"Plus Jakarta Sans",Inter,sans-serif}
.tut-pill-r span{opacity:.92;font-size:12px}
/* tutorial page + cards */
.tut-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;align-items:start}
.tut-hero h2{margin:4px 0 6px;font-size:22px}
.tut-hero .tut-kick{color:#9A3412}
.tut-pt,.tut-crow{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #E2E8F0;border-radius:14px;background:linear-gradient(180deg,#F8FAFC,#fff)}
.tut-pt>div:last-child,.tut-cmain{display:grid;gap:4px;min-width:0}
.tut-pt small,.tut-cmain small{color:#64748B}
.tut-pt .btn{justify-self:start;margin-top:4px}
.tut-av{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font:700 16px "Plus Jakarta Sans",Inter,sans-serif;color:#fff;background:linear-gradient(135deg,#9A3412,#1D3A63)}
.tut-crow{align-items:center;flex-wrap:wrap}
.tut-cmain{flex:1 1 240px}
.tut-crow .btns{display:flex;flex-wrap:wrap;gap:6px}
.tut-census h2{display:flex;align-items:center;gap:8px}
.tut-pill{font-size:11px;font-weight:700;color:#047857;background:#ECFDF5;border:1px solid #A7F3D0;border-radius:999px;padding:2px 8px}
.tut-steps{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px}
.tut-steps li{display:flex;gap:8px;align-items:center;padding:8px 10px;border:1px solid #E2E8F0;border-radius:10px;font-weight:600;font-size:13.5px}
.tut-steps li span{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#F1F5F9;color:#475569;font-size:12px}
.tut-steps li.ok span{background:#ECFDF5}
.tut-steps li.now{border-color:#C2410C;background:#F1F4F9}
.tut-basics ul{margin:4px 0 0;padding-left:18px;display:grid;gap:6px}
.tut-dash{display:flex;gap:14px;align-items:center;margin-bottom:14px;border-left:4px solid #C2410C}
.tut-dash-i{flex:none;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#9A3412,#C2410C)}
.tut-dash-i svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tut-dash-t{flex:1;display:grid;gap:5px;min-width:0}
.tut-dash-t h2{margin:0}.tut-dash-t p{margin:0;color:#475569;font-size:13.5px}
.tut-done{display:grid;gap:8px;max-width:560px}
.tut-done h2{margin:0}
.tut-done-i{font-size:34px}
.tut-done .tut-steps{grid-template-columns:1fr 1fr}
.tut-donemodal{max-height:88vh;overflow-y:auto}
@media (max-width:860px){
  .tut-card{left:8px;right:8px;width:auto;bottom:calc(70px + env(safe-area-inset-bottom));max-height:44vh;border-radius:14px;font-size:13.5px}
  .tut-card.at-top{top:calc(48px + env(safe-area-inset-top));bottom:auto}
  .tut-card h3{font-size:15px;margin-top:8px}
  .tut-f{padding:8px 10px;margin-top:6px}
  .tut-pill-r{bottom:calc(126px + env(safe-area-inset-bottom));right:10px}
  .tut-hero{grid-template-columns:1fr}
  .tut-dash{flex-wrap:wrap}
  .tut-dash .btn{width:100%}
  .tut-done .tut-steps{grid-template-columns:1fr}
  .tut-two{grid-template-columns:1fr}
}
@media print{.tut-ring,.tut-card,.tut-pill-r{display:none!important}}
