/* ==========================================================================
   LithosAI Console Design System — Replicated 1:1 for ProtoPool
   Fonts: Schibsted Grotesk Variable + Geist Mono Variable
   Geometry: --radius: 0 (sharp square editorial system)
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/admin/static/schibsted-grotesk-latin-ext-wght-normal-hsMS0n0O.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/admin/static/schibsted-grotesk-latin-wght-normal-Bb8VGrTG.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2") format("woff2-variations");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-vietnamese-wght-normal-DadHysG0.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/admin/static/geist-mono-latin-wght-normal-XN7g48iV.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-sans: "Schibsted Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;

  --background: #fafafa;
  --foreground: #050505;
  --card: #f4f4f5;
  --card-foreground: #050505;
  --popover: #ffffff;
  --popover-foreground: #050505;
  --primary: #050505;
  --primary-foreground: #ffffff;
  --secondary: rgba(0, 0, 0, 0.08);
  --secondary-foreground: #050505;
  --muted: rgba(0, 0, 0, 0.08);
  --muted-foreground: rgba(0, 0, 0, 0.55);
  --accent: rgba(0, 0, 0, 0.08);
  --accent-foreground: #050505;
  --destructive: #d63426;
  --border: rgba(0, 0, 0, 0.15);
  --border-subtle: rgba(0, 0, 0, 0.09);
  --input: rgba(0, 0, 0, 0.15);
  --ring: rgba(0, 0, 0, 0.3);
  --ring-soft: rgba(0, 0, 0, 0.12);
  --radius: 0px;

  --sidebar: #f4f4f5;
  --sidebar-foreground: #050505;
  --sidebar-accent: rgba(0, 0, 0, 0.08);
  --sidebar-accent-foreground: #050505;
  --sidebar-border: rgba(0, 0, 0, 0.15);
  --sidebar-ring: rgba(0, 0, 0, 0.3);

  --status-ok: #2f7048;
  --status-warn: #a8690c;
  --status-bad: #d63426;
  --status-blue: #2f5d8a;

  --sidebar-w: 16rem;
  --sidebar-w-icon: 49px;
  --header-h: 56px;
}

.dark {
  color-scheme: dark;
  --background: #050505;
  --foreground: #ffffff;
  --card: #0a0a0a;
  --card-foreground: #ffffff;
  --popover: #0a0a0a;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #050505;
  --secondary: rgba(255, 255, 255, 0.08);
  --secondary-foreground: #ffffff;
  --muted: rgba(255, 255, 255, 0.08);
  --muted-foreground: rgba(255, 255, 255, 0.55);
  --accent: rgba(255, 255, 255, 0.08);
  --accent-foreground: #ffffff;
  --destructive: #ff5247;
  --border: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --input: rgba(255, 255, 255, 0.15);
  --ring: rgba(255, 255, 255, 0.3);
  --ring-soft: rgba(255, 255, 255, 0.14);

  --sidebar: #0a0a0a;
  --sidebar-foreground: #ffffff;
  --sidebar-accent: rgba(255, 255, 255, 0.08);
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.15);
  --sidebar-ring: rgba(255, 255, 255, 0.3);

  --status-ok: #7cc49a;
  --status-warn: #e2a13c;
  --status-bad: #ff5247;
  --status-blue: #7fb3e0;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  border-color: var(--border);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

code, kbd, samp, pre, .font-mono, .mono, .tabular-nums {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Subtle Custom Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   App Shell & Sidebar (16rem <-> 49px icon rail on desktop, offcanvas mobile)
   ========================================================================== */

.lt-shell {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--background);
}

.lt-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  transition: width 180ms linear, transform 180ms ease;
  z-index: 40;
  user-select: none;
}

.lt-sidebar__head {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.lt-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sidebar-foreground);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}
.lt-brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.lt-brand__word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lt-org {
  padding: 8px 8px 4px;
}
.lt-org__btn {
  width: 100%;
  height: 44px;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 120ms ease;
}
.lt-org__btn:hover {
  background: var(--sidebar-accent);
}
.lt-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.lt-org__label {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lt-org__chev {
  margin-left: auto;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.lt-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lt-nav__item {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--sidebar-foreground);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 120ms ease;
}
.lt-nav__item:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}
.lt-nav__item.is-active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: 500;
}
.lt-nav__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lt-nav__pill {
  margin-left: auto;
  padding: 1px 6px;
  background: var(--sidebar-accent);
  color: var(--sidebar-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.lt-sidebar__foot {
  flex-shrink: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lt-user-wrap {
  position: relative;
  margin-top: 4px;
}
.lt-user-btn {
  width: 100%;
  height: 44px;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.lt-user-btn:hover {
  background: var(--sidebar-accent);
}
.lt-user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  padding: 4px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Desktop Icon-Rail Collapsed Mode (49px, exact LithosAI behavior) */
@media (min-width: 1024px) {
  .lt-sidebar.is-collapsed {
    width: var(--sidebar-w-icon);
  }
  .lt-sidebar.is-collapsed .lt-brand__word,
  .lt-sidebar.is-collapsed .lt-org__label,
  .lt-sidebar.is-collapsed .lt-org__chev,
  .lt-sidebar.is-collapsed .lt-nav__text,
  .lt-sidebar.is-collapsed .lt-nav__pill,
  .lt-sidebar.is-collapsed .lt-user-meta {
    display: none !important;
  }
  .lt-sidebar.is-collapsed .lt-sidebar__head {
    justify-content: center;
    padding: 0;
  }
  .lt-sidebar.is-collapsed .lt-org__btn,
  .lt-sidebar.is-collapsed .lt-user-btn,
  .lt-sidebar.is-collapsed .lt-nav__item {
    justify-content: center;
    padding: 0;
  }
  .lt-sidebar.is-collapsed .lt-user-menu {
    width: 200px;
    left: 0;
    right: auto;
  }
}

/* Mobile Offcanvas Mode */
.lt-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 35;
}
@media (max-width: 1023px) {
  .lt-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .lt-sidebar.is-open {
    transform: translateX(0);
  }
  .lt-backdrop.is-on {
    display: block;
  }
}

/* ==========================================================================
   Main Inset, Top Header & Content Area
   ========================================================================== */

.lt-inset {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--background);
}

.lt-topbar {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.lt-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.lt-page {
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lt-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lt-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.lt-page-desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-foreground);
}

/* ==========================================================================
   LithosAI Overview 4-Column Metric Strip (<dl>)
   ========================================================================== */

.lt-metrics {
  margin: 0;
  border: 1px solid var(--border);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
}
.lt-metric {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.lt-metric:first-child { padding-top: 0; }
.lt-metric:last-child { padding-bottom: 0; border-bottom: 0; }
@media (min-width: 1024px) {
  .lt-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lt-metrics.lt-metrics--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lt-metric {
    padding: 0 24px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .lt-metric:first-child { padding-left: 0; }
  .lt-metric:last-child { padding-right: 0; border-right: 0; }
}
.lt-metric dt {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0;
}
.lt-metric dd {
  margin: 6px 0 4px;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.lt-metric p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Buttons, Inputs, Selects & Segmented / Underline Tabs
   ========================================================================== */

.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease;
  text-decoration: none;
}
.lt-btn:hover:not(:disabled) {
  background: var(--muted);
}
.lt-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.lt-btn--sm {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.lt-btn--xs {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.lt-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: transparent;
}
.lt-btn--primary {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: var(--primary) !important;
}
.lt-btn--primary:hover:not(:disabled) {
  background: var(--primary) !important;
  opacity: 0.84;
}
.lt-btn--danger {
  color: var(--destructive);
}
.lt-btn--danger:hover:not(:disabled) {
  background: rgba(214, 52, 38, 0.08);
}
.lt-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lt-input, .lt-select, .lt-textarea {
  width: 100%;
  border: 1px solid var(--input);
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  padding: 0 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.lt-input, .lt-select {
  height: 36px;
}
.lt-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.dark .lt-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.lt-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lt-search svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted-foreground);
  pointer-events: none;
}
.lt-search .lt-input {
  padding-left: 32px;
}
.lt-pill-muted {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  background: var(--muted);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.lt-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lt-cell-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13.5px;
  min-width: 0;
}
.lt-cell-sub {
  min-height: 16px;
  line-height: 16px;
  font-size: 11.5px;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lt-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-top: 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.lt-textarea {
  padding: 8px 10px;
  line-height: 1.55;
}
.lt-input::placeholder, .lt-textarea::placeholder {
  color: var(--muted-foreground);
}
.lt-input:focus, .lt-select:focus, .lt-textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-soft);
}
.dark .lt-select option {
  background: #0a0a0a;
  color: #ffffff;
}

/* Segmented Tabs (like ⚡ 推理 | 沙箱) */
.lt-seg {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  background: var(--muted);
  gap: 2px;
}
.lt-seg__btn {
  height: 100%;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.lt-seg__btn:hover {
  color: var(--foreground);
}
.lt-seg__btn.is-active {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border-subtle);
}

/* Underline Tabs (like 常规 | 支付 | 历史记录 & Python | TypeScript | curl) */
.lt-utabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.lt-utab {
  position: relative;
  height: 38px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.lt-utab:hover {
  color: var(--foreground);
}
.lt-utab.is-active {
  color: var(--foreground);
}
.lt-utab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--foreground);
}

/* ==========================================================================
   Bordered Cards, Tables, Badges & Empty States
   ========================================================================== */

.lt-card {
  border: 1px solid var(--border);
  background: transparent;
}
.lt-table-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
  background: transparent;
}
.lt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lt-table thead tr {
  border-bottom: 1px solid var(--border);
}
.lt-table thead th {
  height: 40px;
  padding: 0 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
}
.lt-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 100ms ease;
}
.lt-table tbody tr:last-child {
  border-bottom: 0;
}
.lt-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}
.dark .lt-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.lt-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.lt-empty {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.lt-empty svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.lt-empty__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}
.lt-empty__desc {
  font-size: 13px;
  color: var(--muted-foreground);
}

/* Square LithosAI Tags & Status Badges */
.lt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--foreground);
  background: transparent;
  white-space: nowrap;
}
.lt-tag--muted {
  color: var(--muted-foreground);
}
.lt-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex-shrink: 0;
  background: var(--muted-foreground);
}
.lt-dot--ok { background: var(--status-ok); }
.lt-dot--warn { background: var(--status-warn); }
.lt-dot--bad { background: var(--status-bad); }

/* ==========================================================================
   LithosAI Frosted Backdrop Dialog & Sonner Toasts
   ========================================================================== */

.lt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 56;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.dark .lt-modal-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.lt-dialog {
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   LithosAI Detail Page & Settings Stacked Card Patterns
   ========================================================================== */

.lt-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.lt-crumb a, .lt-crumb button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--foreground);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.lt-crumb a:hover, .lt-crumb button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lt-spec-strip {
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .lt-spec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lt-spec-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }
  .lt-spec-item {
    padding: 0 18px;
    border-right: 1px solid var(--border);
  }
  .lt-spec-item:first-child { padding-left: 0; }
  .lt-spec-item:last-child { padding-right: 0; border-right: 0; }
}
.lt-spec-label {
  font-size: 11.5px;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}
.lt-spec-val {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.lt-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}
.lt-card-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
}

.lt-setting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.lt-setting-row:last-child {
  border-bottom: 0;
}
.lt-setting-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
}
.lt-setting-val {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.lt-danger-card {
  border: 1px solid rgba(214, 52, 38, 0.42);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dark .lt-danger-card {
  border-color: rgba(255, 82, 71, 0.42);
}
.lt-btn--destructive-solid {
  background: var(--destructive) !important;
  color: #ffffff !important;
  border-color: var(--destructive) !important;
}
.lt-btn--destructive-solid:hover:not(:disabled) {
  opacity: 0.88;
}

.lt-toast {
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 380px;
  animation: lt-toast-in 160ms ease-out;
}
@keyframes lt-toast-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   High-Legibility Semantic Status Pills, Credential Chips & Account Modal
   ========================================================================== */

.lt-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px 0 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  white-space: nowrap;
  flex-shrink: 0;
}
.lt-status svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.lt-status--ok {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.34);
  color: #116d37;
}
.dark .lt-status--ok {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(74, 222, 128, 0.38);
  color: #4ade80;
}

.lt-status--warn {
  background: rgba(217, 119, 6, 0.11);
  border-color: rgba(217, 119, 6, 0.38);
  color: #a15206;
}
.dark .lt-status--warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fbbf24;
}

.lt-status--neutral {
  background: rgba(113, 113, 122, 0.09);
  border-color: rgba(113, 113, 122, 0.28);
  color: #52525b;
}
.dark .lt-status--neutral {
  background: rgba(161, 161, 170, 0.13);
  border-color: rgba(161, 161, 170, 0.30);
  color: #d4d4d8;
}

.lt-status--info {
  background: rgba(2, 132, 199, 0.10);
  border-color: rgba(2, 132, 199, 0.32);
  color: #0369a1;
}
.dark .lt-status--info {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.36);
  color: #38bdf8;
}

.lt-status--bad {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.34);
  color: #b91c1c;
}
.dark .lt-status--bad {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.38);
  color: #f87171;
}

/* Tier Badges (ULTRA 20x / ULTRA 5x / ULTRA / PRO / FREE) */
.lt-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  white-space: nowrap;
  flex-shrink: 0;
}
.lt-tier--ultra-20x,
.lt-tier--ultra-5x {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.lt-tier--ultra-20x .lt-tier__mult,
.lt-tier--ultra-5x .lt-tier__mult {
  color: #fbbf24;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.dark .lt-tier--ultra-20x .lt-tier__mult,
.dark .lt-tier--ultra-5x .lt-tier__mult {
  color: #b45309;
  border-left-color: rgba(0, 0, 0, 0.22);
}
.lt-tier--ultra {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.lt-tier--pro {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.28);
  color: var(--foreground);
}
.dark .lt-tier--pro {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

/* Credential & Surface Micro-Chips */
.lt-cred-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 18px;
}
.lt-cred-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.82;
}
.lt-cred-item svg {
  width: 12.5px;
  height: 12.5px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.lt-cred-item--missing {
  color: #b91c1c;
  opacity: 1;
}
.dark .lt-cred-item--missing {
  color: #f87171;
}
.lt-cred-item--missing svg {
  color: currentColor;
}

/* Product Surface Badges */
.lt-surf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.lt-surf svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.lt-surf--ok {
  border-color: rgba(22, 163, 74, 0.30);
  background: rgba(22, 163, 74, 0.06);
  color: #116d37;
}
.dark .lt-surf--ok {
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(34, 197, 94, 0.11);
  color: #4ade80;
}
.lt-surf--bad {
  border-color: rgba(220, 38, 38, 0.30);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
}
.dark .lt-surf--bad {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.11);
  color: #f87171;
}

.lt-ag-ok { color: #116d37; font-weight: 500; }
.dark .lt-ag-ok { color: #4ade80; }
.lt-ag-warn { color: #a15206; font-weight: 500; }
.dark .lt-ag-warn { color: #fbbf24; }
.lt-ag-bad { color: #b91c1c; font-weight: 500; }
.dark .lt-ag-bad { color: #f87171; }

/* Account Monogram Avatar */
.lt-acc-mono {
  min-width: 36px;
  height: 34px;
  padding: 0 6px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

/* Spacious Account Detail Modal */
.lt-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dark .lt-account-overlay {
  background: rgba(0, 0, 0, 0.64);
}
.lt-account-dialog {
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 920px;
  height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.22);
}
@media (max-width: 640px) {
  .lt-account-overlay {
    padding: 0;
  }
  .lt-account-dialog {
    height: 100vh;
    max-width: 100%;
    border: 0;
  }
}
