/* Entirely scoped to the pilot player; never changes article, header or theme rules. */
#gm-audio-pilot {
    --gm-ap-ink: #1d2633;
    --gm-ap-muted: #566170;
    --gm-ap-brand: #1f3c88;
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0 32px;
    padding: 22px 24px 18px;
    border: 1px solid #ddd9d0;
    border-radius: 16px;
    background: #faf9f6;
    color: var(--gm-ap-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
#gm-audio-pilot *, #gm-audio-pilot *::before, #gm-audio-pilot *::after { box-sizing: border-box; }
#gm-audio-pilot .gm-ap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
#gm-audio-pilot .gm-ap-brand { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: var(--gm-ap-brand); }
#gm-audio-pilot .gm-ap-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--gm-ap-ink); }
#gm-audio-pilot p { margin: 0; padding: 0; color: var(--gm-ap-muted); font-size: 13px; line-height: 1.5; }
#gm-audio-pilot .gm-ap-meta { margin: 0 0 16px; }
#gm-audio-pilot .gm-ap-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
#gm-audio-pilot button { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; box-shadow: none; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
#gm-audio-pilot .gm-ap-primary { min-width: 98px; background: var(--gm-ap-brand); color: #fff; }
#gm-audio-pilot .gm-ap-secondary { background: #fff; border-color: #c9ced6; color: var(--gm-ap-ink); }
#gm-audio-pilot button:hover:not(:disabled) { filter: brightness(.95); }
#gm-audio-pilot button:disabled { opacity: .5; cursor: default; }
#gm-audio-pilot select { appearance: auto; -webkit-appearance: menulist; min-width: 0; max-width: 100%; min-height: 44px; height: auto; margin: 0; padding: 9px 10px; border: 1px solid #c9ced6; border-radius: 8px; background: #fff; color: var(--gm-ap-ink); font-family: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; text-overflow: ellipsis; }
#gm-audio-pilot .gm-ap-speed { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 0; font-size: 12px; font-weight: 500; color: var(--gm-ap-muted); }
#gm-audio-pilot .gm-ap-speed select { width: 85px; }
#gm-audio-pilot .gm-ap-status { margin: 0 0 8px; color: var(--gm-ap-ink); overflow-wrap: anywhere; }
#gm-audio-pilot .gm-ap-progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 5px; margin: 0 0 5px; border: 0; border-radius: 999px; overflow: hidden; color: var(--gm-ap-brand); background: #e0e3e7; }
#gm-audio-pilot progress::-webkit-progress-bar { background: #e0e3e7; border-radius: 999px; }
#gm-audio-pilot progress::-webkit-progress-value { background: var(--gm-ap-brand); border-radius: 999px; }
#gm-audio-pilot progress::-moz-progress-bar { background: var(--gm-ap-brand); border-radius: 999px; }
#gm-audio-pilot .gm-ap-counter { font-size: 11px; margin-bottom: 14px; }
#gm-audio-pilot .gm-ap-details { display: block; margin: 0; padding: 10px 0; border-top: 1px solid #dfdfdc; background: transparent; }
#gm-audio-pilot summary { display: list-item; list-style: disclosure-closed inside; margin: 0; padding: 2px 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--gm-ap-ink); cursor: pointer; }
#gm-audio-pilot details[open] > summary { list-style-type: disclosure-open; margin-bottom: 12px; }
#gm-audio-pilot .gm-ap-label { display: block; margin: 0 0 6px; font-size: 12px; color: var(--gm-ap-muted); }
#gm-audio-pilot #gm-ap-voice { display: block; width: 100%; }
#gm-audio-pilot .gm-ap-retry { display: inline-flex; min-height: 40px; margin: 4px 0; padding: 7px 0; border: 0; border-radius: 2px; color: var(--gm-ap-brand); background: transparent; font-size: 12px; font-weight: 600; }
#gm-audio-pilot .gm-ap-help { margin: 5px 0; font-size: 12px; }
#gm-audio-pilot .gm-ap-transcript { max-height: 320px; overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid #dfdfdc; border-radius: 8px; background: #fff; }
#gm-audio-pilot .gm-ap-transcript p { margin: 0 0 12px; overflow-wrap: anywhere; font-size: 13px; color: var(--gm-ap-ink); }
#gm-audio-pilot .gm-ap-transcript .gm-ap-transcript-heading { font-weight: 700; }
#gm-audio-pilot .gm-ap-note { margin: 10px 0 6px; font-size: 11px; }
#gm-audio-pilot .gm-ap-privacy { font-size: 11px; }
#gm-audio-pilot :is(button, select, summary, [tabindex]):focus-visible { outline: 3px solid #1f3c88; outline-offset: 3px; }
@media (max-width: 480px) {
    #gm-audio-pilot { padding: 18px 16px 16px; }
    #gm-audio-pilot .gm-ap-title { font-size: 20px; }
    #gm-audio-pilot .gm-ap-controls { gap: 8px; }
    #gm-audio-pilot button { padding: 10px 14px; }
    #gm-audio-pilot .gm-ap-speed { margin-left: 0; }
    #gm-audio-pilot select { font-size: 16px; }
}
@media print { #gm-audio-pilot { display: none !important; } }
/* Public pilot notice and touch-friendly recovery control. */
#gm-audio-pilot .gm-ap-access { margin: 0 0 8px; font-size: 12px; line-height: 1.6; }
#gm-audio-pilot .gm-ap-background { margin: 0 0 16px; font-size: 12px; line-height: 1.6; }
#gm-audio-pilot .gm-ap-recover { margin: 10px 0 6px; font-size: 12px; }
#gm-audio-pilot .gm-ap-privacy { line-height: 1.6; }
/* Disclosure is closed by default; measurement can be disabled independently. */
#gm-audio-pilot [hidden] { display: none !important; }
#gm-audio-pilot .gm-ap-measurement { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dfdfdc; }
#gm-audio-pilot .gm-ap-measurement .gm-ap-help { font-size: 11px; }

/* Compact information panel. Native details/summary supports keyboard and touch. */
#gm-audio-pilot .gm-ap-information { padding-bottom: 0; }
#gm-audio-pilot .gm-ap-information-content { padding: 2px 0 0; }
#gm-audio-pilot .gm-ap-information > summary { min-height: 32px; }
#gm-audio-pilot .gm-ap-policy-link { display: inline-block; margin: 4px 0 4px 14px; font-size: 12px; color: var(--gm-ap-brand); text-decoration: underline; }
#gm-audio-pilot a:focus-visible { outline: 3px solid var(--gm-ap-brand); outline-offset: 3px; }
#gm-audio-pilot .gm-ap-measurement { margin-top: 12px; padding-bottom: 0; }

/* 0.3.2: essential voice provenance stays visible; technical detail stays closed. */
#gm-audio-pilot .gm-ap-meta { margin-bottom: 10px; }
#gm-audio-pilot .gm-ap-voice-notice { margin: 0 0 8px; font-size: 12px; line-height: 1.55; }
#gm-audio-pilot .gm-ap-voice-notice strong { color: var(--gm-ap-ink); font-weight: 600; }
#gm-audio-pilot .gm-ap-voice-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 14px; }
#gm-audio-pilot .gm-ap-current-voice { flex: 1 1 100%; min-width: 0; font-size: 12px; color: var(--gm-ap-muted); overflow-wrap: anywhere; }
#gm-audio-pilot .gm-ap-voice-tools button { margin: 0; min-height: 32px; padding: 5px 0; }
#gm-audio-pilot .gm-ap-voice-tools .gm-ap-preview { font-weight: 700; }

/* 0.3.4: a discreet beta label beside the name, with no new notice or panel. */
#gm-audio-pilot .gm-ap-brand { display: inline-flex; align-items: baseline; gap: 7px; }
#gm-audio-pilot .gm-ap-beta { font-size: 10px; font-weight: 600; letter-spacing: .07em; line-height: inherit; color: var(--gm-ap-muted); white-space: nowrap; }
