:root{--bg:#f5f6f8;--card:#fff;--ink:#14181f;--muted:#6b7280;--line:#e4e6eb;--blue:#2f6bff;--blue-l:#e8efff;--opt:#f3f4f6;--red:#e5484d;--navy:#10182b}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:14px/1.45 -apple-system,"Segoe UI",Inter,system-ui,sans-serif}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
a{color:inherit}
.bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);font-weight:600;font-size:15px}
.shell{display:flex;min-height:calc(100vh - 48px)}
.nav{width:220px;flex:none;padding:16px 12px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.nav a,.nav button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:10px;color:var(--ink);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;text-align:left}
.nav a.on{background:#eceef2;font-weight:600}
.nav form{margin-top:auto}.nav button{color:var(--muted)}
main{flex:1;min-width:0;background:var(--bg);padding:32px 40px}
main>*{max-width:1120px;margin-left:auto;margin-right:auto}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
h1{font-size:27px;font-weight:700;margin:0;letter-spacing:-.01em}
.btn{display:inline-flex;align-items:center;gap:8px;height:37px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none;cursor:pointer;font:inherit;font-weight:600}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn svg{width:16px;height:16px}
.filters{display:flex;gap:12px;margin-bottom:18px}
.field{flex:1;max-width:380px;display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}
.field input{border:0;outline:0;flex:1;font:inherit;background:none;color:var(--ink);margin:0;padding:0}
select{height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--ink)}
.card{background:#fff;border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(16,24,43,.06)}
.empty{color:var(--muted);text-align:center;padding:40px}
.table{display:flex;flex-direction:column;gap:8px}
.th,.tr{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px 70px 32px;align-items:center;gap:16px;padding:0 20px}
.th{height:34px;color:var(--muted);font-size:13px;font-weight:600}
.tr{background:#fff;border-radius:14px;min-height:78px;padding-top:14px;padding-bottom:14px;box-shadow:0 1px 2px rgba(16,24,43,.06)}
.tr.off .t a{color:var(--muted)}
.t{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.t a{font-weight:700;font-size:15px;text-decoration:none}.t a:hover{text-decoration:underline}
.badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;background:#e9ebef;color:var(--muted)}
.badge.live{background:#fde8e8;color:var(--red)}
.sub{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ig{width:18px;height:18px;border-radius:5px;flex:none;background:linear-gradient(45deg,#f9a03c,#e1306c 55%,#8a3ab9)}
.num{display:flex;flex-direction:column;line-height:1.3}.num b{font-size:15px}.num span{color:var(--muted);font-size:12px}
.switch{display:inline-block;width:38px;height:22px;border-radius:99px;background:#cfd3da;border:0;position:relative;cursor:pointer;padding:0;vertical-align:middle}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s}
.switch.on,input:checked+.switch{background:var(--blue)}
.switch.on::after,input:checked+.switch::after{left:18px}
.tog input{position:absolute;opacity:0;width:0;height:0}.tog{display:inline-block}
.err{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:10px}
.muted{color:var(--muted);font-size:13px}
input[type=text],input[type=url],input[type=password],textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;margin:6px 0}
.login{max-width:340px;margin:12vh auto;padding:28px}.login label{display:block;margin:12px 0;color:var(--muted)}
/* editor */
.ed{display:flex;min-height:100vh}
.ed-left{width:380px;flex:none;padding:20px 24px 40px;overflow-y:auto;height:100vh;position:sticky;top:0;border-right:1px solid var(--line)}
.back{text-decoration:none;color:var(--muted);font-weight:600;display:inline-block;margin-bottom:12px}
.ed-left h2{font-size:24px;font-weight:700;margin:18px 0 12px;letter-spacing:-.01em;line-height:1.2}
.opt{background:var(--opt);border-radius:12px;padding:14px 16px;margin-bottom:10px}
.radio{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600;cursor:pointer}
.radio input{accent-color:var(--blue);width:18px;height:18px;margin:0}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 4px}
.thumb{aspect-ratio:1;border:2px solid transparent;border-radius:8px;background:#d9dce2 center/cover;cursor:pointer;padding:0}
.thumb.sel{border-color:var(--blue);box-shadow:0 0 0 2px #fff inset}
.link{background:none;border:0;color:var(--blue);font-weight:600;cursor:pointer;padding:6px 0;font:inherit;font-weight:600}
#kw-box{margin-top:10px}#kw-box input{margin:0 0 6px}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:var(--muted);font-size:13px}
.chip{border:0;background:var(--blue-l);color:var(--blue);border-radius:99px;padding:3px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.line{display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:600}
.lbl{font-weight:700;margin-bottom:2px}
.sm{display:block;font-size:12px;color:var(--muted);margin-top:6px}.sm input{margin:4px 0 0}
.ed-right{flex:1;min-width:0;background:#eceef2;display:flex;flex-direction:column}
.ed-top{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;font-weight:600;color:var(--muted)}
.acts{display:flex;gap:8px}
.stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:8px 24px 32px}
.phone{width:300px;height:610px;background:var(--navy);border-radius:40px;padding:10px;box-shadow:0 20px 50px rgba(16,24,43,.25)}
.screen{position:relative;height:100%;background:#141414;color:#fff;border-radius:31px;overflow:hidden;display:flex;flex-direction:column;font-size:12px}
.status{display:flex;justify-content:space-between;align-items:center;padding:14px 22px 6px;font-weight:700;font-size:13px;background:#141414}
.sig{display:flex;gap:5px;align-items:center}.sig svg{width:17px;height:12px;fill:#fff;stroke:none}.sig svg:last-child{width:25px}
.isl{width:70px;height:20px;border-radius:99px;background:#1a1a1a}
.pane{flex:1;overflow:auto;padding-bottom:8px}
.ph-h{border-bottom:1px solid #222;display:flex;align-items:center;gap:10px;padding:8px 12px;text-align:center;justify-content:center;position:relative}
.ph-h .chev{position:absolute;left:12px;font-size:22px}
.ph-h small{display:block;color:#7a7a7a;font-weight:700;font-size:10px;letter-spacing:.04em}
.ph-h b{font-size:14px}
.ph-u{display:flex;align-items:center;gap:8px;padding:8px 12px;font-weight:700}.dots{margin-left:auto}
.av{width:28px;height:28px;border-radius:50%;background-size:cover;background-position:center;background-image:none;background-color:#444;box-shadow:0 0 0 1px #333;display:inline-block}
.av.x{background:linear-gradient(45deg,#f9a03c,#e1306c,#8a3ab9);display:inline-block}
.pv-post{aspect-ratio:1;background:#262626 center/cover;display:grid;place-items:center;color:#9ca3af;text-align:center;padding:12px}
.ph-a{display:flex;align-items:center;gap:6px;padding:10px 12px}.ph-a svg{width:22px;height:22px}.ph-a b{margin-right:8px;font-size:12px}.ph-a .bm{margin-left:auto}
.cap,.dim{margin:0;padding:2px 12px;font-size:12px}.dim{color:#9ca3af}.dim.sm{font-size:11px;margin:0;color:#9ca3af}
.igbar{display:flex;justify-content:space-around;align-items:center;padding:10px 0 14px;border-top:1px solid #1f1f1f}.igbar svg{width:22px;height:22px}
.msgs{padding:10px 12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.bubble{padding:8px 12px;border-radius:16px;max-width:85%;white-space:pre-wrap;word-break:break-word;font-size:12px}
.bubble.gray{background:#262626}.bubble.gray b{display:block;font-size:11px;color:#9ca3af}
.bubble.blue{background:#3797f0;align-self:flex-end}
.btn-pv{align-self:stretch;text-align:center;border-radius:12px;background:#262626;padding:8px;font-weight:600;color:#3797f0;margin-bottom:6px}
.btn-pv:empty{display:none}
.tabs{display:flex;background:#fff;border-radius:99px;padding:4px;gap:2px;box-shadow:0 1px 2px rgba(16,24,43,.08)}
.tabs button{border:0;background:none;padding:7px 18px;border-radius:99px;font:inherit;font-weight:600;color:var(--muted);cursor:pointer}
.tabs button.on{background:#e8ebf0;color:var(--ink)}
@media(max-width:900px){.nav,.bar{display:none}main{padding:20px 16px}.ed{flex-direction:column}.ed-left{width:auto;height:auto;position:static}.th{display:none}.tr{grid-template-columns:1fr auto}.tr .num{display:none}}

.bar a{text-decoration:none}.bar button{background:none;border:0;font:inherit;color:var(--muted);cursor:pointer}
.pane{scrollbar-width:none}.pane::-webkit-scrollbar{display:none}
.x{background:none;border:0;color:var(--muted);cursor:pointer;padding:6px;border-radius:8px}.x:hover{color:var(--red);background:#fde8e8}
