:root{color-scheme:dark;--bg:#080f1b;--surface:#101c2a;--panel:#111d2b;--line:#263648;--ink:#eef5ff;--muted:#a0b2c5;--blue:#2caffd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 80% -5%,#143c60 0,transparent 36%),var(--bg);color:var(--ink);font:15px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}.shell{max-width:1160px;width:calc(100% - 44px);margin:0 auto}a{color:#95d8ff}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.header{border-bottom:1px solid #293647;background:#09131eea;position:sticky;top:0;z-index:4;backdrop-filter:blur(10px)}.top{height:77px;display:flex;align-items:center;gap:28px}.brand{display:flex;gap:10px;align-items:center;min-width:188px;text-decoration:none;color:white;font-size:22px;font-weight:850;letter-spacing:-1px}.brand small{font-size:10px;letter-spacing:1.6px;color:#8fa6bc}.brand-icon{height:40px;width:40px;background:#0a2e4b;border:1px solid #326791;border-radius:13px;display:grid;place-items:center;color:#48baff;font-size:26px}.accent{color:#40b9ff}nav{display:flex;gap:26px;margin-left:auto}nav a{font-size:13px;text-decoration:none;color:#afc0d0;font-weight:600}nav a:hover{color:#fff}.lang-area select{border-radius:9px;border:1px solid #35516b;background:#132436;color:#e6f2ff;padding:8px 10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.hero{display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:38px;min-height:410px;padding:48px 0 42px}.eyebrow{font-weight:750;font-size:11px;letter-spacing:1.7px;color:#91d6ff;display:inline-flex;gap:9px;align-items:center}.light-dot{display:inline-block;width:7px;height:7px;background:#4bfab0;border-radius:50%;box-shadow:0 0 12px #4bfab0}.muted{color:#7daac6}h1{font-size:clamp(48px,6vw,79px);line-height:1.02;letter-spacing:-4px;margin:15px 0 19px}h2{font-size:clamp(25px,3.4vw,36px);letter-spacing:-1.2px;line-height:1.25;margin:7px 0}h3{margin:0;font-size:17px}.lead{font-size:16px;color:#b5c8dc;max-width:520px}.facts{display:flex;flex-wrap:wrap;gap:16px;color:#a6bcd2;font-size:13px;margin-top:25px}.facts>span{white-space:nowrap}.hero-art{position:relative;padding:20px 9px 20px 0}.art-window{border:1px solid #36536b;box-shadow:0 12px 70px #04080eb0;background:#101923;border-radius:15px;overflow:hidden;transform:perspective(1300px) rotateY(-5deg)}.window-top{background:#1d2936;height:40px;display:flex;align-items:center;gap:7px;padding:0 17px}.window-top i{height:7px;width:7px;border-radius:50%;background:#6b839b}.window-top span{margin:auto;color:#879bad;font-size:11px}.window-content{padding:18px 25px 24px}.art-post{display:flex;gap:12px;margin-bottom:14px}.art-avatar{height:39px;width:39px;border-radius:50%;background:linear-gradient(125deg,#275a87,#8dcdff)}.art-lines{flex:1;display:grid;gap:6px;align-content:center}.art-lines b{height:10px;background:#273e54;border-radius:20px;width:76%}.art-lines b:last-child{width:48%;height:8px}.art-video{height:170px;border-radius:13px;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 63% 29%,#1b93cb,#19334d 48%,#0c172b 86%);overflow:hidden}.art-video:before{content:"";position:absolute;width:150px;height:150px;border:13px solid #67bfea33;transform:rotate(29deg);border-radius:35px}.play{z-index:2;width:47px;height:47px;display:grid;place-items:center;background:#ffffff33;border:1px solid #ffffff78;border-radius:50%}.art-timeline{position:absolute;bottom:15px;left:17px;right:17px;background:#9cbaca44;height:4px;border-radius:10px}.art-timeline span{display:block;width:33%;height:4px;background:#59c3ff;border-radius:10px}.art-buttons{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.art-buttons span{border:1px solid #32729f;border-radius:50px;padding:6px 10px;font-size:11px;font-weight:750;background:#123048;color:#a6ddff}.art-tag{position:absolute;bottom:6px;right:1px;transform:rotate(4deg);background:#1a83cf;color:white;padding:7px 10px;font-weight:900;font-size:10px;letter-spacing:1px;border-radius:7px}.tool-section{padding:33px 0}.sectionhead{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:22px}.sectionhead p{color:var(--muted);margin:4px 0}.beta-flag{border:1px solid #35708e;background:#123a4a;padding:7px 13px;border-radius:50px;white-space:nowrap;color:#9dd9f7;font-size:12px}.studio-grid{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:20px}.pane,.installcard{border:1px solid var(--line);background:linear-gradient(155deg,#122438,#0e1926);border-radius:21px;padding:24px}.pane-title{display:flex;align-items:center;gap:13px;margin-bottom:24px}.step{border:1px solid #3a719b;color:#95d4fb;background:#183a52;display:grid;place-items:center;border-radius:11px;width:37px;height:37px;font-weight:800}.label,.editfields label{font-size:12px;color:#b9d0e3;font-weight:750;display:block;margin-bottom:8px}.inputrow{display:flex;gap:8px}.inputrow input{min-width:0;flex:1}.inputrow input,.editfields input[type=number],.select{background:#091524;border:1px solid #37506a;color:#edf7ff;border-radius:10px;padding:12px;outline:none;width:100%;font-size:13px}.inputrow input:focus,.editfields input:focus,.select:focus{border-color:#42bdff;box-shadow:0 0 0 2px #3bacf62b}.primary,.outline{border:1px solid #349de1;border-radius:10px;background:#199bea;color:white;font-size:13px;padding:12px 15px;font-weight:800}.primary:hover:not(:disabled){background:#30b3ff}.outline{background:#172d42;color:#b7dfff;border-color:#3b6382;text-decoration:none}.outline:hover{background:#1e3953}.help{font-size:12px;color:#92a9be;line-height:1.55}.inline-state{min-height:15px;color:#9fcbe8;font-size:12px;margin-top:8px}.inline-state.error,#editorStatus.error{color:#ffae9e}.inline-state.success,#editorStatus.success{color:#70e8b1}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.or{display:flex;gap:15px;align-items:center;color:#7f96aa;margin:23px 0;font-size:11px;font-weight:800}.or:before,.or:after{content:"";flex:1;height:1px;background:#324356}.filepick{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px;cursor:pointer;border:1px dashed #3682b4;background:#0d2439;border-radius:13px;color:#d8ebfb}.filepick strong{display:block;font-size:13px}.filepick small{display:block;color:#91b1c8;font-size:11px;margin-top:4px}.upload-icon{display:grid;place-items:center;height:39px;width:39px;border-radius:12px;background:#15456b;color:#7fcdf7;font-size:22px}.preview{height:224px;position:relative;border-radius:13px;background:#060e18;overflow:hidden;display:grid;place-items:center;border:1px solid #2a3d52}.preview video{height:100%;width:100%;object-fit:contain;display:none}.preview-placeholder{display:grid;place-items:center;gap:8px;color:#8fa8bd;text-align:center}.preview-placeholder span{width:57px;height:57px;display:grid;place-items:center;color:#7fcafa;background:#102941;border:1px solid #295c7e;border-radius:50%;font-size:18px}.preview-placeholder strong{color:#e1efff;font-size:13px}.preview-placeholder small{font-size:11px}.file-meta{font-size:11px;color:#8db3ce;min-height:19px;margin:10px 0}.editfields{display:grid;gap:12px}.editfields .line{display:grid;gap:5px}.editfields .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editfields label{margin:0 0 5px}.editfields .checkline{display:flex;align-items:center;gap:8px;font-size:13px}.editfields input[type=checkbox]{accent-color:#2caffd}.audio-control{display:flex;align-items:center}.export-btn{width:100%;margin-top:5px}.editfields progress{width:100%;accent-color:#26b2fc}.section{padding:58px 0}.installgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.installcard{min-height:225px}.installcard .logo-square{font-weight:900;color:#a2d9fc;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#1b4b70;margin-bottom:12px}.installcard p{font-size:13px;color:#a8bccf}.unavailable{font-size:12px;font-weight:700;color:#ffc66c}.privacy-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.privacy-cards>div{border:1px solid #293a4c;background:#111f2e;padding:20px;border-radius:14px}.privacy-cards h3{font-size:15px}.privacy-cards p{font-size:13px;color:#aabdd0}.footer{display:flex;gap:15px;justify-content:space-between;padding:26px 0 40px;border-top:1px solid var(--line);font-size:12px;color:#809ab2}.footer a{color:#a3cfe8}@media(max-width:920px){.hero{grid-template-columns:1fr;min-height:unset}.hero-art{max-width:560px}.studio-grid,.installgrid{grid-template-columns:1fr}nav{gap:11px}.brand{min-width:unset}}@media(max-width:580px){.shell{width:calc(100% - 30px)}.top{gap:8px;height:68px}.brand{font-size:18px}.brand small{display:none}.brand-icon{width:32px;height:32px;font-size:20px}nav{margin-left:auto;gap:10px}nav a{font-size:11px}.lang-area select{padding:6px 4px;max-width:76px}.hero{padding:34px 0 15px;gap:12px}h1{letter-spacing:-2px;font-size:48px}.hero-art{display:none}.pane,.installcard{padding:18px}.sectionhead{align-items:start;flex-direction:column;gap:10px}.privacy-cards{grid-template-columns:1fr}.footer{flex-direction:column}.editfields .two{gap:8px}}
[hidden]{display:none!important}

/* XClip 1.4: one timeline with two draggable range handles. */
.trim-shell{padding:13px 14px 8px;background:#0d1825;border:1px solid #2a4055;border-radius:14px;margin:8px 0 14px}
.trim-shell[hidden]{display:none}.trim-head,.trim-markers{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#c3d3e2;font-size:12px}
.trim-head strong{color:#63bcff;font-variant-numeric:tabular-nums}.trim-frames{height:52px;border-radius:9px;overflow:hidden;margin-top:12px;display:flex;justify-content:space-between;align-items:center;color:#81a6bc;font-size:11px;background:repeating-linear-gradient(90deg,#152e44 0,#152e44 42px,#0a1f30 42px,#0a1f30 48px)}.trim-frames span{padding:4px 7px;background:#122c3ab3}
.trim-rail{position:relative;margin:1px 8px 6px;height:32px;--a:0%;--b:100%}.trim-rail:before{content:'';position:absolute;height:7px;background:#23394c;top:12px;left:0;right:0;border-radius:6px}.trim-rail .trim-highlight{position:absolute;height:7px;top:12px;left:var(--a);right:calc(100% - var(--b));background:#1d9bf0;border-radius:6px}
.trim-rail input{position:absolute;inset:0;width:100%;height:32px;margin:0;background:transparent;appearance:none;-webkit-appearance:none;pointer-events:none}.trim-rail input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:auto;height:27px;width:16px;border:3px solid #1d9bf0;background:#fff;border-radius:8px;cursor:ew-resize;box-shadow:0 2px 6px #0008}.trim-rail input::-moz-range-thumb{pointer-events:auto;height:22px;width:12px;border:3px solid #1d9bf0;background:#fff;border-radius:8px;cursor:ew-resize}.trim-rail input::-webkit-slider-runnable-track{background:transparent}
.trim-markers{color:#7591a7;font-size:11px}.donate-inline{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border-top:1px solid #263a4b;padding-top:14px}.donate-inline code{font:12px/1.4 monospace;overflow-wrap:anywhere;color:#9bd3ff}.donate-inline button{margin-left:auto}
.studio-grid .pane{box-shadow:none}.actions button,.installcard,.outline{box-shadow:none}

/* XClip Web v1.4.1: compact actions and GIF presets */
.studio-grid{gap:12px!important}.studio-grid .pane{padding:18px!important;border-radius:16px!important;box-shadow:none!important}
.pane-title{margin-bottom:13px!important}.pane-title h3{font-size:16px!important}
.studio-grid .actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.studio-grid .actions button{padding:8px 10px!important;font-size:12px!important;border-radius:8px!important;white-space:nowrap}
.gif-shortcuts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 0;color:#98abc1;font-size:12px}
.gif-shortcuts button{border-radius:8px!important;padding:5px 8px!important;font-size:12px!important}
.donate-inline{border-top:1px solid #2a4056!important}.donate-inline span{font-weight:600;color:#9bc8e8}
#linkStatus.error{max-width:620px;line-height:1.5}.trim-frames{opacity:.72}
@media(max-width:600px){.studio-grid .pane{padding:14px!important}.studio-grid .actions button{flex:1}.gif-shortcuts button{flex:1}}

/* XClip 1.5 — X-inspired compact light/dark themes */
:root{--bg:#000;--surface:#000;--panel:#000;--line:#2f3336;--ink:#e7e9ea;--muted:#71767b;--blue:#1d9bf0;color-scheme:dark}
html[data-theme="light"]{--bg:#fff;--surface:#fff;--panel:#fff;--line:#eff3f4;--ink:#0f1419;--muted:#536471;--blue:#1d9bf0;color-scheme:light}
body{background:var(--bg)!important;color:var(--ink)!important;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.header{background:var(--surface)!important;border-bottom:1px solid var(--line)!important}.top{height:62px!important;gap:12px!important}
.brand{color:var(--ink)!important;min-width:150px!important}.brand small{color:var(--muted)!important}.accent{color:var(--blue)!important}
.brand-icon{background:transparent!important;border:1px solid var(--line)!important;border-radius:50%!important;color:var(--blue)!important}
nav a{color:var(--muted)!important}nav a:hover{color:var(--ink)!important}.nav-support{display:inline-flex;align-items:center;gap:5px}
.theme-toggle{display:inline-flex;align-items:center;gap:6px;margin-left:8px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:7px 12px;font-size:12px;white-space:nowrap}.theme-toggle:hover{background:rgba(29,155,240,.10)}.theme-toggle span:first-child{font-size:16px}
.lang-area select{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:99px!important}
.hero{min-height:290px!important;padding:34px 0 24px!important;gap:18px!important}.hero h1{font-size:clamp(38px,5vw,61px)!important;letter-spacing:-2.8px!important}
.lead,.facts,.sectionhead p,.help,.file-meta,.inline-state{color:var(--muted)!important}.eyebrow{color:var(--blue)!important}
.art-window{box-shadow:none!important;border-color:var(--line)!important;background:#101923!important}.art-buttons span{border:0!important;border-radius:20px!important;background:transparent!important;color:#9dd5ff!important}
.section,.tool-section{padding:28px 0!important}.sectionhead{gap:10px!important}.sectionhead h2{font-size:clamp(24px,3vw,32px)!important}
.studio-grid{gap:0!important;border:1px solid var(--line)!important;border-radius:16px!important;overflow:hidden}
.studio-grid .pane{border:0!important;border-radius:0!important;background:var(--surface)!important;padding:16px!important;box-shadow:none!important;color:var(--ink)!important}
.source-pane{border-right:1px solid var(--line)!important}.pane-title{gap:8px!important;margin-bottom:12px!important}.pane-title h3{font-size:15px!important}
.step{border-radius:9px!important;padding:5px 7px!important;font-size:11px!important}
.filepick{border:1px dashed var(--line)!important;background:var(--surface)!important;color:var(--ink)!important;padding:12px!important}
.inputrow input,.studio-grid input[type=number],.studio-grid select{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:10px!important}
.studio-grid .label,.studio-grid label{color:var(--muted)!important}
.preview{height:210px!important;background:#0f1419!important;border-radius:10px!important;border-color:var(--line)!important}
.preview-placeholder{color:#a0b4c3!important}.preview-placeholder strong{color:#e7e9ea!important}
.primary{background:var(--blue)!important}.outline{background:transparent!important;border-color:var(--line)!important;color:var(--ink)!important}.outline:hover{background:rgba(29,155,240,.09)!important}
.actions button{padding:9px 12px!important;border-radius:99px!important}
.editfields .two{gap:8px!important}.editfields select,.editfields input[type=number]{padding:8px!important}
.gif-shortcuts{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;padding:8px 0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
.gif-shortcuts button{font-size:12px!important;padding:7px 10px!important}
.trim-shell{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:10px!important}
.trim-head{color:var(--ink)!important}.trim-head strong{color:var(--blue)!important}
.trim-frames{height:34px!important;background:repeating-linear-gradient(90deg,#1d9bf027 0,#1d9bf027 40px,transparent 41px,transparent 45px)!important;color:var(--muted)!important;opacity:1!important}.trim-frames span{background:transparent!important}
.installcard,.privacy-cards>div{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
.installcard p,.privacy-cards p,.checkline{color:var(--muted)!important}.footer{border-color:var(--line)!important;color:var(--muted)!important}
html[data-theme="light"] .tag,html[data-theme="light"] .step,html[data-theme="light"] .beta-flag{background:#e8f5fd!important;color:#116ca6!important;border-color:#a3d6f9!important}
html[data-theme="light"] .preview-placeholder small{color:#acbcc7!important}html[data-theme="light"] .unavailable{color:#976000!important}
@media(max-width:920px){.source-pane{border-right:0!important;border-bottom:1px solid var(--line)!important}}
@media(max-width:620px){.top{gap:8px!important}.brand{min-width:unset!important}.theme-toggle{margin:0!important;padding:6px 9px!important}.theme-toggle #theme-label{display:none!important}nav{gap:9px!important}.studio-grid .pane{padding:12px!important}.hero{padding:21px 0!important}.hero-art{display:none!important}.hero h1{font-size:41px!important}}


/* v1.6 — mobile-first and softened light theme, no fake filmstrip */
html[data-theme=light]{--bg:#f1f4f7;--surface:#f7f9fb;--panel:#f7f9fb;--line:#dce3e9;--ink:#17212b;--muted:#586879}
html[data-theme=light] body{background:#f1f4f7!important}html[data-theme=light] .studio-grid .pane{background:#f7f9fb!important}
html[data-theme=light] .header,html[data-theme=light] .installcard,html[data-theme=light] .privacy-cards>div{background:#f7f9fb!important}
html[data-theme=light] .inputrow input,html[data-theme=light] .select{background:#f1f4f7!important}
.trim-frames{display:none!important}.trim-rail{margin-top:14px!important}
.clip-player{display:flex;align-items:center;gap:10px;padding:10px 1px;margin:4px 0;color:var(--ink)}.clip-player[hidden]{display:none!important}
.clip-player button{border:0;border-radius:50%;background:#1d9bf0;color:white;font-size:14px;min-width:34px;min-height:34px}.clip-player input{min-width:0;flex:1;accent-color:#1d9bf0}.clip-player strong{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.trim-head strong{font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:640px){
 .shell{width:calc(100% - 22px)!important}
 .top nav{display:none!important}
 .brand{font-size:20px!important}
 main.shell{display:flex;flex-direction:column}
 #tool{order:-1;margin-top:0!important}
 .tool-section{padding-top:16px!important}
 .hero{min-height:0!important;padding:16px 0!important;grid-template-columns:1fr!important}
 .hero h1{font-size:32px!important;line-height:1.05!important;letter-spacing:-1.5px!important}
 .hero .facts{gap:6px;flex-wrap:wrap}
 .sectionhead h2{font-size:24px!important}
 .studio-grid{border-radius:12px!important}
 .studio-grid .pane{padding:12px 10px!important}
 .inputrow input{min-width:0!important;width:100%}
 .inputrow button{white-space:nowrap}
 .preview{min-height:185px!important;height:210px!important}
 .gif-shortcuts{flex-wrap:wrap!important}
 .editfields .two{grid-template-columns:1fr 1fr!important}
 .trim-shell{padding:10px 8px!important}
 .trim-rail input::-webkit-slider-thumb{width:24px!important;height:32px!important}
 .installgrid,.privacy-cards{grid-template-columns:1fr!important}
 .donate-inline code{font-size:11px}
}

/* Beta install is clearly separate from approved store links */
.beta-install{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);border-radius:16px;padding:22px;margin:18px 0 22px;background:var(--surface)}
.beta-install .beta-copy{flex:1;max-width:560px}.beta-copy .eyebrow{font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--blue)}.beta-copy h3{font-size:21px;letter-spacing:-.5px;line-height:1.2;margin:8px 0}.beta-copy p{font-size:13px;color:var(--muted);line-height:1.55}
.beta-links{display:grid;gap:9px;min-width:220px;max-width:290px}.beta-links a{text-align:center;text-decoration:none;border-radius:99px;font-size:12px;padding:11px 16px;font-weight:700}.beta-links .beta-cta{color:white!important;display:block}.beta-links small{font-size:11px;color:var(--muted);line-height:1.4}
@media(max-width:770px){.beta-install{display:block;padding:16px}.beta-links{margin-top:14px;max-width:none;min-width:0}.beta-copy h3{font-size:19px}}


/* 1.7.1: reliable mobile file hand-off after asynchronous media conversion */
.xclip-direct,.mobile-save-actions a{display:inline-flex;justify-content:center;align-items:center;gap:5px;text-decoration:none;font-weight:700;cursor:pointer;border-radius:99px!important}
.mobile-save-panel{margin:16px 0;padding:14px;border:1px solid var(--blue);border-radius:14px;background:color-mix(in srgb,var(--surface) 90%,var(--blue) 10%);color:var(--ink);line-height:1.45}
.mobile-save-panel[hidden]{display:none!important}
.mobile-save-panel strong{font-size:15px;display:block}.mobile-save-panel p{color:var(--muted);font-size:12px;margin:5px 0 14px}
.mobile-save-actions{display:flex;flex-wrap:wrap;gap:9px}
.mobile-save-actions a,.mobile-save-actions button{min-height:44px;flex:1 1 170px;padding:10px!important;font-size:13px!important}
.mobile-save-panel small{display:block;color:var(--muted);font-size:11px;margin-top:10px}
@media(max-width:640px){#resolved .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#resolved .actions>*{font-size:12px!important;min-height:45px;display:flex;align-items:center;justify-content:center;padding:9px 6px!important}#resolved .actions #downloadDirect{grid-column:1/-1} .mobile-save-actions{flex-direction:column} .mobile-save-actions>*{width:100%;flex:initial}}
