:root {
  --bg: #111315;
  --sidebar: #151719;
  --panel: #181b1e;
  --raised: #202428;
  --line: #30353a;
  --text: #eef0f2;
  --secondary: #b2b8be;
  --muted: #929ba4;
  --accent: #ee947f;
  --accent-ink: #201411;
  --negative: #f2a39f;
  --positive: #9ecbb3;
  --radius: 12px;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  color-scheme: dark;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea,
a,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
::selection {
  background: #ee947f40;
  color: #fff;
}
input,
textarea {
  caret-color: var(--accent);
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.hidden,
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 20px;
  font-weight: 500;
}
h3 {
  font-size: 16px;
  font-weight: 500;
}
h4 {
  font-size: 14px;
  font-weight: 500;
}
.boot {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 20px;
}
.boot span {
  font-size: 14px;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.login {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.login-header {
  padding: 32px 40px;
}
.login-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
}
.login-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 8px;
  border: 0;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.primary:hover {
  background: #f5ab99;
  text-decoration: none;
}
.discord-login svg {
  fill: currentColor;
  stroke: none;
}
.workspace {
  display: flex;
  min-height: 100svh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 16px 16px;
}
.sidebar > .brand {
  margin: 0 8px 40px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
  text-align: left;
}
.nav-item:hover {
  background: var(--raised);
}
.nav-item.active {
  background: #24282c;
  color: var(--text);
  border-color: #343a40;
}
.nav-item.active svg {
  color: var(--accent);
}
.recent-searches {
  margin: 40px 8px 24px;
  min-height: 0;
  overflow: auto;
}
.recent-searches h2 {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.recent-job {
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  color: var(--secondary);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 40px;
}
.recent-job:hover,
.recent-job.selected {
  background: var(--raised);
  color: var(--text);
}
.recent-job small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.account {
  border-top: 1px solid var(--line);
  padding: 20px 4px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #2a2f34;
  color: var(--secondary);
  border-radius: 8px;
  font-size: 13px;
}
.account-name {
  min-width: 0;
  flex: 1;
}
.account strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.account-name > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.icon-button:hover {
  background: var(--raised);
  color: var(--text);
}
.dashboard {
  margin-left: 248px;
  width: calc(100% - 248px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 40px 40px 0;
  outline: none;
}
.page-heading,
.search-area,
.dashboard-footer {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.page-heading p {
  margin-top: 8px;
  color: var(--secondary);
  line-height: 1.5;
}
.workspace-label {
  font-size: 12px;
  color: var(--muted);
}
.composer {
  padding: 8px;
  border: 1px solid #464c53;
  background: var(--panel);
  border-radius: 16px;
}
.composer:focus-within {
  border-color: #9c786c;
}
.composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.command-pill {
  flex: 0 0 auto;
  position: relative;
}
.command-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  max-width: 224px;
  padding: 0 12px 0 16px;
  border: 0;
  border-radius: 8px;
  background: #292e33;
  color: var(--text);
  font-size: 13px;
}
.command-trigger:hover,
.command-trigger[aria-expanded="true"] {
  background: #343a40;
}
.command-trigger svg {
  color: var(--muted);
}
#command-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.command-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.command-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  left: 0;
  width: 260px;
  max-width: calc(100vw - 48px);
  max-height: min(440px, 55svh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #22262a;
}
.command-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--secondary);
  text-align: left;
  font-size: 13px;
}
.command-option:hover,
.command-option:focus-visible {
  background: #30363c;
  color: var(--text);
}
.command-option[aria-pressed="true"] {
  color: var(--accent);
  background: #ee947f0d;
}
.command-option[aria-pressed="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.parameters {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.parameter {
  flex: 1;
  min-width: 128px;
}
.parameter input,
.parameter textarea,
.parameter select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline-offset: 0;
  border-radius: 4px;
}
.parameter input::placeholder,
.parameter textarea::placeholder {
  color: var(--muted);
}
.parameter + .parameter {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.parameter textarea {
  resize: vertical;
  min-height: 68px;
}
.parameter select {
  background: var(--raised);
}
.file-field {
  flex-basis: 100%;
  border: 0 !important;
  padding-left: 0 !important;
}
.file-field label {
  display: block;
  color: var(--secondary);
  font-size: 12px;
}
.file-field input {
  font-size: 12px;
}
.no-input {
  color: var(--muted);
  font-size: 13px;
}
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
}
.send-button:hover {
  background: #f5ab99;
}
.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.quota {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.quota.exhausted #quota-value {
  color: var(--negative);
}
#quota-reset {
  color: var(--muted);
}
.notice {
  border: 1px solid #714d48;
  background: #2b211f;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  color: #f0c0b5;
  line-height: 1.6;
}
.job-tabs {
  display: flex;
  gap: 20px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.job-tabs:empty {
  display: none;
}
.job-tab {
  flex-shrink: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.job-tab.selected {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.job-tab:hover {
  color: var(--text);
}
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--secondary);
  font-size: 13px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 8px;
  min-height: 40px;
}
.progress .text-button {
  margin-left: auto;
}
.results-section {
  margin-top: 32px;
}
.empty-state {
  padding: 64px 24px 80px;
  max-width: 680px;
}
.empty-symbol {
  width: 40px;
  height: 40px;
  color: var(--muted);
  margin-bottom: 24px;
  stroke-width: 1.2;
}
.empty-state h2 {
  margin-bottom: 12px;
  font-size: 24px;
}
.empty-state p {
  color: var(--secondary);
  line-height: 1.75;
  max-width: 440px;
}
.empty-reference {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.empty-reference > span {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.empty-reference code {
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font:
    12px "Segoe UI",
    sans-serif;
  color: var(--secondary);
}
.result-message {
  margin-bottom: 32px;
  overflow-wrap: anywhere;
}
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.profile-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--raised);
  flex-shrink: 0;
}
.profile-heading {
  flex: 1;
  min-width: 0;
}
.profile-heading h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.profile-flags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  color: var(--secondary);
  font-size: 13px;
}
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-label.positive {
  color: var(--positive);
}
.status-label.negative {
  color: var(--negative);
}
.profile-updated {
  margin-left: auto;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.identity-references {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.identity-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.identity-ref code {
  color: var(--secondary);
  font:
    12px Consolas,
    monospace;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.copy-button:hover {
  color: var(--text);
  background: var(--raised);
}
.copy-button svg {
  width: 16px;
  height: 16px;
}
.profile-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0 24px;
  font-size: 13px;
  color: var(--secondary);
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-links svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(248px, 1fr);
  gap: 32px;
}
.record-main,
.record-aside {
  min-width: 0;
}
.data-section {
  margin-bottom: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading span {
  font-size: 12px;
  color: var(--muted);
}
.data-section h3 {
  font-size: 17px;
}
.data-section p {
  line-height: 1.7;
  color: var(--secondary);
}
.data-list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  min-height: 44px;
  border-bottom: 1px solid #ffffff0b;
}
.data-row dt {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}
.data-row dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
.data-row dd.unavailable {
  color: var(--muted);
}
.data-row dd.negative {
  color: var(--negative);
}
.data-row dd.positive {
  color: var(--positive);
}
.data-row dd code {
  font:
    12px Consolas,
    monospace;
}
.ban-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.ban-summary strong {
  font-size: 24px;
  font-weight: 500;
  color: var(--negative);
}
.ban-summary span {
  color: var(--secondary);
  font-size: 13px;
}
.ban-summary .muted {
  color: var(--muted);
}
.record-aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.names-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.names-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ffffff0b;
  color: var(--secondary);
  font-size: 13px;
}
.quiet-note {
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 1.6;
}
.disclosure {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.disclosure summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 13px;
  min-height: 32px;
  padding: 4px 0;
}
.disclosure[open] summary {
  margin-bottom: 12px;
}
.disclosure-content {
  line-height: 1.7;
  color: var(--secondary);
  font-size: 13px;
}
.record-actions,
.message-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 16px;
}
.record-actions {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.record-actions button,
.message-actions button,
.message-actions a,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  background: var(--panel);
  font-size: 13px;
}
.record-actions button:hover,
.message-actions button:hover,
.message-actions a:hover,
.download:hover {
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}
.page-count {
  font-size: 12px;
  color: var(--muted);
  padding: 0 8px;
}
.profile-history {
  margin-top: 16px;
}
.profile-history summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 13px;
  min-height: 40px;
  padding: 12px 0;
}
.output-document {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.output-document + .output-document {
  margin-top: 16px;
}
.output-document > h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.output-document > .rich-text {
  margin-bottom: 16px;
}
.output-fields {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.output-field {
  min-width: 0;
}
.output-field h3 {
  color: var(--secondary);
  font-size: 13px;
  margin-bottom: 8px;
}
.output-field.wide {
  grid-column: 1/-1;
}
.output-field > .rich-text {
  font-size: 14px;
}
.rich-text {
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.rich-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #69737c;
}
.rich-text pre {
  font-family: Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.rich-text code {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.rich-text strong {
  font-weight: 500;
  color: var(--text);
}
.rich-text em {
  font-style: normal;
}
.rich-text u {
  text-decoration: none;
}
.spoiler {
  font: inherit;
  text-align: left;
  color: transparent;
  background: #30363c;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  max-width: 100%;
  padding: 4px 8px;
}
.spoiler * {
  visibility: hidden;
}
.spoiler.revealed {
  color: inherit;
  background: transparent;
}
.spoiler.revealed * {
  visibility: visible;
}
.file-preview {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.file-preview summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 13px;
  padding: 8px 0;
}
.file-preview pre {
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--secondary);
}
.result-time {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.result-copy {
  padding: 8px 0 16px;
}
.clipboard-status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #30363c;
  color: var(--text);
  z-index: 50;
  font-size: 13px;
}
.dashboard-footer {
  margin-top: auto;
  padding: 40px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.player-record > .record-actions {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}
.workspace-label {
  display: none;
}
.document-fields {
  margin: 0;
  border-top: 1px solid var(--line);
}
.document-field {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff0b;
}
.document-field dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.document-field dd {
  margin: 0;
}
.document-field dd pre {
  margin: 0;
}
.result-message:focus {
  outline: none;
}
@media (min-width: 1600px) {
  .dashboard {
    padding-left: 64px;
    padding-right: 64px;
  }
}
@media (max-width: 1100px) {
  .dashboard {
    padding: 32px 24px 0;
  }
  .record-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
    gap: 24px;
  }
  .record-aside {
    padding-left: 24px;
  }
  .profile-updated {
    display: none;
  }
  .workspace-label {
    display: none;
  }
  .search-meta {
    gap: 8px;
  }
  .search-meta > span {
    flex-basis: 100%;
  }
  .send-button {
    padding: 0 14px;
  }
  .command-trigger {
    max-width: 192px;
  }
}
@media (max-width: 960px) {
  .record-layout {
    grid-template-columns: 1fr;
  }
  .record-aside {
    border-left: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .record-aside .data-section {
    margin-bottom: 0;
  }
  .profile-heading h2 {
    font-size: 28px;
  }
  .profile-header {
    gap: 16px;
  }
  .profile-avatar {
    width: 72px;
    height: 72px;
  }
  .composer-row {
    gap: 8px;
  }
  .send-button span {
    display: none;
  }
  .send-button {
    width: 44px;
    padding: 0;
  }
  .command-trigger {
    max-width: 168px;
  }
  .parameter {
    min-width: 100px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
    align-items: center;
  }
  .sidebar > .brand {
    margin: 0;
    flex: 1;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .sidebar nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 8px;
  }
  .sidebar nav .nav-item {
    font-size: 12px;
    min-height: 36px;
    padding: 8px;
    gap: 8px;
  }
  .recent-searches {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
  }
  .account {
    border: 0;
    padding: 0;
    gap: 8px;
  }
  .account .avatar {
    display: none;
  }
  .account-name {
    max-width: 96px;
  }
  .account strong {
    font-size: 12px;
  }
  .account-name > span {
    font-size: 11px;
  }
  .dashboard {
    margin: 0;
    width: 100%;
    padding: 28px 16px 0;
    min-height: calc(100svh - 130px);
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .composer {
    padding: 6px;
    border-radius: 12px;
  }
  .composer-row {
    gap: 4px;
    align-items: flex-start;
  }
  .command-trigger {
    font-size: 12px;
    padding: 0 10px;
    max-width: 148px;
    gap: 6px;
  }
  .parameters {
    gap: 4px;
  }
  .parameter {
    min-width: 88px;
  }
  .parameter input,
  .parameter textarea {
    font-size: 13px;
    padding: 8px 6px;
  }
  .parameter + .parameter {
    padding-left: 4px;
  }
  .send-button {
    margin: 0;
  }
  .search-meta {
    font-size: 11px;
    padding-top: 12px;
  }
  .quota {
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }
  .job-tabs {
    gap: 20px;
    margin-top: 24px;
  }
  .job-tab {
    font-size: 12px;
  }
  .results-section {
    margin-top: 24px;
  }
  .profile-header {
    flex-wrap: wrap;
    padding-bottom: 20px;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
  }
  .profile-heading h2 {
    font-size: 26px;
  }
  .identity-references {
    gap: 8px;
    margin-top: 12px;
    flex-basis: 100%;
  }
  .identity-ref {
    flex-wrap: wrap;
  }
  .profile-flags {
    font-size: 12px;
    gap: 12px;
  }
  .profile-links {
    gap: 20px;
    font-size: 12px;
    padding: 16px 0 28px;
  }
  .record-aside {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .record-layout {
    gap: 0;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .data-row {
    padding: 12px 0;
  }
  .data-row dt {
    font-size: 13px;
  }
  .data-row dd {
    font-size: 13px;
    max-width: 60%;
  }
  .empty-state {
    padding: 40px 0 48px;
  }
  .empty-state h2 {
    font-size: 22px;
  }
  .empty-state p {
    font-size: 14px;
  }
  .empty-reference {
    margin-top: 24px;
  }
  .output-document {
    padding: 20px 16px;
  }
  .output-fields {
    grid-template-columns: 1fr;
  }
  .output-field.wide {
    grid-column: auto;
  }
  .dashboard-footer {
    padding-top: 32px;
  }
  .command-menu {
    width: 248px;
  }
  .record-actions {
    gap: 8px;
  }
  .record-actions button {
    font-size: 12px;
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      color 140ms ease-out,
      background-color 140ms ease-out,
      border-color 140ms ease-out;
  }
}
@media (max-width: 600px) {
  .document-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.admin-view {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.admin-heading p {
  margin-top: 8px;
  color: var(--secondary);
  line-height: 1.6;
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.admin-members,
.admin-editor {
  min-width: 0;
}
.admin-editor {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.admin-editor > h2 {
  margin-bottom: 12px;
}
.admin-view input,
.admin-view select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #444b52;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  max-width: 100%;
}
.admin-view input::placeholder {
  color: var(--muted);
}
.admin-editor label {
  display: block;
  margin: 20px 0 8px;
  color: var(--secondary);
  font-size: 13px;
}
.admin-editor input:not([type="checkbox"]),
.admin-editor select {
  width: 100%;
}
.admin-editor .checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.admin-editor input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.secondary-button,
.danger-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--secondary);
  font-size: 13px;
}
.secondary-button:hover {
  background: var(--raised);
  color: var(--text);
}
.danger-button {
  color: var(--negative);
}
.danger-button:hover {
  background: #342321;
}
.table-scroll {
  overflow: auto;
}
.admin-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.admin-table th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.admin-table th,
.admin-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 0;
}
.admin-table td strong {
  display: block;
  font-weight: 500;
  max-width: 200px;
  overflow-wrap: anywhere;
}
.admin-table td code {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}
.admin-table tr:hover {
  background: #ffffff03;
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 120px;
}
.admin-members > .section-heading {
  flex-wrap: wrap;
}
.admin-members > .section-heading input {
  width: 180px;
}
.admin-history {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.admin-history > .section-heading {
  flex-wrap: wrap;
}
.admin-history form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audit-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.audit-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.audit-entry-heading strong {
  font-weight: 500;
}
.audit-entry-heading code {
  color: var(--muted);
  font-size: 12px;
}
.audit-entry-heading time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.audit-metadata {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 13px;
}
.audit-entry pre {
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.7;
  margin: 12px 0;
}
.admin-success {
  border-color: #3f5f4c;
  background: #1b2920;
  color: #bddac7;
}
#admin-more {
  margin-top: 24px;
}
.admin-editor .quiet-note {
  max-width: 50ch;
}
@media (max-width: 1250px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .admin-editor {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .admin-editor form {
    max-width: 520px;
  }
}
@media (max-width: 760px) {
  .admin-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .admin-heading p {
    font-size: 13px;
  }
  .admin-members > .section-heading input {
    width: 100%;
  }
  .admin-table {
    min-width: 580px;
  }
  .admin-history form {
    width: 100%;
  }
  .admin-history form input {
    flex: 1;
    min-width: 0;
  }
  .audit-entry-heading time {
    margin-left: 0;
    flex-basis: 100%;
  }
  .sidebar nav {
    flex-wrap: wrap;
  }
  .admin-row-actions .quiet-note {
    max-width: 120px;
  }
}
