/* SnipyCut visual foundation v1. UI only: never recolor project media or canvas pixels. */
:root{--sc-brand:#08c7b7;--sc-action:#166b61;--sc-action-hover:#10564e;--sc-action-text:#fff;--sc-soft:#e5f3ee;--sc-bg:#f6f4ef;--sc-surface:#fffdf9;--sc-surface-2:#eff2ed;--sc-text:#253731;--sc-muted:#52645d;--sc-line:#d4ded7;--sc-radius:10px;--sc-focus:#187d70;--sc-danger:#b23f35;--sc-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--green:var(--sc-action);--green-dark:var(--sc-action-hover);--dark:var(--sc-action-hover);--soft:var(--sc-soft);--purple:var(--sc-action);--radius:18px}
html[data-theme=dark]{--sc-action:#4edac5;--sc-action-hover:#75e5d4;--sc-action-text:#10241e;--sc-soft:#1b3c32;--sc-bg:#101917;--sc-surface:#16231f;--sc-surface-2:#1d2e27;--sc-text:#eef6f1;--sc-muted:#b2c3ba;--sc-line:#344a3f;--sc-focus:#4edac5;--sc-danger:#ff9f92}
body{font-family:var(--sc-font)}
:is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--sc-focus)!important;outline-offset:3px}
:is(button,input,select,textarea){accent-color:var(--sc-action)}
/* Official identity in marketing, campaign and image-editor headers. */
:is(.site-header,.sitebar,.campaign-header,.site-footer) :is(.brand,.campaign-brand){display:inline-block!important;flex-shrink:0;width:184px;height:40px;background:url('/assets/snipycut-logo.svg') left center/contain no-repeat!important;font-size:0!important;line-height:0!important;letter-spacing:0;overflow:hidden;vertical-align:middle}
:is(.site-header,.sitebar,.campaign-header,.site-footer) :is(.brand,.campaign-brand)>*{display:none!important}
:is(.site-header,.sitebar,.campaign-header,.site-footer) :is(.brand,.campaign-brand)::before,:is(.site-header,.sitebar,.campaign-header,.site-footer) :is(.brand,.campaign-brand)::after{content:none!important}
.sitebar .brand{width:158px;height:35px}
html[data-theme=dark] :is(.brand,.campaign-brand){background-image:url('/assets/snipycut-logo-dark.svg')!important}
html[data-theme=dark] .sc-editor-home img{content:url('/assets/snipycut-logo-dark.svg')}
#root div[aria-label=SnipyCut]{background:url('/assets/snipycut-symbol.svg') center/contain no-repeat!important;box-shadow:none!important;color:transparent!important;border-radius:0!important}
#root div[aria-label=SnipyCut]>span{visibility:hidden}
#root:not(:has(.editor-shell)) [class*=radial-gradient]{background-image:radial-gradient(ellipse at top,rgba(8,199,183,.07),transparent 65%)!important}
/* Public pages retain their content and card geometry. */
body:not(:has(.editor-shell)){--bg:var(--sc-bg);--surface:var(--sc-surface);--surface-2:var(--sc-surface-2);--text:var(--sc-text);--muted:var(--sc-muted);--line:var(--sc-line);--ink:var(--sc-text);--paper:var(--sc-bg);--panel:var(--sc-surface);--accent:var(--sc-action)}
:is(.btn,button,.lang-link){border-radius:var(--sc-radius)}
body:not(:has(#root)) :is(button,.btn){min-height:44px}
body:not(:has(#root)) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select){min-height:44px}
:is(.btn-primary,.primary,.tool-submit,.cookie-actions .accept){background:var(--sc-action);border-color:var(--sc-action);color:var(--sc-action-text)}
:is(.btn-primary,.primary,.tool-submit,.cookie-actions .accept):hover:not(:disabled){background:var(--sc-action-hover);border-color:var(--sc-action-hover);color:var(--sc-action-text)}
:is(.btn,.nav-cta,.menu-btn,.lang-link){font-weight:650}
.nav-cta{background:var(--sc-action)!important;border-color:var(--sc-action)!important;color:var(--sc-action-text)!important}
.product-nav a:hover,.product-nav a.active{background:var(--sc-soft)!important;color:var(--sc-action)!important}
.product-nav-label{color:var(--sc-muted)!important}
.hero-panel{background:linear-gradient(120deg,var(--sc-soft),var(--sc-surface) 75%);border-color:var(--sc-line)}
.discovery-card[data-tool-category=ai] .tool-icon{background:var(--sc-soft);color:var(--sc-action)}
.ai-tabs button.active,.ai-tabs button[aria-pressed=true],.ai-mode.active,[data-ai-mode][aria-pressed=true]{background:var(--sc-action)!important;color:var(--sc-action-text)!important;border-color:var(--sc-action)!important}
.ai-side,.ai-aside,.ai-how{background:var(--sc-soft)!important;border-color:var(--sc-line)!important}
.ai-mode{background:var(--sc-surface)!important;border-color:var(--sc-line)!important;color:var(--sc-muted)!important}
.ai-mode.active,.ai-mode[aria-pressed=true]{background:var(--sc-action)!important;color:var(--sc-action-text)!important;border-color:var(--sc-action)!important}
.ai-flow span,.ai-scene,.ai-panel,.ai-form :is(input,textarea,select){border-color:var(--sc-line)!important}
.ai-form label,.ai-status,.ai-note,.ai-scene small{color:var(--sc-muted)}
.ai-scene-time{color:var(--sc-action)}
.photo-editor .panel-pin[aria-pressed=true]{background:var(--sc-action);border-color:var(--sc-action);color:var(--sc-action-text)}
:is(.tool,.tool-icon) svg{stroke-width:1.7}
/* Common navigation, self-contained so legacy page CSS cannot change it. */
.sc-main-nav{display:flex;align-items:center;gap:24px;min-height:72px}
.sc-main-nav .sc-nav-links{display:flex;align-items:center;gap:20px;margin-left:auto}
.sc-main-nav .sc-nav-links>a{font:650 14px/1.3 var(--sc-font);color:var(--sc-muted);text-decoration:none;white-space:nowrap}
.sc-main-nav .sc-nav-links>a:hover,.sc-main-nav .sc-nav-links>a[aria-current=page]{color:var(--sc-action)}
.sc-main-nav .sc-nav-links>.sc-nav-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;background:var(--sc-action);color:var(--sc-action-text);border:1px solid var(--sc-action);border-radius:var(--sc-radius)}
.sc-main-nav .sc-nav-links>.sc-nav-primary:hover{background:var(--sc-action-hover);color:var(--sc-action-text);border-color:var(--sc-action-hover)}
.sc-main-nav .sc-menu-toggle{display:none;background:var(--sc-surface);border:1px solid var(--sc-line);color:var(--sc-text);padding:8px 12px;min-height:44px;font:650 14px var(--sc-font)}
.sc-site-footer{border-top:1px solid var(--sc-line);background:var(--sc-surface);padding:28px 0!important;color:var(--sc-muted);font:13px/1.6 var(--sc-font)}
.sc-footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.sc-footer-main .sc-footer-links{display:flex;gap:18px;flex-wrap:wrap}
.sc-footer-links a,.sc-footer-legal a{color:var(--sc-muted);text-decoration:none}
.sc-footer-links a:hover,.sc-footer-legal a:hover{color:var(--sc-action);text-decoration:underline}
.sc-footer-legal{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--sc-line);margin-top:20px;padding-top:16px}
.sc-footer-legal .sc-copyright{margin-right:auto}
@media(max-width:900px){.sc-main-nav{position:relative;min-height:64px;gap:12px}.sc-main-nav .sc-menu-toggle{display:block;margin-left:auto}.sc-main-nav .sc-nav-links{display:none;position:absolute;top:100%;left:0;right:0;z-index:100;background:var(--sc-surface);border:1px solid var(--sc-line);border-radius:12px;padding:12px;box-shadow:0 12px 30px #153b2520;gap:4px}.sc-main-nav .sc-nav-links.open{display:flex;flex-direction:column;align-items:stretch}.sc-main-nav .sc-nav-links>a{display:flex;align-items:center;min-height:44px;padding:10px}.sc-main-nav .sc-nav-links>.sc-nav-primary{margin-top:6px}.sc-main-nav .brand{width:158px;height:35px}.sc-footer-main{align-items:flex-start}.sc-footer-legal{gap:12px}.sc-footer-legal .sc-copyright{width:100%}}
/* Both native theme tokens and the SnipyCut editor adapter use this palette. */
html:root,html[data-theme=light]{--primary:173 65% 25%;--primary-foreground:0 0% 100%;--ring:173 65% 25%;--accent-hsl:156 37% 93%}
html[data-theme=dark]{--primary:171 65% 58%;--primary-foreground:156 38% 10%;--ring:171 65% 58%;--accent-hsl:158 38% 17%}
html:root .editor-shell,html[data-theme=light] .editor-shell{--bg:var(--sc-bg)!important;--bg-1:var(--sc-surface)!important;--bg-2:var(--sc-surface-2)!important;--bg-3:#e5ece6!important;--fg:var(--sc-text)!important;--fg-1:var(--sc-text)!important;--fg-2:var(--sc-text)!important;--fg-3:var(--sc-muted)!important;--fg-muted:var(--sc-muted)!important;--border:var(--sc-line)!important;--border-strong:#859b90!important;--hover:var(--sc-soft)!important;--selected:var(--sc-soft)!important;--accent:var(--sc-action)!important;--accent-strong:var(--sc-action-hover)!important;--accent-soft:var(--sc-soft)!important;--accent-fg:var(--sc-action-text)!important;--primary:173 65% 25%!important;--primary-foreground:0 0% 100%!important;--ring:173 65% 25%!important}
html[data-theme=dark] .editor-shell{--bg-3:#263d31!important;--primary:171 65% 58%!important;--primary-foreground:156 38% 10%!important;--ring:171 65% 58%!important}
html:root .editor-shell,html [data-astryx-theme]{--color-accent:var(--sc-action)!important;--color-accent-muted:var(--sc-soft)!important;--color-text-accent:var(--sc-action)!important;--color-icon-accent:var(--sc-action)!important;--color-on-accent:var(--sc-action-text)!important}
html:root .editor-shell [data-tour=preview]>.flex-1{background-color:#e6ebe5!important}
html[data-theme=dark] .editor-shell [data-tour=preview]>.flex-1{background-color:#101917!important}
html:root .editor-shell [data-tour=preview]>.flex-1>.relative.isolate{box-shadow:0 0 0 1px var(--sc-line),0 4px 16px #193c2420!important}
html:root .editor-shell [data-tour=assets]>.flex>button[aria-pressed=true],html:root .editor-shell [data-preview-tools] button[aria-pressed=true],html:root .editor-shell>.editor-workspace-tabs button[aria-pressed=true]{color:var(--sc-action)!important;background-color:var(--sc-soft)!important;box-shadow:inset 0 0 0 1px var(--sc-action)!important}
html:root .editor-shell :is(button,input,textarea,select):focus-visible{outline:2px solid var(--sc-focus)!important;outline-offset:2px}
html:root .editor-shell [data-timeline-clip][aria-pressed=true]{outline:2px solid var(--sc-action)!important;outline-offset:-2px}
.editor-shell button{border-radius:var(--sc-radius)}
.editor-shell button.bg-accent{color:var(--sc-action-text)!important}
.editor-shell button[class*=violet],.editor-shell button[class*=purple]{color:var(--sc-action)!important}
.editor-shell .sc-panel-pin[aria-pressed=true]{background:var(--sc-soft);color:var(--sc-action);border-color:var(--sc-action)}
@media(prefers-reduced-motion:reduce){.sc-nav-links,.sc-main-nav a{transition:none!important}}
