.profile-dashboard-body {
    background: #f7f4f9;
    color: #281f2e;
}

.profile-skip-link {
    position: absolute;
    z-index: 2000;
    top: 8px;
    left: -999px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #2d1b3d;
}

.profile-skip-link:focus { left: 12px; }

.profile-dashboard {
    width: min(1280px, calc(100% - 36px));
    min-height: 640px;
    margin: 0 auto;
    padding: 44px 0 82px;
    font-family: var(--font-body, 'Inter', Arial, Helvetica, sans-serif);
}

.profile-dashboard [hidden] { display: none !important; }

.profile-dashboard .profile-message {
    max-width: 760px;
    margin: 30px auto;
    padding: 18px;
    border: 1px solid #e7dfea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(45, 27, 61, .08);
    text-align: center;
}

.profile-dashboard .profile-message.error {
    border-color: #f0c8cd;
    background: #fff4f5;
    color: #9f1d2d;
}

.profile-identity {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-avatar {
    display: grid;
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 20px;
    background: #2d1b3d;
    box-shadow: 0 10px 22px rgba(45, 27, 61, .18);
    color: #ffffff;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
}

.profile-identity-copy { min-width: 0; }

.profile-eyebrow {
    color: #e8642b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.profile-identity h1 {
    margin: 2px 0 6px;
    color: #2d1b3d;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.profile-identity-copy p {
    margin: 0;
    color: #746a79;
    font-size: .9rem;
}

.profile-identity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-left: auto;
}

.profile-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.profile-button-primary {
    border-color: #2d1b3d;
    background: #2d1b3d;
    color: #ffffff;
}

.profile-button-primary:hover { background: #432655; }

.profile-button-secondary {
    border-color: #ded5e3;
    background: #ffffff;
    color: #2d1b3d;
}

.profile-button-secondary:hover { background: #f3eef6; }

.profile-button:focus-visible,
.profile-text-action:focus-visible,
.profile-tabs button:focus-visible,
.profile-history-filters button:focus-visible {
    outline: 3px solid rgba(232, 100, 43, .28);
    outline-offset: 2px;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    border-bottom: 1px solid #dfd6e4;
}

.profile-tabs button {
    min-height: 46px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #766c7b;
    cursor: pointer;
    font-weight: 800;
}

.profile-tabs button[aria-selected="true"] {
    border-bottom-color: #e8642b;
    color: #2d1b3d;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(285px, .85fr);
    gap: 18px;
}

.profile-main-column,
.profile-side-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.profile-card,
.profile-metric {
    border: 1px solid #e4dce8;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(45, 27, 61, .065);
}

.profile-card {
    padding: 20px;
    border-radius: 17px;
}

.profile-focus-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1eaf5 100%);
}

.profile-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-card h2,
.profile-card h3,
.profile-card p { margin: 0; }

.profile-card h2 {
    color: #2d1b3d;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -.012em;
}

.profile-card h3 {
    color: #2e2633;
    font-size: .94rem;
    line-height: 1.35;
}

.profile-card-heading p,
.profile-insight-card > p,
.profile-recommendation p,
.profile-goal-content p {
    margin-top: 5px;
    color: #776d7c;
    font-size: .77rem;
    line-height: 1.55;
}

.profile-chip,
.profile-status-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e9f7f0;
    color: #177c56;
    font-size: .68rem;
    font-weight: 800;
}

.profile-status-chip.is-neutral { background: #f1edf3; color: #6e6373; }

.profile-focus-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
}

.profile-focus-content > div > p:first-child {
    color: #372d3c;
    font-size: 1rem;
    line-height: 1.55;
}

.profile-supporting-text {
    margin-top: 6px !important;
    color: #776d7c !important;
    font-size: .78rem !important;
}

.profile-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-metric {
    min-width: 0;
    padding: 16px;
    border-radius: 14px;
}

.profile-metric span,
.profile-metric small {
    display: block;
    color: #776d7c;
    font-size: .68rem;
    line-height: 1.35;
}

.profile-metric strong {
    display: block;
    margin: 5px 0;
    color: #2d1b3d;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 1.55rem;
    line-height: 1.05;
}

.profile-task-list { display: grid; margin-top: 12px; }

.profile-task {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #ece6ef;
}

.profile-task:last-child { border-bottom: 0; padding-bottom: 0; }

.profile-task-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 10px;
    background: #f0e9f4;
    color: #54216e;
    font-weight: 800;
}

.profile-task p { margin-top: 3px; color: #776d7c; font-size: .72rem; }

.profile-text-action {
    border: 0;
    background: transparent;
    color: #54216e;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: underline;
}

.profile-activity-tab-action { margin-top: 15px; padding: 0; }

.profile-goal-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
}

.profile-goal-ring {
    --profile-goal-angle: 0deg;
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#e8642b var(--profile-goal-angle), #e8e0eb 0);
    color: #2d1b3d;
    font-size: .82rem;
    font-weight: 800;
}

.profile-goal-ring::after {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.profile-goal-ring span { position: relative; z-index: 1; }

.profile-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin-top: 16px;
}

.profile-day {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #807584;
    font-size: .62rem;
}

.profile-day strong {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #f0ebf2;
    color: #776d7c;
    font-size: .64rem;
}

.profile-day.is-qualified strong { background: #2d1b3d; color: #ffffff; }
.profile-day.is-today strong { background: #e8642b; color: #ffffff; }

.profile-recommendation { display: grid; gap: 10px; margin-top: 14px; }

.profile-priority-label {
    width: max-content;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff0e8;
    color: #d95720;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-recommendation .profile-button { justify-self: start; margin-top: 2px; }

.profile-accuracy-chart {
    display: grid;
    min-height: 210px;
    grid-template-columns: repeat(8, minmax(28px, 1fr));
    align-items: end;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 10px 0;
    border-bottom: 1px solid #e6dfe9;
}

.profile-accuracy-column {
    display: grid;
    height: 180px;
    grid-template-rows: 1fr auto;
    align-items: end;
    justify-items: center;
    gap: 8px;
    color: #7a707f;
    font-size: .66rem;
}

.profile-accuracy-bar {
    position: relative;
    width: min(34px, 74%);
    min-height: 6px;
    border-radius: 8px 8px 0 0;
    background: #6b2a8b;
}

.profile-accuracy-column:last-child .profile-accuracy-bar { background: #e8642b; }

.profile-accuracy-bar span {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: #463a4c;
    font-size: .65rem;
    font-weight: 800;
}

.profile-empty-inline { margin-top: 18px !important; padding: 24px 0; text-align: center; }

.profile-domain-list { display: grid; gap: 18px; margin-top: 18px; }

.profile-domain-row { display: grid; gap: 8px; }
.profile-domain-heading,
.profile-domain-detail { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-domain-heading strong { color: #2d1b3d; }
.profile-domain-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8e1ea; }
.profile-domain-track span { display: block; height: 100%; border-radius: inherit; background: #6b2a8b; }
.profile-domain-row.is-priority .profile-domain-track span { background: #e8642b; }
.profile-domain-detail span { color: #776d7c; font-size: .72rem; }

.profile-insight-card .profile-button { margin-top: 15px; }

.profile-activity-layout {
    display: grid;
    grid-template-columns: minmax(275px, .75fr) minmax(0, 1.8fr);
    gap: 18px;
}

.profile-streak-summary { display: flex; align-items: center; gap: 15px; margin-top: 18px; }

.profile-streak-summary > strong {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 20px;
    background: #2d1b3d;
    color: #ffffff;
    font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 1.8rem;
}

.profile-streak-summary p { margin-top: 4px; color: #776d7c; font-size: .76rem; line-height: 1.5; }

.profile-table-wrap { margin-top: 18px; overflow-x: auto; }

.profile-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: .78rem;
}

.profile-table th,
.profile-table td {
    padding: 13px 11px;
    border-bottom: 1px solid #ebe5ee;
    text-align: left;
    vertical-align: middle;
}

.profile-table th { color: #776d7c; font-size: .7rem; font-weight: 800; }
.profile-table tbody tr:last-child td { border-bottom: 0; }
.profile-table-score { color: #177c56; font-weight: 800; }
.profile-table .profile-button { min-height: 34px; padding: 7px 10px; white-space: nowrap; font-size: .7rem; }

.profile-history-filters {
    display: inline-flex;
    gap: 3px;
    margin-top: 16px;
    padding: 3px;
    border-radius: 10px;
    background: #f0ebf2;
}

.profile-history-filters button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #776d7c;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
}

.profile-history-filters button[aria-pressed="true"] { background: #2d1b3d; color: #ffffff; }

.profile-empty-state {
    margin: 18px 0 0 !important;
    padding: 24px;
    border-radius: 12px;
    background: #f7f3f9;
    color: #776d7c;
    text-align: center;
}

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

.profile-achievement {
    padding: 17px;
    border-radius: 14px;
    background: #f3eef6;
}

.profile-achievement.is-locked { opacity: .58; filter: grayscale(.5); }

.profile-achievement-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e8;
    color: #d95720;
    font-size: 1.05rem;
}

.profile-achievement p { margin-top: 4px; color: #776d7c; font-size: .74rem; line-height: 1.5; }
.profile-achievement small { display: block; margin-top: 10px; color: #6b2a8b; font-weight: 800; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 940px) {
    .profile-dashboard-grid,
    .profile-activity-layout { grid-template-columns: 1fr; }
    .profile-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-side-column > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .profile-dashboard { width: min(100% - 24px, 1280px); padding: 30px 0 58px; }
    .profile-identity { flex-wrap: wrap; }
    .profile-identity-copy { flex: 1; }
    .profile-identity-actions { width: 100%; margin-left: 0; }
    .profile-identity-actions .profile-button { flex: 1; }
    .profile-focus-content { grid-template-columns: 1fr; }
    .profile-focus-content .profile-button { justify-self: start; }
    .profile-side-column { grid-template-columns: 1fr; }
    .profile-side-column > :last-child { grid-column: auto; }
    .profile-achievement-grid { grid-template-columns: 1fr; }
    .profile-accuracy-chart { gap: 5px; padding-inline: 0; }
    .profile-card { padding: 17px; }
}

@media (max-width: 430px) {
    .profile-avatar { width: 58px; height: 58px; border-radius: 16px; }
    .profile-identity h1 { font-size: 1.55rem; }
    .profile-identity-copy p { font-size: .76rem; }
    .profile-metric-grid { grid-template-columns: 1fr 1fr; }
    .profile-metric { padding: 13px; }
    .profile-metric strong { font-size: 1.3rem; }
    .profile-task { grid-template-columns: auto minmax(0, 1fr); }
    .profile-task .profile-button { grid-column: 2; justify-self: start; }
    .profile-goal-content { align-items: flex-start; }
    .profile-domain-detail { align-items: flex-start; flex-direction: column; }
}

.profile-page-shell {
    min-height: 560px;
    padding: 56px clamp(18px, 5vw, 76px) 72px;
    background: #f6f3f8;
    color: #241b29;
    font-family: var(--font-body, 'Inter', Arial, Helvetica, sans-serif);
}

.profile-message {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.profile-message.error { color: #9f1d2d; background: #fff0f1; }

.profile-overview {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(560px, 1.7fr);
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
}

.profile-panel {
    position: relative;
    min-height: 330px;
    padding: 28px;
    border: 1px solid #e2dbe7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(45, 27, 61, 0.08);
}

.profile-panel h1, .profile-panel h2 {
    margin: 0;
    font-family: var(--font-display, 'Manrope', 'Inter', Arial, Helvetica, sans-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
}

.streak-panel { display: flex; flex-direction: column; }
.streak-value { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin: 64px 0 22px; }
.streak-fire { align-self: center; font-size: 48px; }
.streak-value strong { font-size: clamp(62px, 8vw, 94px); line-height: 0.9; color: #6b2a8b; }
.streak-value span:last-child { font-size: 17px; color: #766c7b; }
.panel-definition { max-width: 280px; margin: 0 auto 36px; color: #6a616f; text-align: center; line-height: 1.5; }
.panel-detail-link { align-self: flex-end; margin-top: auto; color: #54216e; text-decoration: underline; }

.domain-panel h2 { margin-bottom: 30px; }
.domain-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.domain-card { display: flex; min-height: 220px; flex-direction: column; padding: 20px 18px 16px; border: 1px solid #e6dfeb; border-radius: 14px; background: #fbf9fc; text-align: center; }
.domain-card h3 { min-height: 48px; margin: 0; font-size: 18px; line-height: 1.35; }
.domain-percentage { margin: 25px 0; font-size: clamp(38px, 5vw, 56px); color: #6b2a8b; }
.domain-detail-link { align-self: flex-end; margin-top: auto; color: #54216e; font-weight: 700; font-style: italic; text-decoration: underline; }

.mock-test-panel {
    max-width: 1240px;
    min-height: auto;
    margin: 28px auto 0;
}
.mock-test-panel h2 { margin-bottom: 24px; }
.mock-test-table-wrap { overflow-x: auto; border: 1px solid #e1dae5; border-radius: 14px; }
.mock-test-table { min-width: 720px; }
.mock-test-table th, .mock-test-table td { text-align: left; }
.mock-test-table th:last-child, .mock-test-table td:last-child { text-align: center; }
.mock-test-link { color: #5f247e; font-weight: 800; text-decoration: underline; }
.mock-test-attempt-note {
    margin: 24px 0 8px;
    padding: 16px 18px;
    border-left: 4px solid #6b2a8b;
    border-radius: 8px;
    background: #f7f2fa;
    color: #44374b;
    line-height: 1.6;
}
.mock-detail-visible-question { display: inline-block; width: calc(100% - 24px); vertical-align: top; }
.mock-detail-question-line { display: block; line-height: 1.5; }
.mock-detail-options {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    color: #514757;
    font-weight: 400;
}
.mock-detail-option { display: block; }

.detail-page-shell { max-width: 1100px; margin: 0 auto; background: #ffffff; }
.back-link { display: inline-block; margin-bottom: 28px; color: #54216e; font-weight: 700; }
.detail-page-shell h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.detail-title-row p, .detail-subtitle { color: #6c6371; }
.compact-streak { display: flex; align-items: baseline; gap: 7px; padding: 14px 18px; border-radius: 14px; background: #f7f2fa; }
.compact-streak span { font-size: 28px; }.compact-streak strong { font-size: 34px; color: #6b2a8b; }
.compact-streak small { color: #6c6371; }
.table-instruction { margin: 28px 0 10px; text-align: right; color: #5e5463; }
.activity-table-wrap { overflow-x: auto; border: 1px solid #e1dae5; border-radius: 14px; }
.activity-table { width: 100%; border-collapse: collapse; background: #ffffff; }
.activity-table th, .activity-table td { padding: 17px 20px; border-bottom: 1px solid #ece7ef; text-align: left; }
.activity-table th { background: #342143; color: #ffffff; font-size: 16px; }
.activity-table th:last-child, .activity-table td:last-child { text-align: center; }
.activity-table tbody tr:last-child td { border-bottom: 0; }
.question-count-link { color: #5f247e; font-size: 17px; font-weight: 800; text-decoration: underline; }
.empty-state { padding: 28px; text-align: center; color: #6b626f; }

.daily-question-list { display: grid; gap: 15px; margin-top: 30px; }
.attempted-question { overflow: hidden; border: 1px solid #e2dbe7; border-radius: 12px; background: #ffffff; }
.attempted-question summary { padding: 18px 20px; cursor: pointer; font-weight: 700; line-height: 1.5; }
.attempted-question[open] summary { border-bottom: 1px solid #e9e3ec; background: #fbf9fc; }
.attempted-question-content { padding: 20px; line-height: 1.6; }
.attempted-question-content p { margin: 8px 0; }
.answer-correct, .answer-incorrect, .answer-unanswered { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.answer-correct { background: #dff5e1; color: #155724; }.answer-incorrect { background: #f8d7da; color: #721c24; }
.answer-unanswered { background: #ececec; color: #555555; }
.daily-scenario-context { margin-bottom: 18px; padding: 15px 17px; border-left: 4px solid #6b2a8b; border-radius: 8px; background: #f7f2fa; white-space: pre-wrap; }
.result-learning { margin-top: 22px; padding: 18px; border: 1px solid #ded4e5; border-radius: 12px; background: #faf7fc; }
.result-learning-priority { border-left: 4px solid #d04b5f; background: #fff8f8; }
.result-learning h3 { margin: 0 0 5px; font-size: 18px; }
.result-learning > p { margin: 0 0 14px; color: #665b6b; }
.result-learning-links { display: flex; flex-wrap: wrap; gap: 10px; }
.result-learning-link { display: grid; gap: 2px; min-width: 170px; padding: 10px 12px; border: 1px solid #d7c9df; border-radius: 9px; background: #ffffff; color: #54216e; text-decoration: none; }
.result-learning-link:hover, .result-learning-link:focus-visible { border-color: #6b2a8b; box-shadow: 0 4px 14px rgba(71, 34, 91, 0.12); text-decoration: underline; }
.result-learning-link strong { font-size: 14px; line-height: 1.3; }
.result-learning-link span { color: #776a7d; font-size: 12px; }
.domain-detail-placeholder { padding: 38px; border: 1px solid #e2dbe7; border-radius: 18px; background: #ffffff; box-shadow: 0 12px 34px rgba(45, 27, 61, 0.08); }

@media (max-width: 900px) {
    .profile-overview { grid-template-columns: 1fr; }
    .domain-panel { min-height: auto; }
}

@media (max-width: 650px) {
    .profile-page-shell { padding: 34px 14px 50px; }
    .profile-panel { min-height: 300px; padding: 22px 18px; }
    .domain-cards { grid-template-columns: 1fr; }
    .domain-card { min-height: 180px; }
    .detail-title-row { align-items: flex-start; flex-direction: column; }
    .table-instruction { text-align: left; }
    .activity-table th, .activity-table td { padding: 14px 12px; }
}
