@font-face { font-family: Raleway; src: url(/fonts/Raleway.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f5f6fa; --card: #fff; --ink: #11152a; --ink2: #2b3047; --muted: #6c7189; --faint: #9a9eb3; --line: #e8eaf1; --hover: #f0f2f8;
  --blue: #223582; --soft: #E5E9FA; --ok: #0f8a5f; --okbg: #e3f5ed; --amber: #a86a12; --amberbg: #fdf1dc; --red: #b4233c; --redbg: #fbe7eb;
  --lsh: #A31543; --cie: #017167; --tech: #448AC8; --gov: #956216; --alg: #223582;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Raleway, system-ui, sans-serif; font-feature-settings: "lnum" 1; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; font-feature-settings: "lnum" 1; }
a { color: inherit; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { display: block; aspect-ratio: 1024/116; background: var(--blue); -webkit-mask: url(/logo.png) left center/contain no-repeat; mask: url(/logo.png) left center/contain no-repeat; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 264px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 18px 18px; position: sticky; top: 0; height: 100vh; flex: none; }
.brand { padding: 0 12px 30px; }
.brand .logo { width: 200px; }
.brand .tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); background: var(--soft); padding: 5px 10px; border-radius: 999px; }
.nav a { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink2); text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--soft); color: var(--blue); font-weight: 700; }
.nav a small { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav .grp { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; padding: 22px 14px 8px; }
.agentbox { margin: 18px 4px 0; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; background: var(--okbg); color: var(--ok); }
.agentbox.warn { background: var(--amberbg); color: var(--amber); }
.agentbox .sub { font-weight: 500; opacity: .85; display: block; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-top: 5px; flex: none; animation: p 2s infinite; }
@keyframes p { 0% { box-shadow: 0 0 0 0 rgba(15,138,95,.45); } 70% { box-shadow: 0 0 0 8px rgba(15,138,95,0); } 100% { box-shadow: 0 0 0 0 rgba(15,138,95,0); } }
.me { margin-top: auto; background: var(--bg); border-radius: 14px; padding: 12px; display: flex; gap: 11px; align-items: center; text-decoration: none; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.av.dark { background: var(--ink); }
.me b { font-size: 14px; display: block; } .me span { font-size: 12px; color: var(--muted); }
.main { flex: 1; min-width: 0; padding: 42px 52px 80px; max-width: 1400px; }
.mtop, .tabbar { display: none; }

/* ---------- common ---------- */
.ph { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.ph h1 { font-size: 42px; font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.08; }
.ph p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.ph .act { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.blue { background: var(--blue); }
.btn.out { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1px #f0c9d1; }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }
.btn.xs { padding: 6px 12px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.pills { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.pill { border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 9px 17px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); white-space: nowrap; }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }
.pill i { width: 8px; height: 8px; border-radius: 50%; }
.pill.sm { padding: 6px 12px; font-size: 12.5px; }
.search { margin-left: auto; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 0 14px; display: flex; gap: 10px; align-items: center; width: 300px; color: var(--faint); }
.search input { border: 0; outline: none; padding: 11px 0; width: 100%; background: transparent; color: var(--ink); font-size: 14px; }
.card { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.cardpad { padding: 22px 24px; }
.ttl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.ttl a, .ttl button { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--blue); cursor: pointer; background: none; border: 0; font-weight: 600; text-decoration: none; padding: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--okbg); color: var(--ok); }
.chip.am { background: var(--amberbg); color: var(--amber); }
.chip.bl { background: var(--soft); color: var(--blue); }
.chip.gr { background: var(--bg); color: var(--muted); }
.chip.red { background: var(--redbg); color: var(--red); }
.chip svg { width: 12px; height: 12px; }
.sec { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.sec i { width: 9px; height: 9px; border-radius: 50%; }
.spin { width: 14px; height: 14px; border: 2px solid var(--soft); border-top-color: var(--blue); border-radius: 50%; animation: s 1s linear infinite; flex: none; display: inline-block; }
@keyframes s { to { transform: rotate(360deg); } }
.banner { display: flex; gap: 12px; align-items: center; border-radius: 14px; padding: 13px 16px; margin-bottom: 18px; font-size: 14px; line-height: 1.45; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.banner.am { background: var(--amberbg); box-shadow: none; color: #6b4410; }
.banner.red { background: var(--redbg); box-shadow: none; color: #7a1427; }
.banner.ok { background: var(--okbg); box-shadow: none; color: #0b5c40; }
.banner .btn { margin-left: auto; }

/* ---------- lists ---------- */
.tbl { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.thead { display: grid; padding: 14px 22px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--line); gap: 16px; }
.trow { display: grid; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); gap: 16px; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: #fafbfd; }
.daysep { padding: 14px 22px 10px; font-size: 13px; font-weight: 700; color: var(--ink2); background: #fafbfd; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.daysep span { color: var(--muted); font-weight: 500; }
.g-news { grid-template-columns: minmax(0,1fr) 170px 70px 240px; }
.g-lib { grid-template-columns: minmax(0,1fr) minmax(0,.8fr) 110px 240px; }
.tt { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ico { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; flex: none; font-size: 11px; font-weight: 800; color: var(--muted); }
.tt b { font-size: 15px; font-weight: 600; line-height: 1.35; display: block; }
.tt a.tl { text-decoration: none; }
.tt a.tl:hover b { color: var(--blue); }
.tt .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.time { font-size: 13.5px; color: var(--muted); }
.kw b { font-size: 13.5px; font-weight: 600; display: block; }
.kw span { font-size: 12px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.ra { display: flex; gap: 8px; justify-content: flex-end; }
.grouphd { padding: 16px 22px 10px; display: flex; align-items: center; gap: 12px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.grouphd b { font-size: 14px; } .grouphd span { font-size: 12.5px; color: var(--muted); }
.cal { width: 46px; height: 50px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cal small { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal b { font-size: 18px; font-weight: 800; line-height: 1; }
.more { text-align: center; margin-top: 18px; }

/* ---------- overview ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 20px 22px; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.ev { display: flex; gap: 14px; padding: 0 0 18px; position: relative; text-decoration: none; }
.ev:before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.ev:last-child:before { display: none; }
.ev .dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--soft); color: var(--blue); }
.ev .dot svg { width: 15px; height: 15px; }
.ev .dot.ok { background: var(--okbg); color: var(--ok); }
.ev .dot.gr { background: var(--bg); color: var(--muted); }
.ev .dot.red { background: var(--redbg); color: var(--red); }
.ev .tx { font-size: 14px; line-height: 1.45; padding-top: 5px; min-width: 0; }
.ev .tx small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.up { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.up:last-child { border: 0; }
.up .tx { flex: 1; min-width: 0; }
.up .tx b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.up .tx span { font-size: 12.5px; color: var(--muted); }
.typ { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; display: block; }
.hero { background: var(--blue); color: #fff; border-radius: 22px; padding: 18px 20px; margin-bottom: 18px; position: relative; overflow: hidden; display: block; text-decoration: none; }
.hero:after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero small { font-size: 12px; font-weight: 700; opacity: .85; display: flex; gap: 8px; align-items: center; }
.hero small .pulse { color: #7ff0c2; margin: 0; }
.hero b { display: block; font-size: 19px; line-height: 1.3; margin-top: 8px; font-weight: 700; }

/* ---------- article ---------- */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; text-decoration: none; }
.seg { display: inline-flex; background: #e9ebf3; border-radius: 12px; padding: 4px; gap: 2px; }
.seg button, .seg a { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; gap: 7px; align-items: center; justify-content: center; text-decoration: none; }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17,21,42,.12); }
.art { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.paper { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 38px 46px; }
.paper .h1 { font-size: 30px; line-height: 1.2; margin: 14px 0 18px; font-weight: 800; letter-spacing: -.01em; outline: none; border-radius: 8px; }
.paper .body { outline: none; border-radius: 8px; }
.paper .body p, .paper .body li { font-size: 16px; line-height: 1.75; color: var(--ink2); }
.paper .body p { margin: 0 0 16px; }
.paper .body h2 { font-size: 20px; margin: 28px 0 10px; font-weight: 800; color: var(--blue); }
.paper .body h3 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
.paper .body a { color: var(--blue); font-weight: 600; }
.paper .body .ivcb-bron { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.paper [contenteditable]:hover { background: #f8f9fc; box-shadow: 0 0 0 8px #f8f9fc; }
.paper [contenteditable]:focus { background: #fff; box-shadow: 0 0 0 2px var(--soft), 0 0 0 8px #fff; }
.featured { width: 100%; border-radius: 12px; margin-bottom: 8px; display: block; }
.savebar { position: sticky; bottom: 16px; margin-top: 14px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px 12px 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; z-index: 5; box-shadow: 0 14px 30px -12px rgba(17,21,42,.6); }
.savebar .btn { background: #fff; color: var(--ink); }
.savebar .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.below { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.col { display: flex; flex-direction: column; gap: 18px; }
.insight { display: flex; gap: 16px; align-items: flex-start; }
.insight blockquote { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink2); border-left: 3px solid var(--blue); padding: 2px 0 2px 16px; }
.insight b { font-size: 15px; } .insight span { font-size: 12.5px; color: var(--muted); display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { margin-bottom: 16px; }
.fld > label, .lbl { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.fld > label small, .lbl small { font-weight: 500; color: var(--muted); }
.fld > label .cnt { margin-left: auto; font-weight: 600; color: var(--ok); font-size: 12px; }
.fld > label .cnt.am { color: var(--amber); }
.input { width: 100%; border: 0; background: var(--bg); border-radius: 12px; padding: 13px 15px; font-size: 15px; outline: none; line-height: 1.5; }
.input:focus { box-shadow: 0 0 0 2px var(--soft); background: #fff; }
textarea.input { resize: vertical; min-height: 84px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.opt { display: flex; gap: 12px; padding: 13px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 10px; cursor: pointer; align-items: flex-start; }
.opt.on { box-shadow: inset 0 0 0 2px var(--blue); background: #fafbff; }
.opt .rd { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c5c9da; flex: none; margin-top: 1px; }
.opt.on .rd { box-shadow: inset 0 0 0 5px var(--blue); }
.opt b { font-size: 14px; display: block; } .opt span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border: 0; }
.kv span { color: var(--muted); } .kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kv a { color: var(--blue); }
.meter { height: 6px; background: var(--bg); border-radius: 9px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.hist { font-size: 13px; line-height: 1.5; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border: 0; }
.hist span { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }

/* ---------- social ---------- */
.socgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.post { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.post .hd { display: flex; gap: 11px; align-items: center; padding: 16px 18px 10px; }
.post .pfp { width: 42px; height: 42px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: none; display: flex; align-items: center; }
.post .pfp .logo { width: 96px; margin-left: 4px; flex: none; }
.post .hd b { font-size: 14px; display: block; } .post .hd span { font-size: 12px; color: var(--muted); }
.post .net { margin-left: auto; font-size: 11px; font-weight: 800; color: #fff; border-radius: 6px; padding: 4px 7px; }
.post .txt { padding: 0 18px 14px; font-size: 14px; line-height: 1.55; white-space: pre-line; color: var(--ink2); }
.post .img { margin: 0 18px 14px; border-radius: 12px; width: calc(100% - 36px); display: block; }
.post .ft { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; }
.post .ft small { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- forms, rules, sources, settings ---------- */
.formcard { max-width: 720px; }
.sectorpick { display: flex; flex-wrap: wrap; gap: 8px; }
.preview { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 12px 0 18px; }
.preview b { font-size: 14px; display: block; line-height: 1.35; } .preview span { font-size: 12px; color: var(--muted); }
.sw { width: 42px; height: 25px; border-radius: 999px; background: #cfd3e2; position: relative; border: 0; cursor: pointer; flex: none; padding: 0; }
.sw:after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.sw.on { background: var(--ok); }
.sw.on:after { left: 20px; }
.sw:disabled { opacity: .5; cursor: not-allowed; }
.togrow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rule { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rule:last-child { border: 0; }
.rule .q { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.rule .tx { flex: 1; min-width: 0; }
.rule .tx b { font-size: 15px; font-weight: 600; display: block; line-height: 1.4; }
.rule .tx span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }
.rule.off .tx { opacity: .5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.srow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border: 0; }
.srow .tx { flex: 1; min-width: 0; }
.srow .tx b { font-size: 14.5px; font-weight: 600; display: block; }
.srow .tx span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.srow.off .tx { opacity: .45; }
.days { display: flex; gap: 5px; flex-wrap: wrap; }
.days button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--muted); }
.days button.on { background: var(--blue); color: #fff; }
.days button:disabled { cursor: not-allowed; opacity: .6; }
.input.sm { width: auto; padding: 8px 12px; font-size: 14px; }
.g-users { grid-template-columns: minmax(0,1.3fr) 110px repeat(5, 86px) 90px; }
.perm { display: flex; justify-content: center; }
.role { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); justify-self: start; }
.role.sa { background: var(--ink); color: #fff; }
.pw { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--bg); padding: 10px 14px; border-radius: 10px; display: inline-block; margin: 6px 0; user-select: all; }

/* modal + toast */
.overlay { position: fixed; inset: 0; background: rgba(17,21,42,.38); display: flex; align-items: flex-start; justify-content: center; z-index: 50; overflow: auto; padding: 50px 16px; }
.modal { background: #fff; border-radius: 22px; width: 620px; max-width: 100%; padding: 28px 30px; box-shadow: 0 30px 60px -20px rgba(17,21,42,.5); }
.modal h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.modal .close { margin-left: auto; cursor: pointer; background: none; border: 0; padding: 4px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 100; box-shadow: 0 12px 30px -10px rgba(17,21,42,.6); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 10px 10px; }
.done .big { width: 84px; height: 84px; border-radius: 50%; background: var(--okbg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.done .big svg { width: 40px; height: 40px; stroke-width: 2.2; }
.done h3 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.done p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 420px; }
.steps { text-align: left; width: 100%; max-width: 380px; margin-top: 22px; }
.steps div { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 14.5px; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--muted); flex: none; }
.steps .n.ok { background: var(--ok); color: #fff; }
.steps .n.run { background: var(--soft); }

/* ---------- mobile: a real app ---------- */
@media (max-width: 900px) {
  .side { display: none; }
  .app { display: block; }
  .main { padding: 0 16px calc(110px + var(--safe-b)); }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 16px 6px; position: sticky; top: 0; background: rgba(245,246,250,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 20; }
  .mtop .logo { width: 128px; }
  .mtop .av { width: 34px; height: 34px; font-size: 12px; text-decoration: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(17,21,42,.07); padding: 8px 8px calc(10px + var(--safe-b)); z-index: 30; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--faint); text-decoration: none; }
  .tabbar a.on { color: var(--blue); }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.share svg { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: -22px; box-shadow: 0 10px 20px -8px rgba(34,53,130,.7); }
  .ph { margin: 8px 0 16px; gap: 12px; }
  .ph h1 { font-size: 32px; }
  .ph p { font-size: 13.5px; margin-top: 4px; }
  .ph .act { margin-left: 0; width: 100%; }
  .ph .act.desk-only { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 16px; border-radius: 18px; }
  .stat b { font-size: 28px; }
  .cols, .art, .socgrid, .grid2, .row2 { grid-template-columns: 1fr; }
  .cardpad { padding: 16px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pills .search { display: none; }
  .msearch { display: flex !important; width: 100%; margin: 0 0 12px; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr !important; padding: 13px 16px; gap: 8px; }
  .trow .hide-m { display: none; }
  .trow .ra { justify-content: flex-start; }
  .trow .ra .btn.out { display: none; }
  .tbl { border-radius: 20px; }
  .daysep { padding: 12px 16px 8px; }
  .paper { padding: 22px 18px; border-radius: 20px; }
  .paper .h1 { font-size: 24px; }
  .paper .body p, .paper .body li { font-size: 15.5px; }
  .savebar { bottom: calc(86px + var(--safe-b)); }
  .modal { padding: 22px 18px; border-radius: 22px; }
  .overlay { padding: 20px 10px; align-items: flex-end; }
  .g-users .perm::before { content: attr(data-l); font-size: 12px; color: var(--muted); margin-right: auto; }
  .g-users .perm { justify-content: flex-end; gap: 10px; }
  .search { width: 100%; }
  .main .seg { display: flex; width: 100%; }
  .main .seg > * { flex: 1; }
}
@media (min-width: 901px) { .msearch { display: none !important; } }
