.local-panel{border:1px solid var(--line);border-radius:9px;padding:22px;background:#fff;margin:16px 0}.local-form{display:grid;gap:16px}.local-field{display:grid;gap:7px;margin:12px 0;font-size:14px;font-weight:600}.local-field input:not([type=checkbox]),.local-field select,.local-field textarea{box-sizing:border-box;max-width:100%;width:100%;min-height:42px;padding:10px 12px;border:1px solid #ccc;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.local-field textarea{resize:vertical;line-height:1.5}.local-field input[type=checkbox]{width:19px;height:19px}.local-field small,.local-muted{font-weight:400;color:#666;line-height:1.5}.local-button{min-height:42px;background:#fff;color:#222;border:1px solid #ccc;padding:9px 14px;border-radius:7px;cursor:pointer;margin:6px 8px 6px 0}.local-details{margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:#fff}.local-details summary{cursor:pointer;font-weight:600}.local-details[open]>summary{margin-bottom:16px}.local-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.document-list,.history-list{display:grid;gap:12px}.document-list h2,.history-list h2{overflow-wrap:anywhere}.history-row{margin:0}.prompt-text,.result-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:65vh;overflow:auto;padding:18px;border:1px solid #e2e2e2;border-radius:8px;background:#fafafa;font:14px/1.6 ui-monospace,monospace}.local-panel .details-button,.bo-content>a.details-button{display:inline-block;padding:10px 12px;border:1px solid #ccc;border-radius:7px;color:inherit;text-decoration:none;margin:6px 8px 6px 0;font-size:14px}.local-form small{color:#666}.result-panel{scroll-margin-top:20px}.local-panel .product-facts{font-size:13px}.local-details ul{padding-left:22px;line-height:1.6}.local-field:focus-within{scroll-margin:30px}@media(max-width:760px){.local-panel{padding:16px}.local-details{padding:12px}.local-field{font-size:13px}.prompt-text,.result-text{font-size:12px}.local-actions{align-items:flex-start;flex-direction:column}}
.bo-content .local-button:hover{background:#f3f3f3;color:#222}.bo-content a.details-button{display:inline-block;padding:10px 12px;border:1px solid #ccc;border-radius:7px;color:inherit;text-decoration:none;margin:6px 8px 6px 0;font-size:14px}.bo-content a.details-button:hover{background:#f7f7f7}

/* VIDEO_CHAT_UI_V1: standard composer first, followed immediately by results. */
.video-chat{max-width:920px}.video-chat>h2{font-size:clamp(24px,3vw,32px);margin-bottom:8px}.video-composer{margin-top:18px;border:1px solid #cbd3dc;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 24px #25364a0d}.video-composer>textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;padding:18px;border:0;border-radius:0;resize:vertical;color:var(--ink);font:17px/1.55 inherit;outline:0}.video-composer>textarea:focus{box-shadow:inset 0 0 0 3px #c2d5e4}.video-composer-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;border-top:1px solid #e1e5e9}.video-file-picker{display:none}.video-file-name{min-width:0;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5c6977;font-size:13px}.video-composer-actions .video-field{display:grid;gap:5px;margin:0;font-size:12px;font-weight:600}.video-composer-actions .video-field select,.video-composer-actions .video-field input{box-sizing:border-box;min-height:42px;padding:9px 11px;border:1px solid #cbd3dc;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.video-composer-actions .video-send{margin:0 0 0 auto;min-height:42px}.video-composer-actions .video-attach{margin:0}.video-status{min-height:1.5em;margin:12px 0;color:#526273}.video-result{display:grid;gap:16px;scroll-margin-top:20px}.video-result:empty{display:none}.video-grabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:20px;border:1px solid var(--line);border-radius:9px;background:#fff}.video-grabs>h3,.video-grabs>.details-button{grid-column:1/-1}.video-grab{display:grid;gap:8px;margin:0;padding:10px;border:1px solid #d9dfe5;border-radius:8px}.video-grab img{display:block;width:100%;height:auto;border-radius:5px}.video-grab input{justify-self:start;width:20px;height:20px;margin:0}@media(max-width:760px){.video-composer>textarea{min-height:120px;font-size:16px}.video-composer-actions{align-items:stretch}.video-file-name{max-width:100%;flex-basis:100%}.video-composer-actions .video-field{flex:1 1 160px}.video-composer-actions .video-send{margin-left:0;width:100%}}

.video-composer>textarea{font:inherit;font-size:17px;line-height:1.55}.video-composer-actions .video-field[hidden]{display:none}

/* Native Tool screens keep the existing backoffice layout. */
.simple-tool .bo-subtitle{max-width:64ch;line-height:1.6}
.simple-tool .tool-files{display:grid;gap:12px;margin:12px 0;max-width:100%}
.simple-tool .file-control{min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff}
.simple-tool .selected-files span{overflow-wrap:anywhere;max-width:100%}
.simple-tool .placement-evidence[hidden]{display:none}
.simple-tool .tool-result:empty{display:none}
.simple-tool .tool-result{margin:16px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.simple-tool .local-button,.simple-tool input,.simple-tool select{min-height:44px}
.simple-tool .property-chatkit{display:block;min-width:0;width:100%;height:620px;max-height:78dvh;min-height:380px}
.simple-tool .local-field input[type=file]{white-space:normal;overflow:hidden}
@media(max-width:760px){
 .simple-tool .property-chatkit{height:65dvh;min-height:360px;max-height:none}
 .simple-tool .local-actions{flex-direction:row;align-items:center}
 .simple-tool .file-control{padding:10px}
 .simple-tool .local-field input,.simple-tool .local-field select,.simple-tool .local-field textarea{font-size:16px}
 .simple-tool .placement-evidence{padding:14px}
}

/* ChatKit owns the composer, attachments, messages and conversation history. */
.bo-scroll:has(> .direct-tool) {display:flex; overflow:hidden;}
.direct-tool {display:flex; flex:1; flex-direction:column; width:100%; max-width:none; min-width:0; min-height:0; padding:0; overflow:hidden;}
.direct-tool .direct-chatkit {display:block; flex:1; width:100%; min-height:0; height:100%; max-height:none; margin:0; border:0; border-radius:12px;}
.chatkit-load-status {margin:8px 16px; font-size:.9rem;}
.chatkit-load-status[hidden] {display:none;}
.tool-settings {width:min(400px,calc(100vw - 32px)); border:1px solid #d4dce5; border-radius:12px; padding:20px; color:#203247;}
.tool-settings::backdrop {background:rgba(15,23,42,.28);}
.tool-settings h2 {margin:0 0 16px;}
.tool-settings label {display:grid; gap:6px; margin:14px 0;}
.tool-settings small {display:block;}
@media(max-width:700px){
 .direct-tool .direct-chatkit {border-radius:0;}
}

/* IPSS selected-product identity; ChatKit retains all conversation controls. */
.designer-workspace{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:start;gap:14px;flex:1;min-width:0;min-height:0;overflow:auto;padding:10px 14px 14px}
.designer-main{display:flex;flex-direction:column;min-width:0;min-height:680px;height:calc(100dvh - 120px)}
.designer-selected-product {margin:0;padding:14px 16px;border:1px solid #d4dce5;border-radius:12px;background:#f8fafc;min-width:0;overflow:visible;overflow-wrap:anywhere;}
.designer-selected-product[hidden] {display:none;}
.selected-product-label {font-size:.75rem;font-weight:700;color:#52637a;}
.designer-selected-product h2 {font-size:1rem;line-height:1.35;margin:3px 0;}
.designer-selected-product p {font-size:.85rem;line-height:1.35;margin:3px 0;}
.selected-product-evidence {color:#52637a;}
.selected-product-lock {font-size:.8rem;font-weight:600;color:#236349;}
@media(max-width:800px) {.designer-workspace{grid-template-columns:1fr;display:grid;overflow:auto;padding:6px 8px 10px}.designer-main{height:70dvh;min-height:420px}.designer-selected-product {margin:0;padding:10px 12px;} .designer-selected-product h2 {font-size:.93rem;}}

.designer-selected-product > .local-button { margin-inline-start: .75rem; }

/* Vault records use the same simple card language as the normal Tools page. */
.vault-group{margin:22px 0}.vault-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.vault-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.vault-card{display:flex;flex-direction:column;min-width:0;margin:0}.vault-card h3{margin:8px 0}.vault-card .local-button{margin-top:auto;align-self:flex-start}.vault-record{scroll-margin-top:16px}.vault-prompt-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.vault-prompt-actions .local-button{margin:0}.vault-version-list{overflow-wrap:anywhere}.catalog-action-reason{margin:4px 0 12px;color:#52637a;font-size:13px;line-height:1.45}.details-button:disabled,.local-button:disabled{opacity:.62;cursor:not-allowed}

/* Property-only saved submission receipt and recovery controls. */
.property-handoff{flex:none;max-height:36dvh;overflow:auto;padding:8px 16px;border-top:1px solid #d4dce5;background:#f8fafc;overflow-wrap:anywhere;font-size:14px}
.property-handoff[hidden]{display:none}
.property-handoff>p{margin:6px 0;white-space:pre-wrap}
.property-handoff-photos{display:flex;flex-wrap:wrap;gap:6px}
.property-handoff-photos img{display:block;border-radius:5px;max-width:100%}
