
:root{--brand:#e3231f;--primary:#4a7ba6;--primary-dark:#3c6589;--primary-soft:rgba(74,123,166,.16);--danger:#c0675f;--ink:#16181d;--line:#e7e7e9;--bg:#f2f4f8;--muted:#6b6f76;}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;}
header{background:#fff;color:var(--ink);padding:14px 18px;position:sticky;top:0;z-index:5;border-bottom:1px solid var(--line);box-shadow:0 1px 4px rgba(15,23,42,.04);}
header .wrap{max-width:680px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.brandform{margin:0;}
.brand{font-weight:800;letter-spacing:.06em;font-size:18px;color:var(--ink);background:none;border:0;padding:0;cursor:pointer;}
.brand b{color:var(--brand);}
.brand:hover,.brand:active,.brand:focus{background:none;color:var(--ink);}
.logout{color:var(--muted);font-size:13px;font-weight:600;text-decoration:none;border:1px solid #d7d9dd;background:#fff;padding:7px 12px;border-radius:9px;white-space:nowrap;}
.logout:hover{color:var(--ink);border-color:#b9bcc2;}
main{max-width:680px;margin:0 auto;padding:18px 14px 30px;}
footer{max-width:680px;margin:0 auto;padding:8px 14px 50px;color:#aab;font-size:12px;text-align:center;}
footer a{color:inherit;font-size:inherit;text-decoration:underline;}
footer a:hover{color:var(--primary);}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.card.narrow{max-width:460px;margin:0 auto;}
h2{font-size:20px;margin:0 0 4px;}
.sub{color:var(--muted);font-size:14px;margin:0 0 18px;}
label{display:block;font-weight:700;margin:18px 0 4px;font-size:14px;}
.hint{color:var(--muted);font-size:12.5px;margin:0 0 8px;line-height:1.45;}
.req{color:var(--brand);font-weight:700;}
.opt{color:#9aa0a8;font-weight:400;font-size:12px;}
.cur{font-size:12.5px;color:#8a6d00;background:#fff7df;border:1px solid #f0e3b0;border-radius:8px;padding:8px 10px;margin:0 0 8px;overflow-wrap:anywhere;word-break:break-word;}
.cur span{font-weight:600;}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],textarea{width:100%;padding:12px 13px;border:1px solid #cfd1d4;border-radius:12px;font-size:16px;outline:none;font-family:inherit;background:#fff;}
input:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);}
textarea{resize:vertical;line-height:1.5;}
.urlfield{margin-top:8px;font-size:13px;}
input.file{width:100%;padding:12px;border:1.5px dashed #c7c9cc;border-radius:12px;background:#fafafa;font-size:14px;}
button{background:#e8f0f9;color:#3b74b8;border:1px solid #d4e3f3;border-radius:12px;padding:13px 22px;font-size:15px;font-weight:700;cursor:pointer;}
button:hover{background:#dce9f5;}
button:active{transform:translateY(1px);}
button.ghost{background:#f0f1f3;color:#4b5563;border-color:#e2e4e8;}
button.ghost:hover{background:#e6e8eb;}
button.danger{background:#fdecec;color:#c0392b;border-color:#f8d3d1;}
button.danger:hover{background:#fadfde;}
.actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap;}
/* CSS-only saving overlay (no JS — CSP). Visible ONLY while the submit button
   is pressed (:active) or focused (:focus). Chrome/Edge/Firefox keep the
   button focused while the POST is in flight, so the overlay stays up until
   the redirect lands; Safari never focuses buttons on click, so there it only
   flashes during the press. NO transitions/delays here — an earlier latch
   (9999s transition-delay) stuck forever on older Safari; a live-state-only
   rule cannot stick, on any browser. */
.saving{position:fixed;inset:0;z-index:60;display:none;align-items:center;justify-content:center;background:rgba(242,244,248,.78);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);pointer-events:none;}
.actions button:active~.saving,.actions button:focus~.saving{display:flex;}
.savingcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 30px;box-shadow:0 10px 30px rgba(15,23,42,.14);display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;max-width:320px;margin:0 16px;}
.savingcard b{font-size:16px;color:var(--ink);}
.savingcard .msg{color:var(--muted);font-size:13px;line-height:1.5;}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--primary-soft);border-top-color:var(--primary);animation:spin .8s linear infinite;margin-bottom:6px;}
@keyframes spin{to{transform:rotate(360deg)}}
.list{display:flex;flex-direction:column;gap:10px;}
.rowform,.backform,.addnew{margin:0;}
.rowbtn{width:100%;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:16px;font-weight:600;font-size:15px;display:flex;justify-content:space-between;align-items:center;text-align:left;}
.rowbtn:hover,.rowbtn:active,.rowbtn:focus{border-color:var(--primary);background:#f4f8fb;color:var(--ink);}
a.rowbtn{text-decoration:none;box-sizing:border-box;font-size:15px;}
.rl{display:flex;align-items:center;gap:11px;min-width:0;flex:1;}
.rlt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rr{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:10px;}
.rr .arrow{margin-left:0;}
.when{color:#9aa0a8;font-size:11px;font-weight:400;white-space:nowrap;}
.mi{width:1.15em;height:1.15em;flex:0 0 auto;}
.toolbtn{width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;align-items:center;gap:14px;color:var(--ink);font-weight:600;}
.ic2{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:35px;height:35px;border-radius:10px;}
.ic2 .mi{width:19px;height:19px;}
.mic{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:30px;height:30px;border-radius:9px;}
.mic .mi{width:16px;height:16px;}
/* faded TACT/Notion-style badges: soft tint bg + soft border + coloured icon */
.hb-blue{background:#e8f0f9;border:1px solid #d4e3f3;color:#3b74b8;}
.hb-violet{background:#f1ecfd;border:1px solid #e3d9fb;color:#7c4dd8;}
.hb-green{background:#e3f6ec;border:1px solid #cdecdc;color:#199d61;}
.hb-amber{background:#fdf3e0;border:1px solid #f8e5c0;color:#c07f10;}
.hb-red{background:#fdecec;border:1px solid #f8d3d1;color:#d64540;}
.hb-pink{background:#fdeaf0;border:1px solid #f9d2df;color:#e0447c;}
.hb-indigo{background:#eceafb;border:1px solid #dcd8f7;color:#5f5bd0;}
.hb-teal{background:#e2f4f8;border:1px solid #c9e9f0;color:#1f96b3;}
.hb-cyan{background:#e3f4fc;border:1px solid #cdeaf8;color:#2492c9;}
.hb-mint{background:#e0f7f5;border:1px solid #c6efec;color:#0da79e;}
.hb-orange{background:#fdefe2;border:1px solid #f9dfc4;color:#d97e14;}
.hb-brown{background:#f4ede4;border:1px solid #e9dcc9;color:#8d6b45;}
.hb-gray{background:#f0f1f3;border:1px solid #e2e4e8;color:#6b7280;}
.toolbtn:hover,.toolbtn:active,.toolbtn:focus{border-color:var(--primary);background:#f4f8fb;color:var(--ink);}
a.toolbtn{text-decoration:none;font-size:15px;box-sizing:border-box;}
.toolbtn .t{display:flex;flex-direction:column;text-align:left;flex:1;min-width:0;}
.toolbtn .t small{color:var(--muted);font-weight:400;font-size:12.5px;margin-top:2px;}
.toolbtn.disabled{opacity:.5;cursor:default;}
.arrow{color:var(--primary);font-size:22px;margin-left:10px;}
.toolbtn.person{padding:13px 15px;} .toolbtn.person .t b{display:flex;align-items:center;gap:8px;flex-wrap:wrap;} .toolbtn.person .rolebadge,.toolbtn.person .pwchip{margin:0;vertical-align:0;}
.psec{border-top:1px solid var(--line);padding:16px 0 4px;}
.swrow{display:flex;align-items:center;justify-content:space-between;gap:16px;} .swtext{min-width:0;} .swrow form{margin:0!important;}
.psec .sw{display:block!important;position:relative!important;box-sizing:border-box!important;width:52px!important;min-width:52px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border:0!important;border-radius:999px!important;background:#d7dbe0!important;box-shadow:none!important;cursor:pointer;flex:none;transition:background .15s;}
.psec .sw::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .15s;}
.psec .sw.on{background:#34c759!important;} .psec .sw.on::after{left:23px;} .psec .sw.dis{opacity:.45;cursor:default;} .psec h3{margin:0 0 6px;font-size:15px;} .psec .note{margin:0 0 10px;} .psec form{margin-bottom:10px;}
.items{display:flex;flex-direction:column;gap:10px;margin-bottom:18px;}
.item{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:13px 15px;}
.itemtext{display:flex;flex-direction:column;min-width:0;}
.itemtext strong{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.itemtext strong .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.itemtext > span{color:var(--muted);font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.itemact{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;}
button.mini{padding:9px 14px;font-size:13px;background:#e8f0f9;color:#3b74b8;border:1px solid #d4e3f3;}
button.mini:hover{background:#dce9f5;}
button.mini.ghost{background:#f0f1f3;color:#4b5563;border-color:#e2e4e8;}
button.mini.ghost:hover{background:#e6e8eb;}
button.mini.mv{background:#f1ecfd;color:#7c4dd8;border-color:#e3d9fb;}
button.mini.mv:hover{background:#e9e1fb;}
button.mini.danger{background:#fdecec;color:#c0392b;border-color:#f8d3d1;}
button.mini.danger:hover{background:#fadfde;}
button.add{background:#fff;color:var(--primary);border:1.5px dashed var(--primary);width:100%;}
.viewpage{display:block;margin-top:14px;text-align:center;font-size:12.5px;font-weight:400;color:var(--muted);text-decoration:none;}
.viewpage:hover{color:var(--primary);text-decoration:underline;}
.linkback{background:#f1f2f4;color:var(--ink);padding:9px 15px;border-radius:10px;font-weight:600;font-size:14px;display:inline-block;margin-bottom:16px;}
.linkback:hover{background:#e6e7ea;}
/* dashboard */
.dash{display:flex;flex-direction:column;gap:12px;}
.dcard{background:#fff;border:1px solid #e4e8ee;border-radius:18px;padding:16px;box-shadow:0 1px 3px rgba(15,23,42,.06);}
.dhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;}
.dhead h3{font-size:15.5px;font-weight:800;letter-spacing:-.01em;margin:0;}
.dtag{font-size:9.5px;font-weight:800;color:#98a2b3;text-transform:uppercase;letter-spacing:.1em;white-space:nowrap;}
.alist{border-top:1px solid #eef1f4;margin-top:2px;}
.arow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f2f4f7;font-size:13px;font-weight:600;}
.arow:last-child{border-bottom:0;}
.arow .an{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.arow i{font-style:normal;color:var(--muted);font-weight:400;font-size:12px;white-space:nowrap;}
.note{color:var(--muted);font-size:13px;margin:4px 0 10px;line-height:1.5;}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
.tile2{background:#fff;border:1px solid #e4e8ee;border-radius:16px;padding:13px 14px;display:flex;flex-direction:column;gap:3px;min-width:0;box-shadow:0 1px 3px rgba(15,23,42,.06);}
.t2top{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.t2top small{color:var(--muted);font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tile2 b{font-size:24px;line-height:1.15;letter-spacing:-.01em;}
.t2sub{font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:5px;}
.t2sub i{font-style:normal;}
.ibadge{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.ibadge .mi{width:17px;height:17px;}
.ib-blue{background:#e6eef6;border:1px solid #d4e2ef;color:#3c6589;}
.ib-green{background:#e1f5ec;border:1px solid #c9ecdc;color:#0e8a5f;}
.ib-amber{background:#fdf1dd;border:1px solid #f7e3bd;color:#b97d0c;}
.ib-violet{background:#f1ecfd;border:1px solid #e4daf9;color:#7c4dd8;}
.ib-cyan{background:#e0f5fa;border:1px solid #c6ebf3;color:#0e7f9d;}
.delta{font-size:11.5px;font-weight:800;white-space:nowrap;}
.delta.up{color:#12995b;}
.delta.down{color:#d13530;}
.delta.flat{color:var(--muted);}
.spark{width:100%;height:22px;margin-top:2px;}
.spark polyline{stroke:var(--primary);}
.linechart{width:100%;height:auto;display:block;}
.gline{stroke:#eef1f4;stroke-width:1;}
.larea{fill:rgba(74,123,166,.13);}
.lline{stroke:var(--primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.lpt{fill:#fff;stroke:var(--primary);stroke-width:1.6;}
.linechart .upd{fill:#f59e0b;}
.axis{fill:var(--muted);font-size:9px;font-family:inherit;}
.legend{color:var(--muted);font-size:11.5px;margin:2px 0 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.sw{display:inline-block;width:14px;height:3px;border-radius:2px;background:#c9d9e8;}
.sw.line{background:var(--primary);}
.sw.dotleg{background:#f59e0b;border-radius:50%;width:8px;height:8px;}
.errdetail{color:#b0b4ba;font-size:10.5px;line-height:1.5;overflow-wrap:anywhere;margin:2px 0 0;}
.donutrow{display:flex;align-items:center;gap:18px;margin:2px 0 12px;}
.donut{width:108px;height:108px;flex:0 0 auto;}
.dhole{fill:none;stroke:#eef1f4;stroke-width:6.5;}
.dseg{fill:none;stroke-width:6.5;}
.dseg.sg{stroke:#5bc08a;}
.dseg.sy{stroke:#f0c25e;}
.dseg.sr{stroke:#e8877f;}
.dseg.s0{stroke:#7ba4cb;}.dseg.s1{stroke:#5cc99c;}.dseg.s2{stroke:#f2c063;}.dseg.s3{stroke:#ab90e8;}.dseg.s4{stroke:#66c8de;}.dseg.s5{stroke:#b6bfca;}
.cdot.s0{background:#7ba4cb;}.cdot.s1{background:#5cc99c;}.cdot.s2{background:#f2c063;}.cdot.s3{background:#ab90e8;}.cdot.s4{background:#66c8de;}.cdot.s5{background:#b6bfca;}
.dcenter{font-size:9.5px;font-weight:800;fill:var(--ink);font-family:inherit;}
.dcenter2{font-size:3.4px;fill:var(--muted);font-family:inherit;letter-spacing:.04em;}
.dlegend{min-width:0;}
.dlegend p{margin:5px 0;font-size:13px;display:flex;align-items:center;gap:8px;}
.dlegend b{font-size:14px;}
.kv{font-size:13.5px;margin:2px 0 8px;}
.kv b{font-size:15px;}
.kv small{color:var(--muted);font-weight:400;}
.kv.bad{color:#c41a16;font-weight:700;}
.kv.good2{color:#1c7a1c;font-weight:700;}
.brows{display:flex;flex-direction:column;gap:7px;margin:4px 0 6px;}
.brow{display:grid;grid-template-columns:minmax(90px,38%) 1fr 34px;align-items:center;gap:8px;font-size:12.5px;}
.brow .bt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.brow .bn{text-align:right;font-weight:700;color:var(--primary-dark);}
.hbar{width:100%;display:block;overflow:visible;}
.hbar .hbg{fill:#eef1f4;}
.hbar .hfill{fill:var(--primary);}
.hbar .hf0{fill:#7ba4cb;}.hbar .hf1{fill:#5cc99c;}.hbar .hf2{fill:#f2c063;}.hbar .hf3{fill:#ab90e8;}.hbar .hf4{fill:#66c8de;}.hbar .hf5{fill:#f096ba;}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:600;background:#fff;white-space:nowrap;}
.chip i{font-style:normal;color:var(--muted);font-weight:400;font-size:11px;}
.cdot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:0 0 auto;}
.cdot.g{background:#5bc08a;}
.cdot.y{background:#f0c25e;}
.cdot.r{background:#e8877f;}
.hchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
.hchip{display:inline-block;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:600;background:#f1f3f5;color:var(--ink);white-space:nowrap;}
.hchip.warn{background:#fdf1e3;color:#9a5b00;}
.hchip.ok{background:#e7f6e7;color:#1c7a1c;}
.brokenlink{font-size:12px;color:#9a3b36;margin:2px 0;overflow-wrap:anywhere;}
.recent{margin-top:8px;border-top:1px dashed var(--line);padding-top:8px;}
/* Stats page (Website | Social) — scoped st* classes; only this page widens on desktop */
.sttop{display:flex;flex-direction:column;gap:12px;margin:0 0 14px;}
.sttop h2{font-size:24px;font-weight:800;letter-spacing:-.02em;}
.sttop .sub{margin:0;}
.stseg{display:flex;background:#e6e9ef;border-radius:12px;padding:3px;gap:2px;}
.stseg a{flex:1;text-align:center;padding:8px 16px;border-radius:9px;font-size:13.5px;font-weight:700;color:#5b6472;text-decoration:none;white-space:nowrap;}
.stseg a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,23,42,.12);}
.stsegwrap{margin:0 0 14px;}
.stgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
.stcol{display:flex;flex-direction:column;gap:12px;min-width:0;}
.sthd{display:flex;align-items:center;gap:11px;margin:0 0 14px;}
.sthd .t{flex:1;min-width:0;display:flex;flex-direction:column;}
.sthd .t b{font-size:15.5px;font-weight:800;letter-spacing:-.01em;}
.sthd .t small{color:var(--muted);font-size:12.5px;}
.stpill,.stok{display:inline-block;border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:700;white-space:nowrap;}
.stpill{background:#f0f1f3;color:#6b7280;border:1px solid #e2e4e8;}
.stok{background:#e7f6ec;color:#1f8a4c;border:1px solid #cfeedb;}
.stnote{margin:0;}
.stlbl,.stmini small,.sttable th{font-size:9.5px;font-weight:800;color:#98a2b3;text-transform:uppercase;letter-spacing:.1em;}
.stmini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 4px;}
.stmini.two{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;}
.stmini div{background:#f7f8fa;border:1px solid #e4e8ee;border-radius:12px;padding:10px 12px;min-width:0;}
.stmini small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stmini b{display:block;font-size:19px;font-weight:800;margin-top:2px;}
.stdelta{display:block;font-size:11.5px;font-weight:700;color:#1f8a4c;}
.stlbl{margin:16px 0 8px;}
.stsubl{color:var(--muted);font-size:12.5px;margin:0 0 6px;}
/* YouTube: by-type rows + all-videos list (phone: 2-line title cell + 3 icon columns; desktop: table) */
.stmini.four{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 4px;}
.stpt{display:inline-block;border-radius:999px;padding:1px 7px;font-size:10.5px;font-weight:700;border:1px solid;white-space:nowrap;line-height:1.5;}
.stpt.live{background:#e3f6ec;border-color:#cdecdc;color:#199d61;}
.stpt.short{background:#fdeaf0;border-color:#f9d2df;color:#d63a72;}
.stpt.video{background:#e8f0f9;border-color:#d4e3f3;color:#3b74b8;}
.sttypes{display:flex;flex-direction:column;gap:9px;}
.sttype{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:12.5px;}
.sttype .stpt{justify-self:start;}
.sttn{color:var(--muted);white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;}
.sttn b{color:var(--ink);}
.hbar.sttbar .hbg{fill:#f0f1f3;}
.hbar.sttbar .live{fill:#7fd3a8;}.hbar.sttbar .video{fill:#9ab8d6;}.hbar.sttbar .short{fill:#f3a3c1;}
.stvlist{display:flex;flex-direction:column;}
.stvr{display:grid;grid-template-columns:minmax(0,1fr) 46px 34px 34px;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #eef0f3;font-size:12.5px;}
.stvr .stc-d,.stvr .stc-t{display:none;}
.stc-v{min-width:0;display:flex;flex-direction:column;gap:2px;}
.stvt{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:13px;}
.stvt i{display:none;}
.stvm{color:var(--muted);font-size:11.5px;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;}
.stn{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
b.stn{font-weight:700;}
.stvr.sthdr{border-top:0;padding:0 0 6px;font-size:9.5px;font-weight:800;color:#98a2b3;text-transform:uppercase;letter-spacing:.1em;}
.sthdr .stc-v{visibility:hidden;}
.stic{display:inline-flex;justify-content:flex-end;color:#98a2b3;}
.stic .mi{width:15px;height:15px;}
.stlw{display:none;}
.stlbl.stwk{margin:14px 0 2px;}
.stsoc{display:flex;flex-direction:column;gap:12px;}
@media (max-width:480px){.stmini.four{gap:6px;}.stmini.four div{padding:9px 8px;}.stmini.four small{letter-spacing:.03em;font-size:9px;}.stmini.four b{font-size:17px;}}
.strow3{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
.sttable{width:100%;border-collapse:collapse;font-size:13px;margin-top:12px;}
.sttable th{text-align:right;padding:0 0 6px;}
.sttable td{text-align:right;padding:8px 0;border-top:1px solid #eef0f3;font-variant-numeric:tabular-nums;}
.sttable th:first-child,.sttable td:first-child{text-align:left;}
.sttable td:first-child{font-weight:600;}
.stfoot{color:var(--muted);font-size:12px;line-height:1.5;margin:10px 0 0;}
.stcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:8px;border-top:1px dashed var(--line);}
.stcols .stlbl{margin:12px 0 4px;}
.kv.stwarn{color:#9a5b00;font-weight:700;}
.stupd{text-align:center;color:#98a2b3;font-size:12px;margin:6px 0 0;}
@media (min-width:900px){
body.stwide main,body.stwide header .wrap,body.stwide footer{max-width:1040px;}
.sttop{flex-direction:row;justify-content:space-between;align-items:flex-end;}
.sttop .stseg{min-width:240px;}
.sttiles{grid-template-columns:repeat(4,minmax(0,1fr));}
.stgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
.strow3{grid-template-columns:repeat(3,minmax(0,1fr));}
.stvr{grid-template-columns:62px 62px minmax(0,1fr) 70px 56px 76px;gap:12px;font-size:13px;}
.stvr .stc-d,.stvr .stc-t{display:block;}
.stc-d{color:var(--muted);white-space:nowrap;}
.stvm{display:none;}
.stvt i{display:inline;font-style:normal;font-weight:400;color:var(--muted);}
.sthdr .stc-v{visibility:visible;}
.sthdr .stic{display:none;}
.sthdr .stlw{display:inline;}
}
/* Social tab v3: period bar, overview tiles, IG/FB, followers; Settings tab */
.stbar{display:flex;flex-direction:column;gap:8px;}
.strange{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;}
.strange .mi{width:15px;height:15px;}
.stov{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.stovt{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px;display:flex;flex-direction:column;gap:2px;min-width:0;}
.stovt.tot{grid-column:1 / -1;}
.stovh{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#5b6472;margin-bottom:4px;}
.stbig{font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums;}
.stmut{color:var(--muted);font-size:12.5px;}
.stmut b{color:var(--ink);}
b.stup{color:#1f8a4c;}
.ststk{height:8px;border-radius:99px;overflow:hidden;margin-top:9px;background:#f0f1f3;}
.ststk svg{display:block;width:100%;height:8px;}
.ststk .yt{fill:#ef9a94;}.ststk .ig{fill:#f0a0c2;}.ststk .fb{fill:#9ab8d6;}
.stleg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:#5b6472;margin-top:6px;}
.stleg span{display:inline-flex;align-items:center;gap:5px;}
.stdot{display:inline-block;width:8px;height:8px;border-radius:99px;}
.stdot.yt{background:#ef9a94;}.stdot.ig{background:#f0a0c2;}.stdot.fb{background:#9ab8d6;}
.stsm{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
.stchips{display:flex;flex-wrap:wrap;gap:8px;}
.stchip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e4e8ee;border-radius:10px;padding:6px 10px;font-size:13px;color:#5b6472;background:#fff;}
.stchip b{color:var(--ink);}
.stchip .mi{width:15px;height:15px;color:#98a2b3;}
.stpt.reel{background:#fdeaf0;border-color:#f9d2df;color:#d63a72;}
.stpt.car{background:#f1ecfd;border-color:#e3d9fb;color:#7c4dd8;}
.stpt.photo{background:#fdf3e0;border-color:#f8e5c0;color:#b27610;}
.stpt.igvid{background:#e8f0f9;border-color:#d4e3f3;color:#3b74b8;}
.stvt a{color:inherit;text-decoration:none;}
.stvt a:hover{text-decoration:underline;}
.strow2{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
.stfl{display:flex;flex-direction:column;gap:8px;}
.stflr{display:flex;align-items:center;gap:10px;border:1px solid #eef0f3;border-radius:12px;padding:9px 11px;}
.stflr .t{flex:1;min-width:0;display:flex;flex-direction:column;font-weight:700;font-size:13.5px;}
.stflr .t small{font-weight:400;color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stflr>b{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;}
.stupd a{color:#3b74b8;font-weight:700;text-decoration:none;}
.stnote a{color:#3b74b8;font-weight:700;text-decoration:none;}
.stpill.warn{background:#fdf3e0;color:#9a5b00;border-color:#f8e5c0;}
.stkv{display:grid;grid-template-columns:minmax(0,1fr);font-size:13.5px;margin:0;}
.stkv dt{color:var(--muted);font-size:12px;margin-top:10px;}
.stkv dd{margin:0;font-weight:600;overflow-wrap:anywhere;}
.stkv dd .stmut{font-weight:400;}
.stwarnt{color:#9a5b00;}
.stwarnbox{background:#fdf3e0;border:1px solid #f8e5c0;color:#7d520d;border-radius:12px;padding:10px 12px;font-size:12.5px;line-height:1.5;margin:16px 0 0;}
.stsetform label{margin-top:4px;}
.stsetform textarea{font-family:ui-monospace,Menlo,monospace;font-size:13px;}
.stsetform .stsubl{margin:8px 0 14px;}
.ststeps{margin:0;padding-left:20px;font-size:13px;line-height:1.7;color:#3f434a;}
@media (min-width:900px){
.stbar{flex-direction:row;justify-content:space-between;align-items:center;}
.stbar .stseg{min-width:240px;}
.stov{grid-template-columns:1.35fr 1fr 1fr 1fr;}
.stovt.tot{grid-column:auto;}
.strow2{grid-template-columns:repeat(2,minmax(0,1fr));}
.stkv{grid-template-columns:170px minmax(0,1fr);gap:9px 14px;}
.stkv dt{margin-top:0;}
}
/* Stats v4: instant switches (hidden radios + CSS), attendance, AI assistant, IG shares */
.swr{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
.swp{display:none;}
.tbr0:checked~.tbp0,.tbr1:checked~.tbp1,.tbr2:checked~.tbp2,.tbr3:checked~.tbp3,.tbr4:checked~.tbp4,.prr0:checked~.prp0,.prr1:checked~.prp1,.prr2:checked~.prp2,.prr3:checked~.prp3,.prr4:checked~.prp4,.apr0:checked~.app0,.apr1:checked~.app1,.apr2:checked~.app2,.apr3:checked~.app3,.apr4:checked~.app4,.air0:checked~.aip0,.air1:checked~.aip1,.air2:checked~.aip2,.air3:checked~.aip3,.air4:checked~.aip4{display:block;}.tbr0:checked~* .tbl0,.tbr1:checked~* .tbl1,.tbr2:checked~* .tbl2,.tbr3:checked~* .tbl3,.tbr4:checked~* .tbl4{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,23,42,.12);}
.stseg label{flex:1;margin:0;line-height:normal;text-align:center;padding:8px 16px;border-radius:9px;font-size:13.5px;font-weight:700;color:#5b6472;white-space:nowrap;cursor:pointer;user-select:none;}
.stseg label.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,23,42,.12);}
.sttabs a{flex:0 0 auto;}
.swg>.swp>.dash,.swg>.swp>.stsoc{margin:0;}
.stupt{color:#1f8a4c;font-weight:700;}
.stbar.aibar{margin:0 0 12px;}
.stsum{display:flex;flex-direction:column;gap:12px;}
.stsuml{display:flex;align-items:center;gap:12px;}
.stsuml .ic2{width:44px;height:44px;border-radius:12px;}
.stsuml b{display:block;font-size:16px;font-weight:800;}
.stsuml small{display:block;color:var(--muted);font-size:12.5px;}
.stsum form{margin:0;}
.stsrcs{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
.stsrc .sthd{margin-bottom:12px;}
.stfacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.stfacts div{background:#f7f8fa;border:1px solid #e4e8ee;border-radius:10px;padding:8px 10px;min-width:0;}
.stfacts small{display:block;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stfacts b{display:block;font-size:14px;font-weight:700;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stlock{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12.5px;margin:12px 0 0;}
.stlock .mi{width:14px;height:14px;color:#98a2b3;flex:0 0 14px;}
.stprob{background:#fdf3e0;border:1px solid #f8e5c0;color:#7d520d;border-radius:10px;padding:8px 10px;font-size:12.5px;line-height:1.45;margin:10px 0 0;}
.stchg{border-top:1px solid #eef0f3;margin-top:12px;padding-top:10px;}
.stchg summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:13.5px;font-weight:700;color:#3b74b8;min-height:32px;}
.stchg summary::-webkit-details-marker{display:none;}
.stchev{display:inline-block;transition:transform .15s;font-size:18px;line-height:1;}
.stchg[open] .stchev{transform:rotate(90deg);}
.stchgb{padding-top:6px;}
.stchgb .stsetform label:first-of-type{margin-top:4px;}
.stsetform input[type=url],.stsetform input[type=text],.stsetform input[type=password]{width:100%;box-sizing:border-box;font-size:13px;}
.stkv code{font-size:12px;}
.stwarnt{font-weight:700;}
.stvr.s4{grid-template-columns:minmax(0,1fr) 46px 34px 34px 34px;}
.stsh{color:#1f8a4c;}
.atthero{display:flex;flex-direction:column;gap:14px;}
.atthl{display:flex;align-items:center;gap:12px;}
.atthl .ic2{width:44px;height:44px;border-radius:12px;}
.atthl small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;}
.attbig{display:flex;align-items:baseline;gap:8px;}
.attbig b{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums;}
.attbig span{color:var(--muted);font-size:13.5px;}
.atthc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.attc{border-radius:12px;padding:9px 12px;border:1px solid;min-width:0;}
.attc small{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.attc b{display:block;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;}
.attc span{display:block;font-size:11.5px;color:var(--muted);}
.attc.a{background:#fbf3e8;border-color:#f1e0c6;}.attc.a small{color:#8a6a3d;}
.attc.b{background:#edf3fa;border-color:#d6e3f2;}.attc.b small{color:#3e6a9e;}
.attc.g{background:#f6f7f9;border-color:#e4e8ee;}.attc.g small{color:#6b7280;}
.attph{display:flex;flex-direction:column;gap:10px;margin:0 0 14px;}
.attph b{display:block;font-size:15.5px;font-weight:800;}
.attph small{color:var(--muted);font-size:12.5px;}
.attleg{margin:14px 0 8px;}
.chdash{display:inline-block;width:16px;border-top:2px dashed #8e8e93;}
.stdot.att-a{background:#f2c48d;}.stdot.att-b{background:#7fa7d6;}.stdot.att-t{background:#9db8de;}
.att-a{fill:#f2c48d;}.att-b{fill:#7fa7d6;}.att-t{fill:#9db8de;}.ai-m{fill:#b7a6db;}.ai-c{fill:#a8d5c2;}
.hbar.sttbar .aiweb{fill:#b7a6db;}.hbar.sttbar .aiphone{fill:#d8cfec;}.hbar.sttbar .aichat{fill:#a8d5c2;}
.stch{display:flex;gap:6px;}
.stchax{width:30px;flex:0 0 30px;height:220px;display:flex;flex-direction:column;justify-content:space-between;font-size:10.5px;color:#98a2b3;text-align:right;}
.stchax span{line-height:0;}
.stchpl{flex:1;min-width:0;}
.stchsvg,.stchx{display:block;overflow:visible;}
.chhit{fill:transparent;}
.chb:hover rect:not(.chhit){opacity:.78;}
.cht{display:none;pointer-events:none;}
.stchsvg:has(.chb0:hover) .cht0,.stchsvg:has(.chb1:hover) .cht1,.stchsvg:has(.chb2:hover) .cht2,.stchsvg:has(.chb3:hover) .cht3,.stchsvg:has(.chb4:hover) .cht4,.stchsvg:has(.chb5:hover) .cht5,.stchsvg:has(.chb6:hover) .cht6,.stchsvg:has(.chb7:hover) .cht7,.stchsvg:has(.chb8:hover) .cht8,.stchsvg:has(.chb9:hover) .cht9,.stchsvg:has(.chb10:hover) .cht10,.stchsvg:has(.chb11:hover) .cht11,.stchsvg:has(.chb12:hover) .cht12,.stchsvg:has(.chb13:hover) .cht13,.stchsvg:has(.chb14:hover) .cht14,.stchsvg:has(.chb15:hover) .cht15,.stchsvg:has(.chb16:hover) .cht16,.stchsvg:has(.chb17:hover) .cht17,.stchsvg:has(.chb18:hover) .cht18,.stchsvg:has(.chb19:hover) .cht19,.stchsvg:has(.chb20:hover) .cht20,.stchsvg:has(.chb21:hover) .cht21,.stchsvg:has(.chb22:hover) .cht22,.stchsvg:has(.chb23:hover) .cht23,.stchsvg:has(.chb24:hover) .cht24,.stchsvg:has(.chb25:hover) .cht25,.stchsvg:has(.chb26:hover) .cht26,.stchsvg:has(.chb27:hover) .cht27,.stchsvg:has(.chb28:hover) .cht28,.stchsvg:has(.chb29:hover) .cht29,.stchsvg:has(.chb30:hover) .cht30,.stchsvg:has(.chb31:hover) .cht31,.stchsvg:has(.chb32:hover) .cht32,.stchsvg:has(.chb33:hover) .cht33,.stchsvg:has(.chb34:hover) .cht34,.stchsvg:has(.chb35:hover) .cht35,.stchsvg:has(.chb36:hover) .cht36,.stchsvg:has(.chb37:hover) .cht37,.stchsvg:has(.chb38:hover) .cht38,.stchsvg:has(.chb39:hover) .cht39,.stchsvg:has(.chb40:hover) .cht40,.stchsvg:has(.chb41:hover) .cht41,.stchsvg:has(.chb42:hover) .cht42,.stchsvg:has(.chb43:hover) .cht43,.stchsvg:has(.chb44:hover) .cht44,.stchsvg:has(.chb45:hover) .cht45,.stchsvg:has(.chb46:hover) .cht46,.stchsvg:has(.chb47:hover) .cht47,.stchsvg:has(.chb48:hover) .cht48,.stchsvg:has(.chb49:hover) .cht49,.stchsvg:has(.chb50:hover) .cht50,.stchsvg:has(.chb51:hover) .cht51,.stchsvg:has(.chb52:hover) .cht52,.stchsvg:has(.chb53:hover) .cht53,.stchsvg:has(.chb54:hover) .cht54,.stchsvg:has(.chb55:hover) .cht55,.stchsvg:has(.chb56:hover) .cht56,.stchsvg:has(.chb57:hover) .cht57,.stchsvg:has(.chb58:hover) .cht58,.stchsvg:has(.chb59:hover) .cht59,.stchsvg:has(.chb60:hover) .cht60,.stchsvg:has(.chb61:hover) .cht61,.stchsvg:has(.chb62:hover) .cht62,.stchsvg:has(.chb63:hover) .cht63,.stchsvg:has(.chb64:hover) .cht64,.stchsvg:has(.chb65:hover) .cht65,.stchsvg:has(.chb66:hover) .cht66,.stchsvg:has(.chb67:hover) .cht67,.stchsvg:has(.chb68:hover) .cht68,.stchsvg:has(.chb69:hover) .cht69,.stchsvg:has(.chb70:hover) .cht70,.stchsvg:has(.chb71:hover) .cht71,.stchsvg:has(.chb72:hover) .cht72,.stchsvg:has(.chb73:hover) .cht73,.stchsvg:has(.chb74:hover) .cht74,.stchsvg:has(.chb75:hover) .cht75,.stchsvg:has(.chb76:hover) .cht76,.stchsvg:has(.chb77:hover) .cht77,.stchsvg:has(.chb78:hover) .cht78,.stchsvg:has(.chb79:hover) .cht79,.stchsvg:has(.chb80:hover) .cht80,.stchsvg:has(.chb81:hover) .cht81,.stchsvg:has(.chb82:hover) .cht82,.stchsvg:has(.chb83:hover) .cht83,.stchsvg:has(.chb84:hover) .cht84,.stchsvg:has(.chb85:hover) .cht85,.stchsvg:has(.chb86:hover) .cht86,.stchsvg:has(.chb87:hover) .cht87,.stchsvg:has(.chb88:hover) .cht88,.stchsvg:has(.chb89:hover) .cht89,.stchsvg:has(.chb90:hover) .cht90,.stchsvg:has(.chb91:hover) .cht91,.stchsvg:has(.chb92:hover) .cht92,.stchsvg:has(.chb93:hover) .cht93,.stchsvg:has(.chb94:hover) .cht94,.stchsvg:has(.chb95:hover) .cht95,.stchsvg:has(.chb96:hover) .cht96,.stchsvg:has(.chb97:hover) .cht97,.stchsvg:has(.chb98:hover) .cht98,.stchsvg:has(.chb99:hover) .cht99,.stchsvg:has(.chb100:hover) .cht100,.stchsvg:has(.chb101:hover) .cht101,.stchsvg:has(.chb102:hover) .cht102,.stchsvg:has(.chb103:hover) .cht103,.stchsvg:has(.chb104:hover) .cht104,.stchsvg:has(.chb105:hover) .cht105,.stchsvg:has(.chb106:hover) .cht106,.stchsvg:has(.chb107:hover) .cht107,.stchsvg:has(.chb108:hover) .cht108,.stchsvg:has(.chb109:hover) .cht109,.stchsvg:has(.chb110:hover) .cht110,.stchsvg:has(.chb111:hover) .cht111,.stchsvg:has(.chb112:hover) .cht112,.stchsvg:has(.chb113:hover) .cht113,.stchsvg:has(.chb114:hover) .cht114,.stchsvg:has(.chb115:hover) .cht115,.stchsvg:has(.chb116:hover) .cht116,.stchsvg:has(.chb117:hover) .cht117,.stchsvg:has(.chb118:hover) .cht118,.stchsvg:has(.chb119:hover) .cht119{display:inline;}
.chtbox{fill:#1f2329;filter:drop-shadow(0 4px 10px rgba(15,23,42,.18));}
.cht circle{stroke:#1f2329;stroke-width:1.5;}
.chtl{fill:#c9ced6;font-size:12.5px;font-weight:600;}
.chtv{fill:#fff;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;}
.chgl{stroke:#f0f1f3;stroke-width:1;}
.chbase{stroke:#dcdfe4;stroke-width:1;}
.chavg{stroke:#8e8e93;stroke-width:1.5;stroke-dasharray:5 4;}
.stchx text{font-size:10.5px;fill:#6b7280;}
@media (max-width:620px){.stchx text.chodd{display:none;}}
.attys{display:flex;flex-direction:column;gap:12px;}
.attyh{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:5px;}
.attyh i{font-style:normal;color:#98a2b3;}
.attsplit{display:block;border-radius:6px;}
.attsplit .hbg{fill:#f0f1f3;}
.attbig5{display:flex;flex-direction:column;}
.attbr{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #eef0f3;font-size:13.5px;}
.attbr:first-child{border-top:0;}
.attbr .t{flex:1;min-width:0;}
.attbr .t i{font-style:normal;color:var(--muted);}
.attbr>b{font-size:15px;font-variant-numeric:tabular-nums;}
.attn{width:22px;height:22px;border-radius:7px;background:#f1ecfd;color:#7c4dd8;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;}
.attsrc{grid-template-columns:86px minmax(0,1fr) auto;}
.attsrc .t{font-weight:700;}
@media (max-width:620px){.stmini.four.att4{grid-template-columns:repeat(2,minmax(0,1fr));}.stmini.att4 .stsm{white-space:normal;}}
@media (max-width:480px){.sttabs{overflow-x:auto;}.sttabs label,.sttabs a{padding:8px 9px;font-size:12.5px;}.atthc{grid-template-columns:repeat(2,minmax(0,1fr));}.attc.g{grid-column:1 / -1;}.attbig b{font-size:34px;}}
@media (min-width:900px){
.stvr.s4{grid-template-columns:62px 62px minmax(0,1fr) 70px 56px 76px 64px;}
.atthero{flex-direction:row;align-items:center;justify-content:space-between;}
.atthc{display:flex;}
.attc{min-width:120px;}
.attc.g{min-width:170px;}
.attph{flex-direction:row;justify-content:space-between;align-items:center;}
.attph .stseg{min-width:330px;}
.stsum{flex-direction:row;align-items:center;justify-content:space-between;}
.stsrcs{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* public content feed */
.pub{max-width:680px;margin:0 auto;padding:22px 16px 44px;}
.pub h1{font-size:19px;margin:0 0 4px;}
.pubsub{color:var(--muted);font-size:12px;margin:0 0 16px;line-height:1.5;}
.pub h2{font-size:16px;margin:20px 0 4px;padding-top:14px;border-top:1px solid var(--line);}
.pub h3{font-size:11px;font-weight:800;color:#98a2b3;text-transform:uppercase;letter-spacing:.08em;margin:10px 0 4px;}
.ev{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 13px;margin:6px 0;}
.ev b{font-size:14px;display:block;overflow-wrap:anywhere;}
.ev p{margin:3px 0 0;font-size:12.5px;color:#3f434a;line-height:1.5;overflow-wrap:anywhere;}
.ev .evs{color:var(--muted);}
.ev .evk{color:var(--muted);}
.ev a{color:var(--primary);word-break:break-all;}
.evpage{color:#b0b4ba;font-size:11px;margin:4px 0 0;}
/* activity log */
.logtools{display:flex;gap:8px;align-items:center;margin:2px 0 8px;flex-wrap:wrap;}
.logsearch{margin:0;display:flex;gap:8px;flex:1;min-width:200px;}
.logsearch input{flex:1;padding:9px 12px;font-size:14px;border-radius:10px;}
.csvbtn{display:inline-block;background:#eceef0;color:var(--ink);font-size:13px;font-weight:700;padding:9px 14px;border-radius:10px;text-decoration:none;white-space:nowrap;}
.csvbtn:hover{background:#e2e4e7;}
.logcount{color:var(--muted);font-size:12px;margin:0 0 8px;}
.logbox{max-height:62vh;overflow-y:auto;border:1px solid var(--line);border-radius:12px;padding:6px 12px;background:#fafbfc;-webkit-overflow-scrolling:touch;}
.logline{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10.5px;color:#5b6068;margin:0;padding:5px 0;border-bottom:1px solid #f0f1f3;line-height:1.5;overflow-wrap:anywhere;}
.logline:last-child{border-bottom:0;}
.logline .lt{color:#9aa0a8;}
.logline .la{font-weight:700;}
.la-add{color:#12995b;}
.la-edit{color:#3c6589;}
.la-del{color:#d13530;}
.la-move{color:#b97d0c;}
.la-other{color:#6b6f76;}
.logline .lc{color:#9aa0a8;}
.logline .lw{color:#8b5cf6;}
.rolebadge{display:inline-block;flex:0 0 auto;background:#f1ecfd;color:#7c4dd8;font-size:10.5px;font-weight:800;border-radius:999px;padding:2px 8px;white-space:nowrap;letter-spacing:.03em;margin-top:0;}
.item.srow{flex-direction:row;align-items:center;padding:9px 13px;}
.item.srow form{margin:0;flex:0 0 auto;}
.item.srow .itemact{flex-wrap:nowrap;}
.pwchip{display:inline-block;flex:0 0 auto;background:#fdf1dd;color:#9a5b00;font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 8px;white-space:nowrap;margin-top:0;}
.staffh{font-size:15px;margin:22px 0 2px;}
label.chk{display:flex;align-items:center;gap:9px;font-weight:600;font-size:14px;margin:16px 0 4px;cursor:pointer;}
label.chk input{width:18px;height:18px;accent-color:var(--primary);}
.rhead{font-size:10px;font-weight:800;color:#98a2b3;text-transform:uppercase;letter-spacing:.09em;margin:10px 0 3px;}
.rline{font-size:12.5px;margin:4px 0;line-height:1.45;}
.rline small{color:var(--muted);}
.steps{margin:0 0 6px;padding:14px 16px 14px 34px;background:#f4f8fb;border:1px solid #d9e4ee;border-radius:12px;font-size:14px;color:var(--ink);display:flex;flex-direction:column;gap:8px;}
.steps li{line-height:1.5;}
.steps b{color:var(--primary-dark);}
.err{color:var(--danger);font-size:14px;margin:8px 0;}
.signin{margin-top:22px;width:100%;}
.fplink{text-align:center;font-size:13px;margin:16px 0 0;}
.fplink a{color:var(--muted);font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.fplink a:hover{color:var(--primary);}
.banner{padding:13px 16px;border-radius:12px;margin-bottom:16px;font-weight:600;font-size:14px;}
.banner.good{background:#e7f6e7;color:#1c7a1c;border:1px solid #bfe6bf;}
.banner.bad{background:#fdecec;color:#c41a16;border:1px solid #f4c4c2;}
@media (max-width:480px){
.card{padding:18px;}
.item{flex-direction:column;align-items:stretch;}
.itemact{flex-wrap:nowrap;gap:6px;}
.itemact form{flex:1;margin:0;}
.itemact .mini{width:100%;padding:9px 4px;font-size:12.3px;white-space:nowrap;}
.actions button{flex:1;}
}
/* Staff rows: name + email on their own line, then ONE equal-width row of
   actions. Stacks earlier than the other items (620px) because a staff row
   carries up to three buttons and used to run off the side of a phone. */
@media (max-width:620px){
.item.srow{flex-direction:column;align-items:stretch;gap:10px;padding:12px 13px;}
.item.srow .itemtext{width:100%;}
.item.srow .itemact{width:100%;justify-content:flex-end;}
.item.srow .itemact form{flex:1 1 0;min-width:0;}
.item.srow .itemact .mini{width:100%;}
.item.srow .itemact form:only-child{flex:0 0 auto;}
.item.srow .itemact form:only-child .mini{width:auto;}
/* One action only (e.g. just Reset): keep it beside the name — stacking it
   would leave half the card empty. */
.item.srow.solo{flex-direction:row;align-items:center;gap:10px;padding:10px 13px;}
.item.srow.solo .itemtext{flex:1 1 auto;min-width:0;}
.item.srow.solo .itemact{flex:0 0 32%;width:auto;}
.item.srow.solo .itemact form{flex:1 1 0;}
.item.srow.solo .itemact form:only-child{flex:1 1 0;}
.item.srow.solo .itemact form:only-child .mini{width:100%;}
}
