/* Reference fidelity: controls measured from shots.so at 1440×900, both themes. */
:root { --shot-frame-surface:#262626; --shot-frame-line:#f0f0f01f; --shot-frame-ink:#f0f0f0; --shot-frame-tile:#f0f0f014; --shot-frame-field:#f0f0f00f }
@media (prefers-color-scheme: light) {
  :root { --shot-frame-surface:#f4f4f4; --shot-frame-line:#00000016; --shot-frame-ink:#171717; --shot-frame-tile:#0000000a; --shot-frame-field:#0000000a }
}
/* Frame selector: same 212×48 trigger as reference, 32px content thumb. */
#frame-size-picker{height:48px;min-height:48px;display:flex;align-items:center;gap:10px;padding:4px 12px;background:var(--shot-frame-surface);border:0;border-radius:12px;text-align:left}
#frame-size-picker:hover{background:var(--active)}
#frame-size-picker .frame-size-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:0;background:transparent}
#frame-size-picker .frame-size-icon i{display:block;width:32px;max-width:32px;max-height:32px;min-height:3px;border-radius:3px;border:1px solid var(--shot-frame-ink);background:color-mix(in srgb,var(--shot-frame-ink) 36%,transparent)}
#frame-size-picker #frame-size-name{flex:1;min-width:0;display:grid;gap:0;color:var(--fg);font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#frame-size-picker #frame-size-name small{font-size:10px;font-weight:400;line-height:14px;color:var(--muted);font-variant-numeric:tabular-nums}
#frame-size-picker [data-icon=down]{margin-left:auto}
#frame-size-picker [data-icon=down] svg{width:12px;height:12px}
#frame-size-picker[aria-expanded=true] [data-icon=down]{transform:rotate(180deg)}
/* The original Shots frame picker is not a gallery/modal.
   It's a 320px anchored dropdown without a large title or close button. */
#picker:has(#frame-ratio){width:320px!important;max-width:calc(100vw - 14px)!important;height:min(639px,calc(100dvh - var(--selector-y,159px) - 8px));max-height:min(639px,calc(100dvh - var(--selector-y,159px) - 8px));padding:0!important;border-radius:16px!important;border:0!important;inset:var(--selector-y,159px) auto auto var(--selector-x,14px)!important;margin:0!important;background:var(--shot-frame-surface)!important;color:var(--shot-frame-ink)!important;box-shadow:0 9px 25px #0003;overflow:hidden!important}
#picker:has(#frame-ratio)::backdrop{background:transparent!important;backdrop-filter:none!important}
#picker:has(#frame-ratio)>header{display:none!important}
#picker:has(#frame-ratio)>#picker-content{height:100%;overflow:hidden;margin:0!important;padding:0!important}
#picker:has(#frame-ratio) #frame-ratio{display:flex;flex-direction:column;height:100%;padding:0!important;margin:0!important;gap:0;min-height:0}
#frame-ratio .shots-frame-custom{height:60px;padding:12px 12px 10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;align-items:center;gap:8px;flex:none}
#frame-ratio .shots-frame-dimension{position:relative;height:36px;min-width:0;display:block}
#frame-ratio .shots-frame-dimension>span{position:absolute;left:10px;top:11px;z-index:1;color:var(--muted);font-size:11px;pointer-events:none;font-weight:500}
#frame-ratio .shots-frame-dimension>input{display:block;width:100%;min-width:0;height:36px;padding:7px 10px 7px 26px;appearance:textfield;-moz-appearance:textfield;border:0;border-radius:10px;background:var(--shot-frame-field);color:var(--shot-frame-ink);text-align:right;font-size:13px;font-weight:400;font-variant-numeric:tabular-nums}
#frame-ratio input::-webkit-outer-spin-button,#frame-ratio input::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none;margin:0}
#frame-ratio #frame-set{height:36px;width:42px;padding:0;border-radius:10px;background:var(--shot-frame-ink);color:var(--shot-frame-surface);font-size:12px;font-weight:500;box-shadow:0 1px 5px #0002}
#frame-ratio #frame-set:disabled{opacity:.36}
#frame-ratio .shots-frame-divider{height:1px;flex:none;margin:0 20px 12px;background:var(--shot-frame-line)}
#frame-ratio .frame-ratio-groups{display:block;flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--shot-frame-line) transparent;padding:0 12px 16px}
#frame-ratio .frame-preset-group{display:block;margin:0!important;padding:0!important;border:0!important}
#frame-ratio .frame-preset-group+ .frame-preset-group{margin-top:12px!important;padding-top:12px!important;border-top:1px solid var(--shot-frame-line)!important}
#frame-ratio .frame-preset-group h3{display:flex;gap:7px;align-items:center;min-height:25px;margin:0 0 10px;padding:0 6px;color:var(--shot-frame-ink);font-size:15px;font-weight:500;line-height:22px;text-transform:none;letter-spacing:normal}
#frame-ratio .frame-preset-group h3 img{display:block;width:20px;height:20px;object-fit:contain}
#frame-ratio .frame-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 8px;margin:0;padding:0}
#frame-ratio button.frame-preset-item{display:flex;align-items:center;flex-direction:column;gap:0;padding:0;margin:0;min-width:0;width:100%;min-height:99px;border:0;border-radius:0;background:transparent;cursor:pointer;text-align:center;box-shadow:none;outline:0}
#frame-ratio button.frame-preset-item:hover{background:transparent}
#frame-ratio button.frame-preset-item .frame-preset-visual{height:83px;display:grid;place-items:end center;width:100%;padding:8px}
#frame-ratio button.frame-preset-item .frame-preset-shape{display:grid;place-items:center;width:auto;height:auto;max-width:76.6px;max-height:67.3px;border-radius:10px;outline:1px solid var(--shot-frame-line);outline-offset:0;background:var(--shot-frame-tile);box-shadow:none;flex:none}
#frame-ratio button.frame-preset-item .frame-preset-shape[style*=aspect-ratio]{width:min(76.6px,calc(67.3px * var(--frame-ratio,1)));height:min(67.3px,calc(76.6px / var(--frame-ratio,1)))}
#frame-ratio button.frame-preset-item[aria-pressed=true] .frame-preset-shape{outline:1px solid var(--shot-frame-ink);outline-offset:3px}
#frame-ratio button.frame-preset-item .frame-preset-shape img{width:20px;height:20px;object-fit:contain;display:block}
#frame-ratio button.frame-preset-item .frame-preset-meta{display:grid;justify-items:center;align-items:center;width:100%;margin-top:0;line-height:16px}
#frame-ratio button.frame-preset-item .frame-preset-name{font-size:11px;line-height:16px;font-weight:400;color:var(--shot-frame-ink);width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#frame-ratio button.frame-preset-item .frame-preset-meta small{font-size:10px;line-height:14px;color:var(--muted);font-weight:400}
/* Color picker: original 228px floating surface, not a sidebar inspector or an RGB form. */
#color-flyout{position:fixed;z-index:1100;width:228px;min-height:308px;display:flex;flex-direction:column;gap:12px;padding:12px;background:#eee;color:#242424;border:1px solid #00000008;border-radius:19px;box-shadow:0 5px 19px #0004,0 1px 4px #0002}
#color-flyout[hidden]{display:none!important}
#color-flyout h3{font:500 15px/20px Inter,sans-serif;color:#222;text-transform:none;letter-spacing:normal;margin:0}
#color-flyout .shots-color-surface{width:204px;height:200px;display:flex;flex-direction:column;gap:0;margin:0}
#color-flyout #color-sv{position:relative;flex:none;height:168px;min-height:168px;width:204px;cursor:crosshair;touch-action:none;border-radius:8px 8px 0 0;border:0;outline:0;box-shadow:none;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),hsl(var(--hue,0) 100% 50%)}
#color-flyout #color-sv-pointer{display:block;position:absolute;width:26px;height:26px;border:2px solid #fff;background:transparent;border-radius:50%;box-shadow:0 1px 4px #0004;transform:translate(-50%,-50%);pointer-events:none}
#color-flyout .shots-hue,#color-flyout .shots-alpha{display:block;flex:none;height:16px;width:204px;margin:0;border:0;padding:0;border-radius:0;appearance:none;-webkit-appearance:none;accent-color:#fff;cursor:pointer}
#color-flyout .shots-hue{background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);border-radius:0 0 8px 8px}
#color-flyout .shots-alpha{background:linear-gradient(to right,#fff0,#fff),repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%) 0 0/10px 10px;border-radius:0 0 8px 8px}
#color-flyout .shots-hue::-webkit-slider-thumb,#color-flyout .shots-alpha::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border:3px solid white;border-radius:50%;box-shadow:0 1px 5px #0005;background:transparent}
#color-flyout #color-hex{display:block;width:204px;height:36px;min-height:36px;flex:none;padding:5px 12px;border:0;outline-offset:2px;border-radius:9px;background:#dedede;color:#6d6d6d;font:400 13px/20px Inter,sans-serif;text-align:center;letter-spacing:0}
#color-flyout input:focus-visible,#color-flyout #color-sv:focus-visible{outline:2px solid #7b7b7b;outline-offset:3px}
#color-flyout .shots-hidden-color-tools{display:none!important}
/* The original screenshot display is a black 208×88 thumbnail, no extra permanent remove row. */
.media-settings .upload{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:88px;overflow:hidden;padding:0;background:#090909;border:0;border-radius:11px}
.media-settings .upload.has-media{height:88px;padding:0;background:#080808;border:0}
.media-settings .upload .media-thumbnail{display:block;width:100%;height:100%;object-fit:contain;border-radius:11px}
.media-settings .upload.has-media:hover:after{display:none}
.media-settings .upload-caption{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px;color:var(--subtle);font-size:11px}
.media-settings .remove-media{position:absolute;top:auto;right:12px;visibility:hidden;width:1px;height:1px;margin:0;padding:0;overflow:hidden}
.media-settings:focus-within .remove-media{visibility:visible;width:auto;height:auto;padding:4px 7px;right:12px;transform:translateY(-30px);z-index:2;font-size:10px;color:var(--fg);background:var(--panel);border-radius:7px}
/* Keep all additional transitions in Shots' neutral control language. */
.editor.performance-mode #performance{box-shadow:inset 0 0 0 1px var(--muted)!important}
.editor.performance-mode .stage{background:var(--bg);box-shadow:none!important}
.editor.preview .stage{transition:padding .42s cubic-bezier(.2,.8,.2,1)}
@media(max-width:800px){
  #picker:has(#frame-ratio){inset:auto 6px 6px!important;width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;height:min(640px,70dvh);max-height:70dvh}
  #frame-ratio .frame-ratio-groups{padding-inline:12px}
  #color-flyout{left:max(6px,calc(50vw - 114px))!important;top:max(6px,calc(50vh - 154px))!important}
}
@media(prefers-reduced-motion:reduce){.editor.preview .stage{transition:none}}
/* Watermark panel reconstructed from measured Shots controls:
   236px inspector popover, carousel, four original preview tiles, tone and 3 size/position widgets. */
dialog[data-surface=inspector]:has(#frame-watermark)>header{display:none}
dialog[data-surface=inspector]:has(#frame-watermark) #picker-content{padding:10px}
#frame-watermark{display:grid;gap:18px;padding:0!important}
#frame-watermark[hidden]{display:none!important}
.shots-watermark-slides{display:grid;gap:6px}
.shots-watermark-nav{height:76px;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--fg)}
.shots-watermark-nav>button{display:grid;place-items:center;width:30px;height:50px;flex:none;font-size:22px;font-weight:300;background:transparent;color:var(--fg);border-radius:8px}
.shots-watermark-nav>button:disabled{opacity:.3}
#watermark-layout-label{display:block;min-width:0;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;text-align:center}
.shots-watermark-dots{display:flex;gap:5px;justify-content:center;align-items:center;height:14px;margin-top:-12px}
.shots-watermark-dots button{display:block;padding:0;width:5px;height:5px;background:var(--subtle);opacity:.4;border-radius:50%;flex:none}
.shots-watermark-dots button[aria-pressed=true]{opacity:1;background:var(--fg)}
.shots-watermark-entry{display:flex;align-items:center;gap:7px;min-height:38px}
.shots-watermark-entry #watermark-upload{display:grid;place-items:center;width:34px;height:38px;flex:none;border-radius:10px;background:var(--slider-track);color:var(--muted)}
.shots-watermark-entry #watermark-upload svg{width:15px;height:15px}
.shots-watermark-entry #watermark{width:100%;min-width:0;height:38px;padding:8px 10px;border:0;border-radius:11px;background:var(--slider-track);color:var(--fg);font-size:12px;outline-offset:2px}
.shots-watermark-entry #watermark::placeholder{color:var(--subtle)}
.shots-watermark-entry #watermark-remove{width:22px;height:32px;flex:none;display:grid;place-items:center;color:var(--muted)}
.shots-watermark-entry #watermark-remove[hidden]{display:none}
.shots-watermark-entry #watermark-remove svg{width:13px;height:13px}
.shots-watermark-heading{margin:0 0 -10px!important;padding:0!important;color:var(--muted);font-size:10px!important;font-weight:500!important;letter-spacing:.025em!important;text-transform:uppercase!important}
.shots-watermark-style-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.shots-watermark-style-row button{min-width:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:var(--muted);background:transparent;border:0}
.shots-watermark-style-row button img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;border:1px solid transparent}
.shots-watermark-style-row button[aria-pressed=true] img{border:1px solid var(--fg);outline:1px solid var(--fg);outline-offset:2px}
.shots-watermark-tones{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shots-watermark-tones button{min-height:34px;background:var(--slider-track);border-radius:999px;color:var(--muted);font-size:12px}
.shots-watermark-tones button[aria-pressed=true]{color:var(--fg);background:var(--active)}
.shots-watermark-adjustments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.shots-watermark-number,.shots-watermark-position-widget{display:grid;gap:7px;min-width:0;justify-items:center;text-align:center;color:var(--subtle);font-size:10px}
.shots-watermark-number input,.shots-watermark-position-grid{width:100%;height:65px;min-width:0;padding:0;box-sizing:border-box;background:var(--slider-track);border:0;border-radius:11px;color:var(--fg)}
.shots-watermark-number input{appearance:textfield;-moz-appearance:textfield;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;outline-offset:2px}
.shots-watermark-number input::-webkit-inner-spin-button,.shots-watermark-number input::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none}
.shots-watermark-position-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);align-items:center;justify-items:center;padding:11px 12px;gap:2px}
.shots-watermark-position-grid button{width:10px;height:10px;padding:0;border-radius:3px;background:var(--muted);opacity:.22}
.shots-watermark-position-grid button[aria-pressed=true]{background:var(--fg);opacity:.95}
#frame-watermark.watermark-disabled .shots-watermark-style-row,#frame-watermark.watermark-disabled .shots-watermark-tones,#frame-watermark.watermark-disabled .shots-watermark-adjustments{opacity:.55}
.export-output-warning{font-size:12px;line-height:1.4;color:var(--muted);margin:8px 0}
@media(max-width:800px){dialog[data-surface=inspector]:has(#frame-watermark) #picker-content{padding:12px}#frame-watermark{gap:15px}}
/* Match the watermark inspector anchor measured in the Shots reference viewport. */
@media(min-width:801px){dialog[data-surface=inspector]:has(#frame-watermark){inset:87px auto auto 240px;max-height:calc(100dvh - 95px)}}
/* Source watermark popover uses its own light-neutral surface even on the dark editor. */
dialog[data-surface=inspector]:has(#frame-watermark){--panel:#ebebeb;--slider-track:#dedede;--active:#f2f2f2;--fg:#29292b;--muted:#858588;--subtle:#a2a2a5;--line:#d2d2d2;background:#ebebeb;color:#29292b;box-shadow:0 10px 26px #0003}
#watermark-layout-label{display:flex;align-items:center;justify-content:center;gap:7px}
#watermark-layout-label svg{display:block;width:19px;height:19px;flex:none}
.shots-watermark-position-grid{padding:9px 10px;gap:1px}
.shots-watermark-position-grid button{width:100%;height:100%;min-width:0;min-height:0;border-radius:4px;background:transparent;opacity:1}
.shots-watermark-position-grid button[aria-pressed=true]{background:#f7f7f7;box-shadow:0 1px 3px #0001;border-radius:6px}
.shots-watermark-position-grid button:not([aria-pressed=true]):hover,.shots-watermark-position-grid button:not([aria-pressed=true]):focus-visible{background:#fff8;opacity:.6}
/* Unsplash search surface: dimensions/pills/search field from the live Shots inspector. */
dialog[data-surface=inspector]:has(.unsplash-control){--panel:#ececec;--slider-track:#dddddd;--active:#f5f5f5;--fg:#262626;--muted:#747474;--subtle:#969696;--line:#d1d1d1;width:276px;max-height:min(76dvh,660px);inset:356px auto auto 240px;background:var(--panel);border-radius:16px;color:var(--fg);box-shadow:0 7px 20px #0003}
dialog[data-surface=inspector]:has(.unsplash-control)>header{display:none}
dialog[data-surface=inspector]:has(.unsplash-control) #picker-content{padding:12px}
.unsplash-control{width:100%;display:flex;flex-direction:column;gap:14px;min-height:120px}
.unsplash-search-bar{position:relative;display:flex;width:100%;height:38px;border-radius:12px;background:var(--slider-track);align-items:center;gap:8px;padding:0 12px;color:var(--muted)}
.unsplash-search-bar span{font-size:18px;font-weight:500}
.unsplash-search-bar input{width:100%;min-width:0;height:100%;border:0;background:transparent;color:var(--fg);font:400 13px/19px Inter,sans-serif;outline:0}
.unsplash-search-bar input::-webkit-search-cancel-button{-webkit-appearance:none}
.unsplash-search-bar input::placeholder{color:var(--muted)}
.unsplash-initial-state{display:flex;flex-direction:column;align-items:center;gap:22px;padding:12px 0 0}
.unsplash-initial-state[hidden],.unsplash-results[hidden],.unsplash-message[hidden]{display:none!important}
.unsplash-wordmark{font-size:28px;font-weight:750;letter-spacing:-.065em;color:var(--fg);line-height:35px}
.unsplash-suggest-buttons{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px}
.unsplash-suggest-buttons button{display:block;padding:7px 12px;border-radius:999px;font-size:11px;font-weight:450;background:#e5e5e5;color:var(--fg);border:1px solid #00000009}
.unsplash-suggest-buttons button:hover{background:#d7d7d7}
.unsplash-message{margin:0;font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:break-word}
.unsplash-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:min(48dvh,420px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#bbb transparent;padding-bottom:3px}
.unsplash-photo{width:100%;min-width:0;overflow:hidden;display:grid;gap:3px}
.unsplash-photo-choice{border:0;padding:0;min-height:75px;max-height:170px;width:100%;overflow:hidden;border-radius:9px;background:#d2d2d2}
.unsplash-photo-choice:hover{outline:2px solid #888}
.unsplash-photo-choice:disabled{opacity:.5}
.unsplash-photo-choice img{display:block;width:100%;height:120px;object-fit:cover}
.unsplash-photo small{display:block;width:100%;font-size:8.5px;line-height:1.3;color:var(--muted);overflow-wrap:break-word}
.unsplash-photo small a{color:#4d4d4d;text-decoration:underline;text-underline-offset:2px}
@media(max-width:800px){dialog[data-surface=inspector]:has(.unsplash-control){inset:auto 6px 6px;width:calc(100% - 12px);max-height:75dvh}.unsplash-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Unsplash inspector: source-calibrated dimensions from the live reference. */
dialog[data-surface=inspector]:has(.unsplash-control){inset:307px auto auto 240px;width:280px}
dialog[data-surface=inspector]:has(.unsplash-control) #picker-content{padding:0 12px 12px}
.unsplash-control{gap:4px}
.unsplash-search-bar{height:60px;min-height:60px;width:calc(100% + 24px);margin-left:-12px;padding:12px;gap:0;position:relative;background:transparent;border-radius:0}
.unsplash-search-bar input{height:36px;min-height:36px;width:100%;padding:7px 10px 7px 36px;border-radius:10px;background:#0000000f;color:#222}
.unsplash-search-bar>span{position:absolute;left:23px;top:23px;z-index:1;font-size:15px}
.unsplash-initial-state{height:181px;min-height:181px;padding:32px 0 0;gap:45px}
.unsplash-wordmark{display:block;width:128px;height:29px;min-height:29px;object-fit:contain}
.unsplash-suggest-buttons{gap:8px}
.unsplash-suggest-buttons button{font-size:11px;line-height:20px;height:34px;padding:7px 10px;white-space:nowrap;background:#0000000f;border:0;border-radius:100px}
.unsplash-suggest-buttons button:hover{background:#00000017}
@media(max-width:800px){dialog[data-surface=inspector]:has(.unsplash-control){inset:auto 6px 6px!important;width:calc(100% - 12px)!important}}
/* Exact source geometry: search x252/y331 256×36; logo x316/y415 128×29; suggestions y489. */
@media(min-width:801px){dialog[data-surface=inspector]:has(.unsplash-control){inset:318px auto auto 239px;width:282px}}
/* Shots empty mockup uses a neutral light media dropzone, not a dark overlay. */
.stage-upload{color:#777777}
.stage-upload strong{color:#777777}
.stage-upload small{color:#888888}
.stage-upload .drop-icons>span svg{color:#171719}
.stage-upload .drop-icons>i svg{color:#66666a}
