:root {
  --app-navy-950: #08152f;
  --app-navy-900: #0f2147;
  --app-blue-700: #1d4ed8;
  --app-blue-600: #2563eb;
  --app-blue-100: #dbeafe;
  --app-cyan-500: #06b6d4;
  --app-slate-900: #0f172a;
  --app-slate-700: #334155;
  --app-slate-500: #64748b;
  --app-slate-300: #cbd5e1;
  --app-slate-200: #e2e8f0;
  --app-slate-100: #f1f5f9;
  --app-surface: #ffffff;
  --app-background: #f4f7fb;
  --app-radius-sm: 10px;
  --app-radius-md: 16px;
  --app-radius-lg: 24px;
  --app-shadow-sm: 0 8px 22px rgba(15, 23, 42, .055);
  --app-shadow-md: 0 18px 42px rgba(15, 23, 42, .09);
}

/* Document approval workflow */
.approval-page-hero,
.approval-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, #1f3c88 0%, #3156b7 48%, #5677d8 100%);
}

.approval-hero-counter {
    min-width: 180px;
    padding: 1rem 1.25rem;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}

.approval-hero-counter span,
.approval-hero-counter strong {
    display: block;
}

.approval-hero-counter strong {
    margin-top: 0.25rem;
    font-size: 2.25rem;
    line-height: 1;
}

.approval-inbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.approval-inbox-card {
    display: block;
    padding: 1.15rem;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(145deg, #fff, #f7f9ff);
    border: 1px solid #dce4f6;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(30, 54, 110, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.approval-inbox-card:hover {
    color: inherit;
    border-color: #8ca5e4;
    box-shadow: 0 14px 34px rgba(30, 54, 110, 0.14);
    transform: translateY(-2px);
}

.approval-inbox-card h3 {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
}

.approval-inbox-number {
    color: #3156b7;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.approval-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-top: 1rem;
    color: #65708a;
    font-size: 0.85rem;
}

.approval-empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.approval-empty-state p {
    margin-bottom: 0;
    color: #6c757d;
}

.approval-empty-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    color: #fff;
    font-size: 1.5rem;
    place-items: center;
    background: linear-gradient(135deg, #2ca46f, #57c58f);
    border-radius: 50%;
}

.approval-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.approval-user-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem;
    cursor: pointer;
    background: #f8faff;
    border: 1px solid #dce4f6;
    border-radius: 0.85rem;
}

.approval-user-option:has(input:checked) {
    background: #eef3ff;
    border-color: #5677d8;
    box-shadow: inset 0 0 0 1px #5677d8;
}

.approval-user-option:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.55;
}

.approval-package-file-list {
    display: grid;
    gap: 0.65rem;
}

.approval-package-file-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: #f8faff;
    border: 1px solid #dce4f6;
    border-radius: 0.8rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.approval-package-file-option:hover {
    border-color: #8ca5e4;
    box-shadow: 0 0.25rem 0.8rem rgba(36, 70, 155, 0.08);
}

.approval-package-file-option:has(input:checked) {
    box-shadow: inset 0 0 0 1px currentColor;
}

.approval-package-file-option--previous {
    color: #8a5200;
    background: #fff8ed;
    border-color: #f2cf94;
}

.approval-package-file-option--new {
    color: #17683b;
    background: #f1fbf5;
    border-color: #a9ddbd;
}

.approval-package-file-main,
.approval-package-file-main strong,
.approval-package-file-main span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.approval-package-file-main {
    flex: 1;
    color: var(--bs-body-color);
}

.approval-version-badge {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.35rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    border-radius: 999px;
}

.approval-version-badge--previous {
    color: #8a5200;
    background: #ffedca;
}

.approval-version-badge--new {
    color: #17683b;
    background: #dff5e8;
}

.approval-no-requirement-option {
    padding: 1rem;
    background: #f3f5f8;
    border: 1px solid #d7dce5;
    border-radius: 0.85rem;
}

.approval-decision-list {
    display: grid;
    gap: 0.75rem;
}

.approval-decision-item {
    padding: 0.9rem 1rem;
    background: #f8f9fc;
    border: 1px solid #e1e5ed;
    border-radius: 0.8rem;
}

.approval-rejection-reason {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.75rem;
    color: #7d2028;
    background: #fff1f2;
    border-left: 3px solid #dc3545;
    border-radius: 0.35rem;
}

.approval-rejection-reason span {
    display: block;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    white-space: pre-line;
    word-break: break-word;
}

.final-approval-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin: 0 0 24px;
    padding: 25px;
    border: 1px solid #bbf7d0;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.13), transparent 30%),
        #f7fff9;
    box-shadow: var(--app-shadow-sm);
}

.final-approval-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.final-approval-heading h2 {
    margin: 4px 0 5px;
    color: #14532d;
    font-size: 22px;
    font-weight: 780;
}

.final-approval-heading p {
    margin: 0;
    color: #3f6b4d;
    font-size: 12px;
}

.final-approval-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #16a34a;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.2);
}

.final-approval-participants {
    display: grid;
    gap: 9px;
}

.final-approval-participant {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}

.final-approval-check {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
}

.final-approval-participant div,
.final-approval-participant strong,
.final-approval-participant div > span {
    min-width: 0;
}

.final-approval-participant strong,
.final-approval-participant div > span {
    display: block;
    overflow-wrap: anywhere;
}

.final-approval-participant strong {
    color: #174b2a;
    font-size: 12px;
}

.final-approval-participant div > span {
    margin-top: 3px;
    color: #5b7d66;
    font-size: 10px;
}

@media (max-width: 767.98px) {
    .final-approval-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.approval-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}

.approval-document-card {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem;
    color: inherit;
    text-decoration: none;
    background: #f8faff;
    border: 1px solid #dce4f6;
    border-radius: 0.85rem;
}

.approval-document-card:hover {
    color: #24469b;
    border-color: #8ca5e4;
}

.approval-document-card--previous {
    background: #fffaf1;
    border-color: #efd5a8;
}

.approval-comparison-card {
    border-color: #f0d4a4;
}

.approval-comparison-card .card-header {
    color: #80510a;
    background: #fff7e8;
}

.approval-comparison-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.approval-comparison-reason {
    max-width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    color: #7d2028;
    background: #fff1f2;
    border-left: 3px solid #dc3545;
    border-radius: 0.45rem;
}

.approval-comparison-reason span {
    display: block;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    white-space: pre-line;
    word-break: break-word;
}

.lawyer-history-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: inherit;
    text-align: left;
    border: 0;
}

.lawyer-history-toggle:hover,
.lawyer-history-toggle:focus-visible {
    background: #f3f6fb;
}

.lawyer-history-toggle-label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
}

.lawyer-history-expanded-label {
    display: none;
}

.lawyer-history-chevron {
    display: inline-block;
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.lawyer-history-toggle[aria-expanded="true"] .lawyer-history-collapsed-label {
    display: none;
}

.lawyer-history-toggle[aria-expanded="true"] .lawyer-history-expanded-label {
    display: inline;
}

.lawyer-history-toggle[aria-expanded="true"] .lawyer-history-chevron {
    transform: rotate(180deg);
}

.approval-document-icon {
    font-size: 1.6rem;
}

.approval-document-card strong,
.approval-document-card small {
    display: block;
    overflow-wrap: anywhere;
}

.approval-document-card small {
    margin-top: 0.2rem;
    color: #6c757d;
}

.approval-document-download {
    margin-left: auto;
    font-size: 1.25rem;
}

.approval-decision-panel {
    position: sticky;
    top: 6rem;
    border: 1px solid #cfd9f1;
}

.approval-decision-panel h3 {
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .approval-inbox-grid,
    .approval-user-list,
    .approval-document-grid {
        grid-template-columns: 1fr;
    }

    .approval-hero-counter {
        width: 100%;
    }
}

html {
  font-size: 14px;
  background: var(--app-background);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(219, 234, 254, .42), transparent 26rem),
    var(--app-background);
  color: var(--app-slate-900);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
}

.app-main-shell {
  flex: 1 0 auto;
  padding: 0;
}

.app-main-content {
  min-height: calc(100vh - 144px);
}

.btn {
  border-radius: 10px;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn:not(.btn-link):hover {
  transform: translateY(-1px);
}

.form-control,
.form-select {
  min-height: 42px;
  border-color: var(--app-slate-300);
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.chat-compose {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 10px;
    z-index: 10;
}

.chat-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-compose-files {
    position: relative;
    flex-shrink: 0;
}

.chat-compose-attach {
    width: 42px;
    height: 38px;
}

.chat-compose-input {
    min-height: 38px;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
}

.chat-compose-send {
    height: 38px;
    flex-shrink: 0;
}

.chat-compose-file-list {
    position: absolute;
    left: 0;
    top: 46px;
    width: 340px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
}

.chat-compose-file-list .file-upload-item {
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.chat-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.chat-participant {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 220px;
}

.chat-participant-role {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.2;
}

.chat-message {
    display: flex;
    margin-bottom: 12px;
}

.own-message {
    justify-content: flex-end;
}

.other-message {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: 72%;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f1f3f5;
}

.own-message .chat-message-bubble {
    background: #dbeafe;
}

.chat-message-meta {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
    font-size: 13px;
}

.chat-message-user-link {
    color: inherit;
    text-decoration: none;
}

.chat-message-user-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

    .chat-message-meta small {
        color: #6c757d;
    }

.chat-message-text,
.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
}

.chat-message-status {
    color: #6c757d;
    font-style: italic;
}

.chat-message-deleted {
    color: #6c757d;
    font-style: italic;
}

.chat-message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
}

.chat-message-actions .btn-link {
    padding: 0 2px;
    font-size: 12px;
    text-decoration: none;
}

.chat-message-actions .btn-link:hover {
    text-decoration: underline;
}

.chat-message-editor {
    min-width: min(420px, 65vw);
}

.chat-message-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .chat-message-editor {
        min-width: 55vw;
    }
}

.request-history-timeline {
    position: relative;
    padding-left: 28px;
}

    .request-history-timeline::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 4px;
        bottom: 4px;
        width: 2px;
        background: #dee2e6;
    }

.request-history-item {
    position: relative;
    margin-bottom: 16px;
}

.request-history-dot {
    position: absolute;
    left: -25px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #0d6efd;
}

.request-history-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.app-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #172554 55%, #1e3a8a 100%);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .18);
}

.app-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
}

.app-navbar .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.app-navbar .navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

.app-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

.app-brand {
    color: #ffffff !important;
    font-weight: 700;
}

.app-brand img {
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
}

.app-nav-link {
    color: rgba(255, 255, 255, .86) !important;
    border-radius: 8px;
    padding: 8px 10px !important;
    margin: 0 2px;
    transition: .18s ease;
}

.app-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .12);
}

.navbar-toggler {
    background: #ffffff;
}

.app-footer {
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    padding: 16px 0;
    margin-top: 40px;
    font-size: 14px;
}

.app-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .75);
}

.app-profile-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.user-avatar-link {
    display: inline-flex;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.user-avatar-link:hover {
    color: inherit;
    text-decoration: none;
}

.user-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, .75);
}

.user-avatar-medium {
    width: 36px;
    height: 36px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.user-avatar-large {
    width: 112px;
    height: 112px;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
}

.user-avatar > img,
.user-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-avatar > img {
    display: block;
    object-fit: cover;
}

.user-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.user-avatar-large .user-avatar-initials {
    font-size: 42px;
}

.user-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 31%;
    height: 31%;
    min-width: 10px;
    min-height: 10px;
    max-width: 24px;
    max-height: 24px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
}

.user-avatar-large .user-status-dot {
    border-width: 3px;
}

.user-status-online {
    background: #22c55e;
}

.user-status-offline {
    background: #94a3b8;
}

.user-status-remote {
    background: #3b82f6;
}

.user-status-sick-leave {
    background: #ef4444;
}

.user-status-vacation {
    background: #f59e0b;
}

.profile-avatar-delete-form {
    position: absolute;
    left: 0;
    bottom: 4px;
    margin: 0;
}

.profile-avatar-delete {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #dc3545;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 53, 69, .35);
    font-size: 22px;
    line-height: 1;
}

.profile-avatar-delete:hover {
    background: #bb2d3b;
}

.profile-card {
    max-width: 820px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .08);
}

.profile-card-narrow {
    max-width: 560px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
}

.profile-avatar-edit {
    position: absolute;
    right: 0;
    top: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .35);
    font-weight: 700;
}

.profile-avatar-edit:hover {
    background: #0b5ed7;
}

.profile-title h2 {
    margin-bottom: 4px;
    font-weight: 700;
}

.profile-email {
    color: #6c757d;
    margin-bottom: 8px;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 600;
}

.user-status-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
}

.profile-details-grid {
    padding-top: 4px;
}

.profile-detail-label {
    margin-bottom: 4px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-detail-value {
    color: #212529;
    font-size: 16px;
}

.profile-about {
    min-height: 88px;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    color: #343a40;
    white-space: pre-wrap;
}

.profile-form {
    border-top: 1px solid #dee2e6;
    padding-top: 24px;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        justify-content: stretch;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.own-message {
    justify-content: flex-end;
}

.other-message {
    justify-content: flex-start;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.chat-message-avatar .user-avatar-link {
    width: 36px;
    height: 36px;
}

.table-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 100%;
}

.table-header-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    line-height: 1.2;
}

.table-header-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    margin-left: auto;
}

.table-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.table-header-action:hover {
    border-color: #adb5bd;
    background-color: rgba(0, 0, 0, 0.05);
}

.table-header-action:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.4);
    outline-offset: 1px;
}

.table-sort-icon {
    font-size: 15px;
    font-weight: 700;
}

.table-filter-icon {
    font-size: 11px;
    transform: translateY(1px);
}

.table-filter-action.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.table-filter-action.active:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.public-request-page {
    max-width: 980px;
}

.public-request-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    box-shadow: 0 8px 24px rgba(30, 64, 175, .08);
}

.public-request-eyebrow {
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.public-request-title {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 750;
}

.public-request-details dt,
.public-request-details dd {
    padding-top: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f1f5f9;
}

.public-request-details dt {
    color: #64748b;
    font-weight: 600;
}

.public-request-preformatted {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.public-attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.public-attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    color: #1e3a8a;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.public-attachment-item:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 5px 16px rgba(30, 64, 175, .1);
}

.public-attachment-icon {
    font-size: 22px;
}

.public-attachment-name,
.public-attachment-meta {
    display: block;
}

.public-attachment-name {
    font-weight: 650;
    overflow-wrap: anywhere;
}

.public-attachment-meta {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.public-link-card {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.public-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #dbeafe;
    font-size: 20px;
}

.public-link-input {
    font-size: 13px;
}

.public-link-feedback {
    min-height: 20px;
}

@media (max-width: 576px) {
    .public-request-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .public-link-card .card-body > .d-flex {
        flex-direction: column;
    }

    .public-link-card .input-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .public-link-card .input-group .form-control {
        grid-column: 1 / -1;
        width: 100%;
        border-radius: 6px 6px 0 0;
    }

    .public-link-card .input-group .btn {
        border-radius: 0 0 6px 6px;
    }
}

.dashboard-page {
    max-width: 1320px;
}

.dashboard-welcome-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: 34px 38px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 15%, rgba(125, 211, 252, .28), transparent 28%),
        linear-gradient(135deg, #0f2b5b 0%, #174a8b 58%, #176b87 100%);
    box-shadow: 0 20px 45px rgba(15, 43, 91, .18);
    color: #fff;
}

.dashboard-welcome-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, .04),
        0 0 0 72px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.dashboard-welcome-eyebrow,
.dashboard-section-kicker,
.dashboard-action-kicker {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dashboard-welcome-eyebrow {
    margin-bottom: 8px;
    color: #bae6fd;
}

.dashboard-welcome-title {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.dashboard-welcome-description {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
}

.dashboard-role-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    font-size: 14px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

.dashboard-role-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, .15);
}

.dashboard-section {
    margin-top: 34px;
}

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

.dashboard-section-heading h2,
.dashboard-section-heading h3 {
    margin: 2px 0 0;
    color: #14213d;
    font-weight: 730;
    letter-spacing: -.015em;
}

.dashboard-section-heading h2 {
    font-size: 24px;
}

.dashboard-section-heading h3 {
    font-size: 18px;
}

.dashboard-section-kicker {
    color: #64748b;
}

.dashboard-section-link {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.dashboard-section-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dashboard-action-grid,
.dashboard-stat-grid,
.dashboard-overview-grid {
    display: grid;
    gap: 16px;
}

.dashboard-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-action-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-action-card {
    --dashboard-card-color: #2563eb;
    --dashboard-card-soft: #dbeafe;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 142px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    color: #14213d;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--dashboard-card-color) 38%, #e2e8f0);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .11);
    color: #14213d;
}

.dashboard-action-primary {
    --dashboard-card-color: #2563eb;
    --dashboard-card-soft: #dbeafe;
}

.dashboard-action-cyan {
    --dashboard-card-color: #0891b2;
    --dashboard-card-soft: #cffafe;
}

.dashboard-action-violet {
    --dashboard-card-color: #7c3aed;
    --dashboard-card-soft: #ede9fe;
}

.dashboard-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--dashboard-card-soft);
    color: var(--dashboard-card-color);
    font-size: 25px;
    font-weight: 750;
}

.dashboard-action-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.dashboard-action-kicker {
    color: var(--dashboard-card-color);
}

.dashboard-action-content strong {
    color: #14213d;
    font-size: 19px;
    line-height: 1.25;
}

.dashboard-action-content small {
    color: #64748b;
    line-height: 1.45;
}

.dashboard-card-arrow {
    color: #94a3b8;
    font-size: 20px;
    transition: transform .18s ease, color .18s ease;
}

.dashboard-action-card:hover .dashboard-card-arrow,
.dashboard-stat-card:hover .dashboard-card-arrow {
    transform: translateX(4px);
    color: var(--dashboard-stat-color, var(--dashboard-card-color));
}

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

.dashboard-stat-card {
    --dashboard-stat-color: #2563eb;
    --dashboard-stat-soft: #eff6ff;
    display: flex;
    min-height: 184px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--dashboard-stat-color);
    border-radius: 16px;
    background: linear-gradient(160deg, #fff 55%, var(--dashboard-stat-soft));
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    color: #14213d;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
    color: #14213d;
}

.dashboard-stat-blue {
    --dashboard-stat-color: #2563eb;
    --dashboard-stat-soft: #eff6ff;
}

.dashboard-stat-red {
    --dashboard-stat-color: #dc2626;
    --dashboard-stat-soft: #fef2f2;
}

.dashboard-stat-green {
    --dashboard-stat-color: #16a34a;
    --dashboard-stat-soft: #f0fdf4;
}

.dashboard-stat-violet {
    --dashboard-stat-color: #7c3aed;
    --dashboard-stat-soft: #f5f3ff;
}

.dashboard-stat-amber {
    --dashboard-stat-color: #d97706;
    --dashboard-stat-soft: #fffbeb;
}

.dashboard-stat-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dashboard-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--dashboard-stat-soft);
    color: var(--dashboard-stat-color);
    font-size: 19px;
    font-weight: 800;
}

.dashboard-stat-card .dashboard-counter {
    color: #0f172a;
    font-size: 34px;
    font-weight: 780;
    line-height: 1;
}

.dashboard-stat-label {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-stat-card small {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
}

.dashboard-list-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}

.dashboard-section.dashboard-list-card {
    margin-top: 34px;
}

.dashboard-list-heading {
    align-items: center;
    margin: 0;
    padding: 20px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #fbfdff;
}

.dashboard-list-body {
    overflow-x: auto;
    padding: 8px 22px 14px;
}

.dashboard-list-body .table {
    margin-bottom: 0;
}

.dashboard-list-body .table > :not(caption) > * > * {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom-color: #eef2f7;
}

.dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-action-card:focus-visible,
.dashboard-stat-card:focus-visible,
.dashboard-section-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .dashboard-action-grid,
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767.98px) {
    .dashboard-welcome-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

    .dashboard-action-grid,
    .dashboard-action-grid-two,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        min-height: 166px;
    }
}

@media (max-width: 575.98px) {
    .dashboard-page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .dashboard-welcome-card {
        padding: 22px;
        border-radius: 18px;
    }

    .dashboard-role-chip {
        padding: 8px 12px;
    }

    .dashboard-section {
        margin-top: 28px;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .dashboard-action-card {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 132px;
        padding: 19px;
    }

    .dashboard-action-card > .dashboard-card-arrow {
        display: none;
    }

    .dashboard-action-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .dashboard-list-heading {
        padding: 17px;
    }

    .dashboard-list-body {
        padding-right: 17px;
        padding-left: 17px;
    }
}

/* Application shell and navigation */
.app-navbar {
    min-height: 72px;
    padding: 9px 0;
    background:
        radial-gradient(circle at 88% -120%, rgba(14, 165, 233, .48), transparent 25rem),
        linear-gradient(115deg, var(--app-navy-950), #14285a 58%, #183b88);
    box-shadow: 0 8px 24px rgba(8, 21, 47, .18);
}

.app-navbar-inner,
.app-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding-right: clamp(18px, 3vw, 48px);
    padding-left: clamp(18px, 3vw, 48px);
}

.app-brand {
    flex: 0 0 auto;
    margin-right: 22px;
    font-size: 19px;
    letter-spacing: -.01em;
}

.app-brand-logo {
    width: auto;
    height: 40px;
}

.app-primary-nav,
.app-account-nav {
    gap: 3px;
}

.app-navbar .app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px !important;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 620;
    line-height: 1.2;
    white-space: nowrap;
}

.app-navbar .app-nav-link:hover,
.app-navbar .show > .app-nav-link {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .11);
}

.app-nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: #bfdbfe;
    font-size: 16px;
    font-weight: 800;
}

.app-navbar .chat-unread-badge,
.app-notification-trigger .badge {
    min-width: 19px;
    height: 19px;
    padding: 3px 5px;
    border: 2px solid #172554;
    border-radius: 999px;
    font-size: 10px;
    line-height: 9px;
}

.app-nav-dropdown {
    min-width: 220px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    box-shadow: var(--app-shadow-md);
}

.app-nav-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--app-slate-700);
    font-weight: 600;
}

.app-nav-dropdown .dropdown-item:hover {
    background: #eff6ff;
    color: var(--app-blue-700);
}

.app-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--app-blue-100);
    color: var(--app-blue-700);
    font-size: 15px;
}

.app-notification-trigger {
    justify-content: center;
    width: 42px;
    padding-right: 0 !important;
    padding-left: 0 !important;
    color: #fde68a !important;
}

.app-notification-menu {
    width: min(380px, calc(100vw - 28px));
    max-height: 440px;
    overflow-y: auto;
    margin-top: 8px !important;
    border: 1px solid var(--app-slate-200);
    border-radius: 15px;
    box-shadow: var(--app-shadow-md);
}

.app-profile-link {
    max-width: 220px;
}

.app-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-logout-button {
    justify-content: center;
    width: 42px;
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: 20px !important;
}

.app-footer {
    flex: 0 0 auto;
    margin-top: 42px;
    padding: 22px 0;
    border-top: 1px solid var(--app-slate-200);
    background: rgba(255, 255, 255, .72);
    color: var(--app-slate-500);
    font-size: 13px;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Lawyer and dispatcher workspaces */
.workspace-page {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding-right: clamp(16px, 2.5vw, 38px);
    padding-left: clamp(16px, 2.5vw, 38px);
}

.workspace-header {
    position: relative;
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--app-radius-lg);
    box-shadow: 0 22px 48px rgba(15, 42, 91, .17);
    color: #fff;
}

.workspace-header::before,
.workspace-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.workspace-header::before {
    right: -95px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, .035),
        0 0 0 96px rgba(255, 255, 255, .02);
}

.workspace-header::after {
    top: -180px;
    right: 21%;
    width: 310px;
    height: 310px;
    background: rgba(56, 189, 248, .12);
    filter: blur(10px);
}

.workspace-header-lawyer {
    background: linear-gradient(125deg, #102958 0%, #1d4f91 58%, #0e7490 100%);
}

.workspace-header-dispatcher {
    background: linear-gradient(125deg, #172554 0%, #3730a3 58%, #0e7490 100%);
}

.workspace-header-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.workspace-eyebrow,
.workspace-card-kicker {
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.workspace-eyebrow {
    margin-bottom: 9px;
    color: #bae6fd;
}

.workspace-header h1 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 780;
    letter-spacing: -.035em;
}

.workspace-header p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.6;
}

.workspace-header-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 104px;
    height: 104px;
    align-items: center;
    justify-content: center;
    flex: 0 0 104px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 28px;
    background: rgba(255, 255, 255, .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
    font-size: 48px;
    backdrop-filter: blur(8px);
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 18px;
}

.workspace-scope-tabs {
    display: inline-flex;
    gap: 7px;
    padding: 6px;
    border: 1px solid var(--app-slate-200);
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
}

.workspace-scope-tab {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--app-slate-500);
    font-size: 14px;
    font-weight: 680;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.workspace-scope-tab strong {
    min-width: 25px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--app-slate-100);
    color: var(--app-slate-700);
    font-size: 12px;
    text-align: center;
}

.workspace-scope-tab:hover {
    background: #f8fafc;
    color: var(--app-blue-700);
}

.workspace-scope-tab.active {
    background: var(--app-blue-600);
    box-shadow: 0 7px 17px rgba(37, 99, 235, .22);
    color: #fff;
}

.workspace-scope-tab.active strong {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.workspace-result-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--app-slate-500);
    font-size: 14px;
}

.workspace-result-summary strong {
    color: var(--app-slate-900);
}

.workspace-result-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .11);
}

.workspace-card {
    overflow: visible;
    border: 1px solid var(--app-slate-200);
    border-radius: 20px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

.workspace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--app-slate-200);
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.workspace-card-kicker {
    margin-bottom: 4px;
    color: var(--app-blue-600);
}

.workspace-card-header h2 {
    margin: 0;
    color: var(--app-slate-900);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.workspace-card-header p {
    margin: 5px 0 0;
    color: var(--app-slate-500);
    font-size: 14px;
}

.workspace-filter-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--app-blue-700);
    font-size: 12px;
    font-weight: 680;
}

.workspace-filter-hint span {
    font-size: 16px;
    line-height: 1;
}

.workspace-card-body {
    padding: 0 18px 18px;
}

/* Requests data table */
#requestTableFilterForm {
    min-width: 0;
}

.request-filter-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 2px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
}

.request-filter-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 3px;
    color: var(--app-blue-700);
    font-size: 13px;
    font-weight: 700;
}

.request-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--app-blue-100);
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
}

.request-filter-clear {
    margin-left: auto;
}

.request-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 5px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    scrollbar-color: #94a3b8 #eef2f7;
    scrollbar-width: thin;
}

.request-table-scroll::-webkit-scrollbar {
    height: 10px;
}

.request-table-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eef2f7;
}

.request-table-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #eef2f7;
    border-radius: 999px;
    background: #94a3b8;
}

.request-data-table {
    width: 100%;
    min-width: 1260px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--app-slate-700);
    font-size: 13px;
}

.request-data-table > :not(caption) > * > * {
    padding: 15px 13px;
    border: 0;
    border-right: 1px solid #edf1f6;
    border-bottom: 1px solid #e8edf4;
    background: #fff;
    vertical-align: middle;
}

.request-data-table > :not(caption) > * > *:last-child {
    border-right: 0;
}

.request-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    padding-top: 12px;
    padding-bottom: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .015em;
}

.request-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.request-data-table tbody tr:hover td {
    background: #f8fbff;
}

.request-data-table th:first-child,
.request-data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 142px;
    box-shadow: 7px 0 12px -12px rgba(15, 23, 42, .4);
}

.request-data-table thead th:first-child {
    z-index: 6;
    background: #f8fafc;
}

.request-data-table th:last-child,
.request-data-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    min-width: 125px;
    box-shadow: -7px 0 12px -12px rgba(15, 23, 42, .4);
}

.request-data-table thead th:last-child {
    z-index: 6;
    background: #f8fafc;
}

.request-data-table th:nth-child(2) {
    min-width: 112px;
}

.request-data-table th:nth-child(3) {
    min-width: 170px;
}

.request-data-table th:nth-child(4) {
    min-width: 205px;
}

.request-data-table th:nth-child(5) {
    min-width: 145px;
}

.request-data-table th:nth-child(6) {
    min-width: 185px;
}

.request-data-table th:nth-child(7),
.request-data-table th:nth-child(8) {
    min-width: 130px;
}

.request-number-link {
    color: var(--app-blue-700);
    font-weight: 750;
    text-decoration: none;
}

.request-number-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.request-date-cell span,
.request-date-cell small {
    display: block;
}

.request-date-cell span {
    color: var(--app-slate-700);
    font-weight: 650;
}

.request-date-cell small,
.request-applicant-cell small {
    margin-top: 3px;
    color: var(--app-slate-500) !important;
}

.request-applicant-name {
    color: var(--app-slate-900);
    font-weight: 680;
}

.request-unassigned-label {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px dashed var(--app-slate-300);
    border-radius: 8px;
    color: var(--app-slate-500);
    font-size: 12px;
}

.request-data-table .badge {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .01em;
}

.request-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.request-action-button {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.request-data-table .table-header-content {
    gap: 5px;
}

.request-data-table .table-header-actions {
    gap: 2px;
}

.request-data-table .table-header-action {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    color: var(--app-slate-500);
}

.request-data-table .table-header-action:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--app-blue-700);
}

.request-data-table .table-filter-action.active {
    border-color: var(--app-blue-600);
    background: var(--app-blue-600);
    color: #fff;
}

.request-data-table .dropdown-menu {
    padding: 15px !important;
    border: 1px solid var(--app-slate-200);
    border-radius: 13px;
    box-shadow: var(--app-shadow-md);
}

.request-data-table .form-check-label {
    color: var(--app-slate-700);
    font-size: 13px;
}

.request-empty-state {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 14px;
    padding: 42px 20px;
    border: 1px dashed var(--app-slate-300);
    border-radius: 15px;
    background: #fbfdff;
    text-align: center;
}

.request-empty-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--app-blue-100);
    color: var(--app-blue-700);
    font-size: 32px;
}

.request-empty-state h3 {
    margin: 0;
    color: var(--app-slate-900);
    font-size: 20px;
    font-weight: 730;
}

.request-empty-state p {
    margin: 7px 0 18px;
    color: var(--app-slate-500);
}

@media (max-width: 1199.98px) {
    .app-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .app-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 15px;
        background: rgba(8, 21, 47, .42);
    }

    .app-navbar .app-nav-link {
        width: 100%;
    }

    .app-account-nav {
        align-items: stretch !important;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .app-profile-link {
        max-width: none;
    }

    .app-notification-trigger,
    .app-logout-button {
        justify-content: flex-start;
        width: 100%;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

@media (max-width: 767.98px) {
    .workspace-header {
        min-height: 0;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .workspace-header-mark {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 18px;
        font-size: 30px;
    }

    .workspace-toolbar,
    .workspace-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-result-summary {
        padding-left: 7px;
    }

    .workspace-filter-hint {
        display: none;
    }

    .workspace-card-header,
    .workspace-card-body {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 575.98px) {
    .app-brand-logo {
        height: 36px;
    }

    .app-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .workspace-header {
        flex-direction: column-reverse;
        border-radius: 19px;
    }

    .workspace-header-mark {
        align-self: flex-end;
    }

    .workspace-header p {
        font-size: 14px;
    }

    .workspace-scope-tabs {
        width: 100%;
    }

    .workspace-scope-tab {
        flex: 1 1 0;
        justify-content: center;
        padding-right: 9px;
        padding-left: 9px;
    }

    .request-filter-clear {
        width: 100%;
        margin-top: 4px;
        margin-left: 0;
    }
}

/* Request journey */
.content-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 28px 52px;
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--app-slate-200);
}

.content-card-eyebrow,
.page-hero-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--app-blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.content-card-header h2 {
    margin: 0;
    color: var(--app-slate-900);
    font-size: 19px;
    font-weight: 760;
}

.content-count {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--app-blue-100);
    color: var(--app-blue-700);
    font-size: 13px;
    font-weight: 800;
}

.content-card-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--app-slate-100);
    color: var(--app-slate-500);
    font-size: 20px;
}

.page-hero {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 36px 40px;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 87% 12%, rgba(125, 211, 252, .32), transparent 26%),
        linear-gradient(135deg, #0c234d 0%, #174d91 64%, #0e7490 100%);
    box-shadow: 0 20px 44px rgba(15, 43, 91, .17);
    color: #fff;
}

.page-hero::after {
    position: absolute;
    right: -60px;
    bottom: -135px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

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

.page-hero .page-hero-eyebrow {
    color: #bae6fd;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 780;
    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 670px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.6;
}

.page-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 13px 18px;
    color: var(--app-navy-900);
    box-shadow: 0 12px 26px rgba(8, 21, 47, .18);
}

.page-hero-action span {
    color: var(--app-blue-600);
    font-size: 20px;
    line-height: 1;
}

.page-hero-step {
    display: grid;
    min-width: 148px;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 19px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.page-hero-step span {
    font-size: 34px;
    font-weight: 760;
    line-height: 1;
}

.page-hero-step small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.request-list-card {
    overflow: hidden;
}

.request-list-table-wrap {
    max-height: 650px;
}

.request-list-table {
    min-width: 1080px;
}

.request-list-table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom-color: var(--app-slate-200);
}

.request-list-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom-width: 1px;
    background: #f8fafc;
    color: var(--app-slate-500);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.request-list-table tbody tr {
    transition: background-color .15s ease;
}

.request-list-table tbody tr:hover {
    background: #f8fbff;
}

.request-list-table .badge {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11px;
}

.request-return-note {
    display: -webkit-box;
    max-width: 220px;
    overflow: hidden;
    color: #92400e;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.request-lawyer-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--app-slate-700);
    font-size: 13px;
    font-weight: 650;
}

.request-lawyer-avatar {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--app-blue-100), #cffafe);
    color: var(--app-blue-700);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.request-open-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.request-detail-page {
    max-width: 1180px;
}

.request-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 20px;
    padding: 30px 34px;
    border: 1px solid #cfe0f5;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 90% 5%, rgba(125, 211, 252, .2), transparent 28%),
        linear-gradient(145deg, #f8fbff, #edf5ff);
}

.request-detail-hero .page-hero-eyebrow {
    margin-top: 22px;
}

.request-detail-hero h1 {
    margin: 0;
    color: var(--app-navy-900);
    font-size: clamp(29px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.request-detail-hero p {
    margin: 7px 0 0;
    color: var(--app-slate-500);
}

.request-detail-hero-status {
    display: flex;
    min-width: 190px;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.request-detail-hero-status > span:first-child {
    color: var(--app-slate-500);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.request-detail-hero-status .badge {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 12px;
}

.request-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--app-slate-500);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.request-back-link:hover {
    color: var(--app-blue-700);
}

.request-back-link--light,
.request-back-link--light:hover {
    color: rgba(255, 255, 255, .78);
}

.request-return-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid #fcd34d;
    border-radius: var(--app-radius-md);
    background: #fffbeb;
    color: #78350f;
}

.request-return-banner-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
    font-size: 18px;
    font-weight: 900;
}

.request-return-banner div:nth-child(2) {
    flex: 1;
}

.request-return-banner strong {
    display: block;
    margin-bottom: 3px;
}

.request-return-banner p {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
    white-space: pre-wrap;
}

.request-overview-card,
.request-detail-columns,
.request-detail-page > .public-link-card,
.lawyer-request-detail-page > .card {
    margin-bottom: 20px !important;
}

.request-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 4px 24px 24px;
}

.request-summary-item {
    min-height: 96px;
    padding: 18px;
    border-right: 1px solid var(--app-slate-200);
}

.request-summary-item:nth-child(4),
.request-summary-item:last-child {
    border-right: 0;
}

.request-summary-item--wide {
    grid-column: span 4;
    min-height: 0;
    border-top: 1px solid var(--app-slate-200);
}

.request-summary-item > span,
.request-summary-item > small {
    display: block;
    color: var(--app-slate-500);
    font-size: 12px;
}

.request-summary-item strong {
    display: block;
    margin-top: 6px;
    color: var(--app-slate-900);
    font-size: 14px;
    font-weight: 720;
}

.request-summary-item small {
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.request-summary-item .badge {
    padding: 6px 9px;
    border-radius: 8px;
}

.request-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
    gap: 20px;
    align-items: start;
}

.request-detail-list {
    padding: 8px 24px 24px;
}

.request-detail-row {
    display: grid;
    grid-template-columns: minmax(160px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
    padding: 14px 0;
    border-bottom: 1px solid var(--app-slate-200);
}

.request-detail-row > span,
.request-comment-block > span {
    color: var(--app-slate-500);
    font-size: 12px;
    font-weight: 680;
}

.request-detail-row strong {
    color: var(--app-slate-900);
    font-size: 13px;
    font-weight: 660;
    overflow-wrap: anywhere;
}

.preserve-lines,
.request-comment-block p {
    white-space: pre-wrap;
}

.request-comment-block {
    margin-top: 18px;
    padding: 17px;
    border-radius: 13px;
    background: var(--app-slate-100);
}

.request-comment-block p {
    margin: 7px 0 0;
    color: var(--app-slate-700);
    line-height: 1.55;
}

.request-files-groups {
    padding: 20px 22px 24px;
}

.request-file-group + .request-file-group {
    margin-top: 24px;
}

.request-file-group h3 {
    margin: 0 0 10px;
    color: var(--app-slate-700);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.request-file-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid var(--app-slate-200);
    border-radius: 11px;
    background: #fbfdff;
    color: var(--app-slate-700);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.request-file-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--app-blue-700);
}

.request-file-item span:nth-child(2) {
    overflow-wrap: anywhere;
}

.request-section-empty {
    padding: 17px;
    border: 1px dashed var(--app-slate-300);
    border-radius: 11px;
    color: var(--app-slate-500);
    font-size: 13px;
    text-align: center;
}

.request-detail-page .public-link-card {
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: var(--app-radius-md);
    box-shadow: var(--app-shadow-sm);
}

.request-detail-page .public-link-card .card-body {
    padding: 20px 22px;
}

.request-form-page {
    max-width: 1160px;
}

.page-hero--form {
    min-height: 205px;
}

.page-hero--resubmit {
    background:
        radial-gradient(circle at 87% 12%, rgba(253, 230, 138, .2), transparent 27%),
        linear-gradient(135deg, #352815 0%, #704317 55%, #b45309 100%);
}

.request-form-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.request-form-sidebar {
    position: sticky;
    top: 88px;
}

.applicant-info-card {
    padding: 24px;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md);
    background: #fff;
    box-shadow: var(--app-shadow-sm);
}

.applicant-info-avatar {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #dbeafe, #cffafe);
    color: var(--app-blue-700);
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
}

.applicant-info-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 760;
}

.applicant-info-card > p {
    margin: 6px 0 20px;
    color: var(--app-slate-500);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.applicant-info-department {
    padding-top: 15px;
    border-top: 1px solid var(--app-slate-200);
}

.applicant-info-department span,
.applicant-info-department strong {
    display: block;
}

.applicant-info-department span {
    color: var(--app-slate-500);
    font-size: 11px;
    font-weight: 740;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.applicant-info-department strong {
    margin-top: 5px;
    color: var(--app-slate-700);
    font-size: 13px;
}

.request-form-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 15px;
    border-radius: 13px;
    background: #eaf3ff;
    color: #1e3a8a;
}

.request-form-tip > span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--app-blue-600);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.request-form-tip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.request-form-shell {
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md);
    background: #fff;
    box-shadow: var(--app-shadow-sm);
}

.request-form-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 26px;
    border-bottom: 1px solid var(--app-slate-200);
}

.request-form-shell-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 760;
}

.required-note {
    color: var(--app-slate-500);
    font-size: 11px;
    white-space: nowrap;
}

.required-note i {
    color: #dc2626;
    font-style: normal;
}

.request-form-shell > .alert {
    margin: 20px 26px 0;
}

.request-form-shell > .alert:empty {
    display: none;
}

.request-form-section {
    padding: 25px 26px;
    border-bottom: 1px solid var(--app-slate-200);
}

.request-form-section .form-label,
.request-form-section-card .form-label,
.compact-action-form .form-label {
    margin-bottom: 8px;
    color: var(--app-slate-700);
    font-size: 12px;
    font-weight: 740;
}

.request-form-section .form-control,
.request-form-section .form-select,
.request-form-section-card .form-control,
.request-form-section-card .form-select {
    min-height: 48px;
    background-color: #fbfdff;
}

.request-form-section textarea.form-control,
.request-form-section-card textarea.form-control {
    min-height: 112px;
    padding: 13px 14px;
}

.request-form-section--files {
    background: #fbfdff;
}

.request-form-page .file-upload-zone {
    min-height: 150px;
    border: 1.5px dashed #93c5fd;
    border-radius: 15px;
    background: #f5f9ff;
}

.request-form-page .file-upload-zone:hover {
    border-color: var(--app-blue-600);
    background: #eff6ff;
}

.request-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 21px 26px;
    background: #fbfdff;
}

.request-form-actions .btn {
    min-width: 145px;
}

.request-resubmit-form {
    max-width: 860px;
    margin: 0 auto;
}

.request-form-section-card {
    margin: 24px 26px !important;
    border-color: var(--app-slate-200);
    border-radius: 14px;
    box-shadow: none;
}

.request-form-section-card .card-header {
    padding: 15px 18px;
    border-bottom-color: var(--app-slate-200);
    background: var(--app-slate-100);
    color: var(--app-slate-700);
    font-size: 13px;
    font-weight: 760;
}

.request-form-section-card .card-body {
    padding: 20px;
}

.compact-action-page {
    max-width: 1050px;
    padding-top: 42px;
}

.compact-action-page > .request-back-link {
    margin: 0 0 14px 6px;
}

.compact-action-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.compact-action-aside {
    position: relative;
    overflow: hidden;
    padding: 42px 34px;
    color: #fff;
}

.compact-action-aside::after {
    position: absolute;
    right: -110px;
    bottom: -115px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
}

.compact-action-aside--blue {
    background: linear-gradient(155deg, #102855, #155e9a 72%, #0e7490);
}

.compact-action-aside--amber {
    background: linear-gradient(155deg, #3b2b14, #8a531c 70%, #b45309);
}

.compact-action-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 64px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    font-size: 29px;
}

.compact-action-aside > span {
    display: block;
    color: rgba(255, 255, 255, .67);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.compact-action-aside h1 {
    margin: 7px 0 12px;
    font-size: 30px;
    font-weight: 780;
    letter-spacing: -.035em;
}

.compact-action-aside p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.6;
}

.compact-action-content {
    padding: 38px;
}

.compact-request-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 30px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    background: #fbfdff;
}

.compact-request-summary > div {
    min-width: 0;
    padding: 16px;
    border-right: 1px solid var(--app-slate-200);
}

.compact-request-summary > div:last-child {
    border-right: 0;
}

.compact-request-summary span,
.compact-request-summary strong,
.compact-request-summary small {
    display: block;
}

.compact-request-summary span {
    color: var(--app-slate-500);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.compact-request-summary strong {
    margin-top: 6px;
    overflow: hidden;
    color: var(--app-slate-700);
    font-size: 13px;
    font-weight: 720;
    text-overflow: ellipsis;
}

.compact-request-summary small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--app-slate-500);
    font-size: 11px;
    text-overflow: ellipsis;
}

.compact-action-form .form-control,
.compact-action-form .form-select {
    background-color: #fbfdff;
}

.compact-action-form textarea.form-control {
    min-height: 170px;
    padding: 15px;
}

.compact-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.request-success-page {
    max-width: 900px;
    padding-top: 54px;
}

.request-success-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 48px 40px;
    border: 1px solid #bbf7d0;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 94% 10%, rgba(74, 222, 128, .15), transparent 24%),
        linear-gradient(145deg, #ffffff, #f0fdf4);
    box-shadow: var(--app-shadow-md);
    text-align: center;
}

.request-success-mark {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 8px solid #dcfce7;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(34, 197, 94, .22);
}

.request-success-card h1 {
    margin: 0;
    font-size: 31px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.request-success-card > p {
    max-width: 610px;
    margin: 12px auto 24px;
    color: var(--app-slate-500);
    line-height: 1.6;
}

.request-success-number {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 13px 17px;
    border: 1px solid #bbf7d0;
    border-radius: 13px;
    background: rgba(255, 255, 255, .8);
}

.request-success-number span {
    color: var(--app-slate-500);
    font-size: 12px;
}

.request-success-number strong {
    color: #166534;
    font-size: 17px;
}

.request-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.lawyer-request-overview {
    border-radius: var(--app-radius-md);
}

.lawyer-request-overview .card-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px 22px;
}

.lawyer-request-overview .card-body p {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--app-slate-200);
    color: var(--app-slate-700);
    font-size: 13px;
}

.lawyer-request-overview .card-body p strong {
    display: block;
    margin-bottom: 6px;
    color: var(--app-slate-500);
    font-size: 10px;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.lawyer-detail-card {
    border-radius: var(--app-radius-md);
}

.lawyer-detail-card > .card-header {
    padding: 18px 22px;
    border-bottom-color: var(--app-slate-200);
    background: #fff;
    color: var(--app-slate-900);
    font-size: 16px;
    font-weight: 760;
}

.lawyer-detail-card > .card-body {
    padding: 22px;
}

.lawyer-detail-card dl dt {
    color: var(--app-slate-500);
    font-size: 12px;
    font-weight: 650;
}

.lawyer-detail-card dl dd {
    color: var(--app-slate-700);
    font-size: 13px;
}

.lawyer-files-card ul {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.lawyer-files-card li {
    padding: 11px 12px;
    border: 1px solid var(--app-slate-200);
    border-radius: 11px;
    background: #fbfdff;
    font-size: 12px;
}

.lawyer-files-card li a {
    color: var(--app-blue-700);
    font-weight: 650;
    text-decoration: none;
}

.lawyer-actions-card {
    border-color: #bfdbfe;
}

.lawyer-actions-card > .card-header {
    background: #eff6ff;
    color: #1e3a8a;
}

@media (max-width: 991.98px) {
    .request-form-layout,
    .compact-action-card,
    .request-detail-columns {
        grid-template-columns: 1fr;
    }

    .request-form-sidebar {
        position: static;
    }

    .request-form-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .request-form-tip {
        height: fit-content;
        margin-top: 0;
    }

    .compact-action-icon {
        margin-bottom: 34px;
    }

    .lawyer-request-overview .card-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .content-page {
        padding: 24px 16px 42px;
    }

    .page-hero,
    .request-detail-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 24px;
        border-radius: 19px;
    }

    .page-hero-step {
        min-width: 0;
        width: 100%;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 12px 15px;
    }

    .page-hero-step span {
        font-size: 22px;
    }

    .page-hero-step small {
        margin-top: 0;
        text-align: left;
    }

    .request-detail-hero-status {
        min-width: 0;
        align-items: flex-start;
    }

    .request-return-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .request-return-banner .btn {
        width: 100%;
    }

    .request-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 4px 16px 17px;
    }

    .request-summary-item:nth-child(2) {
        border-right: 0;
    }

    .request-summary-item:nth-child(3),
    .request-summary-item:nth-child(4) {
        border-top: 1px solid var(--app-slate-200);
    }

    .request-summary-item--wide {
        grid-column: span 2;
    }

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

    .request-form-shell-header,
    .request-form-actions,
    .content-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-form-section,
    .request-form-shell-header,
    .request-form-actions {
        padding-right: 19px;
        padding-left: 19px;
    }

    .request-form-section-card {
        margin-right: 19px !important;
        margin-left: 19px !important;
    }

    .request-form-actions .btn {
        width: 100%;
    }

    .compact-action-content,
    .compact-action-aside {
        padding: 30px 24px;
    }

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

    .compact-request-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--app-slate-200);
    }

    .compact-request-summary > div:last-child {
        border-bottom: 0;
    }

    .lawyer-request-overview .card-body {
        grid-template-columns: 1fr;
    }

    .request-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .request-summary-grid {
        grid-template-columns: 1fr;
    }

    .request-summary-item,
    .request-summary-item:nth-child(2),
    .request-summary-item:nth-child(4) {
        border-right: 0;
        border-top: 1px solid var(--app-slate-200);
    }

    .request-summary-item:first-child {
        border-top: 0;
    }

    .request-summary-item--wide {
        grid-column: span 1;
    }

    .request-success-card {
        padding: 36px 20px;
    }

    .request-success-number {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .request-success-actions .btn,
    .compact-action-buttons .btn {
        width: 100%;
    }
}

/* Chats */
.chats-page {
    max-width: 1320px;
}

.chats-hero {
    min-height: 205px;
}

.chats-hero-stats {
    display: flex;
    gap: 12px;
}

.chats-hero-stats > div {
    display: grid;
    min-width: 118px;
    place-items: center;
    padding: 17px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 17px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(7px);
}

.chats-hero-stats strong {
    font-size: 27px;
    line-height: 1;
}

.chats-hero-stats span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.chats-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.chats-toolbar-label {
    padding-left: 5px;
    color: var(--app-slate-500);
    font-size: 13px;
    font-weight: 680;
}

.chats-workspace {
    overflow: visible;
}

.chats-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md) var(--app-radius-md) 0 0;
    background: #fff;
}

.chats-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--app-slate-500);
    font-size: 13px;
    font-weight: 690;
}

.chats-tab:hover {
    background: var(--app-slate-100);
    color: var(--app-slate-900);
}

.chats-tab.active {
    background: #eaf3ff;
    color: var(--app-blue-700);
}

.chats-tab strong {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.chats-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-slate-300);
}

.chats-tab-dot--active {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.chat-sort-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--app-slate-200);
    background: #fbfdff;
}

.chat-sort-toolbar > span {
    margin-right: 4px;
    color: var(--app-slate-500);
    font-size: 11px;
    font-weight: 740;
}

.chat-sort-toolbar a {
    padding: 6px 9px;
    border: 1px solid var(--app-slate-200);
    border-radius: 8px;
    background: #fff;
    color: var(--app-slate-500);
    font-size: 10px;
    font-weight: 720;
    text-decoration: none;
}

.chat-sort-toolbar a:hover {
    border-color: #93c5fd;
    color: var(--app-blue-700);
}

.chat-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.chat-list-item {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(290px, .95fr) minmax(250px, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 17px 18px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.chat-list-item:hover {
    z-index: 1;
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(30, 64, 175, .08);
    transform: translateY(-1px);
}

.chat-list-item--unread {
    border-color: #93c5fd;
    background: linear-gradient(90deg, #f0f7ff, #fff 24%);
}

.chat-list-item--unread::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -1px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--app-blue-600);
    content: "";
}

.chat-list-request,
.chat-list-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.chat-list-request-icon,
.chat-list-empty-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf3ff;
    color: var(--app-blue-700);
    font-size: 17px;
}

.chat-list-request span:not(.chat-list-request-icon),
.chat-list-person span:not(.user-avatar):not(.user-avatar-initials):not(.user-status-dot),
.chat-list-preview > span {
    display: block;
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 770;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.chat-list-request strong,
.chat-list-person strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--app-slate-700);
    font-size: 12px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.chat-list-person--empty {
    color: var(--app-slate-500);
}

.chat-list-empty-avatar {
    border-radius: 50%;
    background: var(--app-slate-100);
    color: var(--app-slate-500);
    font-weight: 800;
}

.chat-list-preview {
    min-width: 0;
}

.chat-list-preview p {
    margin: 5px 0 3px;
    overflow: hidden;
    color: var(--app-slate-700);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-preview p strong {
    font-weight: 720;
}

.chat-list-preview small {
    color: var(--app-slate-500);
    font-size: 10px;
}

.chat-list-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.chat-list-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
}

.chat-unread-badge {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(239, 68, 68, .2);
}

.chat-list-empty {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    padding: 40px 20px;
    text-align: center;
}

.chat-list-empty > span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 19px;
    background: var(--app-blue-100);
    color: var(--app-blue-700);
    font-size: 27px;
}

.chat-list-empty h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
}

.chat-list-empty p {
    margin: 7px 0 0;
    color: var(--app-slate-500);
}

.chat-detail-page {
    max-width: 1120px;
    padding-bottom: 30px;
}

.chat-detail-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    overflow: hidden;
    padding: 28px 32px;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 90% 5%, rgba(125, 211, 252, .25), transparent 25%),
        linear-gradient(135deg, #0c234d, #174d91 68%, #0e7490);
    box-shadow: 0 18px 38px rgba(15, 43, 91, .15);
    color: #fff;
}

.chat-detail-hero .page-hero-eyebrow {
    margin-top: 18px;
    color: #bae6fd;
}

.chat-detail-hero h1 {
    margin: 0;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 790;
    letter-spacing: -.035em;
}

.chat-detail-hero p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
}

.chat-request-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-context-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding: 17px 22px;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md);
    background: #fff;
    box-shadow: var(--app-shadow-sm);
}

.chat-context-heading {
    display: flex;
    min-width: 180px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.chat-context-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

.chat-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--app-slate-100);
    color: var(--app-slate-500);
    font-size: 10px;
    font-weight: 760;
    white-space: nowrap;
}

.chat-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--app-slate-300);
}

.chat-state--active {
    background: #dcfce7;
    color: #166534;
}

.chat-state--active i {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .13);
}

.chat-context-card .chat-participants {
    justify-content: flex-end;
    gap: 12px;
}

.chat-context-card .chat-participant {
    min-width: 210px;
    padding: 9px 12px;
    border: 1px solid var(--app-slate-200);
    border-radius: 12px;
    background: #fbfdff;
}

.chat-context-card .chat-participant-role {
    margin-bottom: 3px;
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.chat-context-card .chat-message-user-link {
    display: block;
    max-width: 170px;
    overflow: hidden;
    color: var(--app-slate-700);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-messages-panel {
    min-height: 430px;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    margin-top: 16px;
    padding: 24px 26px;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-md) var(--app-radius-md) 0 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(219, 234, 254, .28), transparent 24rem),
        #f8fafc;
    box-shadow: var(--app-shadow-sm);
    scrollbar-color: var(--app-slate-300) transparent;
    scrollbar-width: thin;
}

.chat-messages-date-label {
    width: fit-content;
    margin: 0 auto 22px;
    padding: 6px 11px;
    border: 1px solid var(--app-slate-200);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.chat-detail-page .chat-message {
    gap: 9px;
    margin-bottom: 16px;
}

.chat-detail-page .chat-message-bubble {
    max-width: min(72%, 680px);
    padding: 11px 14px;
    border: 1px solid var(--app-slate-200);
    border-radius: 6px 17px 17px 17px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}

.chat-detail-page .own-message .chat-message-bubble {
    border-color: #bfdbfe;
    border-radius: 17px 6px 17px 17px;
    background: linear-gradient(145deg, #eaf3ff, #dbeafe);
}

.chat-detail-page .chat-message-meta {
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 5px;
    font-size: 11px;
}

.chat-detail-page .chat-message-meta small {
    color: var(--app-slate-500);
    font-size: 9px;
}

.chat-detail-page .chat-message-text {
    color: var(--app-slate-700);
    font-size: 13px;
    line-height: 1.5;
}

.chat-detail-page .chat-message-attachments a {
    margin-top: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(147, 197, 253, .65);
    border-radius: 9px;
    background: rgba(255, 255, 255, .68);
    color: var(--app-blue-700);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.chat-detail-page .chat-message-actions {
    opacity: 0;
    transition: opacity .15s ease;
}

.chat-detail-page .chat-message-bubble:hover .chat-message-actions,
.chat-detail-page .chat-message-actions:focus-within {
    opacity: 1;
}

.chat-compose-panel {
    bottom: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--app-slate-200);
    border-top: 0;
    border-radius: 0 0 var(--app-radius-md) var(--app-radius-md);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .04), var(--app-shadow-sm);
}

.chat-compose-panel .chat-compose-row {
    gap: 10px;
}

.chat-compose-panel .chat-compose-attach {
    width: 46px;
    height: 46px;
    border: 1px solid var(--app-slate-200);
    font-size: 17px;
}

.chat-compose-panel .chat-compose-input {
    min-height: 46px;
    max-height: 130px;
    padding: 11px 14px;
    border-color: var(--app-slate-200);
    background: #f8fafc;
    font-size: 13px;
}

.chat-compose-panel .chat-compose-send {
    display: inline-flex;
    height: 46px;
    align-items: center;
    gap: 8px;
    padding: 0 17px;
}

/* Profiles */
.profile-page {
    max-width: 1120px;
    padding-top: 46px;
}

.profile-alert {
    max-width: 1120px;
    margin: 0 auto 15px;
}

.profile-shell {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.profile-identity-panel {
    position: relative;
    overflow: hidden;
    padding: 44px 34px;
    background:
        radial-gradient(circle at 85% 8%, rgba(125, 211, 252, .25), transparent 26%),
        linear-gradient(155deg, #0b2047, #164a87 66%, #0e7490);
    color: #fff;
    text-align: center;
}

.profile-identity-panel::after {
    position: absolute;
    right: -115px;
    bottom: -135px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.profile-identity-panel > * {
    position: relative;
    z-index: 1;
}

.profile-identity-eyebrow {
    display: block;
    margin-bottom: 30px;
    color: #bae6fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-identity-panel .profile-avatar-wrapper {
    margin: 0 auto 22px;
}

.profile-identity-panel h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -.03em;
}

.profile-identity-panel > p {
    margin: 7px 0 13px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.profile-identity-panel .profile-status-badge {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.profile-identity-divider {
    margin: 26px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.profile-identity-meta span,
.profile-identity-meta strong {
    display: block;
}

.profile-identity-meta span {
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.profile-identity-meta strong {
    margin-top: 6px;
    font-size: 13px;
}

.profile-identity-meta + .profile-identity-meta {
    margin-top: 16px;
}

.profile-preview-button {
    width: 100%;
    margin-top: 27px;
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 12px;
}

.profile-preview-button:hover {
    border-color: #fff;
    background: #fff;
    color: var(--app-navy-900);
}

.profile-edit-panel {
    padding: 36px 40px;
}

.profile-edit-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--app-slate-200);
}

.profile-edit-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.profile-edit-heading p {
    margin: 7px 0 0;
    color: var(--app-slate-500);
    font-size: 13px;
}

.profile-edit-heading .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    border: 1px solid var(--app-slate-200);
    color: var(--app-slate-700);
    font-size: 12px;
}

.profile-edit-panel > .alert:empty,
.password-form > .alert:empty {
    display: none;
}

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

.profile-form-grid .form-label,
.password-form .form-label {
    margin-bottom: 8px;
    color: var(--app-slate-700);
    font-size: 11px;
    font-weight: 750;
}

.profile-form-grid .form-control,
.profile-form-grid .form-select {
    min-height: 48px;
    background: #fbfdff;
}

.profile-status-field,
.profile-about-field {
    grid-column: 1 / -1;
}

.profile-about-field textarea {
    min-height: 135px;
    padding: 13px 14px;
}

.profile-form-grid .form-text {
    margin-top: 7px;
    color: var(--app-slate-500);
    font-size: 10px;
    line-height: 1.5;
}

.profile-edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid var(--app-slate-200);
}

.profile-edit-actions > span {
    color: var(--app-slate-500);
    font-size: 10px;
}

.profile-edit-actions .btn {
    min-width: 170px;
}

.public-profile-page {
    max-width: 920px;
    padding-top: 42px;
}

.public-profile-page > .request-back-link {
    margin: 0 0 14px 5px;
}

.public-profile-card {
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.public-profile-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    overflow: hidden;
    padding: 38px 42px;
    background:
        radial-gradient(circle at 90% 10%, rgba(125, 211, 252, .24), transparent 24%),
        linear-gradient(135deg, #0d2552, #19548f 66%, #0e7490);
    color: #fff;
}

.public-profile-avatar {
    flex-shrink: 0;
}

.public-profile-identity {
    min-width: 0;
    flex: 1;
}

.public-profile-identity .profile-identity-eyebrow {
    margin-bottom: 7px;
}

.public-profile-identity h1 {
    margin: 0;
    font-size: 31px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.public-profile-identity > p {
    margin: 5px 0 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.public-profile-identity .profile-status-badge {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.public-profile-edit {
    flex-shrink: 0;
    color: var(--app-navy-900);
}

.public-profile-body {
    display: grid;
    grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
    gap: 30px;
    padding: 34px 38px 40px;
}

.public-profile-facts {
    display: grid;
    gap: 10px;
}

.public-profile-fact {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--app-slate-200);
    border-radius: 13px;
    background: #fbfdff;
}

.public-profile-fact-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eaf3ff;
    color: var(--app-blue-700);
    font-size: 16px;
}

.public-profile-fact div > span,
.public-profile-fact div > strong {
    display: block;
}

.public-profile-fact div > span {
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.public-profile-fact div > strong {
    margin-top: 5px;
    color: var(--app-slate-700);
    font-size: 12px;
    font-weight: 720;
}

.public-profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.public-profile-roles strong {
    padding: 5px 8px;
    border-radius: 7px;
    background: var(--app-blue-100);
    color: var(--app-blue-700);
    font-size: 9px;
    font-weight: 750;
}

.public-profile-about {
    padding: 4px 0;
}

.public-profile-about h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 780;
}

.public-profile-about p {
    min-height: 150px;
    margin: 14px 0 0;
    padding: 20px;
    border: 1px solid var(--app-slate-200);
    border-radius: 15px;
    background: var(--app-slate-100);
    color: var(--app-slate-700);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.password-page {
    max-width: 1020px;
    padding-top: 42px;
}

.password-page > .request-back-link {
    margin: 0 0 14px 5px;
}

.password-card {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.password-aside {
    padding: 43px 35px;
    background:
        radial-gradient(circle at 90% 8%, rgba(125, 211, 252, .23), transparent 25%),
        linear-gradient(155deg, #0b2047, #164a87 70%, #0e7490);
    color: #fff;
}

.password-shield {
    display: inline-flex;
    width: 66px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 55px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 25px 25px 30px 30px;
    background: rgba(255, 255, 255, .11);
    font-size: 28px;
}

.password-aside > span {
    color: #bae6fd;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.password-aside h1 {
    margin: 7px 0 12px;
    font-size: 29px;
    font-weight: 780;
    letter-spacing: -.035em;
}

.password-aside > p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.6;
}

.password-aside ul {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 21px 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
}

.password-form {
    padding: 40px 44px;
}

.password-form-heading {
    margin-bottom: 29px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--app-slate-200);
}

.password-form-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.password-form-heading p {
    margin: 7px 0 0;
    color: var(--app-slate-500);
    font-size: 12px;
    line-height: 1.55;
}

.password-form .form-control {
    min-height: 50px;
    background: #fbfdff;
    font-size: 13px;
}

.password-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 3px;
}

@media (max-width: 1199.98px) {
    .chat-list-item {
        grid-template-columns: 170px minmax(270px, 1fr) minmax(230px, 1fr) auto;
        gap: 15px;
    }

    .chat-list-people {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .chat-list-item {
        grid-template-columns: 1fr auto;
    }

    .chat-list-people,
    .chat-list-preview {
        grid-column: 1 / -1;
    }

    .chat-list-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 12px;
        border-top: 1px solid var(--app-slate-200);
    }

    .chat-list-preview {
        padding-top: 12px;
        border-top: 1px solid var(--app-slate-200);
    }

    .chat-context-card {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-context-heading {
        width: 100%;
    }

    .chat-context-card .chat-participants {
        justify-content: stretch;
    }

    .chat-context-card .chat-participant {
        min-width: 0;
        flex: 1;
    }

    .profile-shell,
    .password-card {
        grid-template-columns: 1fr;
    }

    .profile-identity-panel {
        padding-bottom: 36px;
    }

    .profile-preview-button {
        max-width: 280px;
    }

    .password-shield {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .chats-hero-stats {
        width: 100%;
    }

    .chats-hero-stats > div {
        flex: 1;
    }

    .chats-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .chats-tabs::-webkit-scrollbar,
    .chat-sort-toolbar::-webkit-scrollbar {
        display: none;
    }

    .chats-tab {
        flex-shrink: 0;
    }

    .chat-sort-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .chat-sort-toolbar a,
    .chat-sort-toolbar > span {
        flex-shrink: 0;
    }

    .chat-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 23px;
        border-radius: 19px;
    }

    .chat-request-link {
        width: 100%;
        justify-content: center;
    }

    .chat-context-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-context-card .chat-participants {
        flex-direction: column;
    }

    .chat-context-card .chat-participant {
        width: 100%;
    }

    .chat-messages-panel {
        min-height: 420px;
        max-height: 60vh;
        padding: 20px 15px;
    }

    .chat-detail-page .chat-message-bubble {
        max-width: calc(100% - 47px);
    }

    .chat-detail-page .chat-message-actions {
        opacity: 1;
    }

    .profile-edit-panel,
    .password-form {
        padding: 30px 24px;
    }

    .profile-edit-heading,
    .profile-edit-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .profile-status-field,
    .profile-about-field {
        grid-column: auto;
    }

    .profile-edit-actions .btn {
        width: 100%;
    }

    .public-profile-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 26px;
    }

    .public-profile-body {
        grid-template-columns: 1fr;
        padding: 28px 24px 32px;
    }

    .public-profile-edit {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .chat-list {
        padding: 9px;
    }

    .chat-list-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .chat-list-people,
    .chat-list-preview,
    .chat-list-action {
        grid-column: auto;
    }

    .chat-list-people {
        grid-template-columns: 1fr;
    }

    .chat-list-action {
        justify-content: stretch;
    }

    .chat-list-action .btn {
        flex: 1;
        justify-content: center;
    }

    .chat-compose-panel .chat-compose-send {
        width: 46px;
        justify-content: center;
        padding: 0;
    }

    .chat-send-label {
        display: none;
    }

    .profile-identity-panel {
        padding-right: 24px;
        padding-left: 24px;
    }

    .password-form-actions {
        flex-direction: column-reverse;
    }

    .password-form-actions .btn {
        width: 100%;
    }
}

/* Administration and utility pages */
.admin-list-page {
    max-width: 1320px;
}

.admin-users-hero,
.departments-hero {
    min-height: 205px;
}

.admin-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-hero-stat {
    display: grid;
    min-width: 110px;
    place-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 17px;
    background: rgba(255, 255, 255, .1);
}

.admin-hero-stat strong {
    font-size: 26px;
    line-height: 1;
}

.admin-hero-stat span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .7);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.admin-table-card {
    overflow: hidden;
}

.admin-account-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-account-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--app-slate-500);
    font-size: 10px;
    font-weight: 680;
}

.admin-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-slate-300);
}

.admin-state-dot--active {
    background: #22c55e;
}

.admin-state-dot--locked {
    background: #ef4444;
}

.admin-users-table {
    min-width: 1130px;
}

.admin-users-table > :not(caption) > * > * {
    padding: 14px 15px;
    border-bottom-color: var(--app-slate-200);
}

.admin-users-table thead th {
    background: #f8fafc;
    color: var(--app-slate-500);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.admin-users-table tbody tr:hover {
    background: #f8fbff;
}

.admin-user-cell {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 10px;
}

.admin-user-cell div > a,
.admin-user-cell div > span {
    display: block;
}

.admin-user-cell div > a {
    color: var(--app-slate-900);
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
}

.admin-user-cell div > a:hover {
    color: var(--app-blue-700);
}

.admin-user-cell div > span {
    margin-top: 3px;
    color: var(--app-slate-500);
    font-size: 10px;
}

.admin-department-label,
.admin-role-label {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--app-slate-100);
    color: var(--app-slate-700);
    font-size: 10px;
    font-weight: 680;
}

.admin-role-label {
    background: #eaf3ff;
    color: var(--app-blue-700);
}

.admin-user-status {
    display: inline-flex;
    align-items: center;
    color: var(--app-slate-700);
    font-size: 11px;
    font-weight: 650;
}

.admin-account-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 770;
}

.admin-account-state::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    content: "";
}

.admin-account-state--active {
    background: #dcfce7;
    color: #166534;
}

.admin-account-state--active::before {
    background: #22c55e;
}

.admin-account-state--locked {
    background: #fee2e2;
    color: #991b1b;
}

.admin-account-state--locked::before {
    background: #ef4444;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-row-actions .btn {
    padding: 6px 9px;
    font-size: 9px;
    white-space: nowrap;
}

.admin-current-user {
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--app-slate-100);
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 700;
}

.departments-card {
    overflow: hidden;
}

.department-alert {
    margin: 18px 20px 0;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px;
}

.department-item {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    background: #fbfdff;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.department-info {
    min-width: 0;
    flex: 1 1 auto;
}

.department-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(30, 64, 175, .07);
    transform: translateY(-1px);
}

.department-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--app-blue-700);
    font-size: 18px;
}

.department-info > span,
.department-info > strong,
.department-info > small {
    display: block;
}

.department-info > span {
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 770;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.department-info > strong {
    margin-top: 5px;
    color: var(--app-slate-700);
    font-size: 13px;
    font-weight: 720;
}

.department-info > small {
    margin-top: 5px;
    color: var(--app-slate-500);
    font-size: 10px;
}

.department-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.department-actions form {
    margin: 0;
}

.department-actions .btn {
    white-space: nowrap;
}

.admin-form-page {
    max-width: 1080px;
    padding-top: 42px;
}

.admin-form-page > .request-back-link {
    margin: 0 0 14px 5px;
}

.admin-form-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.admin-form-aside {
    padding: 40px 32px;
    background:
        radial-gradient(circle at 90% 8%, rgba(125, 211, 252, .24), transparent 26%),
        linear-gradient(155deg, #0b2047, #164a87 70%, #0e7490);
    color: #fff;
}

.admin-form-aside--edit {
    background:
        radial-gradient(circle at 90% 8%, rgba(196, 181, 253, .22), transparent 26%),
        linear-gradient(155deg, #1e1b4b, #4338ca 70%, #2563eb);
}

.admin-form-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 62px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 19px;
    background: rgba(255, 255, 255, .11);
    font-size: 29px;
}

.admin-form-aside > span {
    color: #bae6fd;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-form-aside h1 {
    margin: 7px 0 12px;
    font-size: 29px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.admin-form-aside > p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.6;
}

.admin-form-note {
    margin-top: 28px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    line-height: 1.55;
}

.admin-form-content {
    padding: 38px 42px;
}

.admin-form-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--app-slate-200);
}

.admin-form-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.admin-form-heading p {
    margin: 7px 0 0;
    color: var(--app-slate-500);
    font-size: 12px;
}

.admin-form-content > .alert:empty,
.compact-action-form > .alert:empty {
    display: none;
}

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

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-form-grid .form-label {
    margin-bottom: 8px;
    color: var(--app-slate-700);
    font-size: 11px;
    font-weight: 750;
}

.admin-form-grid .form-control,
.admin-form-grid .form-select {
    min-height: 48px;
    background: #fbfdff;
}

.admin-form-grid .form-control[readonly],
.admin-form-grid .form-select:disabled {
    background: var(--app-slate-100);
    color: var(--app-slate-500);
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--app-slate-200);
}

.admin-reset-user {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 29px;
    padding: 15px;
    border: 1px solid var(--app-slate-200);
    border-radius: 14px;
    background: #fbfdff;
}

.admin-reset-avatar {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--app-blue-100), #cffafe);
    color: var(--app-blue-700);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-reset-user div > span,
.admin-reset-user div > strong,
.admin-reset-user div > small {
    display: block;
}

.admin-reset-user div > span {
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 770;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.admin-reset-user div > strong {
    margin-top: 4px;
    color: var(--app-slate-700);
    font-size: 13px;
}

.admin-reset-user div > small {
    margin-top: 3px;
    color: var(--app-slate-500);
    font-size: 10px;
}

.department-create-page .admin-form-heading {
    margin-bottom: 34px;
}

.error-page {
    max-width: 980px;
    padding-top: 70px;
}

.error-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: var(--app-shadow-md);
}

.error-visual {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(254, 202, 202, .24), transparent 32%),
        linear-gradient(155deg, #2c1115, #7f1d1d 66%, #b91c1c);
}

.error-visual > span {
    display: inline-flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 34px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
    font-size: 54px;
    font-weight: 300;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.error-visual > i {
    position: absolute;
    right: -100px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.error-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 46px 50px;
}

.error-content .content-card-eyebrow {
    color: #dc2626;
}

.error-content h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.error-content > p {
    margin: 12px 0 0;
    color: var(--app-slate-500);
    line-height: 1.65;
}

.error-request-id {
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid var(--app-slate-200);
    border-radius: 12px;
    background: var(--app-slate-100);
}

.error-request-id span {
    display: block;
    margin-bottom: 5px;
    color: var(--app-slate-500);
    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
}

.error-request-id code {
    color: var(--app-slate-700);
    font-size: 11px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.policy-page {
    max-width: 980px;
    padding-top: 48px;
}

.policy-hero {
    padding: 42px;
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(125, 211, 252, .25), transparent 26%),
        linear-gradient(135deg, #0c234d, #174d91 68%, #0e7490);
    box-shadow: var(--app-shadow-md);
    color: #fff;
    text-align: center;
}

.policy-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 21px;
    background: rgba(255, 255, 255, .11);
    font-size: 28px;
}

.policy-hero .page-hero-eyebrow {
    color: #bae6fd;
}

.policy-hero h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.policy-hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .7);
}

.policy-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 20px;
    padding: 8px;
}

.policy-content > div {
    padding: 25px;
    border-right: 1px solid var(--app-slate-200);
}

.policy-content > div:last-child {
    border-right: 0;
}

.policy-content > div > span {
    color: var(--app-blue-600);
    font-size: 11px;
    font-weight: 800;
}

.policy-content h2 {
    margin: 10px 0 8px;
    font-size: 17px;
    font-weight: 760;
}

.policy-content p {
    margin: 0;
    color: var(--app-slate-500);
    font-size: 12px;
    line-height: 1.65;
}

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

    .admin-form-shell,
    .error-card {
        grid-template-columns: 1fr;
    }

    .admin-form-icon {
        margin-bottom: 32px;
    }

    .error-visual {
        min-height: 230px;
    }
}

@media (max-width: 767.98px) {
    .admin-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-hero-stat {
        grid-template-columns: auto auto;
        gap: 8px;
    }

    .admin-hero-stat span {
        margin-top: 0;
    }

    .departments-grid,
    .admin-form-grid,
    .policy-content {
        grid-template-columns: 1fr;
    }

    .department-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .department-actions {
        width: 100%;
        padding-left: 59px;
    }

    .admin-form-wide {
        grid-column: auto;
    }

    .admin-form-content,
    .admin-form-aside {
        padding: 31px 24px;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
    }

    .admin-form-actions .btn {
        width: 100%;
    }

    .error-content {
        padding: 36px 26px;
    }

    .error-visual {
        min-height: 190px;
    }

    .error-visual > span {
        width: 82px;
        height: 82px;
        border-radius: 26px;
        font-size: 40px;
    }

    .policy-hero {
        padding: 34px 23px;
    }

    .policy-content > div,
    .policy-content > div:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--app-slate-200);
    }

    .policy-content > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .departments-grid {
        padding: 13px;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* Authentication */
.auth-page {
    display: grid;
    min-height: calc(100vh - 144px);
    place-items: center;
    padding: 48px 24px;
    background:
        radial-gradient(circle at 12% 12%, rgba(219, 234, 254, .5), transparent 28rem),
        radial-gradient(circle at 90% 80%, rgba(207, 250, 254, .4), transparent 24rem);
}

.auth-shell {
    display: grid;
    width: 100%;
    max-width: 960px;
    grid-template-columns: minmax(310px, .85fr) minmax(0, 1.15fr);
    overflow: hidden;
    border: 1px solid var(--app-slate-200);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 28px 65px rgba(15, 43, 91, .14);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 46px 38px;
    background:
        radial-gradient(circle at 90% 8%, rgba(125, 211, 252, .25), transparent 25%),
        linear-gradient(155deg, #081a3b, #164a87 69%, #0e7490);
    color: #fff;
}

.auth-aside::after {
    position: absolute;
    right: -125px;
    bottom: -145px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

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

.auth-brand-mark {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 21px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.auth-aside > span {
    color: #bae6fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-aside h1 {
    margin: 9px 0 13px;
    font-size: 31px;
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.13;
}

.auth-aside > p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.65;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.auth-feature-list > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .77);
    font-size: 11px;
}

.auth-feature-list i {
    display: inline-flex;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .13);
    color: #a7f3d0;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.auth-form-panel {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 48px 52px;
}

.auth-form-heading {
    margin-bottom: 31px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--app-slate-200);
}

.auth-form-heading h2 {
    margin: 0;
    font-size: 29px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.auth-form-heading p {
    margin: 8px 0 0;
    color: var(--app-slate-500);
    font-size: 12px;
}

.auth-form-panel form > .alert:empty {
    display: none;
}

.auth-form-panel .form-label {
    margin-bottom: 8px;
    color: var(--app-slate-700);
    font-size: 11px;
    font-weight: 750;
}

.auth-form-panel .form-control {
    min-height: 51px;
    background: #fbfdff;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 24px;
    color: var(--app-slate-500);
    font-size: 11px;
    cursor: pointer;
}

.auth-remember .form-check-input {
    margin: 0;
}

.auth-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 51px;
}

.auth-support-note {
    margin: 24px 0 0;
    color: var(--app-slate-500);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 28px 16px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 34px 27px;
    }

    .auth-brand-mark {
        margin-bottom: 30px;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-form-panel {
        padding: 36px 27px 40px;
    }
}
.approval-round-toolbar {
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.file-upload.is-uploading .file-upload-zone {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .approval-round-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Memorandum translation workflow */
.translation-page-hero,
.translation-detail-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.28), transparent 28%),
        linear-gradient(135deg, #12326d 0%, #155e75 100%);
}

.translation-hero-counter {
    min-width: 180px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(10px);
}

.translation-hero-counter span,
.translation-hero-counter strong {
    display: block;
}

.translation-hero-counter span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.translation-hero-counter strong {
    margin-top: 4px;
    font-size: 32px;
    line-height: 1;
}

.translation-inbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.translation-inbox-card {
    display: block;
    min-width: 0;
    padding: 19px;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f7fbff);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.translation-inbox-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 13px 30px rgba(14, 116, 144, 0.12);
    color: inherit;
    transform: translateY(-2px);
}

.translation-inbox-number {
    display: block;
    margin-bottom: 5px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.translation-inbox-card h3 {
    margin: 0;
    color: #102a56;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.translation-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 16px;
    color: #60708a;
    font-size: 12px;
}

.translation-empty-state {
    padding: 36px 20px;
    text-align: center;
}

.translation-empty-state--compact {
    padding: 24px 16px;
}

.translation-empty-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 17px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 25px;
    font-weight: 800;
}

.translation-empty-state h3 {
    margin: 0 0 6px;
    color: #17315e;
    font-size: 18px;
}

.translation-empty-state p {
    max-width: 520px;
    margin: 0 auto;
    color: #6b7890;
}

.translation-detail-status {
    align-self: flex-start;
    padding: 9px 13px;
    font-size: 12px;
}

.translation-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    margin-bottom: 18px;
}

.translation-detail-card {
    min-width: 0;
}

.translation-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
}

.translation-facts div {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e5edf6;
    border-radius: 13px;
    background: #f8fbff;
}

.translation-facts dt {
    margin-bottom: 4px;
    color: #718096;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.translation-facts dd {
    margin: 0;
    color: #172f58;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.translation-comment,
.translation-round-comment {
    min-width: 0;
    margin-top: 15px;
    padding: 13px 15px;
    border-left: 3px solid #38bdf8;
    border-radius: 0 12px 12px 0;
    background: #f0f9ff;
    color: #31516c;
}

.translation-comment strong,
.translation-comment span,
.translation-round-comment strong,
.translation-round-comment span {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.translation-comment span,
.translation-round-comment span {
    margin-top: 5px;
}

.translation-file-list {
    display: grid;
    gap: 10px;
}

.translation-file-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e0eaf5;
    border-radius: 13px;
    background: #fff;
    color: #17315e;
    text-decoration: none;
}

.translation-file-item:hover {
    border-color: #7dd3fc;
    background: #f7fcff;
    color: #075985;
}

.translation-file-item > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.translation-file-item strong,
.translation-file-item small {
    display: block;
    overflow-wrap: anywhere;
}

.translation-file-item small {
    margin-top: 2px;
    color: #718096;
}

.translation-file-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e0f2fe;
}

.translation-file-item--result {
    border-color: #bbf7d0;
    background: #f7fff9;
}

.translation-file-item--result .translation-file-icon {
    background: #dcfce7;
    color: #15803d;
}

.translation-work-card {
    border-color: #bae6fd;
}

.translated-documents-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    padding: 19px;
    border: 1px solid #bbf7d0;
    border-radius: 17px;
    background: linear-gradient(145deg, #f5fff8, #fff);
}

.translated-documents-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.translated-documents-heading h3 {
    margin: 2px 0 4px;
    color: #14532d;
    font-size: 19px;
}

.translated-documents-heading p {
    margin: 0;
    color: #4b6f56;
    font-size: 12px;
}

.translated-documents-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
}

.translation-result-grid {
    display: grid;
    gap: 9px;
}

.translation-result-file {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    background: #fff;
    color: #174b2a;
    text-decoration: none;
}

.translation-result-file:hover {
    border-color: #4ade80;
    color: #166534;
}

.translation-result-file > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.translation-result-file strong,
.translation-result-file small {
    display: block;
    overflow-wrap: anywhere;
}

.translation-result-file small {
    margin-top: 2px;
    color: #66826f;
}

.translation-result-file-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dcfce7;
    font-weight: 800;
}

.translation-round-list {
    display: grid;
    gap: 13px;
}

.translation-round-item {
    min-width: 0;
    padding: 17px;
    border: 1px solid #dde7f2;
    border-radius: 15px;
    background: #fbfdff;
}

.translation-round-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.translation-round-header > div,
.translation-round-header strong {
    min-width: 0;
}

.translation-round-header strong,
.translation-round-number {
    display: block;
    overflow-wrap: anywhere;
}

.translation-round-number {
    margin-bottom: 3px;
    color: #0284c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.translation-round-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 11px;
    color: #718096;
    font-size: 11px;
}

.translation-round-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 13px 0;
}

.translation-round-files a {
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #dbe7f5;
    border-radius: 9px;
    background: #fff;
    color: #315474;
    font-size: 11px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.translation-round-files a:hover {
    border-color: #7dd3fc;
    color: #0369a1;
}

.translation-round-files .translation-round-result-link {
    border-color: #bbf7d0;
    color: #166534;
}

@media (max-width: 991.98px) {
    .translation-detail-grid,
    .translated-documents-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .translation-hero-counter {
        width: 100%;
    }

    .translation-facts {
        grid-template-columns: 1fr;
    }

    .translation-inbox-grid {
        grid-template-columns: 1fr;
    }

    .translation-round-header {
        align-items: stretch;
        flex-direction: column;
    }
}
