/* Clear action hierarchy across the workspace. */
:root{--action:#365b3b;--action-hover:#294b2e;--action-soft:#e8f3df;--action-border:#8cac7a;--action-text:#2c5533;--record:#b3323f;--record-hover:#922733;--record-soft:#fff1f1;--record-border:#d58a90}
html[data-theme=dark]{--action:#d2f3a3;--action-hover:#e3ffc0;--action-soft:#304531;--action-border:#718f67;--action-text:#d2f3a3;--record:#db6570;--record-hover:#ed7f88;--record-soft:#4a292d;--record-border:#b45d64}
.nav button{color:var(--text);border:1px solid transparent;transition:background .2s ease,border-color .2s ease,color .2s ease}.nav button:not(.active) .icon{color:var(--accent)}.nav button:hover{background:var(--action-soft);border-color:var(--action-border)}.nav button.active{background:var(--action-soft);color:var(--action-text);border-color:var(--action-border);box-shadow:inset 3px 0 var(--action-border)}
.theme-control{color:var(--action-text);border:1px solid var(--border);border-radius:9px;padding:11px 10px;margin-top:12px;background:var(--panel)}.theme-control:hover{border-color:var(--action-border);background:var(--action-soft)}
.text-button,.link-button{color:var(--action-text);text-decoration:underline;text-decoration-color:var(--action-border);text-underline-offset:4px}.text-button:hover,.link-button:hover{text-decoration-color:currentColor}
.roadmap-primary{box-shadow:0 4px 14px #0b1d0c26}.roadmap-link{padding:10px 12px;border:1px solid #cde4b77a;border-radius:7px;background:#ffffff10}.roadmap-link:hover{background:#ffffff1e;border-color:#d4edbe}
.save-button{background:var(--action);color:#fff}.save-button:hover{background:var(--action-hover)}html[data-theme=dark] .save-button{color:#172c1a;background:var(--action)}html[data-theme=dark] .save-button:hover{background:var(--action-hover)}
.subtle-button{background:var(--action-soft);color:var(--action-text);border-color:var(--action-border)}.subtle-button:hover{filter:brightness(.96)}
.viewer-steps button{border-color:var(--action-border);background:var(--action-soft);color:var(--action-text)}.viewer-steps button:hover{background:var(--panel);border-color:var(--action-text)}.viewer-steps button.is-viewed{background:var(--action);border-color:var(--action);color:#fff}html[data-theme=dark] .viewer-steps button.is-viewed{color:#172c1a}
.path-card-link{position:relative}.card-open{background:var(--action-soft);color:var(--action-text);border:1px solid var(--action-border)}.path-card-link:hover{background:var(--action-soft)}.path-card-link:focus-visible{outline:3px solid var(--action-border);outline-offset:-4px}
.field input,.field textarea,.field select,.interview-panel textarea{border-color:var(--action-border)}.field input:focus,.field textarea:focus,.field select:focus,.interview-panel textarea:focus{outline:2px solid var(--action-border);outline-offset:2px}
.speak-toggle{cursor:pointer;color:var(--action-text);font-weight:700;border:1px solid var(--action-border);background:var(--action-soft);border-radius:8px;padding:10px 11px;min-height:42px}.speak-toggle:hover{border-color:var(--action-text)}.speak-toggle input{accent-color:#4d7953;width:16px;height:16px}
/* A microphone in the idle state and a square when recording. */
.voice-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 14px;border-radius:8px;font-size:12px;font-weight:800;border:1px solid var(--record-border);background:var(--record-soft);color:#8d2731;cursor:pointer}
.voice-button::before{content:'';width:16px;height:16px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 15a4 4 0 0 0 4-4V7a4 4 0 0 0-8 0v4a4 4 0 0 0 4 4Zm-2-8a2 2 0 1 1 4 0v4a2 2 0 1 1-4 0V7Zm9 4a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.92V20H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2v-2.08A7 7 0 0 0 19 11Z'/%3E%3C/svg%3E") center/contain no-repeat}
#voice-record{background:var(--record);border-color:var(--record);color:#fff}#voice-record:hover:not(:disabled){background:var(--record-hover);border-color:var(--record-hover)}#voice-remote:hover:not(:disabled){background:#ffe3e3;border-color:var(--record)}html[data-theme=dark] #voice-record{background:#d5606a;color:#1d1113}html[data-theme=dark] #voice-remote{color:#ffb4b8}html[data-theme=dark] #voice-remote:hover:not(:disabled){background:#61363b}
.voice-button[aria-pressed=true],#voice-record[aria-pressed=true],#voice-remote[aria-pressed=true]{background:#8d2731;border-color:#8d2731;color:#fff;box-shadow:0 0 0 4px #ce5c6b30}.voice-button[aria-pressed=true]::before{mask:none;width:11px;height:11px;border-radius:2px}
.voice-button:disabled{opacity:.56;cursor:not-allowed;box-shadow:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #83aa71;outline-offset:3px}
@media(max-width:540px){.interview-controls .voice-button{width:100%;justify-content:flex-start}.speak-toggle{width:100%}.interview-controls .save-button{width:100%;min-height:44px}}
@media(prefers-reduced-motion:reduce){.nav button,.card-open,.voice-button{transition:none}}
/* Visible progress for asynchronous work, with accessible status text. */
button[data-loading=true]::after,.voice-feedback[data-loading=true]::before{content:'';display:inline-block;flex:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:loading-spin .8s linear infinite}button[data-loading=true]::after{margin-left:8px}.voice-feedback[data-loading=true]::before{margin-right:9px;color:var(--action-text)}button[data-loading=true]{cursor:progress;opacity:.8}.voice-feedback[data-loading=true]{color:var(--action-text);font-weight:700}@keyframes loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){button[data-loading=true]::after,.voice-feedback[data-loading=true]::before{animation:none;border-right-color:currentColor;border-top-color:transparent}}
