:root {
  --bg: #f3efe7;
  --panel: rgba(255, 252, 245, 0.92);
  --panel-strong: #fffaf1;
  --ink: #17212b;
  --muted: #637181;
  --line: rgba(23, 33, 43, 0.12);
  --accent: #b14f1b;
  --accent-deep: #8d3514;
  --success: #186a3b;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow: 0 22px 60px rgba(58, 38, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 185, 129, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(180, 79, 27, 0.12), transparent 22%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(23, 33, 43, 0.94);
  color: #fffaf1;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: rgba(255, 250, 241, 0.72);
  text-align: left;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 250, 241, 0.12);
  color: #fffaf1;
}

.nav-item.readonly {
  position: relative;
  padding-right: 76px;
}

.nav-item.readonly::after {
  content: attr(data-access-label);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.14);
  color: rgba(255, 250, 241, 0.88);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 18px;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.55;
}

.sidebar-note strong {
  color: #fffaf1;
}

.page {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.shell-bar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 16px;
}

.section-brief {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.auth-gate-panel {
  margin-top: 16px;
}

.shell-card {
  min-height: 108px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brief-card {
  min-height: 148px;
  padding: 20px 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brief-card h3 {
  margin: 0;
  font-size: 26px;
}

.brief-card p,
.brief-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.brief-subtext {
  padding-top: 2px;
  border-top: 1px dashed rgba(23, 33, 43, 0.12);
  color: var(--muted);
  line-height: 1.7;
}

.brief-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-gate-card,
.not-found-panel {
  min-height: 0;
}

.auth-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.shell-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shell-card strong {
  font-size: 18px;
}

.shell-card small {
  color: var(--muted);
  word-break: break-all;
}

.shell-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shell-card-actions {
  align-content: space-between;
}

.shell-card-primary strong {
  font-size: 22px;
}

.shell-card-runtime p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-console-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-console-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hero-console-card {
  min-height: 122px;
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-console-card span,
.hero-console-card small {
  color: var(--muted);
  line-height: 1.65;
}

.hero-console-card strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.subtitle {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-card,
.hero-console-card,
.hero-meta-card,
.filters,
.table-panel,
.detail-panel,
.metric-card,
.todo-card,
.placeholder-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.hero-console-panel {
  align-content: start;
}

.hero-console-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.hero-console-panel-header > div {
  display: grid;
  gap: 6px;
}

.hero-console-panel-header strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-console-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-meta-card {
  min-height: 102px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero-meta-card span,
.hero-meta-card small {
  color: var(--muted);
  line-height: 1.6;
}

.hero-meta-card strong {
  font-size: 18px;
}

.section {
  display: none;
  margin-top: 24px;
}

.section.active {
  display: block;
}

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

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.section-heading h3 {
  margin: 0;
  font-size: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.live {
  background: rgba(24, 106, 59, 0.12);
  color: var(--success);
}

.badge.planned {
  background: rgba(99, 113, 129, 0.14);
  color: var(--muted);
}

.badge.todo {
  background: rgba(154, 103, 0, 0.13);
  color: var(--warning);
}

.badge.neutral {
  background: rgba(23, 33, 43, 0.08);
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 188px;
  padding: 22px 20px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.metric-card > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 34px;
}

.metric-card small {
  max-width: 220px;
  line-height: 1.7;
}

.insight-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.insight-card span,
.insight-card small {
  color: var(--muted);
}

.insight-card strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.dashboard-status {
  margin-top: 14px;
  color: var(--muted);
}

.dashboard-alert-panel {
  margin-top: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-header h4 {
  margin: 0;
}

.panel-header small {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-alert-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-alert-toolbar {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.dashboard-alert-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-alert-counter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dashboard-alert-counter.active {
  border-color: rgba(23, 33, 43, 0.24);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, 0.08);
}

.dashboard-alert-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-alert-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.alert-card {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.alert-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(18, 140, 255, 0.86), rgba(109, 84, 255, 0.76));
}

.alert-card-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.alert-card strong {
  font-size: 19px;
  line-height: 1.45;
}

.alert-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.alert-card.alert-critical {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(254, 242, 242, 0.9);
}

.alert-card.alert-critical::before {
  background: linear-gradient(90deg, rgba(220, 51, 88, 0.92), rgba(255, 126, 95, 0.88));
}

.alert-card.alert-warning {
  border-color: rgba(154, 103, 0, 0.22);
  background: rgba(255, 251, 235, 0.92);
}

.alert-card.alert-warning::before {
  background: linear-gradient(90deg, rgba(255, 166, 0, 0.92), rgba(255, 205, 86, 0.88));
}

.alert-card.alert-positive {
  border-color: rgba(24, 106, 59, 0.22);
  background: rgba(240, 253, 244, 0.92);
}

.alert-card.alert-positive::before {
  background: linear-gradient(90deg, rgba(15, 159, 98, 0.92), rgba(52, 211, 153, 0.86));
}

.alert-card.alert-neutral {
  border-color: rgba(99, 113, 129, 0.16);
}

.alert-card.alert-workflow-resolved,
.alert-card.alert-workflow-ignored {
  opacity: 0.82;
}

.alert-card-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.alert-card-note {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(23, 33, 43, 0.05);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.alert-card-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alert-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-card-actions .small-button {
  min-height: 34px;
}

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

.todo-card,
.placeholder-panel {
  padding: 22px;
}

.admin-role-preview-board {
  display: grid;
  gap: 16px;
}

.admin-role-preview-select {
  min-width: 280px;
}

.admin-role-preview-table {
  margin-top: 0;
}

.admin-content .detail-panel pre {
  min-height: 120px;
}

.todo-card h4,
.placeholder-panel h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.todo-card p,
.placeholder-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.placeholder-panel ul {
  margin: 0;
  padding-left: 20px;
}

.filters {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

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

input,
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 33, 43, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(177, 79, 27, 0.25);
  border-color: rgba(177, 79, 27, 0.4);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  grid-column: span 2;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.secondary {
  background: rgba(23, 33, 43, 0.08);
  color: var(--ink);
}

.status-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.status {
  min-height: 52px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(58, 110, 210, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  line-height: 1.65;
}

.ficlawex-runtime-panel {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.ficlawex-runtime-card {
  min-height: 156px;
}

.ficlawex-runtime-detail {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.ficlawex-health-raw {
  margin: 0;
  min-height: 132px;
  max-height: 260px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(23, 33, 43, 0.04);
  border: 1px solid var(--line);
  padding: 14px;
}

.status[data-kind='success'] {
  color: var(--success);
}

.status[data-kind='error'] {
  color: var(--danger);
}

.summary {
  min-height: 52px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 18px;
  border: 1px solid rgba(58, 110, 210, 0.1);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: right;
  line-height: 1.65;
}

.content {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}

.table-panel {
  overflow: hidden;
}

.skeleton-row td {
  border-bottom: 1px solid var(--line);
}

.skeleton-cell {
  padding: 16px;
}

.skeleton-block {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 33, 43, 0.08) 25%, rgba(23, 33, 43, 0.16) 50%, rgba(23, 33, 43, 0.08) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.25s linear infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(23, 33, 43, 0.03);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(177, 79, 27, 0.06);
}

tbody tr.active {
  background: rgba(177, 79, 27, 0.11);
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.ok {
  background: rgba(24, 106, 59, 0.12);
  color: var(--success);
}

.pill.error {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}

.empty-state {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 14px 10px;
}

.empty-state strong {
  font-size: 15px;
  color: var(--ink);
}

.empty-state::before {
  content: attr(data-label);
  min-width: 96px;
  min-height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.empty-state small {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(58, 110, 210, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(58, 110, 210, 0.03));
}

.pagination > span {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  border: 1px solid rgba(58, 110, 210, 0.1);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-panel {
  padding: 22px;
  position: sticky;
  top: 24px;
}

.detail-panel h3 {
  margin: 0 0 18px;
}

.detail-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.trace-summary-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trace-card {
  min-height: 88px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  align-content: start;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 33, 43, 0.08);
}

.trace-card.accent {
  background: rgba(177, 79, 27, 0.08);
  border-color: rgba(177, 79, 27, 0.18);
}

.trace-card.warn {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.18);
}

.trace-card.ok {
  background: rgba(24, 106, 59, 0.08);
  border-color: rgba(24, 106, 59, 0.18);
}

.trace-card.error {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.18);
}

.trace-card.neutral {
  background: rgba(23, 33, 43, 0.05);
  border-color: rgba(23, 33, 43, 0.1);
}

.trace-card span,
.trace-card small {
  color: var(--muted);
  line-height: 1.55;
}

.trace-card strong {
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.detail-summary-card {
  min-height: 76px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  align-content: start;
  border-radius: 16px;
  background: rgba(23, 33, 43, 0.05);
  border: 1px solid rgba(23, 33, 43, 0.08);
}

.detail-summary-card.accent {
  background: rgba(177, 79, 27, 0.08);
  border-color: rgba(177, 79, 27, 0.16);
}

.detail-summary-key {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detail-summary-card strong {
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.detail-panel section + section {
  margin-top: 22px;
}

.detail-hint {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(23, 33, 43, 0.05);
  border: 1px solid rgba(23, 33, 43, 0.08);
  color: var(--muted);
  line-height: 1.65;
}

.detail-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

pre {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #171f26;
  color: #f5f7fa;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.detail-empty {
  position: relative;
  padding: 52px 18px 18px;
  border: 1px dashed rgba(23, 33, 43, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  line-height: 1.65;
}

.detail-empty::before {
  content: '待补充详情';
  position: absolute;
  left: 18px;
  top: 16px;
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-timeline {
  display: grid;
  gap: 12px;
}

.admin-timeline-item {
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.admin-timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 213, 255, 0.7), rgba(124, 61, 255, 0.32));
  border-radius: 999px;
}

.admin-timeline-item strong,
.admin-timeline-item small,
.admin-timeline-item span {
  display: block;
}

.admin-timeline-item span,
.admin-timeline-item small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-timeline-item strong {
  margin-bottom: 4px;
}

.hidden {
  display: none !important;
}

.toast-viewport {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.toast-info {
  border-color: rgba(23, 33, 43, 0.12);
}

.toast-success {
  border-color: rgba(24, 106, 59, 0.22);
  background: rgba(240, 253, 244, 0.96);
}

.toast-error {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(254, 242, 242, 0.98);
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .hero,
  .shell-bar,
  .section-brief,
  .content,
  .todo-grid,
  .dashboard-alert-grid {
    grid-template-columns: 1fr;
  }

  .hero-console-grid,
  .hero-console-meta {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .filters,
  .dashboard-alert-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .actions {
    grid-column: span 4;
    justify-content: stretch;
  }

  .filter-stack > .list-toolbar,
  .filter-stack > .filters,
  .filter-stack > .request-log-primary-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-stack > .compact-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .dashboard-alert-filter-actions {
    justify-content: stretch;
  }

  .dashboard-alert-filter-actions button {
    width: 100%;
  }

  .summary {
    text-align: left;
  }

  .actions button {
    flex: 1;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 20px 14px 32px;
  }

  .sidebar {
    padding: 20px 14px;
  }

  .nav,
  .metric-grid,
  .filters,
  .dashboard-alert-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .status-row {
    grid-template-columns: 1fr;
  }

  .hero-console-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    grid-column: span 2;
    flex-direction: column;
  }

  .filter-stack > .list-toolbar,
  .filter-stack > .filters,
  .filter-stack > .compact-toolbar,
  .filter-stack > .request-log-primary-toolbar {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .summary {
    justify-content: flex-start;
    text-align: left;
  }

  .pagination {
    grid-template-columns: 1fr;
  }

  .pagination > span,
  .pagination > button {
    justify-self: stretch;
    width: 100%;
  }

  th:nth-child(5),
  td:nth-child(5),
  th:nth-child(6),
  td:nth-child(6),
  th:nth-child(8),
  td:nth-child(8) {
    display: none;
  }
}

.list-toolbar {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.orders-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-stack > .list-toolbar,
.filter-stack > .filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.filter-stack > .unified-filter-toolbar {
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(58, 38, 22, 0.09);
}

.filter-stack > .compact-toolbar,
.filter-stack > .request-log-primary-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-stack {
  display: grid;
  gap: 12px;
}

.request-log-primary-toolbar {
  margin-top: 0;
}

.list-toolbar > label,
.filters > label {
  min-width: 0;
  min-height: 76px;
  height: 100%;
  padding: 10px 12px;
  align-content: start;
  border-radius: 18px;
  border: 1px solid rgba(58, 110, 210, 0.1);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.list-toolbar > label:focus-within,
.filters > label:focus-within {
  border-color: rgba(18, 140, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(18, 140, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.list-toolbar > label > span,
.filters > label > span {
  min-height: 15px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.list-toolbar > label > input,
.list-toolbar > label > select,
.filters > label > input,
.filters > label > select {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  line-height: 1.2;
}

.list-toolbar > label > input[type='date'],
.filters > label > input[type='date'],
.list-toolbar > label > input[type='number'],
.filters > label > input[type='number'] {
  padding-right: 14px;
}

.list-toolbar > label > select,
.filters > label > select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(58, 110, 210, 0.8) 50%),
    linear-gradient(135deg, rgba(58, 110, 210, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.list-toolbar > button {
  min-height: 48px;
  height: 48px;
  align-self: end;
}

.list-toolbar input,
.list-toolbar select,
.filters input,
.filters select {
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
}

.list-toolbar .actions,
.filters .actions {
  min-height: 100%;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: end;
  padding-top: 2px;
}

.compact-actions {
  grid-column: auto;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 44px;
  padding-top: 0;
  margin-top: -4px;
}

.simple-table {
  margin-top: 18px;
}

.pill.neutral {
  background: rgba(99, 113, 129, 0.14);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .list-toolbar,
  .orders-toolbar,
  .insight-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .list-toolbar,
  .orders-toolbar,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

.compact-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: stretch;
}

.compact-toolbar .actions {
  justify-content: flex-end;
}

.toolbar-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 33, 43, 0.05);
  border: 1px solid rgba(58, 110, 210, 0.08);
  color: var(--muted);
  line-height: 1.65;
}

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

.quick-filter-row span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.mono-like {
  font-family: "SFMono-Regular", "Menlo", monospace;
}

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

.table-actions .small-button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.table-actions .row-action-primary {
  background: linear-gradient(135deg, rgba(18, 140, 255, 0.16), rgba(109, 84, 255, 0.14));
  color: var(--accent-deep);
  border: 1px solid rgba(58, 110, 210, 0.16);
}

.table-actions .row-action-danger {
  background: linear-gradient(135deg, rgba(220, 51, 88, 0.12), rgba(255, 126, 95, 0.1));
  color: var(--danger);
  border: 1px solid rgba(220, 51, 88, 0.14);
}

.history-list {
  display: grid;
  gap: 12px;
}

.ficlawex-subject-panel {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.ficlawex-subject-panel h4,
.subject-activity-panel h4 {
  margin: 0;
}

.ficlawex-subject-panel .panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.subject-activity-panel {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(23, 33, 43, 0.05);
  border: 1px solid rgba(58, 110, 210, 0.08);
}

.history-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

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

.chip-list {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.quick-filter-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-filter-row span {
  font-weight: 700;
}

.quick-filter-row .secondary.active {
  background: rgba(177, 79, 27, 0.12);
  color: var(--accent-deep);
}

.pricing-editor {
  margin-top: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(58, 110, 210, 0.1);
}

.editor-heading h4 {
  margin: 0;
  font-size: 22px;
}

.pricing-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.checkbox-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.checkbox-field span {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.detail-actions {
  margin-bottom: 18px;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-form,
  .wide-field {
    grid-column: auto;
  }

  .alert-card-form {
    grid-template-columns: 1fr;
  }

  .dashboard-alert-filters {
    grid-template-columns: 1fr;
  }

  .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .trace-summary-grid {
    grid-template-columns: 1fr;
  }

  .pricing-form {
    grid-template-columns: 1fr;
  }
}

.user-credit-editor {
  margin-top: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.credit-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 720px) {
  .credit-form {
    grid-template-columns: 1fr;
  }
}

.danger-hint {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(180, 35, 24, 0.1);
  border: 1px solid rgba(180, 35, 24, 0.22);
  color: var(--danger);
  line-height: 1.65;
}

.audit-content {
  grid-template-columns: 1.2fr 1fr;
}

.split-actions {
  gap: 8px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 185, 129, 0.4), transparent 28%),
    rgba(243, 239, 231, 0.94);
  backdrop-filter: blur(10px);
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  width: min(480px, 100%);
  padding: 30px;
  display: grid;
  gap: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font-size: 34px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-notes {
  display: grid;
  gap: 10px;
}

.login-note {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: rgba(23, 33, 43, 0.05);
  border: 1px solid rgba(23, 33, 43, 0.08);
}

.login-note strong {
  font-size: 13px;
}

.login-note small {
  color: var(--muted);
  line-height: 1.6;
}

.login-actions {
  display: flex;
  gap: 10px;
}

.login-actions button {
  flex: 1;
}

.login-dev-panel {
  padding-top: 6px;
  display: grid;
  gap: 12px;
  border-top: 1px dashed rgba(58, 110, 210, 0.18);
}

.login-dev-header {
  display: grid;
  gap: 4px;
}

.login-dev-header small {
  color: var(--muted);
  line-height: 1.6;
}

.ghost {
  background: transparent;
  color: #48617f;
  border-color: rgba(58, 110, 210, 0.16);
}

.status.subtle {
  background: rgba(58, 110, 210, 0.06);
  color: #48617f;
}

.admin-session-card {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  background: rgba(23, 33, 43, 0.06);
}

.admin-session-card span,
.admin-session-card small {
  display: block;
  color: var(--muted);
}

.admin-session-card strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

/* Premium technology visual refresh */
:root {
  --bg: #070b18;
  --panel: rgba(10, 18, 38, 0.72);
  --panel-strong: rgba(15, 26, 52, 0.92);
  --ink: #eef6ff;
  --muted: #93a4bd;
  --line: rgba(134, 169, 255, 0.18);
  --accent: #38d5ff;
  --accent-deep: #7c3dff;
  --success: #42f59b;
  --danger: #ff5c7a;
  --warning: #ffd36a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38), 0 0 42px rgba(56, 213, 255, 0.08);
  --glow: 0 0 28px rgba(56, 213, 255, 0.22);
  --glow-strong: 0 0 54px rgba(124, 61, 255, 0.28);
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -8%, rgba(56, 213, 255, 0.28), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(124, 61, 255, 0.28), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(21, 104, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #050711 0%, #0a1021 42%, #10172d 100%);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(134, 169, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 169, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(56, 213, 255, 0.08) 18%, transparent 36%),
    linear-gradient(290deg, transparent 8%, rgba(124, 61, 255, 0.08) 30%, transparent 58%);
  opacity: 0.8;
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  padding: 30px 22px;
  background:
    linear-gradient(180deg, rgba(8, 15, 32, 0.96) 0%, rgba(8, 12, 24, 0.9) 100%);
  border-right: 1px solid rgba(134, 169, 255, 0.16);
  box-shadow: 22px 0 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(26px);
}

.brand {
  position: relative;
  padding: 18px 16px 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(56, 213, 255, 0.13), rgba(124, 61, 255, 0.14)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(134, 169, 255, 0.16);
  overflow: hidden;
}

.brand::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -52px;
  top: -52px;
  border-radius: 999px;
  background: rgba(56, 213, 255, 0.24);
  filter: blur(4px);
}

.brand h1 {
  position: relative;
  font-size: 28px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #8be9ff 48%, #b6a1ff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.nav {
  gap: 10px;
}

.nav-item {
  position: relative;
  min-height: 48px;
  padding: 0 18px 0 20px;
  color: rgba(220, 234, 255, 0.72);
  border: 1px solid transparent;
  border-radius: 16px;
}

.nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 999px;
  background: rgba(147, 164, 189, 0.48);
  box-shadow: 0 0 0 rgba(56, 213, 255, 0);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(56, 213, 255, 0.14), rgba(124, 61, 255, 0.14));
  border-color: rgba(134, 169, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--glow);
}

.nav-item:hover::before,
.nav-item.active::before {
  background: #42e8ff;
  box-shadow: 0 0 14px rgba(56, 213, 255, 0.9);
}

.page {
  max-width: 1600px;
  padding: 34px 30px 56px;
}

.hero {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border: 1px solid rgba(134, 169, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 10%, rgba(56, 213, 255, 0.16), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(124, 61, 255, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(13, 26, 56, 0.84), rgba(10, 18, 38, 0.62));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 38%;
  height: 190px;
  background: linear-gradient(90deg, transparent, rgba(56, 213, 255, 0.18), rgba(124, 61, 255, 0.2), transparent);
  transform: rotate(-8deg);
  filter: blur(8px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  max-width: 760px;
  font-size: clamp(46px, 5.2vw, 74px);
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, #fff 0%, #dff7ff 34%, #6de6ff 66%, #b6a1ff 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(56, 213, 255, 0.16);
}

.subtitle {
  max-width: 760px;
  color: #a9bad2;
}

.eyebrow {
  color: #5ce8ff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 16px rgba(56, 213, 255, 0.36);
}

.hero-card,
.filters,
.table-panel,
.detail-panel,
.metric-card,
.todo-card,
.placeholder-panel,
.shell-card,
.brief-card,
.list-toolbar,
.pricing-editor,
.user-credit-editor,
.login-card {
  background:
    linear-gradient(145deg, rgba(16, 29, 58, 0.78), rgba(9, 16, 35, 0.72)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(134, 169, 255, 0.18);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.25);
}

.hero-card {
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 18, 38, 0.68);
}

.shell-card,
.brief-card,
.metric-card,
.insight-card,
.hero-console-card,
.hero-meta-card,
.trace-card,
.alert-card,
.detail-summary-card,
.login-note,
.admin-session-card,
.toolbar-note,
.detail-hint,
.danger-hint {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border-color: rgba(134, 169, 255, 0.16);
}

.shell-bar {
  margin-top: 22px;
}

.shell-card {
  min-height: 112px;
  border-radius: 22px;
}

.shell-card strong,
.metric-card strong,
.insight-card strong,
.hero-console-card strong,
.hero-meta-card strong,
.detail-summary-card strong,
.trace-card strong {
  color: #f4fbff;
}

.section-heading {
  padding: 4px 4px 0;
}

.section-heading h3 {
  font-size: 32px;
  letter-spacing: -0.045em;
  color: #f5fbff;
}

.badge,
.pill,
.chip {
  border: 1px solid rgba(134, 169, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge.live,
.pill.ok,
.trace-card.ok {
  background: rgba(66, 245, 155, 0.12);
  color: #62ffb0;
  border-color: rgba(66, 245, 155, 0.22);
}

.badge.planned,
.badge.neutral,
.pill.neutral {
  background: rgba(134, 169, 255, 0.12);
  color: #b8c8e4;
}

.badge.todo,
.trace-card.warn {
  background: rgba(255, 211, 106, 0.12);
  color: #ffe09a;
  border-color: rgba(255, 211, 106, 0.22);
}

.pill.error,
.trace-card.error {
  background: rgba(255, 92, 122, 0.12);
  color: #ff8ca0;
  border-color: rgba(255, 92, 122, 0.24);
}

.metric-card,
.insight-card,
.trace-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.insight-card::before,
.trace-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 213, 255, 0.72), rgba(124, 61, 255, 0.58), transparent);
}

.metric-card strong {
  font-size: 40px;
  letter-spacing: -0.065em;
  background: linear-gradient(135deg, #fff, #6de6ff);
  -webkit-background-clip: text;
  color: transparent;
}

.metric-card:hover,
.insight-card:hover,
.trace-card:hover,
.table-panel:hover,
.detail-panel:hover {
  border-color: rgba(56, 213, 255, 0.28);
  box-shadow: var(--shadow), var(--glow);
}

input,
select,
textarea {
  background: rgba(5, 10, 24, 0.62);
  border-color: rgba(134, 169, 255, 0.18);
  color: #edf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(147, 164, 189, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(56, 213, 255, 0.24);
  border-color: rgba(56, 213, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(56, 213, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

button {
  font-weight: 760;
  letter-spacing: -0.01em;
}

.primary {
  background: linear-gradient(135deg, #28d9ff 0%, #3978ff 46%, #8a5cff 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(56, 125, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.secondary {
  background: rgba(134, 169, 255, 0.12);
  color: #d9e7ff;
  border: 1px solid rgba(134, 169, 255, 0.16);
}

.secondary:hover,
.primary:hover {
  box-shadow: var(--glow);
}

thead {
  background: linear-gradient(90deg, rgba(56, 213, 255, 0.08), rgba(124, 61, 255, 0.08));
}

th {
  color: #91bfff;
}

td {
  border-bottom-color: rgba(134, 169, 255, 0.12);
}

tbody tr:hover {
  background: rgba(56, 213, 255, 0.07);
}

tbody tr.active {
  background: linear-gradient(90deg, rgba(56, 213, 255, 0.13), rgba(124, 61, 255, 0.1));
}

pre {
  background: rgba(2, 8, 18, 0.82);
  border: 1px solid rgba(134, 169, 255, 0.14);
  color: #d9f7ff;
  box-shadow: inset 0 0 34px rgba(56, 213, 255, 0.04);
}

.empty-state::before {
  background: rgba(56, 213, 255, 0.12);
  color: #8eefff;
}

.login-overlay {
  background:
    radial-gradient(circle at top left, rgba(56, 213, 255, 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(124, 61, 255, 0.28), transparent 34%),
    rgba(5, 8, 18, 0.88);
}

.login-card {
  border-radius: 32px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52), var(--glow-strong);
}

.login-card h2 {
  font-size: 38px;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff, #66e7ff, #b6a1ff);
  -webkit-background-clip: text;
  color: transparent;
}

.status[data-kind='success'] {
  color: #62ffb0;
}

.status[data-kind='error'] {
  color: #ff8ca0;
}

.toast {
  background: rgba(10, 18, 38, 0.94);
  border-color: rgba(134, 169, 255, 0.18);
  color: #eef6ff;
}

.toast-success {
  border-color: rgba(66, 245, 155, 0.26);
  background: rgba(8, 34, 28, 0.94);
}

.toast-error {
  border-color: rgba(255, 92, 122, 0.28);
  background: rgba(42, 12, 24, 0.94);
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(134, 169, 255, 0.16);
  }
}

/* Bright premium technology refinement */
:root {
  --bg: #edf5ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --ink: #10223f;
  --muted: #62758f;
  --line: rgba(58, 110, 210, 0.18);
  --accent: #128cff;
  --accent-deep: #6d54ff;
  --success: #0f9f62;
  --danger: #dc3358;
  --warning: #b77900;
  --shadow: 0 24px 70px rgba(45, 83, 140, 0.16), 0 0 36px rgba(18, 140, 255, 0.08);
  --glow: 0 0 26px rgba(18, 140, 255, 0.2);
  --glow-strong: 0 0 48px rgba(109, 84, 255, 0.22);
}

html {
  background: #edf5ff;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(18, 140, 255, 0.22), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(109, 84, 255, 0.18), transparent 30%),
    radial-gradient(circle at 52% 108%, rgba(40, 211, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 42%, #e8efff 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(58, 110, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 110, 210, 0.08) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
}

body::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(18, 140, 255, 0.1) 18%, transparent 38%),
    linear-gradient(290deg, transparent 8%, rgba(109, 84, 255, 0.08) 30%, transparent 60%);
  opacity: 0.7;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.94) 0%, rgba(228, 238, 255, 0.86) 100%);
  color: #10223f;
  border-right-color: rgba(58, 110, 210, 0.16);
  box-shadow: 18px 0 70px rgba(58, 110, 210, 0.12);
}

.brand {
  background:
    linear-gradient(135deg, rgba(18, 140, 255, 0.12), rgba(109, 84, 255, 0.11)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(58, 110, 210, 0.18);
}

.brand h1 {
  background: linear-gradient(135deg, #10223f 0%, #0879e8 48%, #654eff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-item {
  color: rgba(16, 34, 63, 0.72);
}

.nav-item::before {
  background: rgba(98, 117, 143, 0.42);
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(18, 140, 255, 0.12), rgba(109, 84, 255, 0.1));
  border-color: rgba(18, 140, 255, 0.24);
  color: #0b1f3d;
  box-shadow: 0 16px 34px rgba(58, 110, 210, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.nav-item:hover::before,
.nav-item.active::before {
  background: #128cff;
  box-shadow: 0 0 12px rgba(18, 140, 255, 0.7);
}

.hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(18, 140, 255, 0.16), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(109, 84, 255, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(236, 244, 255, 0.72));
  border-color: rgba(58, 110, 210, 0.18);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero::after {
  background: linear-gradient(90deg, transparent, rgba(18, 140, 255, 0.18), rgba(109, 84, 255, 0.16), transparent);
}

.hero h2 {
  background: linear-gradient(135deg, #0e2445 0%, #147fff 46%, #705bff 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
}

.subtitle {
  color: #647792;
}

.eyebrow {
  color: #0879e8;
  text-shadow: none;
}

.hero-card,
.hero-console-card,
.hero-meta-card,
.filters,
.table-panel,
.detail-panel,
.metric-card,
.todo-card,
.placeholder-panel,
.shell-card,
.brief-card,
.list-toolbar,
.pricing-editor,
.user-credit-editor,
.login-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(58, 110, 210, 0.16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.74)),
    rgba(255, 255, 255, 0.76);
}

.shell-card,
.brief-card,
.metric-card,
.insight-card,
.hero-console-card,
.hero-meta-card,
.trace-card,
.alert-card,
.detail-summary-card,
.login-note,
.admin-session-card,
.toolbar-note,
.detail-hint,
.danger-hint {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(234, 243, 255, 0.62));
  border-color: rgba(58, 110, 210, 0.14);
}

.shell-card strong,
.metric-card strong,
.insight-card strong,
.hero-console-card strong,
.hero-meta-card strong,
.detail-summary-card strong,
.trace-card strong,
.section-heading h3,
.empty-state strong,
.alert-card strong,
.checkbox-field span {
  color: #10223f;
}

.metric-card strong {
  background: linear-gradient(135deg, #10223f, #128cff);
  -webkit-background-clip: text;
  color: transparent;
}

.badge.live,
.pill.ok,
.trace-card.ok {
  background: rgba(15, 159, 98, 0.1);
  color: #0f8c57;
  border-color: rgba(15, 159, 98, 0.22);
}

.badge.planned,
.badge.neutral,
.pill.neutral {
  background: rgba(58, 110, 210, 0.1);
  color: #48617f;
}

.badge.todo,
.trace-card.warn {
  background: rgba(183, 121, 0, 0.1);
  color: #936406;
  border-color: rgba(183, 121, 0, 0.2);
}

.pill.error,
.trace-card.error {
  background: rgba(220, 51, 88, 0.1);
  color: #c3294e;
  border-color: rgba(220, 51, 88, 0.22);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(58, 110, 210, 0.18);
  color: #10223f;
}

input::placeholder,
textarea::placeholder {
  color: rgba(98, 117, 143, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  outline-color: rgba(18, 140, 255, 0.22);
  border-color: rgba(18, 140, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(18, 140, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.primary {
  background: linear-gradient(135deg, #22b8ff 0%, #2878ff 48%, #765dff 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(40, 120, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.secondary {
  background: rgba(58, 110, 210, 0.1);
  color: #183a68;
  border-color: rgba(58, 110, 210, 0.16);
}

thead {
  background: linear-gradient(90deg, rgba(18, 140, 255, 0.08), rgba(109, 84, 255, 0.07));
}

th {
  color: #3f6db4;
}

td {
  border-bottom-color: rgba(58, 110, 210, 0.11);
}

tbody tr:hover {
  background: rgba(18, 140, 255, 0.055);
}

tbody tr.active {
  background: linear-gradient(90deg, rgba(18, 140, 255, 0.1), rgba(109, 84, 255, 0.08));
}

pre {
  background: rgba(12, 26, 52, 0.94);
  border-color: rgba(58, 110, 210, 0.18);
  color: #dff6ff;
}

.login-overlay {
  background:
    radial-gradient(circle at top left, rgba(18, 140, 255, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(109, 84, 255, 0.16), transparent 34%),
    rgba(237, 245, 255, 0.9);
}

.login-card h2 {
  background: linear-gradient(135deg, #10223f, #0879e8, #6d54ff);
  -webkit-background-clip: text;
  color: transparent;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(58, 110, 210, 0.18);
  color: #10223f;
}

.login-overlay {
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(72, 170, 255, 0.26), transparent 24%),
    radial-gradient(circle at center right, rgba(132, 98, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(243, 248, 255, 0.98), rgba(232, 241, 255, 0.94));
}

.login-card {
  width: min(1120px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(77, 132, 255, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 36px 120px rgba(70, 102, 170, 0.16),
    0 8px 28px rgba(30, 58, 138, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.12);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  min-height: 720px;
}

.login-brand-panel {
  position: relative;
  padding: 34px 34px 30px;
  display: grid;
  align-content: start;
  gap: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(165deg, rgba(16, 34, 63, 0.96) 0%, rgba(13, 62, 138, 0.92) 52%, rgba(84, 96, 255, 0.84) 100%);
  color: #f6fbff;
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(110, 233, 255, 0.18), transparent 24%);
  pointer-events: none;
}

.login-brand-top,
.login-brand-copy,
.login-brand-badges,
.login-brand-grid,
.login-brand-footer {
  position: relative;
  z-index: 1;
}

.login-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f2550;
  background: linear-gradient(135deg, #fafdff, #c7ecff);
  box-shadow: 0 14px 30px rgba(10, 22, 46, 0.24);
}

.login-brand-meta {
  display: grid;
  gap: 4px;
}

.login-brand-meta strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.login-brand-meta small {
  color: rgba(236, 245, 255, 0.76);
}

.login-brand-copy .eyebrow {
  margin-bottom: 12px;
  color: rgba(212, 234, 255, 0.9);
}

.login-brand-copy h2 {
  margin: 0;
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1.04;
  color: #ffffff;
  letter-spacing: -0.05em;
  -webkit-background-clip: initial;
  background: none;
}

.login-lead {
  margin: 0;
  max-width: 540px;
  color: rgba(236, 245, 255, 0.82);
  font-size: 17px;
  line-height: 1.78;
}

.login-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-badge {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-brand-grid {
  display: grid;
  gap: 12px;
}

.login-brand-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-brand-card strong {
  font-size: 14px;
}

.login-brand-card small {
  color: rgba(236, 245, 255, 0.8);
  line-height: 1.72;
}

.login-brand-footer {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-brand-footer div {
  padding: 14px 16px;
  display: grid;
  gap: 5px;
  border-radius: 18px;
  background: rgba(8, 18, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-brand-footer span {
  font-size: 12px;
  color: rgba(218, 234, 255, 0.72);
}

.login-brand-footer strong {
  font-size: 14px;
  color: #ffffff;
}

.login-form-panel {
  padding: 38px 36px 32px;
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 255, 0.76)),
    rgba(255, 255, 255, 0.6);
}

.login-form-head {
  display: grid;
  gap: 10px;
}

.login-form-head .eyebrow {
  margin-bottom: 0;
  color: #3b7ff0;
}

.login-form-head h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #10223f;
}

.login-form-head p {
  margin: 0;
  color: #5d728f;
  line-height: 1.72;
}

.login-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-note {
  min-height: 102px;
  padding: 16px 16px 15px;
  gap: 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 247, 255, 0.84));
  border: 1px solid rgba(77, 132, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-note strong {
  font-size: 14px;
  color: #14315c;
}

.login-note small {
  color: #617896;
  line-height: 1.68;
}

.login-form-panel label span {
  color: #4a6283;
}

.login-form-panel input,
.login-form-panel textarea {
  border-radius: 18px;
  min-height: 52px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(77, 132, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.login-code-field {
  min-width: 0;
}

.login-code-button {
  min-height: 52px;
}

.login-actions {
  display: flex;
  gap: 12px;
}

.login-actions-split {
  justify-content: stretch;
}

.login-status {
  min-height: 24px;
  padding-left: 2px;
}

.login-dev-panel {
  margin-top: 4px;
  padding: 0;
  border-top: 1px dashed rgba(77, 132, 255, 0.18);
  border-radius: 20px;
  background: rgba(244, 249, 255, 0.52);
}

.login-dev-disclosure {
  border-radius: 20px;
}

.login-dev-summary {
  list-style: none;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.login-dev-summary::-webkit-details-marker {
  display: none;
}

.login-dev-summary-copy {
  display: grid;
  gap: 4px;
}

.login-dev-summary-badge {
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(77, 132, 255, 0.1);
  color: #295ba8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.login-dev-body {
  padding: 0 18px 18px;
  display: grid;
  gap: 14px;
  border-top: 1px dashed rgba(77, 132, 255, 0.16);
}

.login-dev-summary-copy strong {
  color: #15315b;
}

.login-dev-summary-copy small {
  color: #647c9a;
}

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

  .login-brand-panel,
  .login-form-panel {
    padding: 30px 28px;
  }

  .login-brand-footer {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .login-overlay {
    padding: 14px;
  }

  .login-card {
    border-radius: 28px;
  }

  .login-shell {
    min-height: 0;
  }

  .login-brand-panel {
    order: 2;
  }

  .login-form-panel {
    order: 1;
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 24px 20px;
  }

  .login-brand-copy h2,
  .login-form-head h3 {
    font-size: 30px;
  }

  .login-notes,
  .login-brand-footer,
  .login-code-row {
    grid-template-columns: 1fr;
  }

  .login-note {
    min-height: 0;
  }

  .login-brand-grid {
    gap: 10px;
  }

  .login-brand-card {
    padding: 14px 15px;
    border-radius: 18px;
  }

  .login-code-button,
  .login-actions button,
  .login-actions-split button {
    width: 100%;
  }

  .login-dev-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

.toast-success {
  background: rgba(239, 255, 248, 0.96);
  border-color: rgba(15, 159, 98, 0.22);
}

.toast-error {
  background: rgba(255, 241, 245, 0.96);
  border-color: rgba(220, 51, 88, 0.24);
}
