/* Anidev Design System v1.0.0 (e5a14f7), signed-in screens only.
 *
 * system.css imports three sheets that belong to the workspaces, the mobile
 * dock and the content editors, and this product serves none of those pages.
 * The imports would 404 in a binary that ships only what its own pages use, so
 * the sheets that do apply to its layout are merged here in their original
 * order. Everything is copied verbatim by scripts/sync-design.sh; nothing here
 * is hand-edited.
 */
* {
  box-sizing: border-box;
}
:root {
  font-synthesis: none;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/1.5 var(--font-body);
  accent-color: var(--color-accent);
}
body[data-theme="dark"] {
  color-scheme: dark;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}
button,
input,
select,
textarea {
  border-radius: var(--radius-control);
}
button,
select,
input:not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--size-control);
}
button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 7px 13px;
  line-height: 1.3;
  transition: background var(--motion-duration);
}
button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
}
button:active:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 20%, var(--color-surface));
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 86%, var(--color-text));
}
.danger {
  color: var(--color-danger);
}
a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 10px;
}
input[aria-invalid="true"] {
  border-color: var(--color-danger);
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
select {
  cursor: pointer;
}
label {
  font-size: 14px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-bottom: 18px;
}
h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
small,
.muted {
  color: var(--color-muted);
}
small {
  font-size: 12px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}
.navigation {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.wordmark {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -1px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.wordmark b {
  color: var(--color-accent);
}
.workspace-label {
  font-size: 12px;
  color: var(--color-muted);
  padding: 9px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 14px;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links button {
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.nav-links button[aria-current="page"] {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  font-weight: bold;
  color: var(--color-accent);
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex-shrink: 0;
}
.nav-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--color-muted);
}
.main-column {
  min-width: 0;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--space-section);
  border-bottom: 1px solid var(--color-border);
  gap: 15px;
  min-height: 70px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.command-trigger {
  font-size: 12px;
  color: var(--color-muted);
  min-height: 32px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: grid;
  place-items: center;
  font: 12px Arial;
}
.mobile-menu {
  display: none;
}
#content {
  padding: var(--space-section);
  max-width: 1550px;
  margin: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.overline {
  display: none;
  font:
    12px Consolas,
    monospace;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 15px;
}
.health-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-block: 1px solid var(--color-border);
  font-size: 13px;
  margin-bottom: 24px;
}
.health-line strong {
  font-weight: normal;
  color: var(--color-success);
}
.health-line strong:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  margin-right: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.metric {
  padding: 3px 22px 23px 0;
}
.metric + .metric {
  padding-left: 22px;
  border-left: 1px solid var(--color-border);
}
.metric-label {
  font-size: 13px;
  color: var(--color-muted);
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin: 7px 0;
}
.metric-note {
  font-size: 12px;
  color: var(--color-muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: var(--space-section);
}
.panel {
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 15px;
}
.section-title h2 {
  margin: 0;
}
.section-title span {
  font:
    12px Consolas,
    monospace;
  color: var(--color-muted);
}
.chart {
  height: 190px;
  border-block: 1px solid var(--color-border);
  position: relative;
  padding: 18px 0 20px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-plot {
  position: relative;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}
.chart-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--color-muted);
  pointer-events: none;
}
.chart-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.chart-tooltip {
  position: absolute;
  top: 4px;
  padding: 6px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 3px 12px #0002;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.chart-grid {
  stroke: var(--color-border);
  stroke-dasharray: 3 4;
}
.chart-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
}
.chart-area {
  fill: var(--color-accent);
  opacity: 0.06;
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  font:
    11px Consolas,
    monospace;
  color: var(--color-muted);
  margin-top: 4px;
}
.chart-legend {
  font-size: 12px;
  color: var(--color-muted);
  margin: 12px 0 0;
}
.service {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: var(--space-cell) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.service small {
  font-family: Consolas, monospace;
}
.status {
  font-size: 12px;
  color: var(--color-success);
  white-space: nowrap;
}
.status.warn {
  color: var(--color-danger);
}
.status-badge {
  --badge-tone: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid
    color-mix(in srgb, var(--badge-tone) 32%, var(--color-surface));
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-tone) 10%, var(--color-surface));
  color: var(--badge-tone);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.status-badge--success {
  --badge-tone: var(--color-success);
}
.status-badge--danger {
  --badge-tone: var(--color-danger);
}
.status-badge > svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.status-examples {
  gap: 8px;
  margin-bottom: 14px;
}
.activity {
  margin-top: 30px;
}
.activity-row {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.activity-row time {
  color: var(--color-muted);
  font-family: Consolas, monospace;
}
.activity-row > span:last-child {
  font-size: 12px;
  color: var(--color-muted);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  min-width: 160px;
  max-width: 330px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
  background: var(--color-bg);
  white-space: nowrap;
}
td,
th {
  padding: var(--space-cell) 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
td input[type="checkbox"],
th input[type="checkbox"] {
  display: block;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface));
}
td small {
  display: block;
}
td .person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-action {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--color-muted);
}
.pagination > div {
  display: flex;
  gap: 7px;
}
.pagination button {
  font-size: 13px;
  min-height: 32px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 25px;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  color: var(--color-muted);
}
.tabs button[aria-selected="true"] {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}
.settings-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 520px);
  gap: 30px;
}
.settings-copy p {
  font-size: 13px;
  color: var(--color-muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field input,
.field select {
  width: 100%;
}
.field small {
  line-height: 1.5;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.form-row label {
  flex: 1;
}
.form-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 25px;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
input[type="checkbox"].switch {
  appearance: none;
  width: 44px;
  height: 24px;
  padding: 0;
  margin: 0;
  background: var(--color-border);
  border: 1px solid transparent;
  border-radius: 999px;
  position: relative;
  transition: background-color 160ms ease;
}
.switch:after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-surface);
  transition: transform 160ms ease;
}
input[type="checkbox"].switch:checked {
  background: var(--color-accent);
}
.switch:checked:after {
  transform: translate(20px, -50%);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-brand {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand .wordmark b {
  color: inherit;
}
.auth-statement {
  font: 42px/1.12 var(--font-heading);
  letter-spacing: -1px;
  max-width: 430px;
}
.auth-brand small {
  color: inherit;
  opacity: 0.8;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: var(--color-surface);
}
.auth-form {
  width: 100%;
  max-width: 340px;
}
.auth-form h1 {
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 30px;
}
.auth-form .primary {
  width: 100%;
}
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  margin: 20px 0;
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
}
.auth-form .sso {
  width: 100%;
}
.auth-foot {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.error-text {
  color: var(--color-danger);
  font-size: 13px;
}
.library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.specimen {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  min-width: 0;
}
.component-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.specimen .field {
  max-width: 320px;
}
.tooltip-wrap {
  position: relative;
  display: inline-block;
}
.tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 5;
}
.tooltip-wrap:hover .tooltip,
.tooltip-wrap:focus-within .tooltip {
  display: block;
}
.empty-state {
  text-align: center;
  border: 1px dashed var(--color-border);
  padding: 25px 15px;
}
.empty-state,
.error-state,
.context-target,
.code-block {
  border-radius: var(--radius-control);
}
.empty-state p {
  font-size: 13px;
  color: var(--color-muted);
}
.error-state {
  padding: 15px;
  border: 1px solid var(--color-danger);
  font-size: 14px;
}
.skeleton {
  background: color-mix(in srgb, var(--color-muted) 15%, var(--color-bg));
  height: 14px;
  margin: 10px 0;
  border-radius: 3px;
  max-width: 280px;
}
.skeleton:nth-child(2) {
  width: 65%;
}
.skeleton:nth-child(3) {
  width: 85%;
}
details {
  position: relative;
  font-size: 14px;
}
summary {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}
.dropdown {
  background: var(--color-surface);
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  z-index: 5;
  box-shadow: 0 6px 20px #0002;
  transform-origin: top left;
}
details[open] > .dropdown {
  animation: menu-open 180ms ease-out both;
}
@keyframes menu-open {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.dropdown button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
}
.context-target {
  padding: 20px;
  border: 1px dashed var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
  cursor: context-menu;
}
.context-menu {
  position: fixed;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 6px;
  z-index: 30;
  box-shadow: 0 5px 20px #0003;
  animation: menu-open 180ms ease-out both;
}
.context-menu button {
  display: block;
  border: 0;
  width: 100%;
  text-align: left;
}
.tokens-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.token-row code {
  font:
    12px Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.token-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    12px Consolas,
    monospace;
}
.color-chip {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  display: inline-block;
}
.code-block {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: auto;
  font:
    12px/1.8 Consolas,
    monospace;
  max-height: 330px;
  margin-top: 25px;
}
dialog {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 27px;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}
dialog::backdrop {
  background: #0a130e77;
}
dialog h2 {
  font-size: 21px;
}
dialog > p {
  color: var(--color-muted);
  font-size: 14px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.close {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  padding: 8px;
  flex-shrink: 0;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  max-width: 400px;
  width: 90%;
  border-radius: 0;
}
.drawer .form-footer {
  margin-top: 40px;
}
.command-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 15px;
}
.command-list button {
  text-align: left;
  border: 0;
}
.command-list button:focus {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
:is(#toast, .anidev-toast) {
  --toast-tone: var(--color-accent);
  position: fixed;
  inset: auto;
  margin: 0;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid
    color-mix(in srgb, var(--toast-tone) 18%, var(--color-border));
  border-radius: var(--radius-control);
  box-shadow:
    0 10px 28px #07181f30,
    0 2px 6px #07181f18;
  padding: 14px 16px;
  font-size: 13px;
  z-index: 100;
  display: none;
}
:is(#toast, .anidev-toast)[data-type="success"] {
  --toast-tone: var(--color-success);
}
:is(#toast, .anidev-toast)[data-type="warning"] {
  --toast-tone: var(--color-warning);
}
:is(#toast, .anidev-toast)[data-type="error"] {
  --toast-tone: var(--color-danger);
}
:is(#toast, .anidev-toast):popover-open {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-enter 140ms ease-out;
}
.toast-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--toast-tone) 12%, var(--color-surface));
  color: var(--toast-tone);
}
.toast-content {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}
.toast-message {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: anywhere;
}
:is(#toast, .anidev-toast) .toast-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  min-height: 28px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
}
@keyframes toast-enter {
  from {
    opacity: 0;
    translate: 0 4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  padding: 10px;
  background: var(--color-surface);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.selection-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 13px;
}
.compact-note {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 28px;
}
body[data-concept="dock"] .shell {
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 12px;
  gap: 12px;
}
body[data-concept="dock"] .navigation {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 8px;
  align-items: center;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
}
body[data-concept="dock"] .wordmark {
  font-size: 0;
}
body[data-concept="dock"] .wordmark b {
  font-size: 26px;
}
body[data-concept="dock"] .workspace-label,
body[data-concept="dock"] .nav-bottom {
  display: none;
}
body[data-concept="dock"] .nav-links button {
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  padding: 10px 3px;
}
body[data-concept="dock"] .nav-icon {
  width: 21px;
  height: 21px;
}
body[data-concept="dock"] .app-header {
  border: 0;
  padding-inline: 18px;
}
body[data-concept="dock"] #content {
  padding: 20px 18px;
}
body[data-concept="dock"] .dashboard-grid {
  grid-template-columns: 1fr;
}
body[data-concept="dock"] .metrics {
  gap: 14px;
  border: 0;
}
body[data-concept="dock"] .metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
}
body[data-concept="dock"] .panel {
  background: var(--color-surface);
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
body[data-concept="dock"] .services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body[data-concept="dock"] .service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6ch max-content;
  gap: 10px;
}
body[data-concept="dock"] .service > small,
body[data-concept="dock"] .service > .status {
  text-align: right;
}
body[data-concept="dock"] .service > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
body[data-concept="dock"] .activity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
}
body[data-concept="dock"] .auth-layout {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
body[data-concept="dock"] .auth-brand {
  background: none;
  color: var(--color-text);
  padding: 0 0 26px;
  width: 360px;
  max-width: 100%;
}
body[data-concept="dock"] .auth-statement,
body[data-concept="dock"] .auth-brand small {
  display: none;
}
body[data-concept="dock"] .auth-main {
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  width: 420px;
  max-width: 100%;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .navigation {
    padding-inline: 10px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-copy p {
    margin-bottom: 0;
  }
  .library {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 30px;
  }
  .auth-statement {
    font-size: 34px;
  }
  .tokens-list {
    grid-template-columns: 1fr;
  }
  .services {
    min-width: 0;
  }
  body[data-concept="dock"] .services {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .shell,
  body[data-concept="dock"] .shell {
    display: block;
    padding: 0;
  }
  .navigation,
  body[data-concept="dock"] .navigation {
    position: static;
    width: auto;
    height: auto;
    padding: 14px 18px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }
  .navigation .wordmark {
    display: none;
  }
  .workspace-label,
  .nav-bottom {
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
  }
  .navigation.open .nav-links {
    display: flex;
  }
  .nav-links button,
  body[data-concept="dock"] .nav-links button {
    padding: 12px;
    font-size: 14px;
    flex-direction: row;
  }
  .nav-icon {
    display: none;
  }
  body[data-concept="dock"] .navigation {
    display: none;
  }
  body[data-concept="dock"] .navigation.open {
    display: block;
  }
  .navigation:not(.open) {
    padding: 0;
    border: 0;
  }
  .mobile-menu {
    display: block;
    padding: 5px 9px;
    min-height: 32px;
  }
  .app-header {
    padding: 12px 18px;
    margin: 0;
    gap: 10px;
    min-height: 60px;
  }
  .breadcrumb {
    font-size: 12px;
    flex: 1;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .command-trigger {
    font-size: 0;
    min-height: 30px;
    padding: 5px;
  }
  .header-actions .command-trigger:after {
    content: attr(data-shortcut);
    font-size: 12px;
  }
  .avatar {
    width: 27px;
    height: 27px;
  }
  #content,
  body[data-concept="dock"] #content {
    padding: 22px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .health-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric,
  .metric + .metric {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .metric-value {
    font-size: 29px;
    margin: 0;
    text-align: right;
  }
  .metric-note {
    grid-column: 1/-1;
  }
  body[data-concept="dock"] .metrics {
    gap: 10px;
  }
  body[data-concept="dock"] .metric {
    padding: 15px;
  }
  .dashboard-grid {
    gap: 24px;
  }
  .section-title {
    gap: 10px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .section-title span {
    font-size: 11px;
  }
  .activity-row {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }
  .activity-row > span:last-child {
    grid-column: 2;
  }
  .auth-layout {
    display: block;
  }
  .auth-brand {
    min-height: auto;
    padding: 25px;
    gap: 25px;
  }
  .auth-statement {
    font-size: 28px;
    margin: 30px 0;
  }
  .auth-brand small {
    display: none;
  }
  .auth-main {
    padding: 30px 22px;
  }
  .auth-form {
    max-width: 100%;
  }
  .auth-foot {
    gap: 12px;
  }
  .toolbar .search {
    max-width: none;
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 14px;
  }
  .settings-layout {
    gap: 15px;
  }
  body[data-concept="dock"] .services {
    display: block;
  }
  .table-wrap {
    max-width: 100%;
  }
  table {
    min-width: 580px;
  }
  .library {
    gap: 22px;
  }
  .token-row {
    gap: 10px;
    font-size: 12px;
  }
  .token-value {
    max-width: 45%;
    overflow-wrap: anywhere;
  }
  .auth-form h1 {
    font-size: 25px;
  }
  body[data-concept="dock"] .auth-layout {
    padding: 20px;
  }
  body[data-concept="dock"] .auth-main {
    padding: 25px;
  }
}
.chart-data {
  margin-top: 12px;
}
.chart-data summary {
  padding: 6px 0;
  border: 0;
  font-size: 12px;
  color: var(--color-muted);
}
.chart-data-scroll {
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}
.chart-data table {
  min-width: 0;
  font-size: 12px;
}
.chart-data td,
.chart-data th {
  padding: 6px 10px;
}
.chart-data summary:focus-visible {
  outline: 3px solid var(--color-accent);
}
::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
input,
textarea {
  caret-color: var(--color-accent);
}
table {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  button,
  select,
  input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 44px;
  }
  .row-action {
    min-height: 36px;
  }
  .mobile-menu {
    min-height: 40px;
  }
  .nav-links button {
    min-height: 44px;
  }
  .command-trigger {
    min-height: 36px !important;
  }
  .chart-data summary {
    padding: 12px 0;
  }
  .tabs button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 600px) {
  body[data-concept] .navigation:not(.open) {
    display: none;
  }
}
body[data-concept="dock"] .shell {
  padding: 8px;
  gap: 8px;
}
body[data-concept="dock"] .navigation {
  position: fixed;
  z-index: 50;
  left: 8px;
  top: 8px;
  width: 68px;
  height: calc(100dvh - 16px);
  padding: 10px 8px;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 14px;
  transition:
    width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms;
}
body[data-concept="dock"] .main-column {
  grid-column: 2;
}
body[data-concept="dock"] .navigation .wordmark {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  height: 34px;
  white-space: nowrap;
  padding: 0;
  gap: 12px;
  font-size: 20px;
}
body[data-concept="dock"] .navigation .wordmark b {
  font-size: 23px;
  justify-self: center;
}
body[data-concept="dock"] .navigation .wordmark > span {
  opacity: 0;
  transition: opacity 140ms;
}
.dock-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  white-space: nowrap;
  background: transparent;
}
.dock-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 240ms;
}
.dock-toggle > span {
  opacity: 0;
  transition: opacity 140ms;
  font-size: 13px;
}
body[data-concept="dock"] .nav-links {
  width: 100%;
  gap: 6px;
}
body[data-concept="dock"] .nav-links button {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  padding: 11px 0;
  gap: 12px;
  font-size: 14px;
  min-height: 46px;
  white-space: nowrap;
  width: 100%;
}
body[data-concept="dock"] .nav-links button > span {
  opacity: 0;
  transition: opacity 140ms;
}
body[data-concept="dock"] .nav-links button > .nav-icon {
  justify-self: center;
}
body[data-concept="dock"]
  .navigation
  :is(.nav-links button, .dock-brand, .dock-account):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
body[data-concept="dock"]
  .navigation
  :is(.nav-links button, .dock-brand, .dock-account):active {
  transform: none;
}
.icon-specimen {
  gap: 20px;
  padding-block: 12px;
  color: var(--color-accent);
}
body[data-concept="dock"] .nav-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
body[data-concept="dock"] .dock-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #07181fb3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms,
    visibility 240ms;
}
body[data-concept="dock"].dock-open {
  overflow: hidden;
}
body[data-concept="dock"].dock-open .navigation {
  width: 252px;
  box-shadow: 16px 0 48px #07181f38;
}
body[data-concept="dock"].dock-open .dock-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body[data-concept="dock"].dock-open .nav-links button > span,
body[data-concept="dock"].dock-open .navigation .wordmark > span,
body[data-concept="dock"].dock-open .dock-toggle > span {
  opacity: 1;
  transition-delay: 70ms;
}
body[data-concept="dock"].dock-open .dock-toggle svg {
  transform: rotate(180deg);
}
body[data-concept="dock"] #content {
  padding: 16px;
}
body[data-concept="dock"] .app-header {
  min-height: 58px;
  padding: 10px 16px;
}
body[data-concept="dock"] .page-heading {
  margin-bottom: 20px;
}
body[data-concept="dock"] .dashboard-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 16px;
}
body[data-concept="dock"] .services {
  display: block;
}
body[data-concept="dock"] .panel,
body[data-concept="dock"] .activity {
  padding: 18px;
  border-radius: 12px;
}
body[data-concept="dock"] .activity {
  margin-top: 18px;
}
body[data-concept="dock"] .metric {
  padding: 14px 16px;
}
body[data-concept="dock"] .metric-value {
  font-size: 31px;
}
body[data-concept="dock"] .page-heading,
body[data-concept="dock"] .metrics,
body[data-concept="dock"] .panel,
body[data-concept="dock"] .activity {
  animation: dock-reveal 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body[data-concept="dock"] .metrics {
  animation-delay: 35ms;
}
body[data-concept="dock"] .panel {
  animation-delay: 65ms;
}
body[data-concept="dock"] .activity {
  animation-delay: 95ms;
}
body[data-concept="dock"] button {
  transition:
    background 140ms,
    border-color 140ms,
    transform 140ms;
}
body[data-concept="dock"] button:not(:disabled):active {
  transform: translateY(1px);
}
body[data-concept="dock"] dialog[open] {
  animation: dock-reveal 200ms ease-out both;
}
.dock-account-area {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}
.dock-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 0;
  min-height: 48px;
  white-space: nowrap;
  overflow: hidden;
  background: transparent;
}
.dock-account > .avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 10px;
}
.account-identity {
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: 0;
  transition: opacity 140ms;
}
.account-identity b {
  font-size: 14px;
}
.account-identity small {
  font-size: 12px;
}
.account-more {
  margin-left: auto;
  opacity: 0;
}
body[data-concept="dock"].dock-open .account-identity,
body[data-concept="dock"].dock-open .account-more {
  opacity: 1;
  transition-delay: 70ms;
}
.account-menu {
  position: fixed;
  inset: auto auto 78px 16px;
  margin: 0;
  width: 236px;
  padding: 7px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  box-shadow: 0 14px 40px #07181f40;
}
.account-menu:popover-open {
  display: flex;
  flex-direction: column;
  animation: dock-reveal 170ms ease-out;
}
.account-menu button {
  border: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 12px;
  min-height: 46px;
  background: transparent;
}
.account-menu button:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
}
.account-menu button.account-separator {
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
@keyframes dock-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  body[data-concept="dock"] .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  body[data-concept="dock"] .shell {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 6px;
    gap: 6px;
  }
  body[data-concept="dock"] .navigation,
  body[data-concept="dock"] .navigation:not(.open) {
    display: flex;
    position: fixed;
    left: 6px;
    top: 6px;
    width: 60px;
    height: calc(100dvh - 12px);
    padding: 8px 4px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
  }
  body[data-concept="dock"] .navigation .wordmark {
    display: grid;
    padding-left: 0;
  }
  body[data-concept="dock"] .nav-links {
    display: flex;
    flex-direction: column;
  }
  body[data-concept="dock"] .nav-links button {
    padding: 11px 0;
  }
  body[data-concept="dock"] .mobile-menu {
    display: none;
  }
  body[data-concept="dock"] .navigation .nav-icon {
    display: block;
  }
  body[data-concept="dock"] #content {
    padding: 16px 10px;
  }
  body[data-concept="dock"] .app-header {
    padding: 10px;
  }
  .dock-toggle {
    padding: 10px 14px;
  }
  body[data-concept="dock"] .breadcrumb {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  body[data-concept="dock"] .header-actions {
    gap: 6px;
  }
  body[data-concept="dock"] .panel,
  body[data-concept="dock"] .activity {
    padding: 14px;
  }
  body[data-concept="dock"] h1 {
    font-size: 24px;
  }
  body[data-concept="dock"].dock-open .navigation {
    width: min(252px, calc(100vw - 24px));
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-concept="dock"] *,
  body[data-concept="dock"] *:before,
  body[data-concept="dock"] *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body[data-concept="dock"] .header-actions > .avatar {
  display: none;
}
.identity-body {
  max-width: 1100px;
}
.identity-demo {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-muted);
}
.identity-profile-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0 25px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.identity-profile-summary h2 {
  font: 600 25px/1.3 var(--font-heading);
  margin: 0 0 3px;
}
.identity-profile-summary p {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 14px;
}
.identity-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  color: var(--color-accent);
  font: 600 18px var(--font-body);
  flex-shrink: 0;
}
.identity-avatar.large {
  width: 76px;
  height: 76px;
  font-size: 25px;
  border-radius: 19px;
}
.identity-roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.identity-roles span {
  font-size: 12px;
  color: var(--color-muted);
  padding-right: 9px;
  border-right: 1px solid var(--color-border);
}
.identity-roles span:last-child {
  border: 0;
}
.identity-split {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.45fr);
  gap: 55px;
}
.identity-split > section p {
  font-size: 14px;
  max-width: 30ch;
}
.identity-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.identity-readonly {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  font-size: 14px;
}
.identity-readonly > span:first-child {
  color: var(--color-muted);
}
.identity-avatar-editor {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid var(--color-border);
}
.identity-avatar-editor > div:last-child {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.file-button {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 9px 13px;
  cursor: pointer;
  font-size: 14px;
  background: var(--color-surface);
}
.file-button:hover {
  background: var(--color-row-hover);
  border-color: var(--color-accent);
}
.file-button:focus-within {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  min-height: 0 !important;
}
.identity-footnote {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--color-muted);
  padding-top: 24px;
}
.identity-footnote code {
  color: var(--color-text);
}
.identity-section {
  padding: 8px 0 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}
.identity-section:last-of-type {
  margin-bottom: 0;
}
.identity-setting-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}
.identity-setting-row h3,
.identity-session h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.identity-setting-row p,
.identity-session p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}
.identity-setting-row p.status {
  color: var(--color-success);
}
.identity-setting-row p.status.warn {
  color: var(--color-danger);
}
.identity-section .section-title {
  align-items: center;
}
.identity-section .section-title h2 {
  margin-bottom: 5px;
}
.identity-section .section-title p {
  font-size: 14px;
  margin: 0;
}
.identity-security-note p,
.identity-explanation {
  max-width: 75ch;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}
.identity-explanation {
  margin: 18px 0 0;
}
.identity-security .identity-section {
  padding: 0;
  margin-bottom: 24px;
  border-bottom: 0;
}
.identity-security .identity-section > h2,
.identity-security .identity-section > .section-title {
  margin: 0;
  padding: 12px 16px;
}
.identity-security .identity-setting-row {
  padding: 16px;
  position: relative;
  border-top: 0;
  border-radius: var(--radius-control);
}
.identity-security .identity-setting-row::before {
  content: "";
  position: absolute;
  inset: 0 16px auto;
  border-top: 1px solid var(--color-border);
  pointer-events: none;
}
.identity-security .identity-setting-row > div {
  min-width: 0;
}
.identity-security .identity-setting-row > button {
  flex-shrink: 0;
}
.identity-security .identity-setting-row small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
}
.identity-security .identity-security-note {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
.identity-security-note > p {
  margin: 0 16px;
}
@media (max-width: 480px) {
  .identity-security .identity-setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.identity-list-heading {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 12px;
  padding-bottom: 12px;
}
.identity-session {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}
.identity-session time {
  font:
    12px Consolas,
    monospace;
  color: var(--color-muted);
  min-width: 105px;
}
.identity-device-icon .nav-icon {
  width: 26px;
  height: 26px;
}
.identity-apps {
  display: flex;
  flex-direction: column;
}
.identity-app {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--color-border);
}
.identity-app h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.identity-app p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 5px;
}
.identity-app > div {
  flex: 1;
  min-width: 0;
}
.identity-app > button {
  flex-shrink: 0;
}
.app-monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font:
    bold 16px Consolas,
    monospace;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.theme-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}
.theme-choice {
  text-align: left;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-choice[aria-pressed="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.theme-choice > strong {
  font-size: 16px;
}
.theme-choice small {
  font-size: 12px;
  line-height: 1.5;
}
.theme-thumbnail {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 16px 1fr;
  gap: 7px;
  width: 100%;
  height: 120px;
  padding: 10px;
  border-radius: 5px;
  background: #edf3f3;
  border: 1px solid #c6d7da;
}
.theme-thumbnail i {
  display: block;
  background: #fbfdfd;
  border: 1px solid #c6d7da;
  border-radius: 3px;
}
.theme-thumbnail i:first-child {
  grid-row: 1/3;
  background: #d5e4e5;
}
.theme-thumbnail.dark {
  background: #111f26;
  border-color: #3b535c;
}
.theme-thumbnail.dark i {
  background: #192c34;
  border-color: #3b535c;
}
.theme-thumbnail.dark i:first-child {
  background: #2e4b53;
}
.identity-gate {
  max-width: 540px;
  margin: 50px auto;
  padding: 28px;
  text-align: center;
}
.identity-gate h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.identity-gate > p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}
.identity-gate .component-row {
  justify-content: center;
  margin-top: 24px;
}
.identity-gate > .skeleton {
  margin: 25px auto;
  max-width: 250px;
}
.identity-gate-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.identity-gate-symbol .nav-icon {
  width: 36px;
  height: 36px;
}
.identity-state-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.identity-state-controls .field {
  margin: 0;
  min-width: 240px;
}
.identity-state-controls code {
  font-size: 12px;
  color: var(--color-muted);
}
.identity-state-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  margin-top: 25px;
  min-height: 340px;
  background: var(--color-surface);
}
.identity-state-preview .identity-gate {
  margin: 16px auto;
}
.identity-editor-dialog {
  width: min(850px, calc(100% - 32px));
}
.identity-role-fields {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 20px 0 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.identity-role-fields legend {
  font-size: 14px;
  padding: 8px 12px 8px 0;
}
.identity-role-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.identity-grants {
  margin-top: 25px;
}
.identity-grants h3 {
  margin: 0;
}
.grant-bulk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  margin: 15px 0;
}
.identity-grants table {
  min-width: 600px;
  font-size: 13px;
}
.identity-grants td,
.identity-grants th {
  padding: 12px 10px;
}
.identity-grants small {
  display: block;
  margin-top: 4px;
}
.grant-actions summary {
  padding: 4px 12px;
  list-style: none;
  font-size: 18px;
  line-height: 1.2;
}
.grant-actions .dropdown {
  position: static;
  box-shadow: none;
  min-width: 140px;
}
.grant-actions .dropdown button {
  font-size: 12px;
}
.dock-account .avatar img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
}
body[data-concept="dock"] .identity-body {
  animation: dock-reveal 260ms ease-out both;
}
@media (max-width: 900px) {
  .identity-split {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .identity-split > section p {
    max-width: 65ch;
  }
  .identity-session {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .identity-session time {
    grid-column: 2;
    grid-row: 2;
  }
  .identity-session button {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 13px;
  }
  .identity-state-controls .field {
    min-width: 200px;
  }
}
@media (max-width: 600px) {
  .identity-profile-summary {
    gap: 14px;
    padding-bottom: 20px;
  }
  .identity-profile-summary h2 {
    font-size: 22px;
  }
  .identity-avatar.large {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    font-size: 21px;
  }
  .identity-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .identity-avatar-editor {
    gap: 12px;
    align-items: flex-start;
  }
  .identity-avatar-editor > div:last-child {
    gap: 8px;
  }
  .identity-avatar-editor small {
    width: 100%;
  }
  .identity-readonly {
    display: block;
  }
  .identity-readonly > * {
    display: block;
    margin-bottom: 4px;
  }
  .identity-setting-row {
    gap: 10px;
  }
  .identity-section .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .identity-list-heading > span:last-child {
    display: none;
  }
  .identity-session {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }
  .identity-session time {
    min-width: 0;
  }
  .identity-session button {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
  .identity-app {
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .identity-app > div {
    flex-basis: calc(100% - 60px);
  }
  .identity-app > button {
    margin-left: 60px;
  }
  .theme-choice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .theme-thumbnail {
    height: 100px;
  }
  .identity-gate {
    margin: 20px auto;
    padding: 15px 6px;
  }
  .identity-gate h1 {
    font-size: 23px;
  }
  .identity-state-controls .field {
    width: 100%;
    min-width: 0;
  }
  .identity-state-preview {
    min-height: 320px;
    padding: 12px;
  }
  .identity-state-preview .identity-gate {
    margin: 10px auto;
  }
  .identity-grants .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .grant-bulk {
    align-items: flex-start;
    flex-direction: column;
  }
  .identity-footnote {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .identity-editor-dialog {
    padding: 20px;
  }
  .identity-role-fields {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-concept="dock"] .identity-body {
    animation: none !important;
  }
}
#factor-error {
  min-height: 42px;
  line-height: 1.5;
  margin: 12px 0;
}
@media (max-width: 600px) {
  #factor-error {
    min-height: 60px;
  }
}
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  --scroll-track: var(--color-bg);
  --scroll-thumb: color-mix(
    in srgb,
    var(--color-muted) 75%,
    var(--color-surface)
  );
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
::-webkit-scrollbar-corner {
  background: var(--scroll-track);
}
dialog,
.table-wrap,
.chart-data-scroll {
  scrollbar-gutter: stable;
}
:is(
  tbody tr,
  .service,
  .activity-row,
  .identity-setting-row,
  .identity-session,
  .identity-app,
  .token-row
) {
  transition: background-color 120ms ease-out;
}
:is(
  tbody tr,
  .service,
  .activity-row,
  .identity-setting-row,
  .identity-session,
  .identity-app,
  .token-row
):is(:hover, :focus-within) {
  background-color: var(--color-row-hover);
}
:is(
  tbody tr,
  .service,
  .activity-row,
  .identity-setting-row,
  .identity-session,
  .identity-app,
  .token-row
):active {
  background-color: var(--color-row-active);
}
tbody tr:has(input[data-select]:checked),
tbody tr:has(input[data-grant]:checked) {
  background-color: var(--color-row-active);
}
@media (prefers-reduced-motion: reduce) {
  :is(
    tbody tr,
    .service,
    .activity-row,
    .identity-setting-row,
    .identity-session,
    .identity-app,
    .token-row
  ) {
    transition: none;
  }
}

html {
  background: var(--color-bg);
  color: var(--color-text);
}
html:has(body[data-theme="dark"]) {
  color-scheme: dark;
}
/* Navigation rows are actions, with explicit feedback independent of generic buttons. */
body[data-concept="dock"] .nav-links button[aria-current="page"] {
  background: var(--color-row-active);
  color: var(--color-accent);
}
body[data-concept="dock"]
  .nav-links
  button:not([aria-current="page"]):is(:hover, :focus-visible) {
  background: var(--color-row-hover);
  color: var(--color-text);
}
body[data-concept="dock"] .nav-links button:active {
  background: var(--color-row-active);
}
body[data-concept="dock"] .nav-links button {
  transition:
    background-color 120ms ease-out,
    color 120ms ease-out;
}

#content:focus {
  outline: none;
}
.sample-control-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: stretch;
  max-width: 440px;
  margin-top: 18px;
}
.sample-control-row > :is(input, select) {
  width: 100%;
  min-width: 0;
  height: calc(var(--size-control) + 8px);
}
input[readonly] {
  cursor: default;
  background: color-mix(in srgb, var(--color-muted) 6%, var(--color-surface));
}
.choice-pill,
.form-row .choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.choice-pill > :is(input[type="checkbox"], input[type="radio"]) {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.choice-pill > span {
  line-height: 20px;
}
.choice-pill:hover {
  background: var(--color-row-hover);
}
.choice-pill:has(input:checked) {
  background: var(--color-row-active);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.choice-pill:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.choice-pill > input:focus-visible {
  outline: none;
}
.choice-pill:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
body[data-concept="dock"] .navigation {
  --nav-icon-track: 50px;
}
body[data-concept="dock"] .navigation > .dock-brand,
body[data-concept="dock"] .dock-account-area {
  flex-shrink: 0;
}
body[data-concept="dock"] .navigation > .nav-links {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
body[data-concept="dock"]:not(.dock-open) .navigation > .nav-links {
  scrollbar-width: none;
}
body[data-concept="dock"] .nav-links > button,
.nav-group {
  flex-shrink: 0;
}
.nav-group {
  min-width: 0;
}
.nav-group-label {
  position: relative;
  display: block;
  padding-right: 24px;
}
.nav-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 16px;
  translate: 0 -50%;
  transition: transform 160ms ease;
}
.nav-group.is-expanded .nav-chevron {
  transform: rotate(180deg);
}
.nav-submenu-container {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 180ms ease,
    opacity 140ms ease;
}
.nav-group.is-expanded .nav-submenu-container {
  grid-template-rows: 1fr;
  opacity: 1;
}
.nav-submenu-clip {
  min-height: 0;
  overflow: hidden;
}
.nav-submenu-list {
  margin: 4px 0 4px 25px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--color-border);
  display: grid;
  gap: 4px;
}
body[data-concept="dock"] .nav-submenu-list button {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 8px 8px 0;
  min-height: 40px;
  font-size: 13px;
}
body[data-concept="dock"] .nav-submenu-list .nav-icon {
  width: 18px;
  height: 18px;
}
body[data-concept="dock"] .nav-group-toggle[data-active="true"] {
  background: var(--color-row-active);
  color: var(--color-accent);
}
body[data-concept="dock"]
  .nav-links
  .nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
  background: var(--color-row-active);
  color: var(--color-accent);
}
@media (max-width: 600px) {
  .sample-control-row {
    grid-template-columns: 1fr;
  }
  .choice-pill,
  .form-row .choice-pill {
    min-height: 44px;
  }
  body[data-concept="dock"] .nav-submenu-list button {
    min-height: 44px;
  }
}

.selection-specimen fieldset {
  margin: 0;
  min-width: 0;
}
.selection-specimen legend {
  padding: 0;
}

body[data-concept="dock"] .navigation .wordmark > span {
  text-align: left;
}
body[data-concept="dock"].dock-open
  .nav-links
  .nav-group-toggle[data-active="true"] {
  background: transparent;
  color: var(--color-accent);
}
body[data-concept="dock"].dock-open
  .nav-links
  .nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
  background: var(--color-row-hover);
  color: var(--color-text);
}
:is(#toast, .anidev-toast) .toast-dismiss:hover:not(:disabled) {
  background: var(--color-row-hover);
  color: var(--color-text);
}
.choice-pill:has(input:disabled) > input {
  cursor: not-allowed;
}

/* One shared surface for related choices; inner options have no individual bubbles. */
.choice-fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}
.choice-fieldset legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color-muted);
}
.choice-group {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  overflow: hidden;
  vertical-align: top;
}
.choice-group-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.choice-group-option + .choice-group-option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-left: 1px solid var(--color-border);
  pointer-events: none;
}
.choice-group-option > :is(input[type="checkbox"], input[type="radio"]) {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.choice-group-option > span {
  min-width: 0;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.choice-group-option:hover {
  background: var(--color-row-hover);
}
.choice-group-option:has(input:checked) {
  background: var(--color-row-active);
  color: var(--color-accent);
}
.choice-group-option:has(input:focus-visible) {
  background: var(--color-row-hover);
}
.choice-group-option > input:focus-visible {
  outline: none;
}
.choice-group-option:has(input:disabled),
.choice-group-option > input:disabled {
  cursor: not-allowed;
}
.choice-group-option:has(input:disabled) {
  opacity: 0.5;
}
.choice-group--vertical {
  display: flex;
  flex-direction: column;
  width: min(280px, 100%);
  border-radius: 18px;
}
.choice-group--vertical > .choice-group-option + .choice-group-option::before {
  inset: 0 0 auto;
  border-left: 0;
  border-top: 1px solid var(--color-border);
}

.search-select-example {
  margin-top: 20px;
}
.search-select {
  max-width: 320px;
  min-width: 0;
}
.search-select-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.search-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: calc(var(--size-control) + 8px);
  padding: 8px 10px;
  text-align: left;
}
.search-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-select-trigger > svg {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 140ms ease;
}
.search-select-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}
.search-select-popup {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  max-height: 360px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px #07181f30;
  overflow: hidden;
}
.search-select-popup:popover-open {
  display: flex;
  flex-direction: column;
  animation: search-select-enter 140ms ease-out;
}
.search-select-search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.search-select-search > svg {
  position: absolute;
  left: 21px;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-muted);
  pointer-events: none;
}
.search-select-search input {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px 7px 34px;
  font-size: 13px;
}
.search-select-search input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}
.search-select-options {
  min-height: 0;
  overflow-y: auto;
  padding: 4px;
  scrollbar-gutter: stable;
}
.search-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  min-height: 38px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.search-select-option > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.search-select-option[aria-selected="true"] {
  color: var(--color-accent);
  font-weight: 600;
}
.search-select-option.is-active {
  background: var(--color-row-hover);
}
.search-select-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.search-select-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
}
.search-select-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}
.search-select-empty[hidden] {
  display: none;
}
.search-select-count {
  padding: 7px 14px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-muted);
  flex-shrink: 0;
}
@keyframes search-select-enter {
  from {
    opacity: 0;
    translate: 0 -3px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.copy-field-example {
  margin-top: 20px;
}
.copy-input {
  position: relative;
  min-width: 0;
}
.copy-input > input {
  width: 100%;
  height: calc(var(--size-control) + 8px);
  padding-left: 44px;
}
.copy-input .input-copy-action {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  margin-block: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
}
.copy-input .input-copy-action:hover {
  background: var(--color-row-hover);
  color: var(--color-text);
}
.copy-input .input-copy-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}
body[data-concept="dock"] .copy-input .input-copy-action:active {
  transform: none;
}

.account-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px 3px;
  margin-top: 6px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-muted);
}
.account-theme-options {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--color-bg);
}
.account-menu .account-theme-options button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 8px;
  border-radius: 50%;
  color: var(--color-muted);
}
.account-menu .account-theme-options button[aria-pressed="true"] {
  background: var(--color-row-active);
  color: var(--color-accent);
}
.account-menu .account-theme-options button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.account-menu .account-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: stretch;
}
.account-menu .account-parent > .account-submenu-toggle {
  padding: 8px;
  justify-content: center;
  min-width: 0;
}
.account-menu .account-parent-link {
  min-width: 0;
  width: 100%;
}
.account-menu .account-parent-link > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-submenu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px #07181f35;
  overflow-y: auto;
}
.account-submenu:popover-open {
  display: flex;
  flex-direction: column;
  animation: account-flyout-enter 140ms ease-out;
}
.account-submenu button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 44px;
  padding: 10px;
  white-space: normal;
}
.account-submenu button > svg {
  flex-shrink: 0;
}
.account-submenu button > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.account-submenu button:is(:hover, :focus-visible) {
  background: var(--color-row-hover);
}
.account-submenu [aria-current="page"] {
  background: var(--color-row-active);
  color: var(--color-accent);
}
@keyframes account-flyout-enter {
  from {
    opacity: 0;
    translate: -4px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.guest-page {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  padding: 24px;
  width: 100%;
}
.guest-page > .identity-gate {
  max-width: 560px;
  margin: 0 auto;
}
body[data-session="loading"] .shell,
body[data-session="guest"] .shell,
body[data-session="unavailable"] .shell {
  display: none;
}
body[data-session="authenticated"] #session-screen {
  display: none;
}
#session-screen {
  min-height: 100dvh;
  padding: 24px;
  display: grid;
  place-content: center;
}
#session-screen .error-page {
  margin: 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .account-submenu:popover-open {
    animation: none;
  }
}
/* Fixed identity controls stay outside the API-driven service menu. */
[data-fixed-account] {
  flex-shrink: 0;
}
[data-fixed-account] .account-identity {
  min-width: 0;
}
[data-fixed-account] .account-identity :is(b, small) {
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-fixed-account] .account-menu {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
[data-fixed-account] .dock-account[data-active="true"],
[data-fixed-account] [aria-current="page"] {
  background: var(--color-row-active);
  color: var(--color-accent);
}

.error-page {
  width: 100%;
  max-width: 680px;
  margin: clamp(24px, 8vh, 80px) auto;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}
.error-page-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: var(--color-accent);
  background: var(--color-row-hover);
}
.error-page-code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.error-page h1 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.error-page-description {
  color: var(--color-muted);
  max-width: 60ch;
  margin-bottom: 24px;
}
.error-page-reason {
  padding: 16px 18px;
  border-left: 3px solid var(--color-danger);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--color-danger) 7%, var(--color-surface));
  margin-bottom: 24px;
}
.error-page-reason h2 {
  font-size: 14px;
  margin-bottom: 8px;
}
.error-page-reason p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.error-preview-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.error-page-reference {
  color: var(--color-muted);
  font-size: 12px;
  margin: 24px 0 0;
  overflow-wrap: anywhere;
}
.error-page[data-error-status="banned"] .error-page-symbol {
  color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface));
}
@media (max-width: 600px) {
  .error-page {
    margin-block: 20px;
    padding: 20px;
  }
  .error-page-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- mobile-dock.css ---- */
.mobile-recent,
.mobile-menu-icon {
  display: none;
}
@media (max-width: 600px),
  (max-width: 900px) and (hover: none) and (pointer: coarse) {
  body[data-concept="dock"] .shell:has(> .navigation[data-mobile-dock]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px calc(6px + env(safe-area-inset-right, 0px))
      calc(88px + env(safe-area-inset-bottom, 0px))
      calc(6px + env(safe-area-inset-left, 0px));
  }
  body[data-concept="dock"]
    .shell:has(> .navigation[data-mobile-dock])
    > .main-column {
    grid-column: 1;
    min-width: 0;
  }
  body[data-concept="dock"]
    .shell:has(> .navigation[data-mobile-dock])
    .mobile-menu {
    display: none;
  }
  body[data-concept="dock"] .shell > .navigation[data-mobile-dock] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    align-items: center;
    gap: 6px;
    position: fixed;
    top: auto;
    left: calc(8px + env(safe-area-inset-left, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: calc(
      100% - 16px - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    );
    max-width: none;
    height: 64px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 6px 24px #07181f24;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .mobile-recent {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text);
    grid-row: 1;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .mobile-recent-current {
    grid-column: 1;
    background: var(--color-row-active);
    color: var(--color-accent);
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .mobile-recent-previous {
    grid-column: 2;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .mobile-recent:disabled {
    background: transparent;
    opacity: 0.35;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-brand {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 10px;
    gap: 0;
    border-radius: 12px;
    color: var(--color-text);
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-brand
    > :not(.mobile-menu-icon) {
    display: none;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-brand
    > .mobile-menu-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    opacity: 1;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-brand
    > .mobile-menu-icon
    svg {
    width: 24px;
    height: 24px;
    transform: none;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-brand[aria-expanded="true"] {
    background: var(--color-row-active);
    color: var(--color-accent);
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .dock-account-area {
    grid-column: 4;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    .dock-account {
    display: grid;
    place-items: center;
    width: 100%;
    height: 50px;
    min-height: 44px;
    padding: 8px;
    gap: 0;
    border-radius: 12px;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    .dock-account
    > .avatar {
    width: 28px;
    height: 28px;
    margin: 0;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    :is(.account-identity, .account-more),
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > :is(.workspace-label, .nav-bottom) {
    display: none;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    width: 100%;
    max-height: min(
      68dvh,
      calc(100dvh - 112px - env(safe-area-inset-bottom, 0px))
    );
    padding: 10px;
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 -8px 32px #07181f24;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  body[data-concept="dock"]:not(.dock-open)
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links {
    display: none;
  }
  body[data-concept="dock"].dock-open
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links {
    display: flex;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links::before {
    content: attr(data-mobile-menu-label);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted);
    padding: 4px 12px 10px;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links
    button {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    min-height: 46px;
    white-space: normal;
    text-align: left;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    > .nav-links
    button
    > span {
    opacity: 1;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    :is(.mobile-recent, .dock-brand, .dock-account):active {
    transform: none;
  }
  body[data-concept="dock"]
    .shell
    > .navigation[data-mobile-dock]
    .account-menu {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    left: auto;
    right: calc(8px + env(safe-area-inset-right, 0px));
  }
  body[data-session="authenticated"]:has(.navigation[data-mobile-dock])
    :is(#toast, .anidev-toast) {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- workspaces.css ---- */
.ssh-workspace,
.log-workspace {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  overflow: hidden;
  min-width: 0;
}
.workspace-toolbar,
.workspace-context,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.workspace-toolbar {
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
}
.workspace-context {
  gap: 14px;
  min-width: 0;
}
.workspace-actions {
  gap: 6px;
}
.workspace-actions button,
.workspace-actions .file-button,
.log-footer button,
.ssh-find button,
.log-details button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.workspace-actions button > svg,
.workspace-actions .file-button > svg,
.log-footer svg,
.ssh-find button > svg,
.log-details button > svg {
  flex-shrink: 0;
}
.workspace-host {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-muted);
}
.workspace-host select {
  font:
    13px Consolas,
    monospace;
  min-height: 32px;
  padding: 5px 8px;
}
.workspace-meta {
  font:
    12px/1.5 Consolas,
    monospace;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.workspace-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 14px 0 0;
  max-width: 100ch;
}
.workspace-loading {
  padding: 24px;
  color: var(--color-muted);
}
.ssh-terminal {
  height: clamp(340px, 57dvh, 650px);
  padding: 0;
  background: #000;
  color: #e3f2f3;
  color-scheme: dark;
  min-width: 0;
}
.ssh-terminal .xterm {
  height: 100%;
  padding: 14px 12px 10px;
}
.ssh-terminal .workspace-loading {
  color: #a5bec5;
}
.ssh-terminal .xterm:focus-visible {
  outline: none;
}
.ssh-terminal:focus-within {
  outline: 2px solid #77cbbb;
  outline-offset: -2px;
}
.ssh-terminal .xterm .xterm-viewport {
  scrollbar-gutter: auto;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-top: 1px solid var(--color-border);
  font:
    11px/1.5 Consolas,
    monospace;
  color: var(--color-muted);
}
.terminal-status button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 12px var(--font-body);
  min-height: 30px;
  padding: 5px 8px;
}
.terminal-status button[aria-pressed="true"] {
  color: var(--color-accent);
}
.terminal-dimensions {
  margin-left: auto;
}
.terminal-help {
  border-top: 1px solid var(--color-border);
  padding: 4px 14px;
}
.terminal-help summary {
  border: 0;
  padding: 9px 0;
  font-size: 12px;
  color: var(--color-muted);
}
.terminal-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 12px 0;
}
.terminal-shortcuts p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}
.terminal-shortcuts kbd {
  color: var(--color-text);
  font:
    12px Consolas,
    monospace;
}
.terminal-help .workspace-note {
  margin: 0 0 14px;
}
.ssh-find {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.ssh-find[hidden],
.log-details[hidden],
.log-empty[hidden],
.log-workspace [hidden] {
  display: none;
}
.ssh-find label {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 130px;
  font-size: 12px;
}
.ssh-find input {
  width: 100%;
  min-height: 34px;
  font-size: 13px;
}
.ssh-find [role="status"] {
  font-size: 12px;
  color: var(--color-muted);
  align-self: center;
}
.ssh-workspace:fullscreen {
  border: 0;
  border-radius: 0;
  padding: 8px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.ssh-workspace:fullscreen .ssh-terminal {
  flex: 1;
  height: auto;
  min-height: 0;
}
.ssh-workspace:fullscreen .terminal-help {
  max-height: 30dvh;
  overflow: auto;
}
.log-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 180px auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--color-border);
}
.log-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  min-width: 0;
}
.log-filters input,
.log-filters select {
  width: 100%;
  font-size: 13px;
  min-height: 36px;
}
.log-reset {
  font-size: 12px;
  min-height: 36px;
}
.log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.has-log-details .log-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.log-main {
  min-width: 0;
}
.log-column-labels,
.log-row {
  display: grid;
  grid-template-columns: 38px 108px 64px 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.log-column-labels {
  padding: 10px 14px;
  color: var(--color-muted);
  font-size: 11px;
  border-bottom: 1px solid var(--color-border);
}
.log-viewport {
  height: clamp(340px, 57dvh, 650px);
  overflow: auto;
  scrollbar-gutter: stable;
  outline-offset: -2px;
}
.log-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}
.log-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-border) 55%, transparent);
  border-radius: 0;
  text-align: left;
  background: transparent;
  padding: 9px 14px;
  font:
    12px/1.6 Consolas,
    "Cascadia Mono",
    monospace;
  min-height: 36px;
}
.log-row:hover:not(:disabled),
.log-row:focus-visible {
  background: var(--color-row-hover);
}
.log-row:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.log-row.is-selected {
  background: var(--color-row-active);
}
.log-row mark {
  background: color-mix(in srgb, var(--color-accent) 24%, var(--color-surface));
  color: var(--color-text);
  border-radius: 2px;
}
.log-number,
.log-row time {
  color: var(--color-muted);
}
.log-number {
  text-align: right;
  font-size: 11px;
}
.log-level {
  font-size: 10px;
  line-height: 18px;
  padding: 1px 5px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  justify-self: start;
}
.log-level--info {
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
}
.log-level--debug {
  color: var(--color-muted);
}
.log-level--warn {
  color: var(--color-text);
  border-style: dashed;
  font-weight: bold;
}
.log-level--error {
  color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 9%, var(--color-surface));
  border-color: color-mix(
    in srgb,
    var(--color-danger) 35%,
    var(--color-surface)
  );
  font-weight: bold;
}
.log-source {
  color: var(--color-accent);
  overflow-wrap: anywhere;
}
.log-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.log-details {
  padding: 14px;
  border-left: 1px solid var(--color-border);
  background: var(--color-bg);
  min-width: 0;
}
.log-details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.log-details-heading h2 {
  margin: 0;
  font-size: 15px;
}
.log-details > p {
  font-size: 11px;
  color: var(--color-muted);
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.log-details pre {
  font:
    12px/1.7 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 16px 0;
  max-height: 350px;
  overflow: auto;
}
.log-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-muted);
}
.log-paging {
  display: flex;
  gap: 4px;
}
.log-footer [data-log="follow"][aria-pressed="true"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.log-footer [data-log-unseen] {
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0 5px;
  font-size: 10px;
}
.log-empty {
  padding: 48px 20px;
  text-align: center;
}
.log-empty h2 {
  margin-bottom: 8px;
}
.log-empty p {
  font-size: 13px;
  color: var(--color-muted);
}
@media (max-width: 1100px) {
  .has-log-details .log-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .log-details {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
  .has-log-details .log-viewport {
    max-height: 35dvh;
  }
  .log-filters {
    grid-template-columns: minmax(0, 1fr) 120px 130px;
  }
  .log-reset {
    grid-column: 3;
  }
  .log-column-labels,
  .log-row {
    grid-template-columns: 30px 102px 60px 75px minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .workspace-toolbar {
    padding: 10px;
    gap: 12px;
  }
  .workspace-context {
    gap: 8px;
  }
  .workspace-actions {
    width: 100%;
  }
  .workspace-actions [data-ssh="fullscreen"] span {
    display: none;
  }
  .workspace-host {
    gap: 5px;
  }
  .workspace-meta {
    font-size: 11px;
  }
  .ssh-terminal {
    padding: 0;
    height: 53dvh;
    min-height: 330px;
  }
  .terminal-status {
    gap: 8px;
    padding: 8px 10px;
  }
  .terminal-status [data-keyboard-status] {
    order: 4;
    flex-basis: 100%;
    font:
      10px/1.5 Consolas,
      monospace;
  }
  .terminal-help {
    padding-inline: 10px;
  }
  .terminal-shortcuts {
    grid-template-columns: 1fr;
  }
  .ssh-find {
    padding: 10px;
  }
  .log-filters {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    gap: 10px;
  }
  .log-search {
    grid-column: 1/-1;
  }
  .log-reset {
    grid-column: auto;
    justify-self: start;
  }
  .log-column-labels {
    display: none;
  }
  .log-row {
    grid-template-columns: 28px 1fr auto;
    gap: 4px 8px;
    padding: 10px;
    font-size: 11px;
  }
  .log-number {
    grid-row: 1/3;
  }
  .log-row time {
    grid-column: 2;
  }
  .log-level {
    grid-column: 3;
    grid-row: 1;
  }
  .log-source {
    grid-column: 2;
    grid-row: 2;
  }
  .log-message {
    grid-column: 2/-1;
    grid-row: 3;
  }
  .log-footer {
    padding: 10px;
    gap: 10px;
  }
  .log-footer > span {
    flex-basis: 100%;
  }
  .log-viewport {
    height: 54dvh;
    min-height: 300px;
  }
  .log-details {
    padding: 12px;
  }
  .workspace-note {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .ssh-terminal .xterm {
    padding: 12px 8px;
  }
}
body[data-concept="dock"] .log-workspace .log-row:active {
  transform: none;
}

/* ---- content-workspaces.css ---- */
.breadcrumbs {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  font-size: 13px;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 2px 0;
  white-space: nowrap;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 4px;
}
.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}
.breadcrumb-separator {
  color: var(--color-muted);
  opacity: 0.6;
}
.demo-label {
  font-size: 12px;
  color: var(--color-muted);
}
.markdown-body {
  line-height: 1.75;
  min-width: 0;
  overflow-wrap: anywhere;
}
.markdown-body :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.4em 0 0.6em;
  line-height: 1.3;
  scroll-margin-top: 24px;
}
.markdown-body > :first-child {
  margin-top: 0;
}
.markdown-body p {
  margin-bottom: 1em;
}
.markdown-body blockquote {
  margin: 1em 0;
  padding: 10px 18px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-row-hover);
  border-radius: 0 10px 10px 0;
}
.markdown-body blockquote > :last-child {
  margin-bottom: 0;
}
.markdown-body pre {
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  line-height: 1.6;
}
.markdown-body code {
  font:
    13px/1.6 ui-monospace,
    Consolas,
    monospace;
}
.markdown-body :not(pre) > code {
  padding: 2px 5px;
  background: var(--color-row-hover);
  border-radius: 4px;
}
.markdown-body table {
  display: block;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
}
.markdown-body :is(th, td) {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
}
.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.markdown-body li > input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 6px;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
.hljs-comment,
.hljs-quote {
  color: var(--color-muted);
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-attribute,
.hljs-meta,
.hljs-title,
.hljs-section,
.hljs-built_in {
  color: var(--color-accent);
}
.hljs-string,
.hljs-regexp,
.hljs-addition {
  color: var(--color-success);
}
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
  color: var(--color-warning);
}
.hljs-deletion {
  color: var(--color-danger);
}
.code-editor {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.code-editor:focus-within {
  border-color: var(--color-accent);
}
.code-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}
.code-editor-toolbar > label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    12px ui-monospace,
    monospace;
}
.code-editor-toolbar > div {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.code-editor-toolbar :is(select, button) {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 11px;
}
.code-editor-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  height: var(--editor-height, 320px);
  overflow: hidden;
}
.code-editor-gutter {
  position: relative;
  overflow: hidden;
  color: var(--color-muted);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  user-select: none;
}
.code-editor-gutter pre {
  margin: 0;
  padding: 12px 8px;
  text-align: right;
  font:
    13px/22px ui-monospace,
    Consolas,
    monospace;
  white-space: pre;
}
.code-editor-layer {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.code-editor-layer :is(pre, textarea) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  font:
    13px/22px ui-monospace,
    Consolas,
    monospace;
  letter-spacing: normal;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
.code-editor-layer pre {
  pointer-events: none;
  scrollbar-width: none;
  color: var(--color-text);
  background: transparent;
}
.code-editor-layer pre::-webkit-scrollbar {
  display: none;
}
.code-editor-layer code {
  font: inherit;
  white-space: inherit;
}
.code-editor-layer textarea {
  background: transparent;
  color: transparent;
  caret-color: var(--color-text);
  resize: none;
  outline: none;
  cursor: text;
  -webkit-text-fill-color: transparent;
}
.code-editor-layer textarea:focus-visible {
  outline: none;
}
.code-editor-layer textarea::selection {
  background: color-mix(in srgb, var(--color-accent) 24%, transparent);
}
.code-editor-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-muted);
}
.code-editor-status button {
  min-height: 24px;
  font-size: 11px;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
}
.code-editor-status [role="status"] {
  margin-left: auto;
}
.documents-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.documents-toolbar .demo-label {
  margin-right: auto;
}
.documents-toolbar > button,
.document-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.document-open {
  position: relative;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 13px;
  background: var(--color-surface);
}
.document-open:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.document-open input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  min-height: 0;
}
.document-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.document-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.document-preview {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.document-preview > h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.document-file-list {
  max-width: 900px;
  border-top: 1px solid var(--color-border);
}
.document-file-list > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}
.document-file-list > a:hover {
  background: var(--color-row-hover);
}
.document-file-list small {
  margin-left: auto;
}
.mini-log {
  min-width: 0;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}
.mini-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.mini-log-heading h3 {
  margin: 0;
  font-size: 14px;
}
.mini-log-heading button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}
.mini-log-lines {
  max-height: 280px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.mini-log-line {
  display: grid;
  grid-template-columns: 70px 48px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  font:
    12px/1.6 ui-monospace,
    Consolas,
    monospace;
}
.mini-log-line time {
  color: var(--color-muted);
}
.mini-log-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mini-log-level {
  font-size: 10px;
  font-weight: 600;
  padding-top: 2px;
}
.mini-log-line[data-level="DEBUG"] {
  background: color-mix(in srgb, var(--color-muted) 6%, var(--color-surface));
  color: var(--color-muted);
}
.mini-log-line[data-level="INFO"] {
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface));
}
.mini-log-line[data-level="WARN"] {
  background: color-mix(
    in srgb,
    var(--color-warning) 12%,
    var(--color-surface)
  );
}
.mini-log-line[data-level="WARN"] .mini-log-level {
  color: var(--color-warning);
}
.mini-log-line[data-level="ERROR"] {
  background: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
}
.mini-log-line[data-level="ERROR"] .mini-log-level {
  color: var(--color-danger);
}
.mini-log-empty {
  padding: 12px 14px;
  color: var(--color-muted);
  font-size: 13px;
}
.statistics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.statistics-toolbar h2 {
  margin-bottom: 4px;
}
.statistics-toolbar p {
  margin: 0;
  font-size: 13px;
}
.statistics-toolbar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  flex-shrink: 0;
}
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.statistics-panel {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  background: var(--color-surface);
}
.statistics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.statistics-kpi {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.statistics-kpi > span {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
}
.statistics-kpi > strong {
  display: block;
  font-size: 24px;
  margin: 4px 0 8px;
  font-weight: 600;
}
.metric-chart .chart-heading h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.metric-chart .chart-heading p {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0 0 12px;
}
.metric-chart .chart-plot {
  position: relative;
  height: 180px;
  margin-top: 16px;
  min-width: 0;
  border-radius: 6px;
}
.metric-chart .chart-plot > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.metric-chart .chart-grid {
  stroke: var(--color-border);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}
.metric-chart .series-0 {
  --series-color: var(--color-accent);
}
.metric-chart .series-1 {
  --series-color: var(--color-warning);
}
.metric-chart .series-2 {
  --series-color: var(--color-success);
}
.metric-chart .series-3 {
  --series-color: var(--color-danger);
}
.metric-chart .series-4 {
  --series-color: color-mix(
    in srgb,
    var(--color-accent) 50%,
    var(--color-text)
  );
}
.metric-chart .series-5 {
  --series-color: var(--color-muted);
}
.metric-chart .series-6 {
  --series-color: color-mix(
    in srgb,
    var(--color-warning) 65%,
    var(--color-text)
  );
}
.metric-chart .series-7 {
  --series-color: color-mix(
    in srgb,
    var(--color-success) 65%,
    var(--color-text)
  );
}
.metric-chart .chart-line {
  stroke: var(--series-color);
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.metric-chart .chart-area {
  fill: var(--series-color);
  opacity: 0.13;
  stroke: none;
}
.metric-chart .chart-bar {
  fill: var(--series-color);
  opacity: 0.85;
}
.metric-chart .chart-crosshair {
  stroke: var(--color-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}
.metric-chart .chart-crosshair[hidden] {
  display: none;
}
.metric-chart .chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font:
    11px ui-monospace,
    monospace;
  color: var(--color-muted);
}
.metric-chart .chart-scale {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 6px;
}
.metric-chart .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-muted);
}
.metric-chart .chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.metric-chart .chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--series-color);
}
.metric-chart .chart-data {
  margin-top: 14px;
  border: 0;
}
.metric-chart .chart-data summary {
  font-size: 11px;
  color: var(--color-muted);
  padding: 4px 0;
  cursor: pointer;
}
.metric-chart .chart-data table {
  font-size: 11px;
  margin-top: 8px;
}
.metric-chart .chart-tooltip {
  position: absolute;
  top: 6px;
  z-index: 5;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 12px);
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
  box-shadow: 0 8px 24px #07181f30;
  font-size: 11px;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.metric-chart .chart-tooltip[hidden] {
  display: none;
}
.metric-chart .chart-tooltip strong {
  font-weight: 600;
}
.metric-chart .chart-round {
  max-width: 280px;
  height: 180px;
  margin-inline: auto;
}
.metric-chart .chart-ring-track {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 20;
}
.metric-chart .chart-ring {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 20;
}
.metric-chart .chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.metric-chart .chart-center strong {
  font-size: 22px;
  font-weight: 600;
}
.metric-chart .chart-center span {
  font-size: 10px;
  color: var(--color-muted);
}
.metric-chart .chart-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--color-muted);
}
.metric-chart[data-chart-type="sparkline"] .chart-plot {
  height: 46px;
  margin: 0;
}
.metric-chart[data-chart-type="sparkline"] .chart-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.metric-chart[data-chart-type="sparkline"] .chart-legend {
  display: none;
}
@media (max-width: 900px) {
  .document-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .statistics-kpis {
    gap: 10px;
  }
  .statistics-kpi {
    padding: 14px;
  }
  .statistics-kpi > strong {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .statistics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .statistics-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .statistics-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 12px;
  }
  .statistics-kpi > [data-stat-spark] {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .statistics-kpi > strong {
    margin: 4px 0;
  }
  .statistics-toolbar {
    align-items: flex-start;
  }
  .statistics-panel {
    padding: 14px;
  }
  .mini-log-line {
    grid-template-columns: 58px 40px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 10px;
    font-size: 11px;
  }
  .code-editor-toolbar {
    padding: 8px;
  }
  .code-editor-toolbar select {
    max-width: 110px;
  }
  .document-preview {
    padding: 14px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
}

.content-action {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  text-decoration: none;
  background: var(--color-surface);
}
.app-header > .breadcrumbs {
  flex: 1;
  min-width: 0;
}

.metric-chart[data-chart-tone="danger"] .series-0 {
  --series-color: var(--color-danger);
}
.metric-chart[data-chart-tone="warning"] .series-0 {
  --series-color: var(--color-warning);
}
.server-details {
  max-width: 720px;
  margin: 0 0 24px;
}
.server-details > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.server-details dt {
  color: var(--color-muted);
}
.server-details dd {
  margin: 0;
}
.document-file-list > a {
  flex-wrap: wrap;
}
.document-file-list > a > span {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}

.statistics-grid[hidden],
.statistics-kpis[hidden],
.statistics-empty[hidden] {
  display: none;
}
