.uptest-landing {
    --uptest-bg: #f4f7fb;
    --uptest-paper: #ffffff;
    --uptest-ink: #111827;
    --uptest-muted: #586579;
    --uptest-brand: #174ea6;
    --uptest-brand-2: #1d4ed8;
    --uptest-brand-dark: #0f1f3d;
    --uptest-success: #0f766e;
    --uptest-success-soft: #e7f7f3;
    --uptest-line: #dfe7f2;
    --uptest-warning-bg: #fff7ed;
    --uptest-warning-ink: #9a3412;
    --uptest-danger: #dc2626;
    --uptest-danger-soft: #fef2f2;
    --uptest-error-bg: #fef2f2;
    --uptest-error-ink: #991b1b;
    --uptest-shadow: 0 18px 50px rgba(22, 32, 51, .11);
    --uptest-soft-shadow: 0 10px 28px rgba(22, 32, 51, .07);
    background: radial-gradient(circle at 10% 0, #eaf2ff 0, rgba(234, 242, 255, 0) 36%), var(--uptest-bg);
    color: var(--uptest-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-size: 17px;
    padding: 10px 0 44px;
    overflow-x: hidden;
}

.uptest-landing * { box-sizing: border-box; }
.uptest-landing a { color: inherit; }
.uptest-landing h1,
.uptest-landing h2,
.uptest-landing h3,
.uptest-landing p { font-family: Arial, Helvetica, sans-serif; }

.uptest-wrap {
    width: min(1480px, calc(100% - 18px));
    margin: 0 auto;
}

.uptest-topbar {
    position: sticky;
    top: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 10px 14px;
    margin: 0 0 12px;
    border: 1px solid rgba(223, 231, 242, .82);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.uptest-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.uptest-logo img {
    width: clamp(118px, 24vw, 178px);
    max-height: 54px;
    height: auto;
    display: block;
    object-fit: contain;
}

.uptest-toplinks {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--uptest-muted);
    font-size: .95rem;
    font-weight: 800;
}

.uptest-toplinks a {
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 999px;
}

.uptest-toplinks a:hover { background: #eef4ff; color: var(--uptest-brand); }

.uptest-menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--uptest-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.uptest-menu-button span {
    width: 22px;
    height: 2px;
    background: var(--uptest-brand-dark);
    border-radius: 999px;
    transition: transform .18s ease, opacity .18s ease;
}

.uptest-topbar.is-menu-open .uptest-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uptest-topbar.is-menu-open .uptest-menu-button span:nth-child(2) { opacity: 0; }
.uptest-topbar.is-menu-open .uptest-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.uptest-mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--uptest-line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
    backdrop-filter: blur(16px);
}

.uptest-topbar.is-menu-open .uptest-mobile-menu { display: grid; }
.uptest-mobile-menu a {
    padding: 12px 13px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--uptest-brand-dark);
    background: #f5f8fc;
    font-weight: 800;
}

.uptest-hero {
    display: grid;
    gap: 18px;
    margin: 0 auto 20px;
    padding: clamp(18px, 3vw, 34px);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--uptest-brand-dark), var(--uptest-brand) 56%, var(--uptest-success));
    color: #fff;
    box-shadow: var(--uptest-shadow);
    overflow: hidden;
    position: relative;
}

.uptest-hero:after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    right: -160px;
    top: -150px;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

.uptest-hero-copy,
.uptest-hero-media,
.uptest-search-panel { position: relative; z-index: 1; }

.uptest-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 800;
    color: rgba(255,255,255,.94);
}

.uptest-landing h1 {
    margin: 12px 0 14px;
    font-size: clamp(2.05rem, 8vw, 4.7rem);
    line-height: 1.02;
    color: inherit;
    letter-spacing: -.04em;
}

.uptest-landing h2 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 4.6vw, 2.35rem);
    line-height: 1.14;
    color: var(--uptest-ink);
    letter-spacing: -.025em;
}

.uptest-landing h3 {
    margin: 0 0 8px;
    font-size: clamp(1.18rem, 3.4vw, 1.55rem);
    line-height: 1.18;
    color: var(--uptest-ink);
}

.uptest-landing p { margin: 0 0 14px; }
.uptest-hero p { max-width: 860px; font-size: clamp(1.02rem, 2.4vw, 1.22rem); opacity: .95; }

.uptest-hero-actions,
.uptest-filter-actions,
.uptest-quicklinks,
.uptest-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.uptest-hero-media {
    width: 100%;
    min-width: 0;
}

.uptest-hero-media picture,
.uptest-hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.uptest-hero-media img {
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.uptest-search-panel {
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    color: var(--uptest-ink);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}

.uptest-search-panel h2 { margin-bottom: 4px; }
.uptest-search-panel p { color: var(--uptest-muted); }

.uptest-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.uptest-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    color: var(--uptest-brand-dark);
    font-weight: 900;
}

.uptest-field input,
.uptest-field select {
    width: 100%;
    min-height: 54px;
    border: 1px solid #cfd9e7;
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    color: var(--uptest-ink);
    font-size: 1rem;
    outline: none;
}

.uptest-field input:focus,
.uptest-field select:focus {
    border-color: var(--uptest-brand);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}

.uptest-filter-actions { margin-top: 14px; }

.uptest-section { margin: 22px 0; }

.uptest-section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
.uptest-section-head p { color: var(--uptest-muted); max-width: 920px; }

.uptest-card {
    background: var(--uptest-paper);
    border: 1px solid var(--uptest-line);
    border-radius: 22px;
    padding: clamp(18px, 2.3vw, 26px);
    box-shadow: var(--uptest-soft-shadow);
}

.uptest-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.uptest-grid.faq { gap: 12px; }

.uptest-scope-card {
    display: grid;
    gap: 9px;
    min-height: 180px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.uptest-scope-card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: var(--uptest-shadow); }
.uptest-scope-card strong { font-size: 1.55rem; color: var(--uptest-brand-dark); }
.uptest-scope-count { color: var(--uptest-brand); font-weight: 900; }

.uptest-edict-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.uptest-edict-card {
    display: grid;
    gap: 18px;
    align-items: stretch;
}
.uptest-edict-card[hidden] { display: none !important; }

.uptest-edict-main { min-width: 0; }
.uptest-edict-main h3 a { color: var(--uptest-brand-dark); text-decoration: none; }
.uptest-edict-main h3 a:hover { color: var(--uptest-brand); }

.uptest-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.uptest-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--uptest-brand);
    font-size: .82rem;
    font-weight: 900;
}
.uptest-tag.scope-municipal { background: #e9f8f3; color: #0f766e; }
.uptest-tag.scope-estadual { background: #eef2ff; color: #4338ca; }
.uptest-tag.scope-federal { background: #fff7ed; color: #9a3412; }
.uptest-tag.draft { background: var(--uptest-warning-bg); color: var(--uptest-warning-ink); }

.uptest-muted { color: var(--uptest-muted); }
.uptest-meta-list { display: grid; gap: 4px; margin-top: 10px; color: var(--uptest-muted); font-size: .95rem; }
.uptest-meta-list span { overflow-wrap: anywhere; }

.uptest-urgency {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 14px 0;
}
.uptest-urgency span {
    padding: 11px 12px;
    border-radius: 15px;
    background: #f3f7fb;
    color: #334155;
    font-weight: 800;
}
.uptest-urgency .danger {
    background: var(--uptest-danger-soft);
    color: var(--uptest-danger);
}
.uptest-date-red { color: var(--uptest-danger); font-size: 1.02em; }

.uptest-plan-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.uptest-plan-facts span {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e1e9f4;
    border-radius: 16px;
    background: #f8fbff;
    color: #334155;
    font-size: .92rem;
}
.uptest-plan-facts strong { display: block; color: var(--uptest-brand-dark); font-size: 1.38rem; line-height: 1.1; }

.uptest-history-note {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 15px;
    background: var(--uptest-success-soft);
    color: var(--uptest-success);
    font-weight: 900;
    font-size: .92rem;
}

.uptest-price-panel {
    display: grid;
    gap: 10px;
    align-content: center;
    justify-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e5edf7;
}
.uptest-price { font-size: clamp(1.8rem, 5vw, 2.45rem); line-height: 1; font-weight: 900; color: var(--uptest-success); }

.uptest-button,
.uptest-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 17px;
    border-radius: 999px;
    background: var(--uptest-brand);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    width: 100%;
    font-size: .98rem;
    text-align: center;
}
.uptest-button.secondary { background: var(--uptest-success); }
.uptest-button.light { background: #eef2f7; color: var(--uptest-ink) !important; }
.uptest-button.ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28); color: #fff !important; }
.uptest-chip { background: #eef2ff; color: #312e81 !important; }
.uptest-button:hover,
.uptest-chip:hover { filter: brightness(.98); transform: translateY(-1px); }

.uptest-result-count {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #312e81;
    font-weight: 900;
}

.uptest-no-results { display: none; background: var(--uptest-warning-bg); color: var(--uptest-warning-ink); font-weight: 800; }
.uptest-no-results.is-visible { display: block; }

.uptest-seo-text { display: grid; gap: 18px; }
.uptest-benefit strong { display: block; margin-bottom: 8px; font-size: 1.08rem; color: var(--uptest-brand-dark); }
.uptest-request-box { background: linear-gradient(135deg, #e9f8f3, #f6fbff); border-color: #ccefe4; }

.uptest-notice {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    font-weight: 800;
}
.uptest-notice.success { background: #e9f8f3; border: 1px solid #ccefe4; color: #0f513f; }
.uptest-notice.warning { background: var(--uptest-warning-bg); border: 1px solid #fed7aa; color: var(--uptest-warning-ink); }
.uptest-notice.error,
.uptest-error { background: var(--uptest-error-bg); border: 1px solid #fecaca; color: var(--uptest-error-ink); }

.uptest-faq details {
    background: #fff;
    border: 1px solid var(--uptest-line);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--uptest-soft-shadow);
}
.uptest-faq summary { cursor: pointer; font-weight: 900; color: var(--uptest-brand-dark); }
.uptest-faq details p { margin-top: 10px; color: var(--uptest-muted); }

.uptest-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .74);
    z-index: 99999;
}
.uptest-modal-backdrop.is-open { display: flex; }
.uptest-modal {
    width: min(640px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    padding: clamp(18px, 4vw, 30px);
}
.uptest-feedback-modal { width: min(720px, 100%); }
.uptest-modal-header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.uptest-close-modal {
    border: 0;
    background: #eef2f7;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    flex: 0 0 auto;
}
.uptest-modal label { display: block; font-weight: 900; margin: 14px 0 6px; color: var(--uptest-brand-dark); }
.uptest-modal input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--uptest-line);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 1rem;
}
.uptest-form-note { font-size: .94rem; color: var(--uptest-muted); margin-top: 10px; }
.uptest-modal-actions { margin-top: 18px; }

.uptest-upcoming-list { display: grid; gap: 8px; margin-top: 10px; }
.uptest-upcoming-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--uptest-line);
    border-radius: 14px;
    background: #f8fbff;
}
.uptest-upcoming-row strong { color: var(--uptest-brand-dark); line-height: 1.25; }
.uptest-upcoming-date { font-weight: 900; white-space: nowrap; }
.uptest-upcoming-date.safe { color: #15803d; }
.uptest-upcoming-date.danger { color: var(--uptest-danger); }

.uptest-mini-footer {
    margin-top: 28px;
    padding: 28px 16px 6px;
    color: var(--uptest-muted);
    text-align: center;
    font-size: .96rem;
}
.uptest-mini-footer a { color: var(--uptest-brand); font-weight: 900; text-decoration: none; }

@media (min-width: 560px) {
    .uptest-button,
    .uptest-chip { width: auto; }
    .uptest-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uptest-urgency { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
    .uptest-wrap { width: min(1480px, calc(100% - 34px)); }
    .uptest-menu-button,
    .uptest-mobile-menu { display: none !important; }
    .uptest-toplinks { display: flex; }
    .uptest-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .82fr);
        align-items: center;
        padding: clamp(28px, 4vw, 52px);
    }
    .uptest-search-panel { grid-column: 1 / -1; }
    .uptest-search-grid { grid-template-columns: 1.5fr 1fr .7fr .85fr .85fr 1fr; }
    .uptest-field.main-search { grid-column: span 2; }
    .uptest-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .uptest-grid.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uptest-section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .uptest-edict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uptest-edict-card { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); }
    .uptest-price-panel { justify-items: start; }
    .uptest-seo-text { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
}

@media (min-width: 1220px) {
    .uptest-edict-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .uptest-edict-card { grid-template-columns: 1fr; }
    .uptest-price-panel { align-content: start; }
}

@media (max-width: 420px) {
    .uptest-wrap { width: min(100% - 12px, 100%); }
    .uptest-topbar { border-radius: 16px; padding: 8px 10px; }
    .uptest-hero { border-radius: 20px; padding: 14px; }
    .uptest-search-panel { border-radius: 18px; padding: 14px; }
    .uptest-card { border-radius: 18px; padding: 16px; }
    .uptest-plan-facts { grid-template-columns: 1fr; }
    .uptest-upcoming-row { grid-template-columns: 1fr; }
    .uptest-upcoming-date { white-space: normal; }
}


/* Etapa 43F — refinamento de modais e próximas provas */
.uptest-landing,
.uptest-modal-backdrop {
    --uptest-bg: #f4f7fb;
    --uptest-paper: #ffffff;
    --uptest-ink: #111827;
    --uptest-muted: #586579;
    --uptest-brand: #174ea6;
    --uptest-brand-2: #1d4ed8;
    --uptest-brand-dark: #0f1f3d;
    --uptest-success: #0f766e;
    --uptest-success-soft: #e7f7f3;
    --uptest-line: #dfe7f2;
    --uptest-warning-bg: #fff7ed;
    --uptest-warning-ink: #9a3412;
    --uptest-danger: #dc2626;
    --uptest-danger-soft: #fef2f2;
    --uptest-error-bg: #fef2f2;
    --uptest-error-ink: #991b1b;
    --uptest-shadow: 0 18px 50px rgba(22, 32, 51, .11);
    --uptest-soft-shadow: 0 10px 28px rgba(22, 32, 51, .07);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.uptest-landing h1,
.uptest-landing h2,
.uptest-landing h3,
.uptest-landing p,
.uptest-modal-backdrop h2,
.uptest-modal-backdrop p,
.uptest-modal-backdrop label,
.uptest-modal-backdrop input,
.uptest-modal-backdrop button {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.uptest-modal-backdrop {
    padding: clamp(10px, 2.6vw, 22px);
    background:
        radial-gradient(circle at 20% 0%, rgba(96, 165, 250, .34), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(20, 184, 166, .24), transparent 32%),
        rgba(15, 23, 42, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.uptest-modal {
    width: min(720px, calc(100vw - 22px));
    max-height: min(760px, calc(100vh - 22px));
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,255,.99));
    box-shadow: 0 30px 90px rgba(2, 6, 23, .38);
    color: var(--uptest-ink);
}

.uptest-feedback-modal {
    width: min(820px, calc(100vw - 22px));
}

.uptest-modal-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(223,231,242,.9);
}

.uptest-modal-header h2 {
    margin: 0 0 6px;
    color: var(--uptest-brand-dark);
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.uptest-modal-header p {
    margin: 0;
    color: var(--uptest-muted);
    font-size: .98rem;
}

.uptest-close-modal {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.uptest-close-modal:hover {
    background: #e2e8f0;
}

.uptest-modal label {
    margin: 13px 0 5px;
    font-size: .88rem;
    letter-spacing: .01em;
}

.uptest-modal input {
    min-height: 46px;
    border-radius: 14px;
    padding: 10px 13px;
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(15,23,42,.03);
}

.uptest-modal input:focus {
    outline: none;
    border-color: var(--uptest-brand);
    box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.uptest-form-note {
    padding: 12px 13px;
    border-radius: 14px;
    background: #eef6ff;
    color: #334155;
}

.uptest-modal .uptest-button,
.uptest-modal .uptest-chip {
    min-height: 46px;
    border-radius: 14px;
}

.uptest-upcoming-list {
    gap: 6px;
}

.uptest-upcoming-head,
.uptest-upcoming-row.compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    gap: 10px;
    align-items: center;
}

.uptest-upcoming-head {
    margin: 14px 0 6px;
    padding: 0 12px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.uptest-upcoming-row.compact {
    padding: 10px 12px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15,23,42,.045);
}

.uptest-upcoming-row.compact strong {
    color: var(--uptest-brand-dark);
    font-size: .96rem;
    line-height: 1.24;
}

.uptest-upcoming-row.compact small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.18;
}

.uptest-upcoming-date {
    text-align: right;
    line-height: 1.12;
}

.uptest-upcoming-date small {
    margin-top: 3px;
    color: inherit;
    opacity: .78;
}

@media (max-width: 520px) {
    .uptest-modal {
        border-radius: 22px;
        padding: 18px;
    }

    .uptest-modal-header {
        gap: 8px;
    }

    .uptest-upcoming-head,
    .uptest-upcoming-row.compact {
        grid-template-columns: 1fr;
    }

    .uptest-upcoming-date {
        text-align: left;
    }
}


/* Etapa 45 — próximas provas por Banca │ Instituição │ Nº Edital com sanfona */
.uptest-upcoming-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
    overflow: hidden;
}

.uptest-upcoming-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--uptest-ink);
}

.uptest-upcoming-toggle:hover {
    background: #f8fbff;
}

.uptest-upcoming-toggle:focus {
    outline: 3px solid rgba(29, 78, 216, .18);
    outline-offset: -3px;
}

.uptest-upcoming-main {
    min-width: 0;
}

.uptest-upcoming-main strong {
    display: block;
    color: var(--uptest-brand-dark);
    font-size: .98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.uptest-upcoming-main small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-weight: 800;
    line-height: 1.2;
}

.uptest-upcoming-toggle::after {
    content: '▾';
    grid-column: 1 / -1;
    justify-self: start;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--uptest-brand);
    font-size: .95rem;
    transition: transform .16s ease;
}

.uptest-upcoming-item.is-open .uptest-upcoming-toggle::after {
    transform: rotate(180deg);
}

.uptest-upcoming-panel {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
    background: #ffffff;
}

.uptest-upcoming-panel[hidden] {
    display: none;
}

.uptest-upcoming-job {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--uptest-brand-dark);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.25;
}

.uptest-upcoming-job:hover {
    border-color: #bfdbfe;
    background: #eef6ff;
    color: var(--uptest-brand);
}

@media (max-width: 520px) {
    .uptest-upcoming-toggle {
        grid-template-columns: 1fr;
    }
}
