/* Voice layout only; visual values come from the existing Add Place tokens. */
#voice-modal { padding: 16px 12px; background: rgba(25,34,49,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#voice-modal-content {
    width: 100%; max-width: 460px; height: auto; max-height: calc(100dvh - 32px);
    display: flex; flex-direction: column; overflow: hidden; background: var(--place-panel);
    border: 1px solid var(--place-line); border-radius: var(--place-radius); color: var(--place-ink);
    font-family: var(--place-font);
    font-size: var(--place-button-size); font-weight: 400; line-height: 1.5;
}
#voice-modal-content .voice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; padding: 12px var(--place-space); border-bottom: 1px solid #f3f4f6; background: #fff; }
#voice-modal-content .voice-header > div { min-width: 0; }
#voice-modal-content .voice-header h2 { margin: 0; font-size: var(--place-title-size); line-height: 28px; font-weight: 900; letter-spacing: normal; color: var(--place-heading); }
#voice-modal-content .voice-header p { margin: 6px 0 0; font-size: var(--place-helper-size); line-height: 1.5; font-weight: 400; color: var(--place-muted); }
#voice-modal-content button { min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: var(--place-control-radius); background: #f3f4f6; color: #4b5563; font-family: inherit; font-size: var(--place-button-size); font-weight: 700; line-height: 1.5; box-shadow: none; }
#voice-modal-content button.is-primary { border-color: var(--place-accent); background: var(--place-accent); color: #fff; font-weight: 900; }
#voice-modal-content button:disabled { opacity: .45; cursor: not-allowed; }
#voice-modal-content button:focus-visible { outline: 2px solid var(--place-accent); outline-offset: 2px; }
#voice-modal-content .voice-header > button { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; font-size: 22px; }
#voice-modal-content .voice-body { flex: 1 1 auto; min-height: 0; padding: var(--place-space); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: grid; align-content: start; gap: 16px; }
#voice-modal-content label:not(.voice-check) { display: block; margin-bottom: 6px; color: var(--place-muted); font-size: var(--place-label-size); line-height: 1.5; font-weight: 900; letter-spacing: .05em; }
#voice-modal-content :is(input:not([type=checkbox]),textarea,select) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px; border: 2px solid var(--place-line); border-radius: var(--place-control-radius); background: #fff; color: var(--place-ink); font-family: inherit; font-size: var(--place-input-size); font-weight: 700; line-height: 20px; }
#voice-modal-content #voice-transcript,
#voice-modal-content #voice-notes { resize: vertical; font-weight: 400; }
#voice-modal-content textarea::placeholder { color: #8691a3; font-weight: 400; }
#voice-modal-content :is(input,textarea,select):focus { outline: 2px solid #bdd1ff; outline-offset: 1px; }
#voice-modal-content .voice-capture { display: grid; gap: 8px; }
#voice-modal-content .voice-capture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#voice-modal-content .voice-capture-toolbar label { margin: 0; font-size: var(--place-label-size); white-space: nowrap; }
#voice-modal-content .voice-capture-actions { display: flex; gap: 6px; }
#voice-modal-content .voice-language { display: flex; gap: 4px; width: max-content; }
#voice-modal-content .voice-language button { min-height: 24px; padding: 2px 6px; border-radius: 6px; border-color: transparent; background: transparent; font-size: 10px; }
#voice-modal-content .voice-language button[aria-pressed=true] { color: var(--place-accent); background: #eef3ff; }
#voice-modal-content #voice-transcript { height: 68px; min-height: 68px; }
#voice-modal-content .voice-review { display: grid; gap: 10px; }
#voice-modal-content .voice-review h3 { margin: 0 0 2px; font-size: var(--place-section-size); line-height: 1.5; font-weight: 700; color: var(--place-heading); }
#voice-modal-content .voice-location-input { position: relative; }
#voice-modal-content .voice-location-input input { padding-right: 44px; }
#voice-modal-content .voice-location-input button { position: absolute; inset: 0 0 0 auto; width: 44px; padding: 0; border: 0; background: transparent; color: var(--place-muted); font-size: 22px; }
#voice-modal-content .voice-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#voice-modal-content .voice-review-grid > div { min-width: 0; }
#voice-modal-content .voice-input-icon { position: relative; }
#voice-modal-content .voice-input-icon input { appearance: none; -webkit-appearance: none; height: 44px; padding-right: 30px; }
#voice-modal-content :is(#voice-visit-date, #voice-visit-time, #voice-trip) { font-size: var(--place-visit-size); font-weight: 400; }
#voice-modal-content .voice-input-icon input::-webkit-datetime-edit { font: inherit; }
#voice-modal-content .voice-input-icon input::-webkit-date-and-time-value { text-align: left; min-width: 0; }
#voice-modal-content .voice-input-icon input::-webkit-calendar-picker-indicator { position: absolute; right: 0; width: 32px; height: 100%; opacity: 0; cursor: pointer; }
#voice-modal-content .voice-input-icon > i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--place-muted); font-size: 18px; }
#voice-modal-content .voice-check { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--place-muted); font-size: 11px; }
#voice-modal-content .voice-check input { width: 16px; height: 16px; accent-color: var(--place-accent); }
#voice-modal-content :is(.voice-helper,.voice-status) { margin: 4px 0 0; color: var(--place-muted); font-size: var(--place-helper-size); font-weight: 400; line-height: 1.45; }
#voice-modal-content :is(.voice-helper,.voice-status,.voice-error,.voice-warnings):empty { display: none; }
#voice-modal-content :is(.voice-error,.voice-warnings) { font-size: var(--place-helper-size); color: #a33b2e; }
#voice-modal-content .voice-location-results { display: grid; gap: 6px; }
#voice-modal-content .voice-location-results:empty { display: none; }
#voice-modal-content .voice-location-results button { text-align: left; }
#voice-modal-content .voice-location-results :is(strong,span) { display: block; }
#voice-modal-content .voice-location-results span { font-size: var(--place-helper-size); font-weight: 400; }
#voice-modal-content #voice-notes { height: 68px; min-height: 68px; }
#voice-modal-content .voice-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; flex: none; padding: 12px var(--place-space) max(12px,env(safe-area-inset-bottom)); border-top: 1px solid #f3f4f6; background: #fff; }
#voice-modal-content .voice-footer button { min-width: 0; min-height: 48px; font-size: var(--place-button-size); }
@media (max-width: 359px) { #voice-modal-content .voice-review-grid { gap: 8px; } }

#voice-modal-content .voice-capture-title { min-width: 0; }
#voice-modal-content .voice-capture-toolbar .voice-language { margin-top: 3px; }
