/* Área interna do anunciante: primeiro o espaço disponível no celular. */
.v-anunciante,
.v-anunciante *,
.v-anunciante *::before,
.v-anunciante *::after {
    box-sizing: border-box;
}

.v-anunciante .v-content {
    min-width: 0;
    padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.v-anunciante .v-topbar {
    min-height: 60px;
    height: auto;
    padding-block: 0.35rem;
    gap: 0.5rem;
}

.v-anunciante-topbar-title {
    min-width: 0;
    margin-right: auto;
    color: var(--v-text);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v-anunciante-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.v-anunciante-topbar-actions > fluent-button,
.v-anunciante .v-nav-burger {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.v-account-menu {
    position: relative;
    min-width: 0;
}

.v-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 44px;
    max-width: min(16rem, 35vw);
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    border: 1px solid var(--v-line);
    border-radius: var(--v-radius-sm);
    background: var(--v-panel);
    color: var(--v-text);
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
}

.v-account-trigger::-webkit-details-marker {
    display: none;
}

.v-account-trigger:hover,
.v-account-menu[open] .v-account-trigger {
    border-color: var(--v-primary);
    background: var(--v-primary-050);
}

.v-account-trigger:focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

.v-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--v-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.v-account-trigger-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
    text-align: left;
}

.v-account-trigger-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
}

.v-account-trigger-copy small {
    color: var(--v-muted);
    font-size: 0.7rem;
}

.v-account-chevron {
    flex: 0 0 auto;
    color: var(--v-muted);
}

.v-account-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    width: min(17rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    border: 1px solid var(--v-line);
    border-radius: var(--v-radius);
    background: var(--v-panel);
    box-shadow: var(--v-shadow-md);
}

.v-account-panel-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.2rem;
    padding: 0.6rem 0.65rem 0.75rem;
    border-bottom: 1px solid var(--v-line);
    overflow-wrap: anywhere;
}

.v-account-panel-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.v-account-panel-identity > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
}

.v-account-panel-heading strong {
    font-size: 0.9rem;
}

.v-account-panel-identity > div > span {
    color: var(--v-muted);
    font-size: 0.78rem;
}

.v-account-panel-actions {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.4rem;
}

.v-account-panel-actions fluent-button,
.v-account-logout,
.v-account-action-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    border-radius: var(--v-radius-sm);
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    touch-action: manipulation;
}

.v-account-action-link {
    color: var(--v-text);
    text-decoration: none;
}

.v-account-action-link:hover {
    background: var(--v-primary-050);
    color: var(--v-primary);
}

.v-account-action-link--primary {
    color: var(--v-primary);
    font-weight: 700;
    border-bottom: 1px solid var(--v-line);
    border-radius: 0;
}

.v-account-action-link:focus-visible,
.v-account-panel-actions fluent-button:focus-within {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

.v-account-logout {
    border: 0;
    background: transparent;
    color: var(--v-danger);
    cursor: pointer;
}

.v-account-logout:hover {
    background: var(--v-danger-050);
}

.v-account-logout:focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

.v-anunciante .v-nav-link {
    min-height: 44px;
    touch-action: manipulation;
}

.v-anunciante .v-page-header {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.v-anunciante .v-page-header > div:first-child {
    min-width: 0;
}

.v-anunciante .v-page-header h1 {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.v-anunciante .v-page-header-actions {
    width: 100%;
    align-items: stretch;
}

.v-anunciante .v-page-header-actions > fluent-button {
    flex: 1 1 100%;
    min-height: 44px;
}

.v-anunciante .v-crud-panel {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0.875rem !important;
}

.v-anunciante-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
}

.v-anunciante-filter-bar > fluent-search,
.v-anunciante-filter-bar > fluent-select {
    min-width: 0;
    width: 100%;
}

.v-anunciante-filter-bar > fluent-badge {
    justify-self: start;
}

.v-anunciante-day-bar > fluent-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.v-anunciante-desktop-grid {
    display: none;
}

/* A grade do Fluent herda um cinza claro e corta a segunda linha com overflow.
   O texto da lista precisa do tom de tinta do tema, com contraste >= 4.5:1. */
.v-anunciante .v-anunciante-desktop-grid fluent-data-grid,
.v-anunciante .v-anunciante-desktop-grid td,
.v-anunciante .v-anunciante-desktop-grid fluent-label {
    color: var(--v-text);
    --neutral-foreground-rest: var(--v-text);
    --neutral-foreground-hint: var(--v-muted);
}

.v-anunciante .v-anunciante-desktop-grid td {
    min-height: 56px;
    overflow: visible;
    white-space: normal;
    line-height: 1.4;
}

.v-anunciante .v-item-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
}

.v-anunciante .v-item-cell-name,
.v-anunciante .v-item-cell-value {
    color: var(--v-text);
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.35;
}

.v-anunciante .v-item-cell-name,
.v-anunciante .v-item-cell-desc {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v-anunciante .v-item-cell-desc {
    color: var(--v-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.v-anunciante .v-item-cell-value {
    font-variant-numeric: tabular-nums;
}

.v-anunciante .v-item-stock {
    color: var(--v-ok);
    font-size: 0.9375rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.v-anunciante .v-grid-badge {
    --neutral-foreground-rest: var(--v-text);
    --neutral-fill-rest: var(--v-surface-2);
    --neutral-fill-secondary-rest: var(--v-surface-2);
    font-weight: 650;
}

.v-anunciante-mobile-list {
    display: grid;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
}

.v-anunciante-no-results {
    margin: 0.25rem 0 1rem;
    padding: 1rem;
    border: 1px dashed var(--v-line-strong);
    border-radius: var(--v-radius);
    color: var(--v-muted);
    background: var(--v-panel-soft);
}

.v-anunciante-record {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--v-line);
    border-radius: var(--v-radius);
    background: var(--v-panel-soft);
}

.v-anunciante-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.v-anunciante-record-head > fluent-badge {
    flex-shrink: 0;
}

.v-anunciante-record-title {
    min-width: 0;
}

.v-anunciante-record-title h2 {
    margin: 0;
    color: var(--v-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.v-anunciante-record-title > span {
    display: block;
    margin-top: 0.2rem;
    color: var(--v-muted);
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}

.v-anunciante-record-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0.75rem 0 0;
    color: var(--v-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.v-anunciante-record-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.9rem;
    margin: 0.9rem 0 0;
    font-size: 0.86rem;
}

.v-anunciante-record-facts > div {
    min-width: 0;
}

.v-anunciante-record-facts dt {
    color: var(--v-muted);
    font-size: 0.76rem;
}

.v-anunciante-record-facts dd {
    margin: 0.1rem 0 0;
    color: var(--v-text);
    font-weight: 650;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.v-anunciante-record-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--v-line);
}

.v-anunciante-record-actions > fluent-button {
    min-width: 0;
    min-height: 44px;
    width: 100%;
    touch-action: manipulation;
}

.v-anunciante-record-actions > fluent-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.v-anunciante .v-dash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.v-anunciante .v-dash-kpi-card {
    min-width: 0;
    min-height: 132px;
    padding: 0.85rem;
    touch-action: manipulation;
}

.v-anunciante .v-dash-kpi-top {
    margin-bottom: 0.35rem;
}

.v-anunciante .v-dash-alert-item {
    flex-wrap: wrap;
    min-height: 48px;
    padding: 0.75rem;
}

.v-anunciante .v-dash-alert-text {
    min-width: 0;
}

.v-anunciante .v-dash-alert-action {
    margin-left: auto;
}

.v-anunciante .v-dash-kpi-label,
.v-anunciante .v-dash-kpi-sub,
.v-anunciante .v-dash-alert-text {
    overflow-wrap: anywhere;
}

.v-anunciante .v-onboarding-shell,
.v-anunciante .v-dash-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.v-anunciante .v-account-status {
    padding: 1rem;
    margin-bottom: 1rem;
}

.v-anunciante .v-account-status-checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.v-anunciante .v-account-status-cta {
    margin-left: 0;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    touch-action: manipulation;
}

.v-anunciante .v-onboarding-progress-box {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.v-anunciante .v-onboarding-steps-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.v-anunciante .v-onboarding-step-info strong,
.v-anunciante .v-onboarding-step-info span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.v-anunciante .v-dash-main-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.v-anunciante .v-dash-col-primary,
.v-anunciante .v-dash-col-secondary {
    min-width: 0;
    gap: 1rem;
}

.v-anunciante .v-dash-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
}

.v-anunciante .v-dash-card-title-group,
.v-anunciante .v-dash-card-title-group > div {
    min-width: 0;
}

.v-anunciante .v-dash-item-row {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--v-line);
}

.v-anunciante .v-dash-item-title-row {
    flex-wrap: wrap;
}

.v-anunciante .v-dash-item-actions {
    width: 100%;
    justify-content: flex-end;
}

.v-anunciante .v-dash-item-actions fluent-anchor {
    min-width: 44px;
    min-height: 44px;
}

.v-anunciante .v-filter-bar {
    align-items: stretch;
    padding: 0.75rem;
}

.v-anunciante .v-filter-bar > fluent-search,
.v-anunciante .v-filter-sort {
    min-width: 0 !important;
    width: 100%;
}

.v-anunciante .v-filter-sort {
    margin-left: 0;
    justify-content: space-between;
}

.v-anunciante .v-sched-panel,
.v-anunciante .v-service-fluent {
    height: auto;
    min-width: 0;
}

.v-anunciante .v-appt-card {
    min-width: 0;
}

.v-anunciante .v-appt-card fluent-stack {
    flex-wrap: wrap;
    min-width: 0;
}

.v-anunciante .v-appt-card fluent-button {
    min-height: 44px;
}

.v-anunciante :is(a, button, fluent-button, fluent-anchor, fluent-select, fluent-search):focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .v-anunciante-topbar-title {
        display: none;
    }

    .v-anunciante-topbar-actions {
        margin-left: auto;
    }

    .v-account-trigger {
        width: 44px;
        min-width: 44px;
        padding: 0.3rem;
        justify-content: center;
    }

    .v-account-trigger-copy,
    .v-account-chevron {
        display: none;
    }

    .v-anunciante .v-dash-kpi-value {
        font-size: 1.6rem;
    }
}

@media (min-width: 600px) {
    .v-anunciante .v-content {
        padding: 1.5rem;
    }

    .v-anunciante .v-page-header-actions {
        width: auto;
    }

    .v-anunciante .v-page-header-actions > fluent-button {
        flex: 0 1 auto;
    }

    .v-anunciante-filter-bar {
        grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(140px, auto));
    }

    .v-anunciante-filter-bar > fluent-badge {
        grid-column: 1 / -1;
    }

    .v-anunciante-day-bar {
        grid-template-columns: minmax(0, 1fr) auto minmax(180px, 1fr);
    }

    .v-anunciante-day-bar > fluent-badge {
        grid-column: auto;
    }

    .v-anunciante .v-onboarding-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v-anunciante .v-account-status {
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .v-anunciante .v-account-status-checks {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem 1.1rem;
    }

    .v-anunciante .v-account-status-cta {
        width: auto;
        margin-left: auto;
    }
}

@media (min-width: 760px) {
    .v-anunciante-desktop-grid {
        display: block;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .v-anunciante-desktop-grid fluent-data-grid {
        min-width: 860px;
    }

    .v-anunciante-mobile-list {
        display: none;
    }
}

@media (min-width: 960px) {
    .v-anunciante .v-content {
        padding: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .v-anunciante .v-dash-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .v-anunciante .v-dash-main-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .v-anunciante .v-dash-item-row {
        flex-wrap: nowrap;
        padding: 0.65rem 0.75rem;
        border-bottom-color: transparent;
    }

    .v-anunciante .v-dash-item-actions {
        width: auto;
    }
}

/* Codex 02 advertiser refinement: editorial hierarchy with operational density. */
.v-anunciante .v-content {
    max-width: 1480px;
    background:
        radial-gradient(65% 32% at 100% 0%, color-mix(in srgb, var(--v-primary-050) 72%, transparent), transparent 72%),
        var(--v-surface);
}

.v-anunciante .v-topbar {
    border-bottom-color: var(--v-ink);
    background: color-mix(in srgb, var(--v-surface) 92%, transparent);
}

.v-anunciante .v-page-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--v-ink);
}

.v-anunciante .v-page-header h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 4.15rem);
    line-height: .96;
    letter-spacing: -.065em;
}

.v-anunciante .v-page-header p {
    max-width: 54ch;
    font-size: .98rem;
}

.v-anunciante .v-page-header-actions {
    gap: .55rem;
}

.v-anunciante .v-page-header-actions fluent-button {
    min-height: 46px;
}

.v-anunciante .v-dash-alert-item {
    border-radius: 0;
    border-left-width: 4px;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--v-line) 78%, transparent);
}

.v-anunciante .v-dash-alert-item:focus-visible,
.v-anunciante .v-dash-kpi-card:focus-visible,
.v-anunciante .v-dash-shortcut-item:focus-visible,
.v-anunciante .v-onboarding-step-card:focus-visible,
.v-anunciante .v-dash-card a:focus-visible {
    outline: 3px solid var(--v-primary);
    outline-offset: 3px;
}

.v-anunciante .v-dash-kpi-card {
    border-color: var(--v-ink);
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--v-line);
}

.v-anunciante .v-dash-kpi-card:hover {
    border-color: var(--v-primary);
    box-shadow: 8px 8px 0 var(--v-primary-100);
}

.v-anunciante .v-dash-kpi-value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -.05em;
}

.v-anunciante .v-onboarding-shell,
.v-anunciante .v-dash-card {
    border-color: var(--v-ink);
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--v-line);
}

.v-anunciante .v-onboarding-shell {
    border-left: 4px solid var(--v-primary);
}

.v-anunciante .v-onboarding-title {
    max-width: 30ch;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.v-anunciante .v-onboarding-progress-bar {
    height: 8px;
    border: 1px solid var(--v-ink);
    background: var(--v-panel);
}

.v-anunciante .v-onboarding-step-card,
.v-anunciante .v-dash-shortcut-item,
.v-anunciante .v-anunciante-record {
    border-radius: 0;
}

.v-anunciante .v-onboarding-step-card.is-pending {
    border-color: var(--v-line-strong);
}

.v-anunciante .v-dash-card-header {
    border-bottom-color: var(--v-ink);
}

.v-anunciante .v-dash-item-row:hover {
    border-color: var(--v-ink);
    background: var(--v-primary-050);
}

@media (max-width: 600px) {
    .v-anunciante .v-content {
        padding-top: 1.25rem;
    }

    .v-anunciante .v-page-header h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .v-anunciante .v-dash-kpi-card {
        min-height: 140px;
        box-shadow: 4px 4px 0 var(--v-line);
    }

    .v-anunciante .v-dash-card,
    .v-anunciante .v-onboarding-shell {
        box-shadow: 4px 4px 0 var(--v-line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v-anunciante .v-dash-alert-item:hover,
    .v-anunciante .v-dash-kpi-card:hover,
    .v-anunciante .v-dash-shortcut-item:hover,
    .v-anunciante .v-onboarding-step-card:hover {
        transform: none;
    }
}

/* Perfil: edição primeiro, acesso ao lado e consumo do plano abaixo. */
.v-profile,
.v-profile-grid,
.v-profile-fields {
    display: grid;
    gap: var(--v-3);
    min-width: 0;
}

.v-profile-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.v-profile .v-profile-panel {
    min-width: 0;
    padding: var(--v-2);
}

.v-profile-heading {
    margin-bottom: var(--v-3);
}

.v-profile h2 {
    margin: 0 0 var(--v-1);
    font-size: 1.25rem;
    font-weight: 800;
    text-wrap: balance;
}

.v-profile h3 {
    margin: 0;
    font-size: 1rem;
}

.v-profile-heading p,
.v-profile-hint {
    margin: var(--v-1) 0 0;
    color: var(--v-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 65ch;
}

.v-profile-fields fluent-text-field {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 1rem;
}

.v-profile-fields fluent-text-field::part(control) {
    min-height: 44px;
    font-size: 1rem;
}

.v-profile-error {
    margin: var(--v-1) 0 0;
    color: var(--v-danger);
    font-size: 0.875rem;
    line-height: 1.5;
}

.v-profile-error:empty {
    display: none;
}

.v-profile-feedback {
    margin-top: var(--v-2);
}

.v-profile-save,
.v-profile-security {
    margin-top: var(--v-3);
    padding-top: var(--v-2);
    border-top: 1px solid var(--v-line);
}

.v-profile-save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--v-2);
}

.v-profile-save .v-profile-hint {
    margin: 0;
}

.v-profile fluent-button,
.v-profile fluent-anchor {
    min-height: 44px;
    width: 100%;
}

.v-profile-security fluent-button {
    margin-top: var(--v-2);
}

.v-profile-details {
    display: grid;
    gap: var(--v-2);
    margin: 0;
}

.v-profile-details > div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.v-profile-details dt {
    color: var(--v-muted);
    font-size: 0.875rem;
}

.v-profile-details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.v-profile-phone {
    font-family: var(--v-mono);
}

.v-profile-plan {
    min-width: 0;
}

.v-profile-plan > h2 {
    margin-bottom: var(--v-2);
}

.v-profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--v-2);
    padding: var(--v-4);
    color: var(--v-muted);
}

@media (min-width: 600px) {
    .v-profile .v-profile-panel {
        padding: var(--v-3);
    }

    .v-profile fluent-button,
    .v-profile fluent-anchor {
        width: auto;
    }

    .v-profile-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .v-profile-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

/* Plano e checkout Pix: mesmas superfícies e tokens ZERO/FORM do perfil. */
.v-billing {
    min-width: 0;
    border-top: 4px solid var(--v-primary);
}

.v-billing-summary,
.v-billing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--v-2);
}

.v-billing-summary {
    justify-content: space-between;
}

.v-profile .v-billing-name {
    margin: var(--v-1) 0;
    color: var(--v-verm-text);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
}

.v-billing-checkout {
    margin-top: var(--v-3);
    padding-top: var(--v-3);
    border-top: 1px solid var(--v-line);
}

.v-billing-feedback:empty { display: none; }
.v-billing-feedback:not(:empty) {
    margin-top: var(--v-2);
    padding: var(--v-2);
    background: var(--v-info-050);
    color: var(--v-info);
}

.v-billing-selects,
.v-billing-pix {
    display: grid;
    gap: var(--v-3);
    margin-block: var(--v-3);
    grid-template-columns: minmax(0, 1fr);
}

.v-billing label {
    display: block;
    margin-bottom: var(--v-1);
    font-weight: 600;
}

.v-billing select,
.v-billing textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: var(--v-1) var(--v-2);
    color: var(--v-text);
    background: var(--v-panel);
    border: 1px solid var(--v-line-strong);
    border-radius: var(--v-radius);
    font: inherit;
}

.v-billing textarea {
    font-family: var(--v-mono);
    font-size: 0.875rem;
    resize: vertical;
    overflow-wrap: anywhere;
    margin-bottom: var(--v-2);
}

.v-billing fluent-text-field {
    width: 100%;
    max-width: 26rem;
    font-size: 1rem;
}
.v-billing fluent-text-field::part(control) { min-height: 44px; }
.v-billing-copy { min-width: 0; }
.v-billing-copy p { margin-top: 0; line-height: 1.5; }
.v-billing-pix img { width: min(224px, 100%); height: auto; aspect-ratio: 1; }
.v-billing-total { display: flex; flex-wrap: wrap; gap: var(--v-2); align-items: baseline; }
.v-billing-total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }

@media (min-width: 600px) {
    .v-billing-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
    .v-billing-pix { grid-template-columns: 224px minmax(0, 1fr); align-items: center; }
}

@media (max-width: 599px) {
    .v-billing { padding: var(--v-2); }
    .v-billing-actions { width: 100%; }
    .v-billing-actions > * { flex: 1 1 100%; }
}

/* O input permanece montado durante toda a leitura de um lote de fotos. */
.v-img-select {
    position: relative;
    min-height: 64px;
    padding: 1rem;
    text-align: center;
    color: var(--v-text);
}
.v-img-select input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.v-img-select:focus-within {
    outline: 2px solid var(--v-primary);
    outline-offset: 3px;
}
.v-img-select:has(input:disabled) { opacity: .6; }
.v-img-select input:disabled { cursor: not-allowed; }
.v-img-picker .v-img-remove,
.v-img-picker .v-img-thumb-remove { min-width: 44px !important; height: 44px !important; }
@media (prefers-reduced-motion: reduce) {
    .v-img-picker .v-img-drop { transition: none; }
}
