.home-scene-copy-inner{max-width:1160px}
.home-scene-copy-inner>p:not(.home-copy-kicker){color:#625a60;font-size:clamp(16px,1.7vw,20px);line-height:1.9;max-width:760px;margin:0 auto}
.app-role-gallery{margin:42px auto 0;text-align:center;direction:rtl}
.app-role-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:24px 18px;max-width:1120px;margin:0 auto}
.app-role-icon-button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;width:140px;min-height:174px;padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#211924;cursor:pointer;transition:transform .18s ease,filter .18s ease}
.app-role-icon-button img{display:block;flex:none;width:80px;height:80px;object-fit:contain;margin-bottom:4px}
.app-role-abbreviation{color:#8b7185;font:600 9px/1.4 Inter,sans-serif;letter-spacing:.11em;direction:ltr}
.app-role-name{display:block;max-width:100%;color:#211924;font-size:13px;font-weight:700;line-height:1.5;text-align:center;white-space:nowrap}
.app-role-description{display:block;max-width:138px;color:#726873;font-size:10px;font-weight:400;line-height:1.65;text-align:center}
.app-role-icon-button:hover{transform:translateY(-2px);filter:drop-shadow(0 5px 10px #4d33451a)}
.app-role-icon-button:focus-visible{outline:none}
.app-role-icon-button:focus-visible .app-role-name{color:#087d78;text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px){.app-role-grid{max-width:720px;gap:18px 12px}}
@media(max-width:650px){.app-role-gallery{margin-top:32px}.app-role-grid{gap:12px 8px}.app-role-icon-button{width:112px;min-height:158px;padding:6px 2px;gap:4px}.app-role-icon-button img{width:74px;height:74px}.app-role-name{font-size:12px}.app-role-description{font-size:9px}}
@media(max-width:360px){.app-role-icon-button{width:96px;min-height:150px}.app-role-icon-button img{width:70px;height:70px}}
@media(prefers-reduced-motion:reduce){.app-role-icon-button{transition:none!important}.app-role-icon-button:hover{transform:none}}
.scene .odoo-app-node{width:164px;min-height:80px}
.scene .odoo-app-node img{width:50px;height:50px;padding:0;background:transparent;border-radius:0;object-fit:contain}

/* Keep only the second-scene window connector hidden; first-scene React Flow arteries remain visible. */
.app-window-connector{display:none!important}
/* Render the real POS cashier inside its existing in-page app window. */
.app-window.app-window-pos-mode{position:relative}
.app-window.app-window-pos-mode .app-window-body,.app-window.app-window-pos-mode .app-window-footer{display:none!important}
.app-window-pos-frame{position:absolute;z-index:4;inset:73px 0 0;width:100%;height:calc(100% - 73px);border:0;background:#fff}

/* Slightly enlarge the first-scene footer label and drag hint. */
.scene-caption{font-size:11px!important}
.scene-caption span{font-size:10px!important}

.app-role-grid{max-width:1180px;gap:26px 22px}
.app-role-icon-button{min-height:158px}
.sco-catalog-state{grid-column:1/-1;color:#756875;font-size:14px}
.sco-live-window-layer{position:fixed;z-index:99999;inset:0;background:#17121b45;display:grid;place-items:center;padding:16px}
.sco-live-window{position:relative;display:flex;flex-direction:column;width:min(760px,calc(100vw - 32px));height:min(620px,calc(100vh - 32px));min-width:min(340px,calc(100vw - 32px));min-height:240px;resize:both;overflow:hidden;border:1px solid #d8cbd5;border-radius:20px;background:#f6f3f4;box-shadow:0 24px 90px #17121b45}
.sco-live-window.is-maximized{position:fixed;inset:16px;width:auto;height:auto;resize:none}
.sco-live-window.is-minimized{height:70px;min-height:70px;resize:none;align-self:end}
.sco-live-window.is-minimized .sco-live-window-body{display:none}
.sco-live-window-bar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:12px 16px;color:#fff;background:#211924;cursor:grab;touch-action:none}
.sco-live-window-bar:active{cursor:grabbing}
.sco-live-window-identity{display:flex;align-items:center;gap:12px;min-width:0}
.sco-live-window-identity img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:#fff}
.sco-live-window-labels{display:grid;gap:4px}
.sco-live-window-labels small{color:#11c6ba;font:700 10px/1.3 Inter,sans-serif;letter-spacing:.1em}
.sco-live-window-labels strong{font-size:20px}
.sco-live-window-controls{display:flex;gap:6px}
.sco-live-window-controls button{width:36px;height:36px;border:1px solid #ffffff46;border-radius:9px;background:#ffffff0b;color:#fff;font:inherit;font-size:20px;cursor:pointer}
.sco-live-window-controls button:hover{background:#ffffff20}
.sco-live-window-body{flex:1;overflow:auto;padding:22px 26px;direction:rtl}
.sco-preview-description{margin:0 0 18px;color:#5f5360;font-size:15px;line-height:1.8}
.sco-preview-loading,.sco-preview-empty{color:#827480;font-size:14px;line-height:1.8}
.sco-published-group{margin:18px 0}
.sco-published-group>h3{margin:0 0 12px;color:#211924;font-size:17px}
.sco-development-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 14px;margin:10px 0;padding:14px;border:1px solid #e3d7e0;border-radius:14px;background:#fff}
.sco-development-card>img{grid-row:span 4;width:96px;height:76px;object-fit:cover;border-radius:9px}
.sco-development-card h3{margin:0;color:#211924;font-size:16px}
.sco-development-app{color:#008f8a;font-size:11px}
.sco-development-card p{margin:2px 0;color:#716571;font-size:13px;line-height:1.7}
.sco-development-action{justify-self:start;margin-top:6px;padding:8px 13px;border:0;border-radius:9px;background:#211924;color:#fff;font:inherit;cursor:pointer}
.sco-pos-product{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:4px 12px;padding:11px 0;border-top:1px solid #e5dce3}
.sco-pos-product img{grid-row:span 2;width:56px;height:56px;object-fit:cover;border-radius:8px;background:white}
.sco-pos-product strong{color:#211924}
.sco-pos-product span{color:#087d78;font-size:13px}
.sco-pos-product small{grid-column:2/-1;color:#8a7988;font-size:11px}
@media(max-width:600px){.app-role-grid{gap:12px 8px}.app-role-icon-button{width:108px;min-height:140px}.app-role-icon-button img{width:72px;height:72px}.sco-live-window-layer{padding:8px}.sco-live-window{width:calc(100vw - 16px);height:min(76vh,620px);min-width:0;min-height:260px}.sco-live-window-bar{min-height:64px;padding:8px 10px}.sco-live-window-identity img{width:40px;height:40px}.sco-live-window-labels strong{font-size:16px}.sco-live-window-controls button{width:32px;height:32px}.sco-live-window-body{padding:16px}.sco-pos-product{grid-template-columns:50px 1fr}.sco-pos-product img{width:44px;height:44px}.sco-pos-product span,.sco-pos-product small{grid-column:2}}
@media(prefers-reduced-motion:reduce){.app-role-icon-button{transition:none!important}}

/* Shared minimum size for all in-page app previews. */
.sco-live-window{min-width:min(260px,calc(100vw - 32px));min-height:200px}
@media(max-width:600px){.sco-live-window{min-height:200px}}
/* Match the default and minimum size of the native Odoo app window. */
.sco-live-window{width:min(520px,calc(100vw - 32px));height:min(430px,calc(100vh - 32px));min-width:min(260px,calc(100vw - 32px));min-height:200px}
@media(max-width:600px){.sco-live-window{width:calc(100vw - 32px);height:min(430px,calc(100vh - 32px));min-width:min(260px,calc(100vw - 32px));min-height:200px}}
/* The native Odoo window layer follows the document, so its windows can be placed anywhere on the page. */
.app-window-layer{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;height:100vh!important;overflow:visible!important}
.sco-live-window{z-index:100000}

/* Shared window chrome: gallery previews use the same title bar and controls as live Odoo windows. */
.sco-live-window-layer{background:transparent;pointer-events:none}
.sco-live-window{pointer-events:auto;z-index:100000;resize:none;margin:0}
.sco-live-window.is-minimized .app-window-footer{display:none}
.sco-live-window.is-maximized{z-index:100001}
.sco-resize-handle{position:absolute;z-index:4;display:block;touch-action:none}
.sco-resize-n,.sco-resize-s{left:12px;right:12px;height:8px;cursor:ns-resize}
.sco-resize-n{top:-3px}.sco-resize-s{bottom:-3px}
.sco-resize-e,.sco-resize-w{top:12px;bottom:12px;width:8px;cursor:ew-resize}
.sco-resize-e{right:-3px}.sco-resize-w{left:-3px}
.sco-resize-ne,.sco-resize-se,.sco-resize-sw,.sco-resize-nw{width:15px;height:15px}
.sco-resize-ne{top:-3px;right:-3px;cursor:nesw-resize}
.sco-resize-se{right:-3px;bottom:-3px;cursor:nwse-resize}
.sco-resize-sw{bottom:-3px;left:-3px;cursor:nesw-resize}
.sco-resize-nw{top:-3px;left:-3px;cursor:nwse-resize}
.sco-resize-se:after{content:"";position:absolute;right:3px;bottom:3px;width:8px;height:8px;border-right:2px solid #8b7185;border-bottom:2px solid #8b7185;opacity:.7}
.app-role-grid{gap:24px 18px}
.app-role-icon-button{width:160px;min-height:176px;gap:7px}
.app-role-icon-button img{width:82px;height:82px;margin-bottom:2px}
.app-role-name{font-size:15px;line-height:1.55}
.app-role-description{max-width:158px;color:#554a55;font-size:12px;line-height:1.75;font-weight:500;white-space:normal}
@media(max-width:650px){.app-role-grid{gap:14px 8px}.app-role-icon-button{width:138px;min-height:164px}.app-role-icon-button img{width:76px;height:76px}.app-role-name{font-size:14px}.app-role-description{font-size:11px}}
.sco-live-window{border-color:#bdaeba;border-radius:18px;background:#f4f0f3;box-shadow:0 35px 100px #000b}
.sco-live-window.is-minimized{height:73px;min-height:73px}
