/* Estilos por componente: base, estados e responsividade na mesma seção. */

/* Dashboard e modo revisão */
#tela-materias > .btn-voltar-dashboard,
#tela-fases > .btn-voltar-dashboard {
    display: none !important;
}
.dashboard-review-toggle-meta {
    box-sizing: border-box;
}
.dashboard-review-toggle:hover .dashboard-review-toggle-meta,
.dashboard-review-toggle:focus-visible .dashboard-review-toggle-meta {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}
.dashboard-review-toggle:active .dashboard-review-toggle-meta {
    transform: translateY(1px);
}
.tela-dashboard {
    text-align: left;
    padding: clamp(18px, 3.5vw, 30px);
}
.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}
.dashboard-head h1 {
    margin: 2px 0 6px;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: -.035em;
}
.dashboard-eyebrow,
.dashboard-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}
.dashboard-subtitulo {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.dashboard-controles-globais {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}
.dashboard-tema {
    position: static;
    flex: 0 0 36px;
}
.dashboard-continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: linear-gradient(115deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface));
    box-shadow: var(--shadow);
}
.dashboard-continue h2 {
    margin: 7px 0 6px;
    font-size: clamp(19px, 3vw, 24px);
    overflow-wrap: anywhere;
}
.dashboard-continue p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.dashboard-continue .btn-proxima {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    margin: 0;
}
.dashboard-section {
    margin-top: 24px;
}
.dashboard-section-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.dashboard-section-head h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.02em;
    justify-self: start;
}
.dashboard-section-head > span {
    color: var(--text-secondary);
    font-size: 11px;
    justify-self: center;
    text-align: center;
}
.dashboard-section-head > button {
    justify-self: end;
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dashboard-stat {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.dashboard-stat span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
}
.dashboard-stat strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.dashboard-review {
    padding: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}
.dashboard-review-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}
.dashboard-review-toggle:hover,
.dashboard-review-toggle:focus-visible {
    background: color-mix(in srgb, var(--primary) 4%, var(--surface-soft));
    outline: none;
}
.dashboard-review-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 38%, transparent);
}
.dashboard-review-toggle-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.dashboard-review-toggle-copy strong {
    letter-spacing: -.025em;
}
.dashboard-review-toggle-copy > span {
    color: var(--text-secondary);
    line-height: 1.45;
}
.dashboard-review-toggle-meta {
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-weight: 700;
}
.dashboard-review-toggle-meta svg {
    transition: transform .2s ease;
}
.dashboard-review-toggle.is-open .dashboard-review-toggle-meta svg {
    transform: rotate(180deg);
}
.dashboard-review-content:not([hidden]) {
    animation: modoRevisaoEntrada .22s ease both;
}
.dashboard-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.dashboard-footer .btn-secundario,
.dashboard-footer .btn-proxima {
    width: auto;
    min-width: 140px;
    margin: 0;
}
@keyframes modoRevisaoEntrada { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.opcoes-revisao {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 12px;
    width: min(100%, 720px);
    margin: 16px auto 0;
}
.opcoes-revisao[hidden] {
    display: none !important;
}
.opcoes-revisao button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 35, 55, .035);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.opcoes-revisao button svg {
    display: block;
    flex: 0 0 20px;
    color: var(--primary);
}
.opcoes-revisao button span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.opcoes-revisao button:hover,
.opcoes-revisao button:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    background: var(--surface-hover);
    box-shadow: 0 4px 12px rgba(20, 35, 55, .07);
    transform: translateY(-2px);
    outline: none;
}
.opcoes-revisao button:active {
    transform: translateY(0) scale(.99);
    box-shadow: 0 1px 3px rgba(20, 35, 55, .05);
}
@media (max-width: 640px) {
.opcoes-revisao {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
    gap: 9px;
}
.opcoes-revisao button {
    min-height: 52px;
    justify-content: flex-start;
    padding: 12px 15px;
}
}
@media (prefers-reduced-motion: reduce) {
.opcoes-revisao button,
.dashboard-review-toggle,
.dashboard-review-toggle-meta svg {
    transition: none;
}
.dashboard-review-content:not([hidden]) {
    animation: none;
}
}
.dashboard-feedback {
    margin-bottom: 0;
}
.dashboard-historico {
    min-height: 70px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.dashboard-historico > p {
    margin: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.historico-barras {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 2vw, 18px);
    min-height: 120px;
    padding: 8px 0 0;
}
.historico-coluna {
    display: flex;
    flex: 1;
    max-width: 66px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-secondary);
}
.historico-barra-wrap {
    display: flex;
    align-items: flex-end;
    width: min(100%, 30px);
    height: 82px;
    overflow: hidden;
    border-radius: 7px 7px 3px 3px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.historico-barra {
    display: block;
    width: 100%;
    min-height: 3px;
    border-radius: 6px 6px 2px 2px;
    background: color-mix(in srgb, var(--primary) 66%, var(--surface));
    animation: preencherHistorico .65s ease both;
}
.historico-coluna strong {
    color: var(--text);
    font-size: 10px;
}
.historico-legenda {
    text-align: center;
}
.dashboard-footer {
    margin-top: 22px;
}
@keyframes preencherHistorico { from { transform: scaleY(.35); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@media (max-width: 620px) {
.dashboard-head {
    padding-right: 1px;
}
.dashboard-continue {
    align-items: stretch;
    flex-direction: column;
}
.dashboard-continue .btn-proxima {
    width: 100%;
}
.dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-stat {
    padding: 12px;
}
.dashboard-section-head {
    align-items: flex-start;
}
.dashboard-footer > button {
    flex: 1 1 100%;
}
}
@media (prefers-reduced-motion: reduce) {
.historico-barra {
    transition: none !important;
    animation: none !important;
}
}
.tela-dashboard > .dashboard-tema {
    position: static;
    flex: 0 0 36px;
}
.dashboard-head > div:first-child {
    min-width: 0;
}
@media (max-width: 420px) {
.dashboard-head {
    gap: 8px;
}
.dashboard-controles-globais {
    gap: 6px;
}
}
.btn-voltar-dashboard {
    margin-top: 10px;
}
.logo-simunus-dashboard {
    display: block;
    width: clamp(90px, 16vw, 132px);
    height: auto;
    margin: 0 0 12px;
}
.dashboard-evolucao-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 12px;
    color:var(--text-secondary);
    font-size:12px;
}
@media (max-width:700px) {
.dashboard-evolucao-toolbar {
    align-items:stretch;
    flex-direction:column;
}
}
.btn-voltar-dashboard {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}
.btn-voltar-dashboard svg {
    width: 18px;
    height: 18px;
}
.dashboard-head > div:first-child .navegacao-voltar-superior {
    margin-bottom: 14px;
}
.dashboard-continue-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}
.dashboard-continue-actions .btn-continuar-destaque {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    font-weight: 700;
}
.dashboard-continue-actions .btn-continuar-destaque:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.dashboard-continue-actions .btn-outline-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 11px 16px;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-weight: 600;
}
.dashboard-continue-actions .btn-outline-dashboard:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}
.dashboard-continue-actions button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.dashboard-continue-actions .btn-proxima {
    width: auto;
    min-width: 140px;
    margin: 0;
}
@media (max-width: 620px) {
.dashboard-continue-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
}
.dashboard-continue-actions .btn-proxima {
    width: 100%;
}
}
.review-quantity {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding:14px 0;
}
.review-quantity label {
    flex-basis:100%;
    font-weight:600;
}
.review-quantity select,
.review-quantity input {
    min-height:42px;
    border:1px solid var(--border-color, #aaa);
    border-radius:9px;
    padding:8px 12px;
    background:var(--card-bg, transparent);
    color:inherit;
}
.review-quantity input {
    max-width:110px;
}
.review-quantity [hidden] {
    display:none !important;
}
.dashboard-review-content {
    padding-bottom: clamp(18px, 3vw, 28px);
}
.dashboard-review .opcoes-revisao {
    width: 100%;
}
.dashboard-review .opcoes-revisao button {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    box-shadow: none;
}
.dashboard-review .opcoes-revisao button svg {
    flex-basis: 25px;
}
.review-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
.review-card-count {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.review-card-label {
    font-size: 14px;
    font-weight: 750;
}
.review-card-body small {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.dashboard-review .opcoes-revisao button.is-selected {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}
.dashboard-review .opcoes-revisao button.is-selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--primary);
    font-weight: 800;
}
.dashboard-review .review-quantity:not([hidden]) {
    display: grid;
    border: 1px solid var(--border);
}
.dashboard-review .review-quantity select {
    width: 100%;
    min-width: 0;
    background: var(--surface-soft);
    border-color: var(--border-strong);
}
.dashboard-review .review-limit {
    margin: 0;
    color: var(--text-secondary);
}
.dashboard-review #iniciar-revisao-supabase {
    width: 100%;
    margin: 4px 0 0;
}
.dashboard-review #iniciar-revisao-supabase:disabled {
    opacity: .55;
    cursor: not-allowed;
}
@media (max-width: 640px) {
.dashboard-review .opcoes-revisao {
    grid-template-columns: minmax(0, 1fr);
}
.dashboard-review .opcoes-revisao button {
    flex-direction: row;
    align-items: center;
}
.review-card-count {
    font-size: 24px;
}
.dashboard-review .review-quantity label,
.dashboard-review .review-limit,
.dashboard-review #iniciar-revisao-supabase {
    grid-column: 1;
}
.dashboard-review-toggle {
    gap: 8px;
}
}
.dashboard-review {
    border-radius: 22px;
    background: var(--surface-soft);
    border-color: var(--border-strong);
}
.dashboard-review-toggle {
    min-height: 136px;
    padding: 26px clamp(20px, 4vw, 38px);
    gap: 20px;
}
.review-heading-group {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
.review-heading-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 20%, transparent);
}
.dashboard-review-toggle-copy {
    gap: 10px;
}
.dashboard-review-toggle-copy strong {
    font-size: clamp(25px, 3vw, 33px);
    font-weight: 800;
    line-height: 1.12;
}
.dashboard-review-toggle-copy > span {
    font-size: clamp(13px, 1.6vw, 16px);
}
.dashboard-review-toggle-meta {
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--surface);
    font-size: 13px;
    white-space: nowrap;
}
.dashboard-review-content {
    padding: 0 clamp(20px, 4vw, 38px) 32px;
}
.dashboard-review .opcoes-revisao {
    margin: 10px 0 24px;
    gap: 14px;
}
.dashboard-review .opcoes-revisao button {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 14px;
    min-height: 164px;
    padding: 20px;
    border-radius: 17px;
    border-color: var(--border-strong);
    background: var(--surface);
}
.dashboard-review .opcoes-revisao button svg {
    grid-column: 1;
    grid-row: 1;
    width: 55px;
    height: 55px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 15%, var(--surface));
    color: var(--primary);
}
.dashboard-review .opcoes-revisao button[data-review-mode="wrong"] svg {
    color: #cf6672;
    background: color-mix(in srgb, #cf6672 15%, var(--surface));
}
.dashboard-review .opcoes-revisao button[data-review-mode="recent"] svg {
    color: #159f85;
    background: color-mix(in srgb, #159f85 15%, var(--surface));
}
.dashboard-review .review-card-body {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    gap: 7px;
}
.dashboard-review .review-card-count {
    font-size: clamp(31px, 3.6vw, 43px);
    line-height: 1;
}
.dashboard-review .review-card-label {
    font-size: clamp(13px, 1.45vw, 16px);
    line-height: 1.3;
}
.dashboard-review .review-card-body small {
    font-size: 12px;
    line-height: 1.4;
}
.dashboard-review .opcoes-revisao button.is-selected {
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.dashboard-review .review-quantity:not([hidden]) {
    grid-template-columns: 68px minmax(0, 1fr) minmax(130px, 210px);
    align-items: center;
    gap: 15px 20px;
    padding: clamp(20px, 3vw, 30px);
    border-color: var(--border-strong);
    border-radius: 19px;
    background: var(--surface);
}
.review-quantity-heading-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: color-mix(in srgb, var(--primary) 9%, var(--surface));
    border: 1px solid var(--border);
    color: var(--primary);
}
.dashboard-review .review-quantity label {
    grid-column: 2 / -1;
    font-size: clamp(19px, 2.3vw, 24px);
    font-weight: 800;
}
.dashboard-review .review-quantity select {
    grid-column: 1 / 3;
    min-height: 58px;
    font-size: 16px;
    padding-inline: 17px;
}
.dashboard-review .review-limit {
    grid-column: 1 / -1;
    font-size: 13px;
}
.dashboard-review #iniciar-revisao-supabase {
    grid-column: 1 / -1;
    min-height: 66px;
    margin-top: 12px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 800;
}
.dashboard-review #iniciar-revisao-supabase::before {
    content: '▶';
    display: inline-block;
    margin-right: 12px;
    font-size: 15px;
}
@media (max-width: 900px) {
.dashboard-review .opcoes-revisao button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    gap: 12px;
    padding: 17px;
}
.dashboard-review .opcoes-revisao button svg {
    grid-column: 1;
    grid-row: 1;
}
.dashboard-review .review-card-body {
    grid-column: 1;
    grid-row: 2;
}
}
@media (max-width: 640px) {
.dashboard-review-toggle {
    min-height: 100px;
    padding: 17px;
}
.review-heading-group {
    gap: 12px;
}
.review-heading-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
}
.review-heading-icon svg {
    width: 24px;
    height: 24px;
}
.dashboard-review-toggle-copy strong {
    font-size: 21px;
}
.dashboard-review-toggle-copy > span {
    font-size: 12px;
}
.dashboard-review-toggle-meta {
    padding: 9px;
    font-size: 10px;
}
.dashboard-review-content {
    padding: 0 16px 22px;
}
.dashboard-review .opcoes-revisao {
    gap: 10px;
}
.dashboard-review .opcoes-revisao button {
    grid-template-columns: 52px minmax(0,1fr);
    grid-template-rows: 1fr;
    min-height: 102px;
    padding: 13px;
}
.dashboard-review .opcoes-revisao button svg {
    grid-column: 1;
    grid-row: 1;
    width: 49px;
    height: 49px;
    padding: 13px;
}
.dashboard-review .review-card-body {
    grid-column: 2;
    grid-row: 1;
}
.dashboard-review .review-card-count {
    font-size: 28px;
}
.dashboard-review .review-quantity:not([hidden]) {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 12px;
    padding: 16px;
}
.review-quantity-heading-icon {
    width: 42px;
    height: 42px;
}
.review-quantity-heading-icon svg {
    width: 22px;
    height: 22px;
}
.dashboard-review .review-quantity label {
    grid-column: 2;
    font-size: 18px;
}
.dashboard-review .review-quantity select,
.dashboard-review .review-limit,
.dashboard-review #iniciar-revisao-supabase {
    grid-column: 1 / -1;
}
.dashboard-review #iniciar-revisao-supabase {
    min-height: 56px;
}
}
@media (max-width: 370px) {
.dashboard-review-toggle-meta {
    max-width: 85px;
    white-space: normal;
}
.dashboard-review-toggle-copy strong {
    font-size: 18px;
}
}
.dashboard-review .review-quantity[hidden] {
    display: none !important;
}
.dashboard-review-toggle-meta {
    padding: 12px;
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dashboard-review-toggle-meta svg {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
}
.dashboard-review-toggle:hover .dashboard-review-toggle-meta,
.dashboard-review-toggle:focus-visible .dashboard-review-toggle-meta,
.dashboard-review-toggle:active .dashboard-review-toggle-meta {
    background: var(--surface);
    border-color: var(--border-strong);
    transform: none;
}
.dashboard-review-toggle-meta {
    transition: none;
}
.dashboard-review-content[hidden] {
    display: none !important;
}
.dashboard-review .review-quantity select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364778c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
}
.dashboard-review .review-quantity select option[hidden] {
    display: none;
}
.btn-voltar-dashboard svg {
    display: block;
    margin: auto;
    flex-shrink: 0;
}
#dashboard-explorar-materias {
    text-transform: capitalize;
}
#tela-dashboard .dashboard-section-head {
    flex-wrap: wrap;
    gap: 10px 12px;
}
#tela-dashboard .dashboard-section-head h2 {
    flex: 0 1 auto;
    min-width: 0;
}
#tela-dashboard .dashboard-section-line {
    flex: 1 1 28px;
    min-width: 12px;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border-strong);
}
#tela-dashboard .dashboard-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
}
#tela-dashboard .dashboard-section-badge svg {
    flex: 0 0 auto;
}
#tela-dashboard .dashboard-continue-actions > button {
    min-height: 44px;
    border-radius: 10px;
    padding: 11px 16px;
    white-space: nowrap;
}
#tela-dashboard .dashboard-continue-actions .btn-continuar-destaque:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
#tela-dashboard .dashboard-continue-actions .btn-continuar-destaque:not(:disabled):hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
#tela-dashboard .dashboard-continue-actions .btn-outline-dashboard {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text);
}
#tela-dashboard .dashboard-continue-actions .btn-outline-dashboard:focus-visible,
#tela-dashboard .dashboard-continue-actions .btn-continuar-destaque:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
#tela-dashboard .dashboard-continue-actions > button:active:not(:disabled) {
    transform: translateY(0);
}
@media (max-width: 620px) {
#tela-dashboard .dashboard-continue-actions > button {
    width: 100%;
}
#tela-dashboard .dashboard-section-head {
    gap: 9px;
    align-items: center;
}
}
#tela-dashboard .dashboard-section-head {
    display: grid;
    grid-template-columns: max-content minmax(24px, 1fr) max-content;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
}
#tela-dashboard .dashboard-section-head > h2 {
    grid-column: 1;
    min-width: 0;
}
#tela-dashboard .dashboard-section-head > .dashboard-section-line {
    display: block;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    height: 0;
    border: 0;
    border-top: 1px solid var(--border-strong);
    margin: 0;
    padding: 0;
    opacity: .85;
}
#tela-dashboard .dashboard-section-head > .dashboard-section-badge {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-align: right;
}
#tela-dashboard .dashboard-section-head > .dashboard-section-badge svg {
    display: block;
    flex-shrink: 0;
}
#tela-dashboard #botao-continuar > svg {
    fill: currentColor;
    stroke: none;
    flex-shrink: 0;
}
@media (max-width: 420px) {
#tela-dashboard .dashboard-section-head {
    column-gap: 8px;
}
#tela-dashboard .dashboard-section-head h2 {
    font-size: clamp(14px, 4.1vw, 17px);
}
#tela-dashboard .dashboard-section-head > .dashboard-section-badge {
    font-size: 10px;
    gap: 4px;
}
#tela-dashboard .dashboard-section-head > .dashboard-section-badge svg {
    width: 14px;
    height: 14px;
}
}
.btn-voltar-dashboard .lucide {
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

/* Catálogo de matérias e temas */
.materia-personalizada {
    position: relative;
    text-align: left;
}
.materia-personalizada .botao-icone {
    align-self: flex-start;
}
.materia-personalizada-conteudo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.materia-personalizada-conteudo > span:first-child {
    font-weight: 750;
}
.materia-personalizada-conteudo small:not(.selo-personalizada) {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}
.fase-personalizada {
    position: relative;
}
.fase-meta {
    color: var(--text-secondary);
    font-size: 11px;
}
.selecao-logo-wrap {
    display: flex;
    justify-content: center;
    margin: -6px auto 18px;
}
#lista-materias,
#lista-fases {
    width: 100%;
    display: grid;
    align-items: stretch;
    gap: 14px;
}
#lista-materias .botao-materia,
#lista-fases .botao-fase {
    min-width: 0;
}
#lista-materias .botao-materia {
    min-height: 60px;
}
.pesquisa-fases-wrap {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
}
.botao-pesquisa {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transition: var(--transition-theme), transform .2s ease, box-shadow .2s ease;
}
.botao-pesquisa:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}
.botao-pesquisa:active {
    transform: translateY(0);
}
.pesquisa-fases {
    width: min(470px, 100%);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
    animation: entradaTela .18s ease both;
}
.pesquisa-fases input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: calc(14px * var(--font-scale));
}
.pesquisa-fases input::placeholder {
    color: var(--text-secondary);
}
.botao-fechar-pesquisa {
    width: 34px;
    height: 34px;
    flex: 0 0 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.botao-fechar-pesquisa:hover {
    background: var(--surface-hover);
    color: var(--text);
}
@media (max-width: 600px) {
.pesquisa-fases-wrap {
    margin-top: -2px;
}
}
.logo-simunus-selecao {
    width: min(323px, 54%);
}
#lista-materias,
#lista-fases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pesquisa-fases-wrap {
    width: 100%;
    justify-content: flex-start;
    margin: -7px 0 15px;
}
.pesquisa-materias-wrap {
    margin-top: -7px;
}
#lista-fases .botao-fase {
    min-height: 84px;
}
#lista-fases .fase-tema {
    display: block;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}
@media (max-width: 900px) {
#lista-materias,
#lista-fases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 600px) {
#lista-materias,
#lista-fases {
    grid-template-columns: 1fr;
    gap: 12px;
}
.logo-simunus-selecao {
    width: min(293px, 64.5%);
}
.pesquisa-fases-wrap,
.pesquisa-materias-wrap {
    margin-top: -2px;
}
}
.btn-materias-boas {
    min-width: min(260px, 100%);
    padding: 13px 26px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
}
#tela-materias > .pesquisa-fases-wrap,
#tela-fases > .pesquisa-fases-wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    min-height: 36px;
    margin: 0;
    z-index: 4;
}
#tela-materias > .pesquisa-fases-wrap .botao-pesquisa,
#tela-fases > .pesquisa-fases-wrap .botao-pesquisa {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    box-shadow: none;
    font-size: 15px;
}
#tela-materias > .pesquisa-fases-wrap .botao-pesquisa:hover,
#tela-fases > .pesquisa-fases-wrap .botao-pesquisa:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: 0 5px 13px rgba(30, 79, 140, .09);
    transform: translateY(-1px);
}
#tela-materias > .pesquisa-fases-wrap .botao-pesquisa:active,
#tela-fases > .pesquisa-fases-wrap .botao-pesquisa:active {
    transform: translateY(0);
}
#tela-materias > .pesquisa-fases-wrap .pesquisa-fases,
#tela-fases > .pesquisa-fases-wrap .pesquisa-fases {
    position: absolute;
    top: 0;
    right: 0;
    width: min(231px, calc(100vw - 32px));
    min-height: 36px;
    margin: 0;
    padding: 4px;
    gap: 5px;
    transform-origin: top right;
    opacity: 0;
    transform: translateX(10px) scale(.96);
    pointer-events: none;
    visibility: visible;
    animation: none;
    transition: opacity .24s cubic-bezier(.22,1,.36,1), transform .24s cubic-bezier(.22,1,.36,1), box-shadow .24s ease;
}
#tela-materias > .pesquisa-fases-wrap .pesquisa-fases.is-open,
#tela-fases > .pesquisa-fases-wrap .pesquisa-fases.is-open {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}
#tela-materias > .pesquisa-fases-wrap .pesquisa-fases input,
#tela-fases > .pesquisa-fases-wrap .pesquisa-fases input {
    padding: 4px 7px;
}
#tela-materias > .pesquisa-fases-wrap .botao-fechar-pesquisa,
#tela-fases > .pesquisa-fases-wrap .botao-fechar-pesquisa {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    padding: 0;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tela-materias > .pesquisa-fases-wrap .botao-pesquisa svg,
#tela-materias > .pesquisa-fases-wrap .botao-fechar-pesquisa svg,
#tela-fases > .pesquisa-fases-wrap .botao-pesquisa svg,
#tela-fases > .pesquisa-fases-wrap .botao-fechar-pesquisa svg {
    display: block;
    flex: 0 0 auto;
}
@media (prefers-reduced-motion: reduce) {
#tela-materias > .pesquisa-fases-wrap .pesquisa-fases,
#tela-fases > .pesquisa-fases-wrap .pesquisa-fases {
    transition: none !important;
}
}
.tela-selecao > .botao-tema {
    left: 15px;
    right: auto;
}
#tela-materias > .botao-tema,
#tela-fases > .botao-tema {
    left: 15px;
    right: auto;
}
#tela-materias > .navegacao-voltar-superior,
#tela-fases > .navegacao-voltar-superior {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    margin: 0;
}
@media (max-width: 600px) {
#tela-materias > .navegacao-voltar-superior,
#tela-fases > .navegacao-voltar-superior {
    top: 10px;
    left: 10px;
}
#tela-materias > .pesquisa-fases-wrap,
#tela-fases > .pesquisa-fases-wrap {
    top: 10px;
    right: 10px;
    left: auto;
}
}
.card-progresso-conteudo {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}
.card-materia-titulo {
    font-weight: 750;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.card-progresso-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}
.card-progresso-meta strong {
    color: var(--primary);
    font-size: 14px;
    white-space: nowrap;
}
.card-progresso-desempenho {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}
#lista-materias .card-com-progresso {
    align-items: stretch;
    justify-content: center;
    min-height: 90px;
}
#lista-fases .card-fase-progresso {
    align-items: stretch;
    justify-content: center;
    min-height: 100px;
}
#lista-fases .card-fase-progresso .fase-tema {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}
.materia-personalizada-conteudo > small {
    color: var(--text-secondary);
    font-size: 12px;
}
@media (max-width: 620px) {
.card-progresso-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}
#lista-materias .card-com-progresso {
    min-height: 100px;
}
}
.btn-voltar-fases {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}
.btn-voltar-fases svg {
    width: 18px;
    height: 18px;
}
#tela-materias > .botao-tema,
#tela-fases > .botao-tema {
    display: none !important;
}
.btn-voltar-fases svg {
    display: block;
    margin: auto;
    flex-shrink: 0;
}
.btn-voltar-fases .lucide {
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

/* Questionário, resultado e relato */
@keyframes relatoModalEntrada { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes relatoModalSaida {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.82); }
}
.resultado-pesquisa-vazio {
    grid-column: 1 / -1;
    margin: 4px auto 0;
    padding: 16px;
    color: var(--text-secondary);
    font-size: calc(14px * var(--font-scale));
}
.resultado-pesquisa-cabecalho {
    grid-column: 1 / -1;
    margin: 0 0 -2px;
    color: var(--text-secondary);
    font-size: calc(13px * var(--font-scale));
    font-weight: 700;
    text-align: left;
}
.resultado-pesquisa-fase {
    min-height: 84px;
    flex-direction: column;
    gap: 5px;
}
.resultado-pesquisa-fase .resultado-pesquisa-materia {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 650;
}
.resultado-pesquisa-fase .fase-tema {
    color: var(--text);
    font-weight: 750;
}
.resultado-pesquisa-materias-cabecalho {
    margin-top: 2px;
}
#tela-jogo .cabecalho-jogo {
    position: relative;
    min-height: 58px;
}
#tela-jogo .cabecalho-jogo > .navegacao-voltar-superior {
    position: absolute;
    top: 18px;
    left: 0;
    z-index: 3;
    margin: 0;
}
#tela-jogo .cabecalho-jogo .cabecalho-jogo-texto {
    width: 100%;
    padding-left: 54px;
    padding-right: 54px;
    box-sizing: border-box;
}
@media (max-width: 600px) {
#tela-jogo .cabecalho-jogo > .navegacao-voltar-superior {
    top: 12px;
    left: 0;
}
#tela-jogo .cabecalho-jogo .cabecalho-jogo-texto {
    padding-left: 48px;
    padding-right: 48px;
}
}
.cabecalho-jogo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 0 12px clamp(12px, 2vw, 18px);
    text-align: center;
}
.cabecalho-jogo-texto {
    order: 2;
    min-width: 0;
    width: 100%;
}
.cabecalho-jogo-texto h1 {
    margin: 0;
    width: 100%;
    text-align: center;
}
.cabecalho-jogo-texto p {
    margin: 5px 0 0;
    text-align: center;
}
.logo-simunus-jogo {
    order: 1;
    width: clamp(130px, 18vw, 173px);
    max-width: 46vw;
    height: auto;
    margin: 0 auto;
    flex: 0 0 auto;
}
@media (max-width: 480px) {
.cabecalho-jogo {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
}
.logo-simunus-jogo {
    width: clamp(104px, 32.4vw, 137px);
    max-width: 58vw;
}
}
.titulo-jogo-materia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.icone-jogo-materia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.titulo-jogo-materia #nome-materia-jogo {
    display: block;
}
.identificacao-questao {
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px;
}
.identificacao-questao .tipo-questao {
    margin: 0;
    flex: 0 0 auto;
}
.botao-relato-questao {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, #a94747 38%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, #a94747 9%, var(--surface-soft));
    color: #a94747;
    cursor: pointer;
    transition: var(--transition-ui);
}
.botao-relato-questao:hover,
.botao-relato-questao:focus-visible {
    color: #8f3434;
    border-color: #a94747;
    background: color-mix(in srgb, #a94747 15%, var(--surface-soft));
    outline: none;
}
:root[data-tema="escuro"] .botao-relato-questao {
    color: #d88989;
    border-color: color-mix(in srgb, #d88989 40%, var(--border));
    background: color-mix(in srgb, #a94747 17%, var(--surface-soft));
}
.relato-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(7,17,31,.5);
    backdrop-filter: blur(3px);
}
.relato-modal {
    width: min(440px, 100%);
    max-height: min(90dvh, 620px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    transform-origin: center center;
}
.relato-modal.relato-modal-abrindo {
    animation: relatoModalEntrada 2000ms cubic-bezier(.22,.61,.36,1) both;
}
.relato-modal.relato-modal-fechando {
    animation: relatoModalSaida 800ms cubic-bezier(.55,.08,.68,.53) both;
}
.relato-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.relato-modal-head h2 {
    margin: 0 0 5px;
    font-size: 19px;
}
.relato-modal-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.relato-fechar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    line-height: 1;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}
#form-relato-questao label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
}
#texto-relato-questao {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    resize: vertical;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
#texto-relato-questao:focus {
    outline: 2px solid color-mix(in srgb, var(--focus) 55%, transparent);
    outline-offset: 1px;
}
.relato-feedback {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.relato-modal-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.relato-modal-foot .btn-proxima {
    width: auto;
    margin: 0;
}
#categoria-relato-questao {
    width: 100%;
    margin: 0 0 16px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}
#contador-relato-questao {
    text-align: right;
}
body.relato-modal-aberto {
    overflow: hidden;
}
@media (max-width: 480px) {
.relato-backdrop {
    padding: 10px;
}
.relato-modal {
    padding: 16px;
    max-height: 94dvh;
}
}
body.relato-modal-aberto .relato-modal.relato-modal-abrindo {
    animation-duration: 2000ms !important;
    animation-iteration-count: 1 !important;
}
.resultado-acoes {
    flex-wrap: wrap;
    justify-content: center;
}
.resultado-acoes .btn-secundario {
    width: auto;
    min-width: 140px;
    margin: 0;
}
.resultado-detalhes {
    margin: 14px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.resultado-detalhes p {
    margin: 6px 0;
}
.resultado-acoes [hidden] {
    display: none !important;
}
.botao-marcar-questao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-ui);
}
.botao-marcar-questao:hover,
.botao-marcar-questao.is-bookmarked {
    color: var(--primary);
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}
.botao-marcar-questao svg {
    display: block;
    flex: 0 0 auto;
}
.identificacao-questao {
    display: flex;
    align-items: center;
    gap: 8px;
}
.identificacao-questao .tipo-questao {
    margin-right: auto;
}
@media (max-width: 620px) {
.resultado-acoes > button {
    flex: 1 1 100%;
}
}
.resultado-final:not(.escondido) .nota strong,
.resultado-final:not(.escondido) .resumo strong {
    animation: resultadoSuave .42s ease both;
}
@keyframes resultadoSuave { from { opacity: .45; transform: translateY(4px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
.resultado-final:not(.escondido) .nota strong,
.resultado-final:not(.escondido) .resumo strong {
    animation: none !important;
}
}
.resultado-acoes .btn-proxima {
    width: auto;
    min-width: 140px;
    margin: 0;
}
.resultado-acoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    max-width: 600px;
    margin: 20px auto;
}
.resultado-acoes > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin: 0;
    min-height: 48px;
}
.resultado-acoes > .btn-reiniciar {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}
.resultado-acoes > .btn-reiniciar:hover {
    background: var(--surface-soft);
    box-shadow: none;
}
.resultado-acoes > .btn-secundario {
    background: transparent;
}
.resultado-acoes > .btn-secundario:hover {
    background: var(--surface-soft);
}
@media (max-width: 600px) {
.resultado-acoes {
    grid-template-columns: 1fr;
}
}

/* Fases pessoais, biblioteca e editor */
.suas-fases-wrap {
    position: relative;
    width: min(480px, 100%);
    margin: 18px auto 0;
    display: flex;
    justify-content: flex-start;
    z-index: 8;
}
.botao-suas-fases {
    width: 100%;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    color: var(--text);
    box-shadow: 0 8px 20px rgba(22,50,82,.08);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-ui);
}
.botao-suas-fases:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.botao-suas-fases:active {
    transform: translateY(0) scale(.985);
}
.suas-fases-seta {
    font-size: 21px;
    line-height: 1;
    transition: transform .25s ease;
}
.botao-suas-fases[aria-expanded="true"] .suas-fases-seta {
    transform: rotate(90deg);
}
.painel-suas-fases {
    position: absolute;
    left: calc(100% + 12px);
    bottom: 0;
    width: min(290px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 20px 42px rgba(22,50,82,.18);
    transform-origin: left bottom;
    animation: customPainelEntradaDireita .25s cubic-bezier(.22,.61,.36,1) both;
}
.painel-suas-fases button {
    width: 100%;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-weight: 650;
    transition: var(--transition-ui);
}
.painel-suas-fases button:hover {
    background: var(--surface-hover);
    transform: translateX(2px);
}
.painel-suas-fases button span:first-child {
    text-align: center;
    color: var(--primary);
    font-size: 18px;
}
.custom-alternativas-editor {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.custom-field-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 10px;
    text-align: left;
}
.alternativas-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.alternativa-custom-field {
    display: grid !important;
    grid-template-columns: 30px minmax(0,1fr);
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}
.alternativa-custom-field > span {
    width: 30px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 800;
}
.custom-help {
    display: block;
    margin-top: 9px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: left;
}
.custom-phases-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.custom-modal-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7,17,31,.48);
    backdrop-filter: blur(4px);
    overflow: auto;
    animation: customFadeIn .2s ease both;
}
.custom-modal {
    width: min(680px, 100%);
    max-height: min(90dvh, 900px);
    overflow: auto;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    animation: customModalEntrada .28s cubic-bezier(.22,.61,.36,1) both;
}
.custom-modal-wide {
    width: min(900px, 100%);
}
.custom-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.custom-modal-head h2 {
    margin: 0;
    font-size: calc(20px * var(--font-scale));
}
.custom-fechar {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.custom-form {
    padding: 18px 20px 20px;
}
.custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 13px;
}
.custom-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: calc(12px * var(--font-scale));
    font-weight: 700;
    text-align: left;
}
.custom-grid input,
.custom-grid textarea,
.custom-grid select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px 11px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-size: calc(14px * var(--font-scale));
    outline: none;
    transition: var(--transition-ui);
}
.custom-grid textarea {
    min-height: 78px;
    resize: vertical;
    line-height: 1.4;
}
.custom-grid input:focus,
.custom-grid textarea:focus,
.custom-grid select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent);
}
.custom-full {
    grid-column: 1 / -1;
}
.custom-questions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 10px;
}
.custom-questions-head h3 {
    margin: 0;
    font-size: calc(16px * var(--font-scale));
}
.custom-questions-head span {
    color: var(--text-secondary);
    font-size: 12px;
}
.custom-questions-head .btn-proxima {
    width: auto;
    margin: 0;
    padding: 9px 12px;
}
.custom-question-list,
.custom-manage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.custom-q-card,
.custom-manage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
}
.custom-q-card > div:first-child,
.custom-manage-card > div:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.custom-q-card strong,
.custom-manage-card h3 {
    margin: 0;
    font-size: 13px;
}
.custom-q-card span,
.custom-manage-card p,
.custom-manage-card small {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
}
.custom-q-actions,
.custom-manage-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    flex: 0 0 auto;
}
.custom-q-actions button,
.custom-manage-actions button {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-ui);
}
.custom-q-actions button:hover,
.custom-manage-actions button:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.custom-empty,
.custom-list-head {
    color: var(--text-secondary);
    padding: 12px 0;
    text-align: center;
}
.custom-list-head p {
    margin: 5px 0 12px;
}
.custom-form-message {
    min-height: 22px;
    margin-top: 10px;
    color: var(--error-text);
    font-size: 12px;
    text-align: center;
}
#custom-phase-form .custom-modal-foot {
    flex-wrap: wrap;
}
#custom-phase-form .custom-form-message {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
#custom-phase-form .custom-form-message:empty {
    display: none;
}
.custom-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.custom-modal-foot .btn-secundario {
    width: auto;
    margin: 0;
}
.custom-modal-foot .btn-proxima {
    width: auto;
    margin: 0;
}
body.custom-modal-aberto {
    overflow: hidden;
}
@keyframes customPainelEntrada { from { opacity: 0; transform: translateY(8px) rotateX(-8deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes customPainelEntradaDireita { from { opacity: 0; transform: translateX(-10px) rotateY(8deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes customFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes customModalEntrada { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
.painel-suas-fases {
    left: auto;
    right: 0;
    bottom: calc(100% + 8px);
    transform-origin: bottom right;
    animation-name: customPainelEntrada;
}
}
@media (max-width: 600px) {
.suas-fases-wrap {
    width: min(480px, 100%);
}
.botao-suas-fases {
    width: 100%;
    justify-content: space-between;
}
.painel-suas-fases {
    left: 0;
    right: 0;
    width: 100%;
}
.custom-modal-backdrop {
    align-items: flex-start;
    padding: 8px;
}
.custom-modal {
    max-height: 96dvh;
    border-radius: 14px;
}
.custom-modal-head {
    padding: 14px;
}
.custom-form {
    padding: 14px;
}
.custom-grid {
    grid-template-columns: 1fr;
}
.alternativas-custom-grid {
    grid-template-columns: 1fr;
}
.custom-full {
    grid-column: auto;
}
.custom-questions-head {
    align-items: stretch;
    flex-direction: column;
}
.custom-questions-head .btn-proxima {
    width: 100%;
}
.custom-q-card,
.custom-manage-card {
    align-items: flex-start;
    flex-direction: column;
}
.custom-q-actions,
.custom-manage-actions {
    width: 100%;
    justify-content: flex-start;
}
}
@media (prefers-reduced-motion: reduce) {
.painel-suas-fases,
.custom-modal-backdrop,
.custom-modal {
    animation: none !important;
}
}
.tela-suas-fases {
    text-align: center;
}
.suas-fases-opcoes {
    margin: 22px auto 0;
    display: grid;
    gap: 14px;
}
.suas-fases-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-ui);
}
.suas-fases-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.suas-fases-card:active {
    transform: translateY(0) scale(.985);
}
.suas-fases-card-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 21px;
}
.suas-fases-card span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.suas-fases-card strong {
    font-size: calc(14px * var(--font-scale));
}
.suas-fases-card small {
    color: var(--text-secondary);
    font-size: calc(11px * var(--font-scale));
    line-height: 1.4;
}
.suas-fases-voltar {
    width: auto;
    margin: 22px auto 0;
}
.custom-screen-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.custom-screen-actions .btn-proxima,
.custom-screen-actions .btn-secundario {
    width: auto;
    margin: 0;
}
#custom-screen-list {
    margin-top: 20px;
}
#custom-screen-list .custom-manage-card {
    box-shadow: 0 5px 16px rgba(22,50,82,.05);
}
@media (max-width: 600px) {
.suas-fases-opcoes {
    grid-template-columns: 1fr;
    gap: 11px;
}
.suas-fases-card {
    min-height: 82px;
}
.custom-screen-actions {
    flex-direction: column;
}
.custom-screen-actions .btn-proxima,
.custom-screen-actions .btn-secundario {
    width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
.suas-fases-card {
    transition: none;
}
}
#tela-suas-fases > .navegacao-voltar-superior {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    margin: 0;
}
@media (max-width: 600px) {
#tela-suas-fases > .navegacao-voltar-superior {
    top: 10px;
    left: 10px;
}
}
.suas-fases-card-icon svg,
.suas-fases-card-arrow svg,
.suas-fases-voltar .lucide,
.custom-modal .lucide {
    display: block;
    flex: 0 0 auto;
}
.suas-fases-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-fechar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 12px 0;
}
.custom-sync[hidden] {
    display: none;
}
.custom-sync p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.custom-sync .btn-secundario {
    width: auto;
    margin: 0;
}
.custom-sync [hidden] {
    display: none;
}
.review-custom-stepper {
    display: flex;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-soft);
}
.review-custom-stepper[hidden] {
    display: none !important;
}
.review-custom-stepper button {
    flex: 0 0 44px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
}
.review-custom-stepper button:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.dashboard-review .review-custom-stepper input {
    flex: 1 1 auto;
    width: 48px;
    min-width: 0;
    max-width: none;
    padding: 4px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    appearance: textfield;
}
.review-custom-stepper input::-webkit-inner-spin-button,
.review-custom-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dashboard-review .review-custom-stepper:not([hidden]) {
    grid-column: 3;
    min-height: 58px;
}
.dashboard-review .review-custom-stepper input {
    min-height: 56px;
    font-size: 18px;
    font-weight: 750;
}
@media (max-width: 640px) {
.dashboard-review .review-custom-stepper:not([hidden]) {
    grid-column: 1 / -1;
}
}
#dashboard-suas-fases,
.suas-fases-card strong {
    text-transform: capitalize;
}
.custom-modal {
    display: flex;
    flex-direction: column;
}
.custom-modal > .custom-form {
    min-height: 0;
    overflow-y: auto;
}
.custom-modal-foot {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    background: var(--surface);
    padding-bottom: 3px;
}
@media (max-width: 600px) {
.custom-modal-foot {
    flex-wrap: wrap;
}
.custom-modal-foot > button {
    flex: 1 1 120px;
}
}
.suas-fases-opcoes {
    grid-template-columns: 1fr;
    width: min(640px, 100%);
}
.suas-fases-card {
    width: 100%;
}
.custom-questions-head #custom-add-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 9px;
    white-space: nowrap;
}
.custom-questions-head #custom-add-question svg {
    display: block;
    flex: 0 0 auto;
}
.custom-questions-head #custom-add-question span {
    display: inline;
    font-size: inherit;
    color: inherit;
}
.alternativa-custom-field > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font-variant-numeric: tabular-nums;
}
.custom-library-card {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:16px;
    overflow:visible;
}
.custom-library-main {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;
    width:100%;
}
.custom-library-info {
    flex:1;
    min-width:0;
    text-align:left;
}
.custom-library-info h3 {
    font-size:calc(16px * var(--font-scale));
    font-weight:700;
    margin:0 0 5px;
}
.custom-library-info p {
    font-size:calc(13px * var(--font-scale));
    margin:0 0 5px;
}
.custom-library-info small {
    font-size:calc(12px * var(--font-scale));
}
.custom-drag-handle,
.custom-library-icon {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:38px;
    height:38px;
    padding:7px;
    background:transparent;
    color:var(--text-secondary);
    border:1px solid transparent;
    border-radius:9px;
    cursor:pointer;
}
.custom-drag-handle {
    cursor:grab;
    touch-action:none;
}
.custom-drag-handle:active {
    cursor:grabbing;
}
.custom-drag-handle:hover,
.custom-library-icon:hover {
    background:var(--surface);
    border-color:var(--border);
}
.custom-library-icon.is-favorite {
    color:#e5a82c;
}
.custom-library-icon.is-favorite svg {
    fill:currentColor;
}
.custom-library-menu-wrap {
    position:relative;
    flex-shrink:0;
}
.custom-library-menu {
    position:absolute;
    right:0;
    top:calc(100% + 4px);
    z-index:15;
    min-width:175px;
    padding:6px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:11px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.custom-library-menu[hidden] {
    display:none;
}
.custom-library-menu button {
    display:block;
    width:100%;
    padding:10px;
    border:0;
    border-radius:6px;
    background:transparent;
    text-align:left;
    color:var(--text);
    cursor:pointer;
}
.custom-library-menu button:hover {
    background:var(--surface-soft);
}
.custom-library-menu .custom-library-danger {
    color:#c44848;
}
.custom-library-play {
    width:100%;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
}
@media (max-width:600px) {
.custom-library-main {
    gap:5px;
}
.custom-library-card {
    align-items:stretch;
}
.custom-library-info {
    flex:1;
}
.custom-drag-handle,
.custom-library-icon {
    width:33px;
    height:36px;
}
}
.custom-screen-actions-top {
    margin:12px auto 0;
}
.custom-screen-actions-top .btn-proxima {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}
#tela-lista-fases-custom {
    position:relative;
}
#tela-lista-fases-custom .custom-library-topbar {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    width:100%;
    margin:0 0 16px;
}
#tela-lista-fases-custom .custom-library-topbar > #voltar-lista-fases-custom {
    position:static;
    display:inline-flex;
    margin:0;
    flex:0 0 40px;
    align-items:center;
    justify-content:center;
}
#tela-lista-fases-custom .custom-library-topbar > .custom-screen-actions-top {
    display:flex;
    flex-direction:row;
    margin:0;
    width:auto;
}
#tela-lista-fases-custom .custom-library-topbar #custom-screen-create {
    width:auto;
    margin:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap;
    padding:10px 16px;
}
#tela-lista-fases-custom .cabecalho-selecao {
    margin-top:0;
}
#custom-screen-list > .custom-library-card {
    display:block;
    padding:16px 18px;
    text-align:left;
    transition:border-color .16s ease, background-color .16s ease;
}
#custom-screen-list > .custom-library-card:hover,
#custom-screen-list > .custom-library-card:focus-visible {
    border-color:var(--primary);
}
#custom-screen-list > .custom-library-card > .custom-library-main {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    gap:12px;
    min-width:0;
    text-align:left;
}
#custom-screen-list .custom-library-info {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
    min-width:0;
    text-align:left;
}
#custom-screen-list .custom-library-info h3 {
    font-size:calc(16px * var(--font-scale));
    margin:0;
}
#custom-screen-list .custom-library-info p {
    font-size:calc(13px * var(--font-scale));
    margin:0;
}
#custom-screen-list .custom-library-info small {
    font-size:calc(12px * var(--font-scale));
    margin:0;
}
#custom-screen-list .custom-library-icon,
#custom-screen-list .custom-drag-handle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 38px;
}
#custom-screen-list .custom-library-menu-wrap {
    position:relative;
    flex:0 0 38px;
}
#custom-screen-list .custom-library-menu {
    z-index:30;
}
#custom-screen-list .custom-library-menu button {
    font-size:13px;
}
@media (max-width:600px) {
#tela-lista-fases-custom .custom-library-topbar {
    gap:8px;
}
#tela-lista-fases-custom .custom-library-topbar > .custom-screen-actions-top {
    width:auto;
}
#tela-lista-fases-custom .custom-library-topbar #custom-screen-create {
    width:auto;
    padding:9px 11px;
    font-size:12px;
}
#custom-screen-list > .custom-library-card > .custom-library-main {
    flex-direction:row;
    gap:5px;
}
#custom-screen-list > .custom-library-card {
    padding:12px 9px;
}
#custom-screen-list .custom-library-icon,
#custom-screen-list .custom-drag-handle {
    flex-basis:32px;
    width:32px;
}
#custom-screen-list .custom-library-menu-wrap {
    flex-basis:32px;
}
}
#tela-lista-fases-custom {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
}
#tela-lista-fases-custom.escondido {
    display:none;
}
#tela-lista-fases-custom > .custom-library-topbar {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    width:100%;
    margin:0 0 12px;
}
#tela-lista-fases-custom > .cabecalho-selecao {
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    margin:0 0 18px;
    text-align:center;
}
#tela-lista-fases-custom > #custom-screen-list {
    display:flex;
    flex-direction:column;
    width:100%;
    gap:12px;
    margin-top:0;
}
#tela-lista-fases-custom > #custom-screen-list > .custom-library-card {
    width:100%;
    box-sizing:border-box;
}
#tela-lista-fases-custom .custom-library-card > .custom-library-main {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    width:100%;
}
#tela-lista-fases-custom .custom-library-info {
    flex:1 1 0;
    min-width:0;
    text-align:left;
}
#tela-lista-fases-custom .custom-library-menu-wrap {
    align-self:center;
}
#tela-suas-fases > .cabecalho-selecao {
    width:100%;
}
@media (max-width:600px) {
#tela-lista-fases-custom > .custom-library-topbar {
    gap:8px;
}
#tela-lista-fases-custom .custom-library-card > .custom-library-main {
    gap:6px;
}
}
#custom-screen-list > .custom-sort-placeholder {
    border:2px dashed var(--primary);
    background:var(--surface-soft);
}
.custom-sort-ghost {
    opacity:.97;
    box-shadow:0 18px 45px rgba(0,0,0,.3);
    transform:scale(1.015);
    border-color:var(--primary) !important;
    cursor:grabbing !important;
    box-sizing:border-box;
}
.custom-sort-ghost .custom-library-main {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    width:100%;
}
.custom-sort-ghost .custom-library-info {
    flex:1;
    min-width:0;
}
body.custom-sort-active,
body.custom-sort-active * {
    user-select:none !important;
}
#custom-screen-list .custom-drag-handle {
    touch-action:none;
    cursor:grab;
}
@media (prefers-reduced-motion:reduce) {
.custom-sort-ghost {
    transform:none;
}
}
#custom-screen-list > .custom-library-card button {
    cursor:pointer;
}
#custom-screen-list > .custom-sort-placeholder {
    opacity:.22;
    border-style:dashed;
}
.custom-sort-ghost {
    transition:none !important;
    will-change:top,left;
}
@media (prefers-reduced-motion:reduce) {
#custom-screen-list > .custom-library-card {
    scroll-behavior:auto;
}
}
#custom-screen-list > .custom-library-card {
    cursor:pointer;
}
#custom-screen-list > .custom-library-card:active {
    cursor:pointer;
}
#custom-screen-list > .custom-sort-placeholder {
    cursor:grabbing;
}
#custom-screen-list > .custom-library-card {
    touch-action: none;
}
#custom-screen-list > .custom-library-card button {
    touch-action: manipulation;
}
#tela-lista-fases-custom .custom-library-tools {
    width:100%;
    display:flex;
    flex-direction:column;
    gap:13px;
    margin:0 0 15px;
}
.custom-library-search {
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    box-sizing:border-box;
    padding:0 15px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface-soft);
    color:var(--text-muted);
}
.custom-library-search input {
    flex:1;
    min-width:0;
    padding:13px 0;
    background:transparent;
    border:0;
    outline:0;
    color:var(--text);
    font:inherit;
}
.custom-library-search:focus-within {
    border-color:var(--primary);
}
.custom-library-controls {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
}
.custom-library-filters {
    display:flex;
    gap:9px;
    flex-wrap:wrap;
}
.custom-library-filters button {
    border:1px solid var(--border);
    border-radius:10px;
    padding:10px 16px;
    background:var(--surface-soft);
    color:var(--text);
    cursor:pointer;
    font:inherit;
}
.custom-library-filters button.is-active {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}
.custom-library-order-label {
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--text-muted);
    font-size:13px;
}
.custom-library-order-label select {
    max-width:200px;
    min-width:155px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface-soft);
    color:var(--text);
    padding:10px;
    font:inherit;
}
.custom-library-count {
    font-size:13px;
    color:var(--text-muted);
}
#tela-lista-fases-custom #custom-screen-create[hidden] {
    display:none!important;
}
@media(max-width:600px) {
.custom-library-controls {
    align-items:stretch;
    flex-direction:column;
}
.custom-library-order-label {
    justify-content:space-between;
}
}
#custom-screen-list .custom-library-menu button {
    display:flex;
    align-items:center;
    gap:10px;
}
#custom-screen-list .custom-library-menu button svg {
    width:17px;
    height:17px;
    flex:none;
}
#custom-screen-list .custom-library-menu button span {
    flex:1;
}

/* Compartilhamento */
.btn-compartilhar-evolucao {
    width:auto!important;
    min-width:0!important;
    min-height:36px;
    height:36px;
    padding:7px 11px!important;
    margin:0!important;
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-size:11px;
}
.btn-compartilhar-resultado {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.share-card-backdrop {
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(7,17,31,.52);
    backdrop-filter:blur(8px);
    overflow:auto;
}
.share-card-backdrop.escondido {
    display:none!important;
}
.share-card-modal {
    width:min(680px,100%);
    max-height:min(94dvh,900px);
    overflow:auto;
    background:var(--surface);
    color:var(--text);
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:0 30px 90px rgba(0,0,0,.3);
    padding:0 22px 22px;
    transform-origin:center center;
}
.share-card-modal.share-card-modal-abrindo {
    animation:relatoModalEntrada 320ms cubic-bezier(.22,.61,.36,1) both;
}
.share-card-modal.share-card-modal-fechando {
    animation:relatoModalSaida 220ms cubic-bezier(.55,.08,.68,.53) both;
}
.share-card-head {
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 0;
    background:var(--surface);
    border-bottom:1px solid var(--border);
}
.share-card-head h2 {
    margin:2px 0 0;
    font-size:20px;
}
.share-card-kicker {
    color:var(--primary);
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
}
.share-card-type-control {
    padding:16px 0 4px;
}
.share-card-type-control>span {
    color:var(--text-secondary);
    font-size:12px;
    font-weight:650;
}
.share-segmented {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    margin-top:7px;
}
.share-segmented button {
    flex:1;
    min-height:40px;
    padding:8px 12px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface-soft);
    color:var(--text);
    font:inherit;
    font-size:12px;
    font-weight:650;
    cursor:pointer;
}
.share-segmented button.is-active {
    border-color:var(--primary);
    background:color-mix(in srgb,var(--primary) 11%,var(--surface));
    color:var(--primary);
}
#share-card-subject {
    width:100%;
    min-height:40px;
    margin-top:7px;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface-soft);
    color:var(--text);
    font:inherit;
}
.share-type-control[hidden] {
    display:none!important;
}
.share-card-preview-wrap {
    padding:16px 0 20px;
}
.share-card-preview {
    width:100%;
    min-height:270px;
    max-height:55dvh;
    overflow:auto;
    border-radius:18px;
    background:var(--surface-soft);
    border:1px solid var(--border);
    box-shadow:0 16px 45px rgba(0,0,0,.10);
}
.share-card-text-preview {
    box-sizing:border-box;
    min-height:270px;
    padding:22px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    color:var(--text);
    font:500 14px/1.65 Inter,"Segoe UI",Arial,sans-serif;
}
.share-card-text-preview::selection {
    background:color-mix(in srgb,var(--primary) 24%,transparent);
}
.share-card-actions {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:9px;
}
.share-card-actions button {
    width:auto;
    min-width:170px;
    margin:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.share-card-feedback {
    min-height:18px;
    margin:10px 0 0;
    text-align:center;
    color:var(--text-secondary);
    font-size:12px;
}
body.share-card-aberto {
    overflow:hidden;
}
@media (max-width:700px) {
.btn-compartilhar-evolucao {
    justify-content:center;
    width:auto!important;
    align-self:flex-end;
}
.share-card-backdrop {
    align-items:flex-start;
    padding:8px;
}
.share-card-modal {
    max-height:98dvh;
    border-radius:16px;
    padding:0 14px 16px;
}
.share-card-preview {
    min-height:240px;
    max-height:58dvh;
}
.share-card-text-preview {
    min-height:240px;
    padding:18px;
    font-size:14px;
}
.share-card-actions button {
    flex:1 1 100%;
}
}
.share-card-actions button:disabled {
    opacity:.62;
    cursor:wait;
    pointer-events:none;
}
#tela-dashboard .dashboard-section-head > .btn-compartilhar-evolucao {
    flex: 0 0 auto;
    margin-left: auto !important;
}
@media (max-width: 620px) {
#tela-dashboard .dashboard-section-head > .btn-compartilhar-evolucao {
    margin-left: auto !important;
}
}
#tela-dashboard .dashboard-section-head > .btn-compartilhar-evolucao {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin: 0 !important;
    width: max-content !important;
    max-width: 100%;
    height: auto;
    min-height: 36px;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 7px;
}
#tela-dashboard .btn-compartilhar-evolucao > span {
    white-space: nowrap;
}
#tela-dashboard .btn-compartilhar-evolucao > svg {
    flex-shrink: 0;
}
#tela-dashboard .dashboard-share-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}
#tela-dashboard .dashboard-share-actions > .btn-compartilhar-evolucao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    width: max-content !important;
    max-width: 100%;
    margin: 0 !important;
    white-space: nowrap;
}
#tela-dashboard .dashboard-share-actions[hidden] {
    display: none !important;
}
