.detective-workspace{--detective-gold:#d9b365;--detective-ink:#10151b;--detective-muted:#b9b4a7;color:#f1e5c7;min-width:0;font-size:16px;line-height:1.6;max-width:1440px;margin:auto;padding:clamp(14px,2vw,30px)}
.detective-workspace *{box-sizing:border-box;min-width:0}
.detective-workspace h1,.detective-workspace h2,.detective-workspace h3{font-family:Georgia,'Times New Roman',serif;color:#f1e0b6;line-height:1.25;margin:0 0 12px}
.detective-workspace h1{font-size:clamp(28px,3.2vw,44px)}
.detective-workspace h2{font-size:clamp(23px,2vw,30px)}
.detective-workspace p{margin:8px 0 16px}
.detective-eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--detective-gold);font-size:12px;font-weight:700}
.detective-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.detective-heading p{color:var(--detective-muted);max-width:65ch}
.detective-panel{border:1px solid #78613b;border-radius:18px;background:linear-gradient(135deg,#191b1f,#101419);padding:clamp(16px,2.3vw,28px);box-shadow:0 10px 35px #0002}
.detective-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,350px);gap:20px;align-items:start}
.detective-main{display:grid;gap:18px}
.detective-file{position:sticky;top:16px}
.detective-file details{padding:12px 0;border-bottom:1px solid #77603b66}
.detective-file summary{cursor:pointer;color:var(--detective-gold);font-weight:700}
.detective-file blockquote,.detective-quote{margin:12px 0;padding:10px 14px;border-left:3px solid var(--detective-gold);background:#d9b3650b;white-space:pre-wrap;overflow-wrap:anywhere}
.detective-file small,.detective-muted{color:var(--detective-muted)}
.detective-steps{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:0;list-style:none}
.detective-steps button{background:#0c1116;border:1px solid #78613b;color:#c6bdac;border-radius:999px;padding:8px 14px;cursor:pointer;font:inherit;min-height:44px}
.detective-steps button[aria-current=step]{color:#1b1407;background:var(--detective-gold);border-color:var(--detective-gold);font-weight:700}
.detective-steps button:disabled{opacity:.55;cursor:default}
.detective-workspace button:focus-visible,.detective-workspace input:focus-visible,.detective-workspace textarea:focus-visible,.detective-workspace select:focus-visible,.detective-workspace summary:focus-visible{outline:2px solid #edcd88;outline-offset:3px}
.detective-workspace button{touch-action:manipulation}
.detective-workspace .button{display:inline-flex;align-items:center;justify-content:center;text-align:center;font:inherit;font-weight:700;min-height:44px;white-space:normal;border-radius:10px;cursor:pointer;padding:11px 18px;border:1px solid #9a7a40;max-width:100%;text-decoration:none;line-height:1.35}
.detective-workspace .primary{background:linear-gradient(#e8c67d,#b88132);color:#241807}
.detective-workspace .secondary{background:#12181d;color:#ead9b2}
.detective-workspace button:disabled{cursor:default;opacity:.5}
.detective-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.detective-actions.end{justify-content:flex-end}
.detective-safe{color:#c8c2b3;background:#b3915111;border:1px solid #b3915144;border-radius:10px;padding:10px 14px;margin:16px 0;font-size:14px}
.detective-field{display:grid;gap:7px;margin:16px 0;color:#e9dfc4;position:relative}
.detective-field>span{font-weight:600}
.detective-field input,.detective-field select,.detective-field textarea,.detective-input{font:inherit;font-size:16px;width:100%;border:1px solid #78613b;border-radius:10px;color:#eee4cd;background:#090f14;padding:11px 13px;min-height:46px}
.detective-field textarea{min-height:100px;resize:vertical}
.detective-field input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--detective-gold)}
.detective-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0;cursor:pointer}
.detective-check input{accent-color:var(--detective-gold);width:20px;height:20px;flex:none;margin-top:4px}
.detective-field small{font-size:14px;color:var(--detective-muted);font-weight:400}
.detective-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:10px}
.detective-choice{border:1px solid #78613b;border-radius:12px;background:#10161c;color:#e6dcc2;padding:13px 16px;font:inherit;text-align:left;cursor:pointer}
.detective-choice[aria-pressed=true]{border-color:var(--detective-gold);background:#d9b36524;box-shadow:inset 0 0 0 1px var(--detective-gold)}
.detective-feedback{border-radius:10px;padding:12px 16px;background:#bb965f14;border:1px solid #b8955d88;margin:14px 0;overflow-wrap:anywhere}
.detective-feedback[role=alert]{border-color:#cd8c80;color:#f0c2b7}
.detective-feedback.success{border-color:#78af87;color:#c3e8cb;background:#3e765f20}
.detective-timer{font-size:27px;font-variant-numeric:tabular-nums;color:var(--detective-gold)}
.detective-fragment{overflow-wrap:anywhere;border-top:1px solid #80693e66;padding:18px 0}
.detective-fragment:first-child{border-top:0}
.detective-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.detective-row>*{flex:1 1 160px}
.detective-row>.button{flex:0 1 auto}
.detective-count{display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr);align-items:center;gap:14px;max-width:340px}
.detective-count input{max-width:130px}
.detective-table-wrap{overflow-x:auto;scrollbar-width:none}
.detective-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:15px}
.detective-table th,.detective-table td{text-align:left;padding:10px 8px;border-bottom:1px solid #78613b66;vertical-align:top;overflow-wrap:normal;word-break:normal;hyphens:none}
.detective-table th{color:var(--detective-gold)}
.detective-table th:last-child{width:1%;white-space:nowrap}
.detective-table .count{font-variant-numeric:tabular-nums;white-space:nowrap}
.detective-notice{color:var(--detective-muted);font-size:14px}
.detective-card{border:1px solid #9c7c3d;border-radius:16px;padding:25px;background:radial-gradient(at top right,#90773a29,transparent 65%),#15191f;break-inside:avoid}
.detective-card dl{margin:0;display:grid;gap:14px}
.detective-card dt{color:var(--detective-gold);font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.detective-card dd{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.detective-badges{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.detective-badge{border:1px solid #8d743d;border-radius:999px;padding:6px 12px;color:var(--detective-gold);font-size:14px}
.detective-progress{height:8px;width:100%;accent-color:var(--detective-gold)}
.detective-external{position:fixed;inset:0;z-index:1500;background:#000b;display:grid;place-items:center;padding:18px}
.detective-external>div{max-width:480px;max-height:90dvh;overflow:auto;background:#171a1f;padding:25px;border:1px solid #a88a4e;border-radius:18px}
.detective-external a{color:var(--detective-gold);overflow-wrap:anywhere}
.detective-workspace input[aria-invalid=true],.detective-workspace textarea[aria-invalid=true]{border-color:#df9486}
.detective-savebar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;position:static;padding:12px 16px;border:1px solid #78613b;background:#14191ff5;border-radius:12px;z-index:2;margin-top:20px;}
@media(max-width:760px){.detective-grid{grid-template-columns:1fr}.detective-file{position:static;order:-1}.detective-file .detective-vacancies{max-height:340px;overflow:auto;scrollbar-width:none}.detective-actions>.button{flex:1 1 140px}.detective-savebar{padding:10px}.detective-panel{border-radius:13px}.detective-table{font-size:14px}.detective-table th,.detective-table td{padding:9px 4px}.detective-field textarea{min-height:115px}}
@media(prefers-reduced-motion:reduce){.detective-workspace *{scroll-behavior:auto!important}}
@media print{body *{visibility:hidden}.detective-card,.detective-card *{visibility:visible}.detective-card{position:absolute;left:0;top:0;width:100%;background:white;color:#111;border-color:#555}.detective-card h2,.detective-card dt{color:#493711}.detective-actions,.detective-steps,.detective-savebar{display:none!important}}
@media(max-width:760px){.detective-table,.detective-safe,.detective-notice,.detective-field small,.detective-file small{font-size:16px}}

@media(max-width:760px){.detective-eyebrow,.detective-badge{font-size:16px}}

/* Lesson-five homework follows the owner's prototype; the Academy shell stays native. */
.detective-homework{--detective-gold:#e4bd72;--detective-muted:#b5ab98;max-width:1180px;color:#f3ead8;line-height:1.55}
.detective-homework h1,.detective-homework h2,.detective-homework h3{font-family:var(--font-display,Georgia,serif);font-weight:500}
.detective-homework h1{font-size:clamp(30px,3.4vw,48px);letter-spacing:-.025em}
.detective-homework h2{font-size:clamp(24px,2.1vw,30px)}
.detective-homework .detective-panel{background:#161a25;border:1px solid rgba(226,190,120,.18);box-shadow:none;border-radius:20px}
.detective-homework-hero{display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:28px;align-items:center;background:linear-gradient(100deg,#10131df5,#10131de6 55%,#10131dd9),url('/assets/academy/academy-shell-v3.webp') center 45%/cover;border:1px solid rgba(226,190,120,.22);border-radius:22px;padding:clamp(20px,3vw,34px);margin-bottom:16px}
.detective-homework-hero p{max-width:60ch;color:#c8beab;margin-bottom:20px}
.detective-hero-tags{display:flex;flex-wrap:wrap;gap:8px}
.detective-hero-tags span{border:1px solid #e4bd7233;border-radius:20px;padding:5px 10px;color:#cdbc98;font-size:14px}
.detective-homework-progress{display:grid;justify-items:center;gap:12px;background:#0b0d1480;padding:18px;border:1px solid #ffffff0a;border-radius:18px}
.detective-progress-ring{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;padding:5px}
.detective-progress-ring>span{display:flex;justify-content:center;align-items:baseline;width:76px;height:76px;line-height:76px;border-radius:50%;background:#11141d;font:32px/76px Georgia,serif;color:#e4bd72}
.detective-progress-ring small{font:16px/1.5 Arial,sans-serif;color:#b5ab98}
.detective-homework .detective-badge{font-size:14px;border-color:#e4bd7233;background:#e4bd720a;white-space:nowrap}
.detective-homework-note{font-size:14px;color:#b5ab98;margin:0 0 22px;padding:0 4px}
.detective-homework-note summary{cursor:pointer;color:#c9b889}
.detective-homework-note p{margin-top:10px;max-width:85ch}
.detective-homework-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;align-items:start}
.detective-homework .detective-steps{display:grid;gap:7px;margin:0;position:sticky;top:16px}
.detective-homework .detective-steps button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #ffffff0b;border-radius:12px;background:#11141d;padding:13px 12px;color:#b5ab98;font-size:15px;font-weight:500;min-height:58px}
.detective-step-number{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border:1px solid #ffffff16;border-radius:50%;font:14px Georgia,serif;color:#a59b85}
.detective-homework .detective-steps button[aria-current=step]{background:#e4bd7210;color:#f3ead8;border-color:#e4bd7270;box-shadow:inset 2px 0 #e4bd72;font-weight:600}
.detective-homework .detective-steps button[aria-current=step] .detective-step-number{border-color:#e4bd72;color:#e4bd72}
.detective-homework .detective-field>span{font-size:15px;font-weight:600;color:#dcd2bf}
.detective-homework .detective-field input,.detective-homework .detective-field select,.detective-homework .detective-field textarea{background:#0b0d14;border-color:#ffffff16;border-radius:10px;color:#f3ead8;min-height:46px}
.detective-homework .detective-field input:focus,.detective-homework .detective-field select:focus,.detective-homework .detective-field textarea:focus{border-color:#e4bd72}
.detective-homework .detective-field textarea{min-height:96px}
.detective-homework .button{font-weight:600;border-color:#e4bd7240;border-radius:9px;min-height:42px;padding:10px 15px}
.detective-homework .primary{background:linear-gradient(180deg,#eccb87,#c9974a);color:#1b140a;border-color:#d8ad60;box-shadow:0 3px 12px #0002}
.detective-homework .secondary{background:#0b0d14;color:#d8cbb4}
.detective-homework .detective-quote{background:#0b0d14;border-color:#e4bd72;color:#d8cbb4;border-radius:0 10px 10px 0}
.detective-direction-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:20px 0 12px}
.detective-homework .detective-direction-options .detective-choice{font-size:15px;padding:12px 14px;border-color:#ffffff16;background:#11141d;border-radius:10px}
.detective-homework .detective-direction-options .detective-choice[aria-pressed=true]{background:#e4bd7214;border-color:#e4bd72;color:#f3ead8;box-shadow:none}
.detective-case-picker{margin:22px 0}
.detective-case-picker .detective-choice{display:grid;gap:7px;align-content:start;min-height:130px;background:#11141d;border-color:#ffffff16}
.detective-case-picker .detective-choice[aria-pressed=true]{border-color:#e4bd72;background:#e4bd7210;box-shadow:none}
.detective-case-picker .detective-eyebrow{font-size:12px}
.detective-case-picker strong{font-size:17px;font-weight:500}
.detective-case-picker small{color:#b5ab98;font-size:14px}
.detective-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-top:18px}
.detective-evidence-grid>section{background:#11141d;border:1px solid #ffffff0b;border-radius:12px;padding:0 16px;margin:0 0 14px}
.detective-evidence-grid [data-folder=skills]{border-color:#75a58b33}
.detective-evidence-grid [data-folder=conditions]{border-color:#e4bd7226}
.detective-extra-evidence{padding:12px 0;border-top:1px solid #ffffff0b}
.detective-extra-evidence summary{color:#b5ab98;cursor:pointer}
.detective-validation{margin-top:18px}
.detective-validation summary{cursor:pointer;color:#d4c7b0;font-weight:600}
.detective-validation ul{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:16px}
.detective-validation li{border-top:1px solid #ffffff0b;padding-top:14px}
.detective-validation li:first-child{border-top:0;padding-top:0}
.detective-validation p{font-size:14px;color:#b5ab98;margin:5px 0 0}
.detective-text-action{border:0;background:none;color:#e4bd72;cursor:pointer;padding:0;text-align:left;font-family:inherit;font-size:16px;font-weight:600;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
.detective-homework .detective-savebar{border-color:#ffffff0b;background:#11141d;padding:12px 18px;border-radius:12px}
.detective-homework .detective-savebar>.detective-actions{margin-top:0}
.detective-homework .detective-savebar>span{font-size:14px;color:#87ac95}
@media(max-width:900px){.detective-homework-layout{grid-template-columns:156px minmax(0,1fr);gap:14px}.detective-evidence-grid{grid-template-columns:1fr}.detective-homework .detective-steps button{padding:11px 9px;font-size:14px;gap:8px}}
@media(max-width:600px){.detective-homework{padding:14px}.detective-homework-hero{grid-template-columns:minmax(0,1fr) 84px;gap:12px;padding:20px 16px}.detective-homework-hero h1{font-size:30px}.detective-homework-hero .detective-eyebrow{font-size:12px;letter-spacing:.08em}.detective-homework-hero p{font-size:16px;margin:12px 0}.detective-homework-progress{padding:10px 4px;background:none;border:0}.detective-progress-ring{width:66px;height:66px;padding:4px}.detective-progress-ring>span{width:58px;height:58px;font-size:25px;line-height:58px}.detective-homework .detective-badge{font-size:13px;padding:4px 7px}.detective-hero-tags{grid-column:1/-1;gap:6px}.detective-hero-tags span{font-size:13px}.detective-homework-layout{grid-template-columns:1fr}.detective-homework .detective-steps{position:static;display:flex;flex-wrap:wrap;gap:7px}.detective-homework .detective-steps button{flex:1 1 44px;justify-content:center;padding:8px;min-height:44px}.detective-homework .detective-steps button>span:last-child{display:none}.detective-homework .detective-steps button[aria-current=step]{flex:1 1 100%;justify-content:flex-start}.detective-homework .detective-steps button[aria-current=step]>span:last-child{display:block;font-size:16px}.detective-homework .detective-panel{padding:18px 15px;border-radius:16px}.detective-homework .detective-field>span{font-size:16px}.detective-homework .detective-actions>.button{flex-basis:130px}.detective-homework .detective-savebar{padding:12px}.detective-homework .detective-savebar>span{font-size:16px}.detective-homework .detective-savebar .detective-actions{width:100%}.detective-homework-note,.detective-validation p{font-size:16px}}
.detective-homework .detective-row>.detective-badge{flex:0 0 auto}
.detective-workspace select,.detective-workspace .detective-field select{appearance:none;-webkit-appearance:none;box-sizing:border-box;direction:ltr;text-align:left;text-align-last:left;text-indent:0;margin-left:0;margin-right:0;padding-left:14px;padding-right:46px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23e4bd72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 16px center;background-size:16px 16px;background-repeat:no-repeat;text-overflow:ellipsis}
/*$vite$:1*/