.theme-nav-item {
  align-items: center;
  display: flex;
  gap: .35rem;
  padding: .25rem 0 .25rem .45rem;
}

.theme-mode-label {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  margin: 0;
}

.theme-mode-select {
  background: #2f3338;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #fff;
  font-size: .82rem;
  height: 30px;
  max-width: 112px;
  padding: .15rem .35rem;
}

.theme-mode-select:focus {
  border-color: #d3aa68;
  box-shadow: 0 0 0 .12rem rgba(211, 170, 104, .22);
  outline: 0;
}

@media (max-width: 767.98px) {
  .theme-nav-item {
    padding: .4rem 0 .65rem;
  }
}

html[data-theme="dark"] {
  --dj-bg: #101214;
  --dj-surface: #171a1d;
  --dj-surface-2: #1d2125;
  --dj-surface-3: #242930;
  --dj-border: #333941;
  --dj-border-soft: #2a3037;
  --dj-text: #e6dfd2;
  --dj-heading: #f3eadb;
  --dj-muted: #b7aea0;
  --dj-muted-2: #948b7e;
  --dj-link: #e0bd79;
  --dj-link-hover: #f0cf8f;
  --dj-accent: #d3aa68;
  --dj-accent-soft: rgba(211, 170, 104, .16);
  --dj-highlight-bg: #5a4318;
  --dj-highlight-text: #fff2bf;
  background: var(--dj-bg);
  color: var(--dj-text);
}

html[data-theme="dark"] body {
  background: var(--dj-bg);
  color: var(--dj-text);
}

html[data-theme="dark"] a {
  color: var(--dj-link);
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus {
  color: var(--dj-link-hover);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5,
html[data-theme="dark"] .h6 {
  color: var(--dj-heading);
}

html[data-theme="dark"] footer {
  background-color: #15181b;
  border-top: 1px solid var(--dj-border-soft);
  color: var(--dj-muted);
}

html[data-theme="dark"] footer .text-dark,
html[data-theme="dark"] .text-dark {
  color: var(--dj-text) !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] small,
html[data-theme="dark"] .small {
  color: var(--dj-muted) !important;
}

html[data-theme="dark"] .text-orange {
  color: #e0b36c !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu {
  background-color: var(--dj-surface) !important;
  border-color: var(--dj-border) !important;
  color: var(--dj-text) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-right,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-left,
html[data-theme="dark"] .dropdown-divider,
html[data-theme="dark"] hr {
  border-color: var(--dj-border) !important;
}

html[data-theme="dark"] .breadcrumb {
  background: transparent;
}

html[data-theme="dark"] .breadcrumb-item.active {
  color: var(--dj-text) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .input-group-text {
  background-color: #14171a;
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .custom-select:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  background-color: #171b1f;
  border-color: var(--dj-accent);
  box-shadow: 0 0 0 .12rem rgba(211, 170, 104, .24);
  color: var(--dj-text);
}

html[data-theme="dark"] ::placeholder {
  color: #867f73 !important;
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary {
  background: var(--dj-surface);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-primary:hover {
  background: var(--dj-surface-2);
  border-color: var(--dj-accent);
  color: var(--dj-heading);
}

html[data-theme="dark"] .btn-orange {
  background: #d6a24f;
  color: #17120a;
}

html[data-theme="dark"] .btn-orange:hover {
  background: #e2b66c;
  color: #17120a;
}

html[data-theme="dark"] .alert,
html[data-theme="dark"] .alert-light {
  background: var(--dj-surface-2);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .table,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th {
  color: var(--dj-text);
  border-color: var(--dj-border);
}

html[data-theme="dark"] .pagination .page-link {
  background: var(--dj-surface);
  border-color: var(--dj-border);
  color: var(--dj-link);
}

html[data-theme="dark"] .pagination .active .page-link,
html[data-theme="dark"] .pagination .page-item.active .page-link {
  background: #6f5524;
  border-color: #8a6a30;
  color: #fff4d9;
}

html[data-theme="dark"] .quote-text {
  background: var(--dj-surface-2);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .quote-top,
html[data-theme="dark"] .trigger-quote:hover {
  color: var(--dj-heading);
}

html[data-theme="dark"] .prawo-search-mark,
html[data-theme="dark"] .prosecutor-highlight,
html[data-theme="dark"] .court-highlight {
  background: var(--dj-highlight-bg);
  color: var(--dj-highlight-text);
  box-shadow: 0 0 0 1px rgba(255, 213, 107, .2);
}

html[data-theme="dark"] .prawo-act-header,
html[data-theme="dark"] .article-hero,
html[data-theme="dark"] .prosecutor-list-hero,
html[data-theme="dark"] .prosecutor-search-panel,
html[data-theme="dark"] .office-detail-hero,
html[data-theme="dark"] .court-list-hero,
html[data-theme="dark"] .court-search-panel,
html[data-theme="dark"] .court-detail-hero {
  background: var(--dj-surface);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .prawo-act-title,
html[data-theme="dark"] .prawo-act-title-row,
html[data-theme="dark"] .prawo-act-title-row span,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .prosecutor-list-title,
html[data-theme="dark"] .prosecutor-card-title,
html[data-theme="dark"] .office-title,
html[data-theme="dark"] .court-list-title,
html[data-theme="dark"] .court-card-title,
html[data-theme="dark"] .court-title {
  color: var(--dj-heading) !important;
}

html[data-theme="dark"] .prawo-act-item,
html[data-theme="dark"] .prawo-article-item,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-nav-link,
html[data-theme="dark"] .article-section,
html[data-theme="dark"] .article-relation,
html[data-theme="dark"] .article-side-panel,
html[data-theme="dark"] .article-comment,
html[data-theme="dark"] .prosecutor-card,
html[data-theme="dark"] .office-info-box,
html[data-theme="dark"] .office-side-box,
html[data-theme="dark"] .office-bank-content,
html[data-theme="dark"] .court-card,
html[data-theme="dark"] .court-side-box,
html[data-theme="dark"] .court-rich-panel,
html[data-theme="dark"] .court-comment {
  background: var(--dj-surface);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .prawo-article-body,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .office-rich-text,
html[data-theme="dark"] .court-rich-text,
html[data-theme="dark"] .forum-question-content,
html[data-theme="dark"] .forum-answer-content {
  color: var(--dj-text);
}

html[data-theme="dark"] .prawo-article-body.is-collapsed:after {
  background: linear-gradient(rgba(23, 26, 29, 0), var(--dj-surface));
}

html[data-theme="dark"] .prawo-article-item.is-highlighted,
html[data-theme="dark"] .prawo-article-item.is-jump-target {
  border-color: var(--dj-accent);
  box-shadow: inset 4px 0 0 var(--dj-accent);
}

html[data-theme="dark"] .article-chip,
html[data-theme="dark"] .office-type-chip,
html[data-theme="dark"] .office-city-chip,
html[data-theme="dark"] .court-type-chip,
html[data-theme="dark"] .court-city-chip,
html[data-theme="dark"] .court-region-chip,
html[data-theme="dark"] .prosecutor-card-type,
html[data-theme="dark"] .court-card-type {
  background: var(--dj-surface-3);
  color: var(--dj-text);
}

html[data-theme="dark"] .office-freshness-chip,
html[data-theme="dark"] .court-freshness-chip {
  background: #4a3512;
  color: #ffe2a0;
}

html[data-theme="dark"] .article-action,
html[data-theme="dark"] .office-action,
html[data-theme="dark"] .court-action,
html[data-theme="dark"] .court-anchor-nav a,
html[data-theme="dark"] .prosecutor-filter,
html[data-theme="dark"] .court-filter {
  background: var(--dj-surface-2);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .prosecutor-filter.is-active,
html[data-theme="dark"] .court-filter.is-active {
  background: #5a4318;
  border-color: #80622c;
  color: #fff2bf;
}

html[data-theme="dark"] .article-nav-link:hover,
html[data-theme="dark"] .article-relation:hover,
html[data-theme="dark"] .prosecutor-card:hover,
html[data-theme="dark"] .court-card:hover,
html[data-theme="dark"] .office-action:hover,
html[data-theme="dark"] .court-action:hover,
html[data-theme="dark"] .court-anchor-nav a:hover {
  background: var(--dj-surface-2);
  border-color: var(--dj-accent);
  color: var(--dj-heading);
}

html[data-theme="dark"] .article-breadcrumb,
html[data-theme="dark"] .article-kicker,
html[data-theme="dark"] .article-nav-label,
html[data-theme="dark"] .article-nav-summary,
html[data-theme="dark"] .article-meta-list,
html[data-theme="dark"] .prosecutor-list-kicker,
html[data-theme="dark"] .prosecutor-list-lead,
html[data-theme="dark"] .prosecutor-results-meta,
html[data-theme="dark"] .prosecutor-card-meta,
html[data-theme="dark"] .office-breadcrumb,
html[data-theme="dark"] .office-address,
html[data-theme="dark"] .office-kicker,
html[data-theme="dark"] .office-meta-label,
html[data-theme="dark"] .court-list-kicker,
html[data-theme="dark"] .court-list-lead,
html[data-theme="dark"] .court-results-meta,
html[data-theme="dark"] .court-card-meta,
html[data-theme="dark"] .court-card-contact,
html[data-theme="dark"] .court-breadcrumb,
html[data-theme="dark"] .court-address,
html[data-theme="dark"] .court-kicker,
html[data-theme="dark"] .court-meta-label,
html[data-theme="dark"] .court-comment-meta {
  color: var(--dj-muted) !important;
}

html[data-theme="dark"] .office-map,
html[data-theme="dark"] .office-map-empty,
html[data-theme="dark"] .court-map,
html[data-theme="dark"] .court-map-empty {
  background: #121518;
  border-color: var(--dj-border);
  color: var(--dj-muted);
}

html[data-theme="dark"] .office-meta-list li,
html[data-theme="dark"] .article-meta-list li,
html[data-theme="dark"] .court-meta-list li,
html[data-theme="dark"] .court-comment-meta,
html[data-theme="dark"] .forum-thread-footer {
  border-color: var(--dj-border-soft);
}

html[data-theme="dark"] .forum-hero {
  border-color: var(--dj-border);
}

html[data-theme="dark"] .forum-hero h1,
html[data-theme="dark"] .forum-section-heading h2,
html[data-theme="dark"] .forum-stat strong,
html[data-theme="dark"] .forum-topic-title,
html[data-theme="dark"] .forum-category-title,
html[data-theme="dark"] .forum-category-last,
html[data-theme="dark"] .forum-category-hero h1,
html[data-theme="dark"] .forum-ask-hero h1,
html[data-theme="dark"] .forum-thread-hero h1,
html[data-theme="dark"] .forum-form-panel label {
  color: var(--dj-heading);
}

html[data-theme="dark"] .forum-hero p,
html[data-theme="dark"] .forum-stat span,
html[data-theme="dark"] .forum-topic-meta,
html[data-theme="dark"] .forum-topic-main p,
html[data-theme="dark"] .forum-topic-stats,
html[data-theme="dark"] .forum-topic-stats small,
html[data-theme="dark"] .forum-category-desc,
html[data-theme="dark"] .forum-category-last small,
html[data-theme="dark"] .forum-category-hero p,
html[data-theme="dark"] .forum-ask-hero p,
html[data-theme="dark"] .forum-thread-footer,
html[data-theme="dark"] .forum-thread-footer small,
html[data-theme="dark"] .forum-answer-header small,
html[data-theme="dark"] .forum-answers-summary,
html[data-theme="dark"] .forum-empty {
  color: var(--dj-muted);
}

html[data-theme="dark"] .forum-stat,
html[data-theme="dark"] .forum-topic-card,
html[data-theme="dark"] .forum-empty,
html[data-theme="dark"] .forum-category-card,
html[data-theme="dark"] .forum-form-panel,
html[data-theme="dark"] .forum-submit-panel,
html[data-theme="dark"] .forum-category-hero,
html[data-theme="dark"] .forum-ask-hero,
html[data-theme="dark"] .forum-thread-hero,
html[data-theme="dark"] .forum-question-card,
html[data-theme="dark"] .forum-answer-card,
html[data-theme="dark"] .forum-reply-panel,
html[data-theme="dark"] .forum-help-panel,
html[data-theme="dark"] .forum-side-section {
  background: var(--dj-surface);
  border-color: var(--dj-border);
  color: var(--dj-text);
}

html[data-theme="dark"] .forum-submit-panel {
  background: var(--dj-surface-2);
}

html[data-theme="dark"] .forum-badge,
html[data-theme="dark"] .forum-tags a,
html[data-theme="dark"] .forum-tag-suggestions span {
  background: #24352c;
  border-color: #355143;
  color: #cce8d5;
}

html[data-theme="dark"] .forum-badge-muted {
  background: var(--dj-surface-3);
  border-color: var(--dj-border);
  color: var(--dj-muted);
}

html[data-theme="dark"] .forum-answer-card-featured {
  border-color: var(--dj-accent);
  box-shadow: inset 4px 0 0 var(--dj-accent);
}

html[data-theme="dark"] .forum-thread-actions a,
html[data-theme="dark"] .forum-thread-actions button {
  color: #e2bb66;
}

html[data-theme="dark"] .forum-answers-summary strong {
  color: var(--dj-heading);
}

html[data-theme="dark"] .forum-answers-summary i {
  color: #b98120;
}

html[data-theme="dark"] .forum-section-link {
  color: var(--dj-link);
}

html[data-theme="dark"] .theme-mode-select {
  background: #15181b;
  border-color: rgba(255, 255, 255, .22);
  color: var(--dj-text);
}
