/* Display library: screen-like previews, graphite chrome and signal-orange actions. */
.studio .studio-gallery{--gallery-paper:#fff;--gallery-ink:#18242b;--gallery-muted:#52525b;--gallery-line:#dce2e5;position:absolute;inset:0;z-index:15;background:#f3f5f6;color:var(--gallery-ink);overflow:auto;overscroll-behavior:contain;font-family:"Segoe UI",Arial,sans-serif;scrollbar-width:thin}
.studio .studio-gallery [hidden]{display:none!important}
.studio .studio-gallery button{font-size:13px;line-height:1.4;cursor:pointer;box-sizing:border-box;border-radius:5px}
.studio .studio-gallery button:disabled{cursor:default;opacity:.4}
.studio .studio-gallery :is(button,input,select,textarea):focus-visible{outline:2px solid #087e8b;outline-offset:2px}
.studio .studio-gallery-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:18px 28px;background:#111b22;color:#fff;border-bottom:1px solid #34434c}
.studio .studio-gallery-heading h1{font:650 26px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:-.4px;margin:0;color:#fff}
.studio .studio-gallery-top button:focus-visible,.studio .studio-gallery-detail-top button:focus-visible{outline-color:#ff8a3d}
.studio-gallery-actions{display:flex;align-items:center;gap:12px;flex:none}
.studio .studio-gallery-actions>button{min-height:40px;padding:8px 13px;border:1px solid #ff8a3d;background:#ff8a3d;color:#18242b}
.studio .studio-gallery-actions>button:hover{background:#f47b27;border-color:#f47b27}
.studio .studio-gallery-actions>[data-gallery=close]:hover{background:#2b3c46}
.studio .studio-gallery-actions>[data-gallery=close]{width:38px;padding:0;font-size:17px;border:0;background:transparent;color:#fff}
.studio-gallery-discovery{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--gallery-line)}
.studio .studio-gallery-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 210px 220px;gap:18px;padding:18px 28px;max-width:none;width:100%}
.studio .studio-gallery-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;font-size:13px;font-weight:600;color:#3f3f46}
.studio .studio-gallery-toolbar input,.studio .studio-gallery-toolbar select{box-sizing:border-box;width:100%;height:38px;min-height:38px;padding:8px 11px;border:1px solid #d4d4d8;border-radius:5px;background:#fff;color:#18181b;font:400 13px/1.4 "Segoe UI",Arial,sans-serif}
.studio .studio-gallery-toolbar input::placeholder{color:#667580}
.studio .studio-gallery-categories{display:flex;gap:18px;overflow-x:auto;padding:0 28px;margin:0;border:0;scrollbar-width:thin}
.studio .studio-gallery-categories button{flex:none;min-height:38px;padding:10px 1px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#52525b;font-size:13px;font-weight:400}
.studio .studio-gallery-categories button:hover{background:#f0f3f6}
.studio .studio-gallery-categories button[aria-pressed=true]{background:transparent;border-color:#087e8b;color:#086672;font-weight:600}
.studio-gallery-results{padding:20px 28px 12px;color:#52525b;font-size:13px;font-variant-numeric:tabular-nums}
.studio .studio-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:20px;padding:0 28px 28px}
.studio .studio-gallery-card{display:flex;flex-direction:column;min-width:0;height:100%;padding:0;overflow:hidden;text-align:left;white-space:normal;border:1px solid #e4e4e7;border-radius:9px;background:#fff;box-shadow:none;transition:border-color .12s}
.studio .studio-gallery-card:hover{background:#fff;border-color:#087e8b;box-shadow:0 4px 14px #18242b14;transform:none}
.studio .studio-gallery-cover{display:block;position:relative;flex:none;width:100%;height:310px;overflow:hidden;border:0;border-bottom:1px solid #111b22;border-radius:0;background:#1b2932}
.studio .studio-gallery[data-gallery-format=landscape] .studio-gallery-cover{height:165px}
.studio .studio-gallery[data-gallery-format=square] .studio-gallery-cover{height:235px}
.studio-gallery-cover .design-canvas{box-shadow:0 0 0 4px #0b1217,0 8px 18px #0005}
.studio-gallery-stage-top,.studio-gallery-time{font-family:Consolas,"SFMono-Regular",monospace}
.studio-gallery-cover .design-canvas,.studio-gallery-live .design-canvas{position:absolute;transform-origin:top left;pointer-events:none}
.studio .studio-gallery-card-copy{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0;padding:14px 16px;background:#fff}
.studio .studio-gallery-card-copy>strong{display:block;margin:0;font:600 14px/1.5 "Segoe UI",Arial,sans-serif;color:#18242b;letter-spacing:0}
.studio .studio-gallery-card-copy>small{display:block;margin:0;padding:0;border:0;font-size:12px;line-height:1.4;color:#5c6a74}
.studio-gallery-empty{grid-column:1/-1;text-align:center;padding:36px 24px;border:1px solid #e4e4e7;background:#fff;border-radius:4px}
.studio-gallery-empty h2{font:600 20px/1.3 "Segoe UI",Arial,sans-serif;margin:0 0 12px}
.studio-gallery-empty p{font-size:13px;color:#52525b}
.studio .studio-gallery-empty button{padding:7px 12px;font-size:13px;border:1px solid #d4d4d8;background:#fff;color:#18181b}
/* Preview and inspector scroll separately; the apply button remains reachable. */
.studio .studio-gallery-detail{position:fixed;inset:0;z-index:16;height:100dvh;overflow:hidden;background:#fafafa}
.studio .studio-gallery-detail-top{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;box-sizing:border-box;padding:0 20px;background:#111b22;color:#fff;border-bottom:1px solid #34434c}
.studio .studio-gallery-detail-top>button,.studio .studio-gallery-detail-top [data-gallery=present],.studio .studio-gallery-detail-top [data-gallery=close]{flex:none;min-height:36px;padding:7px 11px;border:1px solid #71818c;background:transparent;color:#fff;font-size:13px}
.studio .studio-gallery-detail-top button:hover{background:#2b3c46;border-color:#fff}
.studio .studio-gallery-detail-top>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#fff;font-weight:600}
.studio-gallery-detail-top>div{display:flex;align-items:center;gap:8px;flex:none}
.studio .studio-gallery-detail-top [data-gallery=close]{width:36px;padding:0;border:0}
.studio .studio-gallery-detail-top [data-gallery=present][aria-pressed=true]{background:#ff8a3d;color:#18242b;border-color:#ff8a3d}
.studio .studio-gallery-showcase{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:calc(100dvh - 64px);min-height:0;overflow:hidden}
.studio .studio-gallery-player{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;box-sizing:border-box;overflow:hidden;padding:20px 28px 16px;background:#17252e;color:#e3e8ec}
.studio-gallery-stage-top{display:flex;justify-content:space-between;gap:12px;flex:none;margin-bottom:14px;font-size:12px;color:#d4dde4}
.studio .studio-gallery-live{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden;background:transparent}
.studio-gallery-live>.design-canvas{box-shadow:0 2px 12px #0005}
.studio-gallery-timeline{display:flex;align-items:center;gap:12px;flex:none;margin-top:14px}
.studio-gallery-progress{display:block;flex:1;min-width:0;appearance:none;height:4px;border:0;border-radius:0;overflow:hidden;background:#5b6974;color:#ff8a3d}
.studio-gallery-progress::-webkit-progress-bar{background:#5b6974}
.studio-gallery-progress::-webkit-progress-value{background:#ff8a3d}
.studio-gallery-progress::-moz-progress-bar{background:#ff8a3d}
.studio-gallery-time{min-width:75px;font-size:12px;font-variant-numeric:tabular-nums;color:#e3e8ec;text-align:right}
.studio .studio-gallery-playbar{display:flex;align-items:center;justify-content:space-between;flex:none;gap:14px;padding-top:10px;font-size:12px}
.studio-gallery-transport{display:flex;align-items:center;gap:5px;flex:none}
.studio .studio-gallery-transport button{width:34px;height:34px;min-height:34px;padding:0;background:#263842;border:1px solid #6d7a85;color:#fff;font-size:15px;border-color:#71818c}
.studio .studio-gallery-transport button:hover:not(:disabled){background:#344b58;border-color:#b2c0c8}
.studio .studio-gallery-transport [data-gallery=play]{width:78px;background:#ff8a3d;border-color:#ff8a3d;font-size:13px;font-weight:600;color:#18242b}
.studio .studio-gallery-transport [data-gallery=play]:hover{background:#f47b27;border-color:#f47b27}
.studio .studio-gallery-transport [data-gallery=replay]{width:auto;min-width:34px;padding:0 8px;margin-left:3px}
.studio-gallery-transport [data-gallery=replay]>span{font-size:12px;margin-left:5px}
.studio-gallery-page-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#e3e8ec}
.studio .studio-gallery-page-dots{display:flex;flex:none;gap:8px;margin:12px 0 0;padding-bottom:3px;overflow-x:auto;scrollbar-width:thin}
.studio .studio-gallery-page-dots:empty{display:none}
.studio .studio-gallery-page-dots button{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:8px;row-gap:3px;align-items:center;flex:0 0 158px;min-height:52px;padding:8px 10px;border:1px solid #6d7a85;background:#263842;color:#e3e8ec;text-align:left;border-color:#71818c}
.studio-gallery-page-dots button>span{grid-row:1/3;font:600 16px/1 "Segoe UI",Arial,sans-serif;color:inherit}
.studio-gallery-page-dots button>strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:600}
.studio-gallery-page-dots button>small{font-size:12px;color:inherit}
.studio .studio-gallery-page-dots button[aria-pressed=true]{background:#ff8a3d;border-color:#ff8a3d;color:#18242b}
.studio-gallery-motion-note{flex:none;margin:10px 0 0;font-size:12px;line-height:1.45;color:#e3e8ec}
.studio-gallery-motion-note:empty{display:none}
.studio .studio-gallery-description{display:flex;flex-direction:column;align-self:stretch;width:340px;min-width:0;min-height:0;height:100%;overflow:hidden;padding:0;border-left:1px solid #d4d4d8;background:#fff}
.studio-gallery-design-title{flex:none;padding:20px;background:#fff;border-bottom:1px solid #e4e4e7}
.studio .studio-gallery-design-title h2{font:600 18px/1.4 "Segoe UI",Arial,sans-serif;letter-spacing:0;margin:0;color:#18242b}
.studio-gallery-configurator{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.studio-gallery-commit{position:relative;z-index:3;flex:none;padding:14px 20px;border-top:1px solid #e4e4e7;background:#fff}
.studio-gallery-commit>[data-design-summary]{display:block;font-size:12px;line-height:1.4;margin-bottom:8px;color:#52525b}
.studio .studio-gallery-commit .studio-gallery-use{display:block;width:100%;min-height:40px;padding:7px 12px;border:1px solid #ab5019;background:#ff8a3d;color:#18242b;font-size:13px;font-weight:600;white-space:normal}
.studio .studio-gallery-commit .studio-gallery-use:hover{background:#f47b27;border-color:#913c12}
.studio-gallery-description>.studio-custom-error{flex:none;max-height:100px;overflow:auto;margin:0;padding:10px 18px;background:#fff3f3;color:#b71c1c;border-top:1px solid #efb6b6;font-size:13px}
.studio-config-tabs{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:#f4f4f5;border-bottom:1px solid #e4e4e7;margin:14px 16px 0;border:0;border-radius:6px}
.studio .studio-config-tabs button{min-height:34px;padding:7px 4px;border:0;border-right:0;border-radius:4px;background:transparent;color:#52525b;font-size:13px}
.studio .studio-config-tabs button:last-child{border-right:0}
.studio .studio-config-tabs button[aria-pressed=true]{background:#18242b;color:#ff8a3d;font-weight:600;box-shadow:none}
.studio-config-body{padding:20px}
.studio-config-heading{margin:0 0 16px}
.studio .studio-config-heading h3{font:600 14px/1.4 "Segoe UI",Arial,sans-serif;margin:0 0 6px;color:#18181b;text-transform:none;letter-spacing:0}
.studio .studio-config-heading p{margin:0;font-size:12px;color:#52525b;line-height:1.5}
.studio .studio-config-label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px;color:#3f3f46;font-size:13px;font-weight:600}
.studio .studio-config-label textarea,.studio .studio-config-label select{flex-basis:100%;box-sizing:border-box;display:block;width:100%;margin:0;padding:9px 11px;border:1px solid #d4d4d8;border-radius:8px;background:#fff;color:#18181b;font:400 13px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:none}
.studio .studio-config-label textarea{min-height:76px;resize:vertical}
.studio .studio-config-label select{height:38px;min-height:38px}
.studio-linked-note{margin:-5px 0 16px;color:#52525b;font-size:12px;line-height:1.5}
.studio-config-tag{margin-left:auto;font-size:12px;font-weight:400;color:#52525b}
.studio-config-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 14px}
.studio .studio-config-photos button{min-width:0;overflow:hidden;padding:3px;border:1px solid #e4e4e7;background:#fff;box-shadow:none}
.studio-config-photos img{display:block;width:100%;height:66px;object-fit:cover;border-radius:2px}
.studio-config-photos button>span{display:block;padding:5px 2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio .studio-config-photos button[aria-pressed=true]{border-color:#087e8b;box-shadow:inset 0 0 0 1px #087e8b;background:#eaf5f5}
.studio-config-hint{margin:0 0 14px;font-size:12px;line-height:1.5;color:#52525b}
.studio .studio-config-original{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:0 0 14px;padding:9px 10px;border:1px solid #e4e4e7;background:#fff;color:#3f3f46;text-align:left;white-space:normal}
.studio-config-original>span:first-child{font-size:21px}
.studio-config-original>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.studio-config-original strong{font-size:13px;font-weight:600}
.studio-config-original small{font-size:12px;color:#52525b}
.studio .studio-config-original[aria-pressed=true]{border-color:#087e8b;background:#eaf5f5}
.studio-config-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.studio .studio-config-styles button{display:flex;flex-direction:column;min-width:0;padding:3px;border:1px solid #e4e4e7;overflow:hidden;background:#fff;color:#3f3f46;text-align:left}
.studio .studio-config-styles .studio-style-sample{display:block;position:relative;width:100%;height:70px;min-height:70px;padding:10px 8px;font-size:28px;line-height:1;overflow:hidden;border-radius:2px}
.studio-config-styles .studio-style-sample>i{position:absolute;bottom:8px;right:8px;width:13px;height:13px;border:1px solid #0005;border-radius:2px}
.studio-config-styles .studio-style-sample>i+i{right:24px}
.studio-config-styles button>strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;padding:7px 3px;font-size:12px;font-weight:600;white-space:nowrap}
.studio .studio-config-styles button[aria-pressed=true]{border-color:#087e8b;box-shadow:inset 0 0 0 1px #087e8b;background:#eaf5f5}
.studio-config-motions{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.studio .studio-config-motions button{display:flex;min-width:0;padding:10px;border:1px solid #e4e4e7;background:#fff;color:#3f3f46;text-align:left;white-space:normal}
.studio-config-motions button>span{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.studio-config-motions strong{font-size:13px;font-weight:600}
.studio-config-motions small{font-size:12px;line-height:1.4;color:#52525b}
.studio .studio-config-motions button[aria-pressed=true]{border-color:#087e8b;background:#eaf5f5;box-shadow:inset 3px 0 #087e8b}
.studio .studio-config-still{width:100%;min-height:34px;padding:7px 10px;border:1px solid #d4d4d8;background:#fff;color:#3f3f46;font-size:13px}
.studio .studio-config-still[aria-pressed=true]{background:#087e8b;border-color:#087e8b;color:#fff}
.studio-config-duration{min-width:0;margin:20px 0 0;padding:0;border:0}
.studio-config-duration>legend{padding-bottom:8px;font-size:13px;font-weight:600;color:#3f3f46}
.studio-config-duration>div{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:4px}
.studio .studio-config-duration button{min-width:0;min-height:32px;padding:5px 2px;border:1px solid #d4d4d8;background:#fff;color:#3f3f46;font-size:12px;white-space:nowrap}
.studio .studio-config-duration button[aria-pressed=true]{background:#087e8b;border-color:#087e8b;color:#fff}
.studio-config-duration>p{margin:8px 0 0;font-size:12px;line-height:1.5;color:#52525b}
.studio .studio-config-reset{display:block;width:100%;min-height:34px;margin-top:18px;padding:7px 10px;border:1px solid #d4d4d8;background:#f4f4f5;color:#3f3f46;text-align:center;font-size:13px}
.studio .studio-gallery[data-presenting=true] .studio-gallery-showcase{grid-template-columns:minmax(0,1fr)}
.studio .studio-gallery[data-presenting=true] .studio-gallery-player{padding-left:clamp(24px,8vw,130px);padding-right:clamp(24px,8vw,130px)}
@media(min-width:1500px){.studio .studio-gallery-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.studio .studio-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio .studio-gallery-toolbar{grid-template-columns:minmax(180px,1fr) 180px 190px}.studio .studio-gallery-showcase{grid-template-columns:minmax(0,1fr) 320px}.studio .studio-gallery-description{width:320px}.studio-gallery-transport [data-gallery=replay]>span{display:none}}
@media(max-width:760px){.studio .studio-gallery-top{padding:10px 16px}.studio .studio-gallery-toolbar{grid-template-columns:1fr 1fr;padding:14px 16px;gap:12px}.studio-gallery-search{grid-column:1/-1}.studio .studio-gallery-categories{padding:0 16px}.studio .studio-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 20px;gap:12px}.studio-gallery-results{padding-left:16px;padding-right:16px}.studio .studio-gallery-cover{height:260px}.studio .studio-gallery[data-gallery-format=landscape] .studio-gallery-cover{height:150px}.studio .studio-gallery[data-gallery-format=square] .studio-gallery-cover{height:200px}.studio .studio-gallery-detail{overflow-y:auto;overflow-x:hidden}.studio .studio-gallery-detail-top{position:sticky;top:0;z-index:7;padding:0 12px;gap:8px}.studio .studio-gallery-detail-top>span{display:none}.studio .studio-gallery-showcase{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 64px);overflow:visible}.studio .studio-gallery-player{height:60dvh;min-height:360px;flex:none;padding:14px 16px}.studio .studio-gallery-description{width:100%;height:auto;overflow:visible;border-left:0}.studio-gallery-configurator{flex:none;overflow:visible}.studio-config-tabs{top:64px;z-index:5}.studio-gallery-commit{position:sticky;bottom:0;z-index:6}.studio .studio-gallery[data-presenting=true] .studio-gallery-player{height:calc(100dvh - 64px);padding-left:16px;padding-right:16px}.studio-gallery-page-label{max-width:140px}.studio-gallery-transport [data-gallery=replay]>span{display:none}.studio-config-photos img{height:90px}}
@media(max-width:430px){.studio .studio-gallery-grid{gap:10px;padding-left:12px;padding-right:12px}.studio .studio-gallery-cover{height:220px}.studio .studio-gallery[data-gallery-format=landscape] .studio-gallery-cover{height:120px}.studio .studio-gallery[data-gallery-format=square] .studio-gallery-cover{height:160px}.studio .studio-gallery-card-copy{padding:9px}.studio .studio-gallery-card-copy>strong{font-size:13px}.studio-gallery-actions{gap:6px}.studio .studio-gallery-heading h1{font-size:18px}.studio-gallery-page-label{max-width:100px}.studio .studio-gallery-playbar{gap:6px}}
@media(prefers-reduced-motion:reduce){.studio .studio-gallery button{transition:none}}
