:root {
  --app-bg: #eef1f6;
  --app-surface: #f8fafc;
  --app-text: #0f172a;
  --app-muted: #5b6473;
  --app-muted-strong: #4b5563;
  --app-border: #d7dee8;
  --app-accent: #2b6cb0;
  --app-accent-strong: #1f4b7a;
  --app-input-bg: #ffffff;
  --app-input-text: #0f172a;
  --app-input-border: #c9d3e1;
  --app-input-placeholder: #6b7280;
  --app-input-focus: #2b6cb0;
  --app-input-focus-ring: rgba(43, 108, 176, 0.18);
  --app-row-odd: #f8fafc;
  --app-row-even: #eef3f8;
  --app-row-hover: #e6edf5;
}

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

body {
  background: var(--app-bg);
  color: var(--app-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .section {
  flex: 1 0 auto;
}

body > .footer {
  margin-top: auto;
}

a {
  color: var(--app-accent);
}

a:hover {
  color: var(--app-accent-strong);
}

.navbar,
.box,
.card,
.table,
.footer,
.notification,
.message {
  background: var(--app-surface);
  color: var(--app-text);
}

.navbar {
  border-bottom: 1px solid var(--app-border);
}

.navbar-item,
.navbar-link {
  color: var(--app-text);
}

.navbar-item:hover,
.navbar-link:hover,
.navbar-item.is-active,
.navbar-link.is-active,
.navbar-dropdown .navbar-item:hover,
.navbar-dropdown .navbar-item.is-active {
  background: var(--app-row-hover);
  color: var(--app-text);
}

.box,
.card,
.table,
.footer,
.message,
.notification {
  border: 1px solid var(--app-border);
}

.message-body {
  background: var(--app-row-odd);
  border-color: var(--app-border);
  color: var(--app-text);
}

.input,
.textarea,
.select select {
  background: var(--app-input-bg);
  border-color: var(--app-input-border);
  color: var(--app-input-text);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--app-input-placeholder);
}

.input:focus,
.textarea:focus,
.select select:focus,
.input:focus-visible,
.textarea:focus-visible,
.select select:focus-visible {
  border-color: var(--app-input-focus);
  box-shadow: 0 0 0 0.125em var(--app-input-focus-ring);
}

.input[disabled],
.textarea[disabled],
.select select[disabled] {
  background: var(--app-surface);
  color: var(--app-muted);
}

.footer {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.footer .content {
  color: var(--app-text);
}

.table th,
.table td {
  border-color: var(--app-border);
}

.table thead th {
  color: var(--app-text);
  font-weight: 700;
}

.content table thead th,
.dev-info table thead th {
  color: var(--app-text);
  font-weight: 700;
}

html:not(.theme-dark) .evidence-log-table th,
html:not(.theme-dark) .evidence-log-table td,
html:not(.theme-dark) .evidence-log-table td p {
  color: var(--app-text) !important;
}

html:not(.theme-dark) .evidence-log-table td a {
  color: var(--app-accent) !important;
}

html:not(.theme-dark) .evidence-log-table td a:hover {
  color: var(--app-accent-strong) !important;
}

html:not(.theme-dark) .pci-reference-box .content,
html:not(.theme-dark) .pci-reference-box .content p,
html:not(.theme-dark) .pci-reference-box .content li,
html:not(.theme-dark) .pci-reference-box .content h5 {
  color: var(--app-text) !important;
}

html:not(.theme-dark) .table.is-striped tbody tr {
  color: var(--app-text);
}

html:not(.theme-dark) .table.is-striped tbody td {
  color: var(--app-text);
}

html:not(.theme-dark) .table.is-striped tbody tr:nth-child(odd) {
  background: var(--app-row-odd) !important;
}

html:not(.theme-dark) .table.is-striped tbody tr:nth-child(even) {
  background: var(--app-row-even) !important;
}

html:not(.theme-dark) .table.is-hoverable tbody tr:hover {
  background: var(--app-row-hover) !important;
}

html:not(.theme-dark) .table.is-striped tbody tr strong {
  color: var(--app-text);
}

html:not(.theme-dark) .table.is-striped tbody tr .has-text-grey {
  color: var(--app-muted-strong) !important;
}

.has-text-grey {
  color: var(--app-muted) !important;
}

.title,
.subtitle,
.card-header-title {
  color: var(--app-text);
}

.label {
  color: var(--app-muted-strong);
}

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

.tag.is-pci {
  background: #edf2ff;
  color: #374151;
}

.footer-content {
  text-align: left;
}

.footer-signoff {
  color: var(--app-muted);
  margin-top: 1rem;
  text-align: center;
}

.dev-info {
  text-align: left;
}

.dev-info > details {
  margin-bottom: 0.75rem;
}

.dev-info > details > dl {
  margin: 0.5rem 0 1.1rem;
}

.dev-info > details > div {
  margin-top: 1.2rem;
}

.dev-info details {
  margin: 0.5rem 0;
}

.dev-info details > summary {
  color: var(--app-text);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dev-info details details {
  border-left: 1px solid var(--app-border);
  margin-left: 1rem;
  padding-left: 0.75rem;
}

.dev-info details details details {
  margin-left: 1.25rem;
}

.dev-info h2 {
  color: var(--app-text);
  font-size: 1.4rem;
  margin: 1.25rem 0 0.6rem;
}

.dev-info > details > div > h2 {
  margin-top: 0;
}

.dev-info p {
  margin: 0.4rem 0 0.65rem;
}

.dev-info dl {
  margin: 0.4rem 0 0.85rem;
}

.dev-info dl > div {
  margin-bottom: 0.35rem;
}

.dev-info dt {
  color: var(--app-muted);
  font-weight: 600;
}

.dev-info dd {
  margin-left: 1rem;
}

.dev-info tt {
  color: var(--app-muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.dev-info table {
  margin: 0.5rem 0 1rem;
  width: 100%;
}

.dev-info th,
.dev-info td {
  text-align: left;
  vertical-align: top;
}

.dev-info pre {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 6px;
  color: var(--app-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.4rem 0 0.8rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.85rem 1rem;
  white-space: pre;
}

.dev-info pre[class*="language-"] {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: var(--app-text);
  text-shadow: none;
}

.dev-info pre code[class*="language-"] {
  background: transparent;
  color: inherit;
  display: block;
  padding: 0;
  text-shadow: none;
}

.dev-info pre code[class*="language-"] .token.operator,
.dev-info pre code[class*="language-"] .token.entity,
.dev-info pre code[class*="language-"] .token.url {
  background: transparent;
}

.dev-info pre code[class*="language-"] {
  background: transparent;
}

.dev-info copy-component {
  display: block;
}

.dev-info copy-component [slot="button"] {
  margin-bottom: 0.8rem;
}

.theme-dark body {
  --app-bg: #152033;
  --app-surface: #0f172a;
  --app-text: #e2e8f0;
  --app-muted: #94a3b8;
  --app-muted-strong: #a9b7ca;
  --app-border: #1e293b;
  --app-accent: #93c5fd;
  --app-accent-strong: #bfdbfe;
  --app-input-bg: #0b1325;
  --app-input-text: #e2e8f0;
  --app-input-border: #334155;
  --app-input-placeholder: #91a0b8;
  --app-input-focus: #93c5fd;
  --app-input-focus-ring: rgba(147, 197, 253, 0.25);
  --app-row-odd: #0f172a;
  --app-row-even: #121d32;
  --app-row-hover: #17253f;
}

.theme-dark .navbar,
.theme-dark .box,
.theme-dark .card,
.theme-dark .table,
.theme-dark .notification,
.theme-dark .message {
  background: var(--app-surface);
  color: var(--app-text);
}

.theme-dark .message-body {
  background: var(--app-row-even);
  border-color: var(--app-border);
  color: var(--app-text);
}

.theme-dark .navbar-item,
.theme-dark .navbar-link {
  color: var(--app-text);
}

.theme-dark .label {
  color: var(--app-text);
}

.theme-dark .help {
  color: var(--app-muted);
}

.theme-dark .navbar-item:hover,
.theme-dark .navbar-link:hover,
.theme-dark .navbar-item.is-active,
.theme-dark .navbar-link.is-active,
.theme-dark .navbar-dropdown .navbar-item:hover,
.theme-dark .navbar-dropdown .navbar-item.is-active {
  background: var(--app-row-hover);
  color: var(--app-text);
}

.theme-dark .table.is-striped tbody tr:nth-child(even) {
  background: var(--app-row-even);
}

.theme-dark .table.is-striped tbody tr:nth-child(odd) {
  background: var(--app-row-odd);
}

.theme-dark .table.is-hoverable tbody tr:hover {
  background: var(--app-row-hover);
}

.theme-dark .navbar-item,
.theme-dark .navbar-link,
.theme-dark .navbar-burger span {
  color: var(--app-text);
}

.theme-dark .tag.is-pci {
  background: #1f2937;
  color: #e2e8f0;
}

.theme-dark .tag.is-light {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
}

.theme-dark .dev-info pre code[class*="language-"] {
  color: #c9d1d9;
}

.theme-dark .dev-info pre[class*="language-"] {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: #c9d1d9;
}

.theme-dark .dev-info .token.comment,
.theme-dark .dev-info .token.prolog,
.theme-dark .dev-info .token.doctype,
.theme-dark .dev-info .token.cdata {
  color: #8b949e;
}

.theme-dark .dev-info .token.keyword,
.theme-dark .dev-info .token.atrule,
.theme-dark .dev-info .token.boolean,
.theme-dark .dev-info .token.important,
.theme-dark .dev-info .token.tag {
  color: #ff7b72;
}

.theme-dark .dev-info .token.string,
.theme-dark .dev-info .token.char,
.theme-dark .dev-info .token.attr-value,
.theme-dark .dev-info .token.inserted {
  color: #a5d6ff;
}

.theme-dark .dev-info .token.number,
.theme-dark .dev-info .token.property,
.theme-dark .dev-info .token.constant,
.theme-dark .dev-info .token.symbol,
.theme-dark .dev-info .token.deleted {
  color: #79c0ff;
}

.theme-dark .dev-info .token.function,
.theme-dark .dev-info .token.class-name,
.theme-dark .dev-info .token.selector {
  color: #d2a8ff;
}

.theme-dark .dev-info .token.punctuation {
  color: #b9c4d6;
}

.theme-dark .dev-info .token.italic {
  font-style: italic;
}

.theme-dark .dev-info .token.bold,
.theme-dark .dev-info .token.important {
  font-weight: 700;
}
