.start-shell { max-width: 1180px; margin: auto; padding: 24px clamp(16px, 4vw, 48px); }
.start-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.start-brand { color: var(--accent, #55ddbd); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.start-shell p, .start-shell li, .start-shell label { line-height: 1.7; }
.start-shell h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 16px; }
.start-shell h2 { font-size: 1.6rem; margin-bottom: 18px; }
.start-intro { max-width: 75ch; color: var(--muted, #bac9d8); margin-bottom: 24px; }
.start-tabs, .start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.start-tabs a { text-decoration: none; }
.start-tabs a[aria-current="page"] { background: #55ddbd; color: #061b1c; border: 2px solid #55ddbd; }
.start-shell a:not(.btn):not(.start-brand) { color: var(--accent, #55ddbd); text-decoration: underline; text-underline-offset: 3px; }
.start-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.start-card, .start-lesson, .start-side, .start-sources, .start-settings { padding: clamp(18px,3vw,28px); border: 1px solid #304759; border-radius: 16px; background: #0e202e; }
.start-card h3 { margin-top: 12px; }
.start-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; margin: 24px 0; align-items: start; }
.start-side ol { margin: 16px 0; padding-left: 24px; }
.start-side li { padding: 4px 0; }
.start-side a[aria-current="step"] { color: #fff; font-weight: 800; }
.start-step { color: #8ddcc9; font-weight: 700; }
.start-example { border-left: 4px solid #55ddbd; background: #122f3a; padding: 16px; margin: 20px 0; }
.start-shell details { border-top: 1px solid #38505f; padding: 16px 0; }
.start-shell summary { cursor: pointer; font-weight: 700; line-height: 1.6; }
.start-shell fieldset { border: 1px solid #466172; border-radius: 12px; padding: 18px; margin: 22px 0; min-width: 0; }
.start-shell legend { font-weight: 700; padding: 0 8px; line-height: 1.6; }
.start-answer { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; cursor: pointer; }
.start-answer input[type="radio"] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 5px; accent-color: #55ddbd; }
.start-feedback { padding: 16px; border: 1px solid #55ddbd; background: #123c39; border-radius: 12px; margin: 16px 0; }
.start-state { display: inline-block; padding: 5px 10px; border: 1px solid #5c7b8e; border-radius: 8px; font-size: .85rem; color: #deebf3; }
.start-muted { color: #bac9d8; }
.start-warning { padding: 16px; border: 1px solid #d9b771; border-radius: 12px; background: #332a18; color: #fff0cf; margin: 18px 0; line-height: 1.7; }
.start-practice-form { display: grid; gap: 12px; max-width: 560px; }
.start-practice-form input, .start-practice-form select { width: 100%; min-height: 46px; }
.start-practice-result { margin-top: 24px; }
.start-practice-result dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; }
.start-practice-result dd { font-weight: 700; margin: 0; }
.start-source-links { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.start-settings { margin-top: 24px; }
.start-settings label { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.start-settings input[type="checkbox"] { width: 20px; height: 20px; accent-color: #55ddbd; }
.start-footer { color: #b3c4d3; margin-top: 40px; padding: 24px 0; border-top: 1px solid #304759; line-height: 1.7; }
.start-shell :focus-visible, #startMain h2:focus, #startMain h1:focus { outline: 3px solid #9dffe7; outline-offset: 5px; }
.start-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; border: 1px solid #55ddbd; background: #102d35; border-radius: 16px; padding: 24px; margin: 18px 0 26px; }
.start-callout h2 { margin: 0 0 8px; }
.start-callout p { margin: 0; line-height: 1.6; }
.start-nav-link { display: block; padding: 12px 16px; margin-bottom: 8px; color: #7fe9d0; font-weight: 700; text-decoration: none; border: 1px solid #3e756d; border-radius: 10px; }
.start-global-link { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #55ddbd; border-radius: 9px; color: #8ff1db; text-decoration: none; line-height: 1.4; }
body > main > header { flex-wrap: wrap; }
@media (max-width: 780px) { .top-actions .start-global-link { display: none; } }
@media (max-width: 780px) { .start-layout, .start-grid { grid-template-columns: 1fr; } .start-side ol { columns: 2; } .start-side li { break-inside: avoid; } }
@media (max-width: 420px) { .start-side ol { columns: 1; } .start-actions .btn, .start-tabs .btn { width: 100%; justify-content: center; } .start-practice-result dl { grid-template-columns: 1fr; gap: 6px; } .start-practice-result dd { margin-bottom: 12px; } }

.companion { max-width: 880px; margin: 24px auto; }
.companion fieldset { border: 0; padding: 0; min-width: 0; }
.companion legend { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; }
.companion input[type=radio], .companion input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; }
.companion textarea, .companion input:not([type]) { width: 100%; box-sizing: border-box; background: #0a1927; color: #edf5fa; border: 1px solid #688596; border-radius: 8px; padding: 14px; font: inherit; }
.companion-plan li { padding: 16px 0; }
.companion-plan label { display: block; margin-bottom: 8px; }
.companion-storage { border: 1px solid #688596; border-radius: 12px; padding: 20px; margin: 24px 0; }
.companion [data-status] { min-height: 2em; line-height: 1.6; }
.companion [data-mic-consent] { border: 2px solid #55ddbd; padding: 20px; margin-top: 16px; }
.companion dialog { max-width: min(600px,90vw); background: #102333; color: #edf5fa; border: 2px solid #55ddbd; padding: 24px; }
.companion-commands { margin: 24px 0; }
@media print {
 body:has(.companion) { background: white; color: black; }
 body:has(.companion) .start-header, body:has(.companion) .start-tabs, body:has(.companion) .start-callout, body:has(.companion) .start-settings, body:has(.companion) .start-footer, .companion button, .companion-storage, .companion-commands, .companion [data-mic-consent], .companion [data-status], .companion dialog { display: none !important; }
 .companion, .companion textarea { color: black; background: white; border-color: #555; }
 .companion textarea { height: 9em; overflow: visible; }
 .companion-plan li { break-inside: avoid; }
}

.companion-print-text { display: none; }
.companion .start-answer { min-height: 44px; overflow-wrap: anywhere; }
.companion .btn { min-height: 44px; white-space: normal; }
.companion [data-status], .companion [data-transcript], .companion [data-voice-diagnostic] { overflow-wrap: anywhere; }
@media print { .companion textarea { display: none; } .companion-print-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: black; } .companion [data-turns], .companion [data-auto-read], .companion [data-transcript], .companion [data-voice-diagnostic] { display: none !important; } }

/* SF INVEST IA identity */
.sf-mission{margin:1rem 0;padding:1rem;border:1px solid var(--border,#526679);border-radius:12px;line-height:1.6;overflow-wrap:anywhere}.sf-mission p:last-child{margin-bottom:0}.sf-mission summary{cursor:pointer;min-height:44px;padding:.5rem 0}.start-brand{overflow-wrap:anywhere}.start-header{flex-wrap:wrap;gap:1rem}.side-brand .brand-name{letter-spacing:.2px}.brand-mark.small{flex-shrink:0}
@media print{.sf-mission{display:none}}

#companionAi:not(:target){display:none}

.start-answer input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 4px; accent-color: #55ddbd; }
