/* ==========================================================================
   Kredibel — Admin panel stylesheet (light & dark)
   ========================================================================== */
:root {
	--p: #2563eb; --p-d: #1d4ed8; --p-l: #e8f0ff; --p-xl: #f3f7ff;
	--bg: #f3f6fb; --card: #fff; --ink: #0b1430; --text: #334155; --muted: #6b7a90; --line: #e6ebf3; --line-2: #eef2f8; --hover: #f6f9fe;
	--sb: #fff; --sb-text: #475569; --sb-w: 268px;
	--critical: #dc2626; --high: #ea580c; --medium: #d97706; --low: #0891b2; --safe: #16a34a;
	--r: 16px; --r-sm: 10px;
	--sh: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px -12px rgba(30, 58, 138, .14);
	--sh-lg: 0 24px 60px -20px rgba(30, 58, 138, .3);
	--font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}
html.dark {
	--bg: #0a0f1e; --card: #111a2e; --ink: #f1f5f9; --text: #cbd5e1; --muted: #8392ab; --line: #1f2a44; --line-2: #18223a; --hover: #16203a;
	--sb: #0d1426; --sb-text: #9aa8c0; --p-l: rgba(59, 130, 246, .16); --p-xl: rgba(59, 130, 246, .08);
	--sh: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--p); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .sm { font-size: 12.5px; } .strong { font-weight: 700; color: var(--ink); }
.block { display: block; } .nowrap { white-space: nowrap; } .c { text-align: center; } .r { text-align: right; }
.mt { margin-top: 14px; } .m0 { margin: 0 !important; } .w-auto { width: auto !important; }
.txt-green { color: var(--safe); } .txt-red { color: var(--critical); }
.link { font-weight: 600; font-size: 13px; }
.inline-form { display: inline; margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; font-weight: 700; font-size: 13.5px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; background: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #3b82f6, var(--p)); color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-light { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.btn-light:hover { border-color: #c7d6f5; color: var(--p); }
.btn-light.danger:hover, .icon-btn.danger:hover { color: var(--critical); border-color: #fecaca; background: #fef2f2; }
.btn-sm { padding: 8px 12px; font-size: 13px; } .btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; } .btn-lg { padding: 14px 20px; font-size: 15px; } .btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: .15s; vertical-align: middle; }
.icon-btn:hover { background: var(--hover); color: var(--p); border-color: var(--line); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-critical { background: #fee2e2; color: #dc2626; } .badge-high { background: #ffedd5; color: #ea580c; } .badge-medium { background: #fef3c7; color: #b45309; } .badge-low { background: #cffafe; color: #0e7490; } .badge-safe { background: #dcfce7; color: #15803d; }
.badge-st-pending { background: #eef2f7; color: #475569; } .badge-st-reviewing { background: #e0e7ff; color: #4338ca; } .badge-st-verified, .badge-st-clear { background: #dcfce7; color: #15803d; } .badge-st-rejected, .badge-st-blocked { background: #fee2e2; color: #b91c1c; } .badge-st-flagged { background: #ffedd5; color: #c2410c; }
html.dark .badge { filter: saturate(1.1); background: color-mix(in srgb, currentColor 16%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--text); }
.tag.act-del { background: #fee2e2; color: #b91c1c; } .tag.act-login { background: #e0e7ff; color: #4338ca; }
.cat-phone { background: #dcfce7; color: #15803d; } .cat-email { background: #f3e8ff; color: #7e22ce; } .cat-bank { background: #dbeafe; color: #1d4ed8; } .cat-aml { background: #fee2e2; color: #b91c1c; } .cat-geo { background: #ccfbf1; color: #0f766e; } .cat-manual { background: #fef3c7; color: #92400e; } .cat-api { background: #e0e7ff; color: #4338ca; }
html.dark [class*="cat-"] { background: var(--line-2); }
.st { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; text-transform: lowercase; }
.st-blocked { background: #fee2e2; color: #dc2626; } .st-flagged { background: #ffedd5; color: #ea580c; } .st-clear { background: #dcfce7; color: #16a34a; }
.st.lg { padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; background: #ef4444; color: #fff; text-transform: uppercase; }
.st.lg.st-flagged { background: #f97316; } .st.lg.st-clear { background: #22c55e; }

/* ---------- Sidebar ---------- */
.sb { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); background: var(--sb); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50; transition: transform .25s; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.sb-logo { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.sb-logo b { display: block; font-size: 17px; letter-spacing: -.02em; } .sb-logo small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sb-logo-img { height: 36px; width: auto; max-width: 120px; object-fit: contain; border-radius: 8px; }
.auth-logo { height: 46px; width: auto; max-width: 240px; object-fit: contain; }
.sb-close { display: none; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 14px 14px; }
.sb-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); opacity: .8; margin: 18px 10px 8px; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--sb-text); font-weight: 600; font-size: 14px; margin-bottom: 2px; transition: .15s; position: relative; }
.sb-link i { width: 20px; text-align: center; font-size: 15px; opacity: .85; }
.sb-link:hover { background: var(--hover); color: var(--ink); }
.sb-link.active { background: var(--p-l); color: var(--p); }
.sb-link.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--p); }
.sb-badge { margin-left: auto; font-style: normal; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.sb-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.sb-site { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.sb-backdrop { display: none; }

/* ---------- Topbar ---------- */
.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }
.tb { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tb-search { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.tb-search > i { position: absolute; left: 14px; color: var(--muted); }
.tb-search input[type=text] { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 70px 0 40px; outline: none; }
.tb-search input:focus { border-color: #93b4f5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.tb-search kbd { position: absolute; right: 10px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--line-2); font-family: var(--font); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--text); cursor: pointer; position: relative; }
.tb-btn:hover { color: var(--p); }
.tb-dot { position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.tb-menu { display: none; }
.tb-user { position: relative; }
.tb-user-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); padding: 5px 12px 5px 5px; border-radius: 14px; cursor: pointer; }
.tb-user-txt { text-align: left; line-height: 1.2; } .tb-user-txt b { display: block; font-size: 13px; color: var(--ink); } .tb-user-txt small { font-size: 11.5px; color: var(--muted); }
.tb-user-btn > i { font-size: 11px; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.av.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.dd { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); min-width: 210px; padding: 6px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .18s; }
.tb-user.open .dd { opacity: 1; transform: none; pointer-events: auto; }
.dd a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.dd a:hover { background: var(--hover); } .dd hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; } .dd-danger { color: var(--critical) !important; }

.content { padding: 28px; flex: 1; width: 100%; max-width: 1560px; }
.adm-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Page header ---------- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.ph p { margin: 4px 0 0; color: var(--muted); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.back:hover { color: var(--p); }

/* ---------- Cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); margin-bottom: 20px; }
.card.p0 { padding: 0; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h.pad { padding: 18px 22px 0; }
.card-h h3, .card-t { font-size: 15.5px; display: flex; align-items: center; gap: 10px; margin: 0; }
.card-t { margin-bottom: 16px; } .card-h h3 > i, .card-t > i { color: var(--p); }
.h-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #60a5fa, var(--p)); color: #fff; font-size: 15px; box-shadow: 0 8px 16px -8px var(--p); }
.grid { display: grid; gap: 20px; } .grid > .card { margin-bottom: 0; } .grid { margin-bottom: 20px; }
.g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; } .g-1-1 { grid-template-columns: 1fr 1fr; } .g-3-1 { grid-template-columns: 3fr 1fr; }
.empty, .empty-row { text-align: center; color: var(--muted); padding: 34px 16px !important; }
.empty i, .empty-row i { font-size: 15px; margin-right: 6px; }
.empty.big { padding: 70px 20px; } .empty.big > i { font-size: 46px; display: block; margin: 0 auto 14px; color: #c3cfe2; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--kc); opacity: .07; }
.kpi-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 19px; background: var(--kc); box-shadow: 0 10px 18px -10px var(--kc); flex: none; }
.kpi small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi > div { min-width: 0; }
.kpi b { white-space: nowrap; display: block; font-size: 24px; color: var(--ink); letter-spacing: -.03em; line-height: 1.2; }
.kpi-link { position: absolute; right: 14px; bottom: 10px; font-size: 12px; font-weight: 700; }
.k-blue { --kc: #2563eb; } .k-amber { --kc: #f59e0b; } .k-green { --kc: #10b981; } .k-violet { --kc: #8b5cf6; } .k-red { --kc: #ef4444; }
.chart-box { position: relative; height: 290px; } .chart-box.sm { height: 260px; }

/* Lists */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line-2); color: var(--text); border-radius: 8px; }
.mini-list li:last-child a { border: 0; }
.mini-list li a:hover { background: var(--hover); }
.ml-main { flex: 1; min-width: 0; } .ml-main b { display: block; color: var(--ink); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ml-main small { color: var(--muted); font-size: 12px; }
.score-pill { min-width: 46px; text-align: center; padding: 5px 8px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--muted); }
.mini-list li:nth-child(-n+3) .rank { background: #fee2e2; color: #dc2626; }
.activity { list-style: none; margin: 0; padding: 0 0 0 4px; }
.activity li { display: flex; gap: 12px; padding: 9px 0; position: relative; font-size: 13.5px; }
.activity li::before { content: ''; position: absolute; left: 4px; top: 22px; bottom: -6px; width: 2px; background: var(--line-2); }
.activity li:last-child::before { display: none; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--p); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--p-l); }
.activity b { color: var(--ink); } .activity small { display: block; color: var(--muted); font-size: 12px; }

/* Dashboard map */
.dash-map { display: grid; grid-template-columns: 1fr 200px; height: 330px; margin-top: 14px; border-top: 1px solid var(--line); }
.dash-map .map { height: 100%; }
.dash-prov { list-style: none; margin: 0; padding: 12px 16px; border-left: 1px solid var(--line); overflow: auto; font-size: 13px; }
.dash-prov li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.dash-prov b { color: var(--ink); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--line-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { opacity: .5; }
.tbl small { font-size: 12px; }
.id-cell { display: inline-flex; align-items: center; gap: 10px; }
.id-cell > span:last-child small { display: block; color: var(--muted); }
.ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: #dbeafe; color: #1d4ed8; flex: none; }
.ic.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.ic.t-phone { background: #dcfce7; color: #15803d; } .ic.t-email { background: #f3e8ff; color: #7e22ce; } .ic.t-wallet { background: #fef3c7; color: #b45309; } .ic.t-url { background: #e0f2fe; color: #0369a1; }
html.dark .ic { background: var(--line); }
.prio { display: inline-grid; place-items: center; min-width: 34px; height: 26px; border-radius: 8px; background: var(--line-2); font-weight: 800; font-size: 12px; }
.weight { font-weight: 800; padding: 4px 10px; border-radius: 8px; } .weight.neg { background: #fee2e2; color: #dc2626; } .weight.pos { background: #dcfce7; color: #16a34a; }

/* Switch */
.sw-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.sw { display: inline-block; width: 40px; height: 23px; border-radius: 999px; background: #cbd5e1; position: relative; transition: .2s; flex: none; vertical-align: middle; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: .2s; }
.sw.on, input:checked + .sw { background: var(--p); }
.sw.on::after, input:checked + .sw::after { transform: translateX(17px); }
html.dark .sw { background: #334155; }
.switch-row { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 10px 0; cursor: pointer; margin-bottom: 6px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row b { color: var(--ink); font-size: 14px; } .switch-row small { grid-column: 2; color: var(--muted); font-size: 12px; }

/* ---------- Forms ---------- */
input[type=text], input[type=search], input[type=email], input[type=url], input[type=number], input[type=password], input[type=date], select, textarea {
	width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 10px 13px; font-size: 14px; outline: none; transition: .15s; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: #93b4f5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
input[readonly] { background: var(--line-2); }
select { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
textarea { resize: vertical; }
.code-area { font-family: var(--mono); font-size: 13px; background: #0b1430; color: #e2e8f0; border-color: #0b1430; }
.f { display: block; margin-bottom: 14px; }
.f > span, .f-l { display: block; font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.f-err { color: var(--critical); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.fg { display: grid; gap: 0 16px; } .fg.g2 { grid-template-columns: 1fr 1fr; } .fg.g3 { grid-template-columns: repeat(3, 1fr); } .fg.g4 { grid-template-columns: repeat(4, 1fr); } .fg.g-url { grid-template-columns: 110px 1fr 180px; }
.in-icon { position: relative; } .in-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; z-index: 1; } .in-icon input[type] { padding-left: 38px; }
.in-prefix { display: flex; } .in-prefix em { font-style: normal; padding: 10px 10px; background: var(--line-2); border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; color: var(--muted); font-size: 13px; } .in-prefix input[type] { border-radius: 0 11px 11px 0; }
.in-lg { font-size: 18px !important; font-weight: 700; padding: 12px 14px !important; }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 8px 0 14px; } .chk input { accent-color: var(--p); }
.pw-in { position: relative; } .pw-in button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.color-lg { width: 64px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--card); cursor: pointer; }
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.form-side .sticky { position: sticky; top: 88px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; align-items: center; }
.filters .grow { flex: 1 1 260px; } .filters select { width: auto; flex: 0 1 170px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; }
.alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
html.dark .alert.warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }
.hint-box { display: flex; gap: 12px; padding: 12px 14px; background: var(--p-xl); border-radius: 12px; font-size: 12.5px; color: var(--text); margin-top: 8px; } .hint-box > i { color: var(--p); margin-top: 3px; }
.import-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .import-box > div { flex: 1 1 320px; } .import-box p { margin: 4px 0 0; }
.inline-filter { min-width: 240px; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.tabs a span { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--line-2); font-size: 12px; }
.tabs a.active { background: var(--ink); color: var(--card); border-color: var(--ink); } .tabs a.active span { background: rgba(255, 255, 255, .2); }
.tabs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tabs-mini button { border: 0; background: none; padding: 8px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs-mini button.active { background: var(--p); color: #fff; box-shadow: 0 6px 14px -8px var(--p); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 9px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
pre.code { background: #0b1430; color: #a5f3fc; padding: 14px; border-radius: 12px; font-size: 12px; overflow: auto; margin: 0; max-height: 260px; }

/* Pager */
.pager { display: flex; justify-content: center; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 13px; }
.pager span.active { background: var(--p); border-color: var(--p); color: #fff; }

/* ---------- Screening (two-pane) ---------- */
.run-card { padding: 16px 18px; }
.seg-sm { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.seg-sm input { position: absolute; opacity: 0; }
.seg-sm span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.seg-sm input:checked + span { background: var(--p-l); color: var(--p); border-color: #bcd0f7; }
.run-row { display: flex; gap: 10px; } .run-row .in-icon { flex: 1; }
.hist { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.hist-list { position: sticky; top: 88px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.hist-filter { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hist-head { padding: 12px 16px 6px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.hist-items { overflow-y: auto; padding: 4px 12px 12px; flex: 1; }
.hist-item { display: block; padding: 14px 16px; border-radius: 14px; margin-bottom: 8px; border: 1px solid transparent; color: var(--text); transition: .15s; }
.hist-item:hover { background: var(--hover); }
.hist-item.active { background: var(--card); border-color: var(--line); box-shadow: var(--sh-lg); }
.hist-item > b { display: block; color: var(--ink); font-size: 13.5px; word-break: break-all; margin-bottom: 8px; line-height: 1.4; }
.hist-item dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
.hist-item dt { color: var(--muted); } .hist-item dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.hist-list .pager { margin: 8px 0 12px; } .hist-list .pager a, .hist-list .pager span { min-width: 30px; height: 30px; font-size: 12px; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.dh-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 20px; background: linear-gradient(135deg, #60a5fa, var(--p)); box-shadow: 0 10px 20px -10px var(--p); flex: none; }
.dh-main { flex: 1; min-width: 0; } .dh-main h2 { font-size: 19px; margin: 0; } .dh-main > .mono { font-size: 12.5px; word-break: break-all; }
.dh-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; margin-top: 14px; justify-content: start; }
.dh-meta small { display: block; color: var(--muted); font-size: 12px; } .dh-meta b { color: var(--ink); font-size: 14px; }
.dh-actions { display: flex; gap: 6px; }
.enc-note { text-align: right; font-size: 11.5px; color: var(--muted); margin: 0 4px 14px; }
.score-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; }
.sp-left { padding: 26px; } .sp-right { padding: 24px; border-left: 1px solid var(--line); }
.sp-score { font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.sp-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.sp-bar { height: 4px; background: var(--line-2); border-radius: 4px; margin: 14px 0 18px; max-width: 280px; } .sp-bar span { display: block; height: 100%; border-radius: inherit; }
.sp-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp-subs b { display: block; font-size: 20px; color: var(--ink); } .sp-subs small { font-size: 10px; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.sp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.sp-right h4 { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.applied { list-style: none; margin: 0; padding: 0; }
.applied li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.applied li:last-child { border: 0; }
.ap-n { width: 22px; color: var(--muted); font-weight: 700; flex: none; } .applied li > div { flex: 1; min-width: 0; }
.applied b { display: block; color: var(--ink); } .applied small { color: var(--muted); font-size: 12px; word-break: break-word; }
.applied em { font-style: normal; font-weight: 800; color: var(--critical); background: #fef2f2; padding: 2px 8px; border-radius: 7px; font-size: 12.5px; }
html.dark .applied em, html.dark .weight.neg { background: rgba(220, 38, 38, .15); }
.map { width: 100%; background: #e8eef7; } html.dark .map { background: #0f1830; }
.map-md { height: 340px; border-radius: 12px; overflow: hidden; } .map-sm { height: 220px; border-radius: 12px; overflow: hidden; } .map-lg { height: 520px; }
.map-picker { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; } .map-picker.lg { height: 420px; } .map-picker.sm { height: 220px; }
.map-card { position: relative; }
.map-filter { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; } .map-filter select { width: auto; }
.prov-bars { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.prov-bars li { padding: 9px 0; border-bottom: 1px dashed var(--line); } .prov-bars li > div { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; color: var(--ink); }
.prov-bars i { display: block; height: 5px; background: var(--line-2); border-radius: 5px; margin: 6px 0 4px; } .prov-bars em { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, var(--p)); border-radius: inherit; }
.prov-bars small { color: var(--muted); font-size: 11.5px; }
.mk { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mk-critical { background: var(--critical); } .mk-high { background: var(--high); } .mk-medium { background: var(--medium); } .mk-low { background: var(--low); } .mk-user, .mk-safe { background: var(--p); }
.leaflet-popup-content { font-family: var(--font); font-size: 12.5px; } .leaflet-popup-content b { color: #0b1430; }
.leaflet-container { font-family: var(--font); }

/* Reports */
.tabs + .filters { margin-top: 0; }
.target-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tc-main { flex: 1; min-width: 240px; } .tc-main small { color: var(--muted); font-weight: 600; } .tc-main h2 { font-size: 24px; margin: 2px 0 10px; word-break: break-all; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tc-loss { text-align: right; padding-left: 20px; border-left: 1px solid var(--line); } .tc-loss small { display: block; color: var(--muted); font-size: 12px; } .tc-loss b { display: block; font-size: 22px; color: var(--critical); letter-spacing: -.02em; }
.chrono { font-size: 14.5px; line-height: 1.75; color: var(--ink); background: var(--line-2); padding: 16px 18px; border-radius: 12px; white-space: normal; }
.evidence img { max-height: 380px; border-radius: 12px; border: 1px solid var(--line); }
.status-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.status-pick input { position: absolute; opacity: 0; }
.status-pick span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.status-pick span i { font-size: 17px; }
.sp-verified input:checked + span { border-color: var(--safe); background: #f0fdf4; color: #15803d; }
.sp-rejected input:checked + span { border-color: var(--critical); background: #fef2f2; color: #b91c1c; }
.sp-reviewing input:checked + span { border-color: #6366f1; background: #eef2ff; color: #4338ca; }
.sp-pending input:checked + span { border-color: #94a3b8; background: var(--line-2); }
html.dark .status-pick input:checked + span { background: var(--line-2); }
details.adv { margin: 6px 0 14px; } details.adv summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--p); margin-bottom: 10px; }

/* Rules */
.test-res { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tr-score { text-align: center; padding: 18px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.tr-score b { display: block; font-size: 38px; color: var(--c); letter-spacing: -.04em; line-height: 1; } .tr-score small { color: var(--muted); font-weight: 600; font-size: 12px; }
.thresholds { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: 13.5px; } .thresholds li { display: flex; gap: 10px; align-items: center; }
.weight-ctl { display: flex; gap: 10px; align-items: center; } .weight-ctl input[type=range] { flex: 1; accent-color: var(--critical); } .weight-ctl input[type=number] { width: 84px; font-weight: 800; text-align: center; }

/* Connectors */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.conn { margin: 0; display: flex; flex-direction: column; } .conn.off { opacity: .75; }
.conn-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .conn-h > div { flex: 1; min-width: 0; } .conn-h h3 { font-size: 16px; margin: 0; } .conn-h small { color: var(--muted); font-size: 11.5px; word-break: break-all; }
.conn-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; flex: none; }
.conn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; } .conn-stats div { background: var(--line-2); border-radius: 10px; padding: 8px; text-align: center; } .conn-stats b { display: block; color: var(--ink); } .conn-stats small { color: var(--muted); font-size: 11px; }
.conn-f { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.test-form { display: flex; gap: 6px; flex: 1; } .test-form input { padding: 7px 10px; font-size: 12.5px; }
.conn-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line); box-shadow: none; color: var(--muted); min-height: 230px; margin: 0; } .conn-add i { font-size: 26px; color: var(--p); } .conn-add b { color: var(--ink); }
.conn-add:hover { border-color: var(--p); background: var(--p-xl); }

/* Homepage builder */
.builder { display: grid; grid-template-columns: 440px 1fr; gap: 20px; align-items: start; }
.sections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.builder > * { min-width: 0; }
.sec { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 8px; box-shadow: var(--sh); transition: box-shadow .15s, transform .15s, opacity .15s; }
.sec.dragging { opacity: .5; transform: scale(.98); } .sec.over { box-shadow: 0 0 0 2px var(--p); }
.sec.hidden-sec { opacity: .6; } .sec.hidden-sec .sec-main b { text-decoration: line-through; text-decoration-color: var(--muted); }
.sec-handle { cursor: grab; color: var(--muted); padding: 6px; } .sec-handle:active { cursor: grabbing; }
.sec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-l); color: var(--p); flex: none; }
.sec-main { flex: 1; min-width: 0; } .sec-main b { display: block; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sec-main small { color: var(--muted); font-size: 11.5px; }
.sec-main .tag { font-size: 10.5px; padding: 1px 6px; }
.sec-act { display: flex; gap: 2px; }
.sec-add { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; margin-top: 10px; border: 2px dashed var(--line); border-radius: 14px; font-weight: 700; color: var(--muted); }
.sec-add:hover { border-color: var(--p); color: var(--p); background: var(--p-xl); }
.builder-preview { position: sticky; top: 88px; margin: 0; }
.bp-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--line-2); }
.dots { display: flex; gap: 6px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.bp-url { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--muted); }
.bp-dev { display: flex; gap: 2px; } .bp-dev button { border: 0; background: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); } .bp-dev button.active { background: var(--card); color: var(--p); box-shadow: var(--sh); }
.bp-frame { height: calc(100vh - 170px); min-height: 520px; overflow: hidden; display: flex; justify-content: center; background: var(--line-2); }
.bp-frame iframe { width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: top center; background: #fff; flex: none; }
.bp-frame.mobile iframe { width: 390px; height: 100%; transform: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.type-card { display: flex; flex-direction: column; gap: 8px; margin: 0; color: var(--text); transition: .2s; }
.type-card:hover { transform: translateY(-3px); border-color: #bcd0f7; box-shadow: var(--sh-lg); }
.tc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, #60a5fa, var(--p)); }
.type-card b { color: var(--ink); font-size: 15px; } .type-card small { color: var(--muted); }
.bg-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bg-pick input { position: absolute; opacity: 0; } .bg-pick label { text-align: center; cursor: pointer; } .bg-pick small { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }
.bgs { display: block; height: 34px; border-radius: 9px; border: 2px solid var(--line); }
.bgs-default { background: #fff; } .bgs-soft { background: #f6f8fc; } .bgs-gradient { background: linear-gradient(180deg, #dbeafe, #fff); } .bgs-dark { background: #0b1430; } .bgs-pattern { background: #fff radial-gradient(#93c5fd 1px, transparent 1px) 0 0/7px 7px; }
.bg-pick input:checked + .bgs { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-l); }
.icon-in { display: flex; align-items: center; gap: 8px; } .icon-in > i { width: 42px; height: 42px; border-radius: 11px; background: var(--p-l); color: var(--p); display: grid; place-items: center; flex: none; }
.img-prev { max-width: 100%; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); }

/* Repeater builder */
.rb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-bottom: 8px; }
.rb-items { display: grid; gap: 10px; }
.rb-item { border: 1px solid var(--line); border-radius: 14px; background: var(--line-2); overflow: hidden; }
.rb-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; cursor: pointer; user-select: none; }
.rb-head b { flex: 1; color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-head .rb-n { width: 24px; height: 24px; border-radius: 7px; background: var(--card); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.rb-body { padding: 4px 14px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; background: var(--card); border-top: 1px solid var(--line); }
.rb-body .f.wide { grid-column: 1 / -1; }
.rb-item.collapsed .rb-body { display: none; }
.rb-add { margin-top: 10px; }
.rb-ico { display: flex; gap: 8px; align-items: center; } .rb-ico > i { width: 38px; height: 38px; border-radius: 10px; background: var(--p-l); color: var(--p); display: grid; place-items: center; flex: none; }

/* Rich text */
.rte { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.rte-bar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--line-2); flex-wrap: wrap; align-items: center; }
.rte-bar button { border: 0; background: none; min-width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: 12.5px; color: var(--text); }
.rte-bar button:hover, .rte-bar button.on { background: var(--card); color: var(--p); }
.rte-bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; } .rte-bar .spacer { flex: 1; }
.rte-area { min-height: 380px; padding: 18px 22px; outline: none; font-size: 15px; line-height: 1.75; color: var(--ink); }
.rte-area h2 { font-size: 22px; margin: 1em 0 .4em; } .rte-area h3 { font-size: 18px; } .rte-area blockquote { border-left: 4px solid var(--p); margin: 1em 0; padding: 6px 14px; background: var(--p-xl); }
.rte textarea { border: 0; border-radius: 0; min-height: 380px; }

/* Settings */
.settings { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.set-nav { padding: 8px; position: sticky; top: 88px; }
.set-nav a { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 11px; color: var(--text); font-weight: 600; }
.set-nav a i { width: 18px; text-align: center; color: var(--muted); }
.set-nav a:hover { background: var(--hover); } .set-nav a.active { background: var(--p-l); color: var(--p); } .set-nav a.active i { color: var(--p); }
.set-row { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.set-l b { display: block; color: var(--ink); } .set-l small { display: block; color: var(--muted); font-size: 12.5px; } .set-l code { font-size: 11px; margin-top: 6px; display: inline-block; }
.set-foot { padding-top: 18px; display: flex; justify-content: flex-end; }
.color-in { display: flex; gap: 8px; } .color-in input[type=color] { width: 52px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--card); cursor: pointer; }
.swatches { display: flex; gap: 6px; margin-top: 10px; } .swatches button { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.logo-up { display: flex; gap: 12px; align-items: center; margin-top: 10px; } .logo-up img { height: 40px; border-radius: 8px; border: 1px solid var(--line); padding: 4px; background: #fff; }

/* Users */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.user-card { text-align: center; margin: 0; } .user-card.off { opacity: .6; }
.user-card .av { margin: 6px auto 12px; } .user-card h3 { font-size: 16px; margin: 0; } .user-card > p { margin: 2px 0 10px; font-size: 13px; }
.user-card .kv { text-align: left; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line-2); grid-template-columns: 1fr auto; } .user-card .kv dd { text-align: right; }
.uc-act { display: flex; gap: 6px; justify-content: center; }
.role { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.role-admin { background: #fee2e2; color: #b91c1c; } .role-editor { background: #ede9fe; color: #6d28d9; } .role-operator { background: #dcfce7; color: #15803d; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .role-pick input { position: absolute; opacity: 0; }
.role-pick span { display: block; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; height: 100%; } .role-pick b { display: block; color: var(--ink); } .role-pick small { color: var(--muted); font-size: 12px; }
.role-pick input:checked + span { border-color: var(--p); background: var(--p-xl); box-shadow: 0 0 0 3px var(--p-l); }
.profile-head { display: flex; gap: 18px; align-items: center; } .profile-head h2 { margin: 0; } .profile-head p { margin: 2px 0; }

/* ---------- Auth ---------- */
.auth-body { background: var(--card); }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 20% 0%, #3b82f6, transparent), radial-gradient(600px 500px at 100% 100%, #7c3aed, transparent), #0b1430; color: #c7d2fe; display: flex; align-items: center; padding: 60px; }
.auth-art-inner { position: relative; max-width: 520px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 48px; }
.auth-art h2 { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.auth-art p { font-size: 16px; max-width: 440px; }
.auth-float { position: relative; height: 200px; margin-top: 30px; }
.af-card { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); color: #fff; animation: bob 6s ease-in-out infinite; }
.af-card i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.af-card b { display: block; } .af-card small { color: #a5b4fc; }
.af-1 { left: 0; top: 0; } .af-2 { left: 190px; top: 70px; animation-delay: 1.5s; } .af-3 { left: 30px; top: 140px; animation-delay: 3s; }
.af-1 b { color: #fca5a5; font-size: 20px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-form > p { margin-bottom: 28px; }
.fld { display: block; margin-bottom: 16px; } .fld > span { display: block; font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 7px; }
.fld-in { position: relative; } .fld-in > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fld-in input[type] { padding: 13px 44px 13px 44px; border-radius: 13px; font-size: 15px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; }
.auth-form .btn-lg { margin-top: 8px; }
.auth-back { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 22px; color: var(--muted); font-weight: 600; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) { .builder { grid-template-columns: 1fr; } .builder-preview { position: static; } .bp-frame { height: 640px; } }
@media (max-width: 1180px) {
	.g-2-1, .g-1-2, .g-3-1, .g-1-1 { grid-template-columns: 1fr; }
	.form-layout { grid-template-columns: 1fr; } .form-side .sticky { position: static; }
	.hist { grid-template-columns: 1fr; } .hist-list { position: static; max-height: 460px; }
	.score-panel { grid-template-columns: 1fr; } .sp-right { border-left: 0; border-top: 1px solid var(--line); }
	.settings { grid-template-columns: 1fr; } .set-nav { position: static; display: flex; flex-wrap: wrap; } .set-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 960px) {
	.sb { transform: translateX(-100%); box-shadow: var(--sh-lg); } .sb-close { display: block; }
	body.sb-open .sb { transform: none; }
	body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 45; }
	.main { margin-left: 0; } .tb-menu { display: grid; } .tb { padding: 0 16px; } .content { padding: 20px 16px; }
	.tb-user-txt, .tb-search kbd { display: none; }
	.auth { grid-template-columns: 1fr; } .auth-art { display: none; }
	.dash-map { grid-template-columns: 1fr; height: auto; } .dash-map .map { height: 280px; } .dash-prov { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
	.kpis { grid-template-columns: 1fr 1fr; } .kpi { padding: 14px; } .kpi b { font-size: 20px; } .kpi-ic { width: 40px; height: 40px; font-size: 16px; }
	.fg.g2, .fg.g3, .fg.g4, .fg.g-url, .rb-body, .rb-fields { grid-template-columns: 1fr; }
	.ph h1 { font-size: 22px; } .dh-meta { grid-template-columns: 1fr 1fr; } .detail-head { flex-wrap: wrap; }
	.run-row { flex-direction: column; } .role-pick { grid-template-columns: 1fr; } .tb-search { display: none; }
	.test-res { grid-template-columns: 1fr; } .tc-loss { border: 0; padding: 0; text-align: left; }
}

/* Branding (pengaturan logo & favicon) */
.settings > * { min-width: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.brand-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.brand-box h4 { margin: 0; font-size: 14px; } .brand-box small { color: var(--muted); font-size: 12px; }
.brand-prev { height: 110px; border-radius: 12px; display: grid; place-items: center; background: #f6f8fc; border: 1px dashed var(--line); overflow: hidden; }
.brand-prev.dark { background: #0b1430; }
.brand-prev img { max-height: 70px; max-width: 85%; object-fit: contain; }
.brand-prev.fav img { width: 48px; height: 48px; }
.brand-box input[type=file] { font-size: 12.5px; }
.tile-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile-presets button { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); }
.tile-presets button.on { border-color: var(--p); background: var(--p-xl); color: var(--p); }
.login-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; font-weight: 600; margin: -10px 0 20px; } .login-alert.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; } .login-alert i { margin-top: 3px; }
.alert.legacy { align-items: center; } .alert.legacy > div { flex: 1; } .alert.legacy small { margin-top: 4px; opacity: .85; word-break: break-all; }
.alert.info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; } html.dark .alert.info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #bfdbfe; }
.alert.legacy pre.code { white-space: pre-wrap; word-break: break-all; }

/* Kredibel sync */
.k-progress { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.k-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #60a5fa, var(--p)); border-radius: inherit; transition: width .4s; }
.k-log { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow: auto; font-size: 12.5px; font-family: var(--mono); }
.k-log li { padding: 5px 8px; border-bottom: 1px solid var(--line-2); } .k-log li.neg { color: var(--critical); font-weight: 700; } .k-log li.err { color: #b45309; }
.k-check { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--line-2); } .k-check.err { background: #fef2f2; color: #991b1b; font-weight: 600; font-size: 13px; }
.kc-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.hint-box + .card-t.mt { margin-top: 22px; }
