/* ============================================================
   Polish pass. Loaded last. Calmer, more consistent pieces:
   - one input style, one code-chip style, normal-case labels
   - no floating glow dots behind pages
   - dashboard: neutral surfaces, Kick green as the only accent,
     red kept for danger actions, two button styles
   ============================================================ */

/* ---------- site wide ---------- */
#orbs { display: none; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; letter-spacing: 0;
  color: var(--pink-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 1px 6px;
}

.lock-note { font-size: 12.5px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--fg); }

.io-card { border-radius: 14px; }
.io-card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
.io-card select, .io-card textarea {
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: var(--fg);
}
.io-card input:focus-visible, .io-card select:focus-visible, .io-card textarea:focus-visible {
  outline: none; border-color: var(--pink-2); box-shadow: 0 0 0 3px rgba(255,79,138,.18);
}

/* ---------- dashboard ---------- */
body.dash-mode {
  --d-bg: #0a090f; --d-panel: #121019; --d-panel-2: #18151f; --d-line: rgba(255,255,255,.07); --d-line-2: rgba(255,255,255,.13);
  --d-accent: #53fc18; --d-accent-soft: rgba(83,252,24,.1); --d-danger: #f2555a;
  background: var(--d-bg);
}
.dash-mode .topbar { background: rgba(10,9,15,.85); border-bottom-color: var(--d-line); }

/* surfaces */
.dash-mode .dcard, .dash-mode .staff-main .io-card, .dash-mode .tx-sum { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 14px; }
.dash-mode .dcard-head { border-bottom-color: var(--d-line); }
.dash-mode .dcard-head h3 { font-size: 14px; font-weight: 700; }
.dash-mode .dcard-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--d-panel-2); color: var(--d-accent); }
.dash-mode .dcard-ico .ico { width: 15px; height: 15px; }
.dash-mode .drow, .dash-mode .tx-table td, .dash-mode .ban-row { border-top-color: var(--d-line); }
.dash-mode .tx-table th { background: var(--d-panel-2); }
.dash-mode .dchip { background: rgba(255,255,255,.06); color: var(--muted); font-weight: 700; }
.dash-mode .dchip.on { background: var(--d-accent-soft); color: var(--d-accent); }
.dash-mode .dlabel, .dash-mode .dstats span, .dash-mode .tx-table th { letter-spacing: .06em; }
.dash-mode .dash-topbar { background: var(--d-panel); border-color: var(--d-line); }
.dash-mode .dash-topbar-label { color: var(--muted); letter-spacing: 0; font-size: 12.5px; font-weight: 700; }
.dash-mode .dash-status { letter-spacing: .04em; }
.dash-mode .tx-why { background: rgba(255,255,255,.06); color: var(--fg); font-weight: 600; }
.dash-mode .tx-neg, .dash-mode .dx { color: var(--d-danger); }

/* section bar */
.dash-mode .hub-top { background: rgba(10,9,15,.9); border-bottom-color: var(--d-line); }
.dash-mode .hub-cats button { background: transparent; border-color: transparent; font-weight: 700; padding: 8px 14px; }
.dash-mode .hub-cats button .ico { width: 17px; height: 17px; }
.dash-mode .hub-cats button:hover { background: var(--d-panel); transform: none; }
.dash-mode .hub-cats button.on { background: var(--d-accent-soft); border-color: rgba(83,252,24,.3); color: var(--d-accent); box-shadow: none; }
.dash-mode .hub-links a { background: transparent; border-color: var(--d-line); color: var(--muted); }
.dash-mode .hub-links a:hover { color: var(--fg); border-color: var(--d-line-2); }
.dash-mode .hub-links .ico { width: 16px; height: 16px; }
.dash-mode .hub-subs { border-bottom: 1px solid var(--d-line); padding-bottom: 0; gap: 2px; }
.dash-mode .hub-subs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px 10px; font-weight: 600; }
.dash-mode .hub-subs button:hover { background: none; color: var(--fg); }
.dash-mode .hub-subs button.on { background: none; color: var(--fg); border-bottom-color: var(--d-accent); }

/* inputs */
.dash-mode .staff-main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
.dash-mode .staff-main select, .dash-mode .staff-main textarea {
  background: var(--d-bg); border: 1px solid var(--d-line-2); border-radius: 10px; color: var(--fg); padding: 8px 12px; font-size: 13.5px;
}
.dash-mode .staff-main input:focus-visible, .dash-mode .staff-main select:focus-visible, .dash-mode .staff-main textarea:focus-visible {
  outline: none; border-color: var(--d-accent); box-shadow: 0 0 0 3px rgba(83,252,24,.15);
}
.dash-mode .tx-bar { background: var(--d-panel); border-color: var(--d-line); }
.dash-mode .seg { border-color: var(--d-line-2); }
.dash-mode .seg button + button { border-left-color: var(--d-line-2); }
.dash-mode .seg button.on { background: var(--d-accent-soft); color: var(--d-accent); }

/* buttons: filled = main action, outlined = everything else, red = danger */
.dash-mode .staff-main .btn, .dash-mode .staff-main .kc-btn {
  font: 700 12.5px var(--f-body); letter-spacing: 0; text-transform: none; border-radius: 9px; padding: 7px 14px; box-shadow: none;
}
.dash-mode .staff-main .btn:not(.ghost):not(.red), .dash-mode .staff-main .kc-btn-kick { background: var(--d-accent); border: 1px solid var(--d-accent); color: #08130a; }
.dash-mode .staff-main .btn:not(.ghost):not(.red):hover, .dash-mode .staff-main .kc-btn-kick:hover { filter: brightness(1.08); box-shadow: none; }
.dash-mode .staff-main .btn.ghost { background: transparent; border: 1px solid var(--d-line-2); color: var(--fg); }
.dash-mode .staff-main .btn.ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); color: var(--fg); }
.dash-mode .staff-main .btn.red { background: transparent; border: 1px solid rgba(242,85,90,.45); color: var(--d-danger); }
.dash-mode .staff-main .btn.red:hover { background: rgba(242,85,90,.1); box-shadow: none; }
.dash-mode .staff-main .btn::before { display: none; }
.dash-mode .staff-main .toggle-btn {
  font: 700 12px var(--f-body); letter-spacing: 0; text-shadow: none; border-radius: 9px; padding: 7px 12px;
  background: transparent; border: 1px solid var(--d-line-2); color: var(--muted);
}
.dash-mode .staff-main .toggle-btn.on { border-color: rgba(83,252,24,.4); color: var(--d-accent); background: var(--d-accent-soft); text-shadow: none; }
.dash-mode .staff-main .toggle-btn.off { border-color: rgba(242,85,90,.4); color: var(--d-danger); background: rgba(242,85,90,.08); text-shadow: none; }
.dash-mode .staff-main .toggle-btn.off::after { display: none; }

/* quick controls row: compact dropdowns instead of full-width ones */
.dash-mode .dash-grid-3 .io-card select { flex: 0 1 200px; min-width: 140px; }

/* headings inside older dashboard tabs */
.dash-mode .staff-main h2, .dash-mode .staff-main h3 { letter-spacing: 0; }

code { white-space: nowrap; }
.dash-mode .staff-main input[type=file] { color: var(--muted); font-size: 12.5px; background: none; border: 0; padding: 0; }
.dash-mode .staff-main input[type=file]::file-selector-button {
  margin-right: 10px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--d-line-2); background: transparent; color: var(--fg); font: 700 12.5px var(--f-body); cursor: pointer;
}
.dash-mode .staff-main a.btn { justify-content: center; text-align: center; text-decoration: none; }
.dash-mode .staff-main table th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dash-mode .staff-main table tr { border-top-color: var(--d-line) !important; }
