.navbar-brand,
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--app-text-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar-brand:hover,
.app-brand:hover {
    color: var(--app-text-primary);
}

.app-brand__badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--app-brand-700), var(--app-brand-500));
    color: #fff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 1.6rem;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn {
    border-radius: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-sm {
    border-radius: 0.75rem;
    font-size: 0.84rem;
}

.btn-primary {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-warning {
    background: #fff;
}

.btn-icon {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--app-border-default);
    border-radius: 0.85rem;
    min-height: 2.85rem;
    background: #fff;
}

.form-control,
.form-select {
    padding: 0.72rem 0.95rem;
    color: var(--app-text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
}

.form-label {
    color: var(--app-text-secondary);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

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

.card {
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-bg);
    box-shadow: var(--app-shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-border-default);
    background: transparent;
    color: var(--app-text-primary);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--app-border-default);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    padding: 0.9rem 1rem;
    border-bottom-width: 1px;
    border-bottom-color: var(--app-border-default);
    background: var(--app-surface-subtle);
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table tbody td {
    padding: 1rem;
    border-bottom-color: var(--app-border-default);
    color: var(--app-text-secondary);
}

.table-hover tbody tr:hover {
    background: var(--app-brand-50);
}

.dropdown-menu,
.modal-content,
.offcanvas,
.popover,
.tooltip-inner {
    border-color: var(--app-border-default);
    box-shadow: var(--app-shadow-lg);
}

.dropdown-menu,
.modal-content {
    border-radius: var(--app-radius-md);
}

.dropdown-item {
    border-radius: 0.75rem;
    margin: 0.1rem 0.35rem;
    width: auto;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--app-brand-50);
    color: var(--app-brand-700);
}

.alert {
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    box-shadow: var(--app-shadow-sm);
}

.alert-success {
    background: linear-gradient(180deg, #f7fffb 0%, var(--app-success-50) 100%);
    border-color: rgba(5, 150, 105, 0.16);
    color: #166534;
}

.alert-warning {
    background: linear-gradient(180deg, #fffdf7 0%, var(--app-warning-50) 100%);
    border-color: rgba(217, 119, 6, 0.16);
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(180deg, #fff8f8 0%, var(--app-danger-50) 100%);
    border-color: rgba(220, 38, 38, 0.16);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(180deg, #f8fdff 0%, var(--app-info-50) 100%);
    border-color: rgba(2, 132, 199, 0.16);
    color: #0f4c81;
}

.page-header,
.biz-page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(219, 234, 254, 0.7);
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    box-shadow: var(--app-shadow-sm);
}

.page-header-copy,
.biz-page-copy {
    min-width: 0;
}

.page-eyebrow,
.biz-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: var(--app-brand-700);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-title,
.page-header h1,
.page-header h2,
.biz-page-copy h1,
.biz-page-copy h2 {
    margin: 0;
    color: var(--app-text-primary);
    font-size: clamp(1.6rem, 2.3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-description,
.biz-record-summary {
    margin-top: 0.45rem;
    color: var(--app-text-muted);
    max-width: 56rem;
    line-height: 1.7;
}

.page-header-actions,
.biz-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.page-header-actions > form,
.biz-page-actions > form {
    margin: 0;
}

.filter-bar,
.form-shell-section {
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-bg);
    box-shadow: var(--app-shadow-sm);
}

.filter-bar__body {
    padding: 1.25rem;
}

.filter-grid,
.biz-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.filter-field,
.biz-filter-field {
    min-width: 0;
}

.filter-actions,
.biz-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-actions .btn,
.biz-filter-actions .btn {
    flex: 1 1 auto;
}

.record-summary {
    margin-top: 0.85rem;
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100%;
    padding: 1.2rem;
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    box-shadow: var(--app-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md);
    border-color: rgba(37, 99, 235, 0.22);
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.4rem;
    color: var(--app-brand-700);
    background: var(--app-brand-50);
}

.stat-content {
    min-width: 0;
}

.stat-value {
    color: var(--app-text-primary);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.stat-label {
    margin-top: 0.35rem;
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

.data-card,
.app-surface-card {
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-bg);
    box-shadow: var(--app-shadow-sm);
}

.data-card__header,
.biz-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state,
.biz-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--app-text-muted);
}

.empty-state i,
.biz-empty-state i {
    font-size: 2.8rem;
    color: var(--app-text-soft);
}

.table-action-group,
.biz-quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-action-menu .dropdown-toggle::after {
    margin-left: 0.4rem;
}

.table-action-menu .dropdown-menu {
    min-width: 13rem;
    padding: 0.45rem;
}

.table-action-menu .dropdown-menu form {
    margin: 0;
}

.table-action-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.biz-mobile-card {
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    padding: 1rem;
    background: var(--app-surface-bg);
    box-shadow: var(--app-shadow-sm);
}

.biz-mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.biz-mobile-meta-label {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.biz-mobile-meta-value {
    color: var(--app-text-primary);
    font-weight: 700;
}

.biz-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.biz-mobile-actions > * {
    flex: 1 1 calc(50% - 0.5rem);
}

.page-guide-card {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: var(--app-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.page-guide-card .list-group-item {
    border-color: rgba(203, 213, 225, 0.66);
    background: transparent;
}

.page-guide-highlight {
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: var(--app-radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.bagsys-global-search-entry {
    width: 100%;
}

.bagsys-global-search-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-height: 3.5rem;
    border-radius: 1rem !important;
    padding: 0.8rem 0.95rem !important;
    background: var(--app-surface-subtle) !important;
    border-color: var(--app-border-default) !important;
    color: var(--app-text-primary) !important;
    transition: all 0.2s ease;
    text-align: left;
}

.bagsys-global-search-trigger__lead {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bagsys-global-search-trigger__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(191, 219, 254, 0.9);
    color: var(--app-brand-700);
}

.bagsys-global-search-trigger__text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    overflow: hidden;
}

.bagsys-global-search-trigger__title {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.bagsys-global-search-trigger__meta {
    min-width: 0;
    color: var(--app-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bagsys-global-search-trigger:hover,
.bagsys-global-search-trigger:focus {
    background: var(--app-brand-50) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1) !important;
}

.bagsys-global-search-trigger .shortcut {
    border: 1px solid rgba(191, 219, 254, 0.7);
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-brand-700);
    font-size: 0.75rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.bagsys-global-search-modal .modal-content {
    overflow: hidden;
}

.bagsys-global-search-modal .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bagsys-global-search-input {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
}

.bagsys-global-search-state {
    min-height: 2rem;
}

.bagsys-global-search-groups {
    display: grid;
    gap: 0.75rem;
    max-height: 24rem;
    overflow-y: auto;
}

.bagsys-global-search-group {
    border: 1px solid var(--app-border-default);
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.bagsys-global-search-group-header,
.bagsys-global-search-item-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bagsys-global-search-group-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--app-text-primary);
}

.bagsys-global-search-group-total,
.bagsys-global-search-item-meta {
    color: var(--app-text-muted);
    font-size: 0.78rem;
}

.bagsys-global-search-items {
    display: grid;
    gap: 0.45rem;
}

.bagsys-global-search-item {
    display: block;
    padding: 0.75rem 0.8rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: inherit;
    background: var(--app-surface-subtle);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.bagsys-global-search-item:hover,
.bagsys-global-search-item:focus {
    background: var(--app-brand-50);
    border-color: rgba(37, 99, 235, 0.18);
    color: inherit;
}

.bagsys-global-search-item-title {
    font-weight: 700;
    color: var(--app-text-primary);
}

.bagsys-global-search-item-badge {
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
}

.bagsys-global-search-item-subtitle {
    color: var(--app-text-secondary);
    font-size: 0.86rem;
    margin-top: 0.2rem;
}

.bagsys-global-search-group-footer {
    margin-top: 0.55rem;
}

.bagsys-global-search-group-footer a {
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar .nav-link,
.sidebar button.nav-link,
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.25rem;
    padding: 0.72rem 0.9rem;
    border: 0;
    border-radius: 0.9rem;
    color: var(--app-text-secondary);
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sidebar .nav-link:hover,
.sidebar button.nav-link:hover,
.menu-item:hover {
    background: var(--app-surface-subtle);
    color: var(--app-text-primary);
}

.sidebar .nav-link.active,
.sidebar button.nav-link.active,
.menu-item.active {
    background: var(--app-brand-50);
    color: var(--app-brand-700);
}

.sidebar .nav-link i,
.menu-item i {
    opacity: 0.8;
}

.sidebar-mobile-toggle {
    flex: 0 0 auto;
}

.sidebar .nav-link-content,
.menu-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.sidebar .nav-link-title,
.menu-item-label {
    line-height: 1.2;
}

.sidebar .submenu .nav-link {
    padding-left: 2.95rem;
    font-size: 0.92rem;
}

.nav-link-toggle {
    justify-content: flex-start;
}

.nav-link-caret {
    margin-left: auto;
    transition: transform 0.18s ease;
}

.nav-link-toggle[aria-expanded="true"] .nav-link-caret {
    transform: rotate(180deg);
}

.sidebar .nav-badge,
.menu-badge {
    min-width: 1.55rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.nav-badge-primary,
.menu-badge-primary {
    background: var(--app-brand-600);
}

.nav-badge-warning,
.menu-badge-warning {
    background: var(--app-warning-600);
}

.nav-badge-danger,
.menu-badge-danger {
    background: var(--app-danger-600);
}

.nav-badge-info,
.menu-badge-info {
    background: var(--app-info-600);
}

.nav-badge-success,
.menu-badge-success {
    background: var(--app-success-600);
}

.nav-badge-secondary,
.menu-badge-secondary {
    background: var(--app-text-muted);
}

.sidebar-shortcut-row {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.sidebar-shortcut-row .nav-link {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.sidebar-shortcut-action {
    width: 2.5rem;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    color: var(--app-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-shortcut-action:hover {
    background: var(--app-surface-subtle);
    color: var(--app-warning-600);
}

.sidebar-shortcut-action.active {
    color: var(--app-warning-600);
}

.sidebar-recent-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-section-title,
.menu-section {
    color: var(--app-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.4rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--app-border-default);
}

.platform-navbar .navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.platform-navbar .sidebar-toggle {
    flex: 0 0 auto;
}

.platform-navbar .navbar-item {
    color: var(--app-text-muted);
}

.platform-navbar .navbar-item .badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-height: 1rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.68rem;
}

.navbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--app-border-default);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--app-text-primary);
}

.navbar-user:hover {
    background: var(--app-brand-50);
    color: var(--app-brand-700);
}

.loading-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.86);
    backdrop-filter: blur(4px);
}

.loading-mask__card {
    min-width: 10rem;
    padding: 1rem 1.2rem;
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border-default);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--app-shadow-md);
}

.app-auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: var(--app-shadow-md);
}

.app-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--app-brand-50);
    color: var(--app-brand-700);
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

.app-auth-title {
    color: var(--app-text-primary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.app-auth-copy {
    color: var(--app-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 34rem;
}

.app-auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.app-auth-metric {
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: var(--app-radius-md);
    background: rgba(255, 255, 255, 0.76);
}

.app-auth-metric__label {
    color: var(--app-text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-auth-metric__value {
    margin-top: 0.4rem;
    color: var(--app-text-primary);
    font-size: 1.45rem;
    font-weight: 800;
}

.app-auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem;
    border: 1px solid var(--app-border-default);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow-lg);
}

.app-auth-card__header {
    margin-bottom: 1.6rem;
}

.app-auth-card__title {
    margin: 0;
    color: var(--app-text-primary);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-auth-card__subtitle {
    margin-top: 0.55rem;
    color: var(--app-text-muted);
    line-height: 1.65;
}

.app-auth-footer {
    margin-top: 1.5rem;
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

.home-landing-card {
    width: min(980px, 100%);
    padding: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--app-shadow-lg);
    backdrop-filter: blur(14px);
}

.home-landing-top,
.home-landing-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-landing-top {
    margin-bottom: 2.4rem;
}

.home-landing-links,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-landing-links a,
.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.95rem;
    text-decoration: none;
    font-weight: 700;
}

.link-soft,
.action-secondary {
    color: var(--app-text-primary);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 213, 225, 0.9);
}

.action-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--app-brand-700), var(--app-brand-600));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.home-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 1.75rem;
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--app-brand-700);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    margin: 0 0 0.9rem;
    color: var(--app-text-primary);
    font-size: clamp(2.25rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.lead {
    margin: 0;
    max-width: 38rem;
    color: var(--app-text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.hero-side {
    padding: 1.1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(203, 213, 225, 0.84);
}

.side-kicker {
    color: var(--app-text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-number {
    margin: 0.55rem 0;
    color: var(--app-text-primary);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.side-copy,
.home-landing-foot {
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

.form-shell {
    display: grid;
    gap: 1rem;
}

.form-shell-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border: 1px solid var(--app-border-default);
    border-radius: var(--app-radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--app-shadow-md);
    backdrop-filter: blur(10px);
}

.quote-hint,
.decision-hint,
.warning-hint {
    min-height: 1.25rem;
}

.decision-hint {
    color: var(--app-info-600);
}

.warning-hint {
    color: var(--app-danger-600);
}

.decision-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.decision-banner {
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: var(--app-radius-md);
    background: rgba(37, 99, 235, 0.04);
}

.purchase-col-material {
    min-width: 15rem;
}

.purchase-col-qty {
    width: 8.75rem;
}

.purchase-col-cost {
    width: 10rem;
}

.purchase-col-amount {
    width: 8.75rem;
}

.purchase-col-actions {
    width: 5rem;
}

.chart-stage {
    min-height: 18rem;
}

.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    display: none;
    z-index: 1060;
}

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

    .home-landing-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-header,
    .biz-page-toolbar,
    .form-shell-actions {
        padding: 1rem;
    }

    .page-header-actions > *,
    .biz-page-actions > * {
        flex: 1 1 calc(50% - 0.7rem);
    }

    .biz-mobile-meta {
        grid-template-columns: 1fr;
    }

    .app-auth-aside,
    .app-auth-card,
    .home-landing-card {
        padding: 1.25rem;
    }

    .bagsys-global-search-trigger__meta {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .page-header-actions > *,
    .biz-page-actions > *,
    .biz-mobile-actions > *,
    .form-shell-actions > * {
        flex-basis: 100%;
    }

    .app-auth-metrics {
        grid-template-columns: 1fr;
    }
}
