/* AIVELI — warm neutral editorial interface, v15
   Compact catalog tiles. No fixed-width promotional card inside the narrow sidebar. */
:root{
 --bg:#f2f0ed;--panel:#f8f7f5;--panel2:#fffdfb;
 --ink:#2c2927;--muted:#817d77;--line:rgba(61,53,47,.13);
 --soft:0 9px 25px rgba(45,37,30,.065);
 --shadow:0 18px 55px rgba(45,37,30,.13);
}
.library,.rail{background:#faf9f7!important;border-color:#e8e5e0!important}
.library-scroll{container-type:inline-size;container-name:aiveli-library;min-width:0}
.library-scroll .section-head,.library-scroll .catalog{min-width:0;max-width:100%}
.catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
.catalog>.cat-card{min-width:0!important;width:100%!important;max-width:100%!important;border:1px solid #ebe8e3!important;border-radius:13px!important;
 background:#fffdfa!important;box-shadow:0 5px 17px rgba(35,31,26,.05)!important;
 transition:border-color .22s,transform .22s,box-shadow .22s}
.catalog>.cat-card:hover{transform:translateY(-2px);border-color:#cfc5b9!important;box-shadow:0 11px 23px rgba(35,31,26,.10)!important}
.catalog>.cat-card:focus-visible{outline:2px solid #8c7865;outline-offset:3px}
.cat-thumb.icon-thumb{height:clamp(82px,9.5vw,112px);background:linear-gradient(154deg,#f8f7f4,#eae7e1)!important}
.cat-card-solution .cat-icon{max-width:96%;max-height:90%;object-fit:contain;filter:drop-shadow(0 8px 9px rgba(64,51,36,.12))}
.cat-card-solution .cat-copy b{font-size:12px;font-weight:620;line-height:1.28;letter-spacing:-.015em}
.cat-card-solution .cat-copy span{color:#817b73;font-size:9px;line-height:1.32}
.cat-card .cat-copy{padding:10px!important;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:auto}
.cat-card .cat-copy b{color:#36322f;overflow-wrap:break-word;word-break:normal}
@container aiveli-library (max-width:216px){
 .catalog{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .cat-card .cat-copy{padding:10px 11px!important}
 .cat-thumb.icon-thumb{height:109px}
}
.rail-item{color:#65605a!important}
.rail-item.active{background:#f0eeeb!important;color:#252320!important;box-shadow:inset 0 0 0 1px #dad5cc!important}
.rail-item:hover{background:#f4f1ed!important}
.rail,.library,.inspector{color:#373430}
.topbar,.inspector,.group{border-color:#e6e2dc!important}
.topbar .round-btn,.round-btn,.history-btn,.project-btn,.iconbtn,.action,.top-action-btn{
 border-color:#e0dbd3!important;background:#fffdfa!important;color:#36302a!important;
 box-shadow:0 2px 7px rgba(53,44,34,.035)!important}
.topbar .round-btn:hover,.round-btn:hover,.history-btn:hover,.project-btn:hover,.top-action-btn:hover{
 background:#f0ede8!important;border-color:#d1c9bd!important;color:#252321!important}
.topbar .round-btn.active,.round-btn.active,.history-btn.active,.action.active{background:#e5e0d8!important;color:#292521!important}
.modes button.active,.modes .selected,.scene-actions button.active{background:#302e2b!important;color:#fff!important;border-color:#302e2b!important}
.library-scroll button:not(.cat-card):focus-visible,.inspector button:focus-visible{outline:2px solid #a38d73;outline-offset:2px}
.embedded-visualizer .inspector{background:linear-gradient(150deg,#fffdfa,#f7f4f0)!important;color:#332f2a!important;
 border-color:#dfd7cd!important;box-shadow:-14px 20px 55px rgba(50,40,30,.14)!important}
.embedded-visualizer .inspector-top{background:#faf8f5!important;border-color:#e5dfd6!important}
.uce-inspector{width:100%;min-width:0;max-width:100%;color:#35302b;overflow-wrap:break-word}
.uce-object-head{padding:16px 0 15px;border-bottom:1px solid #e7e2dc}
.uce-object-head small{display:block!important;font-size:9px!important;color:#989088!important;letter-spacing:.12em;margin-bottom:7px}
.uce-object-head b{font-size:19px!important;font-weight:590;color:#2e2a26;letter-spacing:-.035em;line-height:1.24}
.uce-id{display:block;margin-top:7px;font-size:11px;line-height:1.5;color:#817b75}
.uce-inspector-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:15px 0}
.uce-inspector-actions button,.uce-action-export{font:550 11px/1.4 Inter,Arial,sans-serif;min-width:0;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.uce-action-main{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;
 background:#34312e!important;color:white!important;border:0!important;border-radius:10px;padding:13px 15px}
.uce-action-main:hover{background:#4b433b!important}
.uce-action-main span{font-size:17px}
.uce-action-sub{border:1px solid #ded8d0;background:#f6f3ee;color:#514b43;border-radius:10px;padding:11px 7px}
.uce-action-sub:hover{background:#ece7e0}
.uce-property-section{border-top:1px solid #e9e4de;padding:16px 0 14px}
.uce-property-title{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:620;color:#393530;margin-bottom:14px}
.uce-property-title span{font-size:10px;color:#a19a92}
.uce-property-section .model-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;font-size:11px}
.uce-property-section .model-meta span{color:#837d76}
.uce-property-section .model-meta b{max-width:139px;text-align:right;font-weight:570;color:#3d3731;overflow-wrap:anywhere}
.uce-action-export{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px;
 border:1px solid #ded8d0;background:#f7f4f0;color:#51483e;padding:10px 12px;border-radius:10px;margin-top:14px}
.uce-action-export:hover{background:#eee9e2}
.uce-property-warning{background:#f9f1e7;color:#7a6049;padding:9px 10px;border-radius:8px;font-size:11px}
.acs-3d-viewport{display:flex!important;flex-direction:column;min-width:0;min-height:180px;align-items:stretch;justify-content:stretch;background:#f2efea}
.acs-3d-canvas{flex:1;min-height:140px;width:100%;position:relative;overflow:hidden;border-radius:8px}
.acs-3d-part{padding:8px 12px;font-size:11px;text-align:center;color:#766e64;overflow-wrap:anywhere}
.aiveli-studio-open .acs-backdrop{background:rgba(33,29,25,.65)!important}
.aiveli-studio-open .acs-window{background:#faf9f7!important;border-color:#e9e5df!important;color:#332e29!important}
.aiveli-studio-open .acs-head h2,.aiveli-studio-open .acs-preview-top b,
.aiveli-studio-open .acs-section>b{color:#322c26!important}
.aiveli-studio-open .acs-head small,.aiveli-studio-open .acs-hint,.aiveli-studio-open .acs-note{color:#857d73!important}
.aiveli-studio-open .acs-mode,.aiveli-studio-open .acs-view-tabs{background:#eeebe6!important;border-color:#e3ded6!important}
.aiveli-studio-open .acs-mode button,.aiveli-studio-open .acs-view-tabs button{color:#776e65!important}
.aiveli-studio-open .acs-mode button.selected,.aiveli-studio-open .acs-view-tabs button.active{
 background:#fffdfa!important;color:#2d2a26!important;box-shadow:0 1px 5px rgba(58,49,39,.08)!important}
.aiveli-studio-open .acs-place{background:#312e2b!important;color:#fff!important;border-color:#312e2b!important}
.aiveli-studio-open .acs-place:hover{background:#484038!important}
.aiveli-studio-open .acs-export,.aiveli-studio-open .acs-cancel,
.aiveli-studio-open .acs-close{color:#51483d!important;background:#f7f4f0!important;border-color:#e0d9d1!important}
.aiveli-studio-open .acs-num input,.aiveli-studio-open .acs-num select,
.aiveli-studio-open .acs-num>select{color:#36312b!important;background:#faf8f5!important;border-color:#dfd9d1!important}
.aiveli-studio-open .acs-section{background:#fffdfa!important;border-color:#eae5de!important}
.aiveli-studio-open .acs-settings{scrollbar-color:#c7bbb0 transparent}
.aiveli-studio-open .acs-drag-handle{filter:saturate(.48)}
.aiveli-studio-open .acs-num input:focus,.aiveli-studio-open .acs-num select:focus{outline-color:#ac9880}
.acs-elevation-v2 .acs-elevation-shelf{cursor:move;touch-action:none}
.acs-elevation-v2 .acs-drag-handle{touch-action:none;cursor:ew-resize}
.acs-footer>[hidden]{display:none!important}
@media(max-width:680px){
 .library-scroll{padding:12px 9px 54px!important}
 .cat-thumb.icon-thumb{height:93px}
 .cat-card .cat-copy{padding:9px!important}
 .cat-card-solution .cat-copy b{font-size:11px}
 .uce-inspector-actions{gap:6px}
 .acs-3d-viewport{height:clamp(195px,40vh,288px)!important}
 .acs-3d-part{font-size:10px}
}
@media(max-width:375px){.catalog{gap:7px}.cat-card .cat-copy{padding:8px!important}}
@media(prefers-reduced-motion:reduce){.cat-card{transition:none!important;transform:none!important}}

/* AIVELI v18 — compact, scrollable inspector and two-column furniture gallery */
.embedded-visualizer .inspector{top:7px!important;bottom:7px!important;height:auto!important;max-height:calc(100dvh - 14px)!important;overflow:hidden!important;border-radius:15px!important}
.embedded-visualizer .inspector .inspector-scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:20px!important;scrollbar-width:thin}
.embedded-visualizer .library-scroll .catalog{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.embedded-visualizer .library-scroll .cat-card{min-width:0!important;max-width:100%!important;width:100%!important}
.embedded-visualizer .library-scroll .cat-card .cat-copy{padding:7px!important}
.embedded-visualizer .library-scroll .cat-card .cat-copy b{font-size:10px!important;overflow-wrap:break-word!important;word-break:normal!important}
.embedded-visualizer .library-scroll .cat-card .cat-thumb{height:81px!important}
@container aiveli-library (max-width:216px){.embedded-visualizer .library-scroll .catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.uce-action-align{grid-column:1/-1;border:1px solid #d5cec5!important;background:#f1ede8!important;border-radius:10px!important;padding:10px 12px!important;color:#3c3732!important;font-size:11px!important;cursor:pointer}
.uce-action-align:hover{background:#e6ded6!important}
@media(max-width:600px){.embedded-visualizer .inspector{top:3px!important;bottom:4px!important;max-height:calc(100dvh - 7px)!important}}
