* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6f8;
    color: #17202a;
    display: flex;
}

.billing-access-page {
    width: 100%;
    min-height: 100vh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, #fff4d8 0, transparent 36%),
        #f4f6f8;
}

.billing-access-card {
    width: min(620px, 100%);
    padding: 38px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 70px rgba(20, 30, 40, .14);
}

.billing-access-card h1 {
    margin: 6px 0 12px;
    font-size: clamp(30px, 5vw, 44px);
}

.billing-access-card > p {
    color: #66707a;
    line-height: 1.6;
}

.billing-lock {
    font-size: 40px;
}

.billing-balance {
    display: grid;
    gap: 5px;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #f2cf8f;
    border-radius: 16px;
    background: #fff9ec;
}

.billing-balance strong {
    font-size: 32px;
}

.billing-balance small,
.billing-security-note {
    color: #737b84;
}

.billing-form {
    display: grid;
    gap: 12px;
    margin: 22px 0 14px;
}

.billing-form label {
    font-weight: 750;
}

.billing-form input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cdd3d9;
    border-radius: 12px;
    font-size: 18px;
}

.billing-error,
.billing-setup-warning {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    color: #7a231c;
    background: #fff0ee;
    border: 1px solid #f2b7b2;
}

.billing-setup-warning {
    color: #684713;
    background: #fff8e8;
    border-color: #f0d28f;
}

.billing-button {
    margin-top: 12px;
    background: #17202a;
    color: white;
}

.approval-primary-button {
    color: #111;
    background: #f5a623;
    border-color: #f5a623;
}

.backup-proof-panel,
.approval-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    padding: 28px;
    margin-bottom: 22px;
    border: 1px solid #bfe6ca;
    border-radius: 20px;
    background: #eefaf2;
    box-shadow: 0 12px 34px rgba(20, 30, 40, .06);
}

.backup-proof-panel h3,
.approval-panel h3 {
    margin: 5px 0 9px;
    font-size: 25px;
}

.backup-proof-panel p,
.approval-panel p {
    margin-bottom: 0;
    color: #59646e;
    line-height: 1.55;
}

.backup-proof-panel dl,
.approval-result-card dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 15px;
    padding: 18px;
    margin: 0;
    border-radius: 14px;
    background: white;
}

.backup-proof-panel dt,
.approval-result-card dt {
    color: #65707a;
    font-weight: 800;
}

.backup-proof-panel dd,
.approval-result-card dd {
    margin: 0;
    font-weight: 800;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.comparison-column {
    padding: 26px;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 34px rgba(20, 30, 40, .06);
}

.comparison-column.after {
    border-color: #f0cb80;
    background: #fffbf2;
}

.comparison-column h3 {
    margin: 5px 0 18px;
    font-size: 26px;
}

.comparison-row {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) 1.3fr;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #e8ebee;
}

.comparison-row span {
    color: #65707a;
    font-weight: 750;
}

.comparison-row strong {
    text-align: right;
}

.approval-form {
    display: grid;
    gap: 16px;
}

.approval-checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 17px;
    border: 1px solid #d7dde2;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    line-height: 1.45;
}

.approval-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: #d88900;
}

.approval-result-card {
    width: min(850px, 100%);
    padding: 38px;
    margin: 0 auto;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(20, 30, 40, .12);
}

.approval-result-card h1 {
    margin: 7px 0;
    font-size: clamp(32px, 5vw, 50px);
}

.approval-result-card > p {
    color: #65707a;
    font-size: 18px;
}

.approval-result-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: #239447;
    font-size: 34px;
    font-weight: 900;
}

.danger-badge {
    padding: 10px 14px;
    color: #8a231b;
    border: 1px solid #edb4ae;
    border-radius: 999px;
    background: #fff0ee;
    font-weight: 900;
}

.external-write-warning {
    padding: 17px 20px;
    margin-bottom: 22px;
    color: #79241d;
    border: 1px solid #edb4ae;
    border-radius: 15px;
    background: #fff0ee;
    font-weight: 800;
    line-height: 1.5;
}

.transaction-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.transaction-flow article {
    padding: 20px;
    border: 1px solid #e0e5e9;
    border-radius: 17px;
    background: white;
}

.transaction-flow article > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #111;
    border-radius: 50%;
    background: #f5a623;
    font-weight: 900;
}

.transaction-flow h3 {
    margin: 12px 0 6px;
}

.transaction-flow p {
    margin: 0;
    color: #65707a;
    line-height: 1.45;
}

.controlled-change-card {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) 1.3fr;
    gap: 28px;
    padding: 28px;
    margin-bottom: 22px;
    border: 1px solid #e0e5e9;
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 38px rgba(20, 30, 40, .07);
}

.controlled-image-preview {
    display: grid;
    min-height: 340px;
    padding: 20px;
    place-items: center;
    border-radius: 16px;
    background: #f5f7f8;
}

.controlled-image-preview img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.controlled-change-card h3 {
    margin: 5px 0 18px;
    font-size: 27px;
}

.controlled-change-card dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 15px;
}

.controlled-change-card dt {
    color: #65707a;
    font-weight: 800;
}

.controlled-change-card dd {
    margin: 0;
    line-height: 1.45;
    font-weight: 700;
}

.automatic-rollback-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 26px;
    margin-bottom: 22px;
    color: white;
    border-radius: 20px;
    background: #17202a;
}

.automatic-rollback-panel h3 {
    margin: 5px 0 8px;
    font-size: 25px;
}

.automatic-rollback-panel p {
    margin: 0;
    color: #c9d0d6;
    line-height: 1.55;
}

.automatic-rollback-panel .protected-tags span {
    color: white;
    background: rgba(255, 255, 255, .1);
}

.final-confirmation-panel {
    padding: 26px;
    margin-bottom: 22px;
    border: 2px solid #e2a2a0;
    border-radius: 20px;
    background: #fff7f6;
}

.critical-confirmation {
    border-color: #e2a2a0;
}

.danger-action-button {
    color: white;
    background: #a92c24;
    border-color: #a92c24;
}

.danger-action-button:hover {
    background: #8e231d;
}

.success-verification-panel {
    padding: 18px;
    margin: 22px 0;
    color: #1d6334;
    border: 1px solid #bfe6ca;
    border-radius: 14px;
    background: #eefaf2;
    line-height: 1.8;
    font-weight: 800;
}

@media (max-width: 640px) {
    .billing-access-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .backup-proof-panel,
    .approval-panel,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .backup-proof-panel,
    .approval-panel,
    .comparison-column,
    .approval-result-card {
        padding: 20px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .comparison-row strong {
        text-align: left;
    }

    .transaction-flow,
    .controlled-change-card,
    .automatic-rollback-panel {
        grid-template-columns: 1fr;
    }

    .controlled-change-card,
    .automatic-rollback-panel,
    .final-confirmation-panel {
        padding: 20px;
    }

    .controlled-change-card dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (min-width: 641px) and (max-width: 1100px) {
    .transaction-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .controlled-change-card,
    .automatic-rollback-panel {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    width: 420px;
    min-height: 100vh;
    background: #0c0d0f;
    color: white;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
}

.logo-icon{
    width:40px;
    height:40px;
    margin:0 auto 12px auto;
}

.logo-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.brand h1 {
    font-size: 19px;
    margin: 0;
    letter-spacing: 1px;
}

.brand span {
    font-size: 12px;
    color: #9aa1aa;
}

nav {
    display: grid;
    gap: 12px;
}

nav a {
    color: #adb5bd;
    text-decoration: none;
    padding: 20px 22px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

nav a:hover,
nav a.active {
    background: #23262b;
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 12px;
    color: #717982;
}

.content {
    min-height: 100vh;
    margin-left: 420px;
    width: calc(100% - 420px);
    max-width: none;
    padding: 42px 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h2 {
    font-size: 34px;
    margin: 3px 0;
}

.topbar p {
    margin: 0;
    color: #6c757d;
}

.eyebrow {
    color: #d88900 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.status {
    background: white;
    padding: 11px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    font-size: 13px;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 7px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.card,
.panel,
.module {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .06);
}

.card {
    padding: 22px;
}

.card span,
.card small {
    color: #737b84;
}

.card strong {
    display: block;
    font-size: 34px;
    margin: 12px 0 6px;
}

.card small {
    font-size: 12px;
}

.panel {
    padding: 28px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 22px;
}

.panel h3 {
    margin: 4px 0 10px;
    font-size: 24px;
}

.panel p {
    color: #66707a;
    line-height: 1.6;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress {
    height: 12px;
    background: #e8ebee;
    border-radius: 20px;
    overflow: hidden;
}

.progress-value {
    width: 25%;
    height: 100%;
    background: #f5a623;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module {
    padding: 24px;
}

.module h3 {
    margin-top: 0;
}

.module p {
    min-height: 50px;
    color: #6f7780;
    line-height: 1.5;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #eceff2;
    color: #838b94;
}

@media (max-width: 1000px) {
    .cards,
    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel {
        grid-template-columns: 1fr;
    }
}

.batch-inline-action {
    margin: 10px 0 14px;
}

.batch-inline-action .action-button {
    width: 100%;
}

.preparation-banner,
.final-authorization-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 18px;
}

.preparation-banner {
    border: 1px solid #bfe6ca;
    background: #eefaf2;
}

.preparation-banner > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preparation-banner h3,
.final-authorization-panel h3 {
    margin: 4px 0 7px;
}

.preparation-banner p,
.final-authorization-panel p {
    margin-bottom: 0;
}

.preparation-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #fff;
    border-radius: 50%;
    background: #2d9b55;
    font-size: 24px;
    font-weight: 900;
    place-items: center;
}

.preparation-metrics {
    margin-bottom: 20px;
}

.preparation-action-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.preparation-action-list > div {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    background: #fff;
}

.preparation-action-list span {
    display: grid;
    width: 32px;
    height: 32px;
    color: #111;
    border-radius: 50%;
    background: #f5a623;
    font-weight: 900;
    place-items: center;
}

.preparation-action-list p {
    margin: 0;
    line-height: 1.5;
}

.final-authorization-panel {
    color: #f4f6f8;
    background: #15191e;
}

.final-authorization-panel p {
    max-width: 850px;
    color: #c7cdd3;
    line-height: 1.6;
}

.blocked-action {
    flex: 0 0 auto;
    padding: 12px 15px;
    color: #8c2d20;
    border-radius: 999px;
    background: #ffe4df;
    font-weight: 900;
}

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

.preflight-result {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: 18px;
}

.preflight-result.is-ready {
    border-color: #bfe6ca;
    background: #eefaf2;
}

.preflight-result.is-blocked {
    border-color: #f1d48e;
    background: #fff8e8;
}

.preflight-result-icon {
    display: grid;
    width: 52px;
    height: 52px;
    color: #fff;
    border-radius: 50%;
    background: #2d9b55;
    font-size: 26px;
    font-weight: 900;
    place-items: center;
}

.preflight-result.is-blocked .preflight-result-icon {
    background: #d88900;
}

.preflight-result h3 {
    margin: 4px 0 7px;
}

.preflight-result p {
    margin-bottom: 0;
}

.preflight-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.preflight-checks article {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e6ea;
    border-radius: 13px;
    background: #fff;
}

.preflight-checks article > span {
    display: grid;
    width: 32px;
    height: 32px;
    color: #fff;
    border-radius: 50%;
    background: #2d9b55;
    font-weight: 900;
    place-items: center;
}

.preflight-checks article.check-fail > span {
    background: #c94c3b;
}

.preflight-checks p {
    margin: 5px 0 0;
    color: #65707a;
    line-height: 1.45;
}

.preflight-blockers {
    border-color: #f1d48e;
    background: #fffaf0;
}

.preflight-blockers ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
    margin-bottom: 0;
}

.final-authorization-form {
    display: grid;
    flex: 0 1 410px;
    gap: 8px;
    padding: 18px;
    color: #15191e;
    border-radius: 14px;
    background: #fff;
}

.final-authorization-form label {
    font-weight: 800;
}

.final-authorization-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd3d9;
    border-radius: 9px;
    font: inherit;
}

.final-authorization-form small {
    color: #65707a;
    text-align: center;
}

.authorization-result-card {
    max-width: 980px;
    padding: 34px;
    margin: 24px auto;
    border: 1px solid #dce2e7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(20, 30, 40, .1);
}

.authorization-result-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    color: #fff;
    border-radius: 50%;
    background: #2d9b55;
    font-size: 32px;
    font-weight: 900;
    place-items: center;
}

.authorization-result-card h1 {
    margin: 5px 0 10px;
}

.authorization-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.authorization-details > div {
    padding: 15px;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    background: #f7f9fa;
}

.authorization-details dt {
    color: #65707a;
    font-weight: 800;
}

.authorization-details dd {
    margin: 6px 0 0;
    font-weight: 900;
}

.authorization-next {
    padding: 18px;
    margin-bottom: 22px;
    color: #f4f6f8;
    border-radius: 14px;
    background: #15191e;
}

.authorization-next p {
    margin: 7px 0 0;
    color: #c7cdd3;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .preparation-banner,
    .final-authorization-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .preparation-banner > div {
        align-items: flex-start;
    }

    .blocked-action {
        text-align: center;
    }

    .preflight-actions,
    .preflight-result {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .preflight-actions {
        flex-direction: column;
    }

    .preflight-actions .action-button,
    .preflight-actions .blocked-action {
        width: 100%;
    }

    .preflight-checks {
        grid-template-columns: 1fr;
    }

    .final-authorization-form {
        flex-basis: auto;
    }

    .authorization-details {
        grid-template-columns: 1fr;
    }
}

/* Bloque 4: procesamiento seguro por lotes */
.batch-alert {
    padding: 15px 18px;
    margin-bottom: 18px;
    border: 1px solid;
    border-radius: 14px;
    font-weight: 800;
}

.batch-success {
    color: #216c3b;
    border-color: #bfe6ca;
    background: #eefaf2;
}

.batch-error {
    color: #9b2f25;
    border-color: #f0c4bc;
    background: #fff3f1;
}

.batch-hero {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 28px;
    padding: 34px;
    margin-bottom: 22px;
    color: #fff;
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 166, 35, .24), transparent 34%),
        linear-gradient(135deg, #17191c, #282d33);
    box-shadow: 0 18px 45px rgba(21, 26, 31, .15);
}

.batch-hero h3 {
    margin: 5px 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    letter-spacing: -.04em;
}

.batch-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #cbd1d6;
    line-height: 1.65;
}

.batch-mode-card {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
}

.batch-mode-card span,
.batch-mode-card small {
    color: #bfc6cc;
}

.batch-mode-card strong {
    color: #f5a623;
    font-size: 22px;
}

.batch-metrics {
    margin-bottom: 22px;
}

.batch-panel {
    padding: 28px;
    margin-bottom: 22px;
    border: 1px solid #e1e5e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(28, 35, 42, .07);
}

.batch-size-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.batch-size-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e0e5e9;
    border-radius: 17px;
    background: #f8f9fa;
}

.batch-size-card:focus-within,
.batch-size-card:hover {
    border-color: #e4ae51;
    box-shadow: 0 10px 24px rgba(245, 166, 35, .12);
}

.batch-size-number {
    color: #d88900;
    font-size: 34px;
    font-weight: 950;
}

.batch-size-card strong {
    font-size: 18px;
}

.batch-size-card small {
    min-height: 34px;
    color: #69737c;
}

.batch-size-card .action-button {
    width: 100%;
    margin-top: 8px;
}

.batch-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.batch-record {
    padding: 22px;
    border: 1px solid #e0e5e9;
    border-radius: 17px;
    background: #fbfcfc;
}

.batch-record-header,
.batch-record-summary,
.batch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.batch-id {
    color: #d88900;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.batch-record h4 {
    margin: 5px 0;
    font-size: 22px;
}

.batch-status {
    padding: 8px 11px;
    color: #815700;
    border-radius: 999px;
    background: #fff0cf;
    font-size: 12px;
    font-weight: 900;
}

.batch-record-summary {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
    margin-top: 15px;
    border-top: 1px solid #e7eaed;
    border-bottom: 1px solid #e7eaed;
}

.batch-record-summary span {
    padding: 7px 10px;
    color: #56616a;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 750;
}

.batch-products {
    display: grid;
    gap: 8px;
    padding: 16px 0;
}

.batch-products > div {
    display: grid;
    grid-template-columns: minmax(130px, .5fr) 1.5fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
}

.batch-products span,
.batch-products small {
    color: #68727b;
}

.batch-products small {
    font-weight: 800;
}

.batch-more {
    margin: 5px 0 0;
    color: #68727b;
    text-align: center;
}

.batch-diagnostic-link {
    display: block;
    padding: 9px 12px;
    color: #9a6500;
    border-radius: 10px;
    background: #fff7e6;
    font-weight: 850;
    text-decoration: none;
}

.batch-diagnostic-link:hover,
.batch-diagnostic-link:focus-visible {
    color: #593b00;
    background: #ffedc7;
}

.batch-product-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.batch-review-link {
    display: block;
    padding: 9px 12px;
    color: #23693b;
    border-radius: 10px;
    background: #eaf8ef;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.batch-review-link:hover,
.batch-review-link:focus-visible {
    color: #174827;
    background: #d7f1e0;
}

.batch-actions {
    justify-content: flex-end;
}

.batch-empty {
    padding: 45px 20px;
    margin-top: 20px;
    color: #68727b;
    text-align: center;
    border: 1px dashed #cbd2d8;
    border-radius: 16px;
    background: #fafbfb;
}

.batch-empty span {
    color: #f5a623;
    font-size: 40px;
}

.batch-empty h4 {
    margin: 12px 0 5px;
    color: #252b30;
    font-size: 21px;
}

.review-summary {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    padding: 30px;
    margin-bottom: 16px;
    border: 1px solid #e0e5e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(28, 35, 42, .07);
}

.review-summary h3 {
    margin: 5px 0;
    color: #d88900;
    font-size: 48px;
}

.review-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.review-summary dl div {
    padding: 18px;
    border-radius: 14px;
    background: #f6f8f9;
}

.review-summary dt {
    color: #69737c;
    font-size: 13px;
    font-weight: 800;
}

.review-summary dd {
    margin: 6px 0 0;
    color: #20262b;
    font-size: 23px;
    font-weight: 900;
}

.review-detail-link {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.decision-card {
    display: grid;
    gap: 11px;
    padding: 27px;
    border: 1px solid;
    border-radius: 20px;
}

.approve-card {
    border-color: #bfe6ca;
    background: #f2fbf5;
}

.reject-card {
    border-color: #efcbc5;
    background: #fff6f4;
}

.decision-icon {
    display: grid;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 14px;
    place-items: center;
    font-size: 24px;
    font-weight: 950;
    background: #2f8b4d;
}

.reject-card .decision-icon {
    background: #b4483d;
}

.decision-card h3 {
    margin: 3px 0 0;
    font-size: 24px;
}

.decision-card p {
    min-height: 56px;
    margin: 0 0 5px;
    color: #5f6a73;
    line-height: 1.55;
}

.decision-card label {
    margin-top: 4px;
    font-weight: 850;
}

.decision-card input,
.decision-card textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd2d8;
    border-radius: 11px;
    background: #fff;
    font: inherit;
}

.decision-card input:focus,
.decision-card textarea:focus {
    border-color: #d99420;
    outline: 3px solid rgba(245, 166, 35, .18);
}

@media (max-width: 1100px) {
    .batch-size-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .batch-hero,
    .batch-size-grid,
    .review-summary,
    .decision-grid {
        grid-template-columns: 1fr;
    }

    .batch-hero,
    .batch-panel {
        padding: 21px;
    }

    .batch-record-header,
    .batch-record-summary,
    .batch-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .batch-products > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .batch-actions form,
    .batch-actions .action-button {
        width: 100%;
    }

    .batch-product-links,
    .review-summary dl {
        grid-template-columns: 1fr;
    }

    .decision-card p {
        min-height: 0;
    }
}

.generation-cost-note {
    padding: 13px 16px;
    margin: -8px 0 24px;
    color: #6c5424;
    border: 1px solid #f0d597;
    border-radius: 12px;
    background: #fff9eb;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.preview-format-badge {
    display: grid;
    gap: 3px;
    min-width: 170px;
    padding: 13px 18px;
    border: 1px solid #f2cd7f;
    border-radius: 15px;
    background: #fff8e7;
    text-align: center;
}

.preview-format-badge strong {
    color: #c77700;
    font-size: 22px;
}

.preview-format-badge span {
    color: #5d6268;
    font-size: 13px;
    font-weight: 800;
}

.cache-banner {
    padding: 14px 17px;
    margin-bottom: 18px;
    color: #225d36;
    border: 1px solid #b9dfc5;
    border-radius: 13px;
    background: #effaf2;
    font-weight: 750;
}

.human-review-banner {
    padding: 14px 17px;
    margin-bottom: 18px;
    color: #74520a;
    border: 1px solid #efcf82;
    border-radius: 13px;
    background: #fff8e6;
    font-weight: 750;
    line-height: 1.5;
}

.generated-preview-layout {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(360px, 1.1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.generated-image-panel {
    padding: 20px;
    border: 1px solid #e1e5e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 28, 35, .06);
}

.generated-image-frame {
    display: grid;
    overflow: hidden;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #edf0f2;
    border-radius: 15px;
    background: #f7f8f9;
}

.generated-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.generated-image-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
}

.generated-image-status span {
    padding: 8px 10px;
    color: #22683a;
    border-radius: 999px;
    background: #eefaf2;
    font-size: 13px;
    font-weight: 850;
}

.generated-metadata {
    margin: 0;
}

.generated-metadata dl {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 12px 16px;
    margin: 22px 0 0;
}

.generated-metadata dt {
    color: #66717a;
    font-weight: 850;
}

.generated-metadata dd {
    margin: 0;
    line-height: 1.5;
}

.reference-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 25px;
    margin-bottom: 22px;
    border: 1px solid #e1e5e8;
    border-radius: 18px;
    background: #fff;
}

.reference-panel h3 {
    margin: 5px 0 8px;
}

.reference-panel p {
    line-height: 1.55;
}

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

.reference-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #e8ebed;
    border-radius: 13px;
    background: #f7f8f9;
}

@media (max-width: 900px) {
    .generated-preview-layout,
    .reference-panel {
        grid-template-columns: 1fr;
    }

    .generated-metadata dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .generated-metadata dd {
        margin-bottom: 12px;
    }
}

/* Fase 1: diseño corporativo del Centro de Control */

:root {
    --gispack-ink: #101317;
    --gispack-panel: #171b20;
    --gispack-orange: #f5a623;
    --gispack-orange-dark: #d88900;
    --gispack-green: #218542;
    --gispack-bg: #f2f4f7;
    --gispack-text: #17202a;
    --gispack-muted: #69737d;
    --gispack-border: #e4e8ec;
    --gispack-shadow: 0 18px 48px rgba(20, 30, 40, .08);
}

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    color: #111;
    border-radius: 10px;
    background: var(--gispack-orange);
    font-weight: 900;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 4px solid rgba(245, 166, 35, .55);
    outline-offset: 3px;
}

body {
    background:
        radial-gradient(circle at 92% 4%, rgba(245, 166, 35, .08), transparent 24rem),
        var(--gispack-bg);
}

.brand {
    padding: 4px 8px 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-copy {
    min-width: 0;
}

.brand-copy h1 {
    font-size: 28px;
}

.brand-copy span,
.brand-copy small {
    display: block;
}

.brand-copy span {
    margin-top: 3px;
    color: var(--gispack-orange);
    font-size: 19px;
    font-weight: 800;
}

.brand-copy small {
    margin-top: 5px;
    color: #737c86;
    font-size: 13px;
}

.logo-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .04);
}

nav {
    gap: 7px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 15px 18px;
    font-size: 23px;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

nav a:hover {
    transform: translateX(3px);
}

nav a.active {
    position: relative;
    background: linear-gradient(135deg, #292d33, #1e2227);
    box-shadow: inset 3px 0 var(--gispack-orange);
}

.nav-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #c9cfd5;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    font-size: 23px;
}

nav a.active .nav-icon {
    color: #111;
    border-color: var(--gispack-orange);
    background: var(--gispack-orange);
}

.sidebar-footer {
    padding: 26px 8px 0;
    line-height: 1.45;
}

.sidebar-footer p {
    margin: 13px 0 3px;
}

.version-pill {
    display: inline-block;
    padding: 7px 10px;
    color: #dce2e7;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-page .content {
    max-width: none;
}

.dashboard-topbar {
    gap: 28px;
}

.dashboard-topbar h2 {
    color: var(--gispack-ink);
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -.04em;
}

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

.security-status {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid #cce9d4;
    border-radius: 14px;
    background: #effaf2;
}

.security-status strong,
.security-status small {
    display: block;
}

.security-status strong {
    color: #175d2d;
    font-size: 13px;
}

.security-status small {
    margin-top: 2px;
    color: #4f7359;
    font-size: 11px;
}

.security-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: var(--gispack-green);
    font-weight: 900;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 36px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 58px);
    margin-bottom: 22px;
    color: white;
    border-radius: 26px;
    background:
        linear-gradient(130deg, rgba(245, 166, 35, .12), transparent 42%),
        linear-gradient(135deg, #111419, #20252b);
    box-shadow: 0 24px 70px rgba(12, 15, 18, .2);
}

.hero-copy {
    max-width: 760px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gispack-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.hero-copy h3 {
    max-width: 700px;
    margin: 0 0 17px;
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: #bdc4cb;
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-button {
    width: auto;
    min-width: 190px;
    padding: 15px 20px;
}

.action-button.ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
}

.action-button.ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.hero-progress-card {
    align-self: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(12px);
}

.hero-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero-progress-header strong {
    color: var(--gispack-orange);
    font-size: 23px;
}

.large-progress {
    height: 9px;
    background: rgba(255, 255, 255, .1);
}

.progress-80 {
    width: 80%;
}

.dashboard-progress-85 {
    width: 85%;
}

.phase-list {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
    color: #8f98a1;
    font-size: 13px;
}

.phase-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-list li span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.phase-list .done {
    color: #9edcaf;
}

.phase-list .current {
    color: white;
    font-weight: 800;
}

.phase-list .current span {
    color: #111;
    border-color: var(--gispack-orange);
    background: var(--gispack-orange);
}

.dashboard-metrics {
    margin-bottom: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(228, 232, 236, .8);
    box-shadow: var(--gispack-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.metric-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    background: var(--metric-color, var(--gispack-orange));
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(20, 30, 40, .12);
}

.metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--metric-color, var(--gispack-orange-dark));
    border-radius: 11px;
    background: color-mix(in srgb, var(--metric-color, #f5a623) 12%, white);
    font-size: 18px;
    font-weight: 900;
}

.metric-products {
    --metric-color: #d88900;
}

.metric-stock {
    --metric-color: #218542;
}

.metric-phase {
    --metric-color: #4169a1;
}

.metric-protection {
    --metric-color: #7a55a4;
}

.metric-text {
    font-size: 29px !important;
}

.modern-panel {
    border: 1px solid rgba(228, 232, 236, .85);
    border-radius: 22px;
    box-shadow: var(--gispack-shadow);
}

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

.modern-action-grid .action-card {
    position: relative;
    min-height: 295px;
    padding: 23px;
    transition: transform .22s ease, border-color .22s ease;
}

.modern-action-grid .action-card:hover {
    transform: translateY(-3px);
    border-color: #cfd5da;
}

.modern-action-grid .action-card.highlighted {
    background:
        linear-gradient(145deg, rgba(245, 166, 35, .12), transparent 60%),
        #fff;
}

.action-kicker {
    margin-bottom: 10px;
    color: var(--gispack-orange-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.locked-card {
    background: #f8f9fa;
}

.enhanced-safety {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    border: 1px solid #cce9d4;
    background: #effaf2;
}

.enhanced-safety p {
    margin: 3px 0 0;
    color: #4e6856;
}

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

.dashboard-operation-panel {
    background: #fff;
    border: 1px solid rgba(228, 232, 236, .9);
    border-radius: 22px;
    box-shadow: var(--gispack-shadow);
    min-width: 0;
    padding: 25px;
}

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

.operation-metrics > div {
    background: #f5f7f8;
    border: 1px solid #e5e9ec;
    border-radius: 13px;
    padding: 14px;
}

.operation-metrics span,
.operation-metrics strong {
    display: block;
}

.operation-metrics span {
    color: #6c7580;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.35;
    min-height: 27px;
}

.operation-metrics strong {
    color: #192129;
    font-size: 26px;
    margin-top: 7px;
}

.latest-batch {
    border-top: 1px solid #e5e9ec;
    display: grid;
    gap: 10px;
    grid-template-columns: 1.3fr 1fr .7fr;
    margin-top: 18px;
    padding-top: 18px;
}

.latest-batch span,
.latest-batch strong {
    display: block;
}

.latest-batch span {
    color: #76808a;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.latest-batch strong {
    color: #252e37;
    font-size: 12px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.recent-activity-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.recent-activity-list > div {
    align-items: center;
    background: #f7f8f9;
    border: 1px solid #e7eaed;
    border-radius: 13px;
    display: flex;
    gap: 12px;
    padding: 11px 13px;
}

.recent-activity-list p,
.recent-activity-list strong,
.recent-activity-list small {
    display: block;
    margin: 0;
}

.recent-activity-list p {
    min-width: 0;
}

.recent-activity-list strong {
    color: #242d36;
    font-size: 12px;
}

.recent-activity-list small {
    color: #79828b;
    font-size: 10px;
    margin-top: 3px;
}

.dashboard-empty-state {
    align-items: center;
    background: #f1f9f3;
    border: 1px solid #cde8d5;
    border-radius: 15px;
    color: #286b3c;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
}

.dashboard-empty-state span {
    font-size: 25px;
    font-weight: 900;
}

.dashboard-empty-state p {
    margin: 0;
}

.workspace-section {
    padding: 30px 0 8px;
}

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

.section-title-row h3 {
    margin: 3px 0 0;
    font-size: 30px;
}

.section-note {
    color: var(--gispack-muted);
    font-size: 13px;
    font-weight: 700;
}

.modern-module-grid .module {
    min-height: 245px;
    padding: 25px;
    border: 1px solid var(--gispack-border);
    box-shadow: var(--gispack-shadow);
}

.modern-module-grid .module-active {
    border-color: rgba(245, 166, 35, .55);
}

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

.module-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #1d2329;
    border-radius: 13px;
    background: #f2f4f6;
    font-size: 21px;
    font-weight: 900;
}

.module-active .module-icon {
    background: var(--gispack-orange);
}

.module-state {
    padding: 7px 10px;
    color: #6f7780;
    border-radius: 999px;
    background: #f1f3f5;
    font-size: 11px;
    font-weight: 800;
}

.active-state {
    color: #805b12;
    background: #fff1cf;
}

.module-link {
    color: #1d2329;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.muted-link {
    color: #8b939b;
}

.roadmap-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 27px 30px;
    margin: 24px 0 40px;
    color: white;
    border-radius: 20px;
    background: linear-gradient(135deg, #171b20, #272d34);
}

.roadmap-strip h3 {
    margin: 4px 0 7px;
    font-size: 25px;
}

.roadmap-strip p:last-child {
    margin: 0;
    color: #b8c0c7;
}

.roadmap-badge {
    flex: 0 0 auto;
    padding: 12px 17px;
    color: #111;
    border-radius: 999px;
    background: var(--gispack-orange);
    font-weight: 900;
}

@keyframes dashboard-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-page .dashboard-hero,
.dashboard-page .metric-card,
.dashboard-page .modern-panel,
.dashboard-page .workspace-section,
.dashboard-page .roadmap-strip {
    animation: dashboard-rise .45s ease both;
}

.dashboard-page .metric-card:nth-child(2) {
    animation-delay: .04s;
}

.dashboard-page .metric-card:nth-child(3) {
    animation-delay: .08s;
}

.dashboard-page .metric-card:nth-child(4) {
    animation-delay: .12s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

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

@media (max-width: 1100px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    body {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .sidebar nav a {
        flex: 0 0 auto;
        min-height: 52px;
        font-size: 18px;
    }

    .sidebar-footer {
        display: none;
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 700px) {
    .dashboard-topbar,
    .section-title-row,
    .roadmap-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions,
    .dashboard-metrics,
    .modern-action-grid,
    .modern-module-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .hero-copy h3 {
        font-size: 34px;
    }

    .hero-actions,
    .hero-button {
        width: 100%;
    }
}

/* Pantallas internas unificadas */

.app-page .content {
    max-width: none;
}

@media (max-width: 1150px) {
    body {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .sidebar nav a {
        flex: 0 0 auto;
        min-height: 60px;
        font-size: 18px;
    }

    .sidebar-footer {
        display: none;
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 28px;
    }
}

.page-topbar {
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gispack-border);
}

.page-topbar h2 {
    max-width: 1050px;
    color: var(--gispack-ink);
    font-size: clamp(31px, 3.5vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.analyzer-hero {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
    gap: 38px;
    padding: clamp(30px, 5vw, 55px);
    border: 1px solid rgba(228, 232, 236, .9);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 166, 35, .12), transparent 18rem),
        white;
    box-shadow: var(--gispack-shadow);
}

.analyzer-intro {
    align-self: center;
}

.analyzer-symbol {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    place-items: center;
    color: #111;
    border-radius: 17px;
    background: var(--gispack-orange);
    box-shadow: 0 12px 28px rgba(245, 166, 35, .28);
    font-size: 28px;
}

.analyzer-intro h3 {
    margin: 6px 0 15px;
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.analyzer-intro > p:last-child {
    max-width: 580px;
    margin: 0;
    color: var(--gispack-muted);
    font-size: 16px;
    line-height: 1.7;
}

.analyzer-form {
    align-self: center;
    padding: 28px;
    border: 1px solid var(--gispack-border);
    border-radius: 19px;
    background: #f7f8fa;
}

.analyzer-form label {
    display: block;
    margin-bottom: 10px;
    color: #28313a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.search-control {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border: 2px solid #dfe4e8;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 25px rgba(20, 30, 40, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-control:focus-within {
    border-color: var(--gispack-orange);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, .13);
}

.search-control input {
    min-width: 0;
    padding: 18px 19px;
    color: #192129;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 750;
}

.search-control input::placeholder {
    color: #9aa2aa;
    font-weight: 500;
}

.search-control .action-button {
    width: auto;
    margin: 5px;
    padding-right: 22px;
    padding-left: 22px;
}

.analyzer-form > small {
    display: block;
    margin-top: 12px;
    color: #7b848d;
    line-height: 1.45;
}

.analysis-scope {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.analysis-scope article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--gispack-border);
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .04);
}

.analysis-scope article > span {
    display: grid;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #7d590f;
    border-radius: 11px;
    background: #fff2d7;
    font-size: 12px;
    font-weight: 900;
}

.analysis-scope strong,
.analysis-scope small {
    display: block;
}

.analysis-scope small {
    margin-top: 3px;
    color: #7a838c;
    font-size: 11px;
}

.diagnostic-page .readonly-banner,
.proposal-page .readonly-banner {
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid #cce9d4;
}

.diagnostic-card,
.diagnostic-section,
.proposal-image-card,
.protected-panel,
.result-panel {
    border: 1px solid rgba(228, 232, 236, .9);
    box-shadow: var(--gispack-shadow);
}

.diagnostic-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.diagnostic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 23px 50px rgba(20, 30, 40, .11);
}

.diagnostic-section {
    border-radius: 20px;
}

.image-audit-card {
    transition: transform .22s ease, border-color .22s ease;
}

.image-audit-card:hover {
    transform: translateY(-3px);
    border-color: #cbd2d8;
}

.proposal-image-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.proposal-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(20, 30, 40, .1);
}

.result-page .result-panel {
    border-radius: 22px;
}

.result-page .result-icon {
    box-shadow: 0 12px 28px rgba(33, 133, 66, .14);
}

.result-page .result-item {
    background: #fbfcfd;
}

.app-page .diagnostic-actions,
.app-page .result-actions {
    position: sticky;
    z-index: 4;
    bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(228, 232, 236, .9);
    border-radius: 17px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 45px rgba(20, 30, 40, .12);
    backdrop-filter: blur(14px);
}

.app-page .action-button {
    min-height: 47px;
}

.analyzer-page .analyzer-hero,
.analyzer-page .analysis-scope,
.diagnostic-page .diagnostic-summary,
.diagnostic-page .diagnostic-section,
.proposal-page .proposal-summary,
.proposal-page .diagnostic-section,
.result-page .result-panel {
    animation: dashboard-rise .42s ease both;
}

@media (max-width: 1200px) {
    .analysis-scope {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .analyzer-hero {
        grid-template-columns: 1fr;
    }

    .page-topbar {
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .page-topbar {
        flex-direction: column;
    }

    .search-control,
    .analysis-scope {
        grid-template-columns: 1fr;
    }

    .search-control {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .search-control input {
        border: 2px solid #dfe4e8;
        border-radius: 13px;
        background: white;
    }

    .search-control .action-button {
        width: 100%;
        margin: 10px 0 0;
    }

    .analyzer-form {
        padding: 20px;
    }

    .app-page .diagnostic-actions,
    .app-page .result-actions {
        position: static;
    }
}
.progress-40 {
    width: 40%;
}

.action-panel {
    background: white;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .06);
}

.action-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.action-heading h3 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.action-heading p {
    margin: 0;
    color: #66707a;
}

.safe-badge {
    background: #e9f8ee;
    color: #218542;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.action-card {
    border: 1px solid #e7eaee;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 245px;
}

.action-card.highlighted {
    border: 2px solid #f5a623;
    background: #fffaf1;
}

.action-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f3f5;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 16px;
}

.highlighted .action-number {
    background: #f5a623;
    color: #111;
}

.action-card h4 {
    font-size: 17px;
    margin: 0 0 10px;
}

.action-card p {
    color: #6f7780;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
}

.action-button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 12px 14px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.action-button.primary {
    background: #f5a623;
    color: #111;
}

.action-button.primary:hover {
    background: #e69913;
}

.action-button.secondary {
    background: #1c2025;
    color: white;
}

.action-button.secondary:hover {
    background: #30353b;
}

.disabled-button {
    background: #eceff2;
    color: #89919a;
    cursor: not-allowed;
}

.safety-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f6f8fa;
    color: #545d66;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.result-panel {
    max-width: 920px;
    margin: 20px auto;
    padding: 36px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(20, 30, 40, .08);
    text-align: center;
}

.result-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9f8ee;
    color: #218542;
    font-size: 38px;
    font-weight: 800;
}

.result-panel h3 {
    margin: 0 0 18px;
    font-size: 26px;
}

.result-total {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0;
}

.result-total strong {
    font-size: 48px;
}

.result-total span {
    color: #6f7780;
}

.result-progress {
    height: 14px;
    background: #e8ebee;
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0 30px;
}

.result-help {
    max-width: 680px;
    padding: 14px 18px;
    margin: 18px auto;
    color: #704d00;
    border: 1px solid #f1d48e;
    border-radius: 12px;
    background: #fff8e5;
    line-height: 1.55;
}

.stock-warning {
    font-weight: 800;
}

.disabled-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #69737d;
    border: 1px solid #d9dee3;
    background: #edf0f2;
    cursor: not-allowed;
    opacity: .85;
}

.result-progress-bar {
    width: 100%;
    height: 100%;
    background: #f5a623;
}

.result-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    text-align: left;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
}

.result-item strong,
.result-item small {
    display: block;
}

.result-item small {
    margin-top: 4px;
    color: #7a828b;
}

.result-success {
    color: #218542;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.result-actions form {
    flex: 1;
    max-width: 280px;
}

.result-actions > a {
    flex: 1;
    max-width: 280px;
}

.readonly-banner,
.warning-banner {
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
}

.readonly-banner {
    color: #22683a;
    background: #e9f8ee;
}

.warning-banner {
    color: #805b12;
    background: #fff4d8;
}

.local-mode-banner,
.cost-recorded-banner {
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #1e6738;
    border: 1px solid #bfe6ca;
    border-radius: 14px;
    background: #eefaf2;
    font-weight: 750;
    line-height: 1.5;
}

.local-optimization-panel,
.paid-exception-panel,
.budget-status-panel,
.cost-confirmation-card {
    padding: 26px;
    margin-bottom: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .06);
}

.local-optimization-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    color: #eef7f1;
    border: 1px solid rgba(69, 188, 105, .45);
    background: #17241c;
}

.local-optimization-panel h3,
.paid-exception-panel h3,
.cost-confirmation-card h3 {
    margin: 5px 0 10px;
    font-size: 25px;
}

.local-optimization-panel p {
    color: #cbd8cf;
    line-height: 1.6;
}

.free-work-list {
    display: grid;
    gap: 10px;
    align-content: center;
}

.free-work-list span {
    padding: 11px 13px;
    color: #175d31;
    border-radius: 12px;
    background: #eefaf2;
    font-weight: 850;
}

.paid-exception-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    border: 1px solid #f1d18d;
    background: #fffaf1;
}

.paid-exception-panel p {
    margin-bottom: 0;
    color: #6f5a31;
    line-height: 1.55;
}

.paid-outline-button {
    color: #7b5100;
    border: 2px solid #e7a51f;
    background: #fff8e8;
}

.paid-action-button {
    color: #fff;
    border: 2px solid #a94d1e;
    background: #b75122;
}

.budget-status-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 18px;
    color: #eef2f5;
    background: #20262c;
}

.budget-status-panel span,
.budget-status-panel small {
    color: #c3cbd2;
}

.budget-status-panel strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: #f5a623;
    font-size: 28px;
}

.cost-confirmation-card {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
    background: #fff;
}

.cost-confirmation-card > p {
    line-height: 1.6;
}

.cost-range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.cost-range div {
    padding: 18px;
    border: 1px solid #e1e6ea;
    border-radius: 14px;
    background: #f8fafb;
}

.cost-range span,
.cost-range strong {
    display: block;
}

.cost-range span {
    color: #68737d;
    font-weight: 750;
}

.cost-range strong {
    margin-top: 8px;
    font-size: 21px;
}

.budget-warning {
    padding: 16px 18px;
    margin-bottom: 22px;
    color: #75500d;
    border: 1px solid #f1d18d;
    border-radius: 13px;
    background: #fff7e5;
    font-weight: 750;
    line-height: 1.5;
}

.score-badge {
    min-width: 190px;
    padding: 13px 18px;
    color: #111;
    background: #f5a623;
    border-radius: 18px;
    text-align: center;
}

.score-badge > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.score-badge strong {
    font-size: 38px;
}

.score-badge span {
    font-size: 15px;
    font-weight: 700;
}

.score-badge-label,
.score-badge-detail {
    display: block;
    line-height: 1.3;
}

.score-badge-label {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.score-badge-detail {
    margin-top: 1px;
    font-size: 11px;
    font-weight: 750;
}

.score-explanation {
    padding: 14px 17px;
    margin-bottom: 14px;
    color: #3e4852;
    border: 1px solid #dce2e7;
    border-radius: 13px;
    background: #f7f9fa;
    line-height: 1.5;
}

.score-explanation strong {
    color: #15191e;
}

.diagnostic-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.diagnostic-card,
.diagnostic-section {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 30, 40, .06);
}

.diagnostic-card {
    padding: 22px;
}

.diagnostic-card span,
.diagnostic-card small {
    color: #737b84;
}

.diagnostic-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 32px;
}

.status-word {
    font-size: 21px !important;
}

.diagnostic-section {
    padding: 28px;
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.diagnostic-section h3 {
    margin: 4px 0 18px;
    font-size: 24px;
}

.image-audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.image-audit-card {
    overflow: hidden;
    min-height: 360px;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    background: #fff;
}

.image-audit-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: #f7f8f9;
}

.image-audit-content {
    padding: 18px;
}

.image-standard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    margin: -5px 0 22px;
    color: #3d4852;
    border: 1px solid #e4e8ec;
    border-radius: 14px;
    background: #f8fafb;
}

.image-standard strong {
    color: #17202a;
}

.check-list {
    display: grid;
    gap: 7px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    font-size: 13px;
}

.check-list li::before {
    display: inline-block;
    width: 20px;
    font-weight: 900;
}

.check-list .ok {
    color: #218542;
}

.check-list .ok::before {
    content: "✓";
}

.check-list .missing {
    color: #b14b3b;
}

.check-list .missing::before {
    content: "×";
}

.empty-image {
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 22px;
    color: #7c858e;
    border: 2px dashed #d5dadd;
    text-align: center;
    background: #fafbfc;
}

.empty-image-symbol {
    font-size: 44px;
    color: #f5a623;
}

.diagnostic-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-row,
.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eceff2;
}

.detail-row:last-child {
    border-bottom: 0;
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-item {
    justify-content: flex-start;
    padding: 15px 17px;
    border: 1px solid #f1d18d;
    border-radius: 12px;
    background: #fffaf1;
}

.task-item span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #111;
    background: #f5a623;
    border-radius: 50%;
    font-weight: 900;
}

.task-item.completed {
    border-color: #bfe6ca;
    background: #eefaf2;
}

.diagnostic-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 35px;
}

.catalog-list {
    display: grid;
    gap: 7px;
    padding: 15px 0;
    border-bottom: 1px solid #e8ebee;
}

.catalog-list:last-child {
    border-bottom: 0;
}

.catalog-list span {
    color: #65707a;
    font-weight: 800;
}

.catalog-list strong {
    line-height: 1.5;
}

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

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

@media (max-width: 800px) {
    .diagnostic-columns,
    .diagnostic-actions {
        grid-template-columns: 1fr;
    }

    .image-audit-grid {
        grid-template-columns: 1fr;
    }

    .image-standard {
        align-items: flex-start;
        flex-direction: column;
    }

    .image-audit-card {
        min-height: auto;
    }

    .image-audit-card img {
        max-height: none;
    }

    .local-optimization-panel,
    .paid-exception-panel,
    .budget-status-panel,
    .cost-range {
        grid-template-columns: 1fr;
    }

    .budget-status-panel strong {
        grid-row: auto;
        grid-column: auto;
    }
}

.proposal-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.premium-quality-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    padding: 28px;
    margin-bottom: 22px;
    color: #f4f6f8;
    border: 1px solid rgba(245, 166, 35, .35);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right,
            rgba(245, 166, 35, .18), transparent 38%),
        #15191e;
    box-shadow: 0 18px 45px rgba(20, 30, 40, .14);
}

.premium-quality-panel h3 {
    margin: 5px 0 10px;
    font-size: 26px;
}

.premium-quality-panel p {
    margin-bottom: 0;
    color: #c7cdd3;
    line-height: 1.6;
}

.premium-specs {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 9px;
}

.premium-specs span {
    padding: 10px 13px;
    color: #111;
    border-radius: 999px;
    background: #f5a623;
    font-weight: 900;
}

.premium-checklist {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 0 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    list-style: none;
}

.premium-checklist li {
    color: #e1e5e8;
    line-height: 1.45;
}

.premium-review-card {
    border: 1px solid #f1d48e;
    background: #fffaf0;
}

.ai-image-review {
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e0e5e9;
    border-radius: 13px;
    background: #f7f9fa;
}

.ai-image-review.approved {
    border-color: #bfe6ca;
    background: #eefaf2;
}

.ai-image-review.redesign {
    border-color: #f0c4bc;
    background: #fff3f1;
}

.ai-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-review-heading span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-size: 12px;
    font-weight: 900;
}

.ai-image-review p,
.ai-image-review small {
    display: block;
    line-height: 1.5;
}

.ai-image-review p {
    margin: 9px 0;
}

.ai-image-review dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    padding: 11px 0;
    margin: 0;
    border-top: 1px solid rgba(20, 30, 40, .08);
}

.ai-image-review dt {
    color: #65707a;
    font-weight: 800;
}

.ai-image-review dd {
    margin: 0;
    font-weight: 700;
}

.action-button.is-loading {
    cursor: wait;
    opacity: .78;
}

.proposal-status {
    font-size: 24px !important;
}

.proposal-image-grid {
    display: grid;
    gap: 18px;
}

.proposal-image-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    background: #fff;
}

.proposal-preview {
    display: grid;
    min-height: 260px;
    place-content: center;
    gap: 8px;
    padding: 20px;
    color: #7c858e;
    text-align: center;
    background: #f7f8f9;
}

.proposal-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.proposal-preview span {
    color: #f5a623;
    font-size: 54px;
}

.proposal-image-content {
    padding: 22px;
}

.proposal-position,
.proposal-action {
    color: #d88900;
    font-weight: 800;
}

.proposal-image-content h4 {
    margin: 7px 0;
    font-size: 22px;
}

.proposal-image-content dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 9px 15px;
    margin-bottom: 0;
}

.proposal-image-content dt {
    color: #65707a;
    font-weight: 800;
}

.proposal-image-content dd {
    margin: 0;
    line-height: 1.45;
}

.protected-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 25px;
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid #bfe6ca;
    border-radius: 18px;
    background: #eefaf2;
}

.protected-panel h3 {
    margin: 5px 0 0;
}

.protected-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.protected-tags span {
    padding: 10px 13px;
    color: #22683a;
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
}

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

    .proposal-image-card,
    .protected-panel,
    .premium-quality-panel {
        grid-template-columns: 1fr;
    }

    .premium-specs {
        justify-content: flex-start;
    }

    .premium-checklist {
        grid-template-columns: 1fr;
    }
}
/* Plan exacto de aplicación y restauración — Bloque 4 */
.plan-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.plan-summary-grid article {
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(21, 28, 38, .06);
    padding: 20px;
}

.plan-summary-grid span,
.plan-summary-grid strong {
    display: block;
}

.plan-summary-grid span {
    color: #667085;
    font-size: .82rem;
    margin-bottom: 8px;
}

.plan-summary-grid strong {
    color: #171b22;
    font-size: 1.1rem;
}

.plan-operation-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.plan-operation-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 15px;
    min-width: 0;
    padding: 18px;
}

.plan-action-agregar,
.plan-action-reemplazar {
    border-color: #f2a20c;
    box-shadow: inset 0 3px #f2a20c;
}

.plan-action-conservar {
    border-color: #b7e3c5;
    box-shadow: inset 0 3px #2f9e56;
}

.plan-action-bloqueada {
    border-color: #f0b9b9;
    box-shadow: inset 0 3px #cf3f3f;
}

.plan-operation-heading {
    align-items: center;
    display: flex;
    gap: 12px;
}

.plan-operation-heading > span {
    align-items: center;
    background: #171b22;
    border-radius: 10px;
    color: #fff;
    display: flex;
    font-size: 1.1rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.plan-operation-heading small,
.plan-operation-heading strong {
    display: block;
}

.plan-operation-card p {
    color: #4b5565;
    line-height: 1.5;
    min-height: 66px;
}

.plan-operation-card dl,
.plan-detail-list {
    margin: 16px 0 0;
}

.plan-operation-card dl div,
.plan-detail-list div {
    align-items: start;
    border-top: 1px solid #eceff2;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 0;
}

.plan-operation-card dt,
.plan-detail-list dt {
    color: #667085;
}

.plan-operation-card dd,
.plan-detail-list dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.plan-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.plan-restore-card {
    background: linear-gradient(145deg, #182028, #252d36);
    color: #fff;
}

.plan-restore-card p,
.plan-restore-card small,
.plan-restore-card strong {
    display: block;
}

.plan-restore-card p {
    color: #d8dde4;
}

.plan-restore-card strong {
    margin: 18px 0 8px;
}

.execution-lock-card {
    align-items: center;
    background: #171b22;
    border: 1px solid #343c46;
    border-radius: 18px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 20px 0;
    padding: 24px;
}

.execution-lock-card h3 {
    margin: 3px 0 8px;
}

.execution-lock-card p {
    color: #c9ced6;
    margin: 0;
}

.execution-lock-card > span {
    background: #f2a20c;
    border-radius: 999px;
    color: #171b22;
    font-size: .76rem;
    font-weight: 800;
    padding: 10px 14px;
    white-space: nowrap;
}

.batch-alert span {
    display: block;
    margin-top: 6px;
}

@media (max-width: 1180px) {
    .plan-operation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .plan-summary-grid,
    .plan-operation-grid,
    .plan-two-column {
        grid-template-columns: 1fr;
    }

    .execution-lock-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-operation-card p {
        min-height: 0;
    }
}
.private-budget-notice {
    align-items: center;
    background: #171b22;
    border: 1px solid #343c46;
    border-radius: 16px;
    color: #fff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 18px 20px;
}

.private-budget-notice span {
    font-weight: 800;
}

.private-budget-notice small {
    color: #cbd1d8;
    flex: 1;
}

@media (max-width: 760px) {
    .private-budget-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Acceso de colaboradores y validación administrativa */
.sidebar-account {
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 22px 8px 0;
}

.sidebar-login-button {
    align-items: center;
    background: #f5a623;
    border: 0;
    border-radius: 12px;
    color: #15191e;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 17px;
    font-weight: 850;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 11px 15px;
    text-decoration: none;
    width: 100%;
}

.sidebar-create-account {
    color: #aeb6bf;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sidebar-create-account:hover {
    color: #fff;
}

.sidebar-user {
    align-items: center;
    display: flex;
    gap: 11px;
}

.sidebar-user .user-avatar {
    align-items: center;
    background: #f5a623;
    border-radius: 12px;
    color: #15191e;
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user small {
    color: #8c959f;
    margin-top: 3px;
}

.access-body {
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 166, 35, .18), transparent 30rem),
        #111419;
    color: #17202a;
    display: block;
    min-height: 100vh;
}

.access-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 100vh;
    margin: 0 auto;
    max-width: 1440px;
}

.access-brand-panel {
    align-content: center;
    background:
        linear-gradient(150deg, rgba(245, 166, 35, .08), transparent 45%),
        #171b22;
    color: #fff;
    display: grid;
    justify-items: center;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 60px);
    text-align: center;
}

.access-brand-panel > * {
    max-width: 560px;
}

.access-brand-panel img {
    height: clamp(115px, 11vw, 155px);
    margin: 0 auto 22px;
    object-fit: contain;
    object-position: center;
    width: clamp(115px, 11vw, 155px);
}

.access-brand-panel h1 {
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -.045em;
    line-height: .98;
    margin: 8px 0 24px;
}

.access-brand-panel > .eyebrow {
    font-size: clamp(15px, 1.35vw, 19px);
    letter-spacing: .16em;
}

.access-brand-panel .access-exclusive-title {
    display: grid;
    gap: 7px;
    font-size: clamp(28px, 3vw, 43px);
    letter-spacing: -.035em;
    line-height: 1.02;
    margin: 10px 0 20px;
    max-width: 650px;
    text-align: center;
}

.access-exclusive-title span {
    display: block;
}

.access-exclusive-title span:last-child {
    color: #f5a623;
}

.access-brand-panel .access-product-title {
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -.025em;
    margin: 0 0 21px;
}

.access-brand-panel > p:not(.eyebrow) {
    color: #c8ced5;
    font-size: 18px;
    line-height: 1.65;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

.access-brand-panel ul {
    display: grid;
    gap: 12px;
    justify-items: center;
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    text-align: center;
}

.access-brand-panel li {
    color: #e0e4e8;
    font-weight: 750;
    text-align: center;
}

.access-form-panel {
    align-content: center;
    background: #fff;
    display: grid;
    justify-items: center;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 60px);
    text-align: center;
}

.access-form-panel > * {
    max-width: 560px;
    width: 100%;
}

.access-form-heading {
    margin-bottom: 28px;
    text-align: center;
}

.access-form-heading h2 {
    font-size: clamp(28px, 3vw, 43px);
    letter-spacing: -.035em;
    line-height: 1.02;
    margin: 10px 0 20px;
}

.access-form-heading > p:last-child {
    color: #66707a;
}

.access-form {
    display: grid;
    gap: 12px;
    justify-items: stretch;
    text-align: center;
}

.access-form label {
    font-size: 14px;
    font-weight: 850;
    margin-top: 7px;
    text-align: center;
}

.access-form input {
    background: #f8f9fa;
    border: 1px solid #cfd5db;
    border-radius: 13px;
    font-size: 17px;
    min-height: 54px;
    padding: 13px 15px;
    text-align: center;
    width: 100%;
}

.access-form input:focus {
    background: #fff;
    border-color: #e0930a;
}

.access-primary-button {
    align-items: center;
    background: #f5a623;
    border: 0;
    border-radius: 13px;
    color: #15191e;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 900;
    justify-content: center;
    min-height: 54px;
    padding: 13px 18px;
    text-decoration: none;
}

.access-form .access-primary-button {
    margin-top: 14px;
    width: 100%;
}

.access-alert {
    border-radius: 13px;
    margin: 0 0 20px;
    padding: 14px 16px;
}

.access-alert.error {
    background: #fff0ee;
    border: 1px solid #efb5af;
    color: #862c24;
}

.access-alert.success {
    background: #eefaf2;
    border: 1px solid #bfe6ca;
    color: #1d6334;
}

.new-account-card {
    align-items: center;
    background: #f5f7f9;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin-top: 26px;
    padding: 18px;
    text-align: center;
}

.new-account-card strong,
.new-account-card span {
    display: block;
}

.new-account-card span {
    color: #66707a;
    font-size: 13px;
    margin-top: 4px;
}

.new-account-card a {
    color: #a86200;
    flex: 0 0 auto;
    font-weight: 850;
}

.access-links {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    margin-top: 25px;
    text-align: center;
}

.access-links a,
.access-back-link {
    color: #5e6872;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.registration-shell {
    margin: 0 auto;
    max-width: 1200px;
    min-height: 100vh;
    padding: clamp(30px, 6vw, 80px);
}

.registration-intro {
    color: #fff;
    margin-bottom: 30px;
}

.registration-intro .access-back-link {
    color: #c9d0d7;
    display: inline-block;
    margin-bottom: 35px;
}

.registration-intro h1 {
    font-size: clamp(38px, 6vw, 62px);
    margin: 5px 0 13px;
}

.registration-intro > p:last-of-type {
    color: #cbd1d8;
    font-size: 17px;
    line-height: 1.6;
    max-width: 720px;
}

.validation-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.validation-steps div {
    align-items: center;
    color: #e3e7eb;
    display: flex;
    gap: 9px;
}

.validation-steps span {
    align-items: center;
    background: #f5a623;
    border-radius: 50%;
    color: #15191e;
    display: flex;
    font-weight: 900;
    height: 31px;
    justify-content: center;
    width: 31px;
}

.registration-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .25);
    padding: clamp(26px, 5vw, 50px);
}

.registration-form {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.registration-form > div {
    display: grid;
    gap: 8px;
}

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

.registration-form small {
    color: #737c85;
}

.account-request-success {
    display: grid;
    justify-items: center;
    padding: 36px 10px;
    text-align: center;
}

.account-request-success > span {
    align-items: center;
    background: #2c9850;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 28px;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.account-request-success h2 {
    font-size: 34px;
    margin: 18px 0 5px;
}

.account-request-success p {
    color: #66707a;
    line-height: 1.6;
    max-width: 580px;
}

.account-request-success .access-primary-button {
    margin-top: 18px;
}

.admin-access-shell {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.accounts-admin-page {
    margin: 0 auto;
    max-width: 1350px;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 70px);
}

.accounts-admin-header {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.accounts-admin-header h1 {
    font-size: clamp(35px, 5vw, 56px);
    margin: 5px 0 8px;
}

.accounts-admin-header p:last-child {
    color: #c5ccd3;
}

.accounts-metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 22px;
}

.accounts-metrics article {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
}

.accounts-metrics span,
.accounts-metrics strong {
    display: block;
}

.accounts-metrics span {
    color: #66707a;
    font-size: 13px;
}

.accounts-metrics strong {
    font-size: 32px;
    margin-top: 5px;
}

.accounts-list {
    display: grid;
    gap: 14px;
}

.account-review-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 18px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr auto;
    padding: 22px;
}

.account-review-avatar {
    align-items: center;
    background: #171b22;
    border-radius: 15px;
    color: #f5a623;
    display: flex;
    font-size: 26px;
    font-weight: 900;
    height: 62px;
    justify-content: center;
    width: 62px;
}

.account-review-identity h2 {
    margin: 7px 0 4px;
}

.account-review-identity p,
.account-review-identity strong,
.account-review-identity small {
    display: block;
    margin: 3px 0;
}

.account-review-identity p,
.account-review-identity small {
    color: #66707a;
}

.account-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 9px;
}

.status-pendiente {
    background: #fff2d6;
    color: #8c5700;
}

.status-activa {
    background: #e9f8ee;
    color: #1d6c38;
}

.status-rechazada {
    background: #fff0ee;
    color: #8a3028;
}

.account-review-actions {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.account-review-actions label {
    color: #66707a;
    font-size: 12px;
    font-weight: 800;
}

.account-review-actions select {
    background: #fff;
    border: 1px solid #ccd3da;
    border-radius: 10px;
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.account-reject-button {
    background: #fff;
    border: 1px solid #e3aaa5;
    border-radius: 12px;
    color: #8a3028;
    cursor: pointer;
    font-weight: 850;
    min-height: 44px;
    padding: 10px 14px;
    width: 100%;
}

.account-decision {
    text-align: right;
}

.account-decision strong,
.account-decision small {
    display: block;
}

.account-decision small {
    color: #66707a;
    margin-top: 5px;
}

.accounts-empty {
    background: #fff;
    border-radius: 20px;
    padding: 50px 25px;
    text-align: center;
}

.accounts-empty > span {
    color: #2d9850;
    font-size: 36px;
}

@media (max-width: 900px) {
    .access-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .access-brand-panel {
        min-height: 440px;
        overflow: visible;
        padding: 45px 30px;
    }

    .access-form-panel {
        min-height: 0;
        overflow: visible;
        padding: 45px 30px;
    }

    .accounts-admin-header,
    .account-review-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .accounts-admin-header {
        flex-direction: column;
    }

    .account-review-actions {
        width: 100%;
    }

    .account-decision {
        text-align: left;
    }

    .sidebar-account {
        grid-template-columns: minmax(180px, 260px) auto;
    }
}

@media (max-width: 650px) {
    .registration-form,
    .accounts-metrics {
        grid-template-columns: 1fr;
    }

    .registration-form .form-field-wide {
        grid-column: auto;
    }

    .new-account-card,
    .access-links {
        align-items: flex-start;
        flex-direction: column;
    }

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

.execution-confirmation-panel {
    margin-top: 22px;
}

.execution-confirmation-panel > p:not(.eyebrow) {
    color: #66707a;
    line-height: 1.65;
    max-width: 850px;
}

.execution-confirmation-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    max-width: 760px;
}

.execution-confirmation-form label,
.execution-confirmation-form label strong {
    display: block;
}

.execution-confirmation-form label {
    color: #66707a;
    font-size: 14px;
    font-weight: 750;
}

.execution-confirmation-form label strong {
    color: #17202a;
    font-size: 20px;
    margin-top: 6px;
}

.execution-confirmation-form input {
    border: 2px solid #cfd5db;
    border-radius: 13px;
    font-size: 18px;
    min-height: 56px;
    padding: 13px 15px;
    text-transform: uppercase;
}

.execution-confirmation-form input:focus {
    border-color: #f5a623;
}

/* Menú de cuenta disponible en todas las pantallas internas */
.app-page .content,
.dashboard-page .content {
    padding-top: 104px;
}

.user-avatar-photo,
.global-user-summary img,
.profile-hero > img {
    object-fit: cover;
}

.global-user-menu {
    position: fixed;
    right: 34px;
    top: 20px;
    z-index: 500;
}

.global-user-summary {
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #dce1e6;
    border-radius: 17px;
    box-shadow: 0 12px 32px rgba(17, 24, 31, .13);
    cursor: pointer;
    display: flex;
    gap: 12px;
    list-style: none;
    min-height: 58px;
    min-width: 260px;
    padding: 8px 12px;
}

.global-user-summary::-webkit-details-marker {
    display: none;
}

.global-user-summary img,
.global-user-avatar {
    border: 2px solid #f5a623;
    border-radius: 50%;
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    width: 42px;
}

.global-user-avatar {
    background: #171b20;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.global-user-copy {
    display: grid;
    flex: 1;
    line-height: 1.25;
    min-width: 0;
}

.global-user-copy strong,
.global-user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-user-copy strong {
    color: #17202a;
    font-size: 14px;
}

.global-user-copy small {
    color: #6b747d;
    font-size: 11px;
    margin-top: 3px;
}

.global-user-chevron {
    color: #68717a;
    font-size: 18px;
    transition: transform .2s ease;
}

.global-user-menu[open] .global-user-chevron {
    transform: rotate(180deg);
}

.global-user-popover {
    background: #fff;
    border: 1px solid #dce1e6;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(17, 24, 31, .18);
    margin-top: 10px;
    overflow: hidden;
    padding: 12px;
    position: absolute;
    right: 0;
    width: 330px;
}

.global-user-identity {
    border-bottom: 1px solid #e7eaed;
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    padding: 10px 10px 14px;
}

.global-user-identity strong {
    color: #17202a;
    font-size: 17px;
}

.global-user-identity span,
.global-user-identity small {
    color: #66707a;
    overflow-wrap: anywhere;
}

.global-user-identity span {
    font-size: 13px;
}

.global-user-identity small {
    font-size: 11px;
}

.global-user-popover nav {
    display: grid;
    gap: 4px;
}

.global-user-popover nav a {
    border-radius: 11px;
    color: #29323b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    min-height: auto;
    padding: 11px 12px;
}

.global-user-popover nav a:hover {
    background: #f4f6f8;
    color: #111820;
}

.global-user-popover form {
    border-top: 1px solid #e7eaed;
    margin-top: 8px;
    padding-top: 8px;
}

.global-user-popover form button {
    background: #fff2f0;
    color: #9a3027;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    min-height: 44px;
    width: 100%;
}

/* Página privada de perfil */
.profile-hero {
    align-items: center;
    background: linear-gradient(135deg, #191d22, #2a3037);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(17, 24, 31, .16);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 22px;
    padding: 30px;
}

.profile-hero > img,
.profile-large-avatar {
    border: 4px solid rgba(245, 166, 35, .9);
    border-radius: 50%;
    display: grid;
    height: 110px;
    place-items: center;
    width: 110px;
}

.profile-large-avatar {
    background: #f5a623;
    color: #171b20;
    font-size: 42px;
    font-weight: 950;
}

.profile-hero h3 {
    font-size: 30px;
    margin: 3px 0 7px;
}

.profile-hero p {
    color: #d8dde2;
    margin: 0 0 5px;
}

.profile-hero > div > span {
    color: #aeb7c0;
    font-size: 13px;
}

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

.profile-grid .batch-panel,
.profile-details {
    margin: 0;
}

.profile-grid .batch-panel > p:not(.eyebrow) {
    color: #66707a;
    line-height: 1.6;
}

.profile-form {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.profile-form label {
    color: #313a43;
    font-size: 13px;
    font-weight: 850;
}

.profile-form input {
    background: #fff;
    border: 2px solid #d6dce1;
    border-radius: 13px;
    font: inherit;
    min-height: 52px;
    padding: 11px 13px;
    width: 100%;
}

.profile-form input[type="file"] {
    cursor: pointer;
    padding: 12px;
}

.profile-form input:focus {
    border-color: #f5a623;
    outline: none;
}

.profile-form .action-button {
    margin-top: 5px;
    min-height: 50px;
    width: 100%;
}

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

.profile-details dl > div {
    background: #f5f7f8;
    border: 1px solid #e4e8eb;
    border-radius: 13px;
    padding: 14px;
}

.profile-details dt {
    color: #6b747d;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-details dd {
    color: #1a232b;
    font-size: 14px;
    font-weight: 750;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .app-page .content {
        padding-top: 92px;
    }

    .global-user-menu {
        right: 16px;
        top: 14px;
    }

    .global-user-summary {
        min-width: 230px;
    }

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

    .profile-hero .account-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

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

@media (max-width: 650px) {
    .global-user-summary {
        min-width: auto;
    }

    .global-user-copy {
        display: none;
    }

    .global-user-popover {
        max-width: calc(100vw - 30px);
        width: 310px;
    }

    .profile-hero {
        justify-items: center;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-hero .account-status {
        grid-column: auto;
        justify-self: center;
    }

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

/* Permisos por rol e historial empresarial */
.profile-permissions {
    margin-top: 22px;
}

.profile-permissions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.profile-permissions > div span {
    background: #eaf8ef;
    border: 1px solid #bde4c9;
    border-radius: 999px;
    color: #216c39;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 13px;
}

.permission-denied-panel {
    background: #fff;
    border: 1px solid #e2e6e9;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(17, 24, 31, .1);
    margin: 6vh auto 0;
    max-width: 760px;
    padding: clamp(34px, 6vw, 68px);
    text-align: center;
}

.permission-denied-panel > span {
    display: block;
    font-size: 54px;
    margin-bottom: 18px;
}

.permission-denied-panel h2 {
    font-size: clamp(31px, 4vw, 48px);
    margin: 6px 0 17px;
}

.permission-denied-panel > p:not(.eyebrow) {
    color: #5f6973;
    font-size: 17px;
    line-height: 1.7;
}

.permission-denied-panel > small {
    background: #fff3da;
    border-radius: 9px;
    color: #8b5907;
    display: inline-block;
    font-weight: 800;
    margin: 8px 0 25px;
    padding: 9px 12px;
}

.permission-denied-panel > div {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.activity-summary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.activity-summary article,
.activity-panel {
    background: #fff;
    border: 1px solid #e2e6e9;
    border-radius: 19px;
    box-shadow: 0 10px 32px rgba(17, 24, 31, .07);
}

.activity-summary article {
    padding: 22px;
}

.activity-summary span,
.activity-summary strong {
    display: block;
}

.activity-summary span {
    color: #6b747d;
    font-size: 12px;
    font-weight: 800;
}

.activity-summary strong {
    color: #192129;
    font-size: 24px;
    margin-top: 10px;
}

.activity-panel {
    overflow: hidden;
    padding: 25px;
}

.activity-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.activity-heading h3 {
    margin: 3px 0 0;
}

.activity-heading > span {
    color: #6d7680;
    font-size: 12px;
}

.activity-table-wrap {
    overflow-x: auto;
}

.activity-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.activity-table th,
.activity-table td {
    border-bottom: 1px solid #e7eaed;
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.activity-table th {
    color: #6b747d;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.activity-table td {
    color: #2a333c;
    font-size: 13px;
}

.activity-table td strong,
.activity-table td small {
    display: block;
}

.activity-table td small {
    color: #7b848d;
    margin-top: 4px;
}

.activity-result {
    border-radius: 999px;
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 9px;
}

.activity-completado {
    background: #e8f7ed;
    color: #216c39;
}

.activity-error,
.activity-bloqueado {
    background: #fff0ee;
    color: #91342c;
}

.role-action-notice {
    background: #fff8e8;
    border: 1px solid #f0c66a;
    border-radius: 14px;
    color: #694b0d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    margin-top: 16px;
    padding: 16px 18px;
}

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

    .activity-heading,
    .permission-denied-panel > div {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 1180px) {
    .dashboard-operations {
        grid-template-columns: 1fr;
    }
}

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

    .latest-batch {
        grid-template-columns: 1fr;
    }
}
