.npc-conversation {
    clear: both;
    min-width: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d6a84f55;
    text-align: left;
    font-family: Arial, system-ui, sans-serif;
    color: #c8b992;
}
.npc-conversation h3 { font-size: 1rem; color: #e5b65d; }
.npc-conversation .npc-conversation-answer {
    font: 400 .95rem/1.6 Arial, system-ui, sans-serif;
    color: #c8b992;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.npc-conversation form { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.npc-conversation label { display: block; flex: 1 1 12rem; min-width: 0; font-size: .85rem; }
.npc-conversation input { box-sizing: border-box; width: 100%; min-width: 0; margin-top: .4rem; }
.npc-conversation form button { min-height: 2.5rem; }
.npc-conversation-options { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.npc-conversation-options button { white-space: normal; text-align: left; max-width: 100%; }
.npc-conversation[aria-busy=true] { opacity: .7; pointer-events: none; }
.npc-assistant-card > img { display: block; max-width: 10rem; height: 12rem; object-fit: contain; margin: 1rem auto; }
.dialogue-admin .panel {
    min-width: 0;
    margin: 1rem 0;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    scroll-margin-top: 6rem;
    text-align: left;
}
.dialogue-admin h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.dialogue-admin .panel h2 { font-size: 1.4rem; margin-top: 0; }
.dialogue-admin p { font-size: .95rem; }
.dialogue-admin label { display: grid; gap: .4rem; margin: 0; }
.dialogue-admin label.check-row { display: flex; align-items: flex-start; gap: .6rem; }
.dialogue-admin input[type=checkbox] { width: auto; }
.dialogue-admin .check-row input { flex: 0 0 auto; margin-top: .2rem; }
.dialogue-admin textarea, .dialogue-admin select, .dialogue-admin input:not([type=checkbox]) {
    box-sizing: border-box; width: 100%; max-width: 100%;
}
.dialogue-admin .hint { display: block; font: 400 .85rem/1.5 Arial, system-ui, sans-serif; color: #c8b992; }
.dialogue-admin fieldset { gap: .75rem; margin: .5rem 0; padding: 1rem; border: 1px solid #d6a84f55; border-radius: .5rem; }
.dialogue-admin button { min-height: 2.5rem; }
.dialogue-admin-nav { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.dialogue-admin details { margin-top: 1rem; }
.dialogue-admin summary { cursor: pointer; }
.dialogue-review { padding: .75rem 0; border-bottom: 1px solid #d6a84f44; }
.dialogue-review > p { overflow-wrap: anywhere; }
.dialogue-model, .dialogue-example-list > div {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: .75rem 0;
}
.dialogue-example-list span { overflow-wrap: anywhere; min-width: 0; }
.dialogue-example-list form { margin: 0; }
.dialogue-import-preview { border-top: 1px solid #d6a84f55; margin-top: 1rem; padding-top: 1rem; }
.dialogue-import-preview li { overflow-wrap: anywhere; margin: .4rem 0; font-family: Arial, system-ui, sans-serif; }
.dialogue-import-preview details { max-height: 22rem; overflow: auto; border: 1px solid #d6a84f44; border-radius: .5rem; padding: .75rem; }
.dialogue-import-conflicts article { border-top: 1px solid #d6a84f44; margin-top: .75rem; padding-top: .75rem; overflow-wrap: anywhere; }
.npc-base-poses,.npc-frame-grid { display: flex; gap: .75rem; flex-wrap: wrap; }
.npc-base-poses figure,.npc-frame-grid figure { margin: 0; text-align: center; }
.npc-base-poses img { width: 90px; height: 135px; object-fit: contain; }
.npc-frame-grid img { width: 60px; height: 90px; object-fit: contain; }
.npc-frame-list { max-height: 20rem; overflow: auto; padding-left: 1.3rem; }
.npc-frame-list li { margin: .4rem 0; overflow-wrap: anywhere; }
.npc-frame-list button { padding: .3rem .6rem; margin-left: .4rem; }
[data-visual-preview-image] { display: block; width: min(240px,100%); height: 320px; object-fit: contain; margin: auto; }
.dialogue-admin [data-animation-settings][hidden] { display: none; }
