:root {
  --bg-main: #020406;
  --bg-panel: rgba(5, 8, 11, 0.76);
  --bg-panel-solid: #05080b;
  --bg-control: rgba(0, 0, 0, 0.58);
  --border-subtle: rgba(255, 255, 255, 0.11);
  --border-medium: rgba(255, 255, 255, 0.2);
  --text-main: #f2f2f2;
  --text-muted: #a8a8a8;
  --text-dim: #72777c;
  --ok: #70d85f;
  --bad: #ff5f57;
  --warn: #fb923c;
  --surface-line-height: 1.45;
  --surface-glow: transparent;
  --status-dot-color: var(--accent);
  --status-dot-shadow: var(--accent-soft);
  --status-copy-color: var(--text-muted);
  --surface-button-gap: 8px;
  --surface-button-min-height: 32px;
  --surface-button-padding: 5px 12px;
  --surface-button-radius: 4px;
  --surface-button-font-size: 13px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family:
    "IBM Plex Sans Condensed",
    "Roboto Condensed",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}

body {
  line-height: var(--surface-line-height);
  background: radial-gradient(ellipse at 50% -18%, var(--surface-glow), transparent 43%), var(--bg-main);
}

::selection {
  background: var(--accent);
  color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

.hidden,
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
dl,
dd,
dt {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.85;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

:is(.arc-search, .plg-search) input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
}

:is(.arc-search, .plg-search) input::placeholder {
  color: #8c8c8c;
  opacity: 1;
}

:is(.arc-search, .plg-search) kbd {
  min-width: 19px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #b6b6b6;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 2px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
}

.foot-mark {
  color: var(--text-muted);
}

:is(.account-shell, .agg-shell) :is(.btn, .page-btn),
html[data-tool-id="archive-hub"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--surface-button-gap);
  min-height: var(--surface-button-min-height);
  padding: var(--surface-button-padding);
  border: 1px solid var(--border-medium);
  border-radius: var(--surface-button-radius);
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.22);
  font-size: var(--surface-button-font-size);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

:is(.account-shell, .agg-shell) :is(.btn, .page-btn):hover,
html[data-tool-id="archive-hub"] .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

:is(.account-shell, .agg-shell) :is(.btn-primary, .btn-coral),
html[data-tool-id="archive-hub"] .btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%), rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

:is(.account-shell, .agg-shell) :is(.btn-primary, .btn-coral):hover,
html[data-tool-id="archive-hub"] .btn-primary:hover {
  color: #ffffff;
  background: var(--accent-soft);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

:is(.agg-topbar, .arc-topbar, .con-topbar, .cotd-topbar, .plg-topbar, .tls-topbar, .trk-topbar, .val-topbar) {
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 4, 6, 0.88);
  backdrop-filter: blur(10px);
}

:is(.agg-topbar, .con-topbar, .plg-topbar, .tls-topbar, .trk-topbar, .val-topbar) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.arc-topbar {
  display: flex;
  justify-content: space-between;
}

.cotd-topbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

:is(.agg-brand, .arc-brand, .con-brand, .cotd-brand, .plg-brand, .tls-brand, .trk-brand, .val-brand) {
  display: grid;
  place-items: center;
  width: 38px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  opacity: 0.72;
}

:is(.agg-brand, .arc-brand, .con-brand, .cotd-brand, .plg-brand, .tls-brand, .trk-brand, .val-brand):hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.035);
  opacity: 1;
}

:is(
  .agg-brand-logo,
  .arc-brand-logo,
  .con-brand-logo,
  .cotd-brand-logo,
  .plg-brand-logo,
  .tls-brand-logo,
  .trk-brand-logo,
  .val-brand-logo
) {
  display: block;
  width: 25px;
  height: 18px;
  object-fit: contain;
}

:is(.agg-status, .arc-status, .con-status, .cotd-status, .plg-status, .tls-status, .trk-status, .val-status) {
  justify-self: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.44);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status-dot-color);
  box-shadow: 0 0 10px var(--status-dot-shadow);
}

.status-copy {
  min-width: 0;
}

.status-copy strong,
.status-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-copy strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.05;
}

.status-copy small {
  margin-top: 2px;
  color: var(--status-copy-color);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
}

:is(
  .agg-account-slot,
  .arc-account-slot,
  .con-account-slot,
  .cotd-account-slot,
  .plg-account-slot,
  .tls-account-slot,
  .trk-account-slot,
  .val-account-slot
) {
  justify-self: end;
}
