/* Single workspace and anchored callouts for writing preferences. */
[data-voice-layout] { --voice-line: #e0e3e6; --voice-shadow: 0 4px 8px #20232c04, 0 20px 50px -24px #20232c35; }
[data-voice-layout] > .section-heading { margin-bottom: 64px; }
.voice-workspace { position: relative; isolation: isolate; min-width: 0; height: 620px; border: 1px solid #e1e3e7; border-radius: 18px; background: #f9f9fb; box-shadow: var(--voice-shadow); }
.voice-background { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
[data-voice-layout] .preference-backdrop { inset: 0; width: auto; height: auto; opacity: .85; }
[data-voice-layout] .preference-backdrop .app-backdrop { border: 0; border-radius: 0; box-shadow: none; }
[data-voice-layout] .preference-backdrop .app-backdrop::after { background: linear-gradient(180deg, #f9f9fb00 20%, #f9f9fbcc 67%, #f9f9fb 92%); }
[data-voice-layout] .preference-backdrop .native-window { grid-template-columns: 68px minmax(0, 1fr); --app-sidebar: 68px; --app-inset: 22px; grid-template-rows: 38px 1fr; }
[data-voice-layout] .preference-backdrop .whatsapp-backdrop { grid-template-rows: 1fr; }
[data-voice-layout] .preference-backdrop .native-sidebar { display: flex; }
[data-voice-layout] .preference-backdrop .native-sidebar-content { display: none; }
[data-voice-layout] .preference-backdrop .native-rail { width: 68px; background: #edeaf0; color: #66586e; }
[data-voice-layout] .preference-backdrop .native-topbar { background: #f0edf2; color: #66586e; gap: 16px; }
[data-voice-layout] .preference-backdrop .native-slack-brand { width: auto; margin-right: 18px; font-size: 14px; }
[data-voice-layout] .preference-backdrop .native-slack-brand img { filter: none; }
[data-voice-layout] .preference-backdrop .native-topbar .backdrop-search { background: #ffffffb3; width: 50%; font-size: 11px; }
[data-voice-layout] .preference-backdrop .native-main > header { height: 44px; }
[data-voice-layout] .preference-backdrop .native-main { background: #fcfcfd; }
[data-voice-layout] .preference-backdrop .whatsapp-backdrop .native-main { background: #f7f7f5 url('/assets/apps/whatsapp-wallpaper.svg') repeat; }
[data-voice-layout] .preference-backdrop .native-chat-tabs { display: none; }
[data-voice-layout] .preference-backdrop [data-native-incoming] { max-width: 330px; gap: 18px; padding-top: 6px; }
[data-voice-layout] .preference-chat-message p { font-size: 13px; line-height: 1.55; }
[data-voice-layout] .preference-chat-message .person { width: 25px; }
[data-voice-layout] .style-chapter .benefit-panel { position: absolute; min-height: 0; padding: 0; overflow: visible; background: none; border-radius: 0; }
[data-voice-layout] .benefit-panel::before { content: none; }
[data-voice-layout] .style-chapter .preferences-main { z-index: 3; left: 26px; bottom: 26px; width: 54%; height: 288px; }
[data-voice-layout] .preference-tweak-expanded { --preference-card-height: 400px; grid-template-rows: minmax(0, 1fr) 48px; gap: 16px; }
[data-voice-layout] .preference-conversation { display: none; }
[data-voice-layout] .preference-reply-slot { align-items: flex-end; }
[data-voice-layout] .preference-reply-window { max-height: none; }
[data-voice-layout] .preference-reply-window.is-tweaking { max-height: 300px; }
[data-voice-layout] .preference-tweak-expanded .tb-reply { font-size: 15px; }
[data-voice-layout] .preference-tweak-expanded .tb-surface { padding-inline: 22px; }
[data-voice-layout] .preference-tweak-row { gap: 5px; }
[data-voice-layout] .preference-presets { gap: 5px; }
[data-voice-layout] .preference-tweak-controls button { font-size: 11px; }
[data-voice-layout] .preference-host { background: #ffffffd9; border-color: #dde0e4; box-shadow: 0 4px 16px #1f232a05; }
[data-voice-layout] .style-chapter .preference-settings { z-index: 2; top: 104px; right: 24px; width: 320px; height: 280px; gap: 0; padding: 8px; border: 1px solid #fff; border-radius: 19px; background: #ededeea6; backdrop-filter: blur(14px); box-shadow: var(--voice-shadow); }
[data-voice-layout] .preference-tabs { width: 100%; border: 0; background: transparent; padding: 2px; }
[data-voice-layout] .preference-tabs button { padding: 8px 4px; font-size: 12px; color: #626971; }
[data-voice-layout] .preference-tabs button[aria-selected=true] { color: #30363b; border-color: #e0e3e6; background: #ffffffd9; box-shadow: 0 1px 3px #20252c08; }
[data-voice-layout] .preference-settings > .preference-style-excerpt { width: 100%; margin-top: 7px; padding: 17px; border: 1px solid #ffffffcc; border-radius: 13px; background: #ffffffd9; box-shadow: none; }
[data-voice-layout] .preference-persona { margin-bottom: 12px; }
[data-voice-layout] .preference-persona .person { width: 30px; }
[data-voice-layout] .preference-facts { gap: 8px; }
[data-voice-layout] .preference-facts p, [data-voice-layout] .preference-saved-rule { font-size: 13px; }
[data-voice-layout] .preference-saved-rule { margin-top: 15px; padding-top: 12px; }
[data-voice-layout] .preference-add { font-size: 12px; margin-top: 12px; }
[data-voice-layout] .preference-style-header { margin-bottom: 13px; }
[data-voice-layout] .preference-scene-trigger { padding: 5px 12px; font-size: 12px; }
[data-voice-layout] .preference-tone-sliders { gap: 11px; }
[data-voice-layout] .preference-tone-row { grid-template-columns: 74px minmax(0, 1fr) 24px; font-size: 12px; gap: 7px; }
[data-voice-layout] .preference-context-note .preference-panel-title { font-size: 15px; }
[data-voice-layout] .preference-context-note p { font-size: 13px; }
[data-voice-layout] .style-chapter [data-learned-panel] { z-index: 2; right: 24px; bottom: 26px; width: 280px; height: 170px; }
[data-voice-layout] [data-learned-panel] > .preference-style-excerpt { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 16px; border: 1px solid #e0e5dd; border-radius: 16px; background: #fbfcf8eb; backdrop-filter: blur(16px); box-shadow: var(--voice-shadow); }
[data-voice-layout] [data-learned-panel] .preference-panel-title { font-size: 18px; }
[data-voice-layout] [data-learned-panel] .preference-style-header { margin: 0; }
[data-voice-layout] [data-learned-panel] .preference-learned-rule { font-size: 14px; line-height: 1.45; }
[data-voice-layout] [data-learned-panel] .preference-learned-source { font-size: 11px; margin: 0; }
[data-voice-layout] [data-learned-panel] .preference-learned-footer { min-height: 28px; padding: 0; }
[data-voice-layout] .preference-learned-actions button { font-size: 11px; padding: 5px 13px; }
.voice-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; fill: none; stroke: #8d9b92; stroke-width: 1.3; stroke-dasharray: 3 5; opacity: .75; }
.voice-note h3 { margin-bottom: 12px; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; text-wrap: pretty; }
.voice-note p { font-size: 14px; line-height: 1.65; color: #72767c; text-wrap: pretty; }
.voice-single { position: relative; padding: 26px 220px 24px 200px; }
.voice-single .voice-note { position: absolute; width: 180px; }
.voice-single .voice-note-about { right: 0; top: 174px; }
.voice-single .voice-note-learned { right: 0; bottom: 42px; }
.voice-single .voice-note-reply { left: 0; top: 414px; width: 162px; }
.voice-single .voice-note::after { content: ''; position: absolute; pointer-events: none; border-top: 1px solid #bfc5cb; height: 20px; width: 48px; }
.voice-single .voice-note-about::after, .voice-single .voice-note-learned::after { top: 20px; right: calc(100% + 8px); width: 56px; }
.voice-single .voice-note-reply::after { top: 20px; left: calc(100% + 6px); width: 24px; }
[data-voice-focus=reply] .voice-connections { animation: voice-flow 1.8s linear infinite; }
@keyframes voice-flow { to { stroke-dashoffset: -32; } }
@media (max-width: 1199px) {
  .voice-single { padding-inline: 0; padding-top: 0; padding-bottom: 162px; }
  .voice-single .voice-workspace { width: 100%; }
  .voice-single .voice-note { top: auto; bottom: 0; width: 27%; }
  .voice-single .voice-note-about { left: 36.5%; right: auto; }
  .voice-single .voice-note-learned { left: 0; right: auto; }
  .voice-single .voice-note-reply { right: 0; left: auto; }
  .voice-single .voice-note::after { top: auto; bottom: calc(100% + 16px); left: 0; width: 1px; height: 32px; border-top: 0; border-left: 1px solid #bfc5cb; }
}
@media (max-width: 800px) {
  [data-voice-layout] > .section-heading { margin-bottom: 40px; }
  .voice-single { display: flex; flex-direction: column; padding: 0; gap: 28px; }
  .voice-single .voice-workspace { order: 1; height: 1000px; }
  .voice-single .voice-note { position: relative; inset: auto; width: 100%; max-width: 400px; padding-left: 18px; border-left: 1px solid #dfe3e6; }
  .voice-single .voice-note-about { order: 2; }
  .voice-single .voice-note-learned { order: 0; }
  .voice-single .voice-note-reply { order: 3; }
  .voice-single .voice-note::after { content: none; }
  [data-voice-layout] .preference-backdrop .native-window { grid-template-columns: 1fr; }
  [data-voice-layout] .preference-backdrop .native-sidebar { display: none; }
  [data-voice-layout] .preference-backdrop [data-native-incoming] { max-width: 95%; }
  [data-voice-layout] .style-chapter .preference-settings { top: 176px; right: 16px; width: calc(100% - 32px); max-width: 340px; height: 258px; }
  [data-voice-layout] .style-chapter .preferences-main { left: 16px; bottom: 20px; width: calc(100% - 32px); height: 280px; }
  [data-voice-layout] .style-chapter [data-learned-panel] { right: 16px; top: 448px; bottom: auto; width: 250px; height: 160px; }
  [data-voice-layout] .preference-tweak-expanded { grid-template-rows: minmax(0, 1fr) 48px; }
  [data-voice-layout] .preference-tweak-row { display: flex; flex-wrap: wrap; }
  [data-voice-layout] .preference-presets { width: 100%; justify-content: space-between; }
  [data-voice-layout] .preference-tweak-controls button { font-size: 11px; }
  [data-voice-layout] .hero-tweak-input, [data-voice-layout] .preference-host .tb-host-input { font-size: 16px; }
  .voice-connections { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-voice-layout] *, [data-voice-layout] *::after { animation: none !important; transition: none !important; }
}
