.q14-story-panel{position:relative;max-width:960px;margin:clamp(28px,5vw,56px) auto clamp(78px,9vw,104px);background:#2b1d18;border:1px solid rgba(197,157,117,.55);border-radius:18px;overflow:visible;box-shadow:0 15px 42px rgba(31,18,12,.2);isolation:isolate}
.q14-story-panel img{display:block;width:100%;height:auto;background:#201612;border-radius:17px}
.q14-caption-band{position:absolute;z-index:3;left:clamp(12px,3vw,30px);right:auto;bottom:0;transform:translateY(58%);width:min(78%,720px);box-sizing:border-box;margin:0;padding:13px clamp(15px,3vw,24px) 15px;background:linear-gradient(135deg,rgba(255,235,224,.95),rgba(255,248,242,.88));color:#2d211d;border:1.5px solid rgba(211,116,84,.9);border-radius:15px;box-shadow:0 10px 28px rgba(42,22,15,.28);backdrop-filter:blur(7px);font-size:clamp(16px,2.1vw,21px);line-height:1.68;letter-spacing:.01em}
.q14-caption-band.father{left:auto;right:clamp(12px,3vw,30px);border-color:rgba(93,137,174,.92);background:linear-gradient(135deg,rgba(226,239,249,.95),rgba(247,251,254,.88))}
.q14-caption-band p{display:inline;margin:0}.q14-caption-band .wa-speaker,.q14-speaker{display:inline-block;margin-right:.65em;font-size:.78em;font-weight:800;color:#a65446;letter-spacing:.08em}.q14-caption-band.father .wa-speaker,.q14-caption-band.father .q14-speaker{color:#496f8f}
.q16-story-panel{max-width:760px;border-color:rgba(212,174,133,.72)}
@media(max-width:600px){
 .q14-story-panel{margin:22px 0 88px;border-radius:12px}.q14-story-panel img{border-radius:11px}.q14-caption-band{left:10px;right:auto;bottom:0;transform:translateY(60%);width:calc(100% - 20px);max-width:none;padding:10px 12px 12px;font-size:16px;line-height:1.62;border-radius:12px}.q14-caption-band.father{left:auto;right:10px}
 .wa-panel .wa-stage,.panel .layout-stage{height:auto!important;min-height:0!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;background:#211713}
 .wa-panel .wa-stage>.wa-art,.wa-panel .wa-stage>.screen-frame,.panel .layout-stage>img{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-width:100%!important;order:0!important}
 .wa-panel .wa-stage>.wa-captions{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;display:flex!important;flex-direction:column!important;gap:8px!important;padding:10px 10px 12px!important;box-sizing:border-box!important;order:1!important;transform:none!important}
 .wa-panel .wa-caption,.panel .layout-caption{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0 10px 8px!important;padding:10px 12px!important;box-sizing:border-box!important;font-size:16px!important;line-height:1.62!important;order:1!important}
 .wa-panel .wa-captions .wa-caption{margin:0!important}
}

/* q18: one dialogue design across legacy, q14 and q16 panels. */
html.unified .wa-panel .wa-caption,
html.unified .layout-stage>.layout-caption,
html.unified .q14-story-panel .q14-caption-band{
 color:#fff!important;
 background:rgba(88,42,38,.82)!important;
 border:1.5px solid rgba(224,149,117,.9)!important;
 border-radius:15px!important;
 box-shadow:0 10px 28px rgba(42,22,15,.28)!important;
 backdrop-filter:none;
 text-shadow:none!important;
 font-size:clamp(16px,2.1vw,21px)!important;
 line-height:1.68!important;
}
html.unified .wa-panel .wa-caption.father,
html.unified:not([data-sample-mode]) .layout-stage>.layout-caption[data-speaker-color="father"],
html.unified .q14-story-panel .q14-caption-band.father{
 background:rgba(24,39,62,.82)!important;
 border-color:rgba(117,163,203,.92)!important;
}
html.unified:not([data-sample-mode]) .layout-stage>.layout-caption[data-speaker-color="misa"]{
 background:rgba(88,42,38,.82)!important;
}
html.unified .wa-panel .wa-caption .wa-speaker,
html.unified .layout-stage>.layout-caption .speaker,
html.unified .q14-story-panel .q14-caption-band .wa-speaker,
html.unified .q14-story-panel .q14-caption-band .q14-speaker{
 color:#ffe6da!important;
 font-size:12px!important;
 font-weight:800!important;
}
html.unified .wa-panel .wa-caption.father .wa-speaker,
html.unified .layout-stage>.layout-caption[data-speaker-color="father"] .speaker,
html.unified .q14-story-panel .q14-caption-band.father .wa-speaker,
html.unified .q14-story-panel .q14-caption-band.father .q14-speaker{
 color:#dceeff!important;
}
@media(max-width:600px){
 html.unified .wa-panel .wa-caption,
 html.unified .layout-stage>.layout-caption,
 html.unified .q14-story-panel .q14-caption-band{
  border-radius:12px!important;
  font-size:16px!important;
  line-height:1.62!important;
 }
}
