.mar-admin,.mar-dialog,.mar-stage,.mar-launcher,.mar-item-button{font-family:Inter,Arial,sans-serif;box-sizing:border-box;color:#242920;line-height:1.5}
.mar-admin *,.mar-dialog *,.mar-stage *{box-sizing:border-box}.mar-admin{max-width:1100px;margin:20px auto 60px;padding:24px}.mar-admin h1{font-size:clamp(28px,3vw,42px);letter-spacing:-1.4px;margin:12px 0}.mar-back{color:#555e50;text-decoration:none}.mar-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#92713c;margin:12px 0}.mar-muted{font-size:13px;color:#72786e;line-height:1.7}.mar-admin-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:30px;margin-top:30px}.mar-admin-preview,.mar-form{background:#fff;border:1px solid #e5e7df;border-radius:22px;padding:25px}.mar-admin-preview>img{width:100%;height:300px;object-fit:contain;display:block;margin-bottom:20px}.mar-form label:not(.mar-check){display:block;font-weight:700;font-size:14px;margin:12px 0}.mar-form label span{display:block;color:#82877c;font-weight:400;font-size:12px}.mar-form input[type=file],.mar-form input[type=number]{display:block;width:100%;min-height:46px;border:1px solid #dfe2d7;border-radius:10px;background:#fafbf8;color:#242920;padding:12px;font-size:14px}.mar-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;margin:22px 0;cursor:pointer}.mar-check input{width:18px;height:18px;min-width:18px;margin:2px 0;appearance:auto;accent-color:#334a34}.mar-button,.mar-secondary{font:600 13px/1.4 Inter,Arial,sans-serif;cursor:pointer;border:0;border-radius:12px;min-height:45px;padding:13px 20px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px}.mar-button{background:#283629;color:#fff}.mar-secondary{background:#edf0e9;color:#394335}.mar-button:disabled,.mar-secondary:disabled{opacity:.45;cursor:wait}.mar-button:focus-visible,.mar-secondary:focus-visible,.mar-close:focus-visible,.mar-menu-card:focus-visible,.mar-launcher:focus-visible{outline:3px solid #ae8643;outline-offset:3px}.mar-notice{background:#edf5e9;color:#31532c;padding:14px 20px;border-radius:12px;margin:15px 0}.mar-error{background:#fff0eb;color:#973b2a}.mar-notice p{margin:4px 0}.mar-dialog{border:1px solid #e5e7df;border-radius:26px;padding:0;background:#fafbf8;width:min(860px,calc(100% - 30px));max-height:92dvh;margin:auto;box-shadow:0 25px 100px #0003;overflow:auto}.mar-dialog::backdrop{background:#121910b8;backdrop-filter:blur(10px)}.mar-dialog[open]{animation:mar-enter .25s ease-out}.mar-head{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;padding:24px 28px 14px}.mar-head h2{font:500 clamp(23px,3vw,32px)/1.15 Inter,Arial,sans-serif;letter-spacing:-.9px;margin:6px 0 8px}.mar-head .mar-eyebrow{margin:2px 0 12px}.mar-close{border:1px solid #dde2d6;background:#fff;border-radius:50%;height:42px;min-width:42px;font:26px/1 Arial;cursor:pointer;color:#283629}.mar-stage{width:100%;min-width:0;padding:0 20px 20px;text-align:center}.mar-viewport{height:clamp(250px,48vh,470px);border-radius:20px;background:radial-gradient(ellipse at 50% 90%,#e5e9db,transparent 65%),#f4f6ef;position:relative;overflow:hidden}.mar-viewport model-viewer{display:block;width:100%;height:100%;--poster-color:transparent;--progress-bar-color:#9a7a41;--progress-bar-height:3px}.mar-status{color:#65705e;font-size:13px;min-height:40px;margin:14px 0 8px}.mar-tools{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.mar-scale{color:#7b8275;font-size:11px;margin:12px 0 0;line-height:1.6}.mar-empty{padding:45px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;max-width:440px;margin:auto}.mar-empty h3{font-size:23px;letter-spacing:-.5px;margin:16px 0 8px}.mar-empty p{font-size:13px;color:#78816f;line-height:1.7}.mar-cube{font-size:58px;line-height:1;color:#a8874e}.mar-launcher{position:fixed;z-index:9998;right:18px;bottom:calc(100px + env(safe-area-inset-bottom));border:1px solid #ffffff40;border-radius:50px;padding:13px 19px;background:#283629;color:white;box-shadow:0 8px 30px #18271330;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;cursor:pointer}.mar-launcher span{font-size:24px;line-height:1}.mar-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:15px 28px 28px}.mar-menu-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;border:1px solid #e0e5d8;border-radius:16px;padding:12px;background:#fff;cursor:pointer;overflow:hidden;color:#273524;font-family:inherit}.mar-menu-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.mar-menu-card strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.mar-menu-card span{font-size:11px;color:#7a825e}.mar-item-button{display:block;border:1px solid #d3dec7;border-radius:9px;background:#f2f5ed;font-size:11px;color:#3e5632;padding:7px 11px;margin:8px 0;cursor:pointer;position:relative;z-index:2}.mar-stage [hidden],.mar-dialog [hidden]{display:none!important}#sc-ar-panel[hidden]{display:none!important}#sc-ar-panel{width:100%;padding-top:48px;min-height:420px}#sc-ar-panel .mar-viewport{height:310px}#sc-ar-panel .mar-stage{padding:0 12px 12px}#sc-ar-panel .mar-status{font-size:12px}#sc-ar-panel .mar-tools{gap:6px}#sc-ar-panel .mar-button,#sc-ar-panel .mar-secondary{padding:10px 12px;font-size:11px}.sc-photo-tabs button[data-photo=ar]{white-space:nowrap}.sc-photo-tabs{flex-wrap:wrap!important}
@keyframes mar-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.mar-admin{padding:10px}.mar-admin-grid{grid-template-columns:1fr;gap:15px}.mar-admin-preview>img{height:190px}.mar-form,.mar-admin-preview{padding:20px}.mar-dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:22px}.mar-head{padding:22px 18px 12px}.mar-stage{padding:0 12px 18px}.mar-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 15px 20px;gap:10px}.mar-menu-card{padding:9px}.mar-viewport{height:40dvh;min-height:245px}.mar-scale{font-size:10px}.mar-launcher{right:12px;font-size:12px;padding:11px 15px}.sc-photo-tabs{display:grid!important;grid-template-columns:1fr 1fr!important}.sc-photo-tabs button{min-height:32px!important}.sc-modal-photo:has(#sc-ar-panel:not([hidden])){padding-bottom:12px!important}#sc-ar-panel .mar-viewport{height:270px}#sc-ar-panel .mar-status{min-height:32px}}
@media(prefers-reduced-motion:reduce){.mar-dialog[open]{animation:none}}
/* Media controls remain in normal flow as the 3D viewer changes height. */
.sc-modal-photo{height:auto!important;padding-bottom:20px!important}
.sc-photo-tabs{position:static!important;width:100%;margin-top:14px;flex-shrink:0}
#sc-ar-panel{padding:0 0 12px;min-height:0}
@media(max-width:760px){.sc-modal-photo{min-height:410px!important;padding-top:58px!important}.sc-photo-tabs{display:grid!important;grid-template-columns:1fr 1fr!important}.sc-modal-photo:has(#sc-ar-panel:not([hidden])){min-height:0!important}}
