:root {
  color-scheme: dark;
  background: #111416;
  color: #eef1f4;
}
.app-shell,
.webapp-auth {
  --app-bg: #111416;
  --app-surface: #1b2024;
  --app-ink: #eef1f4;
  --app-muted: #b0b9c1;
  --app-line: #30373e;
  --app-accent: #3e4851;
  background: var(--app-bg);
  color: var(--app-ink);
}
::selection {
  color: #fff;
  background: #4d5863;
}
.app-shell .appbar {
  background: rgba(20, 24, 27, 0.96);
  border-color: #2d343b;
}
.brand-copy small,
.connection-pill,
.app-heading .muted,
.app-shell .muted,
.app-shell .caption,
.app-shell label,
.app-shell .local,
.app-shell .section-intro p,
.app-shell .detail-body > p,
.webapp-auth .muted,
.webapp-auth .caption,
.webapp-auth label {
  color: #b0b9c1;
}
.app-brand,
.brand-copy strong,
.app-shell h1,
.app-shell h2,
.app-shell h3 {
  color: #f1f3f5;
}
.brand-mark {
  background: #333d45;
  color: #fff;
}
.app-heading .eyebrow,
.section-kicker,
.menu-eyebrow {
  color: #919da7;
}
.app-shell .profile-toggle {
  background: #272f36;
  border-color: #434e58;
  color: #f1f3f5;
}
.profile-toggle[aria-expanded="true"] {
  box-shadow: 0 0 0 3px #363f48;
}
.profile-menu {
  background: #20262c;
  border-color: #3b454f;
  box-shadow: 0 18px 50px #0008;
}
.app-shell .profile-menu button {
  background: transparent;
  color: #edf0f3;
}
.app-shell .profile-menu button:hover {
  background: #303943;
}
.app-shell .profile-menu #logout {
  border-color: #3a434d;
  color: #edf0f3;
}
.app-shell .connection-pill i {
  background: #98a3ad;
}
.app-shell .connection-pill[data-state="connected"] i {
  background: #e8edf1;
  box-shadow: 0 0 0 3px #39444c;
}
.app-shell .connection-pill[data-state="offline"] i {
  background: #b0b9c1;
}
.app-shell .quiet-button,
.app-shell button,
.webapp-auth button {
  background: #252d34;
  border-color: #414b55;
  color: #eef1f4;
}
.app-shell button:hover,
.webapp-auth button:hover {
  background: #333d46;
}
.app-shell .primary,
.webapp-auth .primary {
  background: #46515b;
  border-color: #5b6874;
  color: #fff;
}
.app-shell .primary:hover,
.webapp-auth .primary:hover {
  background: #56626d;
}
.app-shell button:disabled,
.webapp-auth button:disabled {
  opacity: 0.45;
}
.app-shell input,
.app-shell select,
.app-shell textarea,
.webapp-auth input {
  background: #141a1f;
  border-color: #414c56;
  color: #f0f3f5;
}
.app-shell input::placeholder,
.app-shell textarea::placeholder,
.webapp-auth input::placeholder {
  color: #8996a1;
  opacity: 1;
}
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus,
.webapp-auth input:focus {
  border-color: #b1bdc7;
  outline-color: #596773;
}
.app-shell button:focus-visible,
.app-shell a:focus-visible,
.webapp-auth a:focus-visible {
  outline: 2px solid #d0d9df;
  outline-offset: 3px;
}
.app-shell a,
.webapp-auth a {
  color: #dbe1e6;
}
.app-shell .login-panel,
.app-shell .camp-panel,
.app-shell .accounts,
.app-shell aside,
.surface-card,
.metric-card,
.webapp-auth .auth-card {
  background: #1b2024;
  border-color: #30373e;
  box-shadow: none;
}
.overview-intro {
  background: #222a30;
  border-color: #3a454e;
}
.overview-intro p:last-child {
  color: #b8c1c8;
}
.metric-card p,
.metric-card span,
.live-label {
  color: #aeb8c1;
}
.metric-card strong {
  color: #f3f5f7;
}
.app-shell .text-button {
  color: #d6dee5;
  background: transparent;
}
.surface-heading,
.app-shell .section-head {
  border-color: #343d45;
}
.app-shell .session-row {
  background: transparent;
  border-color: #343d45;
  color: #eef1f4;
}
.app-shell .session-row:hover,
.app-shell .quick-access button:hover {
  background: #252d34;
}
.session-monogram {
  background: #29323a;
  border-color: #424d57;
  color: #e3e9ee;
}
.session-copy small,
.quick-access small,
.quick-number,
.quick-arrow,
.soft-empty,
.surface-footnote,
.activity-row time,
.activity-row p {
  color: #abb7c0;
}
.surface-footnote {
  background: #181e23;
  border-color: #343d45;
}
.app-shell .quick-access button {
  background: transparent;
  border-color: #343d45;
  color: #edf1f4;
}
.activity-row {
  border-color: #343d45;
}
.app-shell .floating-dock {
  background: rgba(29, 35, 40, 0.98);
  border-color: #424d56;
  box-shadow:
    0 8px 30px #0006,
    0 1px 3px #0005;
}
.app-shell .floating-dock button {
  color: #c6d0d8;
  background: transparent;
  border-color: transparent;
}
.app-shell .floating-dock button:hover {
  background: #303a42;
  color: #fff;
}
.app-shell .floating-dock button[aria-current="page"] {
  background: #46525c;
  color: #fff;
}
.app-shell .floating-dock svg {
  color: inherit;
}
.app-shell th {
  background: #232b31;
  color: #c1cbd3;
}
.app-shell td,
.app-shell .logs li,
.app-shell .preset-row {
  border-color: #343d45;
}
.app-shell tbody tr:hover,
.app-shell tbody tr.selected {
  background: #29343c;
}
.app-shell .row-select,
.app-shell .row-select:hover {
  background: transparent;
  color: #edf1f4;
}
.app-shell .sub,
.app-shell .detail-grid dt,
.app-shell .empty,
.app-shell .empty p,
.app-shell .logs li,
.app-shell .logs time,
.app-shell .operation-stats,
.app-shell #count,
.app-shell footer {
  color: #aeb9c3;
}
.app-shell .status,
.app-shell .status.connected,
.app-shell .status.error {
  background: #303c45;
  color: #eef2f5;
  border: 1px solid #4b5964;
}
.app-shell .status.error {
  border-color: #8c7173;
}
.app-shell .feature-note {
  background: #252d33;
  color: #b9c3cc;
}
.app-shell details,
.app-shell .preset-form,
.app-shell .logs-title,
.app-shell #follower-settings > .preset-limits {
  border-color: #3a444d;
}
.app-shell .event-dialogue,
.app-shell .encounter-card {
  background: #171e23;
  color: #e3e9ee;
  border-color: #414d57;
}
.app-shell .battle-cell,
.app-shell button.battle-cell {
  background: #2a343c;
  border-color: #4a5762;
  color: #eef2f5;
}
.app-shell button.battle-cell:hover,
.app-shell button.battle-cell:focus-visible {
  background: #3b4852;
  border-color: #b7c3cc;
}
.app-shell .battle-cell small {
  color: #bdc9d2;
}
.app-shell #route-plot svg,
.app-shell #camp-plot svg {
  background: #171e23;
  border-radius: 10px;
}
#camp-plot text {
  fill: #e2e9ef;
}
#camp-plot circle {
  fill: #c6d0d8;
}
#camp-plot g:focus circle {
  stroke: #fff;
}
#route-plot svg > rect {
  fill: #171e23;
  stroke: #6f7c87;
}
#route-plot svg > path:first-of-type {
  fill: #58646e;
}
#route-plot svg > path[fill="none"] {
  stroke: #e3eaf0;
}
#route-plot circle {
  fill: #dce6ec;
  stroke: #93a4b1;
}
.app-shell #notice,
.webapp-auth #notice {
  background: #2c3033;
  color: #f1f3f5;
  border-color: #77726b;
}
.app-shell dialog {
  background: #20282f;
  color: #eef2f5;
  border-color: #52606b;
}
.app-shell dialog::backdrop {
  background: #000a;
}
.skip-link {
  color: #f0f3f6;
  background: #26313a;
  border-color: #a9b8c4;
}
.app-shell .section-intro {
  margin-bottom: 14px;
}
.app-shell .overview-metrics {
  margin-bottom: 18px;
}
.app-shell .metric-card strong {
  margin-bottom: 0;
}
.app-shell .surface-heading .section-kicker,
.app-shell .overview-intro .section-kicker {
  display: none;
}
@media (max-width: 600px) {
  #rows td:nth-child(2),
  #rows td:nth-child(4),
  #rows td:nth-child(5),
  #rows td:nth-child(4)::before,
  #rows td:nth-child(5)::before {
    color: #b0bdc7;
  }
  #rows tr {
    border-color: #3c4852;
  }
}
.entrust-options {
  border: 1px solid #34424d;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.entrust-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.entrust-options input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #c9d5df;
}
.entrust-options small {
  margin-left: auto;
  color: #aebbc5;
}
.entrust-options label {flex-direction:row;text-align:left;min-height:32px;}
.entrust-options input[type="checkbox"] {height:18px;min-height:18px;padding:0;margin:0;}
