/* admin pages + sign-in pages (Design v3) */

/* ---------- Page head ---------- */
.admin-page { padding: 6px 24px 40px; }
.ax-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.ax-head h1 { font-size: 28px; letter-spacing: -.015em; }
.ax-head .sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.ax-head .spacer { flex: 1; }
.ax-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ax-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.ax-back .i { width: 15px; height: 15px; }
.ax-back:hover { color: var(--text); }
.ax-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--text-2); font-size: 13px; }

/* Search pill */
.ax-search { position: relative; display: flex; align-items: center; min-width: 0; }
.ax-search .i { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.ax-search .input { width: 300px; max-width: 100%; padding-left: 40px; border-radius: 999px; background: var(--surface); }
.ax-search.mono .input { font-family: var(--mono); font-size: 13px; }

/* Filter pills */
.ax-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--hairline-2); color: var(--text-2); font-size: 12.5px; font-weight: 650; background: transparent; }
.ax-pill:hover { color: var(--text); background: var(--surface-hi); }
.ax-pill.on { background: var(--surface-3); color: var(--text); border-color: transparent; }

/* ---------- Stat cards ---------- */
.ax-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ax-stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; color: inherit; }
a.ax-stat:hover { border-color: var(--hairline-2); }
.ax-stat-top { display: flex; align-items: center; gap: 12px; }
.ax-n { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-n small { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-left: 5px; letter-spacing: 0; }
.ax-n.crit { color: var(--critical); }
.ax-stat-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ax-stat-l { color: var(--text-2); font-weight: 650; font-size: 13px; }
.ax-stat-s { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.ax-spark { width: 110px; height: 38px; flex: none; display: block; }

/* ---------- Grids ---------- */
.ax-g2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.ax-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.ax-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ax-half { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

/* Card header with icon */
.ax-ch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px 14px; border-bottom: 1px solid var(--hairline); }
.ax-ch h3 { font-size: 15.5px; margin: 0; }
.ax-ch .spacer { flex: 1; }
.ax-ch .sub { color: var(--text-3); font-size: 12.5px; }
.ax-cb { padding: 18px 22px 22px; }

/* Chart */
.ax-chart { position: relative; }
.ax-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ax-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); margin-top: -12px; background: #141418; border: 1px solid var(--hairline-2); border-radius: 10px; padding: 7px 11px; font-size: 12px; white-space: nowrap; }
.ax-tip span { display: block; color: var(--text-2); font-size: 11px; }
.ax-tip b { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--text); }
.ax-legend-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.ax-legend-row div { display: flex; flex-direction: column; gap: 2px; }
.ax-legend-row span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.ax-legend-row b { font-family: var(--display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }

/* Lists */
.ax-list { display: flex; flex-direction: column; }
.ax-li { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--hairline); color: inherit; min-width: 0; }
.ax-li:first-child { border-top: 0; }
a.ax-li:hover { background: rgba(255, 255, 255, .02); }
.ax-li .t { flex: 1; min-width: 0; }
.ax-li .t b { display: block; font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-li .t small { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-li .v { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.ax-li .v.crit { color: var(--critical); }
.ax-li .v.warn { color: var(--warning); }
.ax-li .i.go { color: var(--text-3); width: 16px; height: 16px; }
.ax-li time, .ax-li .when { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.ax-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 12.5px; background: var(--surface-3); border: 1px solid var(--hairline-2); flex: none; color: var(--text); }
.ax-av.lg { width: 52px; height: 52px; font-size: 19px; }

/* Tables inside cards */
.ax-table { overflow-x: auto; }
.ax-table table.data { min-width: 640px; }
.ax-table table.data th:first-child, .ax-table table.data td:first-child { padding-left: 22px; }
.ax-table table.data th:last-child, .ax-table table.data td:last-child { padding-right: 22px; }
.ax-table table.data tr:last-child td { border-bottom: 0; }
.ax-table td b { font-weight: 650; }
.ax-table a.lk { color: var(--text); }
.ax-table a.lk:hover { color: var(--accent-2); }
.ax-cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax-cell-user .ax-av { width: 28px; height: 28px; font-size: 11.5px; }
.ax-tags { display: inline-flex; gap: 5px; margin-left: 6px; vertical-align: middle; }
.ax-detail-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.ax-empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.ax-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; font-family: var(--display); font-weight: 600; }
.ax-foot { padding: 12px 22px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 12.5px; }

/* Key/value */
.ax-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px 16px; margin: 0; font-size: 13.5px; }
.ax-kv dt { color: var(--text-3); font-weight: 600; }
.ax-kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Actions card */
.ax-actions-list { display: flex; flex-direction: column; gap: 8px; }
.ax-actions-list .btn { width: 100%; justify-content: center; }
.ax-grant { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.ax-sect { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 10px; }
.ax-sect:first-child { margin-top: 0; }
.btn.danger { border-color: var(--critical-br); }

/* Review queue */
.ax-flag { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 12px; }
.ax-flag-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.ax-flag-top .spacer { flex: 1; }
.ax-flag-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); flex: none; }
.ax-flag-ico.high { background: var(--critical-bg); color: var(--critical); }
.ax-flag-ico .i { width: 17px; height: 17px; }
.ax-flag-who b { display: block; font-weight: 700; }
.ax-flag-who small { color: var(--text-3); font-size: 12px; }
.ax-flag-detail { margin: 0 20px 14px; padding: 11px 14px; border-radius: 10px; background: #08080a; border: 1px solid var(--hairline); font-family: var(--mono); font-size: 12px; color: var(--text-2); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.ax-flag-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-top: 1px solid var(--hairline); }
.ax-flag-form .input { flex: 1; min-width: 200px; }
.ax-flag-res { padding: 12px 20px; border-top: 1px solid var(--hairline); color: var(--text-2); font-size: 13px; }

/* Hardware */
.ax-hw { margin-bottom: 14px; }
.ax-fp { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--hairline); }
.ax-fp code { font-size: 12px; color: var(--text-2); word-break: break-all; flex: 1; min-width: 0; }
.ax-hw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ax-hw-cols > div { padding: 16px 22px; min-width: 0; }
.ax-hw-cols > div + div { border-left: 1px solid var(--hairline); }
.ax-hw-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; min-width: 0; }
.ax-hw-row a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Settings */
.ax-set { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.ax-set-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 3px; }
.ax-set-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.ax-set-nav a .i { width: 16px; height: 16px; color: var(--text-3); }
.ax-set-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.ax-set-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ax-set-card { scroll-margin-top: 20px; }
.ax-set-card .ax-cb p.lede2 { color: var(--text-2); font-size: 13px; margin: -4px 0 16px; }
.ax-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ax-row21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.ax-set-state { margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); vertical-align: 1px; }
.ax-set-state.on { background: var(--ok-bg); color: var(--ok); }
.ax-code { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #08080a; border: 1px solid var(--hairline); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.ax-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.ax-save .muted { font-size: 12.5px; }
.ax-switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--hairline); cursor: pointer; }
.ax-switch input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ax-switch b { display: block; font-size: 13.5px; }
.ax-switch small { color: var(--text-3); font-size: 12px; }
.ax-mail { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ax-mail .t { flex: 1; min-width: 200px; }
.ax-mail p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }

/* ---------- Sign-in pages ---------- */
.auth-page { min-height: 100vh; justify-content: center; padding: 48px 16px; gap: 0; }
.au-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 15px; margin-bottom: 26px; color: var(--text); }
.au-mark .dot { width: 20px; height: 20px; border-radius: 6px; background: #fff; flex: none; }
.auth-card { max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.auth-card > .card { width: 100%; }
.auth-card .card-b { padding: 30px; }
.auth-head { margin-bottom: 0; }
.au-title { text-align: center; margin-bottom: 22px; }
.au-title h1 { font-size: 22px; letter-spacing: -.01em; }
.au-title p { color: var(--text-2); font-size: 13.5px; margin: 8px 0 0; }
.auth-card label.field > span { color: var(--text-2); font-weight: 650; font-size: 12.5px; }
.auth-card .btn.lg { padding: 13px 22px; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.au-row a { color: var(--text-2); font-size: 13px; font-weight: 600; }
.au-row a:hover { color: var(--text); }
.au-alt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.auth-foot { margin-top: 20px; color: var(--text-2); font-size: 13px; }
.auth-foot a, .auth-foot button { color: var(--text); font-weight: 650; }
.au-links { display: flex; gap: 18px; justify-content: center; margin-top: 28px; font-size: 12px; color: var(--text-3); }
.au-links a { color: var(--text-3); }
.au-links a:hover { color: var(--text-2); }
.au-code { font-family: var(--mono) !important; font-size: 20px !important; letter-spacing: .3em; text-align: center; padding: 14px !important; }
.au-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--surface-hi); border: 1px solid var(--hairline-2); color: var(--text); }
.au-ico .i { width: 22px; height: 22px; }
.au-ico.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.au-ico.bad { background: var(--critical-bg); border-color: transparent; color: var(--critical); }
.au-mail { display: block; color: var(--text); font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }

/* Error page */
.er-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.er-card { width: 100%; max-width: 480px; text-align: center; padding: 36px 30px; }
.er-card h1 { font-size: 22px; margin-bottom: 10px; }
.er-card p { color: var(--text-2); margin: 0 0 22px; }

@media (max-width: 1180px) {
  .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-g2, .ax-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ax-set { grid-template-columns: minmax(0, 1fr); }
  .ax-set-nav { position: static; flex-direction: row; overflow-x: auto; }
  .ax-set-nav a { white-space: nowrap; }
  .ax-half, .ax-hw-cols { grid-template-columns: minmax(0, 1fr); }
  .ax-hw-cols > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .admin-page { padding: 4px 8px 32px; }
  .ax-stats { grid-template-columns: minmax(0, 1fr); }
  .ax-head h1 { font-size: 24px; }
  .ax-search, .ax-search .input { width: 100%; }
  .ax-head form { width: 100%; }
  .ax-row2, .ax-row21 { grid-template-columns: minmax(0, 1fr); }
  .auth-card .card-b { padding: 22px; }
}

/* ---------- Dashboard extras ---------- */
.ax-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.ax-g2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax-delta { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.ax-delta.up { color: var(--ok); } .ax-delta.down { color: var(--critical); }
.ax-stack { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; margin: 4px 0 18px; }
.ax-stack span { min-width: 4px; }
.ax-stack .ok, .ax-legend i.ok { background: var(--ok); }
.ax-stack .warn, .ax-legend i.warn { background: var(--warning); }
.ax-stack .crit, .ax-legend i.crit { background: var(--critical); }
.ax-stack .mute, .ax-legend i.mute { background: var(--text-4); }
.ax-legend { display: grid; gap: 11px; }
.ax-legend div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; }
.ax-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ax-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ax-legend em { font-style: normal; color: var(--text-3); width: 42px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ax-bars { display: grid; gap: 12px; }
.ax-bar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 34px; gap: 12px; align-items: center; font-size: 13px; }
.ax-bar .mono { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-bar .track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ax-bar .track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ax-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.ax-none { color: var(--text-3); font-size: 13px; }
.ax-none.pad { padding: 18px 22px; }
@media (max-width: 1180px) { .ax-g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .ax-g2.even { grid-template-columns: minmax(0, 1fr); } }
.ax-g2.fill { align-items: stretch; }
.ax-g2.fill > .ax-col > .card:last-child { flex: 1; }
.ax-g3 { align-items: stretch; }
.ax-wide { margin-bottom: 16px; }
.ax-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
@media (max-width: 1280px) { .ax-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ax-g4 { grid-template-columns: minmax(0, 1fr); } }
.ax-set-nav a.on { color: var(--text); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.ax-set-nav a.on .i { color: #fff; }

/* ---------- Known cheats ---------- */
.ax-kc-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ax-kc-av { color: var(--critical); background: var(--critical-bg); border-color: transparent; }
.ax-kc-av .i { width: 15px; height: 15px; }
.ax-kc-note { display: block; color: var(--text-3); font-size: 12px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-kc-hint { color: var(--text-3); font-size: 12.5px; margin: 12px 0 0; }
.ax-kc-p { color: var(--text-2); font-size: 13px; margin: 0; }
.ax-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px; border: 1.5px dashed var(--hairline-2); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.ax-drop:hover, .ax-drop.over { border-color: var(--accent-2); background: var(--accent-bg); }
.ax-drop .i { width: 24px; height: 24px; color: var(--text-2); margin-bottom: 4px; }
.ax-drop b { font-weight: 650; font-size: 14px; }
.ax-drop small { color: var(--text-3); font-size: 12.5px; max-width: 46ch; }
.ax-kc-opts { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.ax-kc-flag { padding-bottom: 11px; }
.ax-up-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ax-up-list:empty { display: none; }
.ax-up { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: #08080a; border: 1px solid var(--hairline); font-size: 13px; }
.ax-up-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ax-up-s { color: var(--text-2); font-size: 12.5px; }
.ax-up.ok .ax-up-s { color: var(--ok); }
.ax-up.warn .ax-up-s { color: var(--warning); }
.ax-up.err .ax-up-s { color: var(--critical); }
.ax-up-s a { color: var(--text); text-decoration: underline; }
.ax-up-done { color: var(--text-3); font-size: 12.5px; padding: 2px 4px; }

.ax-smp { border-top: 1px solid var(--hairline); }
.ax-smp:first-of-type { border-top: 0; }
.ax-smp > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 22px; cursor: pointer; }
.ax-smp > summary::-webkit-details-marker { display: none; }
.ax-smp > summary:hover { background: rgba(255, 255, 255, .02); }
.ax-smp-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--critical-bg); color: var(--critical); }
.ax-smp-ico .i { width: 16px; height: 16px; }
.ax-smp.off .ax-smp-ico { background: var(--surface-3); color: var(--text-3); }
.ax-smp-t { flex: 1; min-width: 0; }
.ax-smp-t b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-smp-t small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-smp-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ax-smp-chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .15s; flex: none; }
.ax-smp[open] .ax-smp-chev { transform: rotate(180deg); }
.ax-smp-body { padding: 4px 22px 20px 68px; }
.ax-smp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ax-kc-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 13px; }
.ax-kc-kv dt { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ax-kc-kv dd { margin: 0; overflow-wrap: anywhere; }
.ax-kc-kv dd.mono { font-size: 12px; }
.ax-kc-warn { color: var(--warning); font-size: 12.5px; margin: 6px 0 0; font-family: var(--sans); }
.ax-kc-sig { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.ax-kc-sig .ax-kc-kv { flex: 1; min-width: 260px; }
.ax-kc-secs { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-kc-sec { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--hairline); font-size: 12px; color: var(--text-2); }
.ax-kc-sec b { color: var(--text); font-size: 11.5px; }
.ax-kc-sec.hot { border-color: var(--warning-br); color: var(--warning); }
.ax-smp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.ax-smp-actions .spacer { flex: 1; }
.ax-kc-noteform { display: flex; gap: 8px; margin: 0; flex: 1; min-width: 240px; }
.ax-kc-noteform .input { padding: 7px 12px; font-size: 13px; }

.ax-kc-linehead { border-bottom: 1px solid var(--hairline); }
.ax-kc-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ax-kc-filter .ax-search .input { width: 240px; }
.ax-lines { max-height: 560px; overflow-y: auto; padding: 6px 10px; }
.ax-line { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; cursor: pointer; min-width: 0; }
.ax-line:hover { background: rgba(255, 255, 255, .025); }
.ax-line input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
.ax-line code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-line.every code { color: #fff; }
.ax-line.busy { opacity: .5; }
.ax-line.err { background: var(--critical-bg); }
.ax-line-k { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ax-line-k.k-discord, .ax-line-k.k-url, .ax-line-k.k-domain { color: var(--accent-2); background: var(--accent-bg); }
.ax-line-k.k-cheat { color: var(--critical); background: var(--critical-bg); }
.ax-line-k.k-mutex, .ax-line-k.k-file, .ax-line-k.k-path { color: var(--warning); background: var(--warning-bg); }
.ax-line-n { font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-line-n.every { color: var(--accent-2); font-weight: 700; }

.ax-kc-val code { font-size: 12px; overflow-wrap: anywhere; }
.ax-kc-dim td { opacity: .55; }
.ax-kc-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ax-kc-acts form { margin: 0; }
.ax-kc-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--hairline); }
.ax-kc-add select.input { width: auto; }
.ax-kc-add input.input { flex: 1; min-width: 200px; }
.ax-kc-past { display: flex; align-items: center; gap: 14px; }
.ax-kc-past b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ax-kc-past b.hit { color: var(--critical); }
.ax-kc-past span { color: var(--text-2); font-size: 13px; }
.ax-kc-rule { margin: 0; padding: 12px 14px; border-radius: 10px; background: #08080a; border: 1px solid var(--hairline); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--text-2); max-height: 320px; overflow: auto; white-space: pre; }

@media (max-width: 1180px) { .ax-kc-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ax-smp-grid { grid-template-columns: minmax(0, 1fr); }
  .ax-smp-body { padding-left: 22px; }
  .ax-smp > summary { flex-wrap: wrap; }
  .ax-line-k { display: none; }
}
.ax-kc-top { grid-template-columns: minmax(0, 1fr); }
.ax-kc-newform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 12px; align-items: end; }
.ax-kc-newform .field { margin: 0; }
.ax-kc-newform .btn { height: 44px; }
.ax-nowrap { white-space: nowrap; }
#terms .ax-table table.data { min-width: 560px; }
.ax-kc-val small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 3px; }
.ax-kc-acts { flex-wrap: nowrap; }
.ax-kc-acts .btn.sm { padding: 5px 11px; font-size: 12px; }
@media (max-width: 760px) { .ax-kc-newform { grid-template-columns: minmax(0, 1fr); } }
.ax-kc-det { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-kc-det > span:first-child { overflow-wrap: anywhere; }
.ax-kc-flagform { margin: 0; }
.ax-kc-flagform .btn { padding: 3px 10px; font-size: 11.5px; }
.ax-kc-why { color: var(--text-3); font-size: 11.5px; border-bottom: 1px dotted var(--text-4); cursor: help; }
.ax-kc-field { white-space: nowrap; }
tr.ax-kc-shared { background: rgba(122, 169, 255, .05); }
.ax-hwt td { vertical-align: top; }
.ax-hw-sub { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
.ax-hw-ids { display: flex; flex-wrap: wrap; gap: 4px 8px; max-width: 320px; }
.ax-hw-ids span { display: inline-flex; gap: 4px; align-items: baseline; font-size: 11.5px; }
.ax-hw-ids em { font-style: normal; color: var(--text-3); }
.ax-hw-ids code { color: var(--text-2); font-size: 11.5px; }
.ax-nw { white-space: nowrap; }
