body[data-gnook-studio="r8"]{overflow:auto!important;font-family:Arial,Helvetica,sans-serif;font-size:14px}body[data-gnook-studio="r8"] .gnook-viewport{display:block!important;width:100%!important;height:auto!important;min-height:100dvh;padding:16px;overflow:visible!important}body[data-gnook-studio="r8"] .gnook-stage{width:min(1840px,100%)!important;height:auto!important;min-height:calc(100dvh - 32px);margin:0 auto;padding:18px;transform:none!important;overflow:visible!important;border-radius:12px}body[data-gnook-studio="r8"] .gnook-stage::after{display:none}body[data-gnook-studio="r8"] .frame-corner{display:none}body[data-gnook-studio="r8"] .brand-block{position:relative!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;margin:0 0 16px;text-align:left;display:flex;align-items:center;gap:16px}body[data-gnook-studio="r8"] .brand-block img{max-width:190px;max-height:72px;object-fit:contain}body[data-gnook-studio="r8"] .brand-block .subtitle{font-size:18px}body[data-gnook-studio="r8"] .main-grid{position:relative!important;inset:auto!important;height:auto!important;display:grid!important;grid-template-columns:minmax(300px,390px) minmax(340px,1fr) minmax(260px,330px)!important;gap:16px;align-items:start}body[data-gnook-studio="r8"] .left-panel{height:clamp(600px,calc(100dvh - 200px),920px)!important;display:grid;grid-template-columns:138px minmax(0,1fr);min-width:0}body[data-gnook-studio="r8"] .category-rail{width:auto!important;min-width:0;padding:12px 7px;overflow-y:auto}body[data-gnook-studio="r8"] .category-button{font-size:13px;min-height:40px;line-height:1.3}body[data-gnook-studio="r8"] .customization-pane{min-width:0;min-height:0}body[data-gnook-studio="r8"] .customization-scroll{height:100%;padding:12px;overflow:auto}body[data-gnook-studio="r8"] .option-grid,body[data-gnook-studio="r8"] .option-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}body[data-gnook-studio="r8"] .option-card{height:136px!important;border-radius:7px;min-width:0}body[data-gnook-studio="r8"] .option-card canvas{width:100%;height:108px;object-fit:contain}body[data-gnook-studio="r8"] .option-label{font-size:12px!important;line-height:1.25!important;white-space:normal!important;opacity:1!important}body[data-gnook-studio="r8"] .option-collection{display:none}body[data-gnook-studio="r8"] .option-preview-status{font-size:11px;padding:10px;white-space:normal;text-align:center;color:var(--muted)}body[data-gnook-studio="r8"] .viewer-panel{height:clamp(650px,calc(100dvh - 200px),980px)!important;display:flex;flex-direction:column;position:relative;min-width:0;border:1px solid var(--line-soft);border-radius:10px;overflow:hidden}body[data-gnook-studio="r8"] .viewer-panel::before,body[data-gnook-studio="r8"] .viewer-glow,body[data-gnook-studio="r8"] .particle-field{display:none}body[data-gnook-studio="r8"] .viewer-scene{position:relative!important;inset:auto!important;flex:1 1 auto;min-height:320px;width:100%;height:auto!important;background:radial-gradient(ellipse at 50% 45%,rgba(113,48,215,.13),transparent 67%)}body[data-gnook-studio="r8"] #avatar-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;transform:none!important}body[data-gnook-studio="r8"] .viewer-controls{position:relative!important;inset:auto!important;height:auto!important;padding:12px;flex:0 0 auto}body[data-gnook-studio="r8"] .viewer-button{font-size:12px;padding:8px;min-width:0}body[data-gnook-studio="r8"] .rotation-row{display:flex;gap:6px}body[data-gnook-studio="r8"] .rotation-row>*{flex:1}body[data-gnook-studio="r8"] #renderer-status{font-size:12px;max-width:calc(100% - 20px)}body[data-gnook-studio="r8"] #renderer-status[data-state="ready"]{display:none!important}body[data-gnook-studio="r8"] .right-column{position:relative!important;top:0!important;height:auto!important;display:flex!important;flex-direction:column;gap:12px;min-width:0}body[data-gnook-studio="r8"] .right-card{height:auto!important;min-height:0;border-radius:9px;padding-bottom:12px;box-shadow:none}body[data-gnook-studio="r8"] .right-card h2{font-size:14px;letter-spacing:.035em}body[data-gnook-studio="r8"] .profile-crest{display:none!important}body[data-gnook-studio="r8"] .profile-body{display:block!important;padding:14px;height:auto}body[data-gnook-studio="r8"] .profile-info{width:100%;min-width:0}body[data-gnook-studio="r8"] .profile-name{font-size:17px;white-space:normal}body[data-gnook-studio="r8"] .progress-label{font-size:12px;line-height:1.4;gap:10px}body[data-gnook-studio="r8"] .view-all{font-size:11px}body[data-gnook-studio="r8"] .badge-row,body[data-gnook-studio="r8"] .trophy-row{display:block!important;height:auto!important;padding:10px 14px}body[data-gnook-studio="r8"] .saved-content{padding:12px;height:auto!important}body[data-gnook-studio="r8"] .saved-avatars{display:grid!important;grid-template-columns:1fr!important;gap:8px;max-height:300px;overflow-y:auto}body[data-gnook-studio="r8"] .saved-avatar{display:grid!important;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;position:relative;height:76px!important;padding:7px;text-align:left;width:100%;min-width:0}body[data-gnook-studio="r8"] .saved-avatar img,body[data-gnook-studio="r8"] .studio8-initials{position:relative!important;inset:auto!important;width:58px!important;height:58px!important;object-fit:contain;grid-column:1;grid-row:1/3;border-radius:5px}body[data-gnook-studio="r8"] .studio8-initials{display:grid;place-items:center;background:#171326;color:var(--gold-0);font-size:21px}body[data-gnook-studio="r8"] .saved-name,body[data-gnook-studio="r8"] .saved-level{position:relative!important;inset:auto!important;grid-column:2;overflow-wrap:anywhere;white-space:normal;font-size:13px;background:none!important;padding:0!important}body[data-gnook-studio="r8"] .saved-gender{display:none}body[data-gnook-studio="r8"] .saved-actions{margin-top:12px;gap:6px}body[data-gnook-studio="r8"] .action-button{font-size:12px;min-height:36px}body[data-gnook-studio="r8"] .bottom-nav{position:relative!important;inset:auto!important;margin-top:18px;display:flex;flex-wrap:wrap;height:auto!important;padding:10px;gap:8px}body[data-gnook-studio="r8"] .bottom-button{clip-path:none;border-radius:6px;min-height:44px;height:auto!important;font-size:14px;flex:1 1 140px;padding:10px}body[data-gnook-studio="r8"] .bottom-button svg{width:22px;height:22px}body[data-gnook-studio="r8"] .settings-button{width:42px;height:44px}.studio8-context{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line-soft);font-size:13px}.studio8-context strong{color:var(--gold-0);overflow-wrap:anywhere}.studio8-context span{color:var(--muted)}.studio8-views{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.studio8-button{padding:8px 11px;border:1px solid var(--line,#80602d);border-radius:6px;color:var(--text,#f5f1e8);background:#10121e;font:inherit;font-size:12px;cursor:pointer}.studio8-button[aria-pressed="true"]{border-color:var(--gold-1,#e6b849);color:var(--gold-0,#ffe29a)}.studio8-button:focus-visible{outline:2px solid #ffe29a;outline-offset:2px}.studio8-empty{color:var(--muted,#adb0bc);font-size:13px;line-height:1.5;margin:3px 0}.studio8-award{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid var(--line-soft,rgba(230,184,73,.15))}.studio8-award:last-child{border:0}.studio8-award strong{font-size:13px;color:var(--text,#f5f1e8)}.studio8-award span,.studio8-award p{font-size:12px;color:var(--muted,#adb0bc);margin:0;overflow-wrap:anywhere}.studio8-dialog{width:min(680px,calc(100vw - 30px));max-height:85dvh;overflow:auto;border:1px solid #b77a18;border-radius:10px;background:#090b14;color:#f5f1e8;padding:20px;font:14px/1.5 Arial,sans-serif}.studio8-dialog::backdrop{background:rgba(0,0,0,.8)}.studio8-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.studio8-dialog h2{font-size:20px;color:#ffe29a}.studio8-awards-full{margin-top:12px}@media(max-width:1150px){body[data-gnook-studio="r8"] .main-grid{grid-template-columns:minmax(290px,360px) minmax(0,1fr)!important}body[data-gnook-studio="r8"] .right-column{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}body[data-gnook-studio="r8"] .left-panel{grid-template-columns:120px minmax(0,1fr)}}@media(max-width:720px){body[data-gnook-studio="r8"] .gnook-viewport{padding:6px}body[data-gnook-studio="r8"] .gnook-stage{padding:10px}body[data-gnook-studio="r8"] .main-grid{display:flex!important;flex-direction:column}body[data-gnook-studio="r8"] .main-grid>*{width:100%}body[data-gnook-studio="r8"] .viewer-panel{order:-1;height:560px!important}body[data-gnook-studio="r8"] .left-panel{height:520px!important;grid-template-columns:120px minmax(0,1fr)}body[data-gnook-studio="r8"] .right-column{display:flex!important}body[data-gnook-studio="r8"] .brand-block{flex-wrap:wrap;gap:8px}body[data-gnook-studio="r8"] .bottom-button{flex-basis:120px}}

/* R8.2: viewport sizing and touch controls; approved colors and assets retained. */
html[data-gnook-sizing="r81"]{width:100%;min-width:0;transform:none!important;scale:none!important;zoom:1!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"]{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;overflow:auto!important;transform:none!important;scale:none!important;zoom:1!important;font-size:clamp(16px,.55vw,20px)!important;-webkit-text-size-adjust:100%;text-size-adjust:100%} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-viewport{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:100vh;min-height:100dvh;overflow:visible!important;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));transform:none!important;scale:none!important;zoom:1!important;--gnook-scale:1!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-viewport #gnook-stage{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:calc(100vh - 20px);min-height:calc(100dvh - 20px);margin:0!important;padding:clamp(12px,1vw,24px)!important;transform:none!important;translate:none!important;scale:none!important;zoom:1!important;overflow:visible!important;--studio-panel-height:clamp(560px,calc(100vh - 200px),1400px)} @supports(height:100svh){html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-viewport #gnook-stage{--studio-panel-height:clamp(560px,calc(100svh - 200px),1400px)}} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.brand-block{position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:auto!important;height:auto!important;min-height:64px;margin:0 0 16px!important;display:flex!important;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:wrap} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.brand-block img{width:clamp(140px,11vw,220px)!important;max-width:100%!important;height:auto!important;max-height:84px!important;object-fit:contain} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.main-grid{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;display:grid!important;grid-template-columns:clamp(330px,24vw,650px) minmax(340px,1fr) clamp(290px,20vw,500px)!important;gap:clamp(12px,1vw,24px)!important;align-items:start;min-width:0!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.main-grid>*{min-width:0!important;max-width:100%!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .left-panel{width:100%!important;height:var(--studio-panel-height)!important;min-height:0!important;grid-template-columns:clamp(108px,9.2vw,190px) minmax(0,1fr)!important;overflow:hidden!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .category-rail{position:relative!important;inset:auto!important;width:auto!important;height:100%!important;min-height:0!important;overflow:auto!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .customization-pane{position:relative!important;inset:auto!important;width:auto!important;min-width:0!important;height:100%!important;min-height:0!important;overflow:hidden!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage #customization-scroll{height:100%!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .category-button{min-height:44px!important;height:auto!important;font-size:clamp(14px,.6vw,18px)!important;line-height:1.35!important;white-space:normal!important;padding:8px 6px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .option-group-title{font-size:clamp(14px,.65vw,20px)!important;line-height:1.3!important;white-space:normal!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .option-grid,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .option-grid.five{grid-template-columns:repeat(auto-fit,minmax(min(92px,100%),1fr))!important;gap:8px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .option-card .option-label{font-size:clamp(13px,.6vw,18px)!important;line-height:1.25!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .viewer-panel{position:relative!important;inset:auto!important;width:100%!important;height:var(--studio-panel-height)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage #viewer-scene{position:relative!important;inset:auto!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:300px!important;overflow:hidden!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage #avatar-canvas{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;transform:none!important;scale:none!important;zoom:1!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .viewer-controls{position:relative!important;inset:auto!important;height:auto!important;width:100%!important;flex:0 0 auto!important;padding:12px!important;min-width:0!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-views{display:flex!important;flex-wrap:wrap!important;gap:8px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-button,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .viewer-button,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .small-button,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .action-button,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .speed-control button{min-height:44px!important;min-width:44px!important;font-size:clamp(14px,.6vw,18px)!important;line-height:1.25!important;white-space:normal!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .control-subrow{display:flex!important;flex-wrap:wrap!important;gap:8px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .control-subrow>*{min-width:0!important;flex:1 1 140px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .right-column{position:relative!important;inset:auto!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:12px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .right-card h2{font-size:clamp(15px,.65vw,20px)!important;line-height:1.35!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .profile-name{font-size:clamp(18px,.8vw,24px)!important;line-height:1.3!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .progress-label,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-empty,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-award strong,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .saved-name{font-size:clamp(14px,.6vw,18px)!important;line-height:1.45!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-context{font-size:clamp(14px,.65vw,20px)!important;flex:0 0 auto!important;flex-wrap:wrap!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.bottom-nav{position:relative!important;inset:auto!important;display:flex!important;flex-wrap:wrap!important;width:100%!important;height:auto!important;min-height:0!important;margin:16px 0 0!important;gap:8px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .bottom-button{font-size:clamp(14px,.7vw,20px)!important;min-height:48px!important;height:auto!important;flex:1 1 150px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .settings-button{min-width:48px!important;min-height:48px!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .live-3d-badge{display:none!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .view-all{min-height:36px!important;font-size:clamp(12px,.55vw,16px)!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage input:not([type="range"]),html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage select,html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage textarea{font-size:16px!important;max-width:100%!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .modal-backdrop{position:fixed!important;inset:0!important;z-index:1000!important;overflow:auto!important} html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .modal{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important} @media(max-width:1200px){html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.main-grid{grid-template-columns:minmax(300px,36%) minmax(0,1fr)!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .right-column{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .left-panel{grid-template-columns:112px minmax(0,1fr)!important}} @media(max-width:760px),(max-width:1050px) and (max-height:500px) and (pointer:coarse){html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.main-grid{grid-template-columns:minmax(0,1fr)!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .viewer-panel{order:-1!important;height:auto!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage #viewer-scene{flex:none!important;height:clamp(280px,48vh,540px)!important;height:clamp(280px,48svh,540px)!important;min-height:0!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .left-panel{height:clamp(420px,65vh,700px)!important;height:clamp(420px,65svh,700px)!important;grid-template-columns:108px minmax(0,1fr)!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .right-column{display:flex!important;grid-column:auto!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.brand-block{gap:8px!important;margin-bottom:10px!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .viewer-controls{padding:8px!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .studio8-views>*{flex:1 1 85px!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage .view-all{min-height:44px!important}html[data-gnook-sizing="r81"] body[data-gnook-studio="r8"] #gnook-stage>.bottom-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}}
