html body #spv-demo-login { background: #282019 !important; }
html body #spv-demo-login .spv-login-card { background: #3d3027 !important; border-color: #7e6655 !important; }
html body #spv-demo-login .spv-role-card { background: #49372b !important; border-color: #92745f !important; }
html body #spv-demo-login .spv-role-emblem { background: #30241b !important; }
.voice-planner-actions, .voice-crew-select {
 display: grid;
 grid-template-columns: repeat(2,minmax(0,1fr));
 gap: 8px;
}
.voice-planner-actions { grid-column: 1 / -1; }
.voice-planner-actions > button { white-space: normal; }
html body #voice-plan {
 background: #754830; color: #fff; border-color: #754830;
}
#modal:has(.voice-plan-panel) > .spv-navigation-footer { display: none !important; }
#modal:has(.voice-plan-panel) #modal-close { display: none; }
.voice-plan-panel > p:first-child { margin: 0 0 12px; }
.voice-plan-composer {
 border: 1px solid #9a7a63;
 border-radius: 20px;
 padding: 12px;
}
#modal label[for="voice-plan-text"] { display: block; font-weight: 700; }
#modal #voice-plan-text {
 width: 100%;
 box-sizing: border-box;
 min-height: 94px;
 margin: 6px 0 8px;
 font-size: 16px;
 resize: vertical;
}
.voice-plan-controls { display: flex; align-items: center; gap: 6px; }
#modal .voice-plan-controls .voice-plan-icon {
 display: inline-grid;
 place-items: center;
 flex: 0 0 44px;
 width: 44px;
 height: 44px;
 padding: 0;
 border-radius: 50%;
 font-size: 24px;
 line-height: 1;
}
#modal .voice-plan-controls .voice-plan-ai {
 margin-inline: 0;
 border-radius: 999px;
 min-height: 44px;
 padding-inline: 8px;
 font-size: 13px;
 white-space: normal;
}
#modal .voice-plan-controls .voice-plan-close {
 background: transparent;
 border-color: transparent;
 box-shadow: none;
 border-radius: 50%;
}
#modal .voice-plan-controls .voice-plan-mic {
 flex: 1 1 44px;
 width: auto;
 min-width: 44px;
 border-radius: 999px;
}
#modal .voice-plan-controls .voice-plan-send { background: #754830; color: #fff; }
#modal .voice-plan-controls .is-recording { background: #a12836; color: #fff; }
#modal .voice-plan-controls button:disabled { opacity: .48; }
.voice-plan-stop { width: 13px; height: 13px; border-radius: 2px; background: currentColor; }
.voice-plan-status:empty { display: none; }
.voice-plan-status { margin: 10px 0; font-size: 14px; }
.voice-plan-preview > p { padding: 8px; border-bottom: 1px solid #c7b5aa; }
.voice-plan-preview small { display: block; }
.voice-check-entry { display: block; width: 100%; margin-top: 6px; text-align: left; }
@media (max-width: 700px) and (orientation: portrait) {
 body:has(#spv-top-controls) .voice-planner-actions {
  position: fixed; z-index: 28; inset: auto 0 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #32251e; border-top: 1px solid #9a7a63;
 }
 body:has(#spv-top-controls) .workspace > main {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
 }
}

.voice-guide ol { padding-inline-start: 23px; }
.voice-guide li { margin-block: 8px; }

#modal .voice-plan-panel:focus { outline: none; }
.voice-plan-transcript-tools {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 4px 10px;
}
.voice-plan-transcript-tools label { margin-inline-end: auto; }
#modal .voice-plan-text-action {
 appearance: none;
 display: inline-grid;
 place-items: center;
 background: #754830;
 border: 1px solid #9a7a63;
 border-radius: 999px;
 color: #fff;
 min-width: 52px;
 min-height: 36px;
 padding: 0 12px;
 font: inherit;
 font-size: 13px;

}
#modal .voice-plan-text-action:disabled { opacity: .48; }

#modal .voice-plan-controls .voice-plan-mic.is-recording {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 gap: 9px;
}
.voice-plan-meter {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 3px;
 height: 22px;
}
.voice-plan-meter i {
 width: 4px;
 height: 4px;
 border-radius: 999px;
 background: currentColor;
}
.voice-plan-stop { flex: 0 0 13px; }

#modal .voice-plan-text-action[aria-label="Dictate with phone keyboard"] {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 5px;
}

.voice-plan-manual { margin-top: 12px; }
.voice-plan-manual summary { min-height: 36px; cursor: pointer; font-weight: 650; }
.voice-plan-manual-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
#modal .voice-plan-manual-fields select { display: block; width: 100%; min-height: 40px; font-size: 16px; }
