            :root {
                --app-bg: #f5f7fa;
                --app-ink: #17202a;
                --app-muted: #6b7280;
                --app-line: #dfe5ee;
                --app-panel: #ffffff;
                --app-accent: #198f7a;
                --app-accent-strong: #116857;
                --app-warm: #f59f00;
            }

            body {
                min-height: 100vh;
                color: var(--app-ink);
                background:
                    linear-gradient(135deg, rgba(25, 143, 122, .12), rgba(245, 159, 0, .10) 34%, transparent 62%),
                    var(--app-bg);
                font-size: 15px;
                letter-spacing: 0;
            }

            a {
                color: var(--app-accent-strong);
            }

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

            .app-navbar {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
                padding: 1rem 1.5rem;
                border-bottom: 1px solid rgba(23, 32, 42, .08);
                background: rgba(255, 255, 255, .88);
            }

            .app-brand {
                display: flex;
                align-items: center;
                gap: .75rem;
                color: var(--app-ink);
                font-weight: 700;
            }

            .app-brand:hover {
                color: var(--app-ink);
                text-decoration: none;
            }

            .app-brand-mark {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 2.25rem;
                height: 2.25rem;
                color: #fff;
                background: var(--app-accent);
                border-radius: 8px;
            }

            .app-page {
                max-width: 1280px;
                margin: 0 auto;
                padding: 2rem 1.5rem 3rem;
            }

            .app-page-header {
                display: flex;
                align-items: flex-end;
                justify-content: space-between;
                gap: 1rem;
                margin-bottom: 1.5rem;
            }

            .app-eyebrow {
                margin-bottom: .25rem;
                color: var(--app-accent-strong);
                font-size: .75rem;
                font-weight: 700;
                text-transform: uppercase;
            }

            .app-title {
                margin: 0;
                font-size: 1.9rem;
                font-weight: 700;
            }

            .app-subtitle {
                margin: .45rem 0 0;
                color: var(--app-muted);
            }

            .app-actions {
                display: flex;
                flex-wrap: wrap;
                gap: .5rem;
            }

            .btn {
                border-radius: 7px;
                font-weight: 600;
            }

            .btn-primary {
                border-color: var(--app-accent);
                background: var(--app-accent);
            }

            .btn-primary:hover,
            .btn-primary:focus {
                border-color: var(--app-accent-strong);
                background: var(--app-accent-strong);
            }

            .btn-success {
                border-color: var(--app-accent);
                background: var(--app-accent);
            }

            .metric-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 1rem;
                margin-bottom: 1.25rem;
            }

            .metric-panel,
            .content-panel,
            .form-panel {
                border: 1px solid var(--app-line);
                border-radius: 8px;
                background: var(--app-panel);
                box-shadow: 0 16px 40px rgba(23, 32, 42, .08);
            }

            .metric-panel {
                padding: 1rem;
            }

            .metric-label {
                margin-bottom: .35rem;
                color: var(--app-muted);
                font-size: .78rem;
                font-weight: 700;
                text-transform: uppercase;
            }

            .metric-value {
                font-size: 1.65rem;
                font-weight: 700;
            }

            .content-panel-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
                padding: 1rem 1.25rem;
                border-bottom: 1px solid var(--app-line);
            }

            .content-panel-title {
                margin: 0;
                font-size: 1rem;
                font-weight: 700;
            }

            .invoice-table {
                margin-bottom: 0;
            }

            .invoice-table thead th {
                border-top: 0;
                border-bottom: 1px solid var(--app-line);
                color: var(--app-muted);
                font-size: .75rem;
                font-weight: 700;
                text-transform: uppercase;
            }

            .invoice-table td {
                vertical-align: middle;
            }

            .customer-main {
                font-weight: 700;
            }

            .customer-meta,
            .detail-label {
                color: var(--app-muted);
                font-size: .82rem;
            }

            .status-pill {
                display: inline-flex;
                align-items: center;
                gap: .35rem;
                padding: .28rem .55rem;
                border-radius: 999px;
                color: #374151;
                background: #eef2f7;
                font-size: .78rem;
                font-weight: 700;
            }

            .status-pill-ready {
                color: #0f5132;
                background: #dff3e8;
            }

            .status-pill-missing {
                color: #664d03;
                background: #fff1c2;
            }

            .details-row td {
                background: #f9fbfd;
            }

            .detail-grid {
                display: grid;
                grid-template-columns: repeat(6, minmax(0, 1fr));
                gap: 1rem;
            }

            .detail-value {
                font-weight: 700;
            }

            .history-block {
                margin-top: 1.25rem;
                padding-top: 1rem;
                border-top: 1px solid var(--app-line);
            }

            .history-title {
                margin-bottom: .75rem;
                font-size: .9rem;
                font-weight: 700;
            }

            .history-table {
                margin-bottom: 0;
                background: #fff;
            }

            .history-table th {
                color: var(--app-muted);
                font-size: .72rem;
                text-transform: uppercase;
            }

            .empty-state {
                padding: 3rem 1.5rem;
                text-align: center;
            }

            .empty-state-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 3rem;
                height: 3rem;
                margin-bottom: .8rem;
                color: var(--app-accent-strong);
                background: #dff3e8;
                border-radius: 8px;
            }

            .form-panel {
                padding: 1.5rem;
            }

            .login-page {
                max-width: 480px;
            }

            .login-page .app-page-header {
                justify-content: flex-start;
            }

            .amount-choice-grid {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: .75rem;
            }

            .amount-choice {
                display: flex;
                align-items: center;
                gap: .75rem;
                min-height: 4rem;
                margin: 0;
                padding: .85rem 1rem;
                border: 1px solid var(--app-line);
                border-radius: 8px;
                background: #fff;
                cursor: pointer;
            }

            .amount-choice:hover {
                border-color: var(--app-accent);
            }

            .amount-choice-input {
                flex: 0 0 auto;
                margin: 0;
            }

            .amount-choice-main {
                display: block;
                font-weight: 700;
                line-height: 1.2;
            }

            .amount-choice-meta {
                display: block;
                margin-top: .15rem;
                color: var(--app-muted);
                font-size: .82rem;
                line-height: 1.2;
            }

            @media (max-width: 991px) {
                .app-page-header,
                .app-navbar {
                    align-items: flex-start;
                    flex-direction: column;
                }

                .metric-grid,
                .detail-grid,
                .amount-choice-grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
            }

            @media (max-width: 575px) {
                .app-page {
                    padding: 1.25rem 1rem 2rem;
                }

                .metric-grid,
                .detail-grid,
                .amount-choice-grid {
                    grid-template-columns: 1fr;
                }

                .app-title {
                    font-size: 1.5rem;
                }
            }
