/* Masters Concursos / QGabarito - Concurso alvo */

.target-page-shell,
.questions-page-shell,
.simulados-page-shell,
.personal-stats-page-shell,
.gamification-page-shell,
.study-plan-page-shell {
    width: calc(100% - 32px);
    max-width: none;
}

.target-hero,
.qg-target-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.target-kicker,
.target-section-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #173b67;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.target-hero h1,
.target-section-heading h2,
.target-config-card h2 {
    margin: 0;
    color: #173b67;
}

.target-hero p,
.target-section-heading p {
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.6;
}

.target-hero-badge {
    flex: 0 0 min(320px, 34%);
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    padding: 16px 18px;
    background: #f8fafc;
}

.target-hero-badge span,
.target-hero-badge small {
    display: block;
    color: #667085;
    font-size: .82rem;
}

.target-hero-badge strong {
    display: block;
    margin: 4px 0;
    color: #173b67;
    font-size: 1.08rem;
}

.target-notice {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .92rem;
}
.target-notice.success { background: #ecf8f0; color: #137333; }
.target-notice.error { background: #fff1f0; color: #a1241c; }

.target-config-card,
.target-actions-card,
.target-disciplines-card,
.target-goals-card,
.target-context-card,
.target-transparency-card,
.target-empty-card {
    margin-top: 18px;
}

.target-config-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
}

.target-config-form label {
    flex: 1 1 520px;
    display: grid;
    gap: 6px;
}

.target-config-form label > span,
.target-action-form label > strong {
    color: #344054;
    font-weight: 800;
}

.target-config-form select,
.target-action-form select,
.target-sim-fields select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd7e2;
    border-radius: 9px;
    padding: 9px 11px;
    background: #fff;
    color: #293447;
    font: inherit;
}

.target-clear-form { margin-top: 12px; }

.target-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.target-summary-card span,
.target-summary-card small {
    display: block;
    color: #667085;
}

.target-summary-card strong {
    display: block;
    margin: 8px 0 5px;
    color: #173b67;
    font-size: 1.45rem;
}

.target-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}
.target-section-heading.compact { margin-bottom: 14px; }

.target-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.target-action-tile {
    min-width: 0;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    padding: 17px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.target-action-tile > strong,
.target-action-form label > strong {
    display: block;
    color: #173b67;
    font-size: 1rem;
}

.target-action-tile > span,
.target-action-form label > span {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: .86rem;
    line-height: 1.5;
}

.target-action-form {
    display: grid;
    gap: 11px;
}

.target-action-form .primary-button { justify-self: start; }
.target-sim-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.target-discipline-table-wrap { overflow-x: auto; margin-top: 16px; }
.target-discipline-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.target-discipline-table th,
.target-discipline-table td { padding: 12px 10px; border-bottom: 1px solid #e7ebf0; text-align: left; }
.target-discipline-table th { color: #667085; font-size: .8rem; }
.target-discipline-table td { color: #344054; }
.target-discipline-table td:last-child { text-align: right; }
.target-discipline-table a { color: #173b67; font-weight: 750; text-decoration: none; }

.target-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.target-goal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.target-goal-list > div {
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    padding: 14px;
}
.target-goal-list span,
.target-goal-list small { display: block; color: #667085; font-size: .84rem; }
.target-goal-list strong { display: block; margin: 6px 0; color: #173b67; }
.target-goal-list a { color: #173b67; font-weight: 750; text-decoration: none; font-size: .84rem; }

.target-context-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.target-context-list div { padding-bottom: 9px; border-bottom: 1px solid #edf0f3; }
.target-context-list dt { color: #667085; font-size: .78rem; }
.target-context-list dd { margin: 4px 0 0; color: #344054; font-weight: 700; }

.target-board-list { margin-top: 16px; }
.target-board-list > span { color: #667085; font-size: .8rem; }
.target-board-list > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.target-board-list > div span { border: 1px solid #dce3ec; border-radius: 999px; padding: 5px 9px; background: #f8fafc; color: #475467; font-size: .78rem; }

.target-empty,
.target-empty-card,
.target-transparency-card { color: #667085; }
.target-empty-card strong,
.target-transparency-card strong { color: #173b67; }
.target-transparency-card p,
.target-empty-card p { margin-bottom: 0; line-height: 1.6; }

.qg-target-context-bar {
    margin: 14px 0 18px;
    padding: 14px 16px;
}
.qg-target-context-copy { min-width: 0; }
.qg-target-context-copy span { display: block; color: #667085; font-size: .8rem; }
.qg-target-context-copy strong { display: block; margin-top: 3px; color: #173b67; }
.qg-target-context-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.qg-target-context-actions a { text-decoration: none; }
.qg-target-chip { display: inline-flex; align-items: center; border: 1px solid #cfd9e5; border-radius: 999px; padding: 6px 9px; background: #f8fafc; color: #173b67; font-size: .8rem; font-weight: 800; }

.target-stats-inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.target-stats-inline > div { border: 1px solid #e1e6ec; border-radius: 12px; padding: 14px; background: #fff; }
.target-stats-inline span { display: block; color: #667085; font-size: .8rem; }
.target-stats-inline strong { display: block; margin-top: 5px; color: #173b67; font-size: 1.2rem; }

.target-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px;
}
.target-inline-form label { display: grid; gap: 5px; color: #475467; font-size: .8rem; }
.target-inline-form select { min-width: 120px; min-height: 40px; border: 1px solid #cfd7e2; border-radius: 8px; padding: 8px 10px; background: #fff; font: inherit; }

@media (max-width: 1100px) {
    .target-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .target-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .target-stats-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .target-page-shell,
    .questions-page-shell,
    .simulados-page-shell,
    .personal-stats-page-shell,
    .gamification-page-shell,
    .study-plan-page-shell {
        width: calc(100% - 20px);
    }
    .target-hero,
    .qg-target-context-bar,
    .target-config-form,
    .target-section-heading {
        flex-direction: column;
        align-items: stretch;
    }
    .target-hero-badge { flex-basis: auto; }
    .target-summary-grid,
    .target-action-grid,
    .target-detail-grid,
    .target-goal-list,
    .target-context-list,
    .target-stats-inline,
    .target-sim-fields { grid-template-columns: 1fr; }
    .qg-target-context-actions { justify-content: flex-start; }
    .target-action-form .primary-button { width: 100%; }
}
