:root {
    --bs-body-font-family: Inter, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.5;
    --bs-body-color: #171717;
    --bs-body-bg: #ffffff;
    --bs-border-color: #e7e7e7;
    --bs-border-radius: 10px;
    --bs-primary: #171717;
    --bs-primary-rgb: 23, 23, 23;
    --bs-link-color: #171717;
    --bs-link-hover-color: #171717;
    --bs-secondary-color: #737373;
    --app-ink: #171717;
    --app-muted: #737373;
    --app-line: #e7e7e7;
    --app-soft: #f7f7f7;
    --app-sidebar: 232px;
    --app-canvas: #ececec;
}

html,
body {
    font-family: Inter, sans-serif;
    background: #fff;
    color: var(--app-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #171717;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

.btn {
    --bs-btn-font-size: 13px;
    --bs-btn-padding-y: 0;
    --bs-btn-padding-x: 14px;
    --bs-btn-border-radius: 8px;
    --bs-btn-font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
}

.btn-primary {
    --bs-btn-bg: #171717;
    --bs-btn-border-color: #171717;
    --bs-btn-hover-bg: #2a2a2a;
    --bs-btn-hover-border-color: #2a2a2a;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-disabled-bg: #171717;
    --bs-btn-disabled-border-color: #171717;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-color: #171717;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #e4e4e4;
    --bs-btn-hover-bg: #fafafa;
    --bs-btn-hover-color: #171717;
    --bs-btn-hover-border-color: #d4d4d4;
    --bs-btn-active-bg: #f4f4f4;
    --bs-btn-active-color: #171717;
    --bs-btn-active-border-color: #d4d4d4;
}

.form-control,
.form-select {
    font-size: 14px;
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    border-color: #e4e4e4;
    border-radius: 8px;
    color: #171717;
    background-color: #fff;
    box-shadow: none;
}

.form-control::placeholder {
    color: #a3a3a3;
}

.form-control:focus,
.form-select:focus {
    border-color: #171717;
    box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.select2-container {
    font-size: 14px;
    font-family: inherit;
}

.field .select2-container {
    display: block;
    width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    min-height: 38px;
    background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 0.7rem;
    padding-right: 1.8rem;
    color: #171717;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #a3a3a3;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #171717;
    box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.select2-container--default .select2-selection--multiple {
    padding: 2px 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f4f4f4;
    border: 0;
    border-radius: 6px;
    color: #171717;
    padding: 2px 8px;
    margin-top: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #737373;
    margin-right: 4px;
    border: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #171717;
    background: transparent;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-family: inherit;
    font-size: 14px;
    margin-top: 6px;
    color: #171717;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #a3a3a3;
}

.select2-dropdown {
    border-color: #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1060;
    font-family: inherit;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #171717;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #171717;
    color: #fff;
}

.select2-container--default .select2-results__option--selected {
    background: #f4f4f4;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selected {
    background: #171717;
    color: #fff;
}

.filter-bar .select2-container {
    width: 168px !important;
    min-width: 148px;
    flex: 0 0 auto;
}

.filter-bar .select2-container--default .select2-selection--single {
    min-height: 34px;
}

.filter-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    font-size: 13px;
}

.filter-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #171717;
    caret-color: #171717;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out;
}

.form-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #171717;
    letter-spacing: -0.01em;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.field-label-row .form-label {
    margin-bottom: 0;
}

.quick-user-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #171717;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.quick-user-link:hover {
    color: #000;
}

.quick-user-action {
    display: block;
    width: 100%;
    border: 0;
    border-top: 1px solid #e4e4e4;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
}

.quick-user-action:hover {
    background: #fafafa;
}

#quick-user-modal .modal-content {
    border: 1px solid #e4e4e4;
    border-radius: 12px;
}

#quick-user-modal .modal-header,
#quick-user-modal .modal-footer {
    border-color: #e4e4e4;
}

.form-text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--app-muted);
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0.15em;
    border-color: #d4d4d4;
}

.form-check-input:checked {
    background-color: #171717;
    border-color: #171717;
}

.form-check-input:focus {
    border-color: #171717;
    box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.form-check-label {
    font-size: 13px;
    color: #404040;
}

.field {
    margin-bottom: 16px;
}

.app-shell {
    min-height: 100vh;
    background: #fff;
}

aside.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    width: var(--app-sidebar);
    background: #111111;
    color: #fff;
}

.offcanvas.app-sidebar {
    width: min(280px, 88vw);
    background: #111111;
    color: #fff;
    border: 0;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #16a34a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    flex: none;
}

.sidebar-close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #d4d4d4;
}

.sidebar-close:hover {
    background: #242424;
    color: #fff;
}

.sidebar-search {
    position: relative;
    margin: 0 12px 8px;
}

.sidebar-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    font-size: 13px;
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #fff;
    padding: 0 10px 0 30px;
    font-size: 13px;
}

.sidebar-search input::placeholder {
    color: #8a8a8a;
}

.sidebar-search input:focus {
    outline: none;
    border-color: #3f3f3f;
    background: #1c1c1c;
}

.app-nav {
    flex: 1;
    padding: 6px 10px 16px;
    overflow: auto;
}

.nav-label {
    padding: 10px 10px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #8a8a8a;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.app-nav a:hover {
    background: #1c1c1c;
    color: #fff;
    text-decoration: none;
}

.app-nav a.active {
    background: #2a2a2a;
    color: #fff;
    font-weight: 600;
}

.app-nav i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: #c7c7c7;
}

.app-nav a.active i,
.app-nav a:hover i {
    color: #fff;
}

.nav-count {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-top: 1px solid #242424;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex: none;
}

.sidebar-user-meta {
    min-width: 0;
    flex: 1;
}

.sidebar-user .name {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .role {
    color: #8a8a8a;
    font-size: 12px;
    line-height: 1.3;
}

.sidebar-logout {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a3a3a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.sidebar-logout:hover {
    background: #242424;
    color: #fff;
}

.app-main {
    margin-left: var(--app-sidebar);
    min-height: 100vh;
    background: #fff;
}

.app-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #fff;
    border-bottom: 1px solid var(--app-line);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-topbar-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-content {
    width: 100%;
    padding: 28px 32px 64px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #111;
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
}

.page-head .page-subtitle {
    max-width: 46rem;
}

.surface {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 12px;
}

.surface-pad {
    padding: 16px 18px;
}

.sheet {
    max-width: 680px;
}

.sheet-wide {
    max-width: 920px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    overflow: hidden;
}

.stat-cell {
    padding: 14px 18px 13px;
    border-right: 1px solid #efefef;
}

.stat-cell:last-child {
    border-right: 0;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--app-muted);
    font-weight: 500;
}

.stat-value {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-value.is-alert {
    color: #b91c1c;
}

.section-title,
.surface h2.h6,
h2.h6 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #171717;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #fafafa;
    margin-bottom: 0;
    font-size: 13.5px;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 11px 14px;
    border-bottom-color: #f1f1f1;
    box-shadow: none;
}

.table thead th {
    font-size: 12px;
    font-weight: 500;
    color: #737373;
    white-space: nowrap;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.table tbody tr:last-child > * {
    border-bottom: 0;
}

.table a {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.table a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.table .col-actions {
    width: 1%;
    white-space: nowrap;
}

.table a.btn {
    font-weight: 500;
    text-decoration: none;
}

.table a.btn:hover {
    text-decoration: none;
}

.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

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

.report-head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #efefef;
}

.report-head h2.h6 {
    margin-bottom: 2px;
}

.btn-compact {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.btn-outline-danger {
    --bs-btn-color: #991b1b;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fecaca;
    --bs-btn-hover-bg: #fef2f2;
    --bs-btn-hover-color: #991b1b;
    --bs-btn-hover-border-color: #fca5a5;
    --bs-btn-active-bg: #fee2e2;
    --bs-btn-active-color: #991b1b;
    --bs-btn-active-border-color: #fca5a5;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.inline-actions form {
    margin: 0;
}

.swal2-popup {
    font-family: Inter, sans-serif;
    border-radius: 12px;
}

.swal-actions {
    gap: 8px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 0;
    background: #f4f4f5;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: #3f3f46;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.badge-open,
.badge-medium {
    background: #e8f1ff;
    color: #1d4f91;
}

.badge-progress,
.badge-high {
    background: #fef3c7;
    color: #92400e;
}

.badge-hold {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-resolved,
.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-closed,
.badge-archived,
.badge-low {
    background: #f4f4f5;
    color: #52525b;
}

.badge-urgent,
.badge-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    padding: 36px 16px;
    text-align: center;
    color: var(--app-muted);
    font-size: 13px;
}

.empty-state i {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
    color: #a3a3a3;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.surface > .filter-bar {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #efefef;
}

.filter-bar .form-control,
.filter-bar .form-select {
    width: auto;
    min-width: 148px;
    max-width: 200px;
    flex: 1 1 148px;
    min-height: 34px;
    font-size: 13px;
}

.filter-bar .filter-search {
    flex: 1 1 220px;
    max-width: 260px;
    min-width: 180px;
}

.filter-bar .form-check-label {
    min-height: 34px;
    padding: 0 4px;
    gap: 6px;
}

.list-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.alert {
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.pagination {
    margin-bottom: 0;
    gap: 4px;
}

.page-link {
    border-radius: 8px;
    border-color: #e7e7e7;
    color: #171717;
    font-size: 13px;
    min-width: 32px;
    text-align: center;
    padding: 4px 10px;
}

.page-link:hover {
    background: #fafafa;
    color: #171717;
    border-color: #e7e7e7;
}

.page-item.active .page-link {
    background: #171717;
    border-color: #171717;
    color: #fff;
}

.guest-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--app-canvas);
}

.guest-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.guest-brand,
.auth-brand,
.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.guest-brand {
    margin-bottom: 18px;
}

.auth-shell {
    width: min(960px, 100%);
    min-height: 580px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.auth-aside {
    background: #111111;
    color: #fff;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    min-height: 580px;
}

.auth-hero {
    margin-top: 72px;
}

.auth-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a3a3a3;
}

.auth-aside h2 {
    margin: 10px 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.auth-aside .auth-copy {
    margin: 0;
    max-width: 28rem;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.5;
}

.auth-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    margin-bottom: 22px;
}

.auth-chips div {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 10px 12px;
}

.auth-chips span {
    display: block;
    font-size: 11px;
    color: #a3a3a3;
    font-weight: 500;
}

.auth-chips strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-foot {
    margin: 0;
    color: #8a8a8a;
    font-size: 12px;
}

.auth-panel {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-mobile-brand {
    display: none;
    color: #111;
    margin-bottom: 22px;
}

.auth-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #737373;
}

.auth-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.auth-lead {
    margin: 6px 0 22px;
    color: #737373;
    font-size: 14px;
}

.auth-panel .form-control {
    min-height: 44px;
    border-radius: 10px;
    padding: 0 12px;
}

.auth-panel .btn-primary {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    margin-top: 4px;
}

.auth-footnote {
    margin: 18px 0 0;
    text-align: center;
    color: #737373;
    font-size: 13px;
    line-height: 1.45;
}

.auth-footnote a,
.guest-card a:not(.btn) {
    color: #171717;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guest-card a.btn,
.auth-panel a.btn {
    text-decoration: none;
}

.note-editor.note-frame {
    border-color: #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
}

.note-editor .note-toolbar {
    background: #fafafa;
    border-bottom-color: #eee;
}

.note-editor .note-editable {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #171717;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
}

.timeline-item i {
    margin-top: 3px;
    color: #a3a3a3;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
    font-size: 13.5px;
}

.file-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.file-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #737373;
}

.comment {
    padding: 14px 0;
    border-bottom: 1px solid #f3f3f3;
}

.prose {
    font-size: 14px;
    line-height: 1.6;
    color: #262626;
}

.prose h1,
.prose h2,
.prose h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #171717;
}

.prose p {
    margin: 0 0 8px;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chart-box {
    position: relative;
    height: 210px;
}

.surface > .border-bottom:last-child {
    border-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .app-main {
        margin-left: 0;
    }

    .app-content {
        padding: 20px 16px 40px;
    }

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

    .stat-cell:nth-child(2) {
        border-right: 0;
    }

    .stat-cell:nth-child(-n + 2) {
        border-bottom: 1px solid #efefef;
    }
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 16px;
    }

    .auth-aside {
        display: none;
    }

    .auth-panel {
        padding: 28px 22px 32px;
    }

    .auth-mobile-brand {
        display: flex;
    }
}

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

    .page-head {
        flex-direction: column;
    }

    .page-title {
        font-size: 20px;
    }

    .sheet,
    .sheet-wide {
        max-width: none;
    }
}
