/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --background: #f8fafc;
  --surface: #fff;
  --surface-subtle: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --border-subtle: #e5e7eb;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --success: #047857;
  --success-bg: #ecfdf5;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--text);
  letter-spacing: 0;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

button {
  white-space: nowrap;
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 20px;
  display: flex;
}

.sidebar-brand {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.sidebar-title {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 750;
}

.sidebar-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-nav {
  gap: 2px;
  display: grid;
}

.sidebar-nav a {
  color: #374151;
  border-radius: 4px;
  padding: 9px 10px;
  font-size: 14px;
  text-decoration: none;
}

.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] {
  background: var(--surface-subtle);
  color: var(--text);
}

.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
  min-width: 0;
  margin-top: auto;
  padding-top: 18px;
  display: grid;
}

.sidebar-footer p {
  overflow-wrap: anywhere;
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 650;
}

.sidebar-footer span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-footer button {
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  background: none;
  border-radius: 4px;
  min-height: 36px;
  padding: 7px 10px;
}

.main {
  min-width: 0;
}

.topbar {
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  background: #fffffff2;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 16px 28px;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.topbar p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.content {
  padding: 28px;
}

.page-stack {
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
}

.narrow-stack {
  max-width: 720px;
}

.metric-strip {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.metric-strip div {
  min-width: 0;
  padding: 18px;
}

.metric-strip div + div {
  border-left: 1px solid var(--border-subtle);
}

.metric-strip span {
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.metric-strip strong {
  font-size: 30px;
  line-height: 1;
  display: block;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.section-header {
  border-bottom: 1px solid var(--border-subtle);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  display: flex;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.section-header p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.list {
  padding: 0 18px 8px;
  display: grid;
}

.list-row {
  border-bottom: 1px solid var(--border-subtle);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  display: flex;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row span:first-child {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.list-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.badge {
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  display: inline-flex;
}

.badge-ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.badge-warn {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

.notice {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 13px;
}

.notice-ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.notice-warn {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.source-list {
  display: grid;
}

.source-row {
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  padding: 18px;
  display: grid;
}

.source-row:last-child {
  border-bottom: 0;
}

.source-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  display: grid;
}

.source-title-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.source-title-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.source-main p {
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  font-size: 13px;
}

.source-counts {
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 8px;
  margin: 0;
  display: grid;
}

.source-counts div {
  border: 1px solid var(--border-subtle);
  text-align: right;
  border-radius: 4px;
  padding: 8px 10px;
}

.source-counts dt {
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
}

.source-counts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.source-controls {
  grid-template-columns: minmax(126px, .7fr) minmax(126px, .7fr) minmax(160px, 1fr) minmax(220px, 1.3fr);
  align-items: end;
  gap: 12px;
  display: grid;
}

.source-controls label {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.source-controls label span, .field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wide-field {
  grid-column: span 2;
}

.source-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

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

.source-status-card {
  gap: 10px;
  padding: 18px;
  display: grid;
}

.source-status-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.source-status-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.data-table-wrap {
  padding: 0 18px 18px;
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.data-table-wide {
  min-width: 1180px;
}

.data-table th, .data-table td {
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
  white-space: nowrap;
  padding: 12px 8px;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 750;
}

.data-table th:first-child, .data-table td:first-child, .data-table th:last-child, .data-table td:last-child, .data-table th:nth-child(11), .data-table td:nth-child(11) {
  text-align: left;
}

.auth-page {
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px;
}

.auth-panel h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.auth-panel p {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
}

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

.form-wide {
  padding: 18px;
}

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

input, select, textarea {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  border-radius: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.45;
}

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #14b8a6;
}

.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button-compact {
  min-height: 34px;
  padding: 6px 12px;
}

.error {
  color: var(--danger);
  min-height: 18px;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .source-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--border-subtle);
    border-right: 0;
    gap: 14px;
    padding: 16px;
  }

  .sidebar-brand {
    padding-bottom: 12px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sidebar-nav a {
    text-align: center;
  }

  .sidebar-footer {
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 12px;
    display: flex;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .content {
    padding: 16px;
  }

  .metric-strip, .split-grid, .split-grid-three {
    grid-template-columns: 1fr;
  }

  .metric-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }

  .source-main, .source-controls {
    grid-template-columns: 1fr;
  }

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

  .wide-field {
    grid-column: auto;
  }

  .source-actions {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-nav a {
    text-align: left;
  }

  .sidebar-footer {
    align-items: stretch;
    display: grid;
  }

  .source-counts {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/