.professions{font-family:var(--font-neucha),sans-serif;color:#263d43;width:100%;max-width:1560px}.professions button,.professions a{touch-action:manipulation}.professions button:focus-visible,.professions a:focus-visible,.professions summary:focus-visible{outline-offset:4px;outline:3px solid #a35d2d}.professions h1:focus{outline:none}.professions .math-toolbar>div{flex-wrap:wrap;gap:8px;display:flex}.professions .math-toolbar a{color:#315d80;font-size:19px}.professions .math-toolbar button{font-size:17px}.professions .math-heading{margin-bottom:30px}.professions .prof-three{grid-template-columns:repeat(3,minmax(0,1fr))}.prof-cover{filter:drop-shadow(4px 5px #315d8012);width:100%;height:auto;display:block}.prof-preview h2{font:700 41px var(--font-caveat),cursive;margin:23px 0 8px}.prof-preview p{margin:12px 0;font-size:19px;line-height:1.5}.prof-preview .prof-note{color:#526865;border-top:1px dashed #9caf9c;padding-top:14px;font-size:16px}.prof-match-heading{text-align:center;margin:20px 0}.prof-match-heading h1{font:700 55px/1 var(--font-caveat),cursive;color:#315d80;margin:0 0 8px}.prof-match-heading p{color:#536964;font-size:17px}.prof-dashboard{justify-content:space-between;align-items:center;gap:15px;display:flex}.prof-scores{flex-wrap:wrap;gap:12px;display:flex}.prof-scores p{background:#eef1e8;border:2px solid #a5b7b5;border-radius:12px;margin:0;padding:10px 20px;font-size:18px}.prof-scores p:nth-child(2){background:#f6ead8;border-color:#c5ab8c}.prof-scores strong{color:#315d80;margin-left:15px;font-size:28px}.prof-scores .current{outline-offset:2px;outline:3px solid #d9ad59}.prof-scores small{color:#526360;font-size:14px;display:block}.prof-timer{text-align:right;color:#315d80;font-variant-numeric:tabular-nums;font-size:26px}.prof-timer small{color:#536964;font-size:15px;display:block}.prof-timer.urgent{color:#a14530}.prof-feedback{background:#edf0df;border:1px dashed #8ca792;border-radius:10px;min-height:53px;margin:20px 0;padding:12px 16px;font-size:18px}.prof-feedback.wrong{color:#843b2c;background:#fff0e3;border-color:#b77653}.prof-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:30px;display:grid}.prof-board h2{font:700 32px var(--font-caveat),cursive;color:#315d80;margin:0 0 14px}.prof-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.prof-card{text-align:left;-webkit-user-select:none;user-select:none;cursor:grab;color:#263d43;background:#fffcf1;border:2px solid #99aeab;border-radius:12px 9px 14px 10px;flex-direction:column;gap:6px;min-height:92px;padding:14px;display:flex;box-shadow:2px 3px #315d8012;touch-action:none!important}.prof-card span{font-size:20px;font-weight:700}.prof-card small{color:#536964;font-size:15px;line-height:1.35}.prof-card:hover{border-color:#315d80}.prof-card.selected{background:#fae6b2;border-color:#a57034;box-shadow:0 0 0 2px #dfba66}.prof-card.locked{opacity:1;cursor:default;color:#3e6749;box-shadow:none;background:#e1ecdc;border-color:#91ae93}.prof-card.locked small{color:#426b4f}.prof-selection{min-height:92px;padding:14px 0;font-size:17px}.prof-selection p{margin:5px 0 10px;line-height:1.4}.prof-selection strong{color:#315d80;font-size:21px}.prof-selection button,.prof-tools button,.prof-result-actions>button:not(.button),.prof-confirm button:not(.button){color:#315d80;min-height:44px;font:inherit;background:#faf4e6;border:1px solid #94a79d;border-radius:10px;padding:9px 14px}.prof-tools{flex-wrap:wrap;gap:10px;display:flex}.prof-areas{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.prof-area{background:#f0f2e6;border:2px dashed #95a796;border-radius:16px;min-width:0;overflow:hidden}.prof-area>button{color:#315d80;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:137px;padding:12px 9px;display:flex}.prof-area svg{pointer-events:none;width:67px;height:60px}.prof-area strong{margin-top:4px;font-size:20px}.prof-area button small{color:#526662;max-width:230px;margin-top:5px;font-size:14px;line-height:1.3}.prof-area.hover{background:#f9e3a4;border:2px solid #a46e31}.prof-area.wrong{background:#f9e4d5;border:2px solid #b16643}.prof-area ul{margin:0;padding:0 9px;list-style:none}.prof-area li{color:#365d42;overflow-wrap:anywhere;background:#dcebd8;border:1px solid #93ad90;border-radius:7px;margin-bottom:8px;padding:6px 8px;font-size:15px}.prof-area li small{font-size:12px;display:block}.prof-key-help{color:#536964;border-top:1px dashed #acb8a1;margin-top:24px;padding-top:15px;font-size:15px}.prof-drag{z-index:2000;pointer-events:none;font:20px var(--font-neucha),sans-serif;background:#fff0bd;border:2px solid #a36a31;border-radius:10px;padding:12px 20px;position:fixed;transform:translate(-50%,-110%);box-shadow:4px 6px 12px #263d4340}.prof-result{text-align:center;background:#fff9e9;border:2px solid #b6ab8a;border-radius:22px;max-width:800px;margin:35px auto;padding:35px}.prof-result h1{font:700 52px/1.1 var(--font-caveat),cursive;color:#315d80}.prof-result>p{margin:18px 0;font-size:21px;line-height:1.4}.prof-result .prof-scores{justify-content:center;margin:20px 0}.prof-result .prof-scores strong{margin:8px 0 0;display:block}.prof-result-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:25px;display:flex}.prof-result-actions .button,.prof-confirm .button{color:#fffdf1;background:#315d80;border:2px solid #254961;border-radius:10px;min-height:46px;padding:11px 20px;font-size:19px}.prof-result-actions .button:before,.prof-confirm .button:before{display:none}.prof-result details{text-align:left;margin-top:25px;font-size:18px}.prof-result summary{cursor:pointer;min-height:44px}.prof-result li{margin:10px 0;line-height:1.4}.prof-overlay{z-index:1500;background:#263d43ac;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.prof-confirm{background:#fffaed;border:2px solid #94a79d;border-radius:18px;width:min(100%,510px);padding:25px}.prof-confirm h2{font:700 35px var(--font-caveat),cursive}.prof-confirm p{margin:15px 0 25px;font-size:18px;line-height:1.4}.prof-confirm>div{flex-wrap:wrap;gap:12px;display:flex}.professions.prof-expanded{z-index:100;background:var(--paper-color,#faf6e9);max-width:none;height:100%;padding:20px clamp(16px,4vw,65px);position:fixed;inset:0;overflow:auto}@media (max-width:900px){.prof-board{gap:18px}.prof-cards{grid-template-columns:1fr}.prof-dashboard{align-items:flex-start}.prof-scores p{padding:8px 12px}.professions .math-toolbar>span{display:none}}@media (max-width:700px){.professions .math-heading h1{font-size:60px}.professions .math-toolbar{flex-wrap:wrap}.professions .math-options{padding:18px}.prof-preview .prof-cover{max-width:480px;margin:auto}.prof-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.prof-areas{grid-template-columns:1fr;gap:9px}.prof-board h2{min-height:52px;font-size:24px}.prof-card{min-height:88px;padding:10px}.prof-card span{font-size:17px}.prof-card small{font-size:13px}.prof-area>button{min-height:104px;padding:8px 4px}.prof-area svg{width:48px;height:43px}.prof-area strong{overflow-wrap:anywhere;font-size:16px}.prof-area button small{font-size:12px}.prof-area li{padding:5px;font-size:13px}.prof-area ul{padding:0 5px}.prof-feedback{margin:16px 0;padding:10px;font-size:16px}.prof-scores{gap:8px}.prof-scores p{padding:8px;font-size:15px}.prof-scores strong{margin-left:8px;font-size:23px}.prof-scores small{font-size:12px}.prof-dashboard{flex-wrap:wrap;gap:10px}.prof-timer{font-size:21px}.prof-timer small{font-size:13px}.prof-selection{font-size:15px}.prof-selection strong{font-size:18px}.prof-tools button{padding:8px;font-size:14px}.prof-result{padding:24px 16px}.prof-result h1{font-size:41px}.prof-result-actions{flex-direction:column}.prof-result-actions button{width:100%}.professions .math-options .math-grades{grid-template-columns:repeat(2,minmax(0,1fr))}.professions .math-options fieldset:first-child .math-grades{grid-template-columns:repeat(4,minmax(0,1fr))}.professions .math-toolbar button{font-size:14px}.professions .math-toolbar a{font-size:17px}}@media (prefers-reduced-motion:reduce){.professions *{transition:none!important;animation:none!important}}.prof-duel{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px;display:grid}.prof-team{background:#edf3f0;border:2px solid #82a3b2;border-radius:18px;min-width:0;padding:18px}.prof-team-1{background:#f7eddd;border-color:#bd936e}.prof-team>header{justify-content:space-between;align-items:center;gap:10px;display:flex}.prof-team>header h2{font:700 34px var(--font-caveat),cursive;color:#315d80}.prof-team-1>header h2{color:#96562f}.prof-team>header strong{white-space:nowrap;font-size:24px}.prof-team .prof-feedback{min-height:38px;margin:8px 0;padding:8px 10px;font-size:15px}.prof-team .prof-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.prof-team .prof-cards,.prof-team .prof-areas{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.prof-team h3{font:700 22px var(--font-caveat),cursive;margin:0 0 6px}.prof-team .prof-card{overflow-wrap:anywhere;gap:4px;min-width:0;min-height:68px;padding:8px}.prof-team .prof-area>button{min-height:76px;padding:6px}.prof-team .prof-area svg{width:36px;height:32px}.prof-team .prof-area strong{font-size:17px}.prof-team .prof-card:disabled{opacity:1}.prof-team button:focus-visible{outline-offset:2px;outline:3px solid #975629}.prof-match-heading .prof-timer{text-align:center;margin:14px 0}.prof-match-heading p{line-height:1.4}@media (max-width:850px){.prof-duel{grid-template-columns:1fr}.prof-team{padding:12px}.prof-team .prof-feedback{min-height:0}.prof-team>header h2{font-size:30px}}.prof-team{overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#7797a1 #e3e9df;scroll-behavior:auto;max-height:calc(100dvh - 32px);scroll-padding-block:80px 18px;overflow:hidden auto}.prof-team>header{z-index:2;background:#edf3f0;margin-top:-12px;padding:12px 0;position:sticky;top:-18px;box-shadow:0 5px #edf3f0}.prof-team-1>header{background:#f7eddd;box-shadow:0 5px #f7eddd}.prof-team:focus-visible{outline-offset:3px;outline:3px solid #a35d2d}.prof-duel{align-items:start}.prof-team .prof-card{scroll-margin-block:85px 16px}@media (min-width:851px){.prof-team{max-height:72dvh}}@media (max-width:850px){.prof-team>header{top:-12px}.prof-team{max-height:78dvh}}.prof-duel .prof-team{max-height:var(--prof-panel-height,calc(100dvh - 32px))}.prof-duel-heading{margin:10px 0 14px}.prof-duel-heading h1{font-size:38px}.prof-duel-heading p{margin:4px 0;font-size:15px}.prof-duel-heading .prof-timer{margin:6px 0;font-size:20px}.prof-team .prof-card small{font-size:14px;line-height:1.25}.prof-expanded:has(.prof-duel){padding:12px clamp(12px,2vw,32px)}.prof-team>header h2{margin:0}.prof-team>header{min-height:48px}.prof-team .prof-card span{font-size:16px}.prof-team .prof-card small{font-size:13px}.prof-team .prof-area strong{overflow-wrap:normal;font-size:15px;line-height:1.15}.prof-team .prof-area>button{min-height:96px}.prof-team .prof-tools{margin-top:12px}.prof-expanded .prof-duel-heading{margin:4px 0 10px}.prof-expanded:has(.prof-duel) .math-toolbar{margin-bottom:8px;padding-bottom:8px}.prof-expanded .prof-duel-heading h1{font-size:32px}.prof-expanded .prof-duel-heading p{font-size:14px}@media (max-width:600px){.prof-team .prof-board{grid-template-columns:minmax(0,1fr)}}.prof-area>button{text-align:center}.professions .prof-cards,.professions .prof-areas{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width:600px){.professions .prof-board{grid-template-columns:minmax(0,1fr)}}
