* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --fk-bg: #f6f8fa;
  --fk-surface: #ffffff;
  --fk-surface-2: #f9fafb;
  --fk-surface-3: #f1f3f5;
  --fk-hover: #f3f4f6;
  --fk-border: #e5e7eb;
  --fk-border-2: #eef0f3;
  --fk-border-strong: #cfd4db;
  --fk-text: #0f172a;
  --fk-text-2: #475569;
  --fk-text-3: #94a3b8;
  --fk-text-inv: #ffffff;
  --fk-accent: #2563eb;
  --fk-accent-2: #1d4ed8;
  --fk-accent-bg: #eff6ff;
  --fk-accent-border: #bfdbfe;
  --fk-success: #16a34a;
  --fk-warn: #d97706;
  --fk-danger: #dc2626;
  --fk-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04);
  --fk-shadow-2: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --fk-shadow-pop: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06);
  --fk-radius-1: 4px;
  --fk-radius-2: 6px;
  --fk-radius-3: 8px;
  --fk-h-sm: 24px;
  --fk-h: 28px;
  --fk-h-lg: 32px;
  --fk-font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fk-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --bee-honey: #f2b705;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --fk-bg: #0a0e16;
  --fk-surface: #0f1521;
  --fk-surface-2: #131a28;
  --fk-surface-3: #182032;
  --fk-hover: #1a2335;
  --fk-border: #1f2a3d;
  --fk-border-2: #182032;
  --fk-border-strong: #2d3a52;
  --fk-text: #e6edf7;
  --fk-text-2: #9aa7bd;
  --fk-text-3: #5d6b82;
  --fk-text-inv: #0a0e16;
  --fk-accent: #3b82f6;
  --fk-accent-2: #60a5fa;
  --fk-accent-bg: rgba(59, 130, 246, 0.12);
  --fk-accent-border: rgba(59, 130, 246, 0.35);
  --fk-success: #22c55e;
  --fk-warn: #f59e0b;
  --fk-danger: #ef4444;
  --fk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --fk-shadow-2: 0 1px 3px rgba(0, 0, 0, 0.5);
  --fk-shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --fk-bg: #0a0e16;
    --fk-surface: #0f1521;
    --fk-surface-2: #131a28;
    --fk-surface-3: #182032;
    --fk-hover: #1a2335;
    --fk-border: #1f2a3d;
    --fk-border-2: #182032;
    --fk-border-strong: #2d3a52;
    --fk-text: #e6edf7;
    --fk-text-2: #9aa7bd;
    --fk-text-3: #5d6b82;
    --fk-text-inv: #0a0e16;
    --fk-accent: #3b82f6;
    --fk-accent-2: #60a5fa;
    --fk-accent-bg: rgba(59, 130, 246, 0.12);
    --fk-accent-border: rgba(59, 130, 246, 0.35);
    --fk-success: #22c55e;
    --fk-warn: #f59e0b;
    --fk-danger: #ef4444;
    --fk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --fk-shadow-2: 0 1px 3px rgba(0, 0, 0, 0.5);
    --fk-shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

html {
  min-height: 100%;
  background: var(--fk-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fk-text);
  background: var(--fk-bg);
  font-family: var(--fk-font-ui);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

:focus-visible {
  outline: 2px solid var(--fk-accent);
  outline-offset: 2px;
}

.mono {
  font-family: var(--fk-font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--fk-text-2);
}

.fk-logo-mark,
.brand-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: #fff;
  border-radius: 5px;
  background: var(--fk-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), var(--fk-shadow-1);
  font-family: var(--fk-font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--fk-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: none;
}

.brand-word {
  display: block;
  min-width: 0;
  color: var(--fk-text);
  font-size: 13.5px;
  line-height: 1.05;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--fk-text-3);
  font-size: 11px;
  font-weight: 500;
}

.button,
.text-button {
  display: inline-flex;
  height: var(--fk-h);
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.button:hover,
.text-button:hover {
  border-color: var(--fk-border-strong);
  background: var(--fk-hover);
}

.button.primary {
  color: #fff;
  border-color: var(--fk-accent);
  background: var(--fk-accent);
}

.button.primary:hover {
  border-color: var(--fk-accent-2);
  background: var(--fk-accent-2);
}

.button.secondary,
.button.ghost,
.text-button {
  color: var(--fk-text-2);
}

.button.secondary:hover,
.button.ghost:hover,
.text-button:hover {
  color: var(--fk-text);
}

.button.danger {
  color: var(--fk-danger);
  border-color: var(--fk-border);
  background: var(--fk-surface);
}

.button.danger:hover {
  color: var(--fk-danger);
  border-color: var(--fk-danger);
  background: rgba(220, 38, 38, 0.08);
}

.button.small,
.text-button.small {
  height: var(--fk-h-sm);
  padding: 0 8px;
  font-size: 11.5px;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 240px),
    var(--fk-bg);
}

.auth-panel {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: clamp(24px, 8vh, 84px) 18px 32px;
}

.auth-card {
  width: min(100%, 580px);
  padding: 24px;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-3);
  background: var(--fk-surface);
  box-shadow: var(--fk-shadow-pop);
}

.auth-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.auth-card-brand {
  display: inline-flex;
  flex: 0 0 116px;
  align-items: center;
  width: 116px;
  height: 32px;
  overflow: hidden;
  border-radius: var(--fk-radius-1);
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-card-heading-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.auth-card-heading-copy h2 {
  margin: 0;
  color: var(--fk-text);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.16;
}

.auth-card-heading-copy p {
  margin: 0;
  color: var(--fk-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border-top: 1px solid var(--fk-border);
  background: var(--fk-surface);
  color: var(--fk-text-2);
}

.auth-footer-brand {
  display: block;
  width: 118px;
  min-width: 92px;
  overflow: hidden;
  border-radius: var(--fk-radius-1);
  line-height: 0;
}

.auth-footer-brand img {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.auth-footer-copy {
  display: grid;
  gap: 2px;
  max-width: 640px;
}

.auth-footer-copy strong {
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 600;
}

.auth-footer-copy span {
  color: var(--fk-text-3);
  font-size: 12px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field-label {
  color: var(--fk-text-2);
  font-size: 12px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--fk-h-lg);
  padding: 0 10px;
  color: var(--fk-text);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  outline: 0;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}

.field textarea {
  min-height: 82px;
  padding-top: 8px;
  padding-bottom: 8px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fk-text-3);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--fk-border-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fk-accent);
  box-shadow: 0 0 0 3px var(--fk-accent-bg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

[data-attr-row].form-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 10px;
}

.attr-group {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.attr-group h3 {
  margin: 0;
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 600;
}

.attr-default-row {
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  align-items: end;
  margin-top: 10px;
}

.check-field {
  display: inline-flex;
  min-height: var(--fk-h-lg);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 500;
}

.check-field input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  accent-color: var(--fk-accent);
}

.check-field span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.form-status {
  min-height: 19px;
  margin: 0;
  color: var(--fk-text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.form-status[data-tone="error"] {
  color: var(--fk-danger);
}

.form-status[data-tone="success"] {
  color: var(--fk-success);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--fk-text-3);
  font-size: 12.5px;
}

.auth-links a {
  color: var(--fk-accent);
  font-weight: 600;
}

.app-shell {
  min-height: 100vh;
  background: var(--fk-bg);
  color: var(--fk-text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--fk-border);
  background: var(--fk-surface);
}

.topbar-brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: 88px;
  height: 26px;
  overflow: hidden;
  border-radius: var(--fk-radius-1);
  line-height: 0;
}

.sidebar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  height: var(--fk-h);
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--fk-text-2);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}

.nav-link:hover {
  color: var(--fk-text);
  background: var(--fk-hover);
}

.nav-link[aria-current="page"] {
  color: var(--fk-accent);
  background: var(--fk-accent-bg);
}

.fk-nav-spacer {
  flex: 1 1 auto;
}

.topbar-title {
  min-width: 0;
  text-align: right;
}

.topbar-title strong {
  display: block;
  overflow: hidden;
  max-width: 240px;
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-title span {
  display: block;
  margin-top: 1px;
  color: var(--fk-text-3);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.fk-theme-switch {
  display: inline-flex;
  height: var(--fk-h);
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  box-shadow: var(--fk-shadow-1);
}

.fk-theme-switch button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  color: var(--fk-text-3);
  border: 0;
  border-radius: var(--fk-radius-1);
  background: transparent;
  transition: background 0.12s, color 0.12s;
}

.fk-theme-switch button:hover {
  color: var(--fk-text);
  background: var(--fk-hover);
}

.fk-theme-switch button[data-active="true"] {
  color: var(--fk-accent);
  background: var(--fk-accent-bg);
}

.fk-theme-switch svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fk-version {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fk-version > summary {
  list-style: none;
}

.fk-version > summary::-webkit-details-marker {
  display: none;
}

.fk-version-pill {
  display: inline-flex;
  height: 22px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--fk-text-2);
  border: 1px solid var(--fk-border);
  border-radius: 999px;
  background: var(--fk-surface-2);
  box-shadow: var(--fk-shadow-1);
  font-family: var(--fk-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.fk-version-pill:hover {
  color: var(--fk-text);
  border-color: var(--fk-border-strong);
  background: var(--fk-hover);
}

.fk-version[open] .fk-version-pill {
  color: var(--fk-accent);
  border-color: var(--fk-accent-border);
  background: var(--fk-accent-bg);
}

.fk-version-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: max-content;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px;
  color: var(--fk-text);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-3);
  background: var(--fk-surface);
  box-shadow: var(--fk-shadow-pop);
  user-select: text;
}

.fk-version[data-align="right"] .fk-version-popover {
  right: 0;
  left: auto;
}

.fk-version[data-position="top"] .fk-version-popover {
  top: auto;
  bottom: calc(100% + 6px);
}

.fk-version-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.fk-version-details dt {
  color: var(--fk-text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fk-version-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fk-text);
  font-family: var(--fk-font-mono);
  font-size: 11px;
}

.fk-version-copy {
  margin: 9px 0 0;
  padding: 8px;
  color: var(--fk-text-2);
  border: 1px solid var(--fk-border-2);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface-2);
  font-family: var(--fk-font-mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  user-select: text;
}

.language-select {
  width: auto;
  min-width: 108px;
  min-height: var(--fk-h-md);
  padding: 0 28px 0 10px;
  color: var(--fk-text-2);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  font-size: 12.5px;
  font-weight: 500;
}

.language-select:hover {
  color: var(--fk-text);
  border-color: var(--fk-border-strong);
}

.language-select:focus {
  border-color: var(--fk-accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--fk-accent-bg);
}

.auth-footer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.workspace {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 24px;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--fk-text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  color: var(--fk-text);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.16;
}

.page-title p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--fk-text-2);
  font-size: 13px;
  line-height: 1.5;
}

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

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.stat,
.table-panel {
  min-width: 0;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-3);
  background: var(--fk-surface);
  box-shadow: var(--fk-shadow-1);
}

.panel {
  padding: 14px;
}

.panel h2,
.panel h3,
.table-panel h2,
.table-panel h3 {
  margin: 0;
  color: var(--fk-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.panel p {
  margin: 8px 0 0;
  color: var(--fk-text-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.panel code {
  font-family: var(--fk-font-mono);
  font-size: 11.5px;
}

.account-workspace {
  width: min(100%, 1040px);
}

.account-grid {
  align-items: start;
}

.account-panel {
  min-height: 100%;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--fk-border-2);
}

.detail-list dt {
  color: var(--fk-text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--fk-text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.account-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface-2);
}

.account-note strong {
  display: block;
  color: var(--fk-text);
  font-size: 12.5px;
  font-weight: 600;
}

.stat {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}

.stat span {
  color: var(--fk-text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--fk-text);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.stat p {
  margin: 0;
  color: var(--fk-text-2);
  font-size: 12px;
  line-height: 1.4;
}

.table-panel {
  overflow: hidden;
  margin-top: 14px;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fk-border);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--fk-border-2);
}

th {
  color: var(--fk-text-3);
  background: var(--fk-surface-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--fk-text);
  font-size: 12.5px;
}

tbody tr:hover td {
  background: var(--fk-surface-2);
}

tr:last-child td {
  border-bottom: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.tight {
  gap: 8px;
}

.badge {
  display: inline-flex;
  height: 18px;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  color: var(--fk-text-2);
  border: 0;
  border-radius: 999px;
  background: var(--fk-surface-3);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge.ok {
  color: var(--fk-success);
  background: rgba(22, 163, 74, 0.1);
}

.badge.warn {
  color: var(--fk-warn);
  background: rgba(217, 119, 6, 0.12);
}

.badge.danger {
  color: var(--fk-danger);
  background: rgba(220, 38, 38, 0.12);
}

.empty {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 24px;
  color: var(--fk-text-2);
  text-align: center;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inline-actions select,
.mobile-nav {
  height: var(--fk-h);
  padding: 0 8px;
  color: var(--fk-text);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  font-size: 12.5px;
}

.notice {
  display: none;
  margin: 0 0 14px;
  padding: 9px 11px;
  color: var(--fk-text-2);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-surface);
  font-size: 12.5px;
  line-height: 1.45;
}

.notice[data-visible="true"] {
  display: block;
}

.notice[data-tone="success"] {
  color: var(--fk-success);
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(22, 163, 74, 0.08);
}

.notice[data-tone="error"] {
  color: var(--fk-danger);
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
}

.secret-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow-wrap: anywhere;
  border: 1px solid var(--fk-accent-border);
  border-radius: var(--fk-radius-2);
  background: var(--fk-accent-bg);
}

.mobile-nav {
  display: none;
}

@media (max-width: 1120px) {
  .topbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px 14px;
  }

  .sidebar-nav {
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding-top: 2px;
  }

  .topbar-title {
    display: none;
  }

  .grid.four,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  .auth-panel {
    padding: 24px 14px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .auth-footer-copy span {
    display: none;
  }

  .topbar {
    gap: 10px;
  }

  .sidebar-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    order: 4;
    width: 100%;
  }

  .topbar-actions {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .topbar-actions .language-select {
    min-width: 92px;
  }

  .workspace {
    padding: 18px 14px;
  }

  .page-title {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .page-title h1 {
    font-size: 21px;
  }

  .page-title-actions {
    justify-content: flex-start;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .form-row,
  [data-attr-row].form-row,
  .attr-default-row {
    grid-template-columns: 1fr;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .table-head {
    align-items: stretch;
    flex-direction: column;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
