:root {
  --obs-navy: #0b1739;
  --obs-navy-2: #132653;
  --obs-blue: #2563eb;
  --obs-blue-dark: #1d4ed8;
  --obs-bg: #f5f7fb;
  --obs-surface: #ffffff;
  --obs-border: #e2e8f0;
  --obs-text: #162033;
  --obs-muted: #64748b;
  --obs-green: #059669;
  --obs-red: #dc2626;
  --obs-amber: #d97706;
  --obs-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

body:has(.obs-auth-page),
body:has(.obs-app-page) {
  margin: 0;
  background: var(--obs-bg);
  color: var(--obs-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body:has(.obs-auth-page) > header,
body:has(.obs-auth-page) > footer,
body:has(.obs-app-page) > header,
body:has(.obs-app-page) > footer {
  display: none;
}

body:has(.obs-auth-page) > .container,
body:has(.obs-app-page) > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.obs-auth-page) main[role="main"],
body:has(.obs-app-page) main[role="main"] {
  padding: 0 !important;
}

.obs-auth-page *, .obs-app-page *, .obs-modal * { box-sizing: border-box; }
.obs-auth-page svg, .obs-app-page svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.obs-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--obs-blue);
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .24);
}

.obs-brand-mark svg { width: 24px; }
.obs-kicker { color: var(--obs-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.obs-kicker-light { color: #91b7ff; }

/* Login */
.obs-auth-page { min-height: 100vh; background: #fff; }
.obs-auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, 46%) 1fr; }
.obs-auth-intro {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 44px clamp(40px, 6vw, 92px);
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 15% 85%, rgba(37, 99, 235, .45), transparent 34%),
    radial-gradient(circle at 95% 5%, rgba(80, 114, 255, .19), transparent 32%),
    linear-gradient(145deg, #07122f, #102559 72%, #17346f);
}

.obs-auth-intro::before,
.obs-auth-intro::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.obs-auth-intro::before { width: 430px; height: 430px; right: -230px; top: 10%; }
.obs-auth-intro::after { width: 620px; height: 620px; right: -320px; top: -7%; }
.obs-auth-brand, .obs-mobile-brand, .obs-logo { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.obs-auth-brand { position: relative; z-index: 1; }
.obs-auth-copy { position: relative; z-index: 1; max-width: 570px; margin: auto 0; padding: 80px 0; }
.obs-auth-copy h1 { max-width: 510px; margin: 17px 0 21px; color: #fff; font-size: clamp(42px, 4vw, 64px); font-weight: 750; line-height: 1.04; letter-spacing: -.045em; }
.obs-auth-copy > p { max-width: 510px; margin: 0; color: #bdcbe5; font-size: 18px; line-height: 1.7; }
.obs-auth-features { display: grid; margin-top: 52px; gap: 25px; }
.obs-auth-features > div { display: flex; align-items: center; gap: 16px; }
.obs-feature-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; color: #a7c3fb; font-size: 11px; font-weight: 800; border: 1px solid rgba(167,195,251,.35); border-radius: 12px; background: rgba(255,255,255,.05); }
.obs-auth-features span:last-child { display: grid; gap: 4px; }
.obs-auth-features strong { font-size: 14px; font-weight: 700; }
.obs-auth-features small { color: #9fb0cf; font-size: 13px; }
.obs-auth-security { position: relative; z-index: 1; margin: 0; color: #8498bc; font-size: 12px; }
.obs-auth-security span { margin-right: 7px; color: #34d399; font-size: 9px; }
.obs-auth-form-panel { display: grid; padding: 50px clamp(30px, 7vw, 110px); place-items: center; background: #fff; }
.obs-auth-form-wrap { width: 100%; max-width: 430px; }
.obs-mobile-brand { display: none; color: var(--obs-navy); }
.obs-auth-form-header { margin-bottom: 36px; }
.obs-auth-form-header h2 { margin: 13px 0 9px; color: var(--obs-navy); font-size: 34px; font-weight: 750; letter-spacing: -.035em; }
.obs-auth-form-header p { margin: 0; color: var(--obs-muted); font-size: 15px; }
.obs-auth-form { display: grid; gap: 22px; }
.obs-field { display: grid; gap: 8px; }
.obs-field label { color: #334155; font-size: 13px; font-weight: 700; }
.obs-input-wrap { position: relative; display: flex; align-items: center; }
.obs-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 45px;
  color: var(--obs-text);
  font-size: 14px;
  outline: none;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.obs-input-wrap input:focus { border-color: var(--obs-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.obs-input-wrap input::placeholder { color: #9aa8bb; }
.obs-input-icon { position: absolute; left: 15px; z-index: 1; display: grid; color: #8492a6; pointer-events: none; }
.obs-input-icon svg { width: 19px; }
.obs-password-toggle { position: absolute; right: 10px; display: grid; padding: 8px; place-items: center; color: #718096; border: 0; background: transparent; cursor: pointer; }
.obs-password-toggle:hover { color: var(--obs-blue); }
.obs-field-error { color: var(--obs-red); font-size: 12px; }
.obs-form-alert:empty { display: none; }
.obs-form-alert { padding: 11px 13px; color: #991b1b; font-size: 13px; border: 1px solid #fecaca; border-radius: 9px; background: #fef2f2; }
.obs-form-alert ul { margin: 0; padding-left: 18px; }
.obs-primary-button, .obs-secondary-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--obs-blue);
  border-radius: 9px;
  background: var(--obs-blue);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.obs-primary-button:hover { color: #fff; background: var(--obs-blue-dark); border-color: var(--obs-blue-dark); box-shadow: 0 7px 16px rgba(37,99,235,.2); }
.obs-sign-in-button { min-height: 53px; margin-top: 4px; justify-content: space-between; padding: 0 20px; font-size: 14px; }
.obs-secondary-button { color: #334155; border-color: #d5dce8; background: #fff; }
.obs-secondary-button:hover { color: var(--obs-blue); border-color: #a9bce9; background: #f8faff; }
.obs-auth-help { margin: 28px 0 0; color: #94a3b8; font-size: 12px; text-align: center; }

/* Shared application shell */
.obs-app-page { min-height: 100vh; background: var(--obs-bg); }
.obs-topbar { position: sticky; z-index: 20; top: 0; display: grid; min-height: 70px; padding: 0 clamp(20px, 4vw, 58px); align-items: center; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid var(--obs-border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.obs-logo { justify-self: start; color: var(--obs-navy); text-decoration: none; }
.obs-logo:hover { color: var(--obs-navy); }
.obs-logo .obs-brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.obs-logo .obs-brand-mark svg { width: 21px; }
.obs-nav { display: flex; height: 70px; align-items: stretch; gap: 8px; }
.obs-nav a { position: relative; display: flex; padding: 0 17px; align-items: center; gap: 8px; color: #64748b; font-size: 13px; font-weight: 650; text-decoration: none; }
.obs-nav a:hover { color: var(--obs-blue); }
.obs-nav a.active { color: var(--obs-blue); }
.obs-nav a.active::after { position: absolute; right: 16px; bottom: 0; left: 16px; height: 2px; content: ""; background: var(--obs-blue); border-radius: 2px 2px 0 0; }
.obs-topbar form { margin: 0; justify-self: end; }
.obs-user-button { display: flex; padding: 5px 8px; align-items: center; gap: 10px; color: #475569; text-align: left; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.obs-user-button:hover { background: #f1f5f9; }
.obs-user-avatar { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; font-size: 12px; font-weight: 800; border-radius: 10px; background: linear-gradient(145deg, #23458d, #172e62); }
.obs-user-meta { display: grid; min-width: 80px; gap: 1px; }
.obs-user-meta strong { overflow: hidden; max-width: 120px; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.obs-user-meta small { color: #94a3b8; font-size: 10px; }
.obs-page-content { width: min(1540px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 60px; }
.obs-page-header { display: flex; margin-bottom: 28px; align-items: flex-end; justify-content: space-between; gap: 25px; }
.obs-page-header h1 { margin: 8px 0 8px; color: var(--obs-navy); font-size: clamp(28px, 3vw, 37px); font-weight: 750; letter-spacing: -.04em; }
.obs-page-header p { margin: 0; color: var(--obs-muted); font-size: 14px; }
.obs-header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.obs-inline-form { margin: 0; display: inline-flex; }
.obs-danger-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.obs-danger-button:hover { color: #fff; border-color: #dc2626; background: #dc2626; }
.obs-banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 10px;
}
.obs-banner-success { color: #047857; border: 1px solid #a7f3d0; background: #ecfdf5; }
.obs-banner-error { color: #b91c1c; border: 1px solid #fecaca; background: #fef2f2; }
.obs-log-status-bar {
  display: flex;
  min-height: 40px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #1e2c45;
  background: #0e192c;
}
.obs-retention-note { color: #617493; font-size: 10px; font-weight: 650; letter-spacing: .04em; }

/* Request history */
.obs-stat-grid { display: grid; margin-bottom: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.obs-stat-card { display: flex; min-height: 118px; padding: 21px; align-items: center; gap: 16px; border: 1px solid var(--obs-border); border-radius: 12px; background: var(--obs-surface); box-shadow: 0 2px 5px rgba(15,23,42,.025); }
.obs-stat-icon, .obs-trace-summary-icon { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; font-size: 19px; font-style: normal; font-weight: 750; border-radius: 11px; }
.obs-stat-icon-blue { color: #2563eb; background: #eff6ff; }
.obs-stat-icon-green { color: #059669; background: #ecfdf5; }
.obs-stat-icon-red { color: #dc2626; background: #fef2f2; }
.obs-stat-icon-violet { color: #7c3aed; background: #f5f3ff; }
.obs-stat-icon-amber { color: #d97706; background: #fffbeb; }
.obs-stat-card > div { display: grid; gap: 3px; min-width: 0; }
.obs-stat-card small { color: #64748b; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
.obs-stat-card strong { color: var(--obs-navy); font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.obs-stat-card strong em { color: #9aa6b7; font-size: 13px; font-style: normal; font-weight: 600; }
.obs-stat-card div span { color: #94a3b8; font-size: 11px; }
.obs-filter-panel, .obs-data-panel { border: 1px solid var(--obs-border); border-radius: 12px; background: var(--obs-surface); box-shadow: 0 3px 10px rgba(15,23,42,.035); }
.obs-filter-panel { margin-bottom: 20px; padding: 18px; }
.obs-filter-form { display: grid; align-items: end; grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(130px, .7fr)) auto auto; gap: 12px; }
.obs-filter-search, .obs-filter-field { display: grid; gap: 7px; }
.obs-filter-form label { color: #475569; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.obs-search-input { position: relative; display: flex; align-items: center; }
.obs-search-input span { position: absolute; left: 13px; color: #8190a5; font-size: 20px; transform: rotate(-15deg); }
.obs-filter-form input, .obs-filter-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #334155;
  font-size: 13px;
  outline: none;
  border: 1px solid #d6deea;
  border-radius: 8px;
  background: #fff;
}
.obs-search-input input { padding-left: 40px; }
.obs-filter-form input:focus, .obs-filter-form select:focus, .obs-trace-controls input:focus, .obs-trace-controls select:focus { border-color: var(--obs-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.obs-reset-link { padding: 11px 4px; color: #64748b; font-size: 12px; font-weight: 650; text-decoration: none; }
.obs-reset-link:hover { color: var(--obs-blue); }
.obs-panel-heading { display: flex; min-height: 77px; padding: 17px 20px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--obs-border); }
.obs-panel-heading h2, .obs-trace-title h2 { margin: 0 0 4px; color: #1e293b; font-size: 15px; font-weight: 750; }
.obs-panel-heading p, .obs-trace-title p { margin: 0; color: #94a3b8; font-size: 11px; }
.obs-table-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.obs-outcome-chips { display: flex; padding: 3px; align-items: center; gap: 3px; border: 1px solid #dce3ec; border-radius: 9px; background: #f8fafc; }
.obs-chip { display: inline-flex; height: 28px; padding: 0 10px; align-items: center; color: #526277; font-size: 11px; font-weight: 650; text-decoration: none; border-radius: 6px; }
.obs-chip:hover { color: var(--obs-blue); background: #fff; }
.obs-chip.active { color: #fff; background: var(--obs-blue); }
.obs-icon-button, .obs-page-size, .obs-page-size-form select { display: inline-flex; height: 35px; padding: 0 11px; align-items: center; gap: 6px; color: #526277; font-size: 11px; font-weight: 650; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; }
.obs-icon-button:hover { color: var(--obs-blue); border-color: #afc1e8; }
.obs-page-size { cursor: default; background: #f8fafc; }
.obs-page-size-form { margin: 0; }
.obs-page-size-form select { min-width: 92px; background: #f8fafc; cursor: pointer; }
.obs-table-scroll { overflow-x: auto; }
.obs-data-table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
.obs-data-table th { padding: 12px 16px; color: #64748b; font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--obs-border); background: #f8fafc; }
.obs-data-table td { padding: 15px 16px; color: #475569; font-size: 12px; vertical-align: top; border-bottom: 1px solid #edf1f6; }
.obs-data-table tbody tr:last-child td { border-bottom: 0; }
.obs-data-table tbody tr:hover td { background: #f8fbff; }
.obs-record-row { cursor: pointer; }
.obs-data-table th:nth-child(1) { width: 128px; }
.obs-data-table th:nth-child(2) { width: 280px; }
.obs-data-table th:nth-child(3) { width: 130px; }
.obs-data-table th:nth-child(4), .obs-data-table th:nth-child(5) { width: 22%; }
.obs-data-table th:nth-child(6) { width: 112px; }
.obs-data-table th:nth-child(7) { width: 78px; }
.obs-time { display: grid; gap: 3px; }
.obs-time strong { color: #334155; font-size: 12px; font-weight: 650; }
.obs-time span, .obs-record-id { color: #94a3b8; font-size: 10px; }
.obs-record-id { display: block; margin-top: 5px; font-variant-numeric: tabular-nums; }
.obs-source-block { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.obs-source-block > i { display: grid; width: 30px; height: 30px; margin-top: 1px; place-items: center; flex: 0 0 auto; color: #1d4ed8; font-size: 11px; font-style: normal; font-weight: 800; border-radius: 8px; background: #eff6ff; }
.obs-source-block > div { display: grid; min-width: 0; gap: 4px; }
.obs-source-block strong { overflow: hidden; color: #1e293b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.obs-endpoint { display: flex; overflow: hidden; min-width: 0; align-items: center; gap: 6px; color: #64748b; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; white-space: nowrap; }
.obs-endpoint b { display: inline-flex; padding: 1px 5px; color: #1d4ed8; font-size: 9px; font-weight: 800; letter-spacing: .04em; border-radius: 4px; background: #eff6ff; }
.obs-site-host { overflow: hidden; color: #94a3b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.obs-module { display: inline-block; overflow: hidden; max-width: 118px; padding: 5px 8px; color: #4f46e5; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #e0e7ff; border-radius: 999px; background: #f5f7ff; }
.obs-kv-preview { display: grid; gap: 5px; }
.obs-kv-preview span { display: grid; grid-template-columns: minmax(72px, 38%) 1fr; gap: 8px; min-width: 0; align-items: baseline; color: #334155; font-size: 11px; font-weight: 650; }
.obs-kv-preview em { overflow: hidden; color: #94a3b8; font-size: 10px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.obs-kv-preview b { overflow: hidden; color: #334155; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.obs-kv-preview .obs-kv-empty { display: block; color: #94a3b8; font-size: 11px; font-weight: 500; }
.obs-payload-source { display: none; }
.obs-status { display: inline-flex; padding: 5px 9px; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; border-radius: 999px; }
.obs-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.obs-status-completed { color: #047857; background: #ecfdf5; }
.obs-status-failed { color: #b91c1c; background: #fef2f2; }
.obs-status-other { color: #92400e; background: #fffbeb; }
.obs-view-button { padding: 7px 12px; color: var(--obs-blue); font-size: 11px; font-weight: 700; border: 1px solid #cbd8f4; border-radius: 7px; background: #fff; cursor: pointer; }
.obs-view-button:hover { color: #fff; border-color: var(--obs-blue); background: var(--obs-blue); }
.obs-empty-state { display: grid; min-height: 280px; padding: 35px; place-items: center; align-content: center; text-align: center; }
.obs-empty-state > span { display: grid; width: 50px; height: 50px; margin-bottom: 12px; place-items: center; color: #64748b; font-size: 24px; border-radius: 14px; background: #f1f5f9; }
.obs-empty-state h3 { margin: 0 0 6px; color: #334155; font-size: 16px; }
.obs-empty-state p { margin: 0 0 17px; color: #94a3b8; font-size: 12px; }
.obs-pagination { display: flex; min-height: 66px; padding: 13px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--obs-border); }
.obs-pagination > span { color: #8492a6; font-size: 11px; }
.obs-pagination > div { display: flex; align-items: center; gap: 5px; }
.obs-page-button, .obs-page-number { display: inline-flex; height: 34px; min-width: 34px; padding: 0 10px; align-items: center; justify-content: center; color: #526277; font-size: 11px; font-weight: 650; text-decoration: none; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; }
.obs-page-number { padding: 0; }
.obs-page-button:hover, .obs-page-number:hover, .obs-page-number.active { color: #fff; border-color: var(--obs-blue); background: var(--obs-blue); }
.obs-page-button.disabled { opacity: .45; pointer-events: none; }

/* Record modal */
.obs-modal[hidden] { display: none; }
.obs-modal { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 24px; place-items: center; }
.obs-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 13, 32, .7); backdrop-filter: blur(4px); }
.obs-modal-dialog { position: relative; overflow: hidden; width: min(1240px, 96vw); max-height: 92vh; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.obs-modal-dialog > header { display: flex; padding: 20px 24px 18px; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--obs-border); }
.obs-modal-dialog h2 { margin: 5px 0 10px; color: var(--obs-navy); font-size: 22px; font-weight: 750; }
.obs-modal-header-actions { display: flex; align-items: center; gap: 10px; }
.obs-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.obs-meta-chip { display: grid; padding: 6px 9px; gap: 2px; min-width: 0; color: #334155; font-size: 11px; font-weight: 650; border: 1px solid #e6edf5; border-radius: 8px; background: #f8fafc; }
.obs-meta-chip small { color: #94a3b8; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.obs-modal-close { display: grid; width: 36px; height: 36px; place-items: center; color: #64748b; font-size: 24px; line-height: 1; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; cursor: pointer; }
.obs-modal-close:hover { color: var(--obs-navy); border-color: #cbd5e1; background: #f8fafc; }
.obs-modal-body { display: grid; overflow: auto; max-height: calc(92vh - 132px); padding: 18px; grid-template-columns: 1fr 1fr; gap: 16px; background: #f4f7fb; }
.obs-code-panel { overflow: hidden; display: flex; min-width: 0; min-height: 0; flex-direction: column; border: 1px solid var(--obs-border); border-radius: 12px; background: #fff; }
.obs-code-panel > div { display: flex; padding: 12px 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--obs-border); background: #fff; }
.obs-code-panel h3 { margin: 0; color: #334155; font-size: 12px; font-weight: 750; }
.obs-code-panel button { padding: 5px 9px; color: var(--obs-blue); font-size: 10px; font-weight: 700; border: 1px solid #cfdaf2; border-radius: 6px; background: #fff; cursor: pointer; }
.obs-code-panel button:hover { color: #fff; border-color: var(--obs-blue); background: var(--obs-blue); }
.obs-code-panel pre { overflow: auto; flex: 1; min-height: 420px; max-height: 62vh; margin: 0; padding: 18px 18px 22px; color: #d7e4fb; font-family: Consolas, "SFMono-Regular", ui-monospace, monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; background: #0b1428; }
.obs-code-panel .json-key { color: #93c5fd; }
.obs-code-panel .json-string { color: #86efac; }
.obs-code-panel .json-number { color: #fcd34d; }
.obs-code-panel .json-keyword { color: #f9a8d4; }
body.obs-modal-open { overflow: hidden; }

/* Trace */
.obs-trace-summary { display: grid; margin-bottom: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--obs-border); border-radius: 12px; background: #fff; }
.obs-trace-summary article { display: flex; min-height: 92px; padding: 18px 22px; align-items: center; gap: 14px; border-right: 1px solid var(--obs-border); }
.obs-trace-summary article:last-child { border-right: 0; }
.obs-trace-summary div { display: grid; gap: 2px; }
.obs-trace-summary small { color: #7b899c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.obs-trace-summary strong { color: var(--obs-navy); font-size: 21px; }
.obs-trace-file-state { justify-content: center; }
.obs-file-indicator { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 4px #f1f5f9; }
.obs-file-indicator.online { background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.obs-trace-panel { overflow: hidden; border: 1px solid #253554; border-radius: 13px; background: #0a1223; box-shadow: 0 16px 38px rgba(15,23,42,.15); }
.obs-trace-toolbar { display: flex; min-height: 72px; padding: 13px 17px; align-items: center; justify-content: space-between; gap: 18px; color: #dbe7fb; border-bottom: 1px solid #25334d; background: #111d34; }
.obs-trace-title { display: flex; align-items: center; gap: 14px; }
.obs-trace-title h2 { color: #eef4ff; }
.obs-trace-title p { color: #7284a3; }
.obs-terminal-dots { display: flex; gap: 5px; }
.obs-terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.obs-terminal-dots i:nth-child(2) { background: #fbbf24; }
.obs-terminal-dots i:nth-child(3) { background: #34d399; }
.obs-trace-controls { display: flex; align-items: center; gap: 8px; }
.obs-log-search { position: relative; display: flex; align-items: center; }
.obs-log-search span { position: absolute; left: 11px; color: #7284a3; font-size: 17px; }
.obs-trace-controls input, .obs-trace-controls select, .obs-icon-only-button { height: 36px; color: #b7c5dc; font-size: 11px; outline: 0; border: 1px solid #30405e; border-radius: 7px; background: #18253c; }
.obs-trace-controls input { width: 210px; padding: 0 12px 0 34px; }
.obs-trace-controls input::placeholder { color: #71809a; }
.obs-trace-controls select { min-width: 168px; padding: 0 29px 0 10px; }
.obs-icon-only-button { width: 36px; padding: 0; cursor: pointer; }
.obs-icon-only-button:hover { color: #fff; border-color: #5173b5; background: #243656; }
.obs-log-path { display: flex; min-height: 40px; padding: 0 17px; align-items: center; gap: 10px; border-bottom: 1px solid #1e2c45; background: #0e192c; }
.obs-log-path > span:first-child { color: #5f7395; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.obs-log-path code { overflow: hidden; color: #8295b4; font-family: Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.obs-file-status { margin-left: auto; padding: 3px 6px; color: #94a3b8; font-size: 8px; font-weight: 800; border-radius: 4px; background: #26344a; }
.obs-file-status.online { color: #6ee7b7; background: rgba(16,185,129,.12); }
.obs-log-viewport { overflow: auto; min-height: 480px; max-height: 65vh; background: #090f1c; scrollbar-color: #354765 #0b1424; }
.obs-log-lines { min-width: 720px; padding: 10px 0; }
.obs-log-line { display: grid; min-height: 26px; padding: 3px 18px 3px 0; align-items: start; grid-template-columns: 58px 1fr; }
.obs-log-line:hover { background: #101b2e; }
.obs-log-number { padding-right: 15px; color: #3f4f6a; font-family: Consolas, monospace; font-size: 10px; text-align: right; user-select: none; }
.obs-log-line code { color: #9fb0ca; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.obs-log-error { border-left: 2px solid rgba(239,68,68,.7); background: rgba(127,29,29,.08); }
.obs-log-error code { color: #fca5a5; }
.obs-log-success { border-left: 2px solid rgba(16,185,129,.65); }
.obs-log-success code { color: #bbf7d0; }
.obs-log-warn { border-left: 2px solid rgba(245,158,11,.65); }
.obs-log-warn code { color: #fcd28a; }
.obs-log-line[hidden] { display: none; }
.obs-log-no-results { padding: 80px 20px; color: #71809a; font-size: 12px; text-align: center; }
.obs-log-empty { min-height: 480px; color: #71809a; }
.obs-log-empty h3 { color: #c8d5e9; }
.obs-log-empty > span { color: #8195b7; background: #17233a; }
.obs-trace-footer { display: flex; min-height: 37px; padding: 0 18px; align-items: center; justify-content: space-between; color: #617493; font-size: 9px; border-top: 1px solid #1d2b43; background: #0f192b; }
.obs-trace-footer span { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
  .obs-auth-shell { grid-template-columns: minmax(350px, 44%) 1fr; }
  .obs-auth-copy h1 { font-size: 42px; }
  .obs-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .obs-filter-form { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .obs-filter-form .obs-primary-button { grid-column: 1 / -1; }
  .obs-reset-link { position: absolute; margin-top: 66px; margin-left: 125px; }
  .obs-panel-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 800px) {
  .obs-auth-shell { display: block; }
  .obs-auth-intro { display: none; }
  .obs-auth-form-panel { min-height: 100vh; padding: 36px 24px; }
  .obs-mobile-brand { display: flex; margin-bottom: 70px; }
  .obs-topbar { padding: 0 16px; grid-template-columns: auto 1fr auto; }
  .obs-logo > span:last-child, .obs-user-meta, .obs-user-button > span:last-child { display: none; }
  .obs-nav { justify-self: center; }
  .obs-page-content { width: min(100% - 28px, 1540px); padding-top: 28px; }
  .obs-page-header { align-items: flex-start; flex-direction: column; }
  .obs-stat-grid, .obs-trace-summary { grid-template-columns: repeat(2, 1fr); }
  .obs-filter-form { grid-template-columns: 1fr 1fr; }
  .obs-filter-search { grid-column: 1 / -1; }
  .obs-trace-summary article:nth-child(2) { border-right: 0; }
  .obs-trace-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--obs-border); }
  .obs-trace-toolbar { align-items: stretch; flex-direction: column; }
  .obs-trace-controls { flex-wrap: wrap; }
  .obs-log-search { flex: 1 1 200px; }
  .obs-trace-controls input { width: 100%; }
  .obs-modal-body { grid-template-columns: 1fr; }
  .obs-code-panel pre { min-height: 260px; }
  .obs-table-tools { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .obs-mobile-brand { margin-bottom: 45px; }
  .obs-auth-form-header h2 { font-size: 29px; }
  .obs-nav a { padding: 0 9px; font-size: 11px; }
  .obs-nav a span { display: none; }
  .obs-user-avatar { width: 32px; height: 32px; }
  .obs-page-header .obs-secondary-button { width: 100%; }
  .obs-stat-grid, .obs-trace-summary, .obs-filter-form { grid-template-columns: 1fr; }
  .obs-stat-card { min-height: 95px; }
  .obs-filter-search { grid-column: auto; }
  .obs-filter-form .obs-primary-button { grid-column: auto; }
  .obs-reset-link { position: static; margin: 0; text-align: center; }
  .obs-panel-heading, .obs-pagination { align-items: flex-start; flex-direction: column; }
  .obs-pagination > div { width: 100%; justify-content: space-between; }
  .obs-page-number { display: none; }
  .obs-trace-summary article { border-right: 0; border-bottom: 1px solid var(--obs-border); }
  .obs-trace-summary article:last-child { border-bottom: 0; }
  .obs-trace-file-state { justify-content: flex-start; }
  .obs-header-actions { width: 100%; }
  .obs-header-actions a { flex: 1; }
  .obs-trace-controls select { flex: 1; }
  .obs-modal { padding: 8px; }
}
