:root {
  --gost-primary: #0d6efd;
  --gost-muted: #6c757d;
}

body {
  min-height: 100vh;
}

.auth-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(111, 66, 193, 0.25), transparent 50%),
    linear-gradient(135deg, #f8fbff 0%, #eef2ff 100%);
  overflow: hidden;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.04' d='M200 0L400 100V300L200 400L0 300V100L200 0Z' fill='%230d6efd'/%3E%3C/svg%3E")
      center/contain repeat;
  pointer-events: none;
  filter: blur(0.5px);
}

.auth-container {
  position: relative;
  z-index: 1;
}

.auth-card {
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-body {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.15), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(111, 66, 193, 0.12), transparent 45%),
    linear-gradient(135deg, #f8fbff 0%, #eef2ff 100%);
  padding-bottom: 2rem;
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.04' d='M200 0L400 100V300L200 400L0 300V100L200 0Z' fill='%230d6efd'/%3E%3C/svg%3E")
      center/contain repeat;
  filter: blur(0.6px);
  z-index: 0;
}

.dashboard-container {
  position: relative;
  z-index: 1;
}

.dashboard-card {
  border: none;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.5rem 2.5rem rgba(13, 110, 253, 0.08);
  backdrop-filter: blur(14px);
}

.dashboard-card .card-header,
.dashboard-card .card-body {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.dashboard-card .card-header {
  padding-top: 1.5rem;
}

.dashboard-card .card-body {
  padding-bottom: 1.5rem;
}

.dashboard-toolbar {
  gap: 1rem;
  align-items: center;
}

.status-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gost-muted);
  margin-bottom: 0;
}

.status-filter-group .form-select-sm {
  min-width: 180px;
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: none;
}

.status-filter-group .form-select-sm:focus {
  border-color: rgba(13, 110, 253, 0.75);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.auth-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(111, 66, 193, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gost-primary);
}

.auth-form .input-group-text {
  background: rgba(13, 110, 253, 0.08);
  color: var(--gost-primary);
  border-color: rgba(13, 110, 253, 0.25);
}

.auth-form .form-control {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control:focus {
  border-color: rgba(13, 110, 253, 0.8);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.auth-form .btn-primary {
  background-image: linear-gradient(135deg, var(--gost-primary), #6f42c1);
  border: none;
  box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(13, 110, 253, 0.3);
}

.auth-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.05);
}

.account-toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.account-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gost-muted);
}

.account-username {
  font-weight: 600;
}

.account-dropdown {
  min-width: 220px;
}

.instruction-field-wrapper {
  position: relative;
}

.mention-helper {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 0.75rem;
  box-shadow: 0 1.25rem 2.25rem rgba(13, 110, 253, 0.16);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.mention-helper-message {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--gost-muted);
}

.mention-helper-message-error {
  color: #dc3545;
}

.mention-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mention-option:focus,
.mention-option:hover,
.mention-option.active {
  background: rgba(13, 110, 253, 0.12);
}

.mention-option-title {
  font-weight: 600;
  color: #0b1f44;
  word-break: break-word;
}

.mention-option-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gost-muted);
}

.mention-helper-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.mention-helper-hint__keyboard {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--gost-muted);
}

.mention-helper-hint__keyboard kbd {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
}

@media (max-width: 575.98px) {
  .auth-body {
    padding: 1rem;
  }

  .auth-card {
    border-radius: 1rem;
  }

  .dashboard-card .card-header,
  .dashboard-card .card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .account-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .status-filter-group .form-select-sm {
    min-width: 100%;
  }
}

.feedback-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(320px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.feedback-toast {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
  word-wrap: break-word;
  word-break: break-word;
  box-shadow: 0 0.75rem 1.5rem rgba(33, 37, 41, 0.2);
}

.feedback-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.feedback-toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.document-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-title .document-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.document-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gost-muted);
}

.document-meta .bi {
  font-size: 0.9rem;
}

.document-number {
  font-family: var(--bs-font-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  letter-spacing: 0.02em;
  color: var(--bs-body-color, #212529);
}

@media (min-width: 992px) {
  .sticky-desktop {
    position: sticky;
    top: 1.5rem;
  }
}

.document-actions {
  gap: 0.5rem;
  align-items: center;
}

.document-actions .btn-group {
  display: flex;
}

.document-actions .btn-group .btn {
  flex: 1 1 auto;
}

.telegram-note {
  font-size: 0.95rem;
}

.context-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  color: var(--gost-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.context-help-icon:hover,
.context-help-icon:focus {
  background: var(--gost-primary);
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.3);
  outline: none;
}

.tooltip.context-help-tooltip .tooltip-inner {
  max-width: 320px;
  padding: 1rem;
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.5;
}

.document-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.document-item.active {
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.08);
}

.document-sections-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.document-sections-toggle .bi {
  transition: transform 0.2s ease;
}

.document-sections-toggle.expanded .bi {
  transform: rotate(180deg);
}

.pipeline-section-list {
  margin-left: 2.5rem;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(13, 110, 253, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pipeline-section-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
}

.pipeline-section-item .form-check-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pipeline-section-item .section-meta {
  font-size: 0.75rem;
  color: var(--gost-muted);
}

.telegram-step .form-label {
  font-weight: 600;
}

.telegram-step .form-text {
  font-size: 0.85rem;
}

.telegram-helper-card {
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
}

.telegram-snippet {
  background-color: #212529;
  color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.telegram-snippet code {
  color: inherit;
  font-family: var(--bs-font-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
}

.telegram-helper-card .btn {
  white-space: normal;
}

.telegram-helper-card .btn + .btn {
  margin-left: 0.5rem;
}

@media (max-width: 991.98px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem !important;
  }

  .page-header-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .card-header,
  .card-body {
    padding: 1rem !important;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .responsive-table tbody tr {
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.075);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  }

  .responsive-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .responsive-table tbody tr.table-active {
    border-color: var(--gost-primary);
    box-shadow: 0 0.375rem 0.75rem rgba(13, 110, 253, 0.15);
  }

  .responsive-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  .responsive-table tbody td:first-child {
    padding-top: 0;
  }

  .responsive-table tbody td:last-child {
    padding-bottom: 0;
  }

  .responsive-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gost-muted);
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
  }

  .responsive-table .document-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .responsive-table .document-title .small {
    font-size: 0.85rem;
  }

  .responsive-table .actions-cell {
    display: block;
  }

  .document-actions {
    justify-content: flex-start !important;
    width: 100%;
    gap: 0.75rem !important;
  }

  .document-actions .btn {
    flex: 1 1 100%;
  }

  .document-actions .btn.generate-single {
    flex: 0 0 auto;
  }

  .telegram-helper-card {
    padding: 0.75rem;
  }

  .telegram-snippet {
    font-size: 0.8rem;
  }

#document-details {
    position: relative;
    top: 0;
  }
}


.finalize-page {
  max-width: 1100px;
}

.final-review-output {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.final-review-tasks {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final-review-tasks-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.final-review-tasks-toolbar .btn {
  white-space: nowrap;
}

.final-review-task-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

.final-review-task-hints .task-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 249, 250, 0.6);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.final-review-tasks-list {
  display: grid;
  gap: 1rem;
}

.final-review-task-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.06);
  padding: 1.25rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final-review-task-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.final-review-task-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.final-review-task-card__item-content,
.final-review-task-card__item-text {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.25rem;
  color: #212529;
}

.final-review-task-card__item-content:last-child,
.final-review-task-card__item-text:last-child {
  margin-bottom: 0;
}

.final-review-task-card__item-content p {
  margin-bottom: 0.5rem;
}

.final-review-task-card__item-content p:last-child {
  margin-bottom: 0;
}

.final-review-task-card__item-content ul,
.final-review-task-card__item-content ol {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.final-review-task-card__item-content ul:last-child,
.final-review-task-card__item-content ol:last-child {
  margin-bottom: 0;
}

.final-review-task-card__item + .final-review-task-card__item {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.final-review-task-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.final-review-task-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.final-review-task-card__action.is-loading {
  pointer-events: none;
}

.final-review-task-card.severity-critical {
  border-left: 4px solid #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.final-review-task-card.severity-major {
  border-left: 4px solid #ffc107;
  background: rgba(255, 193, 7, 0.12);
}

.final-review-task-card.severity-minor {
  border-left: 4px solid #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}

.final-review-task-card.severity-default {
  border-left: 4px solid rgba(108, 117, 125, 0.6);
  background: rgba(248, 249, 250, 0.9);
}

.final-review-tasks.has-tasks .alert {
  display: none;
}

.final-review-tasks .badge[data-mode="active"] {
  background-color: #198754 !important;
}

.final-review-tasks .badge[data-mode="suggestions"] {
  background-color: #6c757d !important;
}

@media (max-width: 575.98px) {
  .final-review-task-hints {
    gap: 0.5rem 0.75rem;
  }

  .final-review-task-card {
    padding: 1rem;
  }
}

.final-review-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.final-review-card .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.final-review-card .card-header {
  gap: 1rem;
}

.final-review-card .final-review-content {
  font-family: var(--bs-body-font-family);
  background-color: rgba(248, 249, 250, 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  line-height: 1.7;
  color: var(--bs-gray-900);
}

.final-review-card .final-review-content > *:first-child {
  margin-top: 0;
}

.final-review-card .final-review-content h1,
.final-review-card .final-review-content h2,
.final-review-card .final-review-content h3,
.final-review-card .final-review-content h4,
.final-review-card .final-review-content h5,
.final-review-card .final-review-content h6 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.final-review-card .final-review-content p {
  margin-bottom: 0.85rem;
}

.final-review-card .final-review-content ul,
.final-review-card .final-review-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.final-review-card .final-review-content li + li {
  margin-top: 0.35rem;
}

.final-review-card .final-review-content code {
  font-family: var(--bs-font-monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 0.9em;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.4rem;
  padding: 0.1rem 0.35rem;
}

.final-review-card .final-review-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.6rem;
  padding: 1rem;
  overflow-x: auto;
}

.final-review-card .final-review-content blockquote {
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--bs-gray-700);
}

.final-review-card .final-review-inline-task {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.25);
  background-color: rgba(13, 110, 253, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.final-review-card .final-review-inline-task__body > :last-child {
  margin-bottom: 0;
}

.final-review-card .final-review-inline-task__meta {
  color: var(--bs-gray-600);
}

.final-review-card .final-review-inline-task__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.final-review-card .final-review-inline-task__button.is-loading {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .final-review-card .final-review-inline-task {
    margin: 1rem 0;
    padding: 1rem;
  }
}

.final-review-card .final-review-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.final-review-card .final-review-content table th,
.final-review-card .final-review-content table td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0.75rem;
}

.final-review-card .final-review-content table th {
  background-color: rgba(248, 249, 250, 0.9);
  font-weight: 600;
}

.final-review-card .card-header .btn {
  white-space: nowrap;
}

.final-review-card .final-review-details {
  margin-bottom: 0;
}

.final-review-card .final-review-details dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--bs-gray-600);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.final-review-card .final-review-details dd {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.final-review-meta-block {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.6);
}

.final-review-context-block {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(15, 23, 42, 0.03);
}

.final-review-context-summary,
.final-review-context-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.final-review-context-summary li + li,
.final-review-context-steps li + li {
  margin-top: 0.25rem;
}

.final-review-context-summary {
  list-style: disc;
  font-size: 0.95rem;
}

.final-review-context-steps {
  list-style: disc;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
}

.final-review-meta-block dl {
  margin-bottom: 0;
}

.final-review-stats {
  margin-left: auto;
  white-space: nowrap;
  color: var(--bs-gray-600);
}

.final-review-output .alert {
  border-radius: 0.75rem;
}

#final-review-placeholder .bi {
  color: var(--bs-gray-500);
}

.disabled-state {
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .final-review-stats {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  textarea.form-control {
    min-height: 180px;
  }
}

.admin-dashboard .card {
  border-radius: 1rem;
}

.admin-dashboard .card-body {
  padding: 1.5rem;
}

.admin-dashboard .table td,
.admin-dashboard .table th {
  vertical-align: middle;
}

.dashboard-summary-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}

.dashboard-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  font-size: 1.2rem;
}

.dashboard-summary-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
}

.dashboard-summary-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  min-height: 2.4rem;
}

.dashboard-chart-wrapper {
  position: relative;
  min-height: 280px;
}

.dashboard-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 991.98px) {
  .dashboard-chart-wrapper {
    min-height: 240px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-summary-card {
    padding: 0.9rem;
  }

  .dashboard-summary-value {
    font-size: 1.5rem;
  }
}

.error-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.error-overlay {
  opacity: 0.9;
}

.error-card {
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
}

.error-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(111, 66, 193, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--gost-primary);
}

.error-status {
  letter-spacing: 0.12em;
}

.error-body .btn-primary {
  background-image: linear-gradient(135deg, var(--gost-primary), #6f42c1);
  border: none;
  box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(13, 110, 253, 0.3);
}

.error-body .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

@media (max-width: 575.98px) {
  .error-body {
    padding: 1rem;
  }

  .error-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    font-size: 1.8rem;
  }
}
