/* Technosquare Hub - leads.css (1.7.0 Lead sourcing, premium v2)
   Loaded only on /admin/leads/* and Settings -> Lead sourcing. Uses the 1.6.0 tokens in app.css :root. */

.lx { display: flex; flex-direction: column; gap: 24px; max-width: 1480px; }
.lx h1, .lx h2, .lx h3 { font-family: var(--head-font); }
.num-f { font-family: var(--head-font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ============ hero band (same language as the approved Dashboard banner) ============ */
.hx { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 32px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1D4FA8 0%, rgba(29,79,168,0) 55%), linear-gradient(135deg, #081629 0%, #0B1F3A 55%, #10295A 100%);
  box-shadow: 0 24px 60px rgba(11,31,58,.30), inset 0 1px 0 rgba(255,255,255,.06); }
.hx::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.hx::after { content: ""; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(74,144,240,.55), rgba(74,144,240,0) 65%); }
.hx > * { position: relative; z-index: 1; }
.hx-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.hx-l { flex: 1 1 440px; min-width: 0; }
.hx-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A9C8FF; }
.hx-eye .bdg { letter-spacing: .02em; text-transform: none; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(122,176,255,.18); color: #D6E6FF; box-shadow: inset 0 0 0 1px rgba(122,176,255,.3); }
.hx h1 { margin: 8px 0 0; font-size: 32px; line-height: 1.12; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hx p { margin: 8px 0 0; color: #C7D8F5; font-size: 14.5px; max-width: 640px; line-height: 1.55; }
.hx-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hx-glance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gl { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); font-size: 13px; color: #E3EDFF; white-space: nowrap; }
.gl b { color: #fff; font-weight: 800; } .gl i.d { width: 7px; height: 7px; border-radius: 50%; display: block; }
.gl .bi { font-size: 14px; color: #9DBDF2; }
.btn-x.btn-glass { background: rgba(255,255,255,.09); color: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-x.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.hx .need-help { background: rgba(255,255,255,.09); color: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.hx .need-help:hover { background: rgba(255,255,255,.16); }
.hx .need-help .nh-ico { background: #fff; color: var(--primary); }
.hx .hlp { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
.hx .hlp:hover { background: #fff; color: var(--deep); }
.plan { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.plan .pi { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.plan.free { background: rgba(61,187,138,.16); color: #9BF0CC; box-shadow: inset 0 0 0 1px rgba(61,187,138,.42); } .plan.free .pi { background: #3DBB8A; color: #052E1F; }
.plan.paid { background: rgba(245,181,68,.16); color: #FFD891; box-shadow: inset 0 0 0 1px rgba(245,181,68,.45); } .plan.paid .pi { background: #F5B544; color: #3D2500; }
.plan.lt.free { background: var(--green-bg); color: var(--green); box-shadow: inset 0 0 0 1px rgba(13,122,83,.2); }
.plan.lt.paid { background: var(--amber-bg); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(154,91,0,.22); }

/* ============ KPI tiles: gradient icon, trend chip, sparkline ============ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kp { position: relative; overflow: hidden; background: #fff; border-radius: 20px; padding: 20px 20px 0; border: 1px solid #E6ECF5;
  box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 16px 36px rgba(15,27,45,.07); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.kp:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,45,.05), 0 24px 48px rgba(15,27,45,.11); }
.kp-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kp-l { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; color: #fff; flex-shrink: 0; }
.gi.blue { background: linear-gradient(135deg, #2F6FE4, #6AA6FF); box-shadow: 0 10px 22px rgba(47,111,228,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.gi.green { background: linear-gradient(135deg, #0D7A53, #3DBB8A); box-shadow: 0 10px 22px rgba(13,122,83,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.gi.purple { background: linear-gradient(135deg, #5B39AE, #9B7BE8); box-shadow: 0 10px 22px rgba(91,57,174,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.gi.amber { background: linear-gradient(135deg, #B26A00, #F5B544); box-shadow: 0 10px 22px rgba(178,106,0,.30), inset 0 1px 0 rgba(255,255,255,.35); }
.gi.navy { background: linear-gradient(135deg, #0B1F3A, #2F6FE4); box-shadow: 0 10px 22px rgba(11,31,58,.32), inset 0 1px 0 rgba(255,255,255,.2); }
.gi.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
.gi.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 23px; }
.kp-v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kp-v b { font-family: var(--head-font); font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.kp-v b small { font-size: 17px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.tr { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.tr.up { background: var(--green-bg); color: var(--green); } .tr.dn { background: var(--red-bg); color: var(--red); } .tr.nt { background: var(--soft); color: var(--muted); }
.kp-s { font-size: 12.5px; color: var(--muted); } .kp-s b { color: var(--ink); }
.lspark { display: block; width: calc(100% + 40px); height: 54px; margin: 2px -20px 0; }

/* ============ cards ============ */
.cx { background: #fff; border-radius: 22px; border: 1px solid #E6ECF5; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 16px 40px rgba(15,27,45,.07); padding: 24px 26px; min-width: 0; }
.ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ch .hl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ch h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; display: inline-flex; align-items: center; gap: 8px; }
.ch p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.lnk { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ============ allowance gauges ============ */
.alw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ap { position: relative; border-radius: 18px; padding: 20px; background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%); border: 1px solid #E6ECF5; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; }
.lring { --p: 0; --c1: #0D7A53; --c2: #3DBB8A; width: 132px; height: 132px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(from -90deg, var(--c1) 0, var(--c2) calc(var(--p) * 1%), #E9EEF6 calc(var(--p) * 1%)); box-shadow: 0 10px 26px rgba(15,27,45,.08); }
.lring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 6px rgba(15,27,45,.06); }
.lring > div { position: relative; text-align: center; line-height: 1.1; }
.lring b { display: block; font-family: var(--head-font); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.lring small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.lring.sm { width: 92px; height: 92px; } .lring.sm::before { inset: 9px; } .lring.sm b { font-size: 19px; }
.ap-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ap-h .nm { font-family: var(--head-font); font-weight: 800; font-size: 15.5px; } .ap-h .sb { font-size: 12px; color: var(--muted); }
.ap-h .lock { margin-left: auto; }
.bl { display: grid; grid-template-columns: 96px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 0; }
.bl .k { color: #2A3A55; font-weight: 600; } .bl .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; } .bl .v small { color: var(--muted); font-weight: 600; }
.bar2 { height: 8px; border-radius: 8px; background: #EDF1F8; overflow: hidden; display: flex; }
.bar2 i { display: block; height: 100%; }
.bar2 i.g { background: linear-gradient(90deg, #0D7A53, #3DBB8A); } .bar2 i.a { background: linear-gradient(90deg, #B26A00, #F5B544); }
.bar2 i.b { background: linear-gradient(90deg, #12336A, var(--light)); } .bar2 i.p { background: linear-gradient(90deg, #5B39AE, #9B7BE8); }
.bar2 i.r { background: repeating-linear-gradient(135deg, #E8675C 0 6px, #F3A39C 6px 12px); } .bar2 i.n { background: #C9D2E3; }
.bar2.lg { height: 12px; border-radius: 10px; }
.paidstrip { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: repeating-linear-gradient(135deg, #F6F8FC 0 10px, #F1F4FA 10px 20px); border: 1px dashed #D3DCEB; font-size: 12.5px; color: #3B4A66; flex-wrap: wrap; }
.paidstrip .bi { font-size: 16px; color: var(--muted); } .paidstrip b { color: var(--ink); } .paidstrip a { margin-left: auto; }

/* ============ pills ============ */
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; letter-spacing: .01em; }
.st .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.st.green { background: var(--green-bg); color: var(--green); } .st.blue { background: var(--blue-bg); color: var(--primary); }
.st.amber { background: var(--amber-bg); color: var(--amber); } .st.red { background: var(--red-bg); color: var(--red); }
.st.purple { background: var(--purple-bg); color: var(--purple); } .st.grey { background: var(--soft); color: var(--muted); }
.st.dark { background: rgba(255,255,255,.1); color: #E3EDFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.st.run .d { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* ============ toolbar ============ */
.tb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.segt { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px #E6ECF5; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.segt::-webkit-scrollbar { display: none; }
.segt button, .segt a { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .15s, color .15s; }
.segt button em, .segt a em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(15,27,45,.07); }
.segt button:hover, .segt a:hover { color: var(--ink); }
.segt button.on, .segt a.on { background: #fff; color: var(--deep); box-shadow: 0 1px 2px rgba(15,27,45,.08), 0 6px 14px rgba(15,27,45,.08); }
.segt button.on em, .segt a.on em { background: var(--deep); color: #fff; }
.segt button.r.on, .segt a.r.on { color: var(--red); } .segt button.r.on em { background: var(--red); }
.fsrch { height: 44px; border-radius: 13px; background: #fff; display: flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--muted); border: 1.5px solid #E1E7F1; min-width: 260px; transition: border-color .15s, box-shadow .15s; }
.fsrch:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,111,228,.12); }
.fsrch input { border: 0; background: transparent; outline: 0; flex: 1; font: inherit; font-size: 13.5px; color: var(--ink); min-width: 0; }

/* ============ premium table ============ */
.lt { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 13.5px; margin-top: -8px; }
.lt thead th { position: sticky; top: var(--top-h); z-index: 2; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); text-align: left; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #7A8AA3; font-weight: 800; padding: 10px 14px; white-space: nowrap; }
.lt thead th.sortable { cursor: pointer; } .lt thead th.sortable:hover { color: var(--ink); } .lt thead th .bi { font-size: 10px; margin-left: 3px; }
.lt tbody td { background: #fff; padding: 12px 14px; height: 64px; vertical-align: middle; border-top: 1px solid #EDF1F7; border-bottom: 1px solid #EDF1F7; transition: background .15s, box-shadow .15s; }
.lt tbody td:first-child { border-left: 1px solid #EDF1F7; border-radius: 14px 0 0 14px; }
.lt tbody td:last-child { border-right: 1px solid #EDF1F7; border-radius: 0 14px 14px 0; }
.lt tbody tr { transition: transform .15s ease; }
.lt tbody tr:hover td { background: #FAFCFF; border-color: #DCE6F7; }
.lt tbody tr:hover { transform: translateY(-1px); }
.lt tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.lt tbody tr.off td { background: #FBFCFE; } .lt tbody tr.off .t1 { color: #5B6B82; }
.lt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lt .act { text-align: right; white-space: nowrap; }
.lt .t1 { font-weight: 800; color: var(--ink); font-size: 14px; } .lt .t2 { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lt .ck { width: 44px; }
.lt.flat { border-spacing: 0; margin-top: 0; } .lt.flat tbody td { height: 54px; border-radius: 0 !important; border-left: 0; border-right: 0; border-top: 0; }
.lt.flat tbody tr:hover { transform: none; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; color: #fff; flex-shrink: 0; font-family: var(--head-font); letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px rgba(15,27,45,.14); }
.av.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; box-shadow: none; }
.av.c1 { background: linear-gradient(135deg, #2F6FE4, #6AA6FF); } .av.c2 { background: linear-gradient(135deg, #0D7A53, #3DBB8A); } .av.c3 { background: linear-gradient(135deg, #5B39AE, #9B7BE8); }
.av.c4 { background: linear-gradient(135deg, #B26A00, #F5B544); } .av.c5 { background: linear-gradient(135deg, #0B1F3A, #3C6FC9); } .av.c6 { background: linear-gradient(135deg, #B42E24, #E8675C); }
.ckb { width: 19px; height: 19px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.yield { display: flex; flex-direction: column; gap: 5px; min-width: 110px; } .yield .n { font-size: 12px; color: var(--muted); } .yield .n b { color: var(--ink); font-size: 13.5px; }
.cost-free { color: var(--green); font-weight: 800; } .cost-paid { color: var(--amber); font-weight: 800; }
.costc { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.costc.f { background: var(--green-bg); color: var(--green); } .costc.p { background: var(--amber-bg); color: var(--amber); }
.prog { display: flex; align-items: center; gap: 8px; min-width: 130px; } .prog .bar2 { flex: 1; } .prog span { font-size: 12px; font-weight: 800; color: var(--primary); }
.prog .bar2 i { position: relative; overflow: hidden; } .prog .bar2 i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 1.6s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ibtn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid #E1E7F1; background: #fff; display: inline-grid; place-items: center; color: #3B4A66; font-size: 16px; cursor: pointer; transition: all .15s; }
.ibtn:hover { border-color: #C9D6EA; color: var(--deep); box-shadow: 0 6px 14px rgba(15,27,45,.08); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pager .pg { display: flex; gap: 6px; }
.pager .pg button { min-width: 36px; height: 36px; border-radius: 11px; border: 1px solid #E1E7F1; background: #fff; font: inherit; font-weight: 800; color: #3B4270; cursor: pointer; }
.pager .pg button.on { background: var(--deep); color: #fff; border-color: var(--deep); box-shadow: 0 8px 18px rgba(11,31,58,.25); }

/* ICP mini ring */
.icp { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--head-font); }
.icp .r { --p: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--c, var(--primary)) calc(var(--p) * 1%), #E9EEF6 0); display: grid; place-items: center; }
.icp .r::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; }

/* ============ composition bar (review) ============ */
.comp { display: flex; flex-direction: column; gap: 12px; }
.comp-bar { display: flex; height: 14px; border-radius: 10px; overflow: hidden; gap: 3px; background: rgba(255,255,255,.08); }
.comp-bar i, .comp-bar a { display: block; height: 100%; transition: opacity .15s; cursor: pointer; }
.comp-bar i:hover, .comp-bar a:hover { opacity: .8; }
.comp-l { display: flex; flex-wrap: wrap; gap: 8px; }
.cl { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); color: #E3EDFF; font-size: 13px; cursor: pointer; border: 0; font-family: inherit; transition: background .15s, box-shadow .15s; }
.cl:hover { background: rgba(255,255,255,.12); }
.cl.on { background: #fff; color: var(--deep); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.cl i { width: 9px; height: 9px; border-radius: 3px; display: block; } .cl b { font-weight: 800; }
.cG { background: #3DBB8A; } .cP { background: #9B7BE8; } .cN { background: #9AA7BD; } .cR { background: #E8675C; } .cA { background: #F5B544; } .cB { background: #6AA6FF; }

/* bulk bar - sticky, glass navy */
.lbulk { position: sticky; top: calc(var(--top-h) + 10px); z-index: 4; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(120deg, rgba(8,22,41,.97) 0%, rgba(18,51,106,.97) 100%); color: #fff; box-shadow: 0 18px 40px rgba(11,31,58,.30), inset 0 1px 0 rgba(255,255,255,.08); animation: slideIn .22s ease; }
.lbulk .n { font-weight: 800; font-family: var(--head-font); font-size: 16px; display: flex; align-items: center; gap: 10px; } .lbulk .s { font-size: 12.5px; color: #B9D3FF; }
.lbulk .lcnt { min-width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; font-size: 14px; box-shadow: 0 8px 18px rgba(47,111,228,.45); padding: 0 8px; }
.lbulk .sp { flex: 1; }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ wizard ============ */
.lsteps { display: flex; align-items: center; gap: 0; margin-top: 22px; flex-wrap: wrap; row-gap: 10px; }
.sp2 { display: inline-flex; align-items: center; gap: 10px; color: #9DBDF2; font-weight: 700; font-size: 13.5px; }
.sp2 b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: #CFE0FF; }
.sp2.done { color: #9BF0CC; } .sp2.done b { background: #3DBB8A; color: #052E1F; box-shadow: 0 0 0 4px rgba(61,187,138,.18); }
.sp2.cur { color: #fff; } .sp2.cur b { background: #fff; color: var(--deep); box-shadow: 0 0 0 5px rgba(122,176,255,.28); }
.sp-line { width: 56px; height: 2px; margin: 0 12px; border-radius: 2px; background: rgba(255,255,255,.18); } .sp-line.done { background: linear-gradient(90deg, #3DBB8A, rgba(255,255,255,.4)); }
.wz { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.wz-sum { position: sticky; top: calc(var(--top-h) + 18px); display: flex; flex-direction: column; gap: 18px; }
.wz-foot { position: sticky; bottom: 0; z-index: 5; margin: 22px -26px -24px; padding: 16px 26px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-top: 1px solid #EDF1F7; border-radius: 0 0 22px 22px; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.sec-n { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; }
.sec-n:first-child { margin-top: 0; }
.sec-n .k { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--blue-bg); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(47,111,228,.16); }
.sec-n h3 { margin: 0; font-size: 16px; } .sec-n p { margin: 0; font-size: 12.5px; color: var(--muted); }
.srcpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.srcc { position: relative; border: 1.5px solid #E1E7F1; border-radius: 18px; padding: 16px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .18s, transform .15s; overflow: hidden; }
.srcc:hover { border-color: #C9D6EA; box-shadow: 0 14px 30px rgba(15,27,45,.09); transform: translateY(-2px); }
.srcc.on { border-color: var(--primary); background: linear-gradient(180deg, #F3F8FF, #fff 60%); box-shadow: 0 0 0 4px rgba(47,111,228,.12), 0 16px 34px rgba(47,111,228,.14); }
.srcc .ti { font-weight: 800; font-size: 14.5px; font-family: var(--head-font); } .srcc .de { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.srcc .tag { align-self: flex-start; }
.srcc .ck { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 13px; transform: scale(0); transition: transform .18s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 6px 14px rgba(47,111,228,.4); }
.srcc.on .ck { transform: scale(1); }
.fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fg .full { grid-column: 1 / -1; }
.lblh { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; } .lblh .lbl { margin: 0; }
.lx .inp, .lx .sel { height: 46px; border-radius: 12px; background: #FBFCFE; }
.lx .inp:focus, .lx .sel:focus { background: #fff; box-shadow: 0 0 0 4px rgba(47,111,228,.12); }
.ipre { position: relative; } .ipre > .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; } .ipre .inp, .ipre .sel { padding-left: 40px; }
.tagbox { min-height: 46px; border-radius: 12px; border: 1.5px solid #E1E5F2; background: #FBFCFE; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.tagbox:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,111,228,.12); }
.tagbox .tg { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 9px; background: #fff; color: var(--deep); font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(15,27,45,.06), inset 0 0 0 1px #DCE6F7; }
.tagbox .tg button { border: 0; background: var(--soft); color: var(--muted); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 12px; }
.tagbox .tg button:hover { background: var(--red-bg); color: var(--red); }
.tagbox input { border: 0; outline: 0; flex: 1; min-width: 90px; font: inherit; font-size: 13.5px; padding: 0 6px; background: transparent; }
.tagbox.ex .tg { color: var(--red); box-shadow: inset 0 0 0 1px #F6C6C1; background: #FFF7F6; }
.stepper-n { display: flex; align-items: stretch; border: 1.5px solid #E1E5F2; border-radius: 12px; overflow: hidden; background: #FBFCFE; height: 46px; }
.stepper-n button { width: 44px; border: 0; background: transparent; font-size: 16px; color: var(--muted); cursor: pointer; } .stepper-n button:hover { background: var(--soft); color: var(--ink); }
.stepper-n input { flex: 1; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 15px; background: transparent; outline: 0; min-width: 0; font-family: var(--head-font); }
.segp { display: flex; background: #F1F4FA; border-radius: 12px; padding: 4px; gap: 4px; height: 46px; }
.segp button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); border-radius: 9px; cursor: pointer; white-space: nowrap; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segp button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(15,27,45,.08), 0 6px 14px rgba(15,27,45,.08); }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #E1E7F1; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #C9D6EA; } .opt.on { border-color: rgba(47,111,228,.35); background: #F6F9FF; }
.opt .tx { flex: 1; min-width: 0; } .opt .tx b { display: block; font-size: 13.5px; } .opt .tx small { color: var(--muted); font-size: 12px; line-height: 1.45; display: block; margin-top: 2px; }
.sw2 { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D5DBEE; transition: background .2s; flex-shrink: 0; cursor: pointer; }
.sw2::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,27,45,.25); transition: left .2s cubic-bezier(.2,.9,.3,1.2); }
.sw2.on { background: linear-gradient(90deg, #2F6FE4, #4A90F0); } .sw2.on::after { left: 23px; }

/* cost receipt (dark) */
.rcpt { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 22px 20px; color: #fff; background: linear-gradient(160deg, #0B1F3A 0%, #10295A 70%, #183E86 100%); box-shadow: 0 24px 50px rgba(11,31,58,.30); }
.rcpt::after { content: ""; position: absolute; right: -90px; top: -110px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(74,144,240,.45), transparent 65%); pointer-events: none; }
.rcpt > * { position: relative; z-index: 1; }
.rc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-h .t { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #A9C8FF; display: inline-flex; align-items: center; gap: 8px; }
.rc-big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.rc-big b { font-family: var(--head-font); font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rc-big b.free { color: #7EF0C0; } .rc-big b.paid { color: #FFD891; }
.rc-big span { font-size: 12.5px; color: #C7D8F5; text-align: right; }
.rc-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 3px; margin: 14px 0 8px; background: rgba(255,255,255,.08); }
.rc-bar i { display: block; height: 100%; transition: width .35s ease; }
.rc-bar i.g { background: linear-gradient(90deg, #0D7A53, #3DBB8A); } .rc-bar i.a { background: linear-gradient(90deg, #B26A00, #F5B544); } .rc-bar i.x { background: repeating-linear-gradient(135deg, #E8675C 0 6px, #B42E24 6px 12px); }
.rc-lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #C7D8F5; } .rc-lg span { display: inline-flex; align-items: center; gap: 6px; } .rc-lg i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.rc-ln { margin-top: 14px; border-top: 1px dashed rgba(255,255,255,.18); padding-top: 6px; }
.rc-r { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; color: #C7D8F5; } .rc-r b { color: #fff; font-variant-numeric: tabular-nums; }
.rc-demo { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; gap: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.rc-demo button { border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 800; color: #B9D3FF; padding: 0 9px; height: 26px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.rc-demo button.on { background: #fff; color: var(--deep); }
.verdict { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.55; }
.verdict .vi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; color: #fff; }
.verdict b { display: block; margin-bottom: 2px; font-size: 13.5px; }
.verdict.green { background: var(--green-bg); color: #0A5C3F; } .verdict.green .vi { background: linear-gradient(135deg, #0D7A53, #3DBB8A); }
.verdict.amber { background: var(--amber-bg); color: #6E4100; } .verdict.amber .vi { background: linear-gradient(135deg, #B26A00, #F5B544); }
.verdict.red { background: var(--red-bg); color: #8A231B; } .verdict.red .vi { background: linear-gradient(135deg, #B42E24, #E8675C); }
.verdict .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ccard { display: flex; gap: 14px; align-items: flex-start; }
.ccard .fl { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; background: #F3F6FB; box-shadow: inset 0 0 0 1px #E6ECF5; flex-shrink: 0; }

/* ============ drawer ============ */
.rdrw { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 1070; background: var(--bg); display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(8,22,41,.28); transform: translateX(104%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.rdrw.show { transform: none; }
.rd-h { position: relative; overflow: hidden; padding: 24px; background: linear-gradient(130deg, #081629 0%, #0B1F3A 45%, #2F6FE4 100%); color: #fff; }
.rd-h::after { content: ""; position: absolute; right: -70px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.07); }
.rd-h > * { position: relative; z-index: 1; }
.rd-top { display: flex; gap: 14px; align-items: center; }
.rd-h .ti { font-family: var(--head-font); font-weight: 800; font-size: 20px; letter-spacing: -.02em; } .rd-h .sb { font-size: 13px; color: #B9D3FF; margin-top: 2px; }
.rd-b { padding: 18px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.rd-c { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #E6ECF5; }
.rd-c .lbl { margin-bottom: 10px; }
.lkv { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px 14px; font-size: 13px; margin: 0; }
.lkv dt { color: var(--muted); font-weight: 600; } .lkv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sc { display: grid; gap: 8px; } .sc-r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12.5px; } .sc-r b { text-align: right; }
.raw { background: #0B1F3A; color: #CFE0FF; border-radius: 12px; padding: 12px 14px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; margin: 0; }
.rd-f { padding: 14px 20px 18px; border-top: 1px solid #E6ECF5; background: #fff; display: flex; gap: 10px; }

/* ============ ICP ============ */
.icp-g { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.icpl { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--top-h) + 18px); }
.icpc { position: relative; border: 1.5px solid #E1E7F1; border-radius: 18px; padding: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .18s, transform .15s; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.icpc:hover { border-color: #C9D6EA; box-shadow: 0 14px 30px rgba(15,27,45,.09); transform: translateY(-2px); }
.icpc.on { border-color: var(--primary); background: linear-gradient(180deg, #F3F8FF, #fff 70%); box-shadow: 0 0 0 4px rgba(47,111,228,.12), 0 16px 34px rgba(47,111,228,.12); }
.icpc .t { font-weight: 800; font-family: var(--head-font); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.icpc .s { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.55; } .icpc .s b { color: #2A3A55; }
.wbar { display: flex; height: 16px; border-radius: 10px; overflow: hidden; gap: 3px; margin: 6px 0 16px; }
.wbar i { display: block; height: 100%; transition: width .25s ease; }
.wt { display: grid; grid-template-columns: 14px minmax(0, 1fr) 200px 52px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EDF1F7; font-size: 13px; }
.wt:last-child { border-bottom: 0; } .wt .wsw { width: 12px; height: 12px; border-radius: 4px; display: block; }
.wt .n b { display: block; font-size: 13.5px; } .wt .n small { color: var(--muted); }
.wt input[type=range] { width: 100%; accent-color: var(--primary); height: 6px; } .wt .v { text-align: right; font-weight: 800; font-family: var(--head-font); font-size: 15px; font-variant-numeric: tabular-nums; }
.wt.neg input[type=range] { accent-color: var(--red); } .wt.neg .v { color: var(--red); }
.tot { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 800; font-size: 13px; }
.tot.ok { background: var(--green-bg); color: var(--green); } .tot.bad { background: var(--red-bg); color: var(--red); }
.rng2 { display: flex; align-items: center; gap: 10px; } .rng2 .inp { text-align: center; font-weight: 800; }

/* ============ settings ============ */
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid #EDF1F7; }
.set-sec:first-child { border-top: 0; padding-top: 4px; }
.set-sec .sh h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; } .set-sec .sh p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.set-sec .sh .gi { margin-bottom: 12px; }
.pu { display: flex; flex-direction: column; gap: 16px; }
.pu-c { position: relative; border: 1.5px solid #E1E7F1; border-radius: 20px; padding: 20px; background: #fff; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px 20px; align-items: center; transition: border-color .25s, background .25s, box-shadow .25s; }
.pu-c.on { border-color: #F2C96E; background: linear-gradient(180deg, #FFFBF1, #fff 70%); box-shadow: 0 0 0 4px rgba(245,181,68,.14), 0 18px 40px rgba(178,106,0,.10); }
.pu-c .nm { font-weight: 800; font-family: var(--head-font); font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pu-c .ds { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.pu-c .row2 { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .pu-c .row2 b { color: var(--ink); font-family: var(--head-font); font-size: 14px; }
.tgl { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 4px; border-radius: 999px; background: #EEF2F8; box-shadow: inset 0 1px 3px rgba(15,27,45,.08); cursor: pointer; user-select: none; }
.tgl span { position: relative; z-index: 1; padding: 0 16px; font-size: 12.5px; font-weight: 800; color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; gap: 6px; height: 36px; }
.tgl::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(15,27,45,.12), 0 8px 18px rgba(15,27,45,.08); transition: transform .25s cubic-bezier(.2,.9,.3,1.1), background .25s; }
.tgl span.a { color: var(--deep); }
.tgl.on::before { transform: translateX(100%); background: linear-gradient(135deg, #B26A00, #F5B544); box-shadow: 0 8px 18px rgba(178,106,0,.35); }
.tgl.on span.a { color: var(--muted); } .tgl.on span.b { color: #fff; }
.tgl:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(47,111,228,.25); }
.capbox { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px dashed #E1E7F1; }
.mc { border-radius: 14px; background: #F8FAFE; padding: 12px 14px; border: 1px solid #EDF1F7; }
.mc .k { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7A8AA3; }
.mc .v { font-family: var(--head-font); font-weight: 800; font-size: 20px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mc .v small { font-size: 12px; color: var(--muted); font-weight: 700; font-family: Inter, sans-serif; letter-spacing: 0; }
.capin { display: flex; align-items: center; height: 40px; border-radius: 11px; border: 1.5px solid #E1E5F2; background: #fff; overflow: hidden; margin: 4px 0 6px; }
.capin span { padding: 0 10px; font-weight: 800; color: var(--muted); background: #F3F6FB; height: 100%; display: grid; place-items: center; border-right: 1px solid #E1E5F2; }
.capin input { border: 0; outline: 0; flex: 1; min-width: 0; text-align: right; padding: 0 12px; font: inherit; font-weight: 800; font-size: 15px; font-family: var(--head-font); }
.capin:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,111,228,.12); }
.mc .h { font-size: 11.5px; color: var(--muted); }
.pv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 118px auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #EDF1F7; border-radius: 16px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.pv + .pv { margin-top: 10px; } .pv:hover { border-color: #DCE6F7; box-shadow: 0 10px 24px rgba(15,27,45,.06); }
.pv .pn { display: flex; gap: 12px; align-items: center; min-width: 0; } .pv .pn b { display: block; font-size: 14px; } .pv .pn small { color: var(--muted); font-size: 12px; }
.pv .key { display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 12px; background: #F6F8FC; padding: 0 6px 0 12px; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3B4270; min-width: 0; border: 1px solid #EDF1F7; }
.pv .key span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pv .key .btn-x { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.chk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr { display: grid; grid-template-columns: minmax(150px, .9fr) auto minmax(0, 1.2fr); gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid #EDF1F7; border-radius: 16px; background: #fff; font-size: 13px; }
.cr + .cr { margin-top: 10px; } .cr .c { display: flex; align-items: center; gap: 12px; font-weight: 800; } .cr .c .fl { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: #F3F6FB; }
.cr .inp { height: 40px; font-size: 13px; }
.seg3 { display: inline-flex; background: #F1F4FA; border-radius: 12px; padding: 4px; gap: 3px; }
.seg3 button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 12px; height: 32px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg3 button.on.g { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(15,27,45,.1); }
.seg3 button.on.b { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(15,27,45,.1); }
.seg3 button.on.r { background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(15,27,45,.1); }
.savebar { position: sticky; bottom: 18px; z-index: 6; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px 12px 18px; border-radius: 18px; background: linear-gradient(120deg, rgba(8,22,41,.96), rgba(18,51,106,.96)); color: #fff; box-shadow: 0 22px 48px rgba(11,31,58,.32); flex-wrap: wrap; margin-top: 8px; }
.savebar span { font-size: 13px; color: #CFE0FF; display: inline-flex; align-items: center; gap: 8px; }
.stabs { display: flex; gap: 4px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid #E6ECF5; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 24px rgba(15,27,45,.05); overflow-x: auto; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.stabs button, .stabs a { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); height: 38px; padding: 0 14px; border-radius: 11px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.stabs button:hover, .stabs a:hover { color: var(--ink); background: #F6F8FC; }
.stabs button.on, .stabs a.on { background: var(--deep); color: #fff; box-shadow: 0 8px 18px rgba(11,31,58,.25); }
.stabs .new { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--primary); color: #fff; }

/* confirm sheet (never confirm()) */
.csheet { position: fixed; left: 50%; top: 50%; width: min(500px, calc(100vw - 32px)); z-index: 1070; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(8,22,41,.38); overflow: hidden;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s; }
.csheet.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.cs-h { position: relative; overflow: hidden; padding: 24px; display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(130deg, #3D2500 0%, #7A4800 50%, #B26A00 100%); color: #fff; }
.cs-h.danger { background: linear-gradient(130deg, #3B0D09 0%, #7E1F17 50%, #B42E24 100%); }
.cs-h::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cs-h > * { position: relative; z-index: 1; }
.cs-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); flex-shrink: 0; }
.cs-h .t { font-family: var(--head-font); font-weight: 800; font-size: 19px; letter-spacing: -.01em; } .cs-h .s { font-size: 13px; opacity: .85; margin-top: 4px; line-height: 1.5; }
.cs-b { padding: 18px 24px 4px; } .cs-li { display: grid; gap: 10px; }
.cs-li div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: #2D3358; align-items: start; }
.cs-li i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-bg); color: var(--amber); font-size: 15px; }
.cs-f { padding: 18px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.btn-x.btn-amber { background: linear-gradient(180deg, #F5B544, #B26A00); color: #fff; box-shadow: 0 10px 24px rgba(178,106,0,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-x.btn-red { background: linear-gradient(180deg, #E8675C, #B42E24); color: #fff; box-shadow: 0 10px 24px rgba(180,46,36,.32); }

/* ============ responsive ============ */
@media (max-width: 1299.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz { grid-template-columns: minmax(0, 1fr) 340px; }
  .srcpick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-sec { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 1099.98px) {
  .alw { grid-template-columns: 1fr; }
  .wz { grid-template-columns: 1fr; } .wz-sum { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icp-g { grid-template-columns: 1fr; } .icpl { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 8px; margin: -4px; }
  .icpc { min-width: 270px; scroll-snap-align: start; }
  .set-sec { grid-template-columns: 1fr; gap: 14px; }
  .lt .hide-t { display: none; }
  .pv { grid-template-columns: minmax(0, 1fr) 118px auto; } .pv .key { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767.98px) {
  .hx { padding: 22px 18px; border-radius: 20px; } .hx h1 { font-size: 24px; } .hx p { font-size: 13.5px; }
  .hx-r { width: 100%; } .hx-r .btn-x.btn-y { flex: 1; }
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpis .kp { flex: 0 0 82%; scroll-snap-align: start; }
  .cx { padding: 18px 16px; border-radius: 18px; }
  .ap { grid-template-columns: 1fr; justify-items: center; text-align: left; } .ap > div:last-child { width: 100%; }
  .fg { grid-template-columns: 1fr; }
  .fsrch { min-width: 0; flex: 1 1 100%; }
  .wz-sum { grid-template-columns: 1fr; }
  .wz-foot { margin: 18px -16px -18px; padding: 12px 16px; } .wz-foot .btn-x { flex: 1; }
  .srcpick { grid-template-columns: 1fr 1fr; gap: 10px; } .srcc { padding: 12px; } .srcc .de { display: none; }
  .lsteps .sp2:not(.cur) span { display: none; } .sp-line { width: 22px; margin: 0 6px; }
  /* tables become cards: title on top, key facts in a 2-column grid, action at the bottom */
  .lt { border-spacing: 0; margin-top: 0; } .lt thead { display: none; }
  .lt, .lt tbody { display: block; width: 100%; }
  .lt tbody tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; border: 1px solid #E6ECF5; border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 24px rgba(15,27,45,.05); }
  .lt tbody tr:hover { transform: none; } .lt tbody tr:hover td:first-child { box-shadow: none; }
  .lt tbody td, .lt tbody td:first-child, .lt tbody td:last-child { display: block; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent !important; min-width: 0; }
  .lt td[data-l]::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7A8AA3; margin-bottom: 5px; }
  .lt td.num { text-align: left; } .lt .hide-m { display: none !important; }
  .lt td.t { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid #EDF1F7 !important; }
  .lt td.act { grid-column: 1 / -1; text-align: left; padding-top: 2px; } .lt td.act .btn-x { width: 100%; }
  .lt td.act.ico { position: absolute; top: 14px; right: 14px; padding: 0; } .lt td.act.ico ~ td.t, .lt tr:has(td.act.ico) td.t { padding-right: 50px; }
  .lt td.ck { position: absolute; top: 25px; left: 14px; width: auto; }
  .lt tr.has-ck td.t { padding-left: 30px; }
  .lt .t2 { word-break: break-word; }
  .lt .yield { min-width: 0; }
  .lt.flat tbody td { height: auto; }
  .lbulk { top: calc(var(--top-h) + 6px); } .lbulk .btn-x.sm { flex: 1 1 calc(50% - 6px); } .lbulk .sp { display: none; } .lbulk > div:first-child { width: 100%; }
  .comp-l .cl { height: 32px; padding: 0 10px; font-size: 12px; }
  .pu-c { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; } .pu-c .lring.sm { width: 72px; height: 72px; } .pu-c .lring.sm::before { inset: 7px; } .pu-c .lring.sm b { font-size: 15px; }
  .pu-c .tgl { grid-column: 1 / -1; justify-self: stretch; } .tgl span { flex: 1; justify-content: center; }
  .capbox { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .chk { grid-template-columns: 1fr; }
  .cr { grid-template-columns: minmax(0, 1fr); } .cr .seg3 { justify-self: start; }
  .wt { grid-template-columns: 14px minmax(0, 1fr) 46px; } .wt input[type=range] { grid-column: 2 / -1; grid-row: 2; }
  .stabs { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .savebar span { display: none; } .savebar .btn-x { flex: 1; }
  .rdrw { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .st.run .d, .lbulk, .prog .bar2 i::after { animation: none; } .rdrw, .csheet, .kp, .srcc, .icpc { transition: none; } }

/* ---- build additions (1.7.0): real help button in the hero, own backdrop, small states ---- */
.hx .page-head { margin: 0; padding: 0; border: 0; background: none; align-items: flex-start; }
.hx .page-head h1 { color: #fff; }
.hx .need-help-m { background: rgba(255,255,255,.12); color: #fff; }
.lback { position: fixed; inset: 0; background: rgba(11,31,58,.45); backdrop-filter: blur(2px); z-index: 1060; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lback.show { opacity: 1; pointer-events: auto; }
.srcc { cursor: pointer; } .srcc.dis { opacity: .55; cursor: not-allowed; }
.srcc .st.red.tag { background: #FDECEA; }
.lpanel { display: none; } .lpanel.on { display: block; }
.lx .ta { width: 100%; min-height: 180px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 14px; resize: vertical; }
.lx .ta:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,111,228,.12); }
.dropz { border: 2px dashed #C9D3EA; border-radius: 18px; padding: 28px 18px; text-align: center; background: #F7F9FE; cursor: pointer; transition: border-color .15s, background .15s; }
.dropz:hover, .dropz.over { border-color: var(--primary); background: #EEF4FF; }
.dropz .bi { font-size: 30px; color: var(--primary); } .dropz b { display: block; margin-top: 6px; } .dropz small { color: var(--muted); }
.dropz.has { border-style: solid; border-color: #3DBB8A; background: #EFFAF5; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.presets .st { font-weight: 700; }
.lx .field-err { display: none; color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.lx .is-invalid { border-color: var(--red) !important; }
.lempty { padding: 44px 16px; text-align: center; color: var(--muted); }
.lempty .bi { font-size: 34px; display: block; margin-bottom: 8px; color: #9AA8C7; }
.lempty b { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }
.pager a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pager a.on { background: var(--navy, #12336A); color: #fff; }
.rd-c .sc-r { display: grid; grid-template-columns: 1fr 120px 42px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.rd-c .sc-r b { text-align: right; } .rd-c .sc-r.neg b { color: var(--red); }
.cr .rm { border: 0; background: none; color: var(--muted); font-size: 18px; } .cr .rm:hover { color: var(--red); }
.ledger-empty { padding: 20px; color: var(--muted); font-size: 13px; }
.waitnote { font-size: 12px; color: #B26A00; font-weight: 600; margin-top: 4px; }

.segt a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cl { text-decoration: none; } .cl:hover { color: #fff; } .cl.on:hover { color: var(--deep); }
.stabs a { text-decoration: none; }
.lpanel > .sec-n:first-child { margin-top: 30px; }
.lpanel > .verdict:first-child + .sec-n { margin-top: 22px; }
#ruleCard:empty { display: none; }
@media (max-width: 767.98px) { .lt tbody td.hide-t.show-m { display: block; } }
.fg > * { min-width: 0; } .lx .sel, .lx .inp { min-width: 0; max-width: 100%; } .icp-g > * { min-width: 0; }
@media (max-width: 767.98px) {
  .fg { grid-template-columns: minmax(0, 1fr); }
  .lbulk { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px; }
  .lbulk > div:first-child, .lbulk #importBtn { grid-column: 1 / -1; }
  .lbulk .btn-x.sm { width: auto; min-width: 0; padding: 0 8px; font-size: 12px; }
  .lbulk .btn-x.sm .bi { display: none; }
}
.capbox > *, .pu-c > * { min-width: 0; } .capin input { min-width: 0; width: 100%; }
@media (max-width: 767.98px) { .capbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1099.98px) { .set-sec { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .pv { grid-template-columns: minmax(0, 1fr) auto; }
  .pv > .st { grid-column: 2; grid-row: 1; }
  .pv .key { grid-column: 1 / -1; grid-row: 2; }
  .pv > div:last-child { grid-column: 1 / -1; grid-row: 3; } .pv > div:last-child .btn-x { flex: 1; }
}
.cr > * { min-width: 0; } .pv .pn > div { min-width: 0; }
@media (max-width: 767.98px) {
  .cr { grid-template-columns: minmax(0, 1fr); }
  .seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg3 button { padding: 0 6px; font-size: 11.5px; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- 1.8.0: Apollo search, usage page, plan check ---- */
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chips2 button { border: 1.5px solid #E1E7F1; background: #fff; border-radius: 999px; height: 34px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chips2 button:hover { border-color: #C9D3EA; color: var(--ink); }
.chips2 button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.planchk { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid #DDE7F7; background: linear-gradient(180deg, #F7FAFF, #fff); }
.planchk .rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13px; margin-top: 8px; align-items: center; } .planchk .rows b { text-align: right; }
.ub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ucard { border: 1px solid #E6ECF5; border-radius: 18px; padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 24px rgba(15,27,45,.05); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.ucard .nm { font-weight: 800; font-size: 14px; } .ucard .sb { font-size: 12px; color: var(--muted); } .ucard .v { font-size: 12.5px; margin-top: 6px; } .ucard .v b { font-size: 15px; }
.dchart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 10px 4px 0; border-bottom: 1px solid #EDF1F7; }
.dchart .c { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; height: 100%; justify-content: flex-start; }
.dchart .c i { display: block; border-radius: 4px 4px 0 0; min-height: 0; } .dchart .c i.f { background: #3DBB8A; } .dchart .c i.p { background: #F5B544; border-radius: 4px; }
.dchart .c:hover i { opacity: .8; }
.dlbl { display: flex; gap: 6px; padding: 6px 4px 0; } .dlbl span { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 700; min-width: 0; }
.fbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .fbar .sel { height: 40px; border-radius: 12px; max-width: 200px; }
@media (min-width: 1100px) { .fbar { flex-wrap: nowrap; } }
@media (max-width: 1099.98px) { .ub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ub { grid-template-columns: minmax(0, 1fr); } .planchk { flex-direction: column; } }
.hx .prog span { color: #CFE0FF; } .hx .prog .bar2 { background: rgba(255,255,255,.15); }
