:root {
    --mobile-shell-width: 768px;
    --stack-gap: 18px;
    --card-radius: 10px;
    --card-padding: 24px;
    --bs-body-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --bs-body-color: #1f2a37;
    --bs-primary: #336699;
    --bs-primary-rgb: 51, 102, 153;
    --zapp-muted-bg: #e9eef5;
    --zapp-muted-border: #d4dee9;
    --zapp-muted-color: #526070;
}

[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
    display: none !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--bs-body-font-family);
    background: linear-gradient(180deg, #eef4fb 0%, #dde8f5 100%);
    color: var(--bs-body-color);
}

body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

body.nav-open {
    overflow: hidden;
}

.shell {
    width: 100%;
    max-width: var(--mobile-shell-width);
    display: grid;
    gap: var(--stack-gap);
}

.auth-shell {
    width: 100%;
    max-width: var(--mobile-shell-width);
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
    display: grid;
    position: relative;
    isolation: isolate;
    align-content: center;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.auth-shell::before {
    z-index: -2;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 198, 120, 0.34) 0, rgba(255, 198, 120, 0) 28%),
        radial-gradient(circle at 82% 18%, rgba(99, 169, 255, 0.34) 0, rgba(99, 169, 255, 0) 32%),
        radial-gradient(circle at 50% 78%, rgba(47, 125, 181, 0.24) 0, rgba(47, 125, 181, 0) 36%),
        linear-gradient(145deg, #eef4ff 0%, #d8e8fb 42%, #cadcf5 100%);
}

.auth-shell::after {
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 58%);
    opacity: 0.9;
}

.auth-view-frame {
    width: 100%;
    display: grid;
    gap: var(--stack-gap);
    position: relative;
    z-index: 1;
}

.onboarding-page {
    display: grid;
    gap: var(--stack-gap);
}

.onboarding-hero {
    padding: 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 211, 133, 0.3) 0, rgba(255, 211, 133, 0) 34%),
        linear-gradient(145deg, #10253d 0%, #1c5270 100%);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.2);
}

.onboarding-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.onboarding-kicker {
    color: #ffd58c !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.onboarding-logout-btn {
    flex: 0 0 auto;
}

.onboarding-card {
    overflow: hidden;
}

.onboarding-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 12px;
    padding-bottom: 4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bs-body-bg) 28%);
}

.onboarding-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--zapp-muted-bg);
}

.onboarding-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #336699 0%, #e4a84d 100%);
    transition: width 180ms ease;
}

.onboarding-review-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--zapp-muted-border);
}

.onboarding-review-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--zapp-muted-border);
}

.onboarding-review-list dt,
.onboarding-review-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.onboarding-review-list dt {
    color: var(--zapp-muted-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.onboarding-review-list dd {
    color: var(--bs-body-color);
    text-align: right;
}

.app-shell {
    min-height: calc(100vh - 32px);
    display: grid;
    gap: var(--stack-gap);
    align-content: start;
}

.shell-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(16, 37, 61, 0.92);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.22);
}

.zapp-shell-icon-btn {
    width: 48px;
    height: 48px;
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-items: center;
    padding: 0;
    border-radius: 14px;
}

.zapp-shell-icon-btn span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.shell-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.shell-menu-btn:hover,
.shell-menu-btn:focus,
.shell-menu-btn:focus-visible,
.shell-menu-btn:active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.shell-title-block {
    min-width: 0;
}

.shell-kicker,
.shell-page-copy,
.shell-drawer-kicker {
    margin: 0;
}

.shell-kicker,
.shell-drawer-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.shell-page-title,
.shell-drawer-title {
    margin: 2px 0;
}

.shell-page-title {
    font-size: 18px;
    line-height: 1.2;
}

.shell-page-copy {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}

.shell-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shell-session-actions {
    min-width: 0;
}

.shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 26, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 80;
}

.shell-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.shell-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 28px 28px 0;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(13, 27, 42, 0.2);
    transform: translateX(-108%);
    transition: transform 220ms ease;
    overflow-y: auto;
    z-index: 90;
}

.shell-drawer.is-open {
    transform: translateX(0);
}

.shell-drawer-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.shell-drawer-close {
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 12px;
    background: #eef4fb;
    border-color: transparent;
    color: #234b73;
}

.shell-drawer-close:hover,
.shell-drawer-close:focus,
.shell-drawer-close:focus-visible,
.shell-drawer-close:active {
    background: #e0ebf8;
    border-color: transparent;
    color: #234b73;
}

.shell-drawer-close span {
    position: absolute;
    top: 19px;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
}

.shell-drawer-close span:first-child {
    transform: rotate(45deg);
}

.shell-drawer-close span:last-child {
    transform: rotate(-45deg);
}

.shell-brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e8f1fb;
    color: #234b73;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.shell-drawer-kicker {
    color: #6b7a8b;
}

.shell-drawer-title {
    font-size: 20px;
    color: #1f2a37;
}

.shell-nav {
    display: grid;
    gap: 12px;
    background: transparent;
}

.shell-nav-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.shell-nav-link:hover,
.shell-nav-link:focus,
.shell-nav-link:focus-visible {
    color: inherit;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.14);
}

.shell-nav-link.active {
    background: #f3f8fe;
    color: #1f2a37;
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.12);
}

.shell-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shell-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    font-size: 14px;
    color: #234b73;
}

.shell-nav-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2a37;
}

.shell-nav-link.active .shell-nav-label {
    color: #183653;
}

.shell-nav-link.active .shell-nav-icon {
    color: #183653;
}

.shell-content {
    display: grid;
    gap: var(--stack-gap);
}

.view-frame {
    display: grid;
    gap: var(--stack-gap);
    align-content: start;
}

.zapp-page-stack {
    display: grid;
    gap: var(--stack-gap);
}

.login-page {
    display: grid;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    gap: 18px;
    align-content: center;
}

.login-title-hero {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 22px 20px 18px;
    text-align: center;
    color: #ffffff;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 210, 146, 0.34) 0, rgba(255, 210, 146, 0) 30%),
        radial-gradient(circle at 85% 18%, rgba(118, 193, 255, 0.32) 0, rgba(118, 193, 255, 0) 28%),
        linear-gradient(155deg, rgba(14, 33, 55, 0.94) 0%, rgba(27, 66, 104, 0.9) 58%, rgba(55, 116, 171, 0.86) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 64px rgba(12, 27, 45, 0.24);
    overflow: hidden;
}

.login-title-hero::before,
.login-title-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-title-hero::before {
    width: 180px;
    height: 180px;
    top: -88px;
    right: -62px;
    background: rgba(255, 255, 255, 0.1);
}

.login-title-hero::after {
    width: 122px;
    height: 122px;
    bottom: -70px;
    left: -34px;
    background: rgba(255, 255, 255, 0.08);
}

.login-title-kicker,
.login-title-heading {
    position: relative;
    z-index: 1;
}

.login-title-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.login-title-heading {
    margin: 0;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 14px 34px rgba(7, 18, 31, 0.22);
}

.login-form-card > .card-body {
    display: grid;
    gap: 10px;
    padding: 26px 24px 24px;
}

.login-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 60px rgba(28, 52, 84, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #17314f 0%, #336699 55%, #6fb4ee 100%);
}

.login-form-card .form-label {
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: rgba(23, 49, 79, 0.62) !important;
}

.login-input-control {
    min-height: 52px;
    border: 1px solid rgba(23, 49, 79, 0.08);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    color: #17314f;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 30px rgba(21, 43, 68, 0.08);
}

.login-input-control::placeholder {
    color: #8391a0;
}

.login-input-control:focus {
    border-color: rgba(51, 102, 153, 0.34);
    background: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(51, 102, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 30px rgba(21, 43, 68, 0.1);
}

.login-submit-btn {
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #17314f 0%, #336699 60%, #4d8ac0 100%);
    box-shadow: 0 18px 36px rgba(32, 71, 109, 0.28);
}

.login-submit-btn:hover,
.login-submit-btn:focus,
.login-submit-btn:focus-visible,
.login-submit-btn:active {
    background: linear-gradient(135deg, #16304d 0%, #2e5f8f 60%, #467fb1 100%);
    box-shadow: 0 20px 38px rgba(32, 71, 109, 0.32);
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.86rem;
}

.auth-link-copy {
    color: #607080;
}

.auth-link {
    color: #20476d;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus,
.auth-link:focus-visible {
    color: #17314f;
    text-decoration: underline;
}

.register-page .login-title-heading {
    font-size: clamp(1.45rem, 6.8vw, 1.95rem);
}

.register-form-card > .card-body {
    gap: 12px;
}

.register-password-note {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #607080;
}

.view-frame.ng-enter {
    opacity: 0;
    transform: translateY(12px);
}

.view-frame.ng-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
}

.zapp-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 18px 45px rgba(31, 42, 55, 0.08);
    overflow: hidden;
}

.zapp-card > .card-body {
    padding: var(--card-padding);
}

.zapp-hero-card {
    background: linear-gradient(160deg, rgba(16, 37, 61, 0.96) 0%, rgba(51, 102, 153, 0.92) 100%);
    color: #ffffff;
}

.zapp-hero-card > .card-body {
    display: grid;
    gap: 8px;
}

.zapp-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.zapp-hero-copy {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.zapp-context-panel {
    border-left: 6px solid transparent;
}

.zapp-context-panel > .card-body {
    display: grid;
    gap: 8px;
}

.zapp-context-panel--primary {
    border-left-color: var(--bs-primary);
}

.zapp-context-panel--info {
    border-left-color: #0dcaf0;
}

.zapp-context-panel--success {
    border-left-color: #198754;
}

.zapp-context-panel--warning {
    border-left-color: #ffc107;
}

.zapp-context-panel--danger {
    border-left-color: #dc3545;
}

.route-chip,
.zapp-panel-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #234b73;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.zapp-context-panel--info .zapp-panel-chip {
    background: #e8f8fd;
    color: #0a748a;
}

.zapp-context-panel--success .zapp-panel-chip {
    background: #e8f6ed;
    color: #146c43;
}

.zapp-context-panel--warning .zapp-panel-chip {
    background: #fff4db;
    color: #997404;
}

.zapp-context-panel--danger .zapp-panel-chip {
    background: #fde9eb;
    color: #b02a37;
}

.helper-copy {
    margin: 0;
    line-height: 1.6;
}

.helper-copy + .helper-copy {
    margin-top: 8px;
}

.delivery-item-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.delivery-item-card > .card-body {
    padding: 14px 16px;
}

.delivery-item-meta {
    font-size: 13px;
    line-height: 1.35;
}

.delivery-size-breakdown {
    margin-top: 8px;
}

.delivery-size-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.delivery-size-table th,
.delivery-size-table td {
    padding: 0.2rem 0.1rem;
    font-size: 12px;
    border: 1px solid rgba(35, 75, 115, 0.18);
}

.delivery-size-table th {
    color: #5c738a;
    font-weight: 700;
    background: rgba(232, 248, 253, 0.7);
}

.delivery-size-table td {
    color: #234b73;
    font-weight: 600;
    background: #ffffff;
}

.delivery-filters-form {
    display: grid;
    gap: 12px;
}

.delivery-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.delivery-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.delivery-results-header .route-chip {
    margin-bottom: 0;
}

.delivery-results-list {
    gap: 10px;
}

.delivery-list-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.06);
}

.delivery-list-card > .card-body,
.delivery-list-card-body {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.delivery-list-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.delivery-list-main {
    min-width: 0;
}

.delivery-list-title {
    line-height: 1.2;
}

.delivery-list-line {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-list-line--secondary {
    color: #5d7389;
}

.delivery-list-status-chip {
    margin-bottom: 0;
    padding: 4px 8px;
    font-size: 11px;
}

.delivery-list-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.delivery-list-meta .badge {
    font-size: 11px;
    font-weight: 700;
}

.zapp-metric-value {
    margin: 6px 0 8px;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.btn-muted {
    color: var(--zapp-muted-color);
    background-color: var(--zapp-muted-bg);
    border-color: var(--zapp-muted-border);
}

.btn-muted:hover,
.btn-muted:focus,
.btn-muted:focus-visible,
.btn-muted:active {
    color: #334150;
    background-color: #dde6f0;
    border-color: #c7d2df;
}

.btn-muted.disabled,
.btn-muted:disabled {
    color: rgba(82, 96, 112, 0.72);
    background-color: rgba(233, 238, 245, 0.72);
    border-color: rgba(212, 222, 233, 0.78);
}

.zapp-context-card {
    border-width: 1px;
    border-style: solid;
    box-shadow: none;
}

.zapp-context-card .card-body {
    display: grid;
    gap: 8px;
}

.zapp-context-card--primary {
    color: #ffffff;
    background: linear-gradient(160deg, #336699 0%, #20476d 100%);
    border-color: #336699;
}

.zapp-context-card--info {
    background: #eef8fd;
    border-color: #9ad8f0;
}

.zapp-context-card--success {
    background: #edf9f1;
    border-color: #93d7a7;
}

.zapp-context-card--warning {
    background: #fff7e8;
    border-color: #ffd089;
}

.zapp-context-card--danger {
    background: #fff0f0;
    border-color: #f2a9af;
}

.zapp-context-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zapp-context-card--primary .zapp-context-kicker,
.zapp-context-card--primary .text-body-secondary,
.zapp-context-card--primary .text-body-secondary strong {
    color: rgba(255, 255, 255, 0.84) !important;
}

.zapp-alert-stack .alert {
    margin-bottom: 0;
    border-radius: 16px;
}

.zapp-dialog-preview {
    display: grid;
    gap: 12px;
}

.zapp-ngdialog.ngdialog.ngdialog-theme-default .ngdialog-content {
    width: min(92vw, 420px);
    margin: 8vh auto 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(13, 27, 42, 0.28);
}

.zapp-ngdialog .ngdialog-close {
    display: none;
}

.zapp-dialog-sheet {
    padding: 24px;
}

.zapp-dialog-sheet__kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #526070;
}

.zapp-dialog-sheet__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.zapp-dialog-sheet__copy {
    margin: 0;
    color: #526070;
    line-height: 1.6;
}

.zapp-dialog-sheet__actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.zapp-install-dialog-sheet {
    display: grid;
    gap: 16px;
}

.zapp-install-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 12px;
}

.zapp-install-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid var(--zapp-muted-border);
    border-radius: 14px;
    background: #ffffff;
    object-fit: cover;
}

.zapp-ngdialog--sales-review.ngdialog.ngdialog-theme-default .ngdialog-content {
    width: min(94vw, 560px);
    margin: 4vh auto;
    max-height: 92vh;
    max-height: 92dvh;
    max-height: calc(100vh - 8vh - 16px);
    max-height: calc(100dvh - 8vh - 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
}

.zapp-ngdialog--sales-review.ngdialog.ngdialog-theme-default {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    touch-action: pan-y;
}

.zapp-dialog-sheet--sales-review {
    display: grid;
    gap: 14px;
    padding: 18px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.zapp-ngdialog--delivery-checking.ngdialog.ngdialog-theme-default .ngdialog-content {
    width: min(96vw, 720px);
    margin: 3vh auto;
}

.zapp-dialog-sheet--delivery-checking {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.zapp-ngdialog--delivery-saving.ngdialog.ngdialog-theme-default .ngdialog-content {
    width: min(92vw, 420px);
    margin: max(8vh, env(safe-area-inset-top, 0px)) auto 0;
}

.zapp-dialog-sheet--delivery-saving {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.zapp-delivery-save-progress {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf4;
}

.zapp-delivery-save-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 32%;
    border-radius: inherit;
    background: #198754;
    animation: zapp-delivery-save-progress 1.2s ease-in-out infinite;
}

@keyframes zapp-delivery-save-progress {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(420%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .zapp-delivery-save-progress__bar {
        left: 34%;
        animation: none;
    }
}

.delivery-check-size-table-wrap {
    width: 100%;
}

.delivery-check-size-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.delivery-check-size-table thead th {
    border: 0;
    padding: 0.1rem 0.12rem;
    font-size: 10px;
    font-weight: 700;
    color: #5c738a;
}

.delivery-check-size-table tbody td {
    border: 0;
    padding: 0 0.12rem;
    vertical-align: middle;
}

.delivery-check-size-input {
    min-height: 30px;
    padding: 0.1rem;
    font-size: 11px;
}

.delivery-check-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.delivery-check-reset-btn {
    min-height: 26px;
    padding: 0.2rem 0.45rem;
    font-size: 11px;
    line-height: 1;
}

.delivery-check-row-summary {
    padding-top: 4px;
    border-top: 1px solid rgba(35, 75, 115, 0.15);
}

.delivery-check-row--checked {
    border-color: #9ed7b0;
    background: #f3fcf6;
}

.delivery-check-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.delivery-check-row-status.is-complete {
    color: #155f36;
    background: #d9f4e3;
    border-color: #99d5b0;
}

.delivery-check-row-status.is-pending {
    color: #6a7078;
    background: #eff3f8;
    border-color: #d4dde8;
}

.delivery-check-row-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #c9d9ea;
    background: #edf4fc;
}

.delivery-check-row-done .form-check-input {
    float: none;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}

.delivery-check-row-done .form-check-label {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    color: #204b73;
}

.delivery-check-row-done.is-pending {
    border-color: #b9d1ec;
    background: #eaf3fe;
}

.delivery-check-row-done.is-checked {
    border-color: #99d5b0;
    background: #dff4e6;
}

.delivery-check-row-done.is-checked .form-check-label {
    color: #155f36;
}

.delivery-check-row-done.is-locked {
    opacity: 0.86;
}

.zapp-ngdialog--inventory-history.ngdialog.ngdialog-theme-default .ngdialog-content {
    width: min(96vw, 680px);
    margin-top: 4vh;
}

.zapp-ngdialog--inventory-history .ngdialog-close {
    display: block;
    right: 10px;
    top: 12px;
    color: #5f7082;
}

.zapp-ngdialog--inventory-history .ngdialog-close::before {
    font-size: 30px;
    line-height: 1;
}

.zapp-dialog-sheet--inventory-history {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.zapp-dialog-sheet--inventory-history .zapp-dialog-sheet__title {
    padding-right: 32px;
}

.zapp-inventory-history-section {
    display: grid;
    gap: 10px;
}

.zapp-inventory-history-table-wrap {
    overflow-x: auto;
}

.zapp-inventory-history-table {
    min-width: 100%;
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.2;
}

.zapp-inventory-history-table thead th,
.zapp-inventory-history-table tbody td {
    padding: 0.28rem 0.38rem;
    white-space: nowrap;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.zapp-inventory-history-table thead th {
    font-size: 10px;
    font-weight: 700;
}

.zapp-inventory-history-table tbody td {
    font-size: 10px;
}

.zapp-dialog-sheet--inventory-history .route-chip {
    padding: 4px 8px;
    font-size: 11px;
}

.zapp-inventory-history-table .is-beginning-row {
    background: #eef4fb;
}

.zapp-inventory-history-table .is-current-row {
    background: #edf9f1;
}

.inventory-history-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.06);
}

.inventory-history-card > .card-body {
    padding: 14px 16px;
}

.inventory-filters-form {
    display: grid;
    gap: 12px;
}

.inventory-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inventory-results-header .route-chip {
    margin-bottom: 0;
}

.inventory-results-list {
    gap: 16px;
}

.inventory-size-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.inventory-size-table {
    min-width: 270px;
    table-layout: fixed;
    font-size: 11px;
}

.inventory-size-table th,
.inventory-size-table td {
    padding: 4px 3px;
    white-space: nowrap;
}

.inventory-size-table th:first-child {
    width: 38px;
}

.inventory-load-more {
    min-height: 44px;
    padding: 12px 8px;
    font-size: 13px;
}

.inventory-list-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.06);
}

.inventory-list-card > .card-body,
.inventory-list-card-body {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.inventory-list-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.inventory-list-main {
    min-width: 0;
}

.inventory-list-title {
    line-height: 1.25;
}

.inventory-list-code-chip {
    margin-bottom: 0;
    max-width: 124px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-list-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.inventory-list-meta .badge {
    font-size: 11px;
    font-weight: 700;
}

.chat-hero-card > .card-body {
    gap: 4px;
}

.chat-room-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chat-room-btn {
    white-space: nowrap;
}

.chat-thread-card .card-body {
    gap: 10px;
}

.chat-message-list {
    gap: 10px;
}

.chat-message {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8e2ee;
    background: #f5f8fc;
}

.chat-message--self {
    margin-left: auto;
    border-color: #b8e7c8;
    background: #ebfff2;
}

.chat-message-meta {
    font-size: 11px;
    color: #61758a;
    line-height: 1.3;
}

.chat-message-text {
    white-space: pre-wrap;
    line-height: 1.4;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chat-quick-replies .btn {
    white-space: nowrap;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.incoming-filters-form {
    display: grid;
    gap: 12px;
}

.incoming-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.incoming-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.incoming-results-header .route-chip {
    margin-bottom: 0;
}

.incoming-results-list {
    gap: 10px;
}

.incoming-list-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.06);
}

.incoming-list-card > .card-body,
.incoming-list-card-body {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.incoming-list-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.incoming-list-top-chips {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

.incoming-list-main {
    min-width: 0;
}

.incoming-list-title {
    line-height: 1.25;
}

.incoming-list-line {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.incoming-list-line--date {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.incoming-list-line--secondary {
    color: #5d7389;
}

.incoming-list-status-chip {
    margin-bottom: 0;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.incoming-list-source-chip {
    margin-bottom: 0;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.incoming-list-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.incoming-list-meta .badge {
    font-size: 11px;
    font-weight: 700;
}

.transactions-month-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.transactions-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.transactions-hero-card > .card-body {
    gap: 4px;
}

.transactions-hero-title {
    font-size: 1.35rem;
    line-height: 1.2;
}

.transactions-hero-card .zapp-hero-copy {
    font-size: 0.95rem;
    line-height: 1.45;
}

.transactions-hero-total {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.transactions-summary-grid {
    display: grid;
    gap: 12px;
}

.transactions-summary-tile {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f6f9fd;
    border: 1px solid rgba(35, 75, 115, 0.08);
}

.transactions-summary-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #66778a;
}

.transactions-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.transactions-summary-value {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2a37;
}

.transactions-summary-meta {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #66778a;
}

.transactions-summary-amount {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #234b73;
}

.transactions-summary-metric {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2a37;
}

.transactions-legend-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #66778a;
}

.transactions-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.transactions-legend-chip--muted {
    background: var(--zapp-muted-bg);
    color: var(--zapp-muted-color);
}

.transactions-legend-chip--success {
    background: #e8f6ed;
    color: #146c43;
}

.transactions-legend-chip--warning {
    background: #fff4db;
    color: #997404;
}

.transactions-legend-chip--danger {
    background: #fde9ea;
    color: #a22a32;
}

.transactions-legend-chip--info {
    background: #e5f5ff;
    color: #055160;
}

.transactions-legend-chip--leave {
    background: #fce7f3;
    color: #9d174d;
}

.transactions-weekday-row,
.transactions-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.transactions-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #66778a;
}

.transactions-calendar-slot {
    position: relative;
    width: 100%;
}

.transactions-calendar-slot::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.transactions-calendar-placeholder,
.transactions-calendar-day {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
}

.transactions-calendar-placeholder {
    border-radius: 10px;
    background: rgba(232, 241, 251, 0.45);
}

.transactions-calendar-day {
    display: grid;
    place-items: center;
    position: absolute;
    padding: 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.transactions-calendar-day:hover,
.transactions-calendar-day:focus,
.transactions-calendar-day:focus-visible,
.transactions-calendar-day:active {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(31, 42, 55, 0.12);
}

.transactions-calendar-day.is-selected {
    box-shadow: 0 0 0 2px rgba(16, 37, 61, 0.18), 0 14px 24px rgba(31, 42, 55, 0.14);
}

.transactions-calendar-day.btn.timekeeping-calendar-day--leave {
    border-color: #f9a8d4;
    background-color: #fce7f3;
    color: #9d174d;
}

.transactions-calendar-number {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.transactions-calendar-meta {
    font-size: 10px;
    line-height: 1.25;
    opacity: 0.88;
}

.transactions-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.transactions-metric {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.transactions-metric strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.timekeeping-day-card {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(55, 123, 80, 0.24);
    box-shadow: 0 14px 28px rgba(21, 74, 42, 0.12);
}

.timekeeping-day-card .card-body {
    padding: 16px;
}

.timekeeping-day-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.timekeeping-day-card-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.timekeeping-day-card-item strong {
    font-size: 1rem;
    line-height: 1.2;
}

.timekeeping-day-card-item--total {
    grid-column: 1 / -1;
}

.transactions-record-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.transactions-detail-page {
    gap: 14px;
}

.transactions-detail-head-body,
.transactions-snapshot-card > .card-body,
.transactions-detail-summary-card > .card-body {
    padding: 16px 18px;
}

.transactions-detail-head-actions .btn {
    min-width: 106px;
}

.transactions-record-list {
    gap: 10px;
}

.transactions-record-card > .card-body,
.transactions-record-card-body {
    padding: 12px 14px;
}

.transactions-record-head {
    gap: 10px;
}

.transactions-record-type,
.transactions-record-meta {
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transactions-record-amount {
    line-height: 1.2;
}

.transactions-snapshot-status {
    font-size: 13px;
    line-height: 1.35;
}

.transactions-snapshot-actions-loading {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.transactions-snapshot-preview {
    font-size: 12px;
}

.transactions-items-table {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.35;
}

.transactions-items-table thead th,
.transactions-items-table tbody td {
    padding: 0.45rem 0.35rem;
    vertical-align: middle;
}

.transactions-items-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c738a;
}

.transactions-item-code {
    margin-top: 2px;
    font-size: 11px;
    color: #6b7a8b;
}

.transactions-sales-rows-scroll {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.transactions-sales-rows-scroll > * {
    flex-shrink: 0;
}

.transactions-sales-rows-scroll--dialog {
    max-height: 48vh;
    max-height: min(48vh, 420px);
}

.transactions-sales-draft-card {
    align-self: start;
}

.transactions-sales-entry-page {
    gap: 16px;
}

.transactions-sales-entry-hero {
    overflow: visible;
}

.transactions-sales-entry-page .transactions-sales-draft-card {
    margin: 0;
}

.transactions-sales-entry-page .transactions-sales-lookup-list {
    position: static;
    max-height: min(360px, 52vh);
    margin-top: 10px !important;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
    scrollbar-gutter: stable;
}

.transactions-sales-lookup-item {
    position: relative;
    display: block;
    min-width: 0;
}

.transactions-sales-lookup-select {
    min-width: 0;
    padding: 9px 92px 9px 10px;
    line-height: 1.25;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 10px;
    background: #ffffff;
}

.transactions-sales-lookup-name {
    margin-top: 2px;
    line-height: 1.2;
}

.transactions-sales-lookup-pills {
    margin-top: 6px;
}

.transactions-sales-lookup-pills .badge {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
}

.transactions-sales-history-action {
    min-width: 0;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

.transactions-sales-lookup-item .transactions-sales-history-action {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.transactions-sales-selected-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(13, 202, 240, 0.3);
    border-radius: 12px;
    background: #f1fbfe;
}

.transactions-sales-entry-page .transactions-sales-draft-actions {
    position: static;
    padding: 0;
    background: transparent;
}

.transactions-sales-entry-page .transactions-sales-size-section {
    padding-top: 2px;
}

.transactions-sales-save-card {
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}

.transactions-sales-draft-card > .card-body {
    border-radius: 14px;
}

.transactions-sales-draft-actions {
    position: sticky;
    top: 0;
    z-index: 5;
    align-self: stretch;
    padding: 8px 0;
    background: linear-gradient(to bottom, #ffffff 72%, rgba(255, 255, 255, 0));
}

.transactions-sales-item-search-shell {
    position: relative;
    z-index: 1;
}

.transactions-sales-item-search-shell:focus-within,
.transactions-sales-item-search-shell:hover {
    z-index: 3;
}

.transactions-sales-lookup-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 4;
    max-height: min(180px, 42dvh);
    margin-top: 0 !important;
    padding: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(13, 27, 42, 0.18);
    scrollbar-gutter: stable;
}

.transactions-sales-lookup-list > * {
    flex-shrink: 0;
}

.transactions-sales-table-wrap {
    max-height: 42vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
}

.transactions-sales-table {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 0;
}

.transactions-sales-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c738a;
}

.transactions-sales-table thead th,
.transactions-sales-table tbody td {
    padding: 0.45rem 0.35rem;
    vertical-align: middle;
}

.transactions-sales-col-index {
    width: 34px;
}

.transactions-sales-col-size {
    width: 54px;
}

.transactions-sales-col-actions {
    width: 88px;
}

.transactions-sales-actions {
    white-space: nowrap;
}

.transactions-icon-action {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.transactions-icon-action i {
    font-size: 12px;
    line-height: 1;
}

.transactions-review-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.transactions-review-metric {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #f8fafc;
}

.transactions-review-list-wrap {
    max-height: 44vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
}

.transactions-review-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.transactions-review-list-item:last-child {
    border-bottom: 0;
}

.dashboard-page {
    gap: 16px;
}

.dashboard-hero-card {
    position: relative;
    overflow: hidden;
}

.dashboard-hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -76px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.dashboard-filter-panel {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

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

.dashboard-filter-grid .form-select {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: #17314f;
}

.dashboard-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-filter-note {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-metric-grid,
.dashboard-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-metric-card,
.dashboard-mini-card,
.dashboard-list-card {
    border-radius: 18px;
    border: 1px solid rgba(35, 75, 115, 0.08);
    background: #f8fbff;
}

.dashboard-metric-card {
    min-height: 144px;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 4px;
}

.dashboard-metric-card--primary {
    background: linear-gradient(150deg, #17314f 0%, #2c5e90 100%);
    color: #ffffff;
}

.dashboard-metric-card--primary .dashboard-metric-copy,
.dashboard-metric-card--primary .dashboard-metric-label {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-metric-card--info {
    background: #eef8fd;
    border-color: #c4e8f5;
}

.dashboard-metric-card--success {
    background: #edf9f1;
    border-color: #c9ead4;
}

.dashboard-metric-card--warning {
    background: #fff7e8;
    border-color: #ffe0ab;
}

.dashboard-metric-label,
.dashboard-mini-label,
.dashboard-trend-weekday,
.dashboard-trend-day,
.dashboard-category-copy,
.dashboard-list-copy,
.dashboard-metric-copy,
.dashboard-mini-copy {
    color: #607080;
}

.dashboard-metric-label,
.dashboard-mini-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-metric-value,
.dashboard-mini-value {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #17314f;
}

.dashboard-metric-copy,
.dashboard-mini-copy,
.dashboard-list-copy,
.dashboard-category-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-trend-chart {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: end;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.dashboard-trend-point {
    flex: 1 0 56px;
    min-width: 56px;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.dashboard-trend-amount {
    min-height: 24px;
    font-size: 10px;
    font-weight: 700;
    color: #607080;
    text-align: center;
    line-height: 1.2;
}

.dashboard-trend-bar-shell {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 4px 0;
}

.dashboard-trend-bar {
    width: 100%;
    border-radius: 999px 999px 14px 14px;
    background: linear-gradient(180deg, #5ea2e1 0%, #2e608f 100%);
    box-shadow: 0 14px 26px rgba(39, 82, 123, 0.18);
}

.dashboard-trend-bar.is-empty {
    background: #d7e2ee;
    box-shadow: none;
}

.dashboard-trend-weekday,
.dashboard-trend-day {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-trend-day {
    font-size: 11px;
    color: #17314f;
}

.dashboard-category-list {
    display: grid;
    gap: 12px;
}

.dashboard-category-row {
    display: grid;
}

.dashboard-category-label,
.dashboard-category-amount {
    margin: 0;
    font-weight: 700;
    color: #17314f;
}

.dashboard-category-meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e3ebf4;
    overflow: hidden;
}

.dashboard-category-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d5f8f 0%, #72b7f1 100%);
}

.dashboard-size-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-size-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #234b73;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-mini-card {
    min-height: 126px;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 4px;
}

.dashboard-mini-card--warning {
    background: #fff7e8;
    border-color: #ffe0ab;
}

.dashboard-mini-card--success {
    background: #edf9f1;
    border-color: #c9ead4;
}

.dashboard-list-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-list-link:hover,
.dashboard-list-link:focus,
.dashboard-list-link:focus-visible {
    color: inherit;
}

.dashboard-list-card {
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(31, 42, 55, 0.05);
}

.dashboard-quick-link-card .route-chip {
    margin-bottom: 0;
}

.repeat-polling-page {
    gap: 16px;
}

.repeat-polling-hero-meta {
    color: rgba(255, 255, 255, 0.76);
}

.repeat-polling-loading,
.repeat-polling-empty {
    min-height: 180px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.repeat-polling-list-card {
    box-shadow: 0 10px 24px rgba(31, 42, 55, 0.06);
}

.repeat-polling-list-card-body {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
}

.repeat-polling-list-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #607080;
}

.repeat-polling-list-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.repeat-polling-list-meta .badge {
    font-size: 11px;
    font-weight: 700;
}

.repeat-polling-progress-chip {
    margin-bottom: 0;
}

.repeat-polling-vote-card .card-body {
    padding: 16px;
}

.repeat-polling-swipe-wrap {
    position: relative;
    display: grid;
    gap: 10px;
    touch-action: pan-y;
    user-select: none;
}

.repeat-polling-swipe-indicator {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.repeat-polling-swipe-indicator.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.repeat-polling-swipe-indicator--like {
    left: 10px;
    color: #198754;
}

.repeat-polling-swipe-indicator--pass {
    right: 10px;
    color: #dc3545;
}

.repeat-polling-image-shell {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(35, 75, 115, 0.1);
    background: #ffffff;
    overflow: hidden;
}

.repeat-polling-image-shell--placeholder {
    background: #f4f7fb;
    color: #607080;
    font-weight: 700;
}

.repeat-polling-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.repeat-polling-swipe-hint {
    color: #607080;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.repeat-polling-item-meta {
    display: grid;
    gap: 10px;
}

.repeat-polling-item-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #607080;
}

.repeat-polling-item-value {
    color: #17314f;
    font-weight: 700;
    line-height: 1.35;
}

.repeat-polling-current-status {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
}

.repeat-polling-action-stack {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.repeat-polling-actions,
.repeat-polling-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.repeat-polling-actions .btn,
.repeat-polling-nav-actions .btn {
    width: 100%;
}

.repeat-polling-complete {
    text-align: center;
}

.repeat-polling-review-list {
    display: grid;
    gap: 10px;
}

.repeat-polling-review-item {
    width: 100%;
    border: 1px solid rgba(35, 75, 115, 0.12);
    border-radius: 16px;
    background: #f8fbff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.repeat-polling-review-item:hover,
.repeat-polling-review-item:focus,
.repeat-polling-review-item:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(31, 42, 55, 0.1);
    outline: none;
}

.repeat-polling-review-item.is-active {
    box-shadow: 0 0 0 2px rgba(35, 75, 115, 0.2);
}

.repeat-polling-review-order {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fb;
    color: #234b73;
    font-size: 12px;
    font-weight: 700;
}

.repeat-polling-review-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.repeat-polling-review-title {
    color: #17314f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.repeat-polling-review-copy {
    color: #607080;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repeat-polling-review-status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.repeat-polling-decision--like {
    border-color: #b8e0c9;
    background: #edf9f1;
    color: #155f36;
}

.repeat-polling-decision--pass {
    border-color: #f0c6cb;
    background: #fff0f0;
    color: #9c2934;
}

.repeat-polling-decision--pending {
    border-color: #d4dee9;
    background: #eef4fb;
    color: #526070;
}

@media (min-width: 540px) {
    .repeat-polling-item-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 769px) {
    body {
        padding: 24px 16px 40px;
    }

    .app-shell,
    .shell {
        border-radius: 16px;
    }
}

@media (max-width: 360px) {
    .register-page {
        padding-bottom: 82px;
    }

    .register-page .login-form-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .register-page .login-submit-btn {
        position: fixed;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        left: 16px;
        z-index: 5;
        width: auto !important;
        margin-top: 0;
    }

    .dashboard-filter-grid,
    .dashboard-filter-actions,
    .dashboard-metric-grid,
    .dashboard-snapshot-grid,
    .repeat-polling-actions,
    .repeat-polling-nav-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-trend-chart {
        gap: 8px;
    }

    .dashboard-trend-bar-shell {
        min-height: 104px;
    }

    .shell-drawer {
        width: calc(100vw - 22px);
        padding: 22px 14px calc(22px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 24px 24px 0;
    }

    .shell-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .shell-session-actions {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        min-width: 0;
    }

    .shell-status {
        min-height: 28px;
        max-width: 104px;
        padding: 0 8px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        justify-self: auto;
    }

    .shell-menu-btn,
    .zapp-shell-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .shell-kicker {
        font-size: 10px;
    }

    .shell-page-title {
        margin: 0;
        font-size: 16px;
    }

    .shell-page-copy {
        display: none;
    }

    .shell-session-actions .btn {
        padding: 0.28rem 0.6rem;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .zapp-card > .card-body {
        padding: 20px;
    }

    .zapp-metric-value {
        font-size: 1.625rem;
    }

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

@media (max-width: 430px) {
    .zapp-ngdialog--sales-review.ngdialog.ngdialog-theme-default .ngdialog-content {
        width: min(98vw, 560px);
        margin: 3vh auto;
        max-height: 94vh;
        max-height: 94dvh;
        max-height: calc(100vh - 6vh - 12px);
        max-height: calc(100dvh - 6vh - 12px);
    }

    .zapp-ngdialog--sales-review.ngdialog.ngdialog-theme-default {
        padding-top: max(6px, env(safe-area-inset-top, 0px));
        padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    }

    .zapp-dialog-sheet--sales-review {
        gap: 12px;
        padding: 14px;
        max-height: none;
    }

    .transactions-sales-rows-scroll--dialog {
        max-height: 46vh;
        max-height: min(46vh, 360px);
    }

    .transactions-sales-lookup-list {
        max-height: 260px;
    }

    .transactions-sales-table-wrap {
        max-height: 38vh;
    }

    .transactions-sales-table {
        font-size: 11px;
    }

    .transactions-review-list-wrap {
        max-height: 40vh;
    }

    .transactions-review-list-item {
        padding: 8px 10px;
    }

    .transactions-sales-table thead th,
    .transactions-sales-table tbody td {
        padding: 0.38rem 0.28rem;
    }

    .transactions-sales-col-index {
        width: 30px;
    }

    .transactions-sales-col-size {
        width: 48px;
    }

    .transactions-sales-col-actions {
        width: 74px;
    }

    .transactions-icon-action {
        width: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .transactions-detail-head-body,
    .transactions-snapshot-card > .card-body,
    .transactions-detail-summary-card > .card-body,
    .transactions-record-card > .card-body,
    .transactions-record-card-body {
        padding: 12px;
    }

    .transactions-detail-head-row {
        display: grid !important;
        gap: 10px;
    }

    .transactions-detail-head-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    .transactions-detail-head-actions .btn {
        min-width: 0;
        min-height: 34px;
        font-size: 12px;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .transactions-detail-page .zapp-panel-chip {
        margin-bottom: 4px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .transactions-detail-page h2.h5 {
        font-size: 1rem;
    }

    .transactions-detail-page .text-body-secondary {
        font-size: 12px;
        line-height: 1.3;
    }

    .transactions-metrics {
        margin-top: 10px;
        gap: 8px;
    }

    .transactions-metric {
        padding: 9px 10px;
        gap: 4px;
    }

    .transactions-metric strong {
        font-size: 0.84rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .transactions-snapshot-actions .btn {
        min-height: 36px;
        font-size: 12px;
    }

    .transactions-record-head {
        gap: 8px;
    }

    .transactions-record-side {
        max-width: 48%;
    }

    .transactions-record-amount {
        font-size: 14px;
    }

    .transactions-record-type,
    .transactions-record-meta {
        font-size: 11px;
    }

    .transactions-items-table {
        font-size: 11px;
    }

    .transactions-items-table thead th,
    .transactions-items-table tbody td {
        padding: 0.34rem 0.28rem;
    }

    .inventory-filters-card .card-body,
    .inventory-results-card .card-body {
        padding: 14px;
    }

    .inventory-filters-form {
        gap: 10px;
    }

    .inventory-filters-form .form-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .inventory-filters-form .form-control {
        font-size: 13px;
        min-height: 38px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .inventory-filters-form .form-select {
        font-size: 13px;
        min-height: 38px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .inventory-filter-actions {
        gap: 8px;
    }

    .inventory-filter-actions .btn {
        min-height: 38px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 13px;
    }

    .inventory-results-header {
        margin-bottom: 10px !important;
    }

    .inventory-results-header h2 {
        font-size: 16px;
    }

    .inventory-results-header .text-body-secondary {
        font-size: 12px;
        line-height: 1.3;
    }

    .inventory-results-header .route-chip {
        padding: 4px 8px;
        font-size: 11px;
    }

    .inventory-list-card > .card-body,
    .inventory-list-card-body {
        padding: 10px 12px;
        gap: 6px;
    }

    .inventory-list-title {
        font-size: 14px;
    }

    .inventory-list-code-chip {
        max-width: 108px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .chat-room-btn {
        min-height: 34px;
        font-size: 12px;
        padding: 0.32rem 0.6rem;
    }

    .chat-thread-card .card-body {
        gap: 8px;
    }

    .chat-message {
        max-width: 90%;
        padding: 8px 10px;
    }

    .chat-message-meta {
        font-size: 10px;
    }

    .chat-message-text {
        font-size: 13px;
    }

    .chat-composer .form-control,
    .chat-composer .btn {
        min-height: 38px;
        font-size: 13px;
    }

    .inventory-list-meta .badge {
        font-size: 10px;
        padding: 0.28rem 0.45rem;
    }

    .incoming-filters-card .card-body,
    .incoming-results-card .card-body {
        padding: 14px;
    }

    .incoming-filters-form {
        gap: 10px;
    }

    .incoming-filters-form .form-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .incoming-filters-form .form-control,
    .incoming-filters-form .form-select {
        font-size: 13px;
        min-height: 38px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .incoming-filter-grid,
    .incoming-filter-actions {
        gap: 8px;
    }

    .incoming-filter-actions .btn {
        min-height: 38px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 13px;
    }

    .incoming-results-header {
        margin-bottom: 10px !important;
    }

    .incoming-results-header h2 {
        font-size: 16px;
    }

    .incoming-results-header .text-body-secondary {
        font-size: 12px;
        line-height: 1.3;
    }

    .incoming-results-header .route-chip {
        padding: 4px 8px;
        font-size: 11px;
    }

    .incoming-list-card > .card-body,
    .incoming-list-card-body {
        padding: 10px 12px;
        gap: 6px;
    }

    .incoming-list-title {
        font-size: 14px;
    }

    .incoming-list-line {
        font-size: 11px;
    }

    .incoming-list-status-chip {
        font-size: 10px;
    }

    .incoming-list-top-chips {
        gap: 4px;
    }

    .incoming-list-source-chip {
        font-size: 10px;
        padding: 0.28rem 0.45rem;
    }

    .incoming-list-meta .badge {
        font-size: 10px;
        padding: 0.28rem 0.45rem;
    }

    .dashboard-page {
        gap: 12px;
    }

    .dashboard-page .zapp-card > .card-body {
        padding: 14px;
    }

    .dashboard-hero-card .h3 {
        font-size: 1.22rem;
    }

    .dashboard-hero-card .zapp-eyebrow {
        font-size: 10px;
    }

    .dashboard-hero-card .zapp-hero-copy,
    .dashboard-hero-meta {
        font-size: 12px;
        line-height: 1.35;
    }

    .dashboard-hero-card .route-chip {
        padding: 4px 8px;
        font-size: 10px;
    }

    .dashboard-filter-panel {
        gap: 8px;
        margin-top: 2px;
    }

    .dashboard-filter-grid,
    .dashboard-filter-actions,
    .dashboard-metric-grid,
    .dashboard-snapshot-grid {
        gap: 8px;
    }

    .dashboard-filter-grid .form-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .dashboard-filter-grid .form-select {
        min-height: 38px;
        font-size: 13px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .dashboard-filter-actions .btn {
        min-height: 36px;
        font-size: 12px;
        padding-top: 0.32rem;
        padding-bottom: 0.32rem;
    }

    .dashboard-filter-note {
        font-size: 11px;
        line-height: 1.35;
    }

    .dashboard-metric-card,
    .dashboard-mini-card,
    .dashboard-list-card {
        border-radius: 14px;
    }

    .dashboard-metric-card,
    .dashboard-mini-card {
        min-height: 0;
        padding: 12px;
        gap: 3px;
    }

    .dashboard-list-card {
        padding: 10px 12px;
    }

    .dashboard-metric-label,
    .dashboard-mini-label {
        font-size: 10px;
    }

    .dashboard-metric-value,
    .dashboard-mini-value {
        font-size: clamp(1.08rem, 4.6vw, 1.5rem);
    }

    .dashboard-metric-copy,
    .dashboard-mini-copy,
    .dashboard-list-copy,
    .dashboard-category-copy {
        font-size: 11px;
        line-height: 1.35;
    }

    .dashboard-size-chip-list {
        gap: 6px;
    }

    .dashboard-size-chip {
        min-height: 28px;
        padding: 0 9px;
        font-size: 11px;
    }

    .dashboard-category-list {
        gap: 8px;
    }

    .dashboard-category-label,
    .dashboard-category-amount {
        font-size: 13px;
    }

    .dashboard-category-meter {
        height: 8px;
    }

    .dashboard-trend-chart {
        gap: 6px;
    }

    .dashboard-trend-point {
        flex-basis: 48px;
        min-width: 48px;
        gap: 4px;
    }

    .dashboard-trend-amount {
        font-size: 9px;
        min-height: 20px;
    }

    .dashboard-trend-bar-shell {
        min-height: 92px;
    }

    .dashboard-trend-weekday,
    .dashboard-trend-day {
        font-size: 9px;
    }

    .delivery-filters-card .card-body,
    .delivery-results-card .card-body {
        padding: 14px;
    }

    .delivery-filters-form {
        gap: 10px;
    }

    .delivery-filters-form .form-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .delivery-filters-form .form-control,
    .delivery-filters-form .form-select {
        font-size: 13px;
        min-height: 38px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .delivery-filter-grid,
    .delivery-filter-actions {
        gap: 8px;
    }

    .delivery-filter-actions .btn {
        min-height: 38px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 13px;
    }

    .delivery-results-header {
        margin-bottom: 10px !important;
    }

    .delivery-results-header h2 {
        font-size: 16px;
    }

    .delivery-results-header .text-body-secondary {
        font-size: 12px;
        line-height: 1.3;
    }

    .delivery-results-header .route-chip {
        padding: 4px 8px;
        font-size: 11px;
    }

    .delivery-list-card > .card-body,
    .delivery-list-card-body {
        padding: 10px 12px;
        gap: 6px;
    }

    .delivery-list-title {
        font-size: 14px;
    }

    .delivery-list-line {
        font-size: 11px;
    }

    .delivery-list-status-chip {
        font-size: 10px;
    }

    .delivery-list-meta .badge {
        font-size: 10px;
        padding: 0.28rem 0.45rem;
    }

    .shell-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .shell-session-actions {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        min-width: 0;
    }

    .shell-status {
        min-height: 28px;
        max-width: 124px;
        padding: 0 9px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shell-menu-btn,
    .zapp-shell-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .shell-kicker {
        font-size: 10px;
    }

    .shell-page-title {
        margin: 0;
        font-size: 16px;
        line-height: 1.2;
    }

    .shell-page-copy {
        display: none;
    }

    .shell-session-actions .btn {
        padding: 0.28rem 0.6rem;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

.profile-page {
    gap: 16px;
}

.profile-page .zapp-card > .card-body {
    padding: 16px;
}

.profile-page .profile-hero-card > .card-body {
    gap: 6px;
    padding: 18px 16px;
}

.profile-page .profile-avatar-card {
    display: grid;
    gap: 12px;
}

.profile-page .profile-avatar-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.profile-page .profile-avatar-shell {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8f1fb;
    border: 2px solid rgba(35, 75, 115, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-page .profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page .profile-avatar-placeholder {
    font-size: 1.35rem;
    font-weight: 700;
    color: #234b73;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-page .profile-avatar-meta {
    min-width: 0;
}

.profile-page .profile-upload-panel {
    display: grid;
    gap: 8px;
}

.profile-page .profile-upload-panel .btn {
    min-height: 40px;
}

.profile-page .zapp-hero-copy {
    font-size: 0.92rem;
    line-height: 1.45;
}

.profile-page .zapp-context-card .card-body {
    gap: 6px;
    padding: 12px;
}

.profile-page .zapp-context-kicker {
    font-size: 11px;
}

.profile-page .h5 {
    font-size: 1rem;
}

.profile-page .alert {
    padding: 0.62rem 0.75rem;
    font-size: 0.88rem;
}

@media (max-width: 430px) {
    .profile-page .zapp-card > .card-body {
        padding: 12px;
    }

    .profile-page .profile-hero-card > .card-body {
        padding: 14px 12px;
    }

    .profile-page .profile-avatar-preview {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-page .profile-avatar-shell {
        width: 72px;
        height: 72px;
    }

    .profile-page .profile-avatar-placeholder {
        font-size: 1.1rem;
    }

    .profile-page .h3 {
        font-size: 1.18rem;
    }

    .profile-page .h5 {
        font-size: 0.95rem;
    }

    .profile-page .zapp-context-card .card-body {
        gap: 5px;
        padding: 10px;
    }

    .profile-page .zapp-context-card h3,
    .profile-page .zapp-context-card p {
        font-size: 12px;
        line-height: 1.35;
    }

    .profile-page .alert {
        font-size: 12px;
        line-height: 1.35;
    }
}
