:root{--navy:#0f2744;--navy2:#14345f;--navy3:#0a1f38;--gold:#c8a040;--gold-l:#e8c060;--gold-d:#8a6a1f;
--ink:#1a2635;--muted:#5a6b80;--bg:#f4f6fa;--card:#fff;--hair:#e3e8ef;--hair2:#eef1f5;
--ok:#0d6e3f;--ok-bg:#e8f5ee;--warn:#8a5a00;--warn-bg:#fdf3dc;--bad:#a3271f;--bad-bg:#fdecea;
--up:#a3271f;--down:#0d6e3f;
--f:'Cairo',Tahoma,system-ui,sans-serif;--shadow:0 8px 26px -18px rgba(15,39,68,.4);
--t-bronze:#b0703a;--t-silver:#8a97a8;--t-gold:#c8a040;--t-platinum:#4f7fa8;--t-member:#cfd7e2}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--f);color:var(--ink);background:var(--bg);line-height:1.8;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--navy2)}
img{max-width:100%}
.ltr{direction:ltr;unicode-bidi:isolate}
.num{font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 16px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}
.small{font-size:13px}

/* ---------- header ---------- */
.top{background:var(--navy3);color:#fff;position:relative;z-index:5}
.top .wrap{display:flex;align-items:center;gap:14px;min-height:64px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:20px;line-height:1.2}
.brand svg{width:30px;height:38px;flex:none}
.brand small{display:block;font-size:11px;font-weight:700;color:var(--gold-l)}
.mainnav{display:flex;gap:2px;flex-wrap:wrap;align-items:center;flex:1}
.mainnav a{color:#d9e2ee;text-decoration:none;font:700 14px var(--f);padding:7px 11px;border-radius:9px}
.mainnav a:hover{background:rgba(255,255,255,.08);color:#fff}
.mainnav a.on{background:rgba(232,192,96,.16);color:#f3d68a}
.usernav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.usernav form{margin:0}
.usernav .lnk{color:#d9e2ee;text-decoration:none;font:700 14px var(--f);background:none;border:0;cursor:pointer;padding:7px 10px;border-radius:9px}
.usernav .lnk:hover{background:rgba(255,255,255,.08);color:#fff}
.subnav{background:#fff;border-bottom:1px solid var(--hair)}
.subnav .wrap{display:flex;gap:4px;overflow-x:auto;min-height:50px;align-items:center}
.subnav>.wrap>a{flex:none;color:var(--muted);text-decoration:none;font:700 14px var(--f);padding:8px 13px;border-radius:9px;display:flex;align-items:center;gap:7px}
.subnav>.wrap>a:hover{color:var(--navy);background:var(--bg)}
.subnav>.wrap>a.on{color:var(--navy);background:#fbf3df}
.subnav>.wrap svg{width:17px;height:17px}

main{flex:1;padding:26px 0 48px}
h1{font-size:26px;color:var(--navy);margin:0 0 4px;line-height:1.4}
h2{font-size:18px;color:var(--navy);margin:0 0 12px}
.sub{color:var(--muted);margin:0 0 20px}
.pagehead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:18px}
.pagehead .sub{margin:0}

/* ---------- surfaces ---------- */
.card{background:var(--card);border:1px solid var(--hair);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow);margin-bottom:16px}
.card.flat{box-shadow:none}
.card h2{font-size:17px}
.cardhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.cardhead h2{margin:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.cols{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.cols>.main{flex:999 1 560px;min-width:0}
.cols>.side{flex:1 1 300px;min-width:0}
.stat{border:1px solid var(--hair);border-radius:12px;padding:12px 14px;background:#fbfcfe}
.stat .k{color:var(--muted);font-size:13px;font-weight:700}
.stat .v{font-size:22px;font-weight:800;color:var(--navy);margin-top:2px;overflow-wrap:anywhere;line-height:1.4}
.stat .d{font-size:13px;font-weight:700}
.empty{color:var(--muted);text-align:center;padding:22px 10px}
.note{color:var(--muted);font-size:13px;margin-top:10px}
.demo{background:var(--warn-bg);color:var(--warn);border:1px solid #f0d9a6;border-radius:10px;padding:8px 14px;font-weight:700;font-size:14px;margin-bottom:16px}

.pill{display:inline-block;border-radius:999px;padding:1px 11px;font-size:13px;font-weight:800;white-space:nowrap}
.p-active,.p-ok{background:var(--ok-bg);color:var(--ok)}
.p-warn{background:var(--warn-bg);color:var(--warn)}
.p-suspended,.p-expired,.p-bad{background:var(--bad-bg);color:var(--bad)}
.p-muted{background:var(--hair2);color:#3d4b5c}
.days{font-size:13px;font-weight:700;margin-top:2px}
.days.low{color:var(--warn)} .days.gone{color:var(--bad)} .days.fine{color:var(--ok)}
.up{color:var(--up)} .down{color:var(--down)} .flat{color:var(--muted)}

table{width:100%;border-collapse:collapse;font-size:15px}
th,td{padding:9px 10px;border-bottom:1px solid var(--hair2);text-align:right;vertical-align:middle}
th{color:var(--muted);font-size:13px;font-weight:800}
tr:last-child td{border-bottom:0}
.tw{overflow-x:auto}
.list{list-style:none;margin:0;padding:0}
.list li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--hair2)}
.list li:last-child{border-bottom:0}

/* ---------- buttons & forms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:800 15px var(--f);border-radius:11px;padding:10px 20px;border:0;cursor:pointer;text-decoration:none;min-height:44px;line-height:1.3}
.btn svg{width:18px;height:18px}
.btn-gold{background:var(--gold);color:var(--navy3)}
.btn-gold:hover{background:#d4ad4f}
.btn-navy{background:var(--navy);color:#fff}
.btn-line{background:#fff;border:1.5px solid var(--hair);color:var(--navy)}
.btn-line:hover{border-color:#c5cfdb}
.btn-danger{background:#fff;border:1.5px solid #f2c4bf;color:var(--bad)}
.btn-sm{padding:6px 12px;min-height:38px;font-size:14px;border-radius:9px}
.btn-block{width:100%}
.inline{display:inline;margin:0}
.field{margin-bottom:14px}
.field label{display:block;font-weight:800;font-size:14px;margin-bottom:5px;color:var(--navy)}
.field input[type=text],.field input[type=email],.field input[type=password],.field input[type=number],
.field input[type=date],.field input[type=datetime-local],.field input[type=url],.field input[type=search],
.field select,.field textarea{width:100%;font:600 15px var(--f);padding:10px 12px;border:1.5px solid var(--hair);border-radius:10px;background:#fff;color:var(--ink);min-height:44px}
.field textarea{min-height:110px;line-height:1.8}
.field input:focus,.field select:focus,.field textarea:focus,.composer textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.field input[dir=ltr]{text-align:left}
.check{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;margin-bottom:12px}
.check input{width:20px;height:20px;accent-color:var(--navy)}
.help{color:var(--muted);font-size:13px;margin-top:4px}
.err{background:var(--bad-bg);color:var(--bad);border-radius:10px;padding:10px 14px;font-weight:700;margin-bottom:14px}
.ok{background:var(--ok-bg);color:var(--ok);border-radius:10px;padding:10px 14px;font-weight:700;margin-bottom:14px}
.errlist{list-style:none;padding:0;margin:4px 0 0;color:var(--bad);font-size:13px;font-weight:700}
.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 14px}

.auth{max-width:430px;margin:24px auto}
.auth .card{padding:26px}
.auth h1{text-align:center}
.auth .sub{text-align:center}

/* ---------- avatars & badges ---------- */
.av{position:relative;flex:none;width:46px;height:46px}
.av .img,.av .ini{width:100%;height:100%;border-radius:50%;display:block;object-fit:cover;border:3px solid var(--t-member);background:var(--navy2);color:var(--gold-l);font-weight:800;display:flex;align-items:center;justify-content:center;font-size:18px}
.av.lg{width:96px;height:96px}
.av.lg .ini{font-size:36px}
.av.sm{width:34px;height:34px}
.av.sm .ini{font-size:14px;border-width:2px}
.av.t-bronze .img,.av.t-bronze .ini{border-color:var(--t-bronze)}
.av.t-silver .img,.av.t-silver .ini{border-color:var(--t-silver)}
.av.t-gold .img,.av.t-gold .ini{border-color:var(--t-gold)}
.av.t-platinum .img,.av.t-platinum .ini{border-color:var(--t-platinum)}
.av .vf{position:absolute;bottom:-2px;left:-2px;width:19px;height:19px;border-radius:50%;background:#1d6fd6;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.av.lg .vf{width:28px;height:28px;bottom:2px;left:2px}
.av .vf svg{width:11px;height:11px}
.av.lg .vf svg{width:16px;height:16px}
.who{display:flex;align-items:center;gap:10px;min-width:0}
.who .n{font-weight:800;color:var(--navy);text-decoration:none;line-height:1.3;overflow-wrap:anywhere}
.who .m{font-size:12.5px;color:var(--muted);line-height:1.4}
.tier{display:inline-block;font-size:11.5px;font-weight:800;border-radius:999px;padding:0 8px;color:#fff;vertical-align:middle}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.bdg{display:inline-flex;align-items:center;gap:5px;background:#fbf3df;color:#6b4e12;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:800}
.bdg svg{width:14px;height:14px}
.bdg.b-verified{background:#e5effc;color:#174f9c}
.bdg.b-star{background:#0f2744;color:#f3d68a}
.bdg.b-founder{background:#efe6fb;color:#5b3a8f}
.meter{height:8px;background:var(--hair2);border-radius:999px;overflow:hidden}
.meter span{display:block;height:100%;background:var(--gold);border-radius:999px}

/* ---------- community ---------- */
.composer textarea{width:100%;font:600 15px var(--f);border:1.5px solid var(--hair);border-radius:12px;padding:12px;min-height:90px;resize:vertical}
.composer .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:10px}
.composer select{font:700 14px var(--f);border:1.5px solid var(--hair);border-radius:9px;padding:6px 10px;min-height:40px;background:#fff}
.filepick{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:14px;color:var(--navy);cursor:pointer;border:1.5px dashed #cdbb8a;border-radius:9px;padding:6px 12px;min-height:40px}
.filepick input{width:1px;height:1px;opacity:0;position:absolute}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.chip{font:700 14px var(--f);text-decoration:none;border:1.5px solid var(--hair);background:#fff;color:var(--navy);border-radius:999px;padding:5px 14px}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.post{background:#fff;border:1px solid var(--hair);border-radius:14px;padding:16px 18px;margin-bottom:14px;box-shadow:var(--shadow)}
.post.pinned{border-color:#e7cf8f}
.post .head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.post .kind{font-size:12px;font-weight:800;border-radius:999px;padding:1px 10px;background:var(--hair2);color:#3d4b5c;white-space:nowrap}
.post .kind.k-market{background:#fdecea;color:var(--bad)}
.post .kind.k-question{background:#e5effc;color:#174f9c}
.post .body{margin:10px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.pics{display:grid;gap:6px;margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.pics.n1{grid-template-columns:1fr}
.pics a{display:block;border-radius:10px;overflow:hidden;background:var(--hair2)}
.pics img{width:100%;height:100%;max-height:380px;object-fit:cover;display:block}
.reacts{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;align-items:center}
.reacts form{margin:0}
.rx{font:700 13.5px var(--f);border:1.5px solid var(--hair);background:#fff;color:var(--navy);border-radius:999px;padding:4px 12px;cursor:pointer;min-height:36px}
.rx.mine{background:#fbf3df;border-color:#e7cf8f}
.rx[disabled]{cursor:default;opacity:.75}
.comments{margin-top:12px;border-top:1px solid var(--hair2);padding-top:10px}
.cmt{display:flex;gap:10px;padding:8px 0}
.cmt .bubble{background:var(--bg);border-radius:12px;padding:8px 12px;flex:1;min-width:0}
.cmt .bubble p{margin:2px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.cform{display:flex;gap:8px;margin-top:8px}
.cform input{flex:1;font:600 15px var(--f);border:1.5px solid var(--hair);border-radius:999px;padding:8px 14px;min-height:42px;min-width:0}
details.more summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:700;list-style:none;padding:4px 6px;border-radius:8px}
details.more summary::-webkit-details-marker{display:none}
details.more[open] .menu{display:block}
.menu{display:none;position:absolute;left:0;margin-top:4px;background:#fff;border:1px solid var(--hair);border-radius:12px;box-shadow:var(--shadow);padding:10px;z-index:3;min-width:240px}
.rel{position:relative}
.officecards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.officecard{background:#fff;border:1px solid var(--hair);border-radius:14px;padding:18px;text-align:center;text-decoration:none;color:inherit;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:6px}
.officecard .badges{justify-content:center}
.rank{font-weight:900;color:var(--gold-d);font-size:20px;width:34px;text-align:center}

/* ---------- academy ---------- */
.caps{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.cap{display:block;text-decoration:none;color:inherit;background:var(--card);border:1px solid var(--hair);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s}
.cap:hover{transform:translateY(-2px)}
.cap .thumb{background:var(--navy);color:var(--gold-l);height:104px;display:flex;align-items:center;justify-content:center;font-size:38px;font-weight:900;position:relative}
.cap .thumb .dur{position:absolute;bottom:8px;left:10px;font-size:12px;color:#d9e2ee;font-weight:700}
.cap .thumb .done{position:absolute;top:8px;right:8px}
.cap .body{padding:12px 14px}
.cap h3{margin:0 0 4px;font-size:16px;color:var(--navy);line-height:1.5}
.cap p{margin:0 0 8px;color:var(--muted);font-size:14px}
.chapter{margin:22px 0 10px;font-size:17px;color:var(--navy);display:flex;align-items:center;gap:10px}
.chapter:after{content:"";flex:1;height:1px;background:var(--hair)}
.player{position:relative;background:#000;border-radius:14px;overflow:hidden;aspect-ratio:16/9}
.player video{width:100%;height:100%;display:block}
.wm{position:absolute;z-index:2;pointer-events:none;user-select:none;color:rgba(255,255,255,.55);font:700 13px/1.45 var(--f);text-shadow:0 0 3px rgba(0,0,0,.7);transition:top 1.6s,left 1.6s;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.wm b{font-size:14px}
.wm span{font-size:11.5px;font-weight:700}
.wm-tile{position:absolute;inset:0 0 48px 0;z-index:1;pointer-events:none;background-repeat:repeat}
.player .fs{position:absolute;z-index:3;top:10px;left:10px;width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(10,31,56,.55);color:#fff;display:grid;place-items:center;cursor:pointer;opacity:.75}
.player .fs:hover{opacity:1;border-color:var(--gold-l)}
.player:fullscreen{border-radius:0;aspect-ratio:auto;width:100vw;height:100vh}
.player:-webkit-full-screen{border-radius:0;width:100vw;height:100vh}
.player .guard{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:rgba(10,31,56,.94);color:#fff;text-align:center;padding:20px;font-size:15px;line-height:1.8}
.player .guard[hidden]{display:none}

/* ---------- portal ---------- */
.hero{background:var(--navy3);color:#fff;padding:34px 0 30px}
.hero h1{color:#fff;font-size:30px}
.hero p{color:#c9d4e2;max-width:640px}
.hero .grid{margin-top:18px}
.hero .stat{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
.hero .stat .k{color:#c9d4e2}.hero .stat .v{color:#fff}
.ticker{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:10px}
.tick{background:#fff;border:1px solid var(--hair);border-radius:12px;padding:10px 12px;text-decoration:none;color:inherit}
.tick .c{font-weight:800;color:var(--navy);display:flex;justify-content:space-between;gap:6px}
.tick .r{font-size:20px;font-weight:800;color:var(--ink)}
.tick svg{width:100%;height:32px;display:block}
.chart{width:100%;height:auto;display:block}
.chart .ax{stroke:var(--hair);stroke-width:1}
.chart .gl{stroke:var(--hair2);stroke-width:1}
.chart .ln{fill:none;stroke:var(--navy2);stroke-width:2.2;stroke-linejoin:round}
.chart .ar{fill:rgba(20,52,95,.07)}
.chart .ref{stroke:var(--gold);stroke-width:1.5;stroke-dasharray:5 4}
.chart text{font:600 12px var(--f);fill:var(--muted)}
.chart .dot{fill:var(--gold);stroke:#fff;stroke-width:2}
.big{font-size:34px;font-weight:900;color:var(--navy);line-height:1.2}
.periods{display:flex;gap:6px}
.articles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.art{background:#fff;border:1px solid var(--hair);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:var(--shadow);display:flex;flex-direction:column}
.art .cv{height:150px;background:var(--navy2) center/cover no-repeat}
.art .bd{padding:14px 16px}
.art h3{margin:0 0 6px;font-size:16.5px;color:var(--navy);line-height:1.55}
.art p{margin:0;color:var(--muted);font-size:14px}
.prose{font-size:16.5px;line-height:2}
.prose p{margin:0 0 14px}
.cta{background:var(--navy);color:#fff;border-radius:16px;padding:24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.cta h2{color:#fff;margin:0 0 4px}
.cta p{margin:0;color:#c9d4e2}
.bars{display:flex;flex-direction:column;gap:6px}
.bar{display:grid;grid-template-columns:52px 1fr 70px;gap:8px;align-items:center;font-size:14px}
.bar .tr{height:14px;background:var(--hair2);border-radius:4px;position:relative}
.bar .tr span{position:absolute;top:0;bottom:0;border-radius:4px}
.bar .tr .mid{position:absolute;top:-3px;bottom:-3px;right:50%;width:1px;background:#b9c3cf}
.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.notes figure{margin:0;background:#fff;border:1px solid var(--hair);border-radius:12px;padding:10px}
.notes figcaption{font-size:13px;color:var(--muted);margin-top:6px}

footer{background:var(--navy3);color:#9fb0c4;font-size:13px;padding:22px 0}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between}
footer a{color:#d9e2ee;text-decoration:none}

@media (max-width:640px){
  h1{font-size:22px}
  .hero h1{font-size:24px}
  .mainnav{order:3;flex-basis:100%;overflow-x:auto;flex-wrap:nowrap}
  .mainnav a{flex:none}
  .card,.post{padding:14px}
  .big{font-size:28px}
}
@media (prefers-reduced-motion:reduce){.cap,.wm{transition:none}}
.soon{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-bottom:24px}
.soon-it{display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1px dashed var(--hair);border-radius:12px;padding:10px 12px;opacity:.85}
.soon-it .n{flex-shrink:0;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--hair2);color:var(--muted);font-weight:800;font-size:13px}
.soon-it b{display:block;font-size:14px;line-height:1.5;color:var(--ink)}
.soon-it small{display:block;font-size:12px;color:var(--muted)}
.conv-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) auto minmax(0,1.4fr);gap:12px;align-items:end}
.conv-grid .field{margin:0}
.conv .swap{min-height:44px;font-size:20px;line-height:1;padding:0 14px}
.conv-out{margin-top:16px;padding:16px 18px;border-radius:14px;background:var(--hair2);border:1px solid var(--hair)}
.conv-out .res{font-size:30px;font-weight:900;color:var(--navy);line-height:1.3}
@media (max-width:720px){.conv-grid{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.conv-grid .field:first-child{grid-column:1/-1}}
.faq h2{margin-bottom:6px}
.faq details{border-top:1px solid var(--hair2);padding:4px 0}
.faq details:first-of-type{border-top:0}
.faq summary{cursor:pointer;font-weight:800;color:var(--navy);padding:8px 0;list-style-position:inside}
.faq details p{margin:0 0 10px;color:var(--ink)}
.av .onl{position:absolute;top:0;right:0;width:12px;height:12px;border-radius:50%;background:#1fae5b;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.av.lg .onl{width:20px;height:20px;top:4px;right:4px}
.av.sm .onl{width:10px;height:10px}
.subnav .cnt{min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#c0392b;color:#fff;font-size:11.5px;font-weight:800;display:inline-grid;place-items:center;line-height:1}
.thread{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow-y:auto;padding:4px 2px 8px}
.bub{max-width:min(78%,560px);padding:9px 13px;border-radius:14px;background:var(--hair2);border:1px solid var(--hair);align-self:flex-start;overflow-wrap:anywhere}
.bub .tx{white-space:pre-wrap}
.bub.mine{align-self:flex-end;background:#fbf3df;border-color:#f0dfb2}
.bub .t{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.bub details{display:inline-block;margin-inline-start:8px}
.bub details summary{cursor:pointer;font-size:11.5px;color:var(--muted);list-style:none}
.day-sep{align-self:center;font-size:12px;color:var(--muted);background:var(--bg);border-radius:999px;padding:2px 10px}
.composer-msg{display:flex;gap:8px;align-items:flex-end;margin-top:10px}
.composer-msg textarea{flex:1;min-height:46px;max-height:160px;resize:vertical;font:600 15px var(--f);padding:10px 12px;border:1.5px solid var(--hair);border-radius:12px}
.inbox-row{display:flex;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--hair2);text-decoration:none;color:inherit}
.inbox-row:last-child{border-bottom:0}
.inbox-row .p{flex:1;min-width:0}
.inbox-row .p b{display:block;color:var(--navy)}
.inbox-row .p span{display:block;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-row .cnt{min-width:22px;height:22px;border-radius:999px;background:#c0392b;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;padding:0 6px}
.notice-bar{background:#fdf3dc;border:1px solid #f1dca4;color:#6b4e12;border-radius:12px;padding:9px 13px;font-size:14px;margin-bottom:12px}
/* v1.5.0: search in the community feed (last item of the chips row) */
.feed-search{margin:0;flex:1 1 140px;max-width:240px}
.feed-search input{width:100%;box-sizing:border-box;font:700 14px var(--f);border:1.5px solid var(--hair);background:#fff;color:var(--navy);border-radius:999px;padding:5px 14px;min-height:0}
.feed-search input:focus{outline:2px solid var(--gold,#c8a040);outline-offset:1px}
/* v1.5.0: the hidden attribute always wins over display rules such as .btn */
[hidden]{display:none!important}
/* v1.6.0: office rating (automatic) */
.stars{display:inline-flex;gap:2px;vertical-align:middle;direction:rtl}
.stars .st{width:18px;height:18px}
.stars .st path{fill:#dfe4ec}
.stars .st-full path{fill:var(--gold)}
.stars .st-half path.hf{fill:var(--gold)}
.rating-box{flex:1 1 100%;border-top:1px solid var(--hair2,#eef1f5);padding-top:14px;margin-top:2px}
.rating-main{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.rating-title{font-weight:800;color:var(--navy);font-size:16px;margin-bottom:2px}
.ring{position:relative;width:76px;height:76px;flex:0 0 76px}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:8}
.ring .bg{stroke:#eef1f5}
.ring .fg{stroke:var(--gold);stroke-linecap:round}
.ring span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px;color:var(--navy)}
.rating-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.rt{border:1px solid var(--hair);border-radius:12px;padding:9px 11px;background:#fbfcfe;min-width:0}
.rt-top{display:flex;align-items:center;gap:9px}
.rt .ic{flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:var(--navy);color:var(--gold-l);display:flex;align-items:center;justify-content:center}
.rt .ic svg{width:17px;height:17px}
.rt-v{min-width:0;display:flex;flex-direction:column}
.rt b{font-size:19px;color:var(--navy);line-height:1.2}
.rt .k{font-size:12.5px;color:var(--muted);font-weight:700;line-height:1.4}
.rt-bar{width:100%;height:5px;background:#eef1f5;border-radius:999px;margin-top:8px;overflow:hidden}
.rt-fill{height:100%;background:var(--gold);border-radius:999px}
.top-tag{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#f3d68a,#c8a040);color:var(--navy3);font-size:12px;font-weight:800;border-radius:999px;padding:2px 10px;vertical-align:middle}
.top-tag svg{width:13px;height:13px}
.card.top-office{background:linear-gradient(160deg,#0f2744 0%,#14345f 100%);border-color:#0f2744;color:#e9eef5;text-align:center}
.card.top-office h2{color:#f3d68a}
.card.top-office .tname{display:block;color:#fff;font-weight:800;font-size:17px;margin:8px 0 4px;text-decoration:none}
.card.top-office .muted{color:#c9d4e2}
.card.top-office .stars .st path{fill:#33507a}
.card.top-office .stars .st-full path,.card.top-office .stars .st-half path.hf{fill:#f3d68a}
.card.top-office .av{display:block;margin:0 auto}
.card.top-office h2 svg{width:20px;height:20px;vertical-align:-3px}
.top-office .next{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid rgba(255,255,255,.12);text-align:right}
.top-office .next a{color:#fff;text-decoration:none;font-weight:700;flex:1;min-width:0;overflow-wrap:anywhere}
.top-office .next .num{color:#f3d68a;font-weight:800}
.officecard{position:relative}
.officecard.is-top{border:2px solid var(--gold);box-shadow:0 8px 26px rgba(200,160,64,.28)}
.officecard .ribbon{position:absolute;top:10px;inset-inline-start:10px}
.officecard .rate{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);font-weight:700}
/* v1.7.0: technical indicators of the dirham */
.market{display:flex;align-items:center;gap:12px;border-radius:14px;padding:12px 16px;margin-bottom:14px;border:1px solid var(--hair);background:#fff}
.market b{color:var(--navy)}
.mk-dot{width:14px;height:14px;border-radius:50%;flex:0 0 14px;background:#7f8ea3;box-shadow:0 0 0 4px rgba(127,142,163,.18)}
.market.m-calm .mk-dot{background:#1fae5b;box-shadow:0 0 0 4px rgba(31,174,91,.18)}
.market.m-normal .mk-dot{background:var(--gold);box-shadow:0 0 0 4px rgba(200,160,64,.2)}
.market.m-agitated .mk-dot{background:#d0453a;box-shadow:0 0 0 4px rgba(208,69,58,.18)}
.tcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px}
.tcard{display:block;background:#fff;border:1px solid var(--hair);border-radius:14px;padding:12px 14px;text-decoration:none;color:inherit;box-shadow:var(--shadow);min-width:0}
.tcard:hover{border-color:var(--gold)}
.tc-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.tc-head b{color:var(--navy);font-size:16px}
.tc-trend{margin-inline-start:auto;font-size:12px;font-weight:800;border-radius:999px;padding:1px 9px;background:#eef1f5;color:#56657a}
.tc-trend.t-up{background:#fdecea;color:#b3392f}
.tc-trend.t-down{background:#e7f6ee;color:#17824a}
.tc-price{font-size:22px;font-weight:900;color:var(--navy);margin:4px 0 6px}
.tc-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px;color:var(--muted);font-weight:700;padding:4px 0}
.tc-row>span:first-child{flex:1 1 auto}
.tc-row b{color:var(--navy);font-size:13px}
.tc-row .gauge{flex:1 1 100%;order:3;margin:3px 0 2px}
.gauge{position:relative;height:6px;border-radius:999px;background:linear-gradient(to left,#e7f6ee 0 30%,#eef1f5 30% 70%,#fdecea 70% 100%)}
.gauge.range{background:#eef1f5}
.gauge i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--navy);border:2px solid #fff;box-shadow:0 0 0 1px var(--navy);margin-right:-6px}
.vs{font-size:12px;font-weight:800;border-radius:999px;padding:1px 9px;justify-self:start;background:#fbf3df;color:var(--gold-d)}
.vs.v-calm{background:#e7f6ee;color:#17824a}.vs.v-agitated{background:#fdecea;color:#b3392f}
.tchart .band{fill:rgba(200,160,64,.13);stroke:none}
.tchart .s20{fill:none;stroke:var(--gold);stroke-width:1.8}
.tchart .s50{fill:none;stroke:#8a9bb3;stroke-width:1.8;stroke-dasharray:6 4}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--muted);font-weight:700;margin-top:8px}
.legend i{display:inline-block;width:18px;height:3px;border-radius:2px;vertical-align:middle;margin-inline-end:6px}
.lg-p{background:var(--navy2)}.lg-20{background:var(--gold)}.lg-50{background:#8a9bb3}.lg-b{background:rgba(200,160,64,.35);height:9px!important}
.reading li{gap:10px}
.reading li b{text-align:left}
/* v1.7.0: home as a public economic page */
.hero-stats{max-width:1000px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.hero .stat .d.up{color:#ff9b91}.hero .stat .d.down{color:#7fe0a8}.hero .stat .d.flat{color:#c9d4e2}
.notechips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}
.notechips a{display:flex;gap:6px;align-items:baseline;text-decoration:none;border:1px solid var(--hair);border-radius:10px;padding:6px 9px;color:inherit;min-width:0}
.notechips a:hover{border-color:var(--gold)}
.notechips b{color:var(--navy);font-size:13px}
.notechips span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tools a{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:700}
.tools a svg{width:18px;height:18px;color:var(--gold-d)}
/* v1.7.0: reminders in the bell */
.al-ic{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--navy);color:var(--gold-l)}
.al-ic svg{width:18px;height:18px}
.al-ic.al-renew{background:#fbf3df;color:var(--gold-d)}
@media (max-width:640px){.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-stats .stat{padding:10px 12px}.hero-stats .stat .v{font-size:19px}}
.headlines .hl{list-style:none;margin:0;padding:0}
.headlines .hl li{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-bottom:1px solid var(--hair2)}
.headlines .hl li:last-child{border-bottom:0}
.headlines .hl a{font-weight:700;text-decoration:none;color:var(--navy);overflow-wrap:anywhere}
.headlines .hl a:hover{text-decoration:underline}
/* v1.8.0: shareable rate cards */
.cardmaker{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:860px){.cardmaker{grid-template-columns:1fr}}
.cm-preview{padding:12px;background:#e9eef5}
.cm-canvas{display:block;width:100%;max-width:560px;height:auto;margin:0 auto;border-radius:12px;box-shadow:0 8px 24px rgba(10,31,56,.25)}
.seg{display:flex;flex-wrap:wrap;gap:8px}
.seg label{display:flex;align-items:center;gap:6px;border:1.5px solid var(--hair);border-radius:10px;padding:7px 12px;font-weight:700;cursor:pointer}
.seg label:has(input:checked){border-color:var(--gold);background:#fbf3df}
.cm-rows{display:grid;gap:8px}
.cm-row{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;align-items:center}
.cm-row label.cur{display:flex;gap:6px;align-items:center;font-weight:800;color:var(--navy);min-width:84px}
.cm-row input[type=text]{width:100%;box-sizing:border-box;padding:8px 10px;border:1.5px solid var(--hair);border-radius:10px;font:700 15px var(--f);direction:ltr;text-align:center}
.cm-head{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;font-size:12.5px;color:var(--muted);font-weight:800}
.cm-head span:first-child{min-width:84px}
.cm-cta{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.cm-cta>span:last-child{display:flex;flex-direction:column;gap:2px}
.cm-cta b{color:var(--navy)}
.cm-cta:hover{border-color:var(--gold)}
/* v1.8.0: share bar */
.sharebar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:18px 0}
.sh{font:700 13.5px var(--f);border:1.5px solid var(--hair);background:#fff;color:var(--navy);border-radius:999px;padding:5px 13px;text-decoration:none;cursor:pointer}
.sh:hover{border-color:var(--gold)}
.mkt-summary{margin:14px 0 0;max-width:900px;color:#dbe3ee;font-weight:600;line-height:1.9}
/* v1.10.0: printable rate board for the office window (A4) */
.board{display:none}
@media print{
  @page{size:A4 portrait;margin:12mm}
  body.print-board>*:not(.board){display:none!important}
  body.print-board{background:#fff}
  body.print-board .board{display:block!important;font-family:Cairo,Tahoma,Arial,sans-serif;color:#0a1f38;direction:rtl}
  .b-head{text-align:center;border-bottom:3px solid #c8a040;padding-bottom:6mm;margin-bottom:6mm}
  .b-logo{width:28mm;height:28mm;border-radius:50%;object-fit:cover;display:block;margin:0 auto 3mm}
  .b-office{font-size:30pt;font-weight:900}
  .b-sub{font-size:15pt;color:#555}
  .b-title{font-size:20pt;font-weight:800;text-align:center;margin-bottom:5mm}
  .b-date{font-weight:600;color:#555;font-size:15pt}
  .board table{width:100%;border-collapse:collapse;font-size:20pt}
  .board th{background:#0a1f38;color:#fff;padding:3mm;font-size:15pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .board td{border-bottom:1px solid #bbb;padding:3.5mm 3mm;text-align:center;font-weight:800}
  .board td:first-child{text-align:right}
  .board td:first-child b{font-size:22pt;margin-left:4mm}
  .board td:first-child span{font-size:13pt;color:#555;font-weight:600}
  .b-foot{text-align:center;margin-top:8mm;font-size:14pt;color:#333}
}
footer .social{margin-top:8px;font-size:13.5px;color:#c9d4e2;display:flex;gap:12px;flex-wrap:wrap}
.art-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-4px 0 16px}
.art-search input{flex:1 1 220px;max-width:380px;box-sizing:border-box;font:700 15px var(--f);border:1.5px solid var(--hair);border-radius:10px;padding:8px 12px}
/* ===== v1.11.0: community redesign (post card, reactions, comments, modal windows) ===== */
.post{padding:18px 20px 12px;border-radius:16px;transition:box-shadow .2s,border-color .2s}
.post:hover{box-shadow:0 10px 28px rgba(15,39,68,.10)}
.post .body{font-size:16px;line-height:1.95;color:#1f2d3d;margin-top:12px}
.post .kind.k-info{background:#eef6ff;color:#245a96}
.post .kind.k-discussion{background:#f3eefc;color:#5b3b9a}
.pics img{max-height:420px;cursor:zoom-in;transition:transform .25s}
.pics a:hover img{transform:scale(1.02)}
.pstats{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:13.5px;color:var(--muted);font-weight:700;flex-wrap:wrap}
.ps-sp{flex:1}
.ps-link{display:inline-flex;align-items:center;gap:5px;background:none;border:0;padding:2px 0;font:inherit;color:inherit;cursor:pointer;text-decoration:none}
button.ps-link:hover,a.ps-link:hover{color:var(--navy2);text-decoration:underline}
.ps-static{cursor:default}
.ps-link svg{width:16px;height:16px}
.ps-icons{display:inline-flex}
.ps-icons i{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:2px solid #fff;margin-inline-start:-5px;color:#fff}
.ps-icons i:first-child{margin-inline-start:0}
.ps-icons svg{width:11px;height:11px}
.ps-icons .rxk-like{background:#1d6fd6}.ps-icons .rxk-useful{background:#c8a040}.ps-icons .rxk-thanks{background:#d6455a}.ps-icons .rxk-agree{background:#1fae5b}
.pactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid var(--hair2)}
.pactions form{margin:0;flex:1 1 auto;display:flex}
.pa{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:700 13.5px var(--f);color:#4a5a6e;background:none;border:0;border-radius:10px;padding:8px 10px;min-height:40px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}
.pa:hover{background:var(--bg)}
.pa svg{width:18px;height:18px}
.pa .n{font-size:12.5px;color:var(--muted);min-width:1ch}
.pa.on.rxk-like{color:#1d6fd6;background:#eaf2fd}
.pa.on.rxk-dislike{color:#b3392f;background:#fdecea}
.pa.on.rxk-useful{color:#8a6a1f;background:#fbf3df}
.pa.on.rxk-thanks{color:#c0364b;background:#fdecef}
.pa.on.rxk-agree{color:#17824a;background:#e7f6ee}
.pa.on .n{color:inherit}
.pa-static{cursor:default}
.pa-static:hover{background:none}
.pa-c{color:var(--navy2)}
@media (max-width:640px){.pa .lbl{display:none}.pa{padding:8px 6px}.pa-c .lbl{display:inline}}
.cmt{gap:9px;padding:6px 0}
.cmt .cbody{flex:1;min-width:0}
.cmt .bubble{background:#f1f4f8;border-radius:4px 16px 16px 16px;padding:8px 13px;display:inline-block;max-width:100%;box-sizing:border-box}
.cmt .cname{font-weight:800;color:var(--navy);text-decoration:none;font-size:14px}
.cmt .bubble p{margin:2px 0 0;line-height:1.8}
.cmeta{display:flex;gap:12px;font-size:12.5px;color:var(--muted);font-weight:700;padding:3px 10px 0}
.cmeta form{display:inline;margin:0}
.cmeta button{background:none;border:0;padding:0;font:inherit;color:var(--navy2);cursor:pointer}
.cmeta button:hover{text-decoration:underline}
.c-new{animation:cnew 1.2s ease-out}
@keyframes cnew{from{background:#fbf3df}to{background:transparent}}
.cform input:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
/* modal windows */
.ymodal{border:0;border-radius:18px;padding:0;width:min(520px,calc(100vw - 32px));max-height:min(80vh,680px);box-shadow:0 24px 60px rgba(10,31,56,.35);direction:rtl;font-family:var(--f)}
.ymodal::backdrop{background:rgba(10,31,56,.55);backdrop-filter:blur(2px)}
.ymodal[open]{display:flex;flex-direction:column;animation:ymin .18s ease-out}
@keyframes ymin{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.ym-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--hair2)}
.ym-head b{color:var(--navy);font-size:17px}
.ym-close{width:36px;height:36px;border-radius:50%;border:0;background:var(--bg);color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ym-close svg{width:18px;height:18px}
.ym-body{padding:16px 18px;overflow:auto}
.ym-actions{display:flex;gap:8px}
.ymodal.ym-photo{width:auto;max-width:calc(100vw - 32px);background:#0a1f38}
.ymodal.ym-photo .ym-head{border:0;padding:8px 10px;justify-content:flex-end}
.ymodal.ym-photo .ym-body{padding:0 10px 10px}
.ym-img{display:block;max-width:100%;max-height:78vh;margin:0 auto;border-radius:10px}
.mlist{list-style:none;margin:0;padding:0}
.mlist li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--hair2)}
.mlist li:last-child{border-bottom:0}
.mgroup{margin-bottom:12px}
.mg-head{display:flex;align-items:center;gap:8px;color:var(--navy);font-weight:800;padding:4px 0}
.mg-head svg{width:18px;height:18px}
.mg-head .num{margin-inline-start:auto;color:var(--muted)}
.filepick{white-space:nowrap}
.composer{border-radius:16px}
.composer textarea:focus{background:#fff}
/* v1.11.0: chat */
.bub .tick{display:inline-block;width:18px;height:11px;vertical-align:-1px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3.5 3.5L11 2' fill='none' stroke='%239fb0c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.bub.read .tick{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3.5 3.5L11 2M7 9.5L14.5 2' fill='none' stroke='%231d6fd6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.composer-msg .btn{flex:0 0 auto;white-space:nowrap}
.bub .mdel{display:inline;margin:0}
.bub .mdel-b{background:none;border:0;padding:0 0 0 2px;font:inherit;color:inherit;opacity:.65;cursor:pointer;margin-inline-start:6px}
.bub .mdel-b:hover{opacity:1;text-decoration:underline}
.typing{color:#1fae5b;font-weight:800}
.typing i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#1fae5b;margin-inline-start:3px;animation:tdot 1s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes tdot{0%,60%,100%{opacity:.25}30%{opacity:1}}
#msg{overflow:hidden}
.al-ic.al-login,.al-ic.al-failed{background:#fdecea;color:#b3392f}
/* v1.11.0: password field */
.pw-wrap{position:relative}
.pw-wrap input{width:100%;box-sizing:border-box;padding-left:84px}
.pw-eye{position:absolute;left:6px;top:50%;transform:translateY(-50%);background:var(--bg);border:0;border-radius:8px;padding:5px 10px;font:700 12.5px var(--f);color:var(--navy2);cursor:pointer}
.pw-meter{height:6px;border-radius:999px;background:var(--hair2);margin-top:8px;overflow:hidden}
.pw-meter span{display:block;height:100%;width:0;transition:width .2s,background .2s}
.pw-meter.l0 span{width:33%;background:#d0453a}.pw-meter.l1 span{width:66%;background:var(--gold)}.pw-meter.l2 span{width:100%;background:#1fae5b}
.pw-label{margin-top:4px;color:var(--muted);font-weight:700}
/* v1.12.0: polls */
.post .kind.k-poll{background:#eaf2fd;color:#1d5fb8}
.poll{margin-top:12px;border:1px solid var(--hair);border-radius:14px;padding:12px;background:#fbfcfe}
.poll-form{display:flex;flex-direction:column;gap:8px;margin:0}
.poll-form .btn{align-self:flex-start}
.poll-opt{display:flex;align-items:center;gap:10px;border:1.5px solid var(--hair);border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:700;background:#fff;transition:border-color .15s,background .15s}
.poll-opt:hover{border-color:var(--gold)}
.poll-opt:has(input:checked){border-color:var(--gold);background:#fbf3df}
.poll-opt input{accent-color:var(--navy);width:18px;height:18px}
.poll-res{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.poll-res li{position:relative;display:flex;justify-content:space-between;gap:10px;align-items:center;border-radius:12px;padding:10px 12px;background:#fff;border:1px solid var(--hair);overflow:hidden;font-weight:700}
.pr-bar{position:absolute;top:0;bottom:0;right:0;background:#e9eef6;z-index:0;transition:width .5s}
.poll-res li.mine .pr-bar{background:#f6e7bf}
.poll-res li.lead .pr-bar{background:#dcebdc}
.pr-t,.pr-p{position:relative;z-index:1}
.pr-p{color:var(--navy);font-weight:800}
.pr-me{color:var(--gold-d)}
.poll-meta{margin-top:8px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.poll-meta svg{width:15px;height:15px}
.poll-change{margin-top:6px}
.linkbtn{background:none;border:0;padding:0;font:700 13px var(--f);color:var(--navy2);cursor:pointer}
.linkbtn:hover{text-decoration:underline}
.pollbox{margin-top:12px;border-top:1px dashed var(--hair);padding-top:10px}
.pollbox summary{cursor:pointer;font-weight:800;color:var(--navy2);display:inline-flex;align-items:center;gap:6px;list-style:none}
.pollbox summary svg{width:17px;height:17px}
.poll-inputs{display:grid;gap:8px;margin-bottom:6px}
.poll-inputs input{font:600 15px var(--f);border:1.5px solid var(--hair);border-radius:10px;padding:9px 12px;min-width:0}
.poll-set{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:10px;font-weight:700;font-size:14px}
.poll-set select{font:700 14px var(--f);border:1.5px solid var(--hair);border-radius:9px;padding:5px 8px;margin-inline-start:6px}
/* v1.12.0: advertising slots (visitors only; space reserved so the page never jumps) */
.adslot{position:relative;display:block;margin:16px auto;text-align:center;overflow:hidden;clear:both}
.adslot .ad-label{position:absolute;top:2px;inset-inline-start:8px;font-size:10.5px;font-weight:700;color:#9aa7b8;letter-spacing:.3px;z-index:1}
.ad-wide{min-height:100px;max-width:970px}
.ad-box{min-height:280px;max-width:336px}
.ad-tall{min-height:600px;max-width:300px}
.ad-fluid{min-height:200px;max-width:720px}
.ad-on-mob{display:none}
@media (max-width:860px){.ad-on-desk{display:none}.ad-on-mob{display:block}.ad-wide{min-height:100px}}
.side .ad-tall{position:sticky;top:16px}
.ad-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #c8b47c;border-radius:12px;background:repeating-linear-gradient(45deg,#fbf7ec,#fbf7ec 10px,#f6efdc 10px,#f6efdc 20px);color:#8a6a1f;font-size:13px}
.ad-ph b{font-family:monospace;font-size:13px;direction:ltr}
/* v1.12.0: menu on phones */
.navtoggle{display:none}
@media (max-width:640px){
  .navtoggle{display:inline-flex;align-items:center;gap:8px;order:2;margin-inline-start:auto;background:rgba(255,255,255,.08);color:#e9eef5;border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:7px 12px;font:700 14px var(--f);cursor:pointer}
  .nt-bars{display:inline-flex;flex-direction:column;gap:3px}
  .nt-bars i{display:block;width:16px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s}
  .nav-open .nt-bars i:nth-child(1){transform:translateY(5px) rotate(45deg)}
  .nav-open .nt-bars i:nth-child(2){opacity:0}
  .nav-open .nt-bars i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
  .usernav{order:3}
  .js .mainnav{order:4;display:none;flex-direction:column;align-items:stretch;flex-basis:100%;overflow:visible;padding:6px 0 4px;border-top:1px solid rgba(255,255,255,.1);margin-top:4px}
  .js.nav-open .mainnav{display:flex}
  .js .mainnav a{padding:11px 12px;font-size:15px}
}
/* v1.12.0: footer */
footer.sitefoot{padding:34px 0 18px;font-size:14px}
footer.sitefoot .wrap{display:block}
.fcols{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:24px}
.fcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.fcol h3{margin:0 0 4px;color:#f3d68a;font-size:14.5px}
.fcol a:hover{color:#fff;text-decoration:underline}
.fbrand{display:flex;align-items:center;gap:8px;color:#fff;font-size:20px}
.fbrand svg{width:30px;height:auto}
.fabout p{margin:4px 0 0;color:#9fb0c4;line-height:1.9}
.fbottom{margin-top:26px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);color:#7f90a6;font-size:12.5px}
@media (max-width:860px){.fcols{grid-template-columns:1fr 1fr}.fabout{grid-column:1/-1}}
@media (max-width:420px){.fcols{grid-template-columns:1fr 1fr;gap:18px}}
/* v1.12.0: phone header on one row, two price tiles per row */
@media (max-width:640px){
  .brand small{display:none}
  .ticker{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tick{padding:8px 10px}
  .tick .r{font-size:18px}
}
@media (max-width:360px){.navtoggle{font-size:0;gap:0;padding:9px 10px}}
/* v1.12.1: own ads keep their proportions and never exceed the place width */
.adcustom{min-height:0}
.adcustom a{display:block;max-width:var(--adw-d,728px);margin:0 auto}
.adcustom img{display:block;width:100%;height:auto;border-radius:6px}
@media (max-width:860px){.adcustom a{max-width:min(100%,var(--adw-m,320px))}}
/* v1.15.0: simpler look on phones (owner OK 2026-10-23 22:19, proposals 1-9). Admin pages (body.bo) untouched. */
/* 1 calmer surfaces on every screen */
.m-only{display:none}
body:not(.bo) .card,body:not(.bo) .post,body:not(.bo) .post:hover,body:not(.bo) .art,body:not(.bo) .tcard,body:not(.bo) .cap,body:not(.bo) .officecard{box-shadow:none}
body:not(.bo) .card,body:not(.bo) .post,body:not(.bo) .art,body:not(.bo) .tcard{border-color:#e8ecf2;border-radius:12px}
body:not(.bo) .stat{background:#fff}
.who .tier.t-member{display:none}
@media (max-width:640px){
  /* 3 short footer: same links, one flowing list */
  footer.sitefoot{padding:20px 0 14px;font-size:13.5px}
  .fcols{display:flex;flex-wrap:wrap;gap:8px 16px}
  .fabout{flex:1 0 100%}
  .fabout p,.fcol h3{display:none}
  .fcol{display:contents}
  .fbrand{font-size:17px}
  .fbrand svg{width:24px}
  .fbottom{margin-top:14px;padding-top:10px;font-size:12px}
  /* 2 home: prices once, secondary blocks reachable from Tools */
  .hero{padding:22px 0 20px}
  .hero-stats .stat.dup{display:none}
  .m-hide{display:none!important}
  /* 4 currency list: one row per currency */
  .curlist{display:block;border:1px solid #e8ecf2;border-radius:12px;background:#fff;overflow:hidden}
  .curlist .art{border:0;border-radius:0;border-bottom:1px solid var(--hair2)}
  .curlist .art:last-child{border-bottom:0}
  .curlist .bd{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;padding:10px 14px}
  .curlist .bd>div:first-child{display:contents!important}
  .curlist .bd>div:first-child h3{grid-column:1;grid-row:1;font-size:15px}
  .curlist .bd>div:first-child .small{grid-column:2;grid-row:2;text-align:left;font-size:12px}
  .curlist .bd>p{grid-column:1;grid-row:2;font-size:12.5px}
  .curlist .bd>div.num{grid-column:2;grid-row:1;font-size:17px!important;text-align:left;white-space:nowrap}
  .curlist .bd>div.num .small{font-size:11.5px}
  .curlist .pill{display:none}
  /* 5 figures two per row */
  body:not(.bo) .grid:has(>.stat){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body:not(.bo) .stat{padding:9px 11px}
  body:not(.bo) .stat .v{font-size:18px}
  /* 6 dirham table: currency, rate, day, year */
  .dtbl th:nth-child(4),.dtbl td:nth-child(4),.dtbl th:nth-child(5),.dtbl td:nth-child(5),.dtbl th:nth-child(7),.dtbl td:nth-child(7){display:none}
  .dtbl{font-size:14px}
  .dtbl td,.dtbl th{padding:8px 6px}
  /* 7 indicator cards: two per row, price and direction */
  .tcard .tc-row{display:none}
  .tcards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tcard{padding:10px 12px}
  .tc-head{flex-wrap:wrap}
  /* 8 community post: no zero counters, comment box on demand, one comment preview */
  .pactions{gap:2px}
  .post .cform{display:none}
  .post.c-open .cform,.post:has(#comments) .cform{display:flex}
  .post .comments:not(#comments):not(.c-open-all) .cmt:not(:last-child):not(.c-new){display:none}
  .m-only{display:inline}
  /* 9 account figures as plain rows inside their card */
  body:not(.bo) .card .grid:has(>.stat){grid-template-columns:1fr;gap:0}
  body:not(.bo) .card .grid>.stat{border:0;background:none;padding:4px 0;border-bottom:1px solid var(--hair2);border-radius:0}
}
/* v1.16.0: news front page and news story */
.nhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 18px;border-bottom:3px solid var(--navy);padding-bottom:10px;margin-bottom:12px}
.nhead h1{margin:2px 0 0;font-size:30px}
.nhead .sub{margin:2px 0 0}
.nsearch{margin:0;flex:0 1 360px}
.nkicker{display:inline-flex;align-items:center;gap:6px;color:var(--gold-d);font-weight:800;font-size:13px;letter-spacing:.2px}
.nkicker svg{width:16px;height:16px}
.nticker{display:flex;gap:18px;align-items:center;overflow-x:auto;white-space:nowrap;background:#fff;border:1px solid #e8ecf2;border-radius:10px;padding:8px 14px;margin-bottom:16px;font-size:14px;scrollbar-width:none}
.nticker b{color:var(--navy);font-size:13px}
.nticker a{text-decoration:none;color:var(--ink);font-weight:700}
.nticker .ltr{color:var(--navy);font-weight:800}
.ncols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.nmain{min-width:0}
.nlead{background:#fff;border:1px solid #e8ecf2;border-radius:14px;overflow:hidden;margin-bottom:8px}
.nlead-link{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);text-decoration:none;color:inherit}
.nlead-img{display:block;min-height:240px;background:var(--navy2) center/cover no-repeat}
.nlead-noimg{display:grid;place-items:center;color:#f3d68a;background:linear-gradient(150deg,#0f2744,#14345f)}
.nlead-noimg svg{width:56px;height:56px;opacity:.8}
.nlead-body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 6px}
.nlead-title{font-size:24px;font-weight:800;color:var(--navy);line-height:1.5}
.nlead-sum{color:var(--muted);font-size:15.5px;line-height:1.9}
.nlead-link:hover .nlead-title{text-decoration:underline;text-decoration-thickness:1px}
.nlead .nmeta,.nlead .shr{padding:0 20px}
.nlead .shr{padding-bottom:16px}
.nmeta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:12.5px;color:var(--muted);font-weight:700;margin:8px 0}
.nmeta>span+span::before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:#b8c3d1;margin-inline-end:10px;vertical-align:middle}
.nday{font-size:15px;color:var(--navy);margin:22px 0 4px;padding-bottom:6px;border-bottom:1px solid var(--hair)}
.nlist{display:flex;flex-direction:column}
.nrow{padding:14px 0;border-bottom:1px solid var(--hair2)}
.nrow:last-child{border-bottom:0}
.nrow-link{display:flex;gap:14px;text-decoration:none;color:inherit;align-items:flex-start}
.nrow-img{flex:0 0 132px;height:88px;border-radius:10px;background:var(--navy2) center/cover no-repeat}
.nrow-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.nrow-title{font-size:17px;font-weight:800;color:var(--navy);line-height:1.55}
.nrow-link:hover .nrow-title{text-decoration:underline;text-decoration-thickness:1px}
.nrow-sum{color:var(--muted);font-size:14px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nrow .nmeta{margin:8px 0 0}
.nrow .shr-compact{margin-inline-start:auto}
.shr{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.shr-list{display:flex;flex-wrap:wrap;gap:6px}
.shr-list[hidden]{display:none}
.shr-compact{position:relative}
.shr-compact .shr-list{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:5;background:#fff;border:1px solid var(--hair);border-radius:12px;padding:8px;box-shadow:0 10px 24px rgba(15,39,68,.14);width:max-content;max-width:min(320px,80vw)}
.shr-open{display:inline-flex;align-items:center;gap:5px;font:800 12.5px var(--f);color:var(--navy2);background:#f2f5f9;border:0;border-radius:999px;padding:4px 11px;cursor:pointer}
.shr-open svg{width:15px;height:15px}
.shr-b{font:800 13px var(--f);border:0;border-radius:999px;padding:6px 13px;text-decoration:none;cursor:pointer;color:#fff;background:#5a6b80;white-space:nowrap}
.shr-wa{background:#1f8f4e}.shr-fb{background:#1b5fbf}.shr-x{background:#111}.shr-tg{background:#1c84c9}
.shr-copy{background:#eef2f7;color:var(--navy)}
.shr-b:hover{filter:brightness(1.08)}
.shr-b:focus-visible,.shr-open:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.npager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 0;padding-top:12px;border-top:1px solid var(--hair)}
.nside .card h2{font-size:16px}
.nfollow-links{display:flex;flex-wrap:wrap;gap:6px}
.nfollow-links .shr-b:last-child{background:#eef2f7;color:var(--navy)}
.nart{max-width:760px;margin:0 auto}
.ncrumb{display:flex;gap:8px;font-size:13px;color:var(--muted);margin:0 0 10px}
.ncrumb a{color:var(--muted)}
.nart-title{font-size:32px;line-height:1.5;margin:6px 0 8px}
.nart-dek{font-size:18.5px;font-weight:700;color:var(--ink);line-height:1.85;margin:0 0 6px;border-inline-start:4px solid var(--gold);padding-inline-start:12px}
.nart-meta{border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);padding:8px 0;margin:12px 0 10px}
.nart-fig{margin:16px 0 18px}
.nart-fig img{display:block;width:100%;border-radius:12px}
.nart-fig figcaption{font-size:12.5px;color:var(--muted);margin-top:6px}
.nart-body{font-size:17.5px;line-height:2.05}
.nart-end{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8ecf2;border-radius:12px;padding:14px 16px;margin:22px 0}
.nart-end b{color:var(--navy)}
.nmore{margin-top:26px}
@media (max-width:860px){.ncols{grid-template-columns:1fr}.nlead-link{grid-template-columns:1fr}.nlead-img{min-height:0;aspect-ratio:16/9}}
@media (max-width:640px){
  .nhead h1{font-size:24px}
  .nsearch{flex:1 1 100%}
  .nlead-body{padding:14px 14px 4px}
  .nlead .nmeta,.nlead .shr{padding-inline:14px}
  .nlead-title{font-size:20px}
  .nrow-img{flex-basis:96px;height:72px}
  .nrow-title{font-size:15.5px}
  .nrow-sum{display:none}
  .shr-open span{display:none}
  .shr-open{padding:5px 8px}
  .shr-b{padding:5px 10px;font-size:12.5px}
  .shr{gap:5px}
  .shr-list{gap:5px}
  .nart-title{font-size:24px}
  .nart-dek{font-size:16.5px}
  .nart-body{font-size:17px}
}
/* v1.17.0: community feed — composer, cards, filters, older posts, new posts, toasts */
.composer{padding:12px 14px}
.cp-top{display:flex;gap:10px;align-items:flex-start}
.cp-top .av{margin-top:3px}
.composer textarea{flex:1;min-height:96px;max-height:420px;resize:none;border-radius:12px;padding:9px 16px;line-height:1.6;transition:border-radius .15s}
.js .composer.is-collapsed textarea{min-height:44px;height:44px;border-radius:22px;overflow:hidden}
.js .composer.is-collapsed .cp-more{display:none}
.cp-more{animation:cpIn .18s ease-out}
@keyframes cpIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.cp-hint{margin:8px 0 6px;font-size:12.5px;color:var(--muted)}
.cp-kinds{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.kchip input{position:absolute;opacity:0;width:1px;height:1px}
.kchip span{display:inline-block;font:700 13px var(--f);border:1.5px solid var(--hair);border-radius:999px;padding:4px 12px;cursor:pointer;color:var(--navy);background:#fff}
.kchip input:checked+span{background:var(--navy);border-color:var(--navy);color:#fff}
.kchip input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}
.cp-previews{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.cp-previews img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--hair)}
.cp-actions{margin-top:8px}
.cp-actions .btn-gold{margin-inline-start:auto}
.cp-count{font-size:12.5px;color:var(--warn);font-weight:800}
.cp-cancel{color:var(--muted)}
.mstrip{display:none}
.feed-tabs{align-items:center}
.chiprow{display:flex;gap:6px;flex-wrap:wrap}
.chiprow .chip{white-space:nowrap}
.feed-items{transition:opacity .15s}
.feed-items.loading{opacity:.45;pointer-events:none}
.feed-res{margin:-4px 0 12px}
.feed-more{display:flex;justify-content:center;gap:10px;margin:6px 0 4px}
.more-posts{min-width:200px}
.more-posts.busy{opacity:.6;pointer-events:none}
.newpill{position:sticky;top:10px;z-index:6;display:block;margin:0 auto 10px;font:800 13.5px var(--f);color:#fff;background:var(--navy);border:0;border-radius:999px;padding:7px 18px;box-shadow:0 8px 20px rgba(15,39,68,.25);cursor:pointer}
.newpill[hidden]{display:none}
.post .head .who{align-items:center;flex:1;min-width:0}
.ph-txt{min-width:0;flex:1}
.ph-name{display:flex;align-items:center;gap:6px;min-width:0}
.ph-name .n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ph-name .tier{flex:none}
.post .head .m{font-size:12.5px;color:var(--muted)}
.ph-time{color:inherit;text-decoration:none}
.ph-time:hover{text-decoration:underline}
.ph-pin{color:var(--gold-d)}
.kdot{font-weight:800}
.kdot::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-inline-end:5px;vertical-align:1px;background:#7f8ea3}
.kdot.k-info{color:#245a96}.kdot.k-info::before{background:#2f6fb5}
.kdot.k-question{color:#174f9c}.kdot.k-question::before{background:#1d6fd6}
.kdot.k-market{color:var(--bad)}.kdot.k-market::before{background:#d0453a}
.kdot.k-discussion{color:#5b3b9a}.kdot.k-discussion::before{background:#7b55c7}
.post .body.clamped{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.clamp-more{font-weight:800;color:var(--navy2);margin-top:4px}
.post.p-new{animation:pNew 1.6s ease-out}
@keyframes pNew{0%{box-shadow:0 0 0 3px rgba(200,160,64,.6)}100%{box-shadow:0 0 0 0 rgba(200,160,64,0)}}
.pa.pop svg{animation:pop .35s ease-out}
@keyframes pop{0%{transform:scale(1)}45%{transform:scale(1.35)}100%{transform:scale(1)}}
.c-all.busy{opacity:.55}
.pics img{aspect-ratio:3/2;height:auto}
.pics.n1 img{aspect-ratio:auto;max-height:440px}
.ytoast-box{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none}
.ytoast{background:#0f2744;color:#fff;font:700 14px var(--f);border-radius:12px;padding:9px 18px;box-shadow:0 10px 26px rgba(10,31,56,.3);animation:tIn .2s ease-out}
.ytoast.bad{background:#a3271f}
.ytoast.out{opacity:0;transition:opacity .35s}
@keyframes tIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media (max-width:860px){
  .mstrip{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #e8ecf2;border-radius:12px;padding:8px 12px;margin-bottom:12px}
  .mstrip a{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--navy);font-weight:700;font-size:13.5px;min-width:0}
  .ms-avs{display:flex}
  .ms-avs .av{margin-inline-start:-10px;border-radius:50%;box-shadow:0 0 0 2px #fff}
  .ms-avs .av:first-child{margin-inline-start:0}
}
@media (max-width:640px){
  .feed-tabs{display:block}
  .chiprow{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;margin-bottom:8px;max-width:100%}
  .chiprow .chip{flex:none}
  .feed-tabs .feed-search{max-width:none;flex:none}
  .post .head .av{width:40px;height:40px}
  .ph-name .tier{display:none}
  .poll{padding:10px}
  .poll-opt{padding:7px 10px}
}
@media (prefers-reduced-motion:reduce){.cp-more,.post.p-new,.pa.pop svg,.ytoast{animation:none}.feed-items{transition:none}}
.yi{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pa.z .n{display:none}
@media (min-width:641px){.post .cform{display:none}.post.c-open .cform,.post:has(#comments) .cform{display:flex}}

/* ---------- v1.18.0 academy: course page, lesson page, light watermark ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;color:var(--gold-l)}
.eyebrow .yi{width:16px;height:16px}
.aca-hero{display:flex;gap:24px;align-items:center;justify-content:space-between;background:linear-gradient(135deg,var(--navy3),var(--navy2));color:#fff;border-radius:18px;padding:26px 28px;margin-bottom:16px}
.aca-hero h1{color:#fff;font-size:24px;margin:6px 0 8px}
.aca-hero p{color:#c9d4e2;margin:0 0 14px;max-width:660px;font-size:15px;line-height:1.9}
.aca-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.aca-facts li{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:3px 12px;font-size:13px;font-weight:700;color:#e6edf6}
.aca-facts li span{color:#9fb0c6;font-weight:600}
.aca-facts .yi{width:15px;height:15px;color:var(--gold-l)}
.aca-prog{display:flex;align-items:center;gap:14px;flex:none;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:14px 18px}
.ring{--p:0;width:76px;height:76px;border-radius:50%;background:conic-gradient(var(--gold-l) calc(var(--p) * 1%),rgba(255,255,255,.14) 0);display:grid;place-items:center;flex:none}
.ring b{width:60px;height:60px;border-radius:50%;background:var(--navy3);display:grid;place-items:center;font-size:17px;color:#fff}
.aca-prog>div:last-child{display:flex;flex-direction:column;font-size:13px;color:#c9d4e2;line-height:1.75}
.aca-prog>div:last-child b{color:#fff;font-size:15px}
.aca-here{display:flex;align-items:center;gap:16px;background:var(--card);border:1px solid var(--hair);border-inline-start:4px solid var(--gold);border-radius:14px;padding:14px 18px;margin-bottom:20px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:border-color .15s}
a.aca-here:hover{border-color:var(--gold)}
.here-n{flex:none;width:52px;height:52px;border-radius:12px;background:var(--navy);color:var(--gold-l);display:grid;place-items:center;font-size:20px;font-weight:900}
.here-n .yi{width:26px;height:26px}
.here-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.aca-here .eyebrow{color:var(--gold-d)}
.here-t b{color:var(--navy);font-size:17px;line-height:1.5}
.here-m{color:var(--muted);font-size:13px}
.here-bar,.lsn-bar,.chap-bar,.ls-bar{display:block;height:5px;background:var(--hair2);border-radius:99px;overflow:hidden}
.here-bar>span,.lsn-bar>span,.chap-bar>span,.ls-bar>span{display:block;height:100%;background:var(--gold);border-radius:99px}
.here-bar{margin-top:7px;max-width:340px}
.aca-here .btn{flex:none}
.aca-here.is-done{border-inline-start-color:var(--ok)}
.aca-here.is-done .here-n{background:var(--ok-bg);color:var(--ok)}
.aca-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.aca-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 10px}
.aca-h h2{margin:0;font-size:19px;color:var(--navy)}
.chap{background:var(--card);border:1px solid var(--hair);border-radius:14px;margin-bottom:10px;overflow:hidden}
.chap>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer}
.chap>summary::-webkit-details-marker{display:none}
.chap>summary:hover .chap-t b{color:var(--navy2)}
.chap-n{flex:none;width:34px;height:34px;border-radius:10px;background:var(--hair2);color:var(--navy);display:grid;place-items:center;font-weight:800;font-size:14px}
.chap-n .yi{width:17px;height:17px}
.chap[open]>summary .chap-n{background:var(--navy);color:var(--gold-l)}
.chap.is-done>summary .chap-n{background:var(--ok-bg);color:var(--ok)}
.chap-t{flex:1;min-width:0;display:flex;flex-direction:column}
.chap-t b{color:var(--navy);font-size:15.5px;line-height:1.5}
.chap-m{color:var(--muted);font-size:12.5px;font-weight:600}
.chap-p{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;color:var(--muted);font-weight:700;width:64px}
.chap-bar{width:64px}
.chev{flex:none;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin:-4px 4px 0;transition:transform .2s}
.chap[open]>summary .chev{transform:rotate(-135deg);margin-top:4px}
.chap-i{margin:-2px 16px 6px;padding-inline-start:46px;color:var(--muted);font-size:14px;line-height:1.8}
.lsns{padding:2px 8px 10px}
.lsn{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:10px;text-decoration:none;color:inherit}
a.lsn:hover{background:var(--bg)}
.lsn-ic{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--hair);color:var(--muted);font-size:12.5px;font-weight:800;background:#fff}
.lsn-ic .yi{width:15px;height:15px}
.lsn.is-done .lsn-ic{background:var(--ok);border-color:var(--ok);color:#fff}
.lsn.is-started .lsn-ic{border-color:var(--gold);color:var(--gold-d)}
.lsn.is-here .lsn-ic,.lsn.is-current .lsn-ic{background:var(--gold);border-color:var(--gold);color:var(--navy3)}
.lsn.is-here,.lsn.is-current{background:#fbf3df}
.lsn-t{flex:1;min-width:0;display:flex;flex-direction:column}
.lsn-t b{font-size:14.5px;color:var(--ink);line-height:1.6;font-weight:700}
.lsn-t small{color:var(--muted);font-size:13px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lsn-bar{margin-top:5px;max-width:160px}
.lsn-m{flex:none;display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);font-weight:700}
.here-chip{background:var(--navy);color:var(--gold-l);border-radius:999px;padding:1px 9px;font-size:11.5px;font-weight:800;white-space:nowrap}
.lsn.is-soon{opacity:.6}
.lsn.is-soon .lsn-ic{border-style:dashed}
.aca-side .card{margin:0 0 14px}
.aca-side h2,.lesson-info h2{margin:0 0 10px;font-size:16.5px;color:var(--navy)}
.checks{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.checks li{display:flex;gap:9px;align-items:flex-start;font-size:14.5px;line-height:1.75}
.checks .yi{flex:none;width:18px;height:18px;color:var(--ok);margin-top:4px}
.aca-how ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.aca-how li{display:flex;gap:9px;font-size:13.5px;color:var(--muted);line-height:1.75}
.aca-how .yi{flex:none;width:17px;height:17px;color:var(--gold-d);margin-top:3px}
.aca-crumbs{font-size:13.5px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;margin:0 0 4px}
.aca-crumbs a{color:var(--navy2);font-weight:700;text-decoration:none}
.aca-crumbs a:hover{text-decoration:underline}
.lesson-head h1{font-size:24px}
.lesson-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;color:var(--muted);font-size:13.5px;margin:2px 0 14px}
.lesson-meta>span{display:inline-flex;align-items:center;gap:5px}
.lesson-meta .yi{width:15px;height:15px}
.lesson-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.lesson-side{position:sticky;top:14px;padding:0;margin:0;overflow:hidden}
.ls-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px 8px;color:var(--navy);font-size:15px}
.ls-head .num{font-size:13px;color:var(--muted);font-weight:700}
.ls-bar{margin:0 16px 8px}
.ls-body{max-height:calc(100vh - 150px);overflow:auto;padding:0 8px 8px;overscroll-behavior:contain}
.chap.sm{border:0;border-radius:10px;margin:0 0 2px;background:transparent}
.chap.sm>summary{padding:9px 8px;gap:10px}
.chap.sm .chap-n{width:28px;height:28px;font-size:12.5px;border-radius:8px}
.chap.sm .chap-t b{font-size:14px}
.chap.sm .lsns{padding:0 0 6px}
.chap.sm .lsn{padding:7px 8px;gap:10px}
.chap.sm .lsn-ic{width:26px;height:26px;font-size:11.5px}
.chap.sm .lsn-t b{font-size:13.5px;font-weight:600}
.chap.sm .lsn-m{font-size:12px}
.lesson-note{display:flex;align-items:center;gap:6px;margin:8px 0 14px}
.lesson-note .yi{width:14px;height:14px}
.lesson-info{margin:0}
.lesson-info h2:not(:first-child){margin-top:18px}
.lesson-sum{margin:0;font-size:15.5px;line-height:1.95}
.lesson-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.lesson-nav a{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--hair);border-radius:12px;padding:10px 14px;text-decoration:none;color:inherit;min-width:0}
.lesson-nav a:hover{border-color:var(--gold)}
.lesson-nav small{color:var(--muted);font-size:12.5px;font-weight:700}
.lesson-nav b{color:var(--navy);font-size:14.5px;line-height:1.6}
.lesson-nav .ln-next{grid-column:2;text-align:left;align-items:flex-end}
.player .wm{display:block;font:700 14px/1.3 var(--f);color:rgba(255,255,255,.78);background:rgba(10,31,56,.26);border-radius:8px;padding:3px 10px;text-shadow:0 1px 2px rgba(0,0,0,.35);letter-spacing:.2px;transition:none;white-space:nowrap}
.player .wm.drift{transition:top 13s ease-in-out,left 13s ease-in-out}
.pl-tools{position:absolute;z-index:3;top:10px;left:10px;display:flex;gap:6px}
.pl-btn{height:36px;min-width:36px;padding:0 8px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(10,31,56,.55);color:#fff;display:grid;place-items:center;cursor:pointer;opacity:.8;font:800 12.5px var(--f)}
.pl-btn:hover{opacity:1;border-color:var(--gold-l)}
.pl-btn.on{color:var(--gold-l);border-color:var(--gold-l);opacity:1}
.pl-resume{position:absolute;z-index:3;top:10px;right:10px;display:flex;align-items:center;gap:10px;background:rgba(10,31,56,.84);color:#fff;border-radius:10px;padding:5px 6px 5px 12px;font-size:13px}
.pl-resume button{background:transparent;border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:8px;padding:1px 10px;font:700 12.5px var(--f);cursor:pointer}
.pl-resume[hidden],.pl-end[hidden]{display:none}
.pl-end{position:absolute;inset:0 0 56px 0;z-index:3;display:grid;place-items:center;background:rgba(10,31,56,.88);color:#fff;text-align:center;padding:14px}
.pl-end>div{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:440px}
.pl-end b{font-size:19px}
.pl-end>div>span:not(.pl-end-ic){color:#c9d4e2;font-size:14px}
.pl-end-ic{width:44px;height:44px;border-radius:50%;background:var(--ok);display:grid;place-items:center;color:#fff}
.pl-end-ic .yi{width:24px;height:24px}
.pl-end-b{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.pl-end .btn-line{color:#fff;border-color:rgba(255,255,255,.4);background:transparent}
.subnav a .dotp{width:7px;height:7px;border-radius:50%;background:var(--gold);display:inline-block;margin-inline-start:-2px}
.aca-card .here-bar{max-width:none}
.aca-card .aca-at{display:block;margin:2px 0 8px;font-size:13px;color:var(--muted)}
.aca-card .aca-at b{color:var(--navy)}
@media (max-width:860px){
  .aca-hero{flex-direction:column;align-items:stretch;padding:20px 18px;gap:16px}
  .aca-hero h1{font-size:21px}
  .aca-grid{grid-template-columns:1fr}
  .aca-side{display:contents}
  .aca-out{order:-1}
  .aca-content{order:0}
  .aca-how{order:1}
  .lesson-grid{grid-template-columns:1fr}
  .lesson-side{position:static}
  .ls-body{max-height:none;overflow:visible}
}
@media (max-width:640px){
  .aca-here{flex-wrap:wrap;gap:12px;padding:14px}
  .aca-here .here-n{width:44px;height:44px;font-size:17px}
  .aca-here .btn{width:100%;justify-content:center}
  .here-t b{font-size:16px}
  .chap>summary{padding:12px;gap:10px}
  .chap-p{width:52px}
  .chap-bar{width:52px}
  .chap-i{padding-inline-start:0;margin:0 12px 6px}
  .lsns{padding:0 4px 8px}
  .lsn{padding:9px 8px;gap:10px}
  .lsn-t small{-webkit-line-clamp:1}
  .lesson-head h1{font-size:20px}
  .player .wm{font-size:11.5px;padding:2px 8px}
  .pl-resume{top:auto;bottom:62px;right:8px;font-size:12px;padding:3px 4px 3px 9px;gap:6px}
  .pl-resume button{font-size:11.5px;padding:0 8px}
  .pl-btn{height:32px;min-width:32px}
  .pl-end{inset:0 0 44px 0;padding:8px}
  .pl-end b{font-size:15px}
  .pl-end>div>span:not(.pl-end-ic){display:none}
  .pl-end-ic{width:34px;height:34px}
  .pl-end-b .btn{padding:6px 12px;font-size:13px}
  .lesson-nav b{font-size:13.5px}
}
@media (prefers-reduced-motion:reduce){.player .wm.drift,.chev{transition:none}}
.al-ic.al-study{background:#fbf3df;color:var(--gold-d)}

/* ---------- v1.19.0 academy: lesson pictures, certificate ---------- */
.here-pic{flex:none;position:relative;width:128px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--navy)}
.here-pic img{width:100%;height:100%;object-fit:cover;display:block}
.here-pic b{position:absolute;bottom:5px;right:5px;background:var(--navy);color:var(--gold-l);border-radius:7px;padding:0 7px;font-size:13px;line-height:1.7}
.lsn-pic{flex:none;width:72px;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:var(--hair2)}
.lsn-pic img{width:100%;height:100%;object-fit:cover;display:block}
.aca-here.is-done .btn{flex:none}
.aca-how a{color:var(--navy2);font-weight:700}
.cert-tools{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:6px 0 16px}
.cert-tools h1{margin:0 0 2px}
.cert-tools p{margin:0;max-width:640px}
.cert-locked,.cert-check{text-align:center;max-width:620px;margin:10px auto}
.cert-locked h1,.cert-check h1{margin:6px 0}
.cert-lock-ic,.cc-ic{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fbf3df;color:var(--gold-d)}
.cert-lock-ic .yi,.cc-ic .yi{width:26px;height:26px}
.cc-ic.ok{background:var(--ok-bg);color:var(--ok)}
.cc-ic.bad{background:var(--bad-bg);color:var(--bad)}
@media (max-width:760px){
  .lsn-pic{display:none}
  .here-pic{width:96px}
}
/* v1.19.0 audit: the market band keeps its dark cards (the v1.15.0 white card rule must not reach it) */
body:not(.bo) .hero .stat{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
.tw:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* v1.19.0 members' bulletin page: latest first, rates right after, archive by day */
.bl-now{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;border-radius:14px;padding:18px 20px;margin-bottom:16px}
.bl-now-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.bl-kick{font-size:13px;font-weight:700;color:#c9d4e2;display:flex;align-items:center;gap:8px}
.bl-new{background:var(--gold);color:var(--navy3);border-radius:999px;padding:0 9px;font-size:11.5px;font-weight:800}
.bl-date{font-size:24px;font-weight:800;color:#f3d68a;line-height:1.4}
.bl-meta{font-size:13px;color:#c9d4e2}
.bl-same{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bl-now .bl-chip{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#e6edf6}
.bl-now .bl-chip.on{border-color:var(--gold-l);color:#f3d68a}
.bl-now-b{display:flex;gap:8px;flex-wrap:wrap}
.bl-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}
.bl-ghost:hover{border-color:var(--gold-l);color:#f3d68a}
.bl-rates .brates{min-width:0;width:100%}
.bl-rates tr.chg td{background:#fffaf0}
.bl-rates .dlt{font-size:11.5px;font-weight:700;line-height:1.5}
.bl-rates .dlt.up{color:var(--up)}
.bl-rates .dlt.down{color:var(--down)}
.bl-arch h2{margin:0 0 6px}
.bl-day{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--hair2)}
.bl-day:last-child{border-bottom:0}
.bl-day-t{flex:none;width:150px;font-weight:700;color:var(--navy);display:flex;flex-direction:column;line-height:1.45}
.bl-day-t small{font-weight:600;color:var(--muted);font-size:12px}
.bl-day-b{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.bl-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hair);background:#fff;border-radius:999px;padding:3px 12px;font-size:13px;font-weight:700;color:var(--navy2);text-decoration:none;position:relative}
.bl-chip:hover{border-color:var(--gold)}
.bl-chip .yi{width:14px;height:14px}
.bl-chip.unseen::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);display:inline-block}
.bl-older{margin-top:8px}
.bl-older>summary{cursor:pointer;font-weight:700;color:var(--navy2);padding:8px 0}
@media (max-width:640px){
  .bl-now{padding:16px}
  .bl-now-b{width:100%}
  .bl-now-b .btn{flex:1;justify-content:center}
  .bl-date{font-size:21px}
  .bl-day{align-items:flex-start}
  .bl-day-t{width:118px}
}

/* ---------- v1.20.0 bell dropdown ---------- */
.subnav{position:relative;z-index:20}
.subnav a.bp-on{color:var(--navy);background:#fbf3df}
.bellpop{position:absolute;top:calc(100% + 6px);left:8px;width:400px;max-width:calc(100vw - 16px);background:#fff;border:1px solid var(--hair);border-radius:16px;box-shadow:0 24px 54px -20px rgba(10,31,56,.5),0 2px 8px rgba(10,31,56,.06);overflow:hidden;animation:bp-in .16s ease-out}
.bellpop[hidden]{display:none}
@keyframes bp-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.bp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 11px;border-bottom:1px solid var(--hair2);background:linear-gradient(180deg,#fdf8ea,#fff)}
.bp-head b{font-size:16.5px;color:var(--navy);outline:0}
.bp-all{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--navy2);font:700 13px var(--f);cursor:pointer;padding:5px 9px;border-radius:9px}
.bp-all svg{width:15px;height:15px}
.bp-all:not(:disabled):hover{background:#fff;box-shadow:inset 0 0 0 1px var(--hair)}
.bp-all:disabled{color:var(--muted);opacity:.55;cursor:default;box-shadow:none}
.bp-list{max-height:min(62vh,470px);overflow-y:auto;overscroll-behavior:contain}
.bp-it{position:relative;display:flex;align-items:center;border-bottom:1px solid var(--hair2);transition:opacity .2s,transform .2s,height .24s;overflow:hidden}
.bp-it:last-child{border-bottom:0}
.bp-it::before{content:"";position:absolute;inset-inline-start:7px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--gold)}
.bp-it:hover{background:#f8fafc}
.bp-it.out{opacity:0;transform:translateX(-24px)}
.bp-it .inbox-row{flex:1;min-width:0;border:0;padding:11px 6px 11px 4px;padding-inline-start:18px;gap:10px;align-items:flex-start}
.bp-it .inbox-row .p b{font-size:14.5px;line-height:1.5}
.bp-it .inbox-row .p span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13.5px;line-height:1.6}
.bp-it .inbox-row>.small{font-size:12px;white-space:nowrap;padding-top:2px}
.bp-it .al-ic{width:32px;height:32px;flex-basis:32px}
.bp-x{flex:none;width:32px;height:32px;margin-inline-end:10px;border-radius:50%;border:1px solid var(--hair);background:#fff;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0;transition:color .15s,background .15s,border-color .15s}
.bp-x svg{width:16px;height:16px}
.bp-x:hover,.bp-x:focus-visible{color:var(--ok);border-color:#9fd3b5;background:var(--ok-bg)}
.bp-sec{padding:7px 18px 5px;font-size:12px;font-weight:800;color:var(--muted);background:#fafbfd;border-bottom:1px solid var(--hair2);letter-spacing:.2px}
.bp-empty{display:grid;justify-items:center;gap:0;padding:30px 16px 28px;text-align:center;color:var(--muted);font-size:14px}
.bp-empty b{color:var(--navy);font-size:15px}
.bp-empty-ic{width:48px;height:48px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center;margin-bottom:8px}
.bp-empty-ic svg{width:22px;height:22px}
.bp-err{padding:26px 16px;text-align:center;color:var(--bad);font-size:14px}
.bp-skel{display:flex;gap:10px;align-items:center;padding:13px 18px;border-bottom:1px solid var(--hair2)}
.bp-skel i{width:34px;height:34px;border-radius:50%;flex:none}
.bp-skel span{flex:1;display:grid;gap:7px}
.bp-skel b{height:11px;width:45%;border-radius:6px}
.bp-skel em{height:10px;width:85%;border-radius:6px}
.bp-skel i,.bp-skel b,.bp-skel em{background:linear-gradient(90deg,#eef1f5 25%,#f7f9fb 50%,#eef1f5 75%);background-size:200% 100%;animation:bp-sh 1.1s linear infinite}
@keyframes bp-sh{from{background-position:200% 0}to{background-position:0 0}}
.bp-foot{display:block;text-align:center;padding:11px;font-weight:800;font-size:14px;color:var(--navy2);text-decoration:none;border-top:1px solid var(--hair2);background:#fbfcfe}
.bp-foot:hover{background:#fbf3df;color:var(--navy)}
@media (max-width:640px){
  .bellpop{left:8px;right:8px;width:auto}
  .bp-list{max-height:min(66vh,520px)}
}
@media (prefers-reduced-motion:reduce){.bellpop,.bp-it,.bp-skel i,.bp-skel b,.bp-skel em{animation:none;transition:none}}
.bp-t{display:block;font-style:normal;font-size:12px;color:var(--gold-d);font-weight:700;margin-top:1px}

/* ---------- v1.20.0 certificate: ornaments that print without background graphics, one A4 page ---------- */
.cert{container-type:inline-size;background:#fff;color:#0a1f38;border-radius:8px;box-shadow:var(--shadow);padding:1.3cqw;max-width:1000px;margin:0 auto;aspect-ratio:297/210;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cert-defs{position:absolute;width:0;height:0;overflow:hidden}
.cert-in{position:relative;height:100%;border:1.5px solid #0f2744;border-radius:3px;padding:3.4cqw 7cqw 3.3cqw;display:flex;flex-direction:column;align-items:center;text-align:center;background:radial-gradient(ellipse 70% 60% at 50% 42%,#fdf8ea,#fff 72%)}
.cert-in::before{content:"";position:absolute;inset:.75cqw;border:1px solid #c8a040;border-radius:2px;pointer-events:none}
.cert-in::after{content:"";position:absolute;inset:1.05cqw;border:.5px solid #e8d7a6;border-radius:2px;pointer-events:none}
.cert-band{position:absolute;left:12.5cqw;width:calc(100% - 25cqw);height:1.4cqw}
.cb-top{top:1.45cqw}
.cb-bot{bottom:1.45cqw}
.cert-corner{position:absolute;width:11cqw;height:11cqw}
.cc-tl{top:.4cqw;left:.4cqw}
.cc-tr{top:.4cqw;right:.4cqw;transform:scaleX(-1)}
.cc-bl{bottom:.4cqw;left:.4cqw;transform:scaleY(-1)}
.cc-br{bottom:.4cqw;right:.4cqw;transform:scale(-1,-1)}
.cert-wm{position:absolute;left:50%;top:47%;width:44cqw;height:44cqw;transform:translate(-50%,-50%);opacity:.16;pointer-events:none}
.cert-in>*:not(.cert-band):not(.cert-corner):not(.cert-wm){position:relative}
.cert-top{display:flex;flex-direction:column;align-items:center;gap:.2cqw}
.cert-top svg{width:3cqw;height:3.9cqw}
.cert-top b{display:block;font-size:1.65cqw;line-height:1.3;color:#0f2744}
.cert-top small{display:block;font-size:1.05cqw;color:#5a6b80;letter-spacing:.2px}
.cert-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35cqw;width:100%}
.cert-kind{margin:0;display:flex;align-items:center;gap:1.4cqw;font-size:3.5cqw;font-weight:800;color:#8a6a1f;line-height:1.35}
.cert-st{width:1.7cqw;height:1.7cqw;flex:none}
.cert-lead{margin:0;font-size:1.45cqw;color:#5a6b80}
.cert-name{margin:.3cqw 0 0;font-size:4.1cqw;font-weight:800;color:#0a1f38;line-height:1.35}
.cert-flourish{width:38cqw;height:1.9cqw;margin:.1cqw 0 .3cqw}
.cert-city{margin:0 0 .3cqw;font-size:1.45cqw;color:#5a6b80}
.cert-course{margin:0;font-size:1.95cqw;font-weight:800;color:#0f2744;max-width:72cqw;line-height:1.55}
.cert-facts{list-style:none;margin:.8cqw 0 .2cqw;padding:0;display:flex;gap:1cqw;flex-wrap:wrap;justify-content:center}
.cert-facts li{border:1px solid #d9bf73;background:#fff;border-radius:999px;padding:.15cqw 1.5cqw;font-size:1.3cqw;font-weight:700;color:#0f2744}
.cert-chaps{display:flex;flex-wrap:wrap;gap:.25cqw .5cqw;justify-content:center;max-width:80cqw;margin-top:.5cqw}
.cert-chaps span{font-size:1.1cqw;color:#5a6b80;padding:0 .4cqw;display:inline-flex;align-items:center;gap:.5cqw}
.cert-chaps span+span::before{content:"";width:.45cqw;height:.45cqw;background:#c8a040;transform:rotate(45deg);display:inline-block}
.cert-foot{width:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:2cqw}
.cf-side{display:flex;flex-direction:column;gap:.1cqw;padding-top:.6cqw;border-top:1px solid #d9bf73;min-width:0;width:27cqw}
.cert-foot>.cf-side:first-child{align-items:flex-start;text-align:right;justify-self:start;min-width:19cqw}
.cert-foot>.cf-side:last-child{align-items:flex-end;text-align:left;justify-self:end;min-width:19cqw}
.cert-foot small{font-size:1.05cqw;color:#5a6b80}
.cert-foot b{font-size:1.45cqw;color:#0a1f38}
.cert-url{font-size:.95cqw!important;word-break:break-all;max-width:28cqw}
.cert-seal{line-height:0}
.cert-seal-svg{width:10.5cqw;height:10.5cqw}
@media (max-width:760px){
  .cert{aspect-ratio:auto;padding:6px}
  .cert-in{padding:34px 16px 30px}
  .cert-in::before{inset:5px}
  .cert-in::after{inset:8px}
  .cert-band{left:56px;width:calc(100% - 112px);height:10px}
  .cb-top{top:10px}
  .cb-bot{bottom:10px}
  .cert-corner{width:52px;height:52px}
  .cert-wm{width:280px;height:280px}
  .cert-top svg{width:26px;height:34px}
  .cert-top b{font-size:15px}
  .cert-top small{font-size:11.5px}
  .cert-body{gap:4px;margin-top:10px}
  .cert-kind{font-size:25px;gap:10px}
  .cert-st{width:13px;height:13px}
  .cert-lead,.cert-city{font-size:14px}
  .cert-name{font-size:26px}
  .cert-flourish{width:230px;height:14px}
  .cert-course{font-size:16px;max-width:none}
  .cert-facts{gap:6px}
  .cert-facts li{font-size:13px;padding:1px 12px}
  .cert-chaps{max-width:none;gap:2px 4px}
  .cert-chaps span{font-size:12px;gap:4px}
  .cert-chaps span+span::before{width:4px;height:4px}
  .cert-foot{grid-template-columns:1fr;justify-items:center;gap:10px;margin-top:14px}
  .cert-foot>.cf-side:first-child,.cert-foot>.cf-side:last-child{align-items:center;text-align:center;justify-self:center;min-width:0}
  .cert-foot small{font-size:11.5px}
  .cert-foot b{font-size:15px}
  .cert-url{font-size:10.5px!important;max-width:260px}
  .cert-seal{order:-1}
  .cert-seal-svg{width:96px;height:96px}
}
@media print{
  html,body.print-cert{background:#fff!important;min-height:0!important;height:auto!important;display:block!important}
  body.print-cert>*:not(main){display:none!important}
  body.print-cert main{padding:0!important;margin:0!important}
  body.print-cert main>.wrap{padding:0!important;margin:0!important;max-width:none!important;width:auto!important}
  body.print-cert main>.wrap>*:not(.cert){display:none!important}
  body.print-cert .cert{width:auto;max-width:none;height:calc(100vh - 1px);aspect-ratio:auto;margin:0;padding:5mm;border-radius:0;box-shadow:none;break-inside:avoid;page-break-inside:avoid;overflow:hidden}
}

/* ---------- v1.20.0 account page ---------- */
.acc-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,330px);gap:22px;align-items:center;background:linear-gradient(135deg,#0a1f38 0%,#14345f 100%);color:#fff;border-radius:18px;padding:26px 28px;margin-bottom:18px}
.acc-hero::after{content:"";position:absolute;inset-inline-start:-60px;bottom:-90px;width:260px;height:260px;border-radius:50%;border:38px solid rgba(232,192,96,.07);pointer-events:none}
.acc-id{display:flex;align-items:center;gap:18px;min-width:0;position:relative;z-index:1}
.acc-id .av.lg{width:88px;height:88px}
.acc-who{min-width:0}
.acc-kick{display:inline-block;font-size:12.5px;font-weight:800;color:var(--gold-l);letter-spacing:.3px}
.acc-who h1{color:#fff;margin:0;font-size:26px;line-height:1.35;overflow-wrap:anywhere}
.acc-who p{margin:2px 0 0;color:#c9d4e2;font-size:14.5px}
.acc-mail{font-size:14px!important;color:#e8eef6!important;text-align:right;overflow-wrap:anywhere}
.acc-sub{position:relative;z-index:1;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:14px 16px;display:grid;gap:4px}
.acc-sub-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#c9d4e2}
.acc-exp{font-size:17px;color:#fff}
.acc-meter{height:7px;background:rgba(255,255,255,.14);border-radius:999px;overflow:hidden;margin:4px 0 2px}
.acc-meter span{display:block;height:100%;border-radius:999px;background:var(--gold-l)}
.acc-meter.low span{background:#f0b44c}
.acc-meter.gone span{background:#e0675d}
.acc-sub .days.fine{color:#7fd6a6}
.acc-sub .days.low{color:#f6c56b}
.acc-sub .days.gone{color:#f19b93}
.acc-renew{color:var(--gold-l);font-weight:800;font-size:13.5px;margin-top:2px}
.acc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,330px);gap:18px;align-items:start}
.acc-main{display:grid;gap:16px;min-width:0}
.acc-main .card,.acc-side .card{margin:0}
.acc-list{padding:8px 0 4px}
.acc-list h2{padding:10px 20px 2px;margin:0 0 4px}
.acc-row{display:flex;align-items:center;gap:14px;padding:13px 20px;text-decoration:none;color:inherit;border-top:1px solid var(--hair2);transition:background .15s}
.acc-row:hover{background:#fbfcfe}
.acc-row:hover .acc-go{color:var(--navy);border-color:var(--gold)}
.acc-ic{flex:none;width:42px;height:42px;border-radius:12px;background:#fbf3df;color:var(--gold-d);display:grid;place-items:center}
.acc-ic svg{width:20px;height:20px}
.acc-t{flex:1;min-width:0;display:grid}
.acc-t b{color:var(--navy);font-size:15.5px}
.acc-t span{color:var(--muted);font-size:13.5px;line-height:1.65}
.acc-go{flex:none;font-size:13px;font-weight:800;color:var(--navy2);border:1.5px solid var(--hair);border-radius:9px;padding:4px 11px;white-space:nowrap;transition:border-color .15s,color .15s}
.acc-shield{width:34px;height:34px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center}
.acc-shield svg{width:18px;height:18px}
.acc-note{margin:-4px 0 10px}
.acc-log{list-style:none;margin:0;padding:0;display:grid}
.acc-log li{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px dashed var(--hair)}
.acc-log li:first-child{border-top:0}
.acc-dot{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ok-bg);color:var(--ok)}
.acc-log li.ev-bad .acc-dot{background:var(--bad-bg);color:var(--bad)}
.acc-dot svg{width:15px;height:15px}
.acc-lt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px;flex:1;min-width:0}
.acc-lt b{font-size:14.5px;color:var(--navy)}
.acc-log li.ev-bad .acc-lt b{color:var(--bad)}
.acc-lt>span{font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.acc-none{border:0!important;padding:10px 0}
.acc-out{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--hair2)}
.acc-out .btn{display:inline-flex;align-items:center;gap:7px}
.acc-out .btn svg{width:16px;height:16px}
.acc-side{display:grid;gap:16px;min-width:0;position:sticky;top:14px}
.acc-app{text-align:center;background:linear-gradient(180deg,#fdf8ea,#fff 55%)}
.acc-app h2{margin:6px 0 6px}
.acc-app p{margin:0 0 10px}
.acc-phone{display:inline-block;width:52px;height:78px}
.acc-phone svg{width:100%;height:100%}
@media (max-width:880px){
  .acc-hero{grid-template-columns:minmax(0,1fr);padding:22px 18px}
  .acc-grid{grid-template-columns:minmax(0,1fr)}
  .acc-side{position:static}
}
@media (max-width:520px){
  .acc-id{gap:14px}
  .acc-id .av.lg{width:68px;height:68px}
  .acc-who h1{font-size:21px}
  .acc-row{padding:12px 16px;gap:12px;flex-wrap:wrap}
  .acc-list h2{padding:10px 16px 2px}
  .acc-go{display:none}
  .acc-ic{width:38px;height:38px}
}

/* ---------- v1.20.0 messages: conversation list beside the chat ---------- */
.msgr{display:grid;grid-template-columns:340px minmax(0,1fr);background:#fff;border:1px solid var(--hair);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);height:min(calc(100vh - 170px),780px);min-height:520px}
.ml{display:flex;flex-direction:column;min-height:0;min-width:0;border-inline-end:1px solid var(--hair);background:#fff}
.ml-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 10px}
.ml-h{margin:0;font-size:21px;color:var(--navy)}
.ml-new{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:800;color:var(--navy);text-decoration:none;border:1.5px solid var(--hair);border-radius:999px;padding:4px 12px 4px 10px;white-space:nowrap}
.ml-new svg{width:15px;height:15px}
.ml-new:hover{border-color:var(--gold);background:#fbf3df}
.ml-tools{padding:0 16px 10px;display:grid;gap:8px}
.ml-q{width:100%;font:600 14px var(--f);padding:8px 38px 8px 12px;border:1.5px solid var(--hair);border-radius:12px;background:var(--bg) no-repeat right 12px center/17px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E")}
.ml-q:focus{outline:0;border-color:var(--gold);background-color:#fff}
.ml-f{display:flex;gap:6px}
.ml-f button{font:700 13px var(--f);color:var(--muted);background:none;border:1.5px solid var(--hair);border-radius:999px;padding:3px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.ml-f button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.ml-f button .num{background:#c0392b;color:#fff;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:11px;display:inline-grid;place-items:center;line-height:1}
.ml-rows{flex:1;min-height:0;overflow-y:auto;border-top:1px solid var(--hair2)}
.ml-row{display:flex;align-items:center;gap:11px;padding:11px 16px;text-decoration:none;color:inherit;border-inline-start:3px solid transparent;border-bottom:1px solid var(--hair2);transition:background .15s}
.ml-row[hidden]{display:none}
.ml-row:hover{background:#f8fafc}
.ml-row.on{background:#fbf3df;border-inline-start-color:var(--gold)}
.ml-p{flex:1;min-width:0;display:grid;gap:1px}
.ml-top,.ml-last{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.ml-top b{color:var(--navy);font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-top time{flex:none;font-size:11.5px;color:var(--muted)}
.ml-tx{font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ml-n{flex:none;min-width:20px;height:20px;border-radius:999px;background:#c0392b;color:#fff;font-size:11.5px;font-weight:800;display:grid;place-items:center;padding:0 6px}
.ml-row.unread .ml-tx{color:var(--ink);font-weight:700}
.ml-row.unread time{color:var(--gold-d);font-weight:800}
.ml-empty{display:grid;justify-items:center;text-align:center;gap:2px;padding:34px 18px;color:var(--muted);font-size:14px}
.ml-empty b{color:var(--navy)}
.ml-empty-ic{width:50px;height:50px;border-radius:50%;background:#fbf3df;color:var(--gold-d);display:grid;place-items:center;margin-bottom:6px}
.ml-empty-ic svg{width:22px;height:22px}
.ml-none,.ml-none-u{margin:0;padding:22px 16px;text-align:center;color:var(--muted);font-size:14px}
.mc{display:flex;flex-direction:column;min-width:0;min-height:0}
.mc-welcome{align-items:center;justify-content:center;text-align:center;padding:40px 36px;background:#f7f5ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 15l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23c8a040' fill-opacity='.1'/%3E%3C/svg%3E")}
.mc-w-ic{width:84px;height:84px;margin-bottom:10px}
.mc-w-ic svg{width:100%;height:100%}
.mc-welcome h2{margin:0 0 4px;font-size:20px}
.mc-welcome p{margin:0 0 6px;color:var(--muted);max-width:430px}
.mc-law{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;color:#6b4e12;line-height:1.7}
.mc-law svg{flex:none;width:15px;height:15px;margin-top:3px;color:var(--gold-d)}
.mc-welcome .mc-law{margin-top:14px;background:#fff;border:1px solid #f1dca4;border-radius:12px;padding:9px 13px;max-width:460px;text-align:right}
.mc-head{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid var(--hair);background:#fff}
.mc-back{display:none;flex:none;width:36px;height:36px;border-radius:50%;color:var(--navy);place-items:center}
.mc-back svg{width:22px;height:22px}
.mc-back:hover{background:var(--bg)}
.mc-who{flex:1;min-width:0}
.mc-who>a{display:block;font-weight:800;color:var(--navy);text-decoration:none;font-size:16.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-who>a:hover{text-decoration:underline}
.mc-on{color:var(--ok);font-weight:700;display:inline-flex;align-items:center;gap:5px}
.mc-on::before{content:"";width:7px;height:7px;border-radius:50%;background:#1fae5b}
.mc-head form{margin:0}
.mc-block{font:700 13px var(--f);color:var(--muted);background:#fff;border:1.5px solid var(--hair);border-radius:9px;padding:4px 12px;cursor:pointer}
.mc-block:hover{color:var(--bad);border-color:#f0b9b4;background:var(--bad-bg)}
.mc-chat .thread{flex:1;max-height:none;min-height:0;padding:18px 22px;gap:6px;background:#f7f5ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 15l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23c8a040' fill-opacity='.08'/%3E%3C/svg%3E")}
.mc-chat .bub{background:#fff;border:0;border-radius:16px;border-start-start-radius:5px;box-shadow:0 1px 1.5px rgba(10,31,56,.1);padding:8px 13px 6px;line-height:1.75}
.mc-chat .bub.mine{background:#fbefcf;border-radius:16px;border-start-end-radius:5px}
.mc-chat .bub .t{text-align:end;margin-top:1px;font-size:11px}
.mc-chat .day-sep{background:rgba(255,255,255,.92);box-shadow:0 1px 1.5px rgba(10,31,56,.08);color:var(--navy);font-weight:700;margin:6px 0}
.mc-chat .thread>.empty{margin:auto;background:#fff;border-radius:12px;padding:14px 22px;box-shadow:0 1px 2px rgba(10,31,56,.08)}
.mc-foot{border-top:1px solid var(--hair);padding:9px 16px 12px;background:#fff}
.mc-foot .mc-law{margin:0 0 7px}
.mc-chat .composer-msg{margin:0;align-items:flex-end}
.mc-chat .composer-msg textarea{min-height:46px;resize:none;border-radius:23px;padding:10px 16px;background:var(--bg);line-height:1.6}
.mc-chat .composer-msg textarea:focus{outline:0;border-color:var(--gold);background:#fff}
.mc-send{flex:none;height:46px;border:0;border-radius:23px;padding:0 18px;background:var(--gold);color:var(--navy3);font:800 14.5px var(--f);display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.mc-send:hover{background:var(--gold-l)}
.mc-send svg{width:19px;height:19px;transform:scaleX(-1)}
.mc-closed{margin:4px 0 0;text-align:center;color:var(--muted);font-weight:700}
@media (max-width:760px){
  .msgr{grid-template-columns:minmax(0,1fr);border-radius:14px;height:auto;min-height:0}
  .msgr.is-inbox .ml{border-inline-end:0}
  .msgr.is-inbox .ml-rows{overflow:visible}
  .msgr.is-inbox .mc-welcome{border-top:1px solid var(--hair);padding:24px 18px}
  .msgr.is-inbox .mc-w-ic{width:56px;height:56px}
  .msgr.is-inbox .mc-welcome h2{font-size:17px}
  .msgr.is-conv{height:calc(100vh - 150px);height:calc(100dvh - 150px);min-height:440px}
  .msgr.is-conv .ml{display:none}
  .mc-back{display:grid}
  .mc-head{padding:9px 10px;gap:9px}
  .mc-head .av{width:40px;height:40px}
  .mc-chat .thread{padding:14px 12px}
  .mc-foot{padding:8px 10px 10px}
  .mc-send{width:46px;padding:0;justify-content:center}
  .mc-send span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.nw{white-space:nowrap}

/* ---------- v1.20.0 members' menu: gold frame (members only) ---------- */
.subnav{background:var(--bg);border-bottom:0;padding-block:10px 2px}
.subnav>.wrap{background:linear-gradient(180deg,#fffdf7,#fff);border:1.5px solid #d9bf73;border-radius:14px;box-shadow:0 0 0 3px #fff,0 0 0 4px #efe0b4,0 10px 24px -20px rgba(138,106,31,.6);min-height:54px;padding-block:3px}
.subnav>.wrap>a.on,.subnav a.bp-on{background:#fbf3df;box-shadow:inset 0 0 0 1px #e3cb85;color:var(--navy)}
.sn-vip{margin-inline-start:auto;flex:none;display:inline-flex;align-items:center;gap:6px;font:800 12.5px var(--f);color:#5c4210;background:linear-gradient(135deg,#f8e9b8,#e8c060);border:1px solid #d4b257;border-radius:999px;padding:3px 12px 3px 11px;white-space:nowrap}
.sn-vip svg{width:15px;height:15px;color:#8a6a1f}
.bellpop{border-color:#e3cb85}
.bp-head{border-bottom-color:#efe0b4}
@media (max-width:640px){
  .subnav{padding-block:8px 0}
  .subnav>.wrap{width:auto;border-radius:12px;margin-inline:8px;padding-inline:6px}
}

/* ---------- v1.21.0 tiers: metal medal in a framed plaque + metallic tier pills ---------- */
.t-member{--s1:#16345c;--s2:#0a1f38;--sb:#c8a040;--sl:#c8a040;--m4:#ffffff;--m1:#e4e9f0;--m2:#b6c1cf;--m3:#6f7c8e;--mi:#3a4657;--me:#c3ccd8}
.t-bronze{--s1:#b0703a;--s2:#5a2e0e;--sb:#5a2e0e;--sl:#f6d2a8;--m4:#fff0de;--m1:#f0c08c;--m2:#c27f45;--m3:#7a4219;--mi:#5a2e0e;--me:#d49a63}
.t-silver{--s1:#8f9bad;--s2:#3c4656;--sb:#3c4656;--sl:#ffffff;--m4:#ffffff;--m1:#e8edf3;--m2:#aab6c4;--m3:#5d6a7b;--mi:#2f3a48;--me:#b9c4d1}
.t-gold{--s1:#d9ad35;--s2:#6e500a;--sb:#5e4408;--sl:#fff1b8;--m4:#fffbe6;--m1:#f6dc86;--m2:#d4a62a;--m3:#80600f;--mi:#4f3a05;--me:#dcb550}
.t-platinum{--s1:#7aa3c4;--s2:#1f4563;--sb:#163a57;--sl:#e6f1f8;--m4:#ffffff;--m1:#dcebf5;--m2:#93b6cf;--m3:#3d6788;--mi:#163a57;--me:#a8c6dc}
.tbox{position:relative;overflow:hidden;border:2px solid transparent;border-radius:16px;padding:12px 14px 12px;background:linear-gradient(160deg,#fff 0%,#fff 55%,var(--m4) 100%) padding-box,linear-gradient(135deg,var(--m1),var(--m3) 38%,var(--m4) 52%,var(--m2) 70%,var(--m3)) border-box;box-shadow:0 10px 26px -20px var(--m3)}
.tbox::before{content:"";position:absolute;inset:4px;border:1px solid var(--me);border-radius:11px;opacity:.55;pointer-events:none}
.tbox::after{content:"";position:absolute;top:-40%;bottom:-40%;width:38%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);transform:skewX(-18deg);animation:tm-shine 1.6s .5s ease-out 1 both;pointer-events:none}
@keyframes tm-shine{to{left:130%}}
.tmedal{position:relative;display:flex;align-items:center;gap:12px}
.tm-em{flex:none;width:78px;height:78px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.14))}
.tm-t{display:grid;min-width:0;line-height:1.3}
.tm-k{font-size:11.5px;font-weight:800;color:var(--m3);letter-spacing:.3px}
.tm-n{font-size:27px;font-weight:800;color:var(--mi);letter-spacing:.3px;text-shadow:0 1px 0 #fff}
.tm-p{font-size:14px;font-weight:700;color:var(--mi);font-variant-numeric:tabular-nums}
.tm-p b{color:var(--mi);font-size:15px}
.tm-meter{position:relative;height:8px;border-radius:999px;background:rgba(0,0,0,.06);box-shadow:inset 0 1px 2px rgba(0,0,0,.08);overflow:hidden;margin:10px 2px 4px}
.tm-meter span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--m3),var(--m2) 60%,var(--m1))}
.tm-next{position:relative;font-size:13px;color:var(--muted)}
.tm-next b{color:var(--mi)}
.tier{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;line-height:1.7;border-radius:999px;padding:0 9px 0 8px;vertical-align:middle;color:var(--mi);background:linear-gradient(135deg,var(--m4),var(--m1) 40%,var(--m2));border:1px solid var(--me);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 1px 2px -1px var(--m3)}
.tier::before{content:"";flex:none;width:9px;height:9px;background:var(--m3);clip-path:polygon(50% 0,61% 22%,85% 15%,78% 39%,100% 50%,78% 61%,85% 85%,61% 78%,50% 100%,39% 78%,15% 85%,22% 61%,0 50%,22% 39%,15% 15%,39% 22%)}
@media (prefers-reduced-motion:reduce){.tbox::after{animation:none;display:none}}
