@charset "UTF-8";
[data-ui=ledger] .auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
[data-ui=ledger] .auth-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
[data-ui=ledger] .admin-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
[data-ui=ledger] .admin-card-head {
  border-bottom: 2px solid var(--rule-strong);
  padding: 0 0 10px;
}
[data-ui=ledger] .admin-table td {
  border-top-color: var(--border);
}
[data-ui=ledger] .session-item {
  border-top-color: var(--border);
}
[data-ui=ledger] .auth-note,
[data-ui=ledger] .auth-secret,
[data-ui=ledger] .auth-ok {
  background: transparent;
}
[data-ui=ledger] .auth-problem {
  background: transparent;
}
[data-ui=ledger] .chip {
  display: inline-flex;
  align-items: baseline;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-ui=ledger] .chip-muted, [data-ui=ledger] .chip-connected, [data-ui=ledger] .chip-refused, [data-ui=ledger] .chip-accent {
  background: transparent;
}
[data-ui=ledger] .chip-accent {
  border: none;
  border-bottom: 1px dotted currentColor;
}
[data-ui=ledger] .auth-submit {
  background: var(--ink);
  color: var(--bg);
}
[data-ui=ledger] .auth-submit:hover {
  background: var(--ink-soft);
}
[data-ui=ledger] .admin-action {
  background: transparent;
  border-color: var(--ink-soft);
}
[data-ui=ledger] .admin-action:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
[data-ui=ledger] .admin-danger {
  border-color: var(--danger);
}
[data-ui=ledger] .admin-danger:hover {
  border-color: var(--danger);
  background: transparent;
}
[data-ui=ledger] .auth-input {
  background: transparent;
  border-color: var(--ink-soft);
}
[data-ui=ledger] .auth-input:focus-visible {
  background: transparent;
  border-color: var(--ink);
}
[data-ui=ledger] .auth-locked {
  background: transparent;
  border-color: var(--ink-soft);
}
[data-ui=ledger] .admin-nav-on {
  box-shadow: inset 0 -2px 0 var(--ink);
}

:root,
[data-ui=instrument] {
  color-scheme: light;
  --bg: #f2f2f0;
  --surface: #fbfbfa;
  --border: #dcdcd8;
  --border-strong: #d0d0cb;
  --border-soft: #d3d3ce;
  --ink: #1a1b1d;
  --muted: #6b7078;
  --muted-soft: #6b7078;
  --accent: #46557b;
  --accent-tint: #eef0f5;
  --accent-ink: #2f3c5c;
  --accent-strong: #5a6a94;
  --field-bg: #f5f5f3;
  --panel-sunken: #eeeeec;
  --danger: #a04a24;
  --danger-tint-alt: #fbf1ec;
  --danger-border-soft: #eddcd3;
  --positive: #5c7b46;
  --positive-tint: #eef3e9;
  --positive-border: #d3e0c6;
  --font-sans: system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --control-h-lg: 40px;
  --radius: 3px;
  --radius-sm: var(--radius);
  --radius-lg: 3px;
  --shadow-2: none;
  --dur-fast: 120ms;
  --ease: ease-out;
}

[data-ui=instrument][data-theme=dark] {
  color-scheme: dark;
  --bg: #0d0e10;
  --surface: #14161a;
  --border: #23262c;
  --border-strong: #2e323a;
  --border-soft: #1f2226;
  --ink: #e6e4de;
  --muted: #7d8590;
  --muted-soft: #4a4f58;
  --accent: #8ba1e8;
  --accent-tint: rgba(139, 161, 232, 0.14);
  --accent-ink: #b9c6ee;
  --accent-strong: #7e93d9;
  --field-bg: #101216;
  --panel-sunken: #101216;
  --danger: #e0906a;
  --danger-tint-alt: rgba(224, 144, 106, 0.05);
  --danger-border-soft: rgba(224, 144, 106, 0.3);
  --positive: #9db98a;
  --positive-tint: rgba(157, 185, 138, 0.13);
  --positive-border: rgba(157, 185, 138, 0.4);
}

[data-ui=ledger] {
  color-scheme: light;
  --bg: #f6f1e6;
  --surface: #f6f1e6;
  --border: #ddd5c2;
  --border-strong: #221f18;
  --border-soft: #cfc6b0;
  --ink: #221f18;
  --muted: #7a7466;
  --muted-soft: #a39b88;
  --accent: #46557b;
  --accent-tint: #eef0f5;
  --accent-ink: #2f3c5c;
  --accent-strong: #5a6a94;
  --field-bg: #f1ebdd;
  --panel-sunken: #f1ebdd;
  --danger: #a04a24;
  --danger-tint-alt: #fbf1ec;
  --danger-border-soft: #eddcd3;
  --positive: #5c7b46;
  --positive-tint: #eef3e9;
  --positive-border: #d3e0c6;
  --font-sans: system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-display: "Newsreader", Georgia, serif;
  --ink-soft: #4a453a;
  --row-hover: #efe9da;
  --rule-strong: #221f18;
  --control-h-lg: 40px;
  --radius: 2px;
  --radius-sm: var(--radius);
  --radius-lg: 2px;
  --shadow-2: none;
  --dur-fast: 120ms;
  --ease: ease-out;
}

[data-ui=ledger][data-theme=dark] {
  color-scheme: dark;
  --bg: #171511;
  --surface: #171511;
  --border: #3a352a;
  --border-strong: #e8e2d4;
  --border-soft: #2e2a20;
  --ink: #e8e2d4;
  --muted: #97907f;
  --muted-soft: #6e6757;
  --accent: #9db0dd;
  --accent-tint: rgba(157, 176, 221, 0.14);
  --accent-ink: #c3cfee;
  --accent-strong: #8497c9;
  --field-bg: #1c1915;
  --panel-sunken: #1b1814;
  --danger: #d28a5a;
  --danger-tint-alt: rgba(210, 138, 90, 0.05);
  --danger-border-soft: rgba(210, 138, 90, 0.3);
  --positive: #a3bd8b;
  --positive-tint: rgba(163, 189, 139, 0.13);
  --positive-border: rgba(163, 189, 139, 0.4);
  --font-sans: system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-display: "Newsreader", Georgia, serif;
  --ink-soft: #cfc8b6;
  --row-hover: #201c16;
  --rule-strong: #e8e2d4;
  --control-h-lg: 40px;
  --radius: 2px;
  --radius-sm: var(--radius);
  --radius-lg: 2px;
  --shadow-2: none;
  --dur-fast: 120ms;
  --ease: ease-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  transition: color var(--dur-fast) var(--ease);
}
a:hover {
  color: var(--accent-ink);
}

body:has(.auth-stage) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:has(.auth-stage) > * {
  flex: none;
}
body:has(.auth-stage) > .auth-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
body:has(.auth-stage) > .auth-stage::-webkit-scrollbar {
  display: none;
}

.auth-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 0 40px 40px;
}

.auth-column {
  width: 520px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 6px 0;
}
.wordmark:hover {
  color: inherit;
}
.wordmark-mark {
  flex: none;
  display: block;
  width: 24px;
  height: 24px;
}
.wordmark-tittle {
  fill: var(--accent);
}
.wordmark-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.landing-nav {
  justify-content: center;
  padding: 4px 0 10px;
}

.wordmark-family {
  position: relative;
  display: flex;
  justify-content: center;
}
.wordmark-family .wordmark {
  cursor: default;
  outline: none;
}
.wordmark-family:hover .service-trio, .wordmark-family:focus-within .service-trio {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.service-trio {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.trio-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
}
.trio-mark:hover {
  color: var(--ink);
}

.trio-sep {
  color: var(--muted-soft);
}

.landing-stage .auth-column {
  margin-top: max(24px, (100dvh - 640px) / 2);
  margin-bottom: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-2);
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.auth-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: var(--panel-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.auth-locked-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex-grow: 1;
}

.auth-input {
  height: 40px;
  padding: 0 12px;
  background: var(--field-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.auth-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.auth-input:user-invalid {
  border-color: var(--danger);
}

textarea.auth-input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.auth-input-mono {
  font-family: var(--font-mono);
}

.auth-submit {
  height: var(--control-h-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--surface);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
}
.auth-submit:disabled {
  opacity: 0.45;
  cursor: default;
}
.auth-submit:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.auth-submit-text {
  font-size: 13px;
  font-weight: 600;
}

.auth-problem {
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-tint-alt);
  border: 1px solid var(--danger-border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.auth-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--panel-sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.auth-ok {
  font-size: 13px;
  color: var(--positive);
  background: var(--positive-tint);
  border: 1px solid var(--positive-border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.auth-secret {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--panel-sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  user-select: all;
}

.auth-qr {
  display: flex;
  justify-content: center;
}
.auth-qr svg {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.auth-alt {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  align-self: center;
}
.auth-alt:hover {
  color: var(--accent-ink);
}

.auth-footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  text-align: center;
  padding-top: 4px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}

.profile-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-sunken);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  user-select: none;
}

.profile-heading {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-marks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-accent {
  background: var(--accent-tint);
  border: 1px solid var(--border-strong);
  color: var(--accent-ink);
}

.profile-fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-value {
  margin: 0;
  font-size: 13px;
}

.viewer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.viewer-actions label.admin-action {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
}

.profile-file-hidden {
  display: none;
}

#profile-photo-form,
#profile-photo-remove {
  display: none;
}

.profile-avatar-upload,
.avatar-view {
  position: relative;
  flex: none;
  cursor: pointer;
}

.avatar-view {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
}

.profile-avatar-upload::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  pointer-events: none;
}
.profile-avatar-upload:hover::after, .profile-avatar-upload:has(.profile-file-hidden:focus-visible)::after {
  opacity: 1;
}

.viewer-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  cursor: zoom-out;
}

.viewer {
  outline: none;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-media {
  max-width: min(90vw, 960px);
  max-height: 85vh;
  border-radius: var(--radius);
}

.profile-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.upload-progress {
  flex: 1;
  height: 2px;
  background: var(--panel-sunken);
  border-radius: 1px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease);
}

.upload-cancel {
  height: 24px;
  padding: 0 8px;
}

.profile-stats {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-value {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.session-list {
  display: flex;
  flex-direction: column;
}

.session-item {
  border-top: 1px solid var(--border-soft);
}
.session-item:first-child {
  border-top: 0;
}

.session-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.session-head::-webkit-details-marker {
  display: none;
}

.session-device {
  font-size: 13px;
  color: var(--ink);
}
.session-device .chip {
  margin-left: 8px;
}

.session-ip {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.session-item[open] .session-head {
  position: relative;
  z-index: 121;
}
.session-item[open] .session-head::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.65);
}

.session-detail {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 122;
  width: min(90vw, 420px);
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.session-detail .profile-fields {
  margin: 0;
}
.session-detail form {
  margin-top: 12px;
  text-align: right;
}

.session-agent {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .auth-stage {
    padding: 0 16px 24px;
  }
}
body:has(.admin-shell) {
  min-height: 100vh;
  min-height: 100dvh;
  scrollbar-gutter: stable;
}

.admin-shell {
  display: flex;
  justify-content: center;
  padding: 24px 24px 48px;
}

.admin-column {
  width: 760px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: var(--control-h-lg);
  padding: 6px 0;
}
.admin-bar .wordmark-text {
  font-size: 15px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.admin-nav {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
}
.admin-nav:hover {
  color: var(--ink);
}
.admin-nav-on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.admin-bar .auth-alt {
  margin-left: auto;
  align-self: auto;
}

a.wordmark-home {
  text-decoration: none;
  color: inherit;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.logs-filters .auth-field {
  flex: 1 1 120px;
  min-width: 0;
}

body:has(.log-list) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body:has(.log-list) .admin-shell {
  height: 100%;
}
body:has(.log-list) .admin-column {
  height: 100%;
}
body:has(.log-list) .admin-card:has(.log-list) {
  min-height: 0;
}

.admin-table-wrap {
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.logs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logs-foot .log-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-soft);
}
.logs-foot .logs-links {
  display: flex;
  gap: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  text-align: left;
  padding: 0 12px 6px 0;
}
.admin-table td {
  padding: 8px 12px 8px 0;
  border-top: 1px solid var(--border-soft);
  vertical-align: middle;
}
.admin-table td.mono {
  overflow-wrap: anywhere;
}

.admin-clients td.muted {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.health-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: baseline;
}
.health-dot.health-on {
  background: #2e9e5b;
}
.health-dot.health-off {
  background: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.actions form {
  display: inline;
}

.admin-action {
  height: var(--control-h);
  --control-h: 32px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.admin-action:hover {
  background: var(--row-hover, var(--panel-sunken));
}

.admin-action-wide {
  width: 100%;
}

.admin-invite {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  --control-h: 36px;
}
.admin-invite .auth-input {
  height: var(--control-h);
  box-sizing: border-box;
}
.admin-invite input.auth-input {
  flex: 1;
  min-width: 220px;
}
.admin-invite select.admin-role {
  flex: 0 0 auto;
  width: auto;
  padding: 0 28px 0 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.admin-invite .admin-invite-go {
  width: auto;
  height: var(--control-h);
  padding: 0 20px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-standing {
  font-size: 12px;
  color: var(--muted);
}

.admin-pair {
  display: flex;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
}

.chip-muted {
  background: var(--panel-sunken);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.chip-connected {
  background: var(--positive-tint);
  border: 1px solid var(--positive-border);
  color: var(--positive);
}

.chip-refused {
  background: var(--danger-tint-alt);
  border: 1px solid var(--danger-border-soft);
  color: var(--danger);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-danger {
  color: var(--danger);
}
.admin-danger:hover {
  background: var(--danger-tint-alt);
}

.admin-dialog {
  width: min(240px, 100vw - 32px);
  height: fit-content;
  max-height: min(85vh, 85dvh);
  margin: auto;
  inset: 0;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: auto;
}
.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.admin-dialog .admin-action {
  width: 100%;
  height: 30px;
}

.admin-dialog-wide {
  width: min(420px, 100vw - 32px);
}

.admin-dialog:popover-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-dialog-title {
  font-weight: 600;
  color: var(--ink);
}

.admin-action:has(+ .admin-dialog:popover-open) {
  background: var(--panel-sunken);
}

.admin-sessions {
  display: inline-block;
  vertical-align: top;
}
.admin-sessions + .admin-sessions {
  margin-left: 16px;
}
.admin-sessions summary {
  cursor: pointer;
  font-size: 12px;
  display: inline-block;
}
.admin-sessions[open] summary {
  margin-bottom: 8px;
}
.admin-sessions .admin-table td:first-child {
  overflow-wrap: anywhere;
  max-width: 280px;
}
.admin-sessions .admin-fold-form {
  width: 260px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin: 8px 24px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

input[type=checkbox] {
  accent-color: var(--accent);
}

@media (max-width: 720px) {
  .admin-shell {
    padding: 16px 12px 32px;
  }
}
.dd-native {
  display: none;
}

.admin-invite .dd-trigger {
  flex: 0 0 auto;
  width: auto;
}

.dd-trigger {
  display: flex;
  align-items: center;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dd-trigger::after {
  content: "▾";
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dd-panel {
  position: fixed;
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: none;
}
.dd-panel.dd-open {
  display: block;
}

.dd-option {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.dd-option:hover, .dd-option:focus, .dd-option.dd-option-active {
  background: var(--row-hover);
  outline: none;
}

.dd-option-selected {
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.dd-option-hidden {
  display: none;
}

.dd-search {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}

.logs-filters .logs-q {
  flex: 2 1 200px;
}
