:root{--navy:#0B2440;--navy2:#123659;--teal:#0E7C86;--teal2:#13A3AE;--pink:#FC0279;--ink:#10203a;--muted:#5c6c82;--line:#e3eaf3;--bg:#f5f7fb;--card:#fff;--ok:#0a7d4f;--bad:#c0262d;--r:14px;
--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 Inter,"Segoe UI",system-ui,-apple-system,sans-serif}
[hidden]{display:none!important}
button{font:inherit;cursor:pointer}
.top{background:linear-gradient(160deg,var(--navy2),var(--navy));color:#fff;display:flex;align-items:center;gap:12px;padding:calc(12px + var(--sat)) 20px 12px}
.brand img{height:24px;display:block}
.app{font-weight:700;font-size:17px;padding-left:12px;border-left:1px solid rgba(255,255,255,.25)}
.plan{margin-left:auto;font-size:13px;color:var(--teal2);font-weight:600}
.wrap{max-width:1180px;margin:0 auto;padding:18px 16px calc(40px + var(--sab));display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:960px){.wrap{grid-template-columns:200px 1fr 320px;align-items:start}.live{position:sticky;top:16px}}
.steps{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.steps::-webkit-scrollbar{display:none}
@media(min-width:960px){.steps{flex-direction:column;position:sticky;top:16px}}
.steps button{flex:none;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--muted);font-weight:600;font-size:14px;padding:9px 12px;border-radius:10px;text-align:left}
.steps button i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;background:var(--line);color:var(--muted)}
.steps button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(11,36,64,.08)}
.steps button.on i{background:var(--teal);color:#fff}
.steps button.done i{background:var(--navy);color:#fff}
main{background:var(--card);border-radius:18px;padding:22px 20px;box-shadow:0 1px 2px rgba(11,36,64,.05),0 6px 20px rgba(11,36,64,.05)}
h1{margin:0 0 16px;font-size:26px;letter-spacing:-.4px}
h2{margin:22px 0 8px;font-size:15px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--muted)}
label.full{grid-column:1/-1}
input,select{font:inherit;font-size:16px;color:var(--ink);height:46px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;width:100%;outline:none}
input:focus,select:focus{border-color:var(--teal2);box-shadow:0 0 0 3px rgba(19,163,174,.2)}
.code{margin:16px 0 0;font-size:14px;color:var(--teal);font-weight:600}
.rows{display:flex;flex-direction:column;gap:10px}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr)) 40px;gap:10px;align-items:end;background:var(--bg);border-radius:12px;padding:12px}
.row .x{height:46px;border:0;background:transparent;color:var(--muted);font-size:22px;border-radius:10px}
.row .x:hover{background:#e8edf4}
.row label.chk{flex-direction:row;align-items:center;gap:8px;height:46px;color:var(--ink);font-weight:600}
.row label.chk input{width:20px;height:20px}
.add{margin-top:10px;border:1px dashed var(--line);background:#fff;color:var(--teal);font-weight:700;height:44px;border-radius:10px;padding:0 16px}
.nav{display:flex;justify-content:space-between;gap:12px;margin-top:28px}
.primary{background:var(--pink);color:#fff;border:0;height:50px;padding:0 26px;border-radius:25px;font-weight:800;font-size:16px}
.primary:active{transform:scale(.98)}
.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);height:50px;padding:0 22px;border-radius:25px;font-weight:700}
.live{background:var(--card);border-radius:18px;padding:18px;box-shadow:0 1px 2px rgba(11,36,64,.05),0 6px 20px rgba(11,36,64,.05)}
.live h3{margin:0 0 4px;font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.live .big{font-size:22px;font-weight:800;margin:4px 0 12px}
.big.ok,.badge.ok{color:var(--ok)}
.big.bad,.badge.bad{color:var(--bad)}
.li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid var(--line);font-size:14px}
.li b{font-weight:700;white-space:nowrap;text-align:right}
.li .p{color:var(--ok);font-weight:700}
.li .f{color:var(--bad);font-weight:700}
.badge{font-size:30px;font-weight:800;margin:-6px 0 14px}
table{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0 14px}
th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
td.p{color:var(--ok);font-weight:700}
td.f{color:var(--bad);font-weight:700}
.warn{background:#fff7e6;border-radius:10px;padding:10px 12px;font-size:14px;margin:8px 0;color:#7a4b00}
.acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.fine{font-size:14px;color:var(--muted)}
.fine a{color:var(--teal)}
.need{font-size:15px;font-weight:700;color:var(--teal);margin:-6px 0 12px}
.credits{display:flex;flex-direction:column;gap:8px}
.cr{display:flex;flex-direction:row;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;font-size:15px;color:var(--ink);font-weight:500}
.cr input{width:22px;height:22px;flex:none}
.cr .pts{margin-left:auto;font-weight:800;color:var(--teal);white-space:nowrap}
.cr.auto{background:#eef8f9;border-color:#cbe9ec}
.cr.na{opacity:.45}
@media(max-width:640px){
  .row{grid-template-columns:1fr 1fr;position:relative;padding-top:14px}
  .row .x{position:absolute;top:2px;right:4px;height:32px;width:32px}
  .row label:first-child{padding-right:30px}
  .top{gap:10px;padding-left:16px;padding-right:16px}
  .brand img{height:20px}
  .app{font-size:15px;padding-left:10px}
  .plan{font-size:11px;text-align:right;max-width:90px}
  h1{font-size:23px}
}
