/* Shared review surface: the live stage and sheet occupy separate rows. */
#sample-review{--sr-border:#e4e5e9;--sr-yellow:#ffd620;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;height:min(820px,88dvh);min-height:520px;margin:20px 0 30px;background:#fff;color:#171a20;border:1px solid var(--sr-border);border-radius:14px;overflow:hidden;box-shadow:0 4px 20px #14223708;position:relative}
#sample-review [hidden]{display:none!important}#sample-review *{box-sizing:border-box}#sample-review svg{width:23px;height:23px;flex:none}#sample-review button{font:inherit;cursor:pointer;color:inherit}#sample-review button:disabled{opacity:.45;cursor:default}#sample-review button:focus-visible,#sample-review select:focus-visible{outline:2px solid #af8900;outline-offset:2px}#sample-review h2:before{display:none!important}
.sr-top{display:flex;align-items:center;gap:14px;padding:10px 16px;border-bottom:1px solid var(--sr-border);min-height:45px}.sr-top strong{font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sr-top>a{display:flex;color:inherit}.sr-top>svg{width:16px;height:16px}.sr-top>button{margin-left:auto;border:0;background:none;display:flex;padding:2px}.sr-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:12px;min-height:48px}.sr-single-picker{width:180px;max-width:45%;border:1px solid var(--sr-border);border-radius:7px;background:#fff;padding:7px 10px;font:inherit;font-size:12px;color:#222}.sr-modes,.sr-orientation{display:flex;gap:3px;background:#f0f1f3;border-radius:7px;padding:2px}.sr-modes{margin:auto}.sr-modes button,.sr-orientation button{display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:6px;background:none;font-size:12px;padding:7px 15px;white-space:nowrap}.sr-orientation svg{width:17px!important;height:17px!important}.sr-modes button[aria-pressed=true],.sr-orientation button[aria-pressed=true]{background:var(--sr-yellow);font-weight:600}.sr-viewports{min-height:0;background:#161a1d}.sr-grid{height:100%;display:grid;grid-template-columns:1fr;gap:2px;margin:0!important}.sr-comparing .sr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sr-comparing.sr-stacked .sr-grid{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
#sample-review .sample-model{position:relative;height:100%;min-height:0;min-width:0;border:0;border-radius:0;padding:0;margin:0;background:#161a1d;overflow:hidden}#sample-review .sample-model iframe{display:block;width:100%;height:100%!important;border:0;border-radius:0;margin:0;background:#171a1d;overscroll-behavior:none;touch-action:none}#sample-review .sample-model.sr-selected{outline:2px solid var(--sr-yellow);outline-offset:-2px}.sr-card-chrome{position:absolute;top:8px;left:10px;right:10px;display:flex;align-items:flex-start;gap:8px;color:white;z-index:2;pointer-events:none}.sr-card-chrome>*{pointer-events:auto}.sr-model-name{font-size:12px;padding:7px 10px;background:#ffffff0d;border:1px solid #ffffff30;border-radius:7px}.sr-full{display:flex;padding:5px!important;border:1px solid #ffffff30;border-radius:7px;background:#ffffff12;margin-left:auto;color:white!important}.sr-full svg{width:19px!important;height:19px!important}.sr-chosen{display:none;position:absolute;top:33px;left:0;color:#222;background:var(--sr-yellow);font-size:9px;padding:3px 6px;border-radius:5px}.sr-comparing .sr-selected .sr-chosen{display:block}.sr-comparing .sr-model-name{display:none}.sr-slot-picker{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px}.sr-slot-picker select{min-width:0;width:110px;max-width:100%;color:white;background:#25292c;border:1px solid #ffffff30;border-radius:6px;font:inherit;padding:5px}.sr-active{padding:6px 12px;font-size:11px;color:#69707b;background:#f2f3f5;min-height:26px}.sr-active:empty{display:none}.sr-dock{display:flex;justify-content:center;align-items:center;min-height:65px;padding:8px 12px;background:#fff;border-top:1px solid var(--sr-border);gap:0}.sr-dock button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:4px 24px;border:0;border-right:1px solid var(--sr-border);background:none;font-size:12px}.sr-dock button:last-child{border-right:0}.sr-dock button[aria-expanded=true]{color:#9a7500}.sr-empty-model{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#d0d5da;font-size:13px}.sr-empty-model svg{width:42px!important;height:42px!important;color:var(--sr-yellow)}
.sr-sheet{min-height:0;max-height:430px;padding:22px 22px 14px;position:relative;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -3px 12px #0001;animation:sr-rise .22s ease-out;overflow:auto}.sr-panel-open{grid-template-rows:auto auto minmax(170px,1fr) auto 0 minmax(0,410px)!important}.sr-panel-open .sr-dock{visibility:hidden;min-height:0;padding:0;overflow:hidden}.sr-handle{position:absolute;top:7px;left:calc(50% - 17px);height:4px;width:34px;border-radius:4px;background:#ccd0d5}.sr-sheet-close{position:absolute;top:12px;right:14px;font-size:25px!important;border:0;background:none;line-height:1;padding:3px!important}.sr-sheet h2{margin:0;font-size:20px!important}.sr-sheet-description{font-size:12px;color:#777;margin:4px 0 12px}.sr-sheet-model{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--sr-border);border-radius:8px;margin-bottom:10px}.sr-sheet-model svg{color:#96533c}.sr-sheet-model select{width:100%;min-width:0;border:0;background:white;color:#222;font:inherit;font-size:13px;outline-offset:4px}.sr-sheet-content{min-height:0}.sr-material-tabs{display:flex;background:#f0f1f3;border-radius:8px;margin:8px 0}.sr-material-tabs button{width:50%;padding:8px;border:0;border-radius:8px;background:none;font-size:13px}.sr-material-tabs button[aria-pressed=true]{background:var(--sr-yellow);font-weight:600}.sr-material-card{border:1px solid var(--sr-border);border-radius:8px;padding:12px}.sr-material-enabled{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.sr-material-enabled input{width:20px;height:20px;accent-color:var(--sr-yellow)}.sr-color{display:grid;grid-template-columns:1fr 34px 90px;align-items:center;gap:8px;font-size:12px;margin:10px 0}.sr-color input[type=color]{width:34px;height:34px;padding:2px;border:1px solid #aaa;border-radius:7px;background:#fff}.sr-color input[type=text]{width:100%;min-width:0;border:1px solid var(--sr-border);border-radius:6px;padding:7px;font:inherit}.sr-range{display:grid;grid-template-columns:110px minmax(50px,1fr) 28px;align-items:center;gap:8px;font-size:12px;margin:12px 0}.sr-range input{width:100%;min-width:0;accent-color:var(--sr-yellow)}.sr-advanced{margin-top:10px;background:#f4f5f7;border:1px solid var(--sr-border);border-radius:8px;padding:10px 12px;font-size:12px}.sr-advanced summary{cursor:pointer;font-weight:600}.sr-advanced>label{margin-top:12px}.sr-advanced select{width:100%;padding:8px;background:#fff;border:1px solid var(--sr-border);border-radius:6px}.sr-sheet-footer{display:flex;gap:10px;background:#fff;padding-top:12px}.sr-sheet-footer button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;border:1px solid #d4d7dc;border-radius:8px;background:white;padding:12px;font-size:13px}.sr-sheet-footer [data-sheet-done]{background:var(--sr-yellow);border-color:var(--sr-yellow);font-weight:600}
#sample-review .sample-comments{border:0;margin:0;padding:0;background:none}#sample-review .sample-comments>summary{display:none}#sample-review .sample-comments-body{padding:0}#sample-review [data-comment-list]{max-height:160px;overflow:auto}#sample-review [data-comment-list]>.muted{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100px;font-size:12px;color:#8a8e96;text-align:center}#sample-review [data-comment-list]>.muted:before{content:'•••';display:grid;place-items:center;width:42px;height:36px;border:2px solid #a3a6ad;border-radius:50%;font-size:18px;margin-bottom:10px}#sample-review [data-comment-form]{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}#sample-review [data-comment-form]>.field:first-child{grid-column:1/-1;margin:0}#sample-review [data-comment-form]>.field:first-child>span{display:none}#sample-review [data-comment-form] textarea{width:100%;min-height:70px;padding:10px;border:1px solid var(--sr-border);border-radius:8px;font:inherit;font-size:12px}#sample-review [data-comment-form]>small{display:none}#sample-review .sr-attach{position:relative;font-size:12px;margin:0}#sample-review .sr-attach span{display:flex;gap:7px;align-items:center}#sample-review .sr-attach input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}#sample-review [data-comment-form] button[type=submit]{padding:10px;border:0;border-radius:8px;background:var(--sr-yellow);font-size:12px;margin:0}#sample-review .sample-attachment-preview,#sample-review .form-error{grid-column:1/-1}#sample-review .sample-comment{padding:10px 0;border-bottom:1px solid var(--sr-border);font-size:12px}#sample-review .sample-comment time{font-size:10px;float:right;color:#999}#sample-review .sample-comment-image{max-height:160px;max-width:100%;object-fit:contain}
#sample-review:fullscreen{width:100%;height:100%;max-height:none;border-radius:0;margin:0}.sr-heading{margin-bottom:12px}.sr-heading h1{font-size:26px!important}.sr-heading p{font-size:12px;color:var(--muted)}
@media(min-width:701px){.sr-sheet{padding-left:max(22px,calc((100% - 650px)/2));padding-right:max(22px,calc((100% - 650px)/2))}.sr-panel-open{height:min(1050px,96dvh)!important;grid-template-rows:auto auto minmax(200px,1fr) auto 0 minmax(0,400px)!important}}
@media(max-width:700px){#sample-review{height:85dvh;min-height:560px;margin:12px 0;border-radius:12px}.sr-top{padding:10px;gap:10px}.sr-top strong{font-size:13px}.sr-toolbar{padding:7px;gap:6px}.sr-modes button{padding:7px 12px;font-size:11px}.sr-comparing .sr-modes{margin:0}.sr-orientation button{padding:7px 5px;font-size:10px;gap:3px}.sr-orientation svg{width:14px!important;height:14px!important}.sr-single-picker{font-size:11px;padding:7px;width:145px}.sr-dock{padding:9px 0;min-height:70px}.sr-dock button{flex:1;flex-direction:column;gap:5px;padding:2px;font-size:10px;min-width:0}.sr-dock svg{width:23px!important;height:23px!important}.sr-card-chrome{top:6px;left:6px;right:6px;gap:4px}.sr-slot-picker{font-size:9px;gap:3px;max-width:calc(100% - 26px)}.sr-slot-picker select{width:75px;padding:4px;font-size:9px}.sr-full{padding:3px!important}.sr-full svg{width:15px!important;height:15px!important}.sr-comparing:not(.sr-stacked) .sr-slot-picker>span{display:none}.sr-model-name{font-size:10px;padding:5px 8px}.sr-sheet{padding:22px 14px 12px;max-height:440px}.sr-panel-open{height:95dvh!important;grid-template-rows:auto auto minmax(170px,1fr) auto 0 minmax(0,410px)!important}.sr-sheet h2{font-size:18px!important}.sr-sheet-description{font-size:11px}.sr-sheet-model{padding:7px 9px}.sr-range{grid-template-columns:96px minmax(45px,1fr) 25px}.sr-material-card{padding:10px}.sr-sheet-footer button{padding:11px 7px;font-size:12px}}
@keyframes sr-rise{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.sr-sheet{animation:none}}
#sample-review{scroll-margin-top:12px}.sr-sheet{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden}.sr-sheet-content{overflow:auto;min-height:0;padding-right:2px}.sr-sheet-footer{margin-top:0;min-height:52px}.sr-sheet h2{line-height:1.3}.sr-sheet-description{line-height:1.4}.sr-sheet-model select{min-height:0!important;height:28px;padding:0!important}.sr-sheet-model{min-height:40px;padding:5px 9px}.sr-color input[type=text]{min-height:0!important;height:32px!important}.sr-material-enabled{margin:0!important}.sr-material-card{padding:8px 10px}.sr-color{margin:8px 0}.sr-range{margin:8px 0}.sr-material-tabs{margin:0 0 8px}.sr-material-tabs button{min-height:32px;padding:6px}.sr-sheet-footer button{min-height:40px;padding:9px}.sr-sheet-description{margin:4px 0 8px}.sr-sheet-model{margin-bottom:8px}.sr-sheet[data-panel=comments]{grid-template-rows:auto auto auto minmax(0,1fr)}
.sr-toolbar-anchor{min-width:0}.sr-gesture,.sr-exit-screen,.sr-scroll-guide{display:none}.sr-fullscreen .sr-exit-screen{display:block!important;margin-left:10px!important;font-size:28px!important}.sr-fullscreen .sr-top>a{display:flex}.sr-fullscreen .sr-top>a:after{content:'กลับหน้าเว็บ';font-size:12px;white-space:nowrap;margin-left:6px}.sr-fullscreen .sr-top>strong,.sr-fullscreen .sr-top>svg{display:none}#sample-review.sr-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);background:#fff}.sr-fullscreen .sr-full{display:none!important}.sr-fullscreen .sr-toolbar{position:static!important;width:auto!important}.sr-fullscreen.sr-panel-open{height:100dvh!important}
@media(max-width:700px){.sr-toolbar{flex-wrap:wrap;background:#fff}.sr-gesture{display:flex;flex:0 0 100%;gap:3px;border:1px solid #e4e5e9;border-radius:7px;padding:2px}.sr-gesture button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;border:0;border-radius:5px;background:none;font-size:11px;padding:7px}.sr-gesture svg{width:16px!important;height:16px!important}.sr-gesture button[aria-pressed=true]{background:#ffd620;font-weight:600}.sr-toolbar.sr-toolbar-floating{position:fixed;top:env(safe-area-inset-top,0px);z-index:1500;box-shadow:0 4px 12px #0002;border:1px solid #e4e5e9;border-radius:0 0 9px 9px}.sr-scroll-touch .sample-model iframe{pointer-events:none!important}.sr-scroll-touch .sample-model{touch-action:pan-y pinch-zoom}.sr-scroll-touch .sr-scroll-guide{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;padding:12px 6px 18px;background:linear-gradient(transparent,#101416ee);color:#fff;font-size:12px;text-align:center;pointer-events:none;z-index:1;line-height:1.6}.sr-scroll-guide>span{font-size:24px}.sr-scroll-guide small{font-size:10px;color:#ddd}.sr-fullscreen .sr-gesture{display:none}.sr-fullscreen .sr-top{min-height:40px}.sr-fullscreen .sr-toolbar .sr-modes,.sr-fullscreen .sr-orientation{display:none!important}.sr-fullscreen .sr-single-picker{max-width:none;width:100%}.sr-fullscreen .sr-active{display:none}.sr-fullscreen .sr-viewports{min-height:0}.sr-fullscreen.sr-panel-open{grid-template-rows:auto auto minmax(130px,1fr) auto 0 minmax(0,45dvh)!important}}
#sample-review:not(.sr-fullscreen) .sr-exit-screen{display:none!important}

/* One scroll surface for the sheet; keep actions outside it. */
#sample-review .sr-sheet-content{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 6px 12px 0}
#sample-review .sr-sheet .shop-palette-list{max-height:none;overflow:visible}
#sample-review .sr-sheet-footer{position:relative;z-index:1;align-self:stretch;margin:0;padding:10px 0 0;border:0;border-top:1px solid var(--sr-border);min-height:0;background:#fff}
#sample-review .sr-sheet-footer button{margin:0;min-width:0}

/* Keep hidden fullscreen rows from shifting the dock and sheet into other tracks. */
#sample-review>.sr-top{grid-row:1}#sample-review>.sr-toolbar-anchor{grid-row:2}#sample-review>.sr-viewports{grid-row:3}#sample-review>.sr-active{grid-row:4}#sample-review>.sr-dock{grid-row:5}#sample-review>.sr-sheet{grid-row:6}

.container.unified-page.sample-review-page{padding-top:12px}.sample-review-page>#sample-review:not(.sr-fullscreen){margin-top:0}

#sample-review.sr-public{margin:0;width:100%;max-width:100%;height:min(780px,85dvh)}
#sample-review.sr-public .sr-single-picker{max-width:100%;width:min(360px,100%)}
#sample-review.sr-public .sr-top strong{min-width:0;flex:1}
