/* ======================================================================
   R2.1T.1B | Minha Visão para o Município
   Jornada jogável da Politeia Viva
   ====================================================================== */

.tv2-vision-page {
    --tv2-quest-rail: 270px;
    --tv2-field-bg: rgba(255, 255, 255, .74);
    --tv2-field-border: rgba(90, 111, 166, .2);
    --tv2-danger: #c83f56;
    --tv2-danger-rgb: 200, 63, 86;
}

.tv2-vision-container,
.tv2-contribution-container {
    max-width: 1420px;
}

.tv2-vision-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 18px;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border-radius: var(--tv2-radius-lg);
}

.tv2-vision-intro::after {
    position: absolute;
    inset: auto -12% -74% auto;
    width: 520px;
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: conic-gradient(
        rgba(var(--tv2-violet-rgb), .2),
        rgba(var(--tv2-cyan-rgb), .13),
        rgba(var(--tv2-amber-rgb), .18),
        rgba(var(--tv2-violet-rgb), .2)
    );
    filter: blur(4px);
    mask-image: radial-gradient(circle, #000 0 54%, transparent 72%);
    animation: tv2-vision-orbit 26s linear infinite;
}

.tv2-vision-intro__copy {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.tv2-vision-intro h1 {
    max-width: 880px;
    margin: 0;
    color: var(--tv2-ink);
    font-size: clamp(2.2rem, 4.2vw, 4.5rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.tv2-vision-intro p {
    max-width: 850px;
    margin: 20px 0 0;
    color: var(--tv2-text);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    line-height: 1.75;
}

.tv2-vision-intro__seal {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 172px;
    aspect-ratio: 1;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    text-align: center;
    color: var(--tv2-ink);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .96), transparent 34%),
        linear-gradient(145deg, rgba(var(--tv2-violet-rgb), .17), rgba(var(--tv2-cyan-rgb), .12));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .95) inset,
        0 24px 55px rgba(53, 68, 128, .16),
        0 0 0 12px rgba(255, 255, 255, .22);
}

.tv2-vision-intro__seal::before,
.tv2-vision-intro__seal::after {
    position: absolute;
    inset: -13px;
    border: 1px dashed rgba(var(--tv2-violet-rgb), .25);
    border-radius: inherit;
    content: "";
    animation: tv2-seal-spin 22s linear infinite;
}

.tv2-vision-intro__seal::after {
    inset: 8px;
    border-style: solid;
    border-color: rgba(255, 255, 255, .72);
    animation-direction: reverse;
    animation-duration: 17s;
}

.tv2-vision-intro__seal .material-icons {
    font-size: 38px;
    color: var(--tv2-violet);
    filter: drop-shadow(0 10px 16px rgba(var(--tv2-violet-rgb), .2));
}

.tv2-vision-intro__seal strong,
.tv2-vision-intro__seal small {
    display: block;
}

.tv2-vision-intro__seal strong {
    font-size: 1.05rem;
    font-weight: 950;
}

.tv2-vision-intro__seal small {
    max-width: 110px;
    color: var(--tv2-muted);
    font-size: .74rem;
    line-height: 1.35;
}

.tv2-install-warning,
.tv2-form-errors {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 22px;
}

.tv2-install-warning {
    border-color: rgba(var(--tv2-amber-rgb), .35);
    background:
        linear-gradient(145deg, rgba(255, 250, 230, .9), rgba(255, 255, 255, .6));
}

.tv2-install-warning > .material-icons {
    color: var(--tv2-amber);
}

.tv2-form-errors {
    border-color: rgba(var(--tv2-danger-rgb), .32);
    background:
        linear-gradient(145deg, rgba(255, 241, 244, .92), rgba(255, 255, 255, .64));
}

.tv2-form-errors > .material-icons {
    color: var(--tv2-danger);
}

.tv2-install-warning strong,
.tv2-form-errors strong {
    display: block;
    color: var(--tv2-ink);
    font-weight: 900;
}

.tv2-install-warning p,
.tv2-form-errors ul {
    margin: 6px 0 0;
    color: var(--tv2-text);
    line-height: 1.55;
}

.tv2-form-errors ul {
    padding-left: 18px;
}

.tv2-install-warning code {
    padding: 2px 7px;
    border-radius: 7px;
    color: var(--tv2-ink);
    background: rgba(255, 255, 255, .78);
}

.tv2-vision-form {
    display: grid;
    grid-template-columns: var(--tv2-quest-rail) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.tv2-quest-rail {
    position: sticky;
    top: 18px;
    padding: 20px;
    border-radius: 26px;
}

.tv2-quest-rail__identity {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px 4px 18px;
    border-bottom: 1px solid var(--tv2-line);
}

.tv2-quest-rail__identity > .material-icons {
    display: grid;
    place-items: center;
    width: 45px;
    aspect-ratio: 1;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--tv2-violet), var(--tv2-blue));
    box-shadow: 0 14px 25px rgba(var(--tv2-violet-rgb), .22);
}

.tv2-quest-rail__identity small,
.tv2-quest-rail__identity strong {
    display: block;
}

.tv2-quest-rail__identity small {
    color: var(--tv2-muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tv2-quest-rail__identity strong {
    margin-top: 2px;
    color: var(--tv2-ink);
    font-size: 1.03rem;
    font-weight: 950;
}

.tv2-quest-steps {
    display: grid;
    gap: 7px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.tv2-quest-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    opacity: .56;
    transition:
        opacity .22s ease,
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.tv2-quest-steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    aspect-ratio: 1;
    border-radius: 11px;
    color: var(--tv2-muted);
    font-size: .78rem;
    font-weight: 950;
    background: rgba(105, 121, 163, .1);
}

.tv2-quest-steps strong,
.tv2-quest-steps small {
    display: block;
}

.tv2-quest-steps strong {
    color: var(--tv2-ink);
    font-size: .83rem;
    font-weight: 900;
}

.tv2-quest-steps small {
    margin-top: 2px;
    color: var(--tv2-muted);
    font-size: .7rem;
}

.tv2-quest-steps li.is-active,
.tv2-quest-steps li.is-complete {
    opacity: 1;
}

.tv2-quest-steps li.is-active {
    transform: translateX(3px);
    border-color: rgba(var(--tv2-violet-rgb), .16);
    background: rgba(var(--tv2-violet-rgb), .08);
}

.tv2-quest-steps li.is-active > span {
    color: #fff;
    background: linear-gradient(145deg, var(--tv2-violet), var(--tv2-blue));
    box-shadow: 0 9px 18px rgba(var(--tv2-violet-rgb), .2);
}

.tv2-quest-steps li.is-complete > span {
    color: var(--tv2-green);
    background: rgba(var(--tv2-green-rgb), .12);
}

.tv2-quest-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(101, 118, 163, .1);
}

.tv2-quest-progress > span {
    display: block;
    width: 16.666%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tv2-violet), var(--tv2-cyan));
    box-shadow: 0 0 18px rgba(var(--tv2-violet-rgb), .28);
    transition: width .35s cubic-bezier(.2, .8, .2, 1);
}

.tv2-quest-progress__label {
    display: block;
    margin-top: 9px;
    color: var(--tv2-muted);
    font-size: .72rem;
    font-weight: 800;
    text-align: right;
}

.tv2-quest-stage {
    min-width: 0;
}

.tv2-quest-panel {
    padding: clamp(24px, 3vw, 42px);
    border-radius: var(--tv2-radius-lg);
}

.tv2-vision-page.is-enhanced .tv2-quest-panel {
    display: none;
}

.tv2-vision-page.is-enhanced .tv2-quest-panel.is-active {
    display: block;
    animation: tv2-panel-enter .38s cubic-bezier(.2, .8, .2, 1) both;
}

.tv2-quest-panel__head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 30px;
}

.tv2-quest-panel__icon {
    display: grid;
    place-items: center;
    width: 64px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 21px;
    color: var(--tv2-violet);
    font-size: 31px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .98), transparent 35%),
        linear-gradient(145deg, rgba(var(--tv2-violet-rgb), .15), rgba(var(--tv2-cyan-rgb), .09));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 17px 32px rgba(43, 60, 113, .12);
}

.tv2-quest-panel__head h2 {
    margin: 0;
    color: var(--tv2-ink);
    font-size: clamp(1.7rem, 2.7vw, 2.65rem);
    font-weight: 950;
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.tv2-quest-panel__head p {
    max-width: 850px;
    margin: 12px 0 0;
    color: var(--tv2-text);
    line-height: 1.65;
}

.tv2-field-group,
.tv2-choice-fieldset {
    margin: 0 0 26px;
}

.tv2-field-group label,
.tv2-choice-fieldset legend {
    display: block;
    margin-bottom: 10px;
    color: var(--tv2-ink);
    font-size: .9rem;
    font-weight: 900;
}

.tv2-choice-fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

.tv2-field-group input[type="text"],
.tv2-field-group input[type="search"],
.tv2-field-group textarea,
.tv2-action-card textarea {
    width: 100%;
    border: 1px solid var(--tv2-field-border);
    border-radius: 17px;
    outline: none;
    color: var(--tv2-ink);
    font: inherit;
    line-height: 1.6;
    background: var(--tv2-field-bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .88) inset,
        0 10px 26px rgba(32, 48, 91, .045);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        transform .2s ease;
}

.tv2-field-group input[type="text"],
.tv2-field-group input[type="search"] {
    min-height: 54px;
    padding: 13px 16px;
}

.tv2-field-group textarea,
.tv2-action-card textarea {
    display: block;
    min-height: 130px;
    padding: 15px 16px;
    resize: vertical;
}

.tv2-field-group--hero textarea {
    min-height: 230px;
    font-size: 1.04rem;
}

.tv2-field-group input:focus,
.tv2-field-group textarea:focus,
.tv2-action-card textarea:focus {
    border-color: rgba(var(--tv2-violet-rgb), .58);
    background: rgba(255, 255, 255, .92);
    box-shadow:
        0 0 0 4px rgba(var(--tv2-violet-rgb), .1),
        0 18px 42px rgba(40, 56, 108, .09);
}

.tv2-field-group.has-error input,
.tv2-field-group.has-error textarea,
.tv2-choice-fieldset.has-error {
    border-color: rgba(var(--tv2-danger-rgb), .5);
}

.tv2-field-group > small,
.tv2-field-meta small,
.tv2-choice-fieldset > small {
    display: block;
    margin-top: 8px;
    color: var(--tv2-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.tv2-field-meta {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.tv2-field-meta > span {
    flex: none;
    margin-top: 8px;
    color: var(--tv2-muted);
    font-size: .72rem;
    font-weight: 800;
}

.tv2-field-error {
    color: var(--tv2-danger) !important;
    font-weight: 800;
}

.tv2-inline-error {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: -8px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--tv2-danger-rgb), .24);
    border-radius: 14px;
    color: var(--tv2-danger);
    font-size: .82rem;
    font-weight: 800;
    background: rgba(var(--tv2-danger-rgb), .06);
}

.tv2-municipality-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 0 14px;
    border: 1px solid var(--tv2-field-border);
    border-radius: 18px;
    background: var(--tv2-field-bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .88) inset,
        0 12px 28px rgba(32, 48, 91, .05);
}

.tv2-municipality-picker > .material-icons {
    color: var(--tv2-coral);
}

.tv2-municipality-picker input[type="search"] {
    min-height: 54px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tv2-municipality-picker__state {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--tv2-green);
    font-size: .67rem;
    font-weight: 900;
    background: rgba(var(--tv2-green-rgb), .1);
}

.tv2-municipality-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 310px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    background: rgba(250, 252, 255, .96);
    box-shadow: 0 24px 60px rgba(23, 37, 78, .18);
    backdrop-filter: blur(20px) saturate(130%);
}

.tv2-municipality-results button {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 9px 11px;
    border: 0;
    border-radius: 12px;
    color: var(--tv2-text);
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.tv2-municipality-results button:hover,
.tv2-municipality-results button:focus-visible,
.tv2-municipality-results button.is-active {
    outline: none;
    color: var(--tv2-ink);
    background: rgba(var(--tv2-violet-rgb), .09);
}

.tv2-municipality-results strong,
.tv2-municipality-results small {
    display: block;
}

.tv2-municipality-results strong {
    font-size: .84rem;
}

.tv2-municipality-results small {
    margin-top: 2px;
    color: var(--tv2-muted);
    font-size: .69rem;
}

.tv2-horizon-choice-grid,
.tv2-type-choice-grid,
.tv2-collaboration-grid,
.tv2-visibility-grid {
    display: grid;
    gap: 12px;
}

.tv2-horizon-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv2-type-choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tv2-collaboration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv2-visibility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv2-choice-card,
.tv2-collaboration-choice,
.tv2-visibility-choice {
    position: relative;
    cursor: pointer;
}

.tv2-choice-card input,
.tv2-collaboration-choice input,
.tv2-visibility-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tv2-choice-card {
    --choice-rgb: var(--tv2-violet-rgb);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 11px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(var(--choice-rgb), .15);
    border-radius: 19px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--choice-rgb), .11), transparent 48%),
        rgba(255, 255, 255, .62);
    box-shadow: 0 10px 24px rgba(32, 47, 92, .045);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.tv2-choice-card.tv2-tone-coral { --choice-rgb: var(--tv2-coral-rgb); }
.tv2-choice-card.tv2-tone-amber { --choice-rgb: var(--tv2-amber-rgb); }
.tv2-choice-card.tv2-tone-violet { --choice-rgb: var(--tv2-violet-rgb); }
.tv2-choice-card.tv2-tone-blue { --choice-rgb: var(--tv2-blue-rgb); }
.tv2-choice-card.tv2-tone-cyan { --choice-rgb: var(--tv2-cyan-rgb); }
.tv2-choice-card.tv2-tone-green { --choice-rgb: var(--tv2-green-rgb); }
.tv2-choice-card.tv2-tone-orange { --choice-rgb: var(--tv2-orange-rgb); }
.tv2-choice-card.tv2-tone-magenta { --choice-rgb: var(--tv2-magenta-rgb); }

.tv2-choice-card:hover,
.tv2-choice-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(var(--choice-rgb), .42);
    box-shadow: 0 18px 38px rgba(31, 46, 91, .1);
}

.tv2-choice-card.is-selected,
.tv2-choice-card:has(input:checked) {
    border-color: rgba(var(--choice-rgb), .62);
    background:
        radial-gradient(circle at 100% 0, rgba(var(--choice-rgb), .2), transparent 52%),
        rgba(255, 255, 255, .88);
    box-shadow:
        0 0 0 3px rgba(var(--choice-rgb), .08),
        0 18px 38px rgba(31, 46, 91, .11);
}

.tv2-choice-card > .material-icons {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 43px;
    aspect-ratio: 1;
    border-radius: 14px;
    color: rgb(var(--choice-rgb));
    background: rgba(var(--choice-rgb), .1);
}

.tv2-choice-card strong,
.tv2-choice-card small {
    display: block;
}

.tv2-choice-card strong {
    color: var(--tv2-ink);
    font-size: .84rem;
    font-weight: 900;
}

.tv2-choice-card small {
    color: var(--tv2-muted);
    font-size: .7rem;
}

.tv2-choice-card--compact {
    grid-template-columns: 39px minmax(0, 1fr);
    min-height: 68px;
    padding: 12px;
}

.tv2-choice-card--compact > .material-icons {
    width: 39px;
}

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

.tv2-action-card {
    --action-rgb: var(--tv2-violet-rgb);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid rgba(var(--action-rgb), .18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--action-rgb), .13), transparent 48%),
        rgba(255, 255, 255, .64);
    box-shadow: 0 13px 30px rgba(31, 47, 92, .055);
}

.tv2-action-card::after {
    position: absolute;
    right: -30px;
    bottom: -38px;
    width: 110px;
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: rgba(var(--action-rgb), .08);
    filter: blur(2px);
}

.tv2-action-card--change { --action-rgb: var(--tv2-coral-rgb); }
.tv2-action-card--create { --action-rgb: var(--tv2-blue-rgb); }
.tv2-action-card--strengthen { --action-rgb: var(--tv2-amber-rgb); }
.tv2-action-card--preserve { --action-rgb: var(--tv2-green-rgb); }

.tv2-action-card > .material-icons {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 14px;
    color: rgb(var(--action-rgb));
    background: rgba(var(--action-rgb), .11);
}

.tv2-action-card > strong {
    align-self: center;
    color: var(--tv2-ink);
    font-size: .9rem;
    font-weight: 950;
}

.tv2-action-card textarea {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    min-height: 145px;
    border-color: rgba(var(--action-rgb), .14);
}

.tv2-collaboration-choice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--tv2-field-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, .62);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.tv2-collaboration-choice:hover,
.tv2-collaboration-choice:focus-within {
    transform: translateY(-2px);
    border-color: rgba(var(--tv2-violet-rgb), .4);
}

.tv2-collaboration-choice.is-selected,
.tv2-collaboration-choice:has(input:checked) {
    border-color: rgba(var(--tv2-violet-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--tv2-violet-rgb), .08);
}

.tv2-collaboration-choice .material-icons {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 14px;
    color: var(--tv2-violet);
    background: rgba(var(--tv2-violet-rgb), .1);
}

.tv2-collaboration-choice strong {
    color: var(--tv2-ink);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.3;
}

.tv2-visibility-fieldset {
    margin-bottom: 0;
}

.tv2-visibility-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--tv2-field-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .6);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.tv2-visibility-choice:hover,
.tv2-visibility-choice:focus-within {
    transform: translateY(-2px);
    border-color: rgba(var(--tv2-cyan-rgb), .42);
}

.tv2-visibility-choice.is-selected,
.tv2-visibility-choice:has(input:checked) {
    border-color: rgba(var(--tv2-cyan-rgb), .58);
    box-shadow: 0 0 0 3px rgba(var(--tv2-cyan-rgb), .08);
}

.tv2-visibility-choice > .material-icons {
    color: var(--tv2-cyan);
}

.tv2-visibility-choice strong,
.tv2-visibility-choice small {
    display: block;
}

.tv2-visibility-choice strong {
    color: var(--tv2-ink);
    font-size: .84rem;
    font-weight: 900;
}

.tv2-visibility-choice small {
    margin-top: 5px;
    color: var(--tv2-muted);
    font-size: .72rem;
    line-height: 1.42;
}

.tv2-vision-preview {
    position: relative;
    min-height: 470px;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, .2), transparent 25%),
        radial-gradient(circle at 12% 88%, rgba(var(--tv2-cyan-rgb), .34), transparent 32%),
        linear-gradient(145deg, #182456, #47357d 58%, #1f7184);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .42) inset,
        0 34px 80px rgba(22, 31, 76, .28);
}

.tv2-vision-preview__sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tv2-vision-preview__sky span {
    position: absolute;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    filter: blur(1px);
    animation: tv2-preview-float 12s ease-in-out infinite alternate;
}

.tv2-vision-preview__sky span:nth-child(1) { top: -70px; right: 12%; }
.tv2-vision-preview__sky span:nth-child(2) { right: -80px; bottom: 8%; width: 250px; animation-delay: -3s; }
.tv2-vision-preview__sky span:nth-child(3) { bottom: -110px; left: 5%; width: 290px; animation-delay: -6s; }
.tv2-vision-preview__sky span:nth-child(4) { top: 38%; left: 42%; width: 90px; animation-delay: -9s; }

.tv2-vision-preview > *:not(.tv2-vision-preview__sky) {
    position: relative;
    z-index: 1;
}

.tv2-vision-preview__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.tv2-vision-preview__topline span,
.tv2-vision-preview__type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    font-size: .7rem;
    font-weight: 850;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.tv2-vision-preview__type {
    margin-top: 34px;
}

.tv2-vision-preview h3 {
    max-width: 900px;
    margin: 15px 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.tv2-vision-preview > p {
    max-width: 900px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}

.tv2-vision-preview__path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.tv2-vision-preview__path > span {
    min-height: 96px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.tv2-vision-preview__path strong,
.tv2-vision-preview__path small {
    display: block;
}

.tv2-vision-preview__path strong {
    color: #fff;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tv2-vision-preview__path small {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tv2-vision-preview footer {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 26px;
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 800;
}

.tv2-publication-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(var(--tv2-green-rgb), .18);
    border-radius: 17px;
    color: var(--tv2-text);
    background: rgba(var(--tv2-green-rgb), .07);
}

.tv2-publication-note .material-icons {
    color: var(--tv2-green);
}

.tv2-publication-note p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.55;
}

.tv2-quest-navigation {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 13px;
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 22px 55px rgba(23, 37, 78, .16);
}

.tv2-quest-navigation__save {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.tv2-quest-navigation__save small {
    color: var(--tv2-muted);
    font-size: .7rem;
}

.tv2-button--quiet {
    color: var(--tv2-text);
    border-color: rgba(91, 108, 153, .14);
    background: rgba(255, 255, 255, .55);
}

.tv2-button--publish {
    background: linear-gradient(135deg, var(--tv2-violet), var(--tv2-cyan));
    box-shadow: 0 16px 34px rgba(var(--tv2-violet-rgb), .24);
}

.tv2-button[disabled] {
    cursor: not-allowed;
    opacity: .46;
    transform: none !important;
    box-shadow: none !important;
}

/* Página de leitura da contribuição */

.tv2-contribution-hero {
    --tone-rgb: var(--tv2-violet-rgb);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    min-height: 430px;
    margin-top: 18px;
    padding: clamp(28px, 5vw, 62px);
    overflow: hidden;
    border-radius: var(--tv2-radius-lg);
    background:
        radial-gradient(circle at 84% 20%, rgba(var(--tone-rgb), .18), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
    box-shadow: var(--tv2-shadow-deep);
}

.tv2-contribution-hero.tv2-tone-coral { --tone-rgb: var(--tv2-coral-rgb); }
.tv2-contribution-hero.tv2-tone-amber { --tone-rgb: var(--tv2-amber-rgb); }
.tv2-contribution-hero.tv2-tone-violet { --tone-rgb: var(--tv2-violet-rgb); }
.tv2-contribution-hero.tv2-tone-blue { --tone-rgb: var(--tv2-blue-rgb); }
.tv2-contribution-hero.tv2-tone-cyan { --tone-rgb: var(--tv2-cyan-rgb); }
.tv2-contribution-hero.tv2-tone-green { --tone-rgb: var(--tv2-green-rgb); }

.tv2-contribution-hero__aurora {
    position: absolute;
    top: -65%;
    right: -12%;
    width: 620px;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(
        rgba(var(--tone-rgb), .32),
        rgba(var(--tv2-cyan-rgb), .12),
        rgba(var(--tv2-amber-rgb), .14),
        rgba(var(--tone-rgb), .32)
    );
    filter: blur(6px);
    mask-image: radial-gradient(circle, #000, transparent 69%);
    animation: tv2-vision-orbit 28s linear infinite;
}

.tv2-contribution-hero header,
.tv2-contribution-hero > .tv2-button {
    position: relative;
    z-index: 1;
}

.tv2-contribution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tv2-contribution-meta > span,
.tv2-contribution-type {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(90, 107, 152, .13);
    border-radius: 999px;
    color: var(--tv2-text);
    font-size: .72rem;
    font-weight: 850;
    background: rgba(255, 255, 255, .55);
}

.tv2-contribution-meta .material-icons,
.tv2-contribution-type .material-icons {
    font-size: 16px;
}

.tv2-contribution-type {
    margin-top: 28px;
    color: rgb(var(--tone-rgb));
}

.tv2-contribution-hero h1 {
    max-width: 1000px;
    margin: 14px 0 0;
    color: var(--tv2-ink);
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.tv2-contribution-hero__future {
    max-width: 960px;
    margin: 24px 0 0;
    color: var(--tv2-text);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.75;
}

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

.tv2-story-card {
    position: relative;
    min-height: 270px;
    padding: 28px;
    overflow: hidden;
    border-radius: 26px;
}

.tv2-story-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    aspect-ratio: 1;
    margin-bottom: 18px;
    border-radius: 17px;
    color: var(--tv2-violet);
    background: rgba(var(--tv2-violet-rgb), .1);
}

.tv2-story-card h2 {
    margin: 0;
    color: var(--tv2-ink);
    font-size: 1.7rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.tv2-story-card p {
    margin: 14px 0 0;
    color: var(--tv2-text);
    line-height: 1.7;
}

.tv2-transformation-map {
    margin-top: 22px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--tv2-radius-lg);
}

.tv2-action-grid--read .tv2-action-card {
    display: block;
    min-height: 220px;
}

.tv2-action-grid--read .tv2-action-card > .material-icons {
    margin-bottom: 14px;
}

.tv2-action-grid--read .tv2-action-card > strong {
    display: block;
    font-size: 1rem;
}

.tv2-action-grid--read .tv2-action-card p {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    color: var(--tv2-text);
    line-height: 1.65;
}

.tv2-contribution-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.tv2-context-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 22px;
    border-radius: 22px;
}

.tv2-context-card > .material-icons {
    display: grid;
    place-items: center;
    width: 43px;
    aspect-ratio: 1;
    border-radius: 14px;
    color: var(--tv2-cyan);
    background: rgba(var(--tv2-cyan-rgb), .1);
}

.tv2-context-card small,
.tv2-context-card strong,
.tv2-context-card p {
    display: block;
}

.tv2-context-card small {
    color: var(--tv2-muted);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.tv2-context-card strong {
    margin-top: 5px;
    color: var(--tv2-ink);
    font-size: .9rem;
    font-weight: 950;
}

.tv2-context-card p {
    margin: 7px 0 0;
    color: var(--tv2-text);
    font-size: .79rem;
    line-height: 1.55;
}

@keyframes tv2-panel-enter {
    from { opacity: 0; transform: translateY(14px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tv2-vision-orbit {
    to { transform: rotate(360deg); }
}

@keyframes tv2-seal-spin {
    to { transform: rotate(360deg); }
}

@keyframes tv2-preview-float {
    from { transform: translate3d(-10px, -8px, 0) scale(.92); }
    to { transform: translate3d(18px, 16px, 0) scale(1.08); }
}

@media (max-width: 1180px) {
    .tv2-vision-form {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .tv2-type-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tv2-collaboration-grid,
    .tv2-visibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .tv2-vision-intro {
        grid-template-columns: 1fr;
    }

    .tv2-vision-intro__seal {
        display: none;
    }

    .tv2-vision-form {
        display: block;
    }

    .tv2-quest-rail {
        position: relative;
        top: auto;
        margin-bottom: 16px;
    }

    .tv2-quest-rail__identity {
        padding-bottom: 13px;
    }

    .tv2-quest-steps {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .tv2-quest-steps li {
        display: block;
        min-width: 72px;
        min-height: 62px;
        padding: 8px;
        text-align: center;
    }

    .tv2-quest-steps li > span {
        margin: 0 auto;
    }

    .tv2-quest-steps li div {
        margin-top: 5px;
    }

    .tv2-quest-steps small {
        display: none;
    }

    .tv2-quest-navigation {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .tv2-quest-navigation__save small {
        display: none;
    }

    .tv2-contribution-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .tv2-contribution-hero > .tv2-button {
        justify-self: start;
    }

    .tv2-contribution-context {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tv2-vision-page .tv2-shell,
    .tv2-contribution-page .tv2-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .tv2-vision-intro,
    .tv2-quest-panel,
    .tv2-contribution-hero,
    .tv2-transformation-map {
        border-radius: 24px;
    }

    .tv2-vision-intro {
        padding: 26px 22px;
    }

    .tv2-quest-panel {
        padding: 24px 18px;
    }

    .tv2-quest-panel__head {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 13px;
    }

    .tv2-quest-panel__icon {
        width: 50px;
        border-radius: 16px;
        font-size: 25px;
    }

    .tv2-horizon-choice-grid,
    .tv2-type-choice-grid,
    .tv2-collaboration-grid,
    .tv2-visibility-grid,
    .tv2-action-grid,
    .tv2-contribution-story {
        grid-template-columns: 1fr;
    }

    .tv2-choice-card {
        min-height: 72px;
    }

    .tv2-vision-preview {
        min-height: 420px;
        padding: 24px 19px;
        border-radius: 23px;
    }

    .tv2-vision-preview__path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tv2-quest-navigation {
        grid-template-columns: 1fr 1fr;
        bottom: 4px;
        padding: 9px;
    }

    .tv2-quest-navigation__save {
        grid-column: 1 / -1;
        justify-content: center;
        order: 3;
    }

    .tv2-quest-navigation > .tv2-button {
        width: 100%;
        min-width: 0;
        padding-right: 11px;
        padding-left: 11px;
    }

    .tv2-contribution-hero h1 {
        font-size: clamp(2.25rem, 11vw, 4rem);
    }
}

@media (max-width: 480px) {
    .tv2-quest-steps {
        grid-template-columns: repeat(6, 66px);
    }

    .tv2-vision-preview__path {
        grid-template-columns: 1fr;
    }

    .tv2-municipality-picker__state {
        display: none;
    }
}

/* R2.1T.V1: tema escuro automático removido. */

@media (prefers-reduced-motion: reduce) {
    .tv2-vision-intro::after,
    .tv2-vision-intro__seal::before,
    .tv2-vision-intro__seal::after,
    .tv2-vision-preview__sky span,
    .tv2-contribution-hero__aurora {
        animation: none !important;
    }

    .tv2-vision-page.is-enhanced .tv2-quest-panel.is-active {
        animation: none;
    }
}
