/* Albion Anticheat panel. Dark by default, light on request (data-theme) or by the system. */
:root {
    --bg: #0b0d11;
    --bg-2: #0f1218;
    --panel: #141820;
    --panel-2: #1b2029;
    --panel-3: #232935;
    --line: #262c37;
    --line-2: #323a48;
    --text: #e8eaee;
    --text-2: #c3c8d1;
    --muted: #8a93a3;
    --gold: #d4ad52;
    --gold-2: #e9c877;
    --gold-soft: rgba(212, 173, 82, .12);
    --red: #ef5d58;
    --red-soft: rgba(239, 93, 88, .13);
    --amber: #f0a43c;
    --amber-soft: rgba(240, 164, 60, .13);
    --green: #3fbf7f;
    --green-soft: rgba(63, 191, 127, .13);
    --blue: #5b9cf0;
    --blue-soft: rgba(91, 156, 240, .13);
    --grey-soft: rgba(138, 147, 163, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .18);
    --radius: 12px;
    --radius-sm: 8px;
    --side: 248px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.45;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f4f5f7; --bg-2: #eceef2; --panel: #ffffff; --panel-2: #f6f7f9; --panel-3: #eceff3;
        --line: #e3e6eb; --line-2: #d3d8df; --text: #161a21; --text-2: #3a414d; --muted: #6b7482;
        --gold: #a67c1b; --gold-2: #8a6614; --gold-soft: rgba(166, 124, 27, .1);
        --red: #d23c37; --amber: #c27612; --green: #1f9d5c; --blue: #2f6fd0;
        --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
        color-scheme: light;
    }
}
:root[data-theme="light"] {
    --bg: #f4f5f7; --bg-2: #eceef2; --panel: #ffffff; --panel-2: #f6f7f9; --panel-3: #eceff3;
    --line: #e3e6eb; --line-2: #d3d8df; --text: #161a21; --text-2: #3a414d; --muted: #6b7482;
    --gold: #a67c1b; --gold-2: #8a6614; --gold-soft: rgba(166, 124, 27, .1);
    --red: #d23c37; --amber: #c27612; --green: #1f9d5c; --blue: #2f6fd0;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-weight: 650; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 16px; margin-top: 28px; color: var(--text-2); }
h3 { font-size: 14.5px; }
.loading { padding: 40px; color: var(--muted); }
.mono, code { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Layout ------------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--bg-2) calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px) var(--side), transparent var(--side)); }
nav.side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--bg-2); border-right: 1px solid var(--line);
    padding: 18px 14px; display: flex; flex-direction: column; gap: 1px;
}
nav.side .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; margin: 2px 8px 18px; color: var(--text); }
nav.side .brand svg { width: 26px; height: 26px; }
nav.side .brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
nav.side .group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 10px 6px; }
nav.side a.nav { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 500; }
nav.side a.nav:hover { background: var(--panel-2); color: var(--text); }
nav.side a.nav.on { background: var(--gold-soft); color: var(--gold-2); }
nav.side a.nav.on svg.i { stroke: var(--gold); }
nav.side a.nav .count { margin-left: auto; background: var(--red-soft); color: var(--red); font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 10px; }
nav.side .licence { width: 100%; margin: 0 0 8px; }
nav.side .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
nav.side .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-weight: 700; color: var(--gold); flex: none; overflow: hidden; }
nav.side .avatar img { width: 100%; height: 100%; object-fit: cover; }
nav.side .foot .name { font-weight: 600; font-size: 13.5px; }
nav.side .foot .role { font-size: 12px; color: var(--muted); }
nav.side .foot .tools { margin-left: auto; display: flex; gap: 2px; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); padding: 6px; border-radius: var(--radius-sm); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }

.topbar { display: none; }
main { padding: 28px 36px 60px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* Surfaces ------------------------------------------------------------------ */
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.box > h3:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.box > h3 .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.box.flush { padding: 0; overflow: hidden; }
.box.flush > h3:first-child { padding: 16px 20px 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-2 > .box, .grid-2 > div > .box:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.card.red .ic { background: var(--red-soft); color: var(--red); }
.card.amber .ic { background: var(--amber-soft); color: var(--amber); }
.card.green .ic { background: var(--green-soft); color: var(--green); }
.card.blue .ic { background: var(--blue-soft); color: var(--blue); }
.card .n { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.card .l { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
a.card { color: inherit; }
a.card:hover { border-color: var(--line-2); }

/* Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: transparent; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:hover > td { background: var(--panel-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td:first-child, th:first-child { padding-left: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Controls ------------------------------------------------------------------ */
button, .btn {
    background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 550; display: inline-flex; align-items: center; gap: 6px;
    transition: background .12s, border-color .12s, color .12s;
}
button:hover, .btn:hover { border-color: var(--muted); background: var(--panel-3); color: var(--text); }
button.primary { background: var(--gold); color: #1a1405; border-color: var(--gold); }
button.primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1a1405; }
button.danger { background: var(--red-soft); border-color: rgba(239, 93, 88, .45); color: var(--red); }
button.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
button:disabled { opacity: .5; cursor: default; }
button.small, .btn.small { padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
a.btn { display: inline-flex; }
input, select, textarea {
    background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: 8px 11px; font: inherit; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; padding: 0; }
textarea { width: 100%; min-height: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
label.row { color: var(--text-2); font-size: 14px; }
.search { position: relative; display: inline-flex; align-items: center; }
.search svg.i { position: absolute; left: 10px; color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.search input { padding-left: 34px; min-width: 280px; }

/* Tags ------------------------------------------------------------------ */
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--grey-soft); color: var(--text-2); white-space: nowrap; line-height: 1.5;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.ban, .tag.likely, .tag.revoked, .tag.certain, .tag.denied { background: var(--red-soft); color: var(--red); }
.tag.kick, .tag.suspicious, .tag.suspended, .tag.strong { background: var(--amber-soft); color: var(--amber); }
.tag.block, .tag.watch, .tag.expired { background: var(--blue-soft); color: var(--blue); }
.tag.active, .tag.clear, .tag.online, .tag.allowed, .tag.live { background: var(--green-soft); color: var(--green); }
.tag.x, .tag.offline { background: var(--grey-soft); color: var(--muted); }

/* Feed ------------------------------------------------------------------ */
.feed { max-height: 460px; overflow: auto; margin: -4px 0; }
.feed > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed > div:last-child { border-bottom: none; }
.feed .t { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(63, 191, 127, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, .5); } 70% { box-shadow: 0 0 0 8px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(212, 173, 82, .3); margin-bottom: 16px; color: var(--text-2); }
.error { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid rgba(239, 93, 88, .35); margin-bottom: 16px; color: var(--text); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg.i { width: 30px; height: 30px; margin-bottom: 8px; opacity: .7; }
.empty b { display: block; color: var(--text-2); margin-bottom: 4px; }

/* Charts ------------------------------------------------------------------ */
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.meter { height: 8px; border-radius: 6px; background: var(--panel-3); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.verdicts .v { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.verdicts .v:last-of-type { border-bottom: none; }
.verdicts .v .meter { grid-column: 1 / -1; }
.verdicts .v .tag { justify-self: start; }
.verdicts .v b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Profile header (player record, detection) ---------------------------------- */
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile .big-avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; }
.profile .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.profile .facts div { text-align: right; }
.profile .facts b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.profile .facts span { font-size: 12px; color: var(--muted); }

/* Sign-in ------------------------------------------------------------------ */
.center { max-width: 420px; margin: 12vh auto; text-align: center; padding: 0 16px; }
.center .box { text-align: left; }
.code-input { font-size: 24px; letter-spacing: 6px; text-align: center; width: 100%; }
.secret { font-family: ui-monospace, monospace; font-size: 16px; word-break: break-all; background: var(--bg); padding: 10px; border-radius: var(--radius-sm); }

/* Gallery ------------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.gallery figure:hover { transform: translateY(-2px); border-color: var(--line-2); }
.gallery img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; cursor: zoom-in; }
.gallery figcaption { padding: 10px 12px; font-size: 12.5px; display: grid; gap: 3px; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 7, 10, .92); display: flex; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; backdrop-filter: blur(4px); }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: var(--radius-sm); }

/* Tabs ------------------------------------------------------------------ */
.tabs { display: inline-flex; gap: 2px; margin-bottom: 18px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; color: var(--muted); border-radius: 7px; font-weight: 550; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); background: var(--panel-3); }

td.row { display: table-cell; white-space: nowrap; }
td.row button { margin-right: 6px; }
tr.fp td { opacity: .55; }
tr.fp td:last-child { opacity: 1; }

/* Incident replay */
canvas.replay { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: #0b0e12; touch-action: none; }
.replay-box input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--gold); }

/* Chips for lists (models, words) */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; }
.chip-x { background: none; border: none; color: var(--muted); padding: 0 4px; font-size: 14px; line-height: 1; cursor: pointer; }
.chip-x:hover { color: var(--red); background: none; }

/* Phones and small tablets ---------------------------------------------------- */
@media (max-width: 900px) {
    .layout { grid-template-columns: minmax(0, 1fr); background: none; }
    .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-weight: 700; }
    .topbar svg.brand-mark { width: 22px; height: 22px; }
    .topbar .icon-btn { margin-left: auto; }
    nav.side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
    body.nav-open nav.side { transform: none; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }
    main { padding: 18px 16px 40px; }
    .grid-2 { grid-template-columns: 1fr; }
    .search input { min-width: 0; width: 100%; }
    .profile .facts { margin-left: 0; }
    .profile .facts div { text-align: left; }
    table { font-size: 13px; }
    .box { padding: 16px; }
    .table-wrap { margin: 0 -16px; padding: 0 16px; }
}

.mini-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.signin-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.signin-brand svg { width: 54px; height: 54px; filter: drop-shadow(0 6px 18px rgba(212, 173, 82, .25)); }
.signin-brand h1 { margin: 0; }
.center .box { padding: 24px; }
.center .discord { width: 100%; justify-content: center; background: #5865f2; border-color: #5865f2; color: #fff; padding: 11px 14px; }
.center .discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

/* Pickers: type to search a list, pick one or many, or add your own */
.field { margin: 14px 0 4px; }
.field > label, .field-head label { margin: 0 0 5px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-help { margin: -2px 0 6px; }
label.check { margin: 12px 0 4px; }
button.link { background: none; border: none; padding: 0; color: var(--gold); cursor: pointer; font-size: 12.5px; }
button.link:hover { background: none; text-decoration: underline; color: var(--gold-2); }
.picker { position: relative; }
.picker-field { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 40px; padding: 5px 34px 5px 6px; background: var(--bg);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: text; position: relative; }
.picker.open .picker-field, .picker-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.picker-field.disabled { opacity: .65; cursor: default; }
.picker-chips { display: contents; }
.picker-input { flex: 1 1 140px; min-width: 120px; border: none !important; background: transparent !important; box-shadow: none !important; padding: 5px 4px !important; }
.picker.single .picker-input { min-width: 40px; }
.picker.single.open .picker-single { opacity: .45; }
.picker-single { padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 50px); }
.picker-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; transition: transform .15s; }
.picker.open .picker-caret { transform: translateY(-50%) rotate(180deg); }
.picker-caret svg.i { width: 16px; height: 16px; }
.picker .chip { background: var(--panel-3); font-size: 12.5px; padding: 3px 4px 3px 10px; max-width: 100%; }
.picker .chip.custom { border-style: dashed; }
.chip-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); }
.picker-menu { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; background: var(--panel);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: 4px; }
.picker.open .picker-menu { display: block; }
.picker-group { position: sticky; top: -4px; background: var(--panel); padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.picker-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.picker-opt.active { background: var(--panel-3); }
.picker-opt.on .picker-val, .picker-opt.on > span:nth-child(2) { color: var(--gold); }
.picker-tick { width: 16px; flex: none; display: grid; color: var(--gold); }
.picker-tick svg.i, .picker-plus svg.i { width: 16px; height: 16px; }
.picker-plus { color: var(--gold); display: grid; }
.picker-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-meta { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-grp { font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.picker-meta + .picker-grp { margin-left: 6px; }
.picker-none { padding: 10px; color: var(--muted); font-size: 13px; }
.map-rows { display: grid; gap: 8px; margin: 4px 0 8px; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px; align-items: center; }
.map-row.wide { grid-template-columns: minmax(0, 1fr) 120px auto; }
.with-unit { position: relative; }
.with-unit input { width: 100%; padding-right: 76px; }
.with-unit .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12.5px; pointer-events: none; }
button.small svg.i { width: 14px; height: 14px; vertical-align: -2px; }
tr[hidden] { display: none; }
@media (max-width: 900px) {
    .map-row, .map-row.wide { grid-template-columns: minmax(0, 1fr) auto; }
    .map-row > :nth-child(2) { grid-column: 1; }
}
[hidden] { display: none !important; }
.picker .chip.more { background: var(--gold-soft); border-color: transparent; color: var(--gold); padding: 3px 10px; cursor: pointer; font-weight: 550; }
.field-head label { color: var(--text-2); font-size: 13px; }
.field-head label .muted { font-weight: 400; }
label.check { color: var(--text-2); font-size: 14px; }
.picker-opt > * { min-width: 0; }
.picker-val { flex: 0 0 auto; max-width: 55%; }
.picker-meta { flex: 1 1 auto; text-align: right; }
.picker-tick, .picker-plus, .picker-grp { flex: none; }
.menu-right .picker-menu { left: auto; right: 0; width: min(520px, 90vw); }

/* Rule health: the attention list */
.attn-list { display: grid; gap: 10px; }
.attn { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--panel-2); display: grid; gap: 6px; }
.attn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attn-num { margin-left: auto; }
.attn-advice { color: var(--text); font-size: 14px; }
.attn .row { gap: 12px; align-items: center; }
