/* Shared responsive and accessibility refinements from the September UI audit. */
:root { --dm-action: #087c73; --dm-action-hover: #07675f; --dm-accent: #b84418; }
[hidden] { display: none !important; }
button, a, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #087c73; outline-offset: 4px; }
.button.primary, button.primary, input[type="submit"].primary { background-color: var(--dm-accent); color: #fff; }
.button.primary:hover, button.primary:hover { background-color: #963710 !important; }
#menu, .wrapper.style1 { background-color: #087c73; }
.wrapper.style1, .wrapper.style1 p, .wrapper.style1 h2, #menu a { color: #fff; }
body.modal-open { overflow: hidden; }
body .modal { position: fixed; inset: 0; width: 100%; height: 100dvh; padding: 12px; overflow: auto; z-index: 10010; }
body .modal .modal-content { box-sizing: border-box; position: relative; margin: 0 auto; width: 100%; max-width: 680px; height: auto; max-height: calc(100dvh - 24px); padding: 64px 24px 24px; overflow: auto; }
body .quiz-modal .modal-content { display: flex; flex-direction: column; max-width: 1200px; height: calc(100dvh - 24px); padding: 58px 12px 12px; overflow: hidden; }
body .quiz-modal .modal-content > h2 { position: absolute; top: 18px; left: 18px; right: 80px; margin: 0; font-size: 16px; line-height: 1.4; }
body .modal button.close { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; z-index: 3; float: none; margin: 0; padding: 0; width: 44px; height: 44px; min-width: 44px; line-height: 1; border-radius: 8px; border: 1px solid #818b96; background: #fff; color: #172b3a; box-shadow: none; font-size: 28px; letter-spacing: 0; }
body .quiz-modal .modal-content > iframe,
body .quiz-modal .modal-content > .practice-widget { display: block; flex: 1 1 0; min-height: 0; width: 100%; border: 0; }
/* The SDK iframe is nested, not a flex child. Override main.css's height:auto
   so it fills the widget instead of falling back to the browser's 150px height. */
body .quiz-modal .practice-widget .tf-v1-widget,
body .quiz-modal .practice-widget iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
body #quizReviewModal .modal-content { display: flex; flex-direction: column; height: calc(100dvh - 24px); overflow: hidden; }
body #quizReviewContent { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; overflow: auto; padding: 0 8px 12px; }
body #quizReviewModal .quiz-review-screen { height: auto; max-height: none; min-height: 0; overflow: visible; padding: 20px; }
body #quizReviewModal .quiz-review-navigation { position: static; flex: 0 0 auto; margin-top: 12px; gap: 8px; }
body #quizReviewModal .quiz-review-nav-button { width: 44px; height: 44px; line-height: 1; padding: 0; }
body #quizReviewModal .question, body #quizReviewModal .option, body #quizReviewModal .quiz-option, body #quizReviewModal .explanation { font-size: 16px; line-height: 1.6; }
.branded-alert { z-index: 10030; }
.auth-page .auth-container { align-items: flex-start; height: auto; min-height: 100dvh; overflow: visible; }
.auth-page .auth-left { height: auto; max-height: none; overflow: visible; padding: 40px 32px; }
.auth-page .auth-tabs { gap: 8px; padding: 0; margin: 0 0 28px; list-style: none; }
.auth-page .auth-tabs .tab { height: auto; min-height: 44px; padding: 10px 16px; line-height: 1.3; letter-spacing: 0; text-transform: none; font-size: 16px; color: #233b48; box-shadow: none; }
.auth-page .auth-tabs .tab.active { background: #e1f3ef; color: #075d56; }
.auth-page h3 { text-transform: none; letter-spacing: -.02em; font-size: 28px; line-height: 1.2; }
.auth-page .tab-content > p { font-size: 15px; line-height: 1.6; }
.auth-page .tab-content { width: 100%; min-width: 0; }
.auth-page .auth-methods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 300px; margin-inline: auto; }
.auth-page .auth-methods > div { margin: 0; }
.auth-page .auth-methods .social-signin-helper-text { display: none; }
.auth-page .auth-methods .separator { display: flex; align-items: center; justify-content: center; margin: 2px 0; font-size: 13px; }
.auth-page .auth-email-form { display: none; }
.auth-page .email-selected .auth-email-form { display: block; }
.auth-page .email-selected .auth-methods { display: none; }
.auth-page .wrapper.style5 .email-choice { width: 100%; min-height: 48px; height: auto; line-height: 1.4; padding: 12px; background: #087c73; color: #fff !important; box-shadow: none; text-transform: none; letter-spacing: 0; font-size: 16px; }
.auth-page #signupEmailHelperText { font-size: 15px !important; font-style: normal !important; line-height: 1.6; margin-bottom: 24px !important; }
.auth-page #signupForm, .auth-page #loginForm { text-align: left; }
.auth-page .auth-email-form button[type="submit"] { line-height: 1.4; padding: 12px; }
body #quizReviewModal .modal-header { flex: 0 0 auto; padding: 0; }
body #quizReviewModal .modal-header h2 { position: absolute; top: 18px; left: 16px; right: 82px; margin: 0; padding: 0; font-size: 16px; line-height: 1.4; border: 0; }
body #quizReviewModal .quiz-options li { font-size: 16px; line-height: 1.5; }
.answer-label { display: inline-block; margin-left: 8px; font-size: 12px; }
.auth-page label { color: #233b48; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.auth-page .auth-email-form input { font-size: 16px; height: 48px; margin-bottom: 18px; }
.auth-page #signupForm button[type="submit"], .auth-page #loginForm button[type="submit"] { width: 100%; min-height: 48px; letter-spacing: 0; text-transform: none; font-size: 16px; background: #087c73; }
.auth-page #signupForm button[type="submit"]:hover, .auth-page #loginForm button[type="submit"]:hover { background: #07675f !important; }
.auth-page .wrapper.style5 .auth-back, .auth-page .wrapper.style5 .auth-password-toggle { height: auto; min-height: 44px; padding: 8px 0; line-height: 1.4; text-transform: none; letter-spacing: 0; border: 0; box-shadow: none; color: #075d56; font-size: 14px; }
.auth-page .auth-back { margin: 0 0 16px; }
.auth-page .auth-password-toggle { display: block; margin: -14px 0 8px auto; }
.auth-page .auth-last-used { justify-self: start; color: #075d56; font-size: 12px; background: #e1f3ef; border-radius: 6px; padding: 4px 8px; margin-bottom: -10px; }
.auth-page .tab-content > .auth-legal { color: #4c5b65; font-size: 12px; line-height: 1.6; margin: 24px auto 0; max-width: 300px; }
.auth-page .auth-forgot-link { font-size: 14px; margin: 16px 0 0; }
.auth-page #signupForm .password-rules { color: #4c5b65; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.auth-page .auth-legal a { color: #075d56 !important; }
.upgrade-page .purchase-mode-toggle { display: flex; flex-wrap: wrap; width: 100%; height: auto; gap: 4px; padding: 4px; border-radius: 12px; }
.upgrade-page .purchase-mode-toggle .mode-toggle-btn { flex: 1 1 auto; min-height: 44px; height: auto; white-space: normal; letter-spacing: 0; padding: 8px 12px; line-height: 1.3; }
.upgrade-page .purchase-mode-toggle .mode-toggle-btn.active { background: #087c73; color: #fff; }
.upgrade-page .gift-panel-grid > div { min-width: 0; }
.upgrade-page .gift-panel-grid label { color: #29415d; font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
.mobile-plan-overview { display: none; }
.dashboard-button-primary, .dashboard-primary-button { background: #087c73; color: #fff; }
.dashboard-page #header h1 { max-width: calc(100% - 86px); }
.dashboard-page #header h1 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-stack, .dashboard-stack.is-practice-focused { grid-template-columns: minmax(300px, .8fr) minmax(0, 2fr); align-items: start; }
.dashboard-quiz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; overflow: visible; }
.dashboard-quiz-card { min-width: 0; }
.dashboard-quiz-card h4 { font-size: 14px; line-height: 1.5; letter-spacing: .06em; }
.dashboard-quiz-actions .dashboard-button { padding-inline: 8px; white-space: normal; }
.dashboard-start-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.dashboard-card, .dashboard-practice, .dashboard-coverage { min-width: 0; }
#profileForm label { font-size: 14px; margin-bottom: 8px; }
#profileForm details { margin-bottom: 16px; }
#profileForm summary { cursor: pointer; min-height: 44px; font-weight: 600; }
#giftPurchaseForm label { font-size: 14px; line-height: 1.4; text-align: left; margin: 12px 0 6px; }
.referral-empty { text-align: center; padding: 28px 16px; }
.referral-empty p { margin: 8px 0 0; }
.support-page summary { min-height: 44px; padding: 10px 0; line-height: 1.5; cursor: pointer; }
#one h2 { max-width: 850px; margin-inline: auto; }
#one .benefit-pricing-link { margin: 0; }
#three .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; font-size: 16px; }
#three .features li { width: 100%; padding: 36px 24px 32px 64px; text-align: left; }
#three .features li:before { position: absolute; top: 36px; left: 24px; margin: 0; color: #b9d6ff; }
#three .features h3 { font-size: 18px; line-height: 1.4; text-transform: none; letter-spacing: 0; }
#three .features p { margin-bottom: 0; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.spotlight .product-review-example {
 padding: clamp(36px, 4vw, 72px) clamp(32px, 3.5vw, 64px);
 perspective: 1200px;
 background: radial-gradient(ellipse at 55% 48%, #69b7b51c, transparent 68%);
}
.product-review-card {
 position: relative;
 max-width: 616px;
 margin: 0 auto;
 transform: rotateX(6deg) rotateY(-12deg) rotateZ(3deg);
 transform-style: preserve-3d;
}
.product-review-card::before {
 content: "";
 position: absolute;
 inset: 0;
 border: 1px solid #bddbdc40;
 border-radius: 14px;
 background: #3b505b;
 transform: translate3d(12px, 14px, -18px);
}
.spotlight .product-review-example img {
 position: relative;
 border-radius: 14px;
 box-shadow: 0 24px 48px #0c141c66;
}
.spotlight .product-review-example p {
 color: #b9c9d1;
 font-size: 12px;
 margin: 30px 0 0;
 text-align: center;
}
@media (max-width: 980px) {
 #three .features { grid-template-columns: minmax(0, 1fr); }
 .dashboard-stack, .dashboard-stack.is-practice-focused { grid-template-columns: minmax(0, 1fr); }
 .dashboard-quiz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
 .auth-page .auth-left { padding: 32px 24px; }
}
@media (min-width: 981px) and (max-width: 1199px) {
 .dashboard-stack, .dashboard-stack.is-practice-focused { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 736px) {
 .spotlight .product-review-example { padding: 32px 24px 24px; }
 .product-review-card { max-width: 480px; transform: rotateX(4deg) rotateY(-7deg) rotateZ(2deg); }
 .product-review-card::before { transform: translate3d(7px, 9px, -12px); }
 .spotlight .product-review-example p { margin-top: 24px; }
 .dashboard-header-context { display: none; }
 .auth-page #main > .wrapper { padding-inline: 12px; }
 .auth-page .auth-container { min-height: 0; }
 body .modal { padding: 8px; }
 body .modal .modal-content { max-height: calc(100dvh - 16px); padding: 58px 16px 16px; }
 body .quiz-modal .modal-content, body #quizReviewModal .modal-content { height: calc(100dvh - 16px); padding: 56px 8px 8px; }
 .auth-page .auth-left { width: 100%; max-width: 460px; margin: auto; padding: 24px 20px; }
 .auth-page .auth-right { display: none; }
 .auth-page h3 { font-size: 26px; }
 #profileForm .col-6 { width: 100%; }
 .mobile-plan-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px 0; margin: 0; list-style: none; }
 .mobile-plan-overview li { padding: 12px 4px; border: 1px solid #cbd7dc; border-radius: 10px; background: white; text-align: center; font-size: 12px; line-height: 1.7; color: #233b48; }
 .mobile-plan-overview strong, .mobile-plan-overview span { display: block; }
 .mobile-plan-overview strong { color: #233b48; }
 #banner .more { display: block; bottom: 12px; font-size: 11px; height: 44px; padding: 0; line-height: 1.3; }
 #banner .more:after { margin-top: 6px; }
 #three .features { display: block; }
 #three .features li { width: 100%; padding: 24px 24px 24px 66px; }
 #three .features li:before { top: 24px; left: 24px; }
}
@media (max-width: 360px) {
 body #quizReviewModal .modal-header h2 { font-size: 13px; letter-spacing: .12em; }
 .upgrade-page .purchase-mode-toggle .mode-toggle-btn { flex-basis: 100%; }
 .auth-page .auth-left { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
}

.dashboard-button-primary, .dashboard-primary-button { color: #fff !important; }
.dashboard-button-gold, .dashboard-button-gold:hover, .dashboard-button-gold:focus { color: #322200 !important; }
.dashboard-button { min-height: 44px; height: auto; line-height: 1.3; text-align: center; white-space: normal; }
.dashboard-button > i { flex: 0 0 auto; }
.dashboard-action-row .dashboard-button { flex-basis: 120px; }
.dashboard-mobile-card .dashboard-action-row { flex-wrap: wrap; }

#quizReviewModal .quiz-question h4 { font-size: 16px; line-height: 1.6; letter-spacing: 0; text-transform: none; color: #24394b; }
#quizReviewModal .quiz-options li { display: block; }
#quizReviewModal .quiz-options .option-status { display: flex; margin: 0 0 8px; }
#quizReviewModal .quiz-options .answer-label { display: inline-block; margin: 0; padding: 3px 8px; border: 1px solid #87929c; border-radius: 5px; background: #fff; color: #24394b; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
#quizReviewModal .quiz-options .correct .answer-label { color: #17652b; border-color: #68a975; }
#quizReviewModal .quiz-options .user-incorrect .answer-label { color: #9c2838; border-color: #c98791; }
#quizReviewModal .quiz-options .option-content { display: flex; align-items: baseline; gap: 10px; }
#quizReviewModal .quiz-options .option-label { flex: 0 0 auto; margin: 0; }
#quizReviewModal .quiz-options .option-text { min-width: 0; line-height: 1.5; letter-spacing: 0; }
