/* Native originals use the existing studio viewport; voxel mutation tools do not apply. */
body[data-native-studio] #sidebar .sidebar-scroll > :not(#nativeStudioPanel),
body[data-native-studio] #sidebar .panel-header,
body[data-native-studio] .viewport-toolbar > :not(#fitViewportBtn),
body[data-native-studio] #sidebar > .sidebar-footer { display:none !important; }
#nativeStudioPanel { padding:18px; display:grid; gap:16px; color:var(--text-primary,#ece5d9); }
#nativeStudioPanel h2 { font-size:23px; line-height:1.2; margin:0; }
#nativeStudioPanel p { line-height:1.5; margin:0; }
#nativeStudioPanel select { display:block; width:100%; margin-top:8px; padding:10px; background:#201d19; color:#ece5d9; border:1px solid #504536; border-radius:4px; }
#nativeStudioPanel [data-parts] { display:grid; gap:8px; padding:12px 0; }
#nativeStudioPanel [data-atlas] { width:100%; image-rendering:pixelated; margin-top:12px; background:repeating-conic-gradient(#333 0% 25%,#555 0% 50%) 0/16px 16px; }
#nativeStudioPanel [data-downloads] { display:flex; flex-wrap:wrap; gap:12px; padding-top:12px; }
#nativeStudioPanel a { color:#ffb767; }
.native-studio-kicker { color:#ffb767; font-size:11px; letter-spacing:.12em; }
.native-studio-note { color:#b8ac9a; font-size:12px; }
[data-surface-findings] { overflow-wrap:anywhere; }
/* Native entity journey. The original gallery data remains a separate version. */
.native-editor { display:grid; gap:14px; }
.native-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
#nativeStudioPanel button { padding:9px 10px; border:1px solid #61503b; border-radius:5px; background:#29231b; color:#eee5d7; cursor:pointer; font:inherit; font-size:12px; }
#nativeStudioPanel button:disabled { opacity:.45; cursor:default; }
#nativeStudioPanel button[aria-current="step"], #nativeStudioPanel button[aria-pressed="true"] { background:#6b4824; border-color:#f7b765; }
#nativeStudioPanel button:focus-visible, #nativeStudioPanel input:focus-visible { outline:2px solid #ffc272; outline-offset:2px; }
#nativeStudioPanel .native-next { background:#e6a75d; color:#20190f; font-weight:650; width:100%; padding:12px; margin-top:12px; }
#nativeStudioPanel h3 { margin:0 0 10px; font-size:18px; }
#nativeStudioPanel [data-page] { display:grid; gap:12px; }
#nativeStudioPanel [hidden] { display:none !important; }
.native-playback { display:grid; grid-template-columns:1fr auto; align-items:end; gap:8px; }
.native-playback input { grid-column:1/-1; width:100%; }
#nativeStudioPanel input[type="number"] { display:block; width:100%; min-width:0; box-sizing:border-box; padding:8px; border:1px solid #61503b; border-radius:4px; color:#eee5d7; background:#211d18; }
#nativeStudioPanel input[type="range"] { accent-color:#e6a75d; width:100%; }
.native-tools { display:flex; gap:5px; }
.native-palette { display:flex; flex-wrap:wrap; gap:6px; }
#nativeStudioPanel .native-palette button { width:28px; height:28px; padding:0; border:2px solid #655f56; }
#nativeStudioPanel .native-palette button[aria-pressed="true"] { outline:2px solid white; outline-offset:1px; }
.native-coordinates { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0; }
.native-file-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
#nativeStudioPanel [data-command] { font:12px monospace; overflow-wrap:anywhere; }
#nativeStudioPanel [data-add-options] { display:grid; gap:10px; }
.native-steps { position:sticky; top:0; z-index:2; padding:6px 0; background:#110f0c; }
.native-keyframe-editor { border:1px solid #61503b; border-radius:6px; padding:10px; }
.native-keyframe-editor[open] { display:grid; gap:12px; }
.native-keyframe-editor summary { cursor:pointer; font-weight:600; color:#f3c68e; }
.native-keyframe-editor label { display:block; }
.native-keyframe-editor input:not([type="checkbox"]) { width:100%; box-sizing:border-box; padding:8px; border:1px solid #61503b; color:#eee5d7; background:#211d18; border-radius:4px; }
.native-key-timeline { position:relative; height:38px; margin:8px 15px 0; background:linear-gradient(transparent 18px,#846846 18px,#846846 20px,transparent 20px); }
#nativeStudioPanel .native-key-timeline button { position:absolute; top:5px; transform:translateX(-50%); padding:5px; min-width:24px; border-radius:4px; font-size:12px; }
#nativeStudioPanel .native-key-timeline button[aria-pressed="true"] { outline:2px solid #f3c68e; }
[data-kf-playhead] { position:absolute; top:0; height:38px; width:2px; background:#ffd39a; pointer-events:none; }
/* Focused studio: persistent modes, a clear stage, a full-width animation workbench. */
body[data-native-studio] { --native-panel:330px; --native-dock:420px; --accent:#ff8529; }
/* Landscape tablets and short laptops: the Animate dock took 420 px and left the model a thin strip (12 Nov 2026 tablet test);
   it now takes at most 44% of the height. */
body[data-native-studio] { --native-dock:min(420px, 44dvh); }
body[data-native-studio] #viewport { top:108px; right:var(--native-panel); bottom:0; }
body[data-native-studio] #sidebar { top:108px; bottom:0; left:auto; right:0; height:auto; width:var(--native-panel); border-radius:0; transform:none!important; box-shadow:none; background:#151515; }
body[data-native-studio] #sidebar .sidebar-scroll { visibility:visible!important; pointer-events:auto!important; }
body[data-native-studio] #sidebar .panel-handle,body[data-native-studio] #forgeAccount { display:none!important; }
body[data-native-studio] .viewport-toolbar { top:12px; }
body[data-native-studio] #status { display:none; }
#nativeStudioPanel { gap:18px; color:#f1efed; }
#nativeStudioPanel h2 { font-size:19px; letter-spacing:-.03em; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
#nativeStudioPanel button { min-height:40px; border-color:#3b3b3b; background:#242424; border-radius:8px; font-size:13px; }
#nativeStudioPanel select,#nativeStudioPanel input:not([type="checkbox"]):not([type="range"]):not([type="color"]) { background:#202020; border-color:#414141; border-radius:7px; min-height:40px; }
#nativeStudioPanel .native-next { background:#ff8529; color:#160b03; border-color:#ff8529; }
#nativeStudioPanel button[aria-pressed="true"] { background:#492715; border-color:#ff8529; }
body[data-native-studio] .native-steps { position:fixed; top:56px; left:0; right:0; height:52px; z-index:90; display:flex; justify-content:center; background:#151515; border-bottom:1px solid #303030; padding:6px 12px; }
body[data-native-studio] .native-steps button { min-width:110px; border:0; background:transparent; }
body[data-native-studio] .native-steps button[aria-current="step"] { color:#ff9b51; background:#352317; }
.native-studio-note { color:#aaa6a1; font-size:12px; }
.native-model-details { border-top:1px solid #333; padding-top:14px; }
.native-model-details > summary { cursor:pointer; color:#c2bdb8; }
.native-model-details[open] { display:grid; gap:16px; }
.native-keyframe-editor { border:0; padding:0; }
.native-keyframe-editor h3 { display:none; }
.native-gizmo-tools { display:flex; gap:6px; }
body[data-native-mode="animate"] #viewport { right:0; bottom:var(--native-dock); }
body[data-native-mode="animate"] #sidebar { top:auto; left:0; width:100%; height:var(--native-dock); max-height:none; border-top:1px solid #444; }
body[data-native-mode="animate"] #nativeStudioPanel { padding:12px 24px; display:block; }
body[data-native-mode="animate"] #nativeStudioPanel > :not(.native-editor) { display:none; }
body[data-native-mode="animate"] .native-editor > details { display:none; }
body[data-native-mode="animate"] .native-editor { gap:6px; }
body[data-native-mode="animate"] .native-playback { display:grid; grid-template-columns:190px 72px 1fr; align-items:center; gap:18px; }
body[data-native-mode="animate"] .native-playback label { font-size:0; }
body[data-native-mode="animate"] .native-playback select { margin:0; font-size:13px; }
body[data-native-mode="animate"] .native-playback input { grid-column:auto; }
body[data-native-mode="animate"] [data-saved] { position:absolute; right:24px; bottom:8px; pointer-events:none; }
.native-keyframe-editor { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr); gap:24px; align-items:start; }
.native-key-main { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 16px; align-items:end; }
.native-key-main > .native-studio-note:first-of-type,.native-key-main > .native-gizmo-tools { grid-column:1/-1; }
.native-key-main > label { font-size:12px; }
.native-key-main select { margin-top:4px!important; }
.native-key-main > label:has([data-kf-time]) { grid-column:3; grid-row:3; }
.native-key-main .native-key-timeline,.native-key-main > [data-kf-count],.native-key-main > [data-kf-status],.native-key-main > .native-file-buttons { grid-column:1/-1; }
.native-key-main > .native-coordinates { grid-column:1/3; margin:0; }
#nativeStudioPanel [data-kf-save] { grid-column:3; align-self:end; margin:0; }
.native-key-settings { border-left:1px solid #383838; padding-left:24px; display:grid; gap:12px; align-content:start; font-size:12px; }
.native-key-settings .native-clip-settings { grid-row:1; }
.native-key-settings summary { min-height:40px; display:flex; align-items:center; }
.native-key-settings label { margin:0; }
.native-clip-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; align-items:end; }
.native-clip-fields > p,.native-clip-fields > .native-file-buttons { grid-column:1/-1; }
.native-key-timeline { cursor:crosshair; touch-action:none; background:repeating-linear-gradient(90deg,#333 0 1px,transparent 1px 10%),linear-gradient(transparent 18px,#76604b 18px,#76604b 20px,transparent 20px); }
#nativeStudioPanel .native-key-timeline button { min-height:32px; top:2px; }
@media(max-width:800px) {
 body[data-native-studio] { --native-dock:48dvh; }
 body[data-native-studio] #viewport { right:0; bottom:44dvh; }
 body[data-native-studio] #sidebar { top:auto; bottom:0; width:100%; height:44dvh; border-radius:0; }
 body[data-native-studio] .native-steps button { min-width:0; flex:1; }
 #nativeStudioPanel { padding:14px 18px; }
 body[data-native-mode="animate"] #nativeStudioPanel { padding:12px 14px 28px; }
 body[data-native-mode="animate"] .native-playback { grid-template-columns:1fr 64px; gap:8px; }
 body[data-native-mode="animate"] .native-playback input { grid-column:1/-1; min-height:28px; }
 body[data-native-mode="animate"] [data-saved] { position:static; font-size:11px; }
 .native-keyframe-editor { grid-template-columns:1fr; }
 .native-key-main { grid-template-columns:1fr 1fr; gap:10px; }
 .native-key-main > * { grid-column:auto!important; grid-row:auto!important; }
 .native-key-main > .native-studio-note:first-of-type,.native-key-main > .native-key-timeline,.native-key-main > .native-file-buttons,.native-key-main > [data-kf-count],.native-key-main > [data-kf-status] { grid-column:1/-1!important; }
 .native-key-main > .native-coordinates { grid-column:1/-1!important; }
 .native-key-settings { border-left:0; border-top:1px solid #333; padding:12px 0; max-height:none; }
 .native-gizmo-tools { grid-column:1/-1!important; }
 .native-gizmo-tools button { flex:1; }
 #nativeStudioPanel button { min-height:44px; }
}

body[data-native-studio] #sidebar .sidebar-scroll { padding:0; }
body[data-native-studio] .native-steps button { font-family:inherit; font-size:13px; font-weight:500; padding:8px 14px; border-radius:8px; color:#ddd; cursor:pointer; }
body[data-native-studio] .viewport-toolbar { right:auto; width:auto; }
body[data-native-studio] .native-steps button:focus-visible { outline:2px solid #ff8529; }
@media(max-width:800px){
 body[data-native-mode="animate"] #viewport { bottom:48dvh; }
 body[data-native-mode="animate"] #sidebar { height:48dvh; }
 #nativeStudioPanel .native-playback input[type="range"] { background:transparent; border:0; height:24px; min-height:24px; }
}
@media(min-width:801px){
 .native-gizmo-tools { flex-wrap:wrap; }
 .native-gizmo-tools button { flex:1; white-space:nowrap; }
}
#nativeStudioPanel input[type="range"] { appearance:none; -webkit-appearance:none; box-sizing:border-box; padding:0; height:24px; min-height:24px; margin:0; background:transparent; border:0; box-shadow:none; clip-path:none; }
#nativeStudioPanel input[type="range"]::-webkit-slider-runnable-track { height:3px; background:#4a4037; border:0; border-radius:3px; }
#nativeStudioPanel input[type="range"]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin-top:-6px; background:#ff8529; border:0; border-radius:50%; clip-path:none; box-shadow:none; }
#nativeStudioPanel input[type="range"]::-moz-range-track { height:3px; background:#4a4037; border:0; border-radius:3px; }
#nativeStudioPanel input[type="range"]::-moz-range-thumb { width:16px; height:16px; background:#ff8529; border:0; border-radius:50%; }
.native-ai { border-top:1px solid #39332d; padding-top:16px; display:grid; gap:10px; }
.native-or-manual { margin:18px 0 6px; font-size:12px; font-weight:650; letter-spacing:.04em; text-transform:uppercase; color:#b9ab9a; }
section[data-page="0"] > .native-ai { border-top:0; }
.native-ai textarea { width:100%; box-sizing:border-box; resize:vertical; min-height:70px; background:#191919; color:#eee; border:1px solid #494139; border-radius:8px; padding:10px; font:inherit; }
.native-steps small { font-size:10px; opacity:.7; }
.native-review-views { margin-bottom:12px; }
.native-steps button:disabled { opacity:.45; cursor:default; }
body[data-native-mode="animate"] .native-ai { margin-top:18px; }
@media(max-width:600px){.native-steps small { display:none; }body[data-native-studio] .native-steps button { padding:6px 4px; font-size:12px; }}

/* Optional brief assistance stays in the creation flow. */
.brief-flair-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.brief-flair-actions [hidden],.brief-flair-review[hidden]{display:none!important}
.brief-flair-actions span,.brief-flair-note{font-size:12px;color:#aaa;line-height:1.5}
.brief-flair-review{padding:12px;border:1px solid #ad642c;border-radius:10px;background:#211c18;margin:10px 0}
.brief-flair-review p{font-size:12px;color:#bbb;overflow-wrap:anywhere;margin:0 0 10px}
.brief-flair-review label{display:block;color:#f3bf8d;font-size:13px;margin-bottom:8px}
.brief-flair-review textarea{width:100%;box-sizing:border-box;resize:vertical}

/* Refinement waits report activity, not an estimated completion percentage. */
#nativeStudioPanel .native-request-progress { padding:12px; margin:10px 0; border:1px solid #ff9b4140; border-radius:10px; background:#ff942f0a; }
#nativeStudioPanel .native-request-progress[hidden] { display:none; }
.native-progress-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px; font-size:12px; }
.native-progress-heading strong { color:#ffce9d; }
.native-progress-heading span { color:#c8b9a8; font-variant-numeric:tabular-nums; }
.native-progress-track { height:6px; overflow:hidden; margin:12px 0 8px; background:#ffad5c20; border-radius:8px; }
.native-progress-track > span { display:block; width:38%; height:100%; border-radius:inherit; background:#ff9b41; animation:native-request-wait 1.6s ease-in-out infinite alternate; }
#nativeStudioPanel .native-request-progress p { margin:0; font-size:12px; line-height:1.5; color:#ccbda9; }
@keyframes native-request-wait { from { transform:translateX(-100%); } to { transform:translateX(265%); } }
@media(prefers-reduced-motion:reduce) { .native-progress-track > span { animation:none; width:100%; opacity:.65; } }

/* Keep gallery loads neutral until the native or legacy editor is ready. */
html[data-model-loading] #sidebar,html[data-model-loading] #creation-card,html[data-model-loading] .viewport-toolbar { visibility:hidden!important; }
html[data-model-loading] body::after { content:'Opening your model…'; position:fixed; inset:56px 0 0; display:grid; place-items:center; z-index:200; background:#111; color:#ddd; font:16px system-ui; }
.native-title-field { display:grid; gap:6px; font-size:12px; }
#nativeStudioPanel [data-creation-name] { width:100%; box-sizing:border-box; padding:10px; color:#eee; background:#211d18; border:1px solid #61503b; border-radius:5px; }
/* A one-line textarea: long names wrap onto more lines instead of being cut off (12 Nov 2026). */
#nativeStudioPanel textarea[data-creation-name] { display:block; resize:none; overflow:hidden; min-height:0; line-height:1.2; overflow-wrap:anywhere; }
body[data-native-mode="animate"] .native-title-field,body[data-native-mode="animate"] [data-model-size] { display:none; }

body[data-native-mode="animate"] #nativeStudioPanel .native-save-actions { position:static; width:auto; justify-content:flex-end; }
body[data-native-mode="animate"] #nativeStudioPanel .native-playback { margin-right:0; }
@media(max-width:600px) { body[data-native-studio] .native-steps button { padding:6px 4px; white-space:nowrap; } }

@media(min-width:801px) {
 #nativeStudioPanel [data-kf-save] { grid-row:6; }
 #nativeStudioPanel .native-key-main > .native-file-buttons { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #nativeStudioPanel .native-clip-fields > .native-file-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Bedrock behaviour cards keep the full catalogue behind search and disclosure. */
.bedrock-editor { display:grid; gap:14px; min-width:0; }
.bedrock-editor label { display:grid; gap:6px; min-width:0; }
.bedrock-editor input:not([type=checkbox]), .bedrock-editor select, .bedrock-editor textarea { width:100%; min-width:0; box-sizing:border-box; }
.bedrock-editor input[type=checkbox] { width:18px; height:18px; }
.bedrock-editor textarea { font:12px/1.5 ui-monospace,monospace; resize:vertical; }
.bedrock-editor fieldset { min-width:0; border:1px solid #504536; border-radius:8px; padding:10px; display:grid; gap:10px; }
.bedrock-editor details { margin:0; }
.bedrock-editor summary { cursor:pointer; }
.bedrock-component { border:1px solid #504536; border-radius:10px; padding:12px; margin-bottom:8px!important; background:#24221e; }
.bedrock-component > summary { font-weight:650; }
.bedrock-component[open] > summary { margin-bottom:12px; }
.bedrock-fields { display:grid; gap:8px; padding:8px 0 14px; }
#nativeStudioPanel .bedrock-remove-setting { display:block; width:auto; min-height:0; margin:-4px 0 6px auto; padding:2px 4px; font-size:11px; background:transparent; border:0; box-shadow:none; color:#b9ab9a; text-decoration:underline; cursor:pointer; }
#nativeStudioPanel .bedrock-remove-setting:hover:not(:disabled) { color:#fff; background:transparent; }
.bedrock-fields > button { justify-self:start; font-size:11px; padding:3px 7px; }
.bedrock-choices { display:flex; flex-wrap:wrap; gap:6px; }
.bedrock-summary { padding:12px; border-radius:8px; background:#edf4e7; color:#28482c; margin:0; }
.bedrock-search-result,.bedrock-file { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0; overflow-wrap:anywhere; }
.bedrock-search-result button { flex-shrink:0; }
.bedrock-search-results:empty,.bedrock-issues:empty { display:none; }
.bedrock-issues { margin:0; padding:10px 10px 10px 26px; border-radius:8px; background:#fff3d9; font-size:12px; line-height:1.5; }
.bedrock-issues [data-severity=error] { color:#922b18; }
.bedrock-editor [data-behavior-advanced] > *:not(summary) { margin-top:10px; }
.native-ai-candidate { margin-top:12px; }

#nativeStudioPanel .bedrock-editor label { display:grid; gap:6px; }
#nativeStudioPanel .bedrock-editor label:has(> input[type=checkbox]) { display:flex; align-items:center; justify-content:space-between; }
#nativeStudioPanel .bedrock-editor input[type=search], #nativeStudioPanel .bedrock-editor input[type=text], #nativeStudioPanel .bedrock-editor textarea { padding:9px; border:1px solid #61503b; border-radius:5px; color:#eee5d7; background:#211d18; }
#nativeStudioPanel .bedrock-component { border-color:#504536; background:#24221e; }
#nativeStudioPanel .bedrock-component > summary { color:#f0e9dc; }
#nativeStudioPanel .bedrock-editor .native-studio-note { color:#c4bbaa; }
.bedrock-search-results { max-height:340px; overflow:auto; }
/* Build it with blocks: two stacked full-width downloads that wrap on narrow phones. Vault: System/Schematic export.md */
#nativeStudioPanel .native-export-blocks .native-file-buttons { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:0; }
#nativeStudioPanel .native-export-blocks .native-file-buttons button { width:100%; white-space:normal; text-align:center; line-height:1.3; }
#nativeStudioPanel .native-export-blocks [data-schematic-status]:empty { display:none; }
#nativeStudioPanel .native-export-blocks [data-schematic-status] { overflow-wrap:anywhere; }
