:root{
  --blue:#1665c0; --blue-d:#0f4c8c; --blue-l:#e8f1fb;
  --ink:#1c2733; --mut:#5b6b7b; --faint:#8a97a5;
  --bg:#eef2f6; --card:#ffffff; --line:#dbe3ea;
  --green:#1e8e5a; --green-l:#e6f5ee;
  --amber:#b97a0e; --amber-l:#fdf3e0;
  --red:#c43d3d; --red-l:#fdecec;
  --violet:#6d47c4; --violet-l:#f0eafb;
  --r:10px; --shadow:0 1px 3px rgba(16,36,60,.08);
}
*{box-sizing:border-box; margin:0}
html,body{height:100%}
body{font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif; background:var(--bg); color:var(--ink); font-size:14px}
button{font:inherit; cursor:pointer; border:none; background:none; color:inherit}
input,textarea,select{font:inherit; color:inherit}
a{color:var(--blue)}

/* ---------- top bar ---------- */
#topbar{position:sticky; top:0; z-index:40; background:var(--blue-d); color:#fff; padding:10px 18px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; min-height:56px}
#topbar:empty{display:none}
#topbar .brand{display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px}
#topbar .brand svg{flex:none}
#topbar .sub{font-size:12px; opacity:.85; font-weight:400}
#topbar .spacer{flex:1}
#topbar .prog{display:flex; align-items:center; gap:8px; font-size:12.5px}
#topbar .prog .bar{width:130px; height:7px; background:rgba(255,255,255,.25); border-radius:4px; overflow:hidden}
#topbar .prog .bar i{display:block; height:100%; background:#6fd39a; border-radius:4px; transition:width .3s}
.tb-btn{background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.35); padding:7px 13px; border-radius:8px; font-size:13px; display:inline-flex; align-items:center; gap:7px; transition:background .15s; white-space:nowrap}
.tb-btn:hover{background:rgba(255,255,255,.26)}
.tb-btn.primary{background:#fff; color:var(--blue-d); border-color:#fff; font-weight:600}
.tb-btn.primary:hover{background:#e8f1fb}

/* ---------- layout geral ---------- */
#app{max-width:1560px; margin:0 auto; padding:16px}
.layout{display:grid; grid-template-columns:300px minmax(0,1fr) 420px; gap:16px; align-items:start}
@media (max-width:1180px){
  .layout{grid-template-columns:280px minmax(0,1fr)}
  .col-preview{display:none}
  .layout.show-preview{grid-template-columns:280px minmax(0,1fr)}
  .layout.show-preview .col-editor{display:none}
  .layout.show-preview .col-preview{display:block}
  body.view-sec #tab-mobile{display:flex !important}
}
@media (max-width:760px){
  .layout, .layout.show-preview{grid-template-columns:1fr}
  .col-side{position:static !important}
}

/* ---------- login ---------- */
.login-wrap{min-height:calc(100vh - 60px); display:flex; align-items:center; justify-content:center; padding:20px}
.login-card{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 14px 44px rgba(15,40,70,.12); width:100%; max-width:400px; padding:34px 32px}
.login-card .lic{width:56px; height:56px; border-radius:16px; background:var(--blue-l); color:var(--blue); display:flex; align-items:center; justify-content:center; margin:0 auto 14px}
.login-card h1{font-size:19px; text-align:center; color:var(--blue-d); margin-bottom:4px}
.login-card .lsub{font-size:13px; color:var(--mut); text-align:center; margin-bottom:22px; line-height:1.5}
.login-card label{display:block; font-size:12.5px; font-weight:600; color:var(--mut); margin:12px 0 5px}
.login-card input{width:100%; border:1px solid var(--line); border-radius:9px; padding:11px 13px; font-size:14px; transition:border-color .15s}
.login-card input:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,101,192,.12)}
.login-err{display:none; background:var(--red-l); color:#8f2f2f; border:1px solid #efc7c7; border-radius:8px; padding:9px 12px; font-size:12.5px; margin-top:14px; line-height:1.45}
.login-err.show{display:block}
.login-btn{width:100%; margin-top:18px; background:var(--blue); color:#fff; padding:12px; border-radius:9px; font-weight:600; font-size:14.5px; transition:background .15s}
.login-btn:hover{background:var(--blue-d)}
.login-foot{text-align:center; font-size:11.5px; color:var(--faint); margin-top:18px; line-height:1.6}

/* ---------- dashboard ---------- */
.dash{max-width:1180px; margin:0 auto}
.dash-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:10px 0 16px}
.dash-head h1{font-size:21px; color:var(--blue-d)}
.dash-head p{font-size:13px; color:var(--mut); margin-top:3px}
.dash-search{display:grid; grid-template-columns:2fr 1fr; gap:12px; margin-bottom:18px}
@media (max-width:760px){.dash-search{grid-template-columns:1fr}}
.ds-box{position:relative; background:#fff; border:1px solid var(--line); border-radius:11px; box-shadow:var(--shadow); display:flex; align-items:center; padding:0 14px; transition:border-color .15s}
.ds-box:focus-within{border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,101,192,.12)}
.ds-box svg{flex:none; color:var(--faint)}
.ds-box input{flex:1; border:none; outline:none; padding:12px; font-size:13.5px; background:transparent}
.ds-dd{position:absolute; z-index:35; top:calc(100% + 4px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 30px rgba(16,36,60,.18); max-height:320px; overflow:auto; display:none}
.ds-dd.open{display:block}
.ds-dd button{display:block; width:100%; text-align:left; padding:10px 14px; border-bottom:1px solid #f2f5f8}
.ds-dd button:hover{background:var(--blue-l)}
.ds-dd .ds-nm{display:block; font-size:13px; font-weight:600; color:var(--ink); line-height:1.35}
.ds-dd .ds-info{display:block; font-size:11.5px; color:var(--faint); margin-top:2px}
.ds-dd .ds-st{font-style:normal; font-weight:600}
.ds-dd .empty{padding:12px 14px; font-size:12.5px; color:var(--faint)}
.stats-row{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:20px}
.stat{background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; box-shadow:var(--shadow)}
.stat .lb{font-size:11.5px; color:var(--mut); font-weight:600; text-transform:uppercase; letter-spacing:.4px; display:flex; align-items:center; gap:6px}
.stat .lb i{width:9px; height:9px; border-radius:50%; display:inline-block; flex:none}
.stat .vl{font-size:26px; font-weight:700; margin-top:4px; color:var(--ink)}
.stat .pc{font-size:11.5px; color:var(--faint)}
.dash-prog{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow); margin-bottom:22px}
.dash-prog .cap{display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px}
.dash-prog .cap b{color:var(--blue-d)}
.dash-prog .bar{height:12px; background:#e8edf3; border-radius:7px; overflow:hidden; display:flex}
.dash-prog .bar i{display:block; height:100%}
.dash-prog .leg{display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:11.5px; color:var(--mut)}
.dash-prog .leg span{display:inline-flex; align-items:center; gap:5px}
.dash-prog .leg i{width:9px; height:9px; border-radius:3px; display:inline-block}
.sec-cap{font-size:13px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint); font-weight:700; margin:0 0 12px; display:flex; align-items:center; gap:8px}
.sec-cap::after{content:""; flex:1; height:1px; background:var(--line)}
.sec-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:14px; padding-bottom:30px}
.sec-card{background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow); text-align:left; transition:transform .12s, box-shadow .12s, border-color .12s; display:flex; flex-direction:column; gap:10px}
.sec-card:hover{transform:translateY(-2px); box-shadow:0 8px 22px rgba(15,40,70,.13); border-color:#bcd6f0}
.sec-card .tt{display:flex; gap:11px; align-items:flex-start}
.sec-card .sic{flex:none; width:40px; height:40px; border-radius:11px; background:var(--blue-l); color:var(--blue); display:flex; align-items:center; justify-content:center}
.sec-card h3{font-size:14.5px; line-height:1.35; color:var(--ink)}
.sec-card .qt{font-size:12px; color:var(--mut); margin-top:2px}
.sec-card .bar{height:8px; background:#e8edf3; border-radius:5px; overflow:hidden; display:flex}
.sec-card .bar i{display:block; height:100%}
.sec-card .chips{display:flex; flex-wrap:wrap; gap:5px}
.mini-chip{font-size:10.5px; font-weight:600; padding:2px 8px; border-radius:10px}
.mini-chip.pendente{background:#eceff3; color:#5b6b7b}
.mini-chip.validado{background:var(--green-l); color:var(--green)}
.mini-chip.ajustado{background:var(--amber-l); color:var(--amber)}
.mini-chip.excluir{background:var(--red-l); color:var(--red)}
.mini-chip.novo{background:var(--violet-l); color:var(--violet)}
.mini-chip.done{background:var(--green-l); color:var(--green)}
.dash-empty{background:#fff; border:1.5px dashed var(--line); border-radius:14px; padding:44px 24px; text-align:center; color:var(--mut)}
.dash-empty h3{font-size:16px; color:var(--ink); margin-bottom:6px}
.dash-empty p{font-size:13px; line-height:1.6; max-width:440px; margin:0 auto 16px}

/* ---------- painéis (sidebar/editor/preview) ---------- */
.col-side{position:sticky; top:74px}
.panel{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow)}
.side-head{padding:12px 14px; border-bottom:1px solid var(--line)}
.side-head h2{font-size:13px; text-transform:uppercase; letter-spacing:.4px; color:var(--mut); font-weight:600}
.side-search{margin-top:9px; position:relative}
.side-search input{width:100%; padding:7px 10px 7px 32px; border:1px solid var(--line); border-radius:8px; background:#f6f8fa; font-size:13px}
.side-search svg{position:absolute; left:9px; top:8px; color:var(--faint)}
.svc-list{max-height:calc(100vh - 240px); overflow:auto; padding:6px}
.svc-item{width:100%; text-align:left; padding:9px 10px; border-radius:8px; display:flex; gap:9px; align-items:flex-start; border:1px solid transparent; transition:background .12s}
.svc-item:hover{background:#f2f6fa}
.svc-item.active{background:var(--blue-l); border-color:#bcd6f0}
.svc-item .nm{font-size:13px; line-height:1.35; font-weight:500}
.svc-item.st-excluir .nm{text-decoration:line-through; color:var(--faint)}
.svc-item .cls{font-size:11px; color:var(--faint); margin-top:2px}
.dot{flex:none; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-top:1px}
.dot svg{width:12px; height:12px}
.dot.pendente{background:#eceff3; color:var(--faint)}
.dot.validado{background:var(--green-l); color:var(--green)}
.dot.ajustado{background:var(--amber-l); color:var(--amber)}
.dot.excluir{background:var(--red-l); color:var(--red)}
.dot.novo{background:var(--violet-l); color:var(--violet)}
.side-add{margin:6px; padding:10px; border:1.5px dashed var(--line); border-radius:8px; width:calc(100% - 12px); color:var(--mut); font-size:13px; display:flex; align-items:center; gap:8px; justify-content:center}
.side-add:hover{border-color:var(--blue); color:var(--blue); background:var(--blue-l)}
.side-legend{padding:10px 14px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:6px 12px; font-size:11px; color:var(--mut)}
.side-legend span{display:inline-flex; align-items:center; gap:5px}
.side-legend i{width:8px; height:8px; border-radius:50%; display:inline-block}

/* ---------- editor ---------- */
.ed-head{padding:14px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.ed-head h2{font-size:16px; flex:1; min-width:200px}
.pill{font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:20px; white-space:nowrap}
.pill.pendente{background:#eceff3; color:#5b6b7b}
.pill.validado{background:var(--green-l); color:var(--green)}
.pill.ajustado{background:var(--amber-l); color:var(--amber)}
.pill.excluir{background:var(--red-l); color:var(--red)}
.pill.novo{background:var(--violet-l); color:var(--violet)}
.ed-body{padding:16px 18px 8px}
.f-sec{font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint); font-weight:600; margin:18px 0 10px; display:flex; align-items:center; gap:8px}
.f-sec:first-child{margin-top:0}
.f-sec::after{content:""; flex:1; height:1px; background:var(--line)}
.f-hint{font-size:12px; color:var(--mut); background:#f5f8fb; border:1px solid var(--line); border-radius:8px; padding:8px 11px; margin-bottom:12px; line-height:1.5}
.field{margin-bottom:14px}
.field label{display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--mut); margin-bottom:5px}
.field input[type=text],.field textarea{width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; background:#fff; font-size:13.5px; line-height:1.5; transition:border-color .15s}
.field textarea{resize:vertical; min-height:38px; overflow:hidden}
.field input:focus,.field textarea:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,101,192,.12)}
.field.changed input,.field.changed textarea{border-color:#e3b04b; background:#fffdf6}
.badge-ch{font-size:10.5px; font-weight:600; background:var(--amber-l); color:var(--amber); padding:2px 8px; border-radius:10px}
.lnk{font-size:11.5px; color:var(--blue); background:none; padding:0; text-decoration:underline; font-weight:500}
.orig-box{display:none; margin-top:6px; background:#f5f7f9; border:1px dashed var(--line); border-radius:8px; padding:9px 11px; font-size:12.5px; color:var(--mut); white-space:pre-wrap; line-height:1.55}
.orig-box.open{display:block}
.orig-box .cap{font-size:10.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint); font-weight:700; margin-bottom:5px; display:flex; justify-content:space-between; align-items:center}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 14px}
@media (max-width:900px){.grid2{grid-template-columns:1fr}}

/* ---------- seletor de categorias (tags) e selects ---------- */
.tag-wrap{position:relative}
.tagbox{display:flex; flex-wrap:wrap; gap:6px; align-items:center; border:1px solid var(--line); border-radius:8px; padding:6px 8px; background:#fff; cursor:text; min-height:41px; transition:border-color .15s}
.tagbox:focus-within{border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,101,192,.12)}
.field.changed .tagbox{border-color:#e3b04b; background:#fffdf6}
.chip{display:inline-flex; align-items:center; gap:6px; background:var(--blue-l); color:var(--blue-d); border-radius:14px; padding:3px 6px 3px 10px; font-size:12px; font-weight:600; max-width:100%}
.chip em{font-style:normal; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.chip button{flex:none; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(15,76,140,.14); font-size:12px; line-height:1; color:inherit}
.chip button:hover{background:rgba(15,76,140,.28)}
.chip.unk{background:var(--amber-l); color:var(--amber)}
.chip.unk button{background:rgba(185,122,14,.15)}
.chip.none{background:#eceff3; color:var(--mut)}
.chip.none button{background:rgba(91,107,123,.15)}
.tagbox input{flex:1; min-width:150px; border:none; outline:none; font-size:13px; padding:4px 2px; background:transparent}
.tag-dd{position:absolute; z-index:30; top:100%; left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 26px rgba(16,36,60,.18); max-height:250px; overflow:auto; display:none; margin-top:4px}
.tag-dd.open{display:block}
.tag-dd button{display:block; width:100%; text-align:left; padding:8px 12px; font-size:12.5px; border-bottom:1px solid #f2f5f8}
.tag-dd button:hover{background:var(--blue-l)}
.tag-dd button b{color:var(--blue-d); font-weight:600}
.tag-dd .none-opt{color:var(--mut); font-style:italic; border-top:1px solid var(--line)}
.tag-dd .empty{padding:10px 12px; font-size:12.5px; color:var(--faint)}
.tag-help{font-size:11.5px; color:var(--faint); margin-top:5px}
.field select{width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; background:#fff; font-size:13.5px; transition:border-color .15s}
.field select:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(22,101,192,.12)}
.field.changed select{border-color:#e3b04b; background:#fffdf6}
.opt-fora{color:#b97a0e}

.ed-actions{position:sticky; bottom:0; background:linear-gradient(to top,#fff 75%,rgba(255,255,255,0)); padding:14px 18px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; border-top:1px solid var(--line); border-radius:0 0 var(--r) var(--r)}
.btn{padding:9px 16px; border-radius:8px; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:8px; border:1px solid transparent; transition:filter .15s}
.btn:hover{filter:brightness(.96)}
.btn.ok{background:var(--green); color:#fff}
.btn.ghost{background:#fff; border-color:var(--line); color:var(--mut)}
.btn.danger{background:#fff; border-color:#efc7c7; color:var(--red)}
.btn.danger:hover{background:var(--red-l)}
.btn-blue{background:var(--blue); color:#fff; padding:10px 20px; border-radius:9px; font-weight:600; font-size:14px; display:inline-flex; gap:8px; align-items:center}
.btn-blue:hover{background:var(--blue-d)}
.ed-note{font-size:12px; color:var(--faint); margin-left:auto}
.excl-banner{margin:0 18px 14px; background:var(--red-l); border:1px solid #efc7c7; color:#8f2f2f; border-radius:8px; padding:10px 13px; font-size:13px; line-height:1.5}

/* ---------- preview ---------- */
.col-preview{position:sticky; top:74px}
.pv-head{display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--line)}
.pv-head h2{font-size:13px; text-transform:uppercase; letter-spacing:.4px; color:var(--mut); font-weight:600}
.pv-zone{padding:18px; display:flex; justify-content:center; background:linear-gradient(180deg,#f2f5f9,#e9eef4); border-radius:0 0 var(--r) var(--r)}
.phone{width:352px; background:#0d1420; border-radius:34px; padding:10px; box-shadow:0 18px 40px rgba(15,40,70,.25)}
.phone .screen{background:#f4f7fa; border-radius:26px; overflow:hidden; height:640px; display:flex; flex-direction:column}
.p-status{background:#fff; display:flex; justify-content:space-between; padding:7px 18px 3px; font-size:10.5px; color:#333; font-weight:600}
.p-appbar{background:#fff; padding:10px 14px 12px; display:flex; align-items:center; gap:10px; border-bottom:1px solid #e8edf2}
.p-appbar .ttl{font-size:13.5px; font-weight:600; color:var(--blue-d)}
.p-appbar svg{color:var(--blue-d)}
.p-scroll{flex:1; overflow-y:auto; padding:14px 14px 24px}
.p-crumb{font-size:10px; color:var(--faint); margin-bottom:10px}
.p-crumb b{color:var(--blue); font-weight:500}
.p-title{text-align:center; font-size:17px; font-weight:700; color:var(--blue-d); line-height:1.3; margin:2px 0 10px; position:relative; padding:0 18px}
.p-title .fav{position:absolute; right:0; top:2px; color:#c2cddb}
.p-meta{text-align:center; font-size:11px; color:var(--mut); line-height:1.7; margin-bottom:8px}
.p-meta b{color:var(--blue); font-weight:600}
.p-stars{display:flex; justify-content:center; align-items:center; gap:3px; margin-bottom:12px; color:#f0b429}
.p-stars .n{font-size:11px; color:var(--mut); margin-left:5px}
.p-access{display:block; width:100%; background:var(--blue); color:#fff; text-align:center; padding:11px; border-radius:9px; font-size:13.5px; font-weight:600; text-decoration:none; margin-bottom:8px; box-shadow:0 3px 8px rgba(22,101,192,.3)}
.p-info-tag{display:flex; align-items:center; gap:7px; justify-content:center; font-size:11px; color:var(--mut); background:#eef2f6; border-radius:8px; padding:8px; margin-bottom:8px}
.p-sec-cap{font-size:12px; font-weight:700; color:var(--ink); margin:14px 2px 8px}
.acc{background:#fff; border:1px solid #dde6ee; border-radius:10px; margin-bottom:9px; overflow:hidden}
.acc-h{width:100%; display:flex; align-items:center; gap:9px; padding:11px 12px; text-align:left}
.acc-h .ic{flex:none; width:26px; height:26px; border-radius:7px; background:var(--blue-l); color:var(--blue); display:flex; align-items:center; justify-content:center}
.acc-h .tx{flex:1}
.acc-h .tx b{display:block; font-size:12.5px; color:var(--blue-d)}
.acc-h .tx span{font-size:10.5px; color:var(--faint)}
.acc-h .chev{color:var(--faint); transition:transform .2s}
.acc.open .chev{transform:rotate(180deg)}
.acc-b{display:none; padding:2px 13px 13px; font-size:12px; color:#3d4c5c; line-height:1.65}
.acc.open .acc-b{display:block}
.acc-b p{margin-bottom:7px}
.acc-b ul{padding-left:2px; list-style:none}
.acc-b ul li{padding-left:16px; position:relative; margin-bottom:5px}
.acc-b ul li::before{content:""; position:absolute; left:2px; top:7px; width:6px; height:6px; border-radius:50%; background:var(--blue)}
.acc-b ul li.subhead{padding-left:0; font-weight:700; color:var(--blue-d); margin-top:8px}
.acc-b ul li.subhead::before{display:none}
.acc-b ol{padding-left:18px}
.acc-b ol li{margin-bottom:6px}
.p-passo-cap{font-size:11.5px; font-weight:700; color:#fff; background:var(--blue); display:inline-block; padding:3px 11px; border-radius:14px; margin:6px 0 7px}
.chan{display:flex; gap:10px; align-items:flex-start; background:#f6f9fc; border:1px solid #e3ebf2; border-radius:9px; padding:9px 11px; margin-bottom:7px}
.chan .cic{flex:none; width:30px; height:30px; border-radius:50%; background:var(--blue-l); color:var(--blue); display:flex; align-items:center; justify-content:center}
.chan b{display:block; font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint); margin-bottom:2px}
.chan .v{font-size:12px; color:#2d3d4e; line-height:1.5; word-break:break-word; white-space:pre-wrap}
.p-rate{text-align:center; font-size:11px; color:var(--blue); margin-top:14px; text-decoration:underline}
.pv-note{font-size:11.5px; color:var(--faint); text-align:center; padding:9px 14px 12px; line-height:1.5}
#tab-mobile{display:none; position:fixed; bottom:18px; right:18px; z-index:50; background:var(--blue); color:#fff; border-radius:30px; padding:12px 18px; font-weight:600; box-shadow:0 6px 18px rgba(22,101,192,.4); align-items:center; gap:8px}

/* ---------- modal / toast ---------- */
#modal-root{position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; background:rgba(15,30,50,.45); padding:16px}
#modal-root.open{display:flex}
.modal{background:#fff; border-radius:14px; width:100%; max-width:520px; max-height:88vh; overflow:auto; padding:22px 24px; box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal h3{font-size:17px; margin-bottom:6px; color:var(--blue-d)}
.modal .m-sub{font-size:13px; color:var(--mut); margin-bottom:16px; line-height:1.5}
.modal label{display:block; font-size:12.5px; font-weight:600; color:var(--mut); margin:12px 0 5px}
.modal input[type=text],.modal textarea,.modal select{width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:13.5px}
.modal textarea{min-height:80px; resize:vertical}
.m-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:20px}
.m-radio{display:flex; gap:10px; margin-top:8px}
.m-radio label{flex:1; border:1px solid var(--line); border-radius:10px; padding:12px; cursor:pointer; margin:0; font-weight:500}
.m-radio label:hover{border-color:var(--blue)}
.m-radio label.sel{border-color:var(--blue); background:var(--blue-l)}
.m-radio b{display:block; font-size:13px; color:var(--ink); margin-bottom:3px}
.m-radio span{font-size:11.5px; color:var(--mut); line-height:1.4; display:block}
#toast{position:fixed; bottom:22px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff; padding:11px 20px; border-radius:10px; font-size:13.5px; opacity:0; pointer-events:none; transition:all .25s; z-index:120; max-width:90vw; text-align:center}
#toast.show{opacity:1; transform:translateX(-50%) translateY(0)}
::-webkit-scrollbar{width:9px; height:9px}
::-webkit-scrollbar-thumb{background:#c3cedb; border-radius:5px}
::-webkit-scrollbar-track{background:transparent}
