:root {
  color-scheme: dark;
  --base: #101113;
  --ink: #eeeae5;
  --muted: #a8a5a3;
  --gold: #d4c187;
  --line: #ffffff0e;
  --ease: cubic-bezier(.23,1,.32,1);
  --edge: inset 0 1px 0 #ffffff0c,0 0 0 1px #ffffff08,0 3px 8px #0003;
  font: 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; display: grid; grid-template-rows: 56px minmax(0,1fr) 28px; background: var(--base); color: var(--ink); -webkit-font-smoothing: antialiased; }
button,input,a { -webkit-tap-highlight-color: transparent; }
button,input { font: inherit; }
button,a { touch-action: manipulation; transition: transform 140ms var(--ease),background-color 140ms ease,color 140ms ease; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .38; }
[hidden] { display: none!important; }
button:focus-visible,a:focus-visible,input:focus-visible,[role=slider]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:active:not(:disabled),.button:active { transform: scale(.97); }
h1,h2,p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only,.workspace-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 24px; background: #17181b; border-bottom: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: 10px; }
.app-brand>img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 3px 10px #0005; }
.app-brand>div { display: grid; gap: 4px; }
.app-brand>div>span { font-size: 9px; letter-spacing: 1.5px; font-weight: 600; }
.app-brand small { font-size: 8px; letter-spacing: 1.2px; color: var(--muted); }
.app-brand small i { font-style: normal; padding: 0 5px; color: #716952; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 8px; padding: 9px 15px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: var(--edge); }
.button.secondary { background: linear-gradient(#343539,#292a2e); }
.button.quiet { background: #ffffff05; color: #c6beb5; box-shadow: inset 0 0 0 1px #ffffff18; }
.button.primary { background: linear-gradient(#e1d09a,#c7b278); color: #2f291d; box-shadow: inset 0 1px 0 #f2e7c1,0 1px 2px #0007,0 0 0 1px #dcc58833; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); flex: none; }
.text-button { background: transparent; border: 0; padding: 8px; font-size: 12px; color: var(--gold); white-space: nowrap; }
.notice { position: fixed; z-index: 20; top: 62px; left: 50%; transform: translateX(-50%); width: min(660px,calc(100% - 24px)); padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #e2bc8640; background: #332b20; color: #f0d9bb; border-radius: 10px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 30px #0008; }
.notice>span { flex: 1; min-width: 0; }
main { display: grid; grid-template-columns: minmax(0,1fr) clamp(270px,25vw,350px); gap: 24px; width: 100%; max-width: 1840px; min-height: 0; padding: 16px 24px 12px; margin: 0 auto; overflow: hidden; }
.workspace { display: grid; grid-template-rows: minmax(0,1fr) 18px 36px clamp(130px,23vh,224px); gap: 6px; min-width: 0; min-height: 0; }
.viewer { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 50% 100%,#27282c,transparent 75%),#151619; box-shadow: 0 0 0 1px #ffffff0e; }
.viewer.has-image { background: #070809; }
.viewer[aria-busy=true]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); animation: loading-light 1.1s ease-in-out infinite; z-index: 4; }
.empty-state { text-align: center; padding: 16px; max-width: 540px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 12px; background: linear-gradient(#34353a,#26272b); box-shadow: var(--edge); color: #d9c69c; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h2 { font-size: 23px; font-weight: 500; letter-spacing: -.55px; line-height: 1.25; }
.empty-state p { margin: 8px 0 15px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.empty-state small { display: block; color: #908c88; font-size: 10px; line-height: 1.5; margin-top: 9px; }
.image-stage { position: relative; max-width: 100%; max-height: 100%; line-height: 0; flex: none; }
.image-stage img { user-select: none; -webkit-user-drag: none; }
.image-stage>img { display: block; width: 100%; height: 100%; object-fit: contain; }
.grade-layer { position: absolute; inset: 0; pointer-events: none; }
.grade-layer>canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grade-layer>img { display: block; width: 100%; height: 100%; object-fit: contain; }
.comparison-surface { position: absolute; inset: 0; z-index: 2; cursor: ew-resize; touch-action: none; user-select: none; }
.comparison-surface:focus-visible { outline-offset: -3px; }
.comparison-surface.dragging { cursor: ew-resize; }
.preview-status { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #ffffff24; border-radius: 20px; background: #17181bd9; backdrop-filter: blur(12px); color: #f0e7d6; font-size: 10px; white-space: nowrap; }
.status-light { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: loading-light 1s ease-in-out infinite; }
.wipe-line { z-index: 3; position: absolute; inset: 0 auto 0 50%; width: 1px; background: #fff9; pointer-events: none; box-shadow: 0 0 5px #0004; }
.wipe-line>span { position: absolute; left: -16px; top: 50%; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #fffb; border-radius: 50%; background: #17181b99; color: white; line-height: 1; font-size: 16px; backdrop-filter: blur(6px); }
.compare-tags { z-index: 3; position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; pointer-events: none; }
.compare-tags span { padding: 6px 8px; background: #10111399; border: 1px solid #ffffff20; border-radius: 5px; font-size: 9px; line-height: 1; color: #fff; }
.drop-overlay { pointer-events: none; display: none; position: absolute; inset: 0; z-index: 5; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: #1b1c20f2; border: 2px dashed var(--gold); border-radius: 12px; color: var(--gold); font-size: 14px; }
.drop-overlay .icon { height: 32px; width: 32px; }
.viewer.drag-over .drop-overlay { display: flex; }
.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9d9994; font-size: 10px; line-height: 1.4; min-width: 0; }
.image-meta>span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.image-meta>span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.effect-switch { --travel: 42px; position: relative; flex: none; margin-left: auto; width: 92px; height: 34px; border: 1px solid #ffffff19; border-radius: 24px; padding: 0; overflow: hidden; background: linear-gradient(110deg,#101113,#242125); box-shadow: inset 0 2px 6px #0009,0 1px 0 #ffffff0d; }
.effect-switch::before { content: ""; position: absolute; inset: 1px 5px 1px 20px; border-radius: inherit; background: radial-gradient(ellipse at 70% 50%,#eb9a45,#b765243d 60%,transparent 80%); opacity: .85; transition: opacity 180ms ease; }
.switch-state { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); color: #f2e3cd; font-size: 10px; font-weight: 600; letter-spacing: .5px; }
.switch-thumb { position: absolute; z-index: 2; inset: 2px auto 2px 2px; width: 44px; border: 1px solid #ffffff45; border-radius: 22px; background: linear-gradient(135deg,#ffffff39,#9e979b38 48%,#ffffff15); backdrop-filter: blur(12px); box-shadow: inset 0 1px 2px #fff5,0 2px 6px #0006; transform: translateX(var(--travel)); transition: transform 220ms var(--ease); }
.switch-thumb>span { position: absolute; inset: 7px 9px; background-image: radial-gradient(circle,#fff6 1px,transparent 1.6px); background-size: 6px 6px; opacity: .6; }
.effect-switch[aria-checked=false]::before { opacity: 0; }
.effect-switch[aria-checked=false] .switch-thumb { transform: translateX(0); }
.effect-switch[aria-checked=false] .switch-state { left: auto; right: 10px; color: #9e9b9c; }
.effect-off #adjustmentFields { opacity: .45; }
.control-row input:disabled { opacity: .45; }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #191a1d; box-shadow: inset 0 1px 3px #0006,0 1px 0 #ffffff07; }
.segmented button { min-height: 30px; border: 0; padding: 6px 14px; border-radius: 5px; background: transparent; color: #aaa6a2; font-size: 11px; }
.segmented button[aria-pressed=true] { background: linear-gradient(#3b3a3c,#2c2c30); box-shadow: var(--edge); color: #f5eadd; }
.library { grid-row: 4; display: grid; grid-template-rows: 24px minmax(0,1fr); min-height: 0; min-width: 0; position: relative; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.library-heading h2 { font-size: 13px; font-weight: 500; letter-spacing: -.2px; }
.library-heading .eyebrow { display: none; }
.free-label { font-size: 9px; color: #d6c393; white-space: nowrap; }
.look-cards { display: grid; grid-template-columns: repeat(var(--look-count,7),minmax(0,1fr)); align-items: stretch; min-height: 0; gap: 10px; padding: 14px 4px 4px; margin: 0 -4px; overflow: visible; isolation: isolate; }
.look-card { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: transparent; text-align: center; z-index: var(--layer,1); }
.look-cover { display: block; position: relative; height: calc(100% - 20px); max-width: 100%; aspect-ratio: 4/5; background: #202635; border-radius: 8px; box-shadow: 0 8px 18px #0005; overflow: hidden; pointer-events: none; transform: rotate(var(--angle)); transition: transform 200ms var(--ease); }
.look-cover>img { display: block; width: 100%; height: 100%; object-fit: contain; }
.look-card.selected .look-cover { box-shadow: 0 8px 22px #0008,0 0 0 2px #bca563; }
.look-card .card-label { display: block; height: 20px; line-height: 20px; font-size: 9px; color: #aaa6a2; pointer-events: none; }
.look-card.selected .card-label { color: #dfcea7; }
.look-card[aria-disabled=true] .look-cover::after { content: ""; position: absolute; inset: 0; background: #0b0c0e28; }
.lock-mark { position: absolute; z-index: 1; right: 5px; bottom: 5px; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #ffffff26; border-radius: 6px; background: #161719bd; color: #eee6da; backdrop-filter: blur(8px); }
.lock-mark .icon { width: 11px; height: 11px; }
.collection-link { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 10px; color: #d7c493; text-decoration: none; }
.library-heading .free-label { margin-right: 138px; }
.collection-link .icon { width: 12px; }
.inspector { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.adjustment-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; border-radius: 13px; background: linear-gradient(125deg,#232428,#1a1b1e 45%); box-shadow: inset 0 1px 0 #ffffff13,0 0 0 1px #ffffff0b; overflow: hidden; }
.panel-heading { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.panel-heading>div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-heading img { width: 60px; height: 30px; object-fit: contain; }
.panel-heading h2 { font-size: 8px; font-weight: 500; line-height: 1.5; letter-spacing: 1px; color: #ada59a; max-width: 58px; }
.reset-all { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 6px 8px; border: 1px solid #ffffff18; border-radius: 7px; background: #ffffff07; color: #d6c393; font-size: 10px; white-space: nowrap; }
.reset-all .icon { width: 13px; height: 13px; }
.adjustment-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; margin: 12px 12px 0; padding: 3px; border-radius: 8px; background: #111215; flex: none; }
.adjustment-tabs button { border: 0; background: transparent; color: var(--muted); min-height: 34px; border-radius: 5px; font-size: 11px; }
.adjustment-tabs button[aria-selected=true] { color: #e1cea0; background: #353337; box-shadow: var(--edge); }
.inspector fieldset { border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #565044 transparent; flex: 1; }
.control-group { padding: 18px 16px; }
.control-group h3 { font-size: 12px; font-weight: 500; margin: 0 0 16px; }
.control-group h3 small { color: #b6a475; font-size: 9px; font-weight: 400; letter-spacing: .3px; margin-left: 7px; }
.control-row { display: grid; grid-template-columns: minmax(75px,1fr) 62px 24px; align-items: center; column-gap: 7px; row-gap: 4px; margin: 12px 0 0; }
.control-row label { font-size: 11px; color: #bab6b2; }
.control-row input[type=number] { appearance: textfield; width: 62px; padding: 4px 6px; text-align: right; border-radius: 5px; border: 1px solid #ffffff0a; background: #111215; color: #ddd5c7; font-size: 11px; font-variant-numeric: tabular-nums; }
.control-row input[type=number]::-webkit-inner-spin-button { appearance: none; }
.control-row .reset-control { border: 0; width: 24px; height: 24px; display: grid; place-items: center; background: transparent; color: #8a847b; padding: 0; }
.reset-control .icon { width: 13px; height: 13px; }
.control-row input[type=range] { grid-column: 1/-1; margin: 0; }
input[type=range] { appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; touch-action: pan-y; --fill: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right,#b6a276 var(--fill),#454344 var(--fill)); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(#eee3cf,#c1b396); box-shadow: 0 2px 5px #0008,0 0 0 1px #1119; margin-top: -5px; }
input[type=range]::-moz-range-track { height: 3px; border-radius: 4px; background: #454344; }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 4px; background: #b6a276; }
input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #d5c7aa; }
input[type=range]:disabled { cursor: not-allowed; }
.panel-footer { flex: none; display: flex; align-items: center; gap: 7px; padding: 12px 16px; color: #a9a299; font-size: 9px; border-top: 1px solid var(--line); }
.look-dot { height: 5px; width: 5px; border-radius: 50%; background: #bca563; }
.beta-tag { font-size: 8px; letter-spacing: 1px; color: #817b73; margin-left: auto; }
.local-note { flex: none; font-size: 10px; line-height: 1.5; color: #9b9690; padding: 0 3px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 24px; border-top: 1px solid var(--line); font-size: 9px; color: #938d84; line-height: 1.4; overflow: hidden; }
footer>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer>span:last-child { font-size: 8px; color: #756e64; letter-spacing: 1px; }
@keyframes loading-light { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes card-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (hover:hover) and (pointer:fine) {
  .look-cover { animation: card-float 5.8s ease-in-out var(--delay) infinite; }
  .look-card.active .look-cover { transform: translateY(-4px) rotate(0deg); }
  .button.secondary:hover { background: #3c3d42; }
  .icon-button:hover,.text-button:hover,.reset-all:hover,.button.quiet:hover { background: #ffffff0a; color: #e2cf9b; }
}
@media (max-width:1050px) {
  main { gap: 16px; padding: 12px 16px; grid-template-columns: minmax(0,1fr) 270px; }
  .topbar { padding-inline: 16px; }
  .library-heading .free-label { display: none; }
  .look-cards { gap: 6px; }
}
@media (max-height:740px) and (min-width:701px) {
  .workspace { grid-template-rows: minmax(0,1fr) 16px 34px clamp(100px,24vh,160px); gap: 4px; }
  .control-group { padding: 10px 14px; }
  .control-group h3 { margin-bottom: 8px; }
  .control-row { margin-top: 6px; row-gap: 0; }
  .panel-heading { padding: 7px 12px; }
  .panel-footer { padding: 8px 12px; }
  .local-note { font-size: 9px; }
  .empty-icon { display: none; }
}
/* Phone controls keep their touch targets; only the inspector and deck scroll. */
@media (max-width:700px), (max-width:900px) and (orientation:landscape) {
  body { grid-template-rows: 56px minmax(0,1fr) 22px; }
  .topbar { padding: 4px 10px; gap: 8px; }
  .app-brand { gap: 6px; }
  .app-brand>img { width: 27px; height: 27px; }
  .app-brand>div { display: none; }
  .top-actions { gap: 6px; }
  .button { min-height: 44px; font-size: 12px; padding: 8px 10px; gap: 6px; }
  .button .icon { width: 16px; height: 16px; }
  main { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) clamp(220px,38vh,300px); gap: 10px; padding: 8px 10px; }
  .workspace { grid-template-rows: minmax(0,1fr) 0 50px 120px; gap: 4px; }
  .image-meta { visibility: hidden; }
  .viewer { border-radius: 8px; }
  .toolbar { gap: 6px; }
  .toolbar .segmented { flex: 1; min-width: 0; }
  .segmented button { flex: 1; min-height: 44px; padding: 5px 4px; font-size: 11px; }
  .effect-switch { --travel: 30px; width: 72px; height: 44px; }
  .switch-thumb { width: 36px; }
  .switch-thumb>span { inset: 12px 9px; }
  .switch-state { left: 8px; font-size: 9px; letter-spacing: 0; }
  .effect-switch[aria-checked=false] .switch-state { right: 6px; }
  .preview-status { top: 7px; font-size: 10px; padding: 5px 8px; }
  .library { grid-template-rows: 26px minmax(0,1fr); }
  .library-heading h2 { font-size: 12px; }
  .collection-link { font-size: 10px; min-height: 26px; }
  .look-cards { display: flex; gap: 12px; padding: 6px 4px 2px; margin: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; }
  .look-card { flex: 0 0 68px; }
  .look-cover { height: calc(100% - 20px); border-radius: 5px; transform: none; }
  .look-card .card-label { height: 20px; line-height: 20px; font-size: 11px; }
  .lock-mark { width: 18px; height: 18px; right: 3px; bottom: 3px; border-radius: 4px; }
  .lock-mark .icon { width: 11px; height: 11px; }
  .inspector { gap: 0; }
  .adjustment-panel { border-radius: 9px; }
  .panel-heading { position: static; min-height: 48px; padding: 2px 8px; }
  .panel-heading img { width: 48px; height: 28px; }
  .panel-heading h2 { font-size: 8px; }
  .reset-all { min-height: 44px; padding: 8px; font-size: 12px; }
  .adjustment-tabs { margin: 0 6px; padding: 3px; gap: 2px; }
  .adjustment-tabs button { min-height: 44px; font-size: 12px; }
  .control-group { padding: 4px 12px 12px; }
  .control-group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .control-row { grid-template-columns: minmax(0,1fr) 76px 44px; column-gap: 8px; row-gap: 0; margin-top: 8px; }
  .control-row label { font-size: 13px; }
  .control-row input[type=number] { width: 76px; min-height: 44px; font-size: 16px; padding: 6px; }
  .control-row .reset-control { width: 44px; height: 44px; }
  .reset-control .icon { width: 16px; height: 16px; }
  .control-row input[type=range] { height: 44px; touch-action: none; }
  input[type=range]::-webkit-slider-runnable-track { height: 4px; }
  input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  input[type=range]::-moz-range-track,input[type=range]::-moz-range-progress { height: 4px; }
  input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }
  .panel-footer,.local-note { display: none; }
  .empty-state { padding: 8px; }
  .empty-icon,.empty-state small { display: none; }
  .empty-state h2 { font-size: 17px; }
  .empty-state p { font-size: 11px; margin: 4px 0 8px; }
  .empty-state .sample-button { min-height: 44px; font-size: 11px; margin: 0 auto; }
  .compare-tags { inset: 7px 7px auto; }
  .compare-tags span { font-size: 8px; padding: 4px 6px; }
  footer { padding: 3px 10px; font-size: 9px; }
  footer>span:last-child { display: none; }
  .notice { top: 58px; font-size: 12px; }
  .notice .icon-button,.notice .text-button { min-width: 44px; min-height: 44px; }
}
@media (max-width:700px) and (max-height:650px) {
  main { grid-template-rows: minmax(0,1fr) 220px; }
  .workspace { grid-template-rows: minmax(0,1fr) 0 50px 104px; gap: 3px; }
  .empty-state h2,.empty-state p { display: none; }
}
/* Landscape phones retain the same controls beside the photo. */
@media (min-width:520px) and (max-width:900px) and (orientation:landscape) {
  main { grid-template-columns: minmax(0,1fr) 280px; grid-template-rows: minmax(0,1fr); gap: 10px; padding: 6px 10px; }
  .workspace { grid-template-rows: minmax(0,1fr) 0 50px 100px; gap: 3px; }
  .library-heading h2 { font-size: 11px; }
  .empty-state h2,.empty-state p { display: none; }
}
/* The on-screen keyboard can shrink a portrait viewport: keep the preview and
   numeric editor reachable without shrinking the controls themselves. */
@media (max-width:519px) and (max-height:500px) {
  body { grid-template-rows: 50px minmax(0,1fr) 0; }
  main { grid-template-rows: minmax(0,1fr) minmax(150px,46%); padding: 4px 8px; gap: 4px; }
  .workspace { grid-template-rows: minmax(0,1fr) 0 50px 0; gap: 2px; }
  .library,footer { visibility: hidden; }
  .panel-heading { display: none; }
  .empty-state .sample-button { display: none; }
}
.keyboard-input *, .keyboard-input *::before,.keyboard-input *::after { animation: none!important; transition: none!important; }
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  .button:active,button:active:not(:disabled) { transform: none; }
}

.look-cover.studio-cover { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%,#a59b7844,transparent),#283042; }
.look-cover.studio-cover>img { width: 65%; height: 65%; object-fit: contain; }
.sample-button { display: block; margin: 8px auto 0; border: 0; background: none; color: #c8bb9b; font-size: 10px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; }
