:root{--bg:#f8f6f1;--paper:#fffefa;--ink:#283c3b;--muted:#7b827a;--line:#e9e6dd;--orange:#bc6749;--green:#314d47;--soft:#ecefe6;--font:Tahoma,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bc674999;outline-offset:3px}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.sidebar{position:fixed;right:0;top:0;bottom:0;width:242px;background:#f0eee7;border-left:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;gap:13px;align-items:center}.brand b{font-size:21px;font-weight:700}.brand small{display:block;letter-spacing:2px;font:9px Arial,sans-serif;color:#8b9085;margin-top:8px}.brandmark{position:relative;width:39px;height:43px;display:block;flex-shrink:0}.brandmark i{position:absolute;left:4px;top:4px;border:1.8px solid var(--orange);width:32px;height:32px;border-radius:50%;transform:rotate(-35deg) scaleX(.55)}.brandmark i:nth-child(2){transform:rotate(35deg) scaleX(.55)}.brandmark i:nth-child(3){transform:rotate(90deg) scaleX(.55)}.brandmark:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:var(--orange);top:18px;left:17px}.side-label{font-size:10px;color:#939589;margin:58px 13px 18px}.sidebar nav{display:flex;flex-direction:column;gap:9px}.navitem{display:flex;align-items:center;gap:12px;background:none;border:0;width:100%;padding:15px 13px;text-align:right;border-radius:10px;font-size:12px;color:#727b71;min-height:47px}.navitem.active{background:#e0e5d9;color:#33483e;font-weight:bold}.navitem:hover{background:#e6e8df}.navitem .icon{width:19px;height:19px}.tiny{font-size:8px;border:1px solid #d7d9ce;border-radius:4px;padding:3px;margin-right:auto}.count{margin-right:auto;font:11px Arial;background:#e4e4d9;border-radius:5px;padding:3px 5px}.side-bottom{margin-top:auto}.version{display:flex;align-items:center;gap:8px;color:#93968b;font-size:10px;border-top:1px solid #dedfd3;padding:22px 12px 0;margin-top:20px}.version b{font:10px Arial;margin-right:auto}.online-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#82a179;flex-shrink:0}.app{margin-right:242px}.topbar{height:87px;padding:0 45px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{display:flex;align-items:center;gap:17px;font-size:11px}.breadcrumb>span{color:#969a90}.breadcrumb b{font-weight:400}.session{display:flex;align-items:center;gap:8px;font-size:10px;color:#7f897d}.avatar{background:#e5e9de;border:1px solid #dce0d4;width:34px;height:34px;border-radius:50%;color:#4c6752;margin-right:16px;font-size:14px}.mobile-brand{display:none}.view{max-width:1280px;margin:auto;padding:39px 45px 15px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:.3px;color:#8b927e}.eyebrow span{color:var(--orange);font-size:16px;margin-right:5px}h1{font-size:33px;line-height:1.6;letter-spacing:-.7px;margin:8px 0 5px;font-weight:600}h1 em{font-style:normal;color:var(--orange);font-weight:500}p{color:var(--muted);font-size:12px;line-height:1.9;margin:6px 0}.edition{display:flex;align-items:center;gap:8px;font-size:10px;color:#87917b;border:1px solid #e0e4d7;border-radius:7px;padding:9px 12px}.edition .icon{width:13px;height:13px}.hero{background:var(--ink);border-radius:20px;min-height:326px;color:#f4f1e4;display:grid;grid-template-columns:1fr 1fr;position:relative;overflow:hidden}.hero-content{padding:34px 37px;z-index:1}.hero-kicker{font-size:9px;letter-spacing:.3px;color:#b0bda9;display:flex;align-items:center;gap:7px}.hero-kicker .online-dot{background:#adb88d;width:5px;height:5px}.hero h2{font-size:32px;font-weight:500;line-height:1.6;margin:16px 0 10px;letter-spacing:-.3px}.hero p{color:#abb8ad;font-size:11px;line-height:2}.button{border:0;background:var(--ink);color:#fffdf5;border-radius:10px;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;font-size:12px;font-weight:500}.button.light{background:#e8e9d7;color:#283c3b;margin-top:22px;min-width:180px}.button .icon{width:18px;height:18px}.hero-content>small{font-size:9px;display:block;color:#91a293;margin-top:14px}.orbit-art{position:relative;direction:ltr;align-self:center;justify-self:center;width:330px;height:310px}.orb{position:absolute;left:50%;top:50%;border:1px solid #d0d8b417;border-radius:50%;transform:translate(-50%,-50%)}.r1{width:285px;height:285px}.r2{width:225px;height:225px;border-style:dashed;border-color:#b9c8ae33}.r3{width:155px;height:155px;border-color:#b9c8ae26}.orbit-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:96px;height:115px;border-radius:17px;background:linear-gradient(150deg,#506258,#354b43);border:1px solid #b9c8ae47;box-shadow:0 15px 40px #101f1c40;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:17px;color:#d8d9b9}.orbit-center .brandmark{transform:scale(1.1)}.orbit-center .brandmark i{border-color:#d3c79c}.orbit-center .brandmark:after{background:#d3c79c}.orbit-file{position:absolute;border:1px solid #93a79344;background:#3d5148e8;box-shadow:0 10px 15px #11272240;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;width:61px;height:66px;color:#d2d8b7}.orbit-file .icon{width:24px;height:24px;stroke-width:1.3}.orbit-file small{font-size:9px;color:#b7c5af}.of1{left:30px;top:55px;transform:rotate(-10deg)}.of2{right:38px;top:32px;transform:rotate(12deg)}.of3{left:45px;bottom:22px;transform:rotate(9deg)}.of4{right:25px;bottom:44px;transform:rotate(-9deg)}.spark{position:absolute;color:#c1bc91}.s1{top:30px;left:130px;font-size:16px}.s2{bottom:30px;right:115px;font-size:22px}.trust-strip{display:flex;justify-content:center;align-items:center;gap:42px;border-bottom:1px solid var(--line);padding:20px 0;color:#5f6a58;font-size:10px}.trust-strip>span{display:flex;align-items:center;gap:6px}.trust-strip .icon{width:14px;height:14px;color:#8e9f83}.tools-section{margin-top:33px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-head h2{font-size:18px;font-weight:600;margin:0}.section-head p{font-size:10px;margin:6px 0}.search{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:#fffefa;border-radius:9px;padding:9px 12px;color:#9b9f94}.search .icon{width:15px;height:15px}.search input{width:140px;border:0;background:none;font-size:10px;outline:none;color:var(--ink)}.filters{display:flex;gap:7px;margin:21px 0 18px;overflow:auto;padding:2px}.filter{white-space:nowrap;background:none;border:1px solid transparent;padding:9px 15px;border-radius:7px;font-size:10px;color:#5f6659}.filter.active{border-color:#dfe4d5;background:#e8ecdf;color:#40513b}.filter span{margin-right:7px;font-size:9px;opacity:.7}.tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.tool-card{border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:21px 17px;text-align:right;min-height:165px;position:relative;transition:transform .15s,border-color .15s}.tool-card:hover{border-color:#adb6a2;transform:translateY(-3px)}.tool-card .card-icon{display:flex;width:39px;height:39px;align-items:center;justify-content:center;border-radius:11px;margin-bottom:16px;background:#f3e8df;color:#b77551}.tool-card:nth-child(2) .card-icon,.tool-card:nth-child(6) .card-icon{background:#e9edde;color:#819266}.tool-card:nth-child(3) .card-icon,.tool-card:nth-child(7) .card-icon{background:#eee8dd;color:#a18c63}.tool-card:nth-child(4) .card-icon{background:#e4edeb;color:#72948a}.tool-card h3{font-size:12px;margin:0 0 8px;font-weight:600}.tool-card p{font-size:9px;line-height:1.8;margin:0}.tool-card .card-arrow{position:absolute;left:17px;top:25px;font:18px Arial;color:#a8ad9e}.local-tag{display:inline-flex;font-size:8px;gap:4px;align-items:center;color:#9b9e91;margin-top:13px}.local-tag:before{content:'';width:4px;height:4px;border-radius:50%;background:#9fab8b}.bottom-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin-top:30px}.recent-panel{padding:21px;border:1px solid var(--line);border-radius:13px;background:#fffefa66}.recent-panel h2{font-size:13px}.text-btn{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:#6b6551;font-size:10px;padding:5px}.empty-inline{display:flex;align-items:center;gap:16px;padding:24px 0 4px}.empty-inline>.icon{width:33px;height:33px;color:#b3b6a5}.empty-inline b{font-size:11px;font-weight:400;color:#8a9182}.empty-inline p{font-size:9px;margin-top:4px}.assistant-card{background:#eeeede;border:1px solid #e0e3d3;border-radius:13px;padding:24px;text-align:right;display:flex;align-items:center;gap:17px}.assistant-icon{color:#8c9772;background:#e1e4cf;border-radius:12px;width:41px;height:46px;display:grid;place-items:center;flex-shrink:0}.assistant-card .eyebrow{font-size:9px;color:#5c6649}.assistant-card h3{font-size:17px;font-weight:500;margin:10px 0 5px}.assistant-card p{font-size:10px}.arrow-circle{margin-right:auto;width:29px;height:29px;border:1px solid #cdd3bb;border-radius:50%;display:grid;place-items:center;color:#7e8d6c}footer{display:flex;align-items:center;justify-content:space-between;color:#696b5a;font-size:9px;margin-top:30px;border-top:1px solid var(--line);padding:18px 0 0}.mobile-nav{display:none}dialog{color:var(--ink);background:var(--bg);border:1px solid #e3e3d8;border-radius:20px;padding:25px;width:calc(100% - 32px);max-width:660px;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #172c2a33}dialog::backdrop{background:#182c2a88;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.dialog-head h2{font-size:21px;margin:7px 0}.icon-button{background:#eeeee5;border:1px solid #e1e3d5;width:38px;height:38px;flex-shrink:0;border-radius:50%;display:grid;place-items:center}.icon-button .icon{width:18px;height:18px}.upload-zone{border:1px dashed #c5cbb6;border-radius:13px;background:#f1f1e7;padding:27px 16px;text-align:center;cursor:pointer;display:block;width:100%;color:#829273}.upload-zone .icon{width:30px;height:30px;margin-bottom:10px}.upload-zone b{display:block;font-size:13px;color:#5f7357}.upload-zone small{display:block;font-size:10px;margin-top:9px;color:#959c89}.file-chips{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.file-chip{border:1px solid #dfe3d4;border-radius:7px;background:#edeee3;font-size:10px;padding:8px;max-width:100%;overflow-wrap:anywhere}.tool-preview{text-align:center;background:#e9e9e0;border:1px solid #dcdfd2;border-radius:13px;padding:12px;margin:15px 0;overflow:hidden}.tool-preview canvas,.tool-preview img{max-width:100%;max-height:280px;object-fit:contain}.tool-preview video{display:block;width:100%;max-height:350px;background:#111d1b;border-radius:8px}.tool-preview audio{width:100%;display:block}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;margin:15px 0;color:#66745f}.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea{padding:12px;border:1px solid #d9ddce;background:var(--paper);border-radius:9px;color:var(--ink);min-width:0;width:100%;outline:none}.field textarea{min-height:90px;resize:vertical;line-height:1.8}.field input[type=range]{width:100%;accent-color:var(--orange);direction:ltr}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fields-row .field{min-width:0}.field.checkbox{flex-direction:row;align-items:center}.field.checkbox input{width:17px;height:17px;accent-color:var(--green)}.tool-note,.notice{font-size:11px;line-height:1.9;background:#ecefe3;border:1px solid #dce3cf;color:#718063;padding:13px;border-radius:10px;margin:15px 0}.notice.warning{background:#f1e9df;border-color:#e7d8c6;color:#997650}.full{width:100%}.actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}.secondary{background:#e8ebdf;color:#53664a;border:1px solid #dbe1cf}.danger{color:#a16b53}.micro{font-size:9px;color:#969d8d;text-align:center;line-height:1.8}.process{padding:18px 0;text-align:center}.process progress{width:100%;accent-color:var(--green);height:8px}.process p{font-size:12px;color:#657757}.result-list{display:flex;flex-direction:column;gap:15px;margin-top:30px}.result-card{border:1px solid var(--line);padding:17px;border-radius:12px;background:var(--paper);display:flex;align-items:center;gap:15px}.result-card .result-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:48px;border-radius:9px;background:#e8ecdf;color:#8b9c79}.result-card .result-name{flex:1;min-width:0}.result-card b{display:block;font-size:12px;overflow-wrap:anywhere}.result-card small{display:block;font-size:10px;color:#9b9f90;margin-top:8px}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.result-actions .button{font-size:10px;min-height:36px;padding:8px 12px}.result-card img{width:50px;height:50px;object-fit:contain;border-radius:5px}.info-copy{font-size:12px;line-height:2;color:#76806e}.info-copy h3{font-size:14px;color:var(--ink);margin:18px 0 5px}.info-copy ul,.info-copy ol{padding-right:20px}.info-copy li{margin:8px 0}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 22px;background:#283c3b;color:#f5f1e4;box-shadow:0 5px 35px #10201a33;border-radius:11px;z-index:20;max-width:calc(100% - 32px);width:max-content;font-size:12px;line-height:1.7}.chat-shell{max-width:760px;margin:25px auto}.chat-log{display:flex;flex-direction:column;gap:15px;min-height:310px;max-height:55dvh;overflow:auto;padding:5px}.chat-message{max-width:90%;line-height:1.9;font-size:12px;background:#e9eddf;border:1px solid #e1e6d6;padding:16px 19px;border-radius:16px 16px 4px 16px;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}.chat-message.user{align-self:flex-end;background:#fffefa;border-color:var(--line);border-radius:16px 16px 16px 4px}.chat-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.chat-suggestions button{background:#f0eee5;border:1px solid #e3e1d6;font-size:10px;border-radius:20px;padding:10px 13px}.chat-composer{display:flex;align-items:flex-end;gap:12px;border:1px solid #dce0d1;background:var(--paper);padding:12px;border-radius:16px}.chat-composer textarea{flex:1;min-width:0;border:0;background:none;outline:0;resize:none;min-height:42px;max-height:160px;line-height:1.8;padding:10px 0;font-size:12px;color:var(--ink)}.send{width:42px;height:42px;border:0;border-radius:11px;background:var(--ink);color:white;display:grid;place-items:center}.send .icon{transform:rotate(180deg)}.chat-files{font-size:10px;color:#87957a;line-height:1.9;margin-top:10px;overflow-wrap:anywhere}.chat-result{margin-top:13px;display:block;width:100%;border:1px solid #cbd6bf;background:#f9fbf3;border-radius:9px;padding:11px;color:#4f6b41;font-size:11px}.drop-active:after{content:'أفلت الملفات أو مجلد كامل هنا';position:fixed;inset:15px;z-index:30;border:3px dashed #a8b88e;background:#eff3e8f5;border-radius:20px;display:grid;place-items:center;font-size:22px;color:var(--green);pointer-events:none}.media-meta{display:flex;justify-content:center;gap:20px;font-size:10px;color:#89967c;margin:12px 0}.inline-error{color:#a5654c;font-size:12px;line-height:1.8;margin:12px 0}.empty-state{text-align:center;padding:70px 20px;border:1px dashed #d8ddcc;border-radius:15px}.empty-state>.icon{width:43px;height:43px;color:#a8b299;margin-bottom:12px}.empty-state h3{font-size:16px;font-weight:500}.option-hint{font-size:10px;color:#8b957f;margin:5px 0}.working-dot{width:20px;height:20px;display:inline-block;border:2px solid #d8dfc9;border-top-color:#6b805c;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1550px){.view{padding-top:50px}.hero{min-height:355px}.hero-content{padding:38px 45px}.hero h2{font-size:37px}.orbit-art{transform:scale(1.1)}}
@media(max-width:1200px){.sidebar{width:205px;padding:30px 14px}.app{margin-right:205px}.topbar{padding-inline:30px}.view{padding:30px}.tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.orbit-art{width:285px;transform:scale(.9)}.hero-content{padding:30px}.hero h2{font-size:28px}.trust-strip{gap:25px}.brand b{font-size:19px}}
@media(max-width:900px){.sidebar{width:180px}.app{margin-right:180px}.brand{gap:8px}.brand b{font-size:16px}.brand small{font-size:8px}.navitem{font-size:11px;padding-inline:9px}.tiny{display:none}.view{padding:27px 23px}.topbar{height:75px;padding-inline:23px}.hero-content{padding:28px 25px}.hero h2{font-size:26px}.orbit-art{transform:scale(.75);width:230px}.trust-strip{gap:15px;font-size:9px}.tools-grid{gap:10px}.tool-card{padding:17px 13px}.tool-card h3{font-size:11px}.tool-card p{font-size:9px}.bottom-grid{grid-template-columns:1fr}.edition{display:none}.search input{width:110px}}
@media(max-width:680px){.sidebar{display:none}.app{margin:0}.topbar{height:76px;padding:15px 21px}.breadcrumb{display:none}.mobile-brand{display:flex}.mobile-brand b{font-size:17px}.mobile-brand .brandmark{transform:scale(.8);margin-left:-3px}.session>span:not(.online-dot){display:none}.session .online-dot{margin-left:4px}.avatar{margin-right:3px;width:31px;height:31px}.view{padding:27px 20px 105px}.welcome{margin-bottom:23px}.eyebrow{font-size:10px}h1{font-size:28px;margin-top:8px}.welcome p{font-size:11px;max-width:280px}.hero{grid-template-columns:1fr;min-height:440px;isolation:isolate;border-radius:17px}.hero-content{padding:28px 25px 24px;z-index:2}.hero h2{font-size:29px;margin-top:15px}.hero p{font-size:10px;max-width:230px}.hero .button{margin-top:22px}.hero-content>small{font-size:8px}.orbit-art{position:absolute;left:-39px;bottom:-40px;width:330px;height:310px;transform:scale(.68);transform-origin:bottom left;z-index:0;opacity:.9}.hero-content{padding-bottom:135px}.hero-kicker{font-size:9px}.hero:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,transparent 30%,#283c3b55 65%,#283c3bcc 100%);pointer-events:none}.trust-strip{padding:17px 0;justify-content:space-between;gap:8px;font-size:8px;flex-wrap:wrap;row-gap:12px}.trust-strip .icon{width:13px;height:13px}.trust-strip>span:nth-child(2){display:none}.tools-section{margin-top:28px}.section-head h2{font-size:17px}.section-head p{font-size:9px}.search{padding:10px}.search input{width:90px;font-size:9px}.filters{gap:0;margin:17px 0 15px;justify-content:space-between}.filter{font-size:9px;padding:9px 10px}.filter span{margin-right:3px;font-size:8px}.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.tool-card{padding:18px 15px;min-height:172px}.tool-card h3{font-size:12px;margin-bottom:9px}.tool-card p{font-size:9px}.tool-card .card-icon{margin-bottom:16px;width:36px;height:36px;border-radius:10px}.tool-card .card-arrow{left:15px;top:24px}.local-tag{margin-top:14px}.bottom-grid{gap:15px;margin-top:23px}.recent-panel{padding:18px}.assistant-card{padding:22px 18px}footer{font-size:8px;gap:10px}footer .text-btn{font-size:8px}.mobile-nav{display:flex;position:fixed;bottom:0;right:0;left:0;z-index:4;padding:9px 15px max(10px,env(safe-area-inset-bottom));background:#faf9f1f5;border-top:1px solid #e1e5d6;backdrop-filter:blur(12px);justify-content:space-around}.mobile-nav button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:9px;color:#979f8d;padding:6px 25px;min-height:43px}.mobile-nav button.active{color:#436144}.mobile-nav .icon{width:20px;height:20px}dialog{padding:20px;max-height:91dvh;margin:4dvh auto auto;max-width:calc(100% - 24px);border-radius:17px}.dialog-head h2{font-size:19px}.tool-note{font-size:10px}.result-card{flex-wrap:wrap;gap:12px}.result-actions{width:100%}.result-actions .button{flex:1}.fields-row{gap:11px}.field{font-size:10px}.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea{font-size:16px}.tool-preview{padding:7px}.tool-preview canvas{max-height:230px}#toast{bottom:100px;font-size:11px}.chat-log{max-height:50dvh;min-height:250px}.chat-message{font-size:11px;padding:13px 15px}.chat-composer textarea{font-size:16px}.chat-suggestions button{font-size:9px}.chat-composer{gap:8px}.chat-composer .icon-button{width:33px;height:39px}.chat-shell{margin-top:20px}.section-head>button{font-size:10px;padding:10px}.info-copy{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.cloud-settings{padding:12px 14px;border:1px solid #dce1d0;background:#eeeee4;border-radius:10px;margin:15px 0}.cloud-settings summary{cursor:pointer;font-size:12px;color:#5c7351}.key-state{float:left;font-size:9px;color:#9a8b6c}.transcript-output{width:100%;min-height:190px;max-height:40dvh;padding:13px;font:13px/1.9 Tahoma,Arial,sans-serif;background:#fffefa;border:1px solid #dce0d1;border-radius:10px;color:#283c3b;margin:14px 0;resize:vertical}.cloud-consent{line-height:1.9;color:#926e4b}.cloud-consent input{flex-shrink:0}#sepResult audio{margin-top:18px}.extra-error:empty{display:none}input.key-input{direction:ltr;text-align:left}#toolProcess{position:sticky;bottom:0;background:#f8f6f1f5;z-index:2;border-top:1px solid #dfe3d2}
.tool-card.featured-tool{border-color:#b9c3a4;background:#f0f3e7}.featured-tool .card-icon{background:#dde6cc!important;color:#5f7a44!important}.music-shortcut{display:block;width:fit-content;position:relative;margin-top:16px;font-size:11px;color:#e2dfbb;border-bottom:1px solid #d3d6aa55;padding-bottom:6px;line-height:1.9}.music-shortcut:focus-visible{outline-color:#f0dfae}
.colab-intro{padding:18px;border:1px solid #d9e1ce;border-radius:12px;background:#eef2e5}.colab-intro h3{font-size:18px;line-height:1.7;margin:12px 0}.colab-intro p{font-size:12px;line-height:2}.colab-badge{display:inline-block;font-size:11px;background:#dfe7cf;color:#567141;padding:7px 12px;border-radius:20px}.colab-steps{font-size:12px;line-height:2.1;padding-right:24px}.colab-steps li{margin:14px 0}.colab-steps span{overflow-wrap:anywhere}.cloud-settings p{font-size:11px;line-height:2}
/* A working orbit, not a decorative grid. Labels stay upright as tools revolve. */
.orbit-workspace{margin-top:20px;padding:22px 14px 14px;border:1px solid #dfe2d7;border-radius:30px;background:radial-gradient(ellipse at center,#e8eee1 0,#f7f8f0 39%,#fffefa 75%);overflow:hidden;position:relative;box-shadow:0 20px 55px #314d4706}.orbit-heading{display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#798875;font-size:10px}.orbit-live{display:flex;align-items:center;gap:7px}.orbit-live i{width:6px;height:6px;border-radius:50%;background:#6f9674;box-shadow:0 0 0 5px #6f967411}.tools-orbit{width:min(100%,620px);aspect-ratio:1;margin:4px auto;position:relative;isolation:isolate;touch-action:pan-y}.orbit-track{position:absolute;inset:10%;border:1px solid #7e997d35;border-radius:50%;pointer-events:none}.track-inner{inset:29%;border-style:dashed;border-color:#9b9d7a50}.orbit-glow{position:absolute;inset:32%;border-radius:50%;background:#dae4d2;filter:blur(24px);opacity:.8;pointer-events:none}.orbit-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:124px;height:124px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:1px solid #71847288;border-radius:50%;background:linear-gradient(145deg,#3e5b51,#223d36);color:#f8f3df;box-shadow:0 8px 35px #23483c25,0 0 0 9px #fffdfb70,0 0 0 10px #c5d0bd}.hub-mark{font-size:25px;color:#d0b98a;line-height:1}.orbit-hub b{font-size:20px;letter-spacing:1px}.orbit-hub small{font-size:7px;color:#c0ceb7}.orbit-tool{position:absolute;left:50%;top:50%;padding:10px 7px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid #d7dfd0;border-radius:50%;background:#fffefa;box-shadow:0 6px 18px #213a2d10;z-index:2;will-change:transform;text-align:center;transition:box-shadow .2s,border-color .2s;min-height:0}.orbit-tool:hover,.orbit-tool:focus-visible{border-color:#7c9572;box-shadow:0 6px 25px #3b5c4725;background:#f6f9ee}.orbit-tool strong{font-size:11px;line-height:1.5;max-width:100%;overflow-wrap:anywhere;font-weight:600}.orbit-glyph{color:#708c66;display:flex}.orbit-glyph .icon{width:24px;height:24px}.orbit-tag{font-size:7px;color:#8a947c;line-height:1}.orbit-tool[data-category="video"] .orbit-glyph{color:#b27e58}.orbit-tool[data-category="audio"] .orbit-glyph{color:#608e88}.orbit-tool[data-category="pdf"] .orbit-glyph{color:#a48d5f}.orbit-toolbar{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap}.orbit-toolbar>button{border:1px solid #d9dfd2;background:#fdfef8;border-radius:50%;width:36px;height:36px;font-size:16px}.orbit-toolbar>button:disabled{opacity:.3;cursor:default}.orbit-toolbar .orbit-pause{width:auto;min-width:110px;border-radius:40px;font-size:10px;padding-inline:14px}.orbit-range{font-variant-numeric:tabular-nums;min-width:85px;text-align:center;font-size:10px}.orbit-caption{text-align:center;color:#8c9682;font-size:10px;margin-top:13px}.filters{flex-wrap:wrap}.hero{min-height:230px}.hero .orbit-art{transform:scale(.8)}
@media(max-width:680px){.orbit-workspace{margin-inline:-7px;padding:17px 3px 14px;border-radius:24px}.orbit-heading{padding-inline:16px;font-size:9px}.orbit-tool{padding:7px 5px;gap:3px}.orbit-tool strong{font-size:9.7px;line-height:1.45}.orbit-glyph .icon{width:20px;height:20px}.orbit-tag{font-size:6.5px}.orbit-hub{width:82px;height:82px;box-shadow:0 8px 25px #23483c25,0 0 0 7px #fffdfb70,0 0 0 8px #c5d0bd}.orbit-hub b{font-size:17px}.hub-mark{font-size:19px}.orbit-hub small{display:none}.orbit-toolbar{gap:9px}.orbit-caption{font-size:9px}.hero{min-height:0;display:block}.hero-content{padding:20px 22px}.hero h2{font-size:24px;margin:10px 0}.hero h2 br{display:none}.hero .orbit-art{display:none}.hero-content>small{display:none}.hero-content .button{margin-top:12px}.welcome{margin-bottom:18px}.tools-section{margin-top:24px}.trust-strip{padding:15px 0}}
@media(prefers-reduced-motion:reduce){.orbit-tool{will-change:auto;transition:none}}

.hero h2>span{display:block;line-height:1.6}.hero h2{word-spacing:.08em;letter-spacing:normal}.orbit-tool{touch-action:pan-y}.session-ready{background:#e4efdf;border-color:#bfd1b0}.cloud-stage-meta{font-size:10px;color:#65785d;line-height:1.9}.design-preview{width:100%;max-height:350px;object-fit:contain}.qr-mode-note{line-height:1.9;font-size:12px}

.session-row{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px;line-height:1.8;padding:10px 0;border-bottom:1px solid #dce1d0}.session-row button{min-height:34px;padding:7px 15px;font-size:10px}.session-row:last-child{margin-bottom:15px}
.design-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:15px 0}.design-tile{padding:3px;border:1px solid #d5decf;border-radius:9px;background:#fafaf3;min-width:0}.design-tile.selected{outline:2px solid #708b61}.design-tile canvas{width:100%;height:auto;border-radius:6px}.design-tile span{display:block;font-size:9px;line-height:1.6;padding:4px 2px}.color-swatches{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.color-swatch{width:26px;height:26px;border:2px solid #dedfd4;border-radius:50%}.color-swatch:focus-visible{outline:2px solid #364b40}.result-preview-box{margin:18px 0;padding:15px;border:1px solid #dce2d1;border-radius:14px;background:#f5f7ed}.result-preview-box video,.result-preview-box audio,.result-preview-box img,.result-preview-box canvas{max-width:100%;max-height:390px;display:block;margin:auto}.result-preview-box video,.result-preview-box audio{width:100%}.result-preview-box textarea{width:100%;min-height:150px;font-size:15px;line-height:1.8}.result-preview-box .button{margin-top:10px}.workflow-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}@media(max-width:500px){.design-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}

.design-frames{border:1px solid #dce2d1;border-radius:14px;padding:12px;margin:12px 0 18px}.design-frames summary{cursor:pointer;font-weight:600;color:#365249}.design-gallery{grid-template-columns:repeat(4,minmax(0,1fr));max-height:420px;overflow:auto;padding:5px}.design-tile canvas{aspect-ratio:1}.design-preview{display:block;margin:12px auto;max-height:320px;width:auto;max-width:100%;border-radius:12px}.result-preview-box video{object-fit:contain;height:auto;max-height:min(56dvh,460px);background:#182926;border-radius:10px}.result-preview-box>h3{margin-block:0 12px}.cloud-settings pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:260px;overflow:auto}.allocation-log{max-height:120px;overflow:auto;font-size:10px;line-height:1.8}@media(max-width:500px){.design-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:360px}.design-preview{max-height:280px}.field{margin-bottom:16px}.result-preview-box{padding:10px}}

#colabError[data-kind=review]{color:#746343}#colabReview h3{font-size:16px;margin-top:0}#colabReview p{line-height:1.9}
@font-face{font-family:'Madar Sans';src:url('/fonts/DejaVuSans.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:'Madar Sans';src:url('/fonts/DejaVuSans-Bold.ttf') format('truetype');font-weight:700;font-display:swap}@font-face{font-family:'Madar Amiri';src:url('/fonts/Amiri-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:'Madar Amiri';src:url('/fonts/Amiri-Bold.ttf') format('truetype');font-weight:700;font-display:swap}.caption-studio{border:1px solid #deded5;border-radius:20px;padding:18px;margin:18px 0}.caption-stage{position:relative;overflow:hidden;border-radius:14px;background:#283c3b}.caption-stage canvas{display:block;width:100%;touch-action:none;cursor:move}.caption-stage [data-placeholder]{position:absolute;inset:0;display:grid;place-content:center;color:#fff;text-align:center;padding:20px}.caption-stage [data-placeholder][hidden]{display:none}.caption-position,.tool-personal,.tool-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0}.caption-position button,.tool-shortcuts button{border:1px solid #ddd;background:#f3f2e9;border-radius:12px;padding:8px 14px;color:#283c3b}.tool-personal select{max-width:220px}.favorite-toggle[aria-pressed=true]{background:#e3ead5}.quick-tools{margin:20px 0}

/* Live layout controls stay below a bounded, pinned preview. */
.caption-stage,.resize-stage{position:sticky;top:10px;z-index:3;display:flex;justify-content:center;background:#172b29;border:4px solid #f8f7ef;box-shadow:0 5px 16px #192b2926;isolation:isolate}
.caption-stage canvas,.resize-stage canvas{width:auto;max-width:100%;height:auto;max-height:32dvh;object-fit:contain;margin:auto}
.caption-stage [data-placeholder]{margin:0}.caption-studio{overflow:visible}.resize-studio{border:1px solid #deded5;border-radius:20px;padding:16px;margin:16px 0}.resize-stage{border-radius:14px;overflow:hidden;min-height:120px}.resize-stage p{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:white;padding:16px;margin:0}.resize-stage p[hidden]{display:none}.resize-studio output{display:block;color:#5c6a5e;font-size:12px;margin:10px 0}.resize-controls{margin-top:18px}.resize-controls input[type=range]{width:100%;accent-color:#3c6255;min-height:44px}
.tool-personal-panel{margin:0 0 18px;border-bottom:1px solid #dfe3d7;padding-bottom:14px}.personal-top{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}.personal-top>.favorite-toggle{min-height:44px;padding:10px 14px;white-space:nowrap}.preset-panel{flex:1;min-width:220px;background:#edf0e5;border:1px solid #dfe3d7;border-radius:14px;padding:12px 14px}.preset-panel summary{cursor:pointer;font-weight:700;min-height:24px;color:#405b4e}.preset-panel p{font-size:13px;line-height:1.9}.preset-panel .field{font-size:12px;margin:14px 0}.preset-panel select,.preset-panel input{width:100%;min-height:46px;border:1px solid #d5dacb;border-radius:10px;padding:10px;background:#fffefa;color:#283c3b;font:inherit}.preset-actions{display:flex;align-items:center;gap:12px}.preset-save{border-top:1px solid #d6ddcc;margin-top:16px;padding-top:2px}.preset-panel small{display:block;font-size:11px;line-height:1.8;margin-top:12px;color:#73806f}
.file-order-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #dfe3d6;border-radius:15px;padding:12px;margin:10px 0;background:#f1f2e8}.file-rank{display:grid;place-content:center;width:32px;height:32px;background:#dce5d0;border-radius:50%;font-weight:700}.file-order-name bdi{display:block;overflow-wrap:anywhere;font-size:14px}.file-order-name small{display:block;color:#7a8474;font-size:11px;margin-top:4px}.file-order-actions{grid-column:1/-1;display:flex;gap:8px;align-items:center}.file-order-actions .button{flex:1;min-height:44px;padding:8px 10px;font-size:13px}.file-order-actions .text-btn{min-height:44px;padding:8px}.order-help{font-size:12px;line-height:1.8;color:#62705d}.file-order-actions button:disabled{opacity:.35;cursor:default}.player-section{border:1px solid #e0e2d6;border-radius:16px;padding:14px;margin:16px 0}.player-section h3{margin:0 0 8px;font-size:16px}.player-section p{font-size:12px;line-height:1.8;color:#78816f}.player-section .actions{margin-bottom:0}
@media(max-width:500px){.preset-panel{min-width:100%}.caption-stage canvas,.resize-stage canvas{max-height:29dvh}.caption-studio,.resize-studio{padding:10px}.caption-stage,.resize-stage{top:6px}.file-order-actions .button{font-size:12px}}

.recent-strip{display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin:12px 0;min-height:52px}.recent-label{flex:none;white-space:nowrap;font-size:13px;color:#334b42}.recent-rail{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-y;cursor:grab;border-inline-start:1px solid #d9dfd2;padding:4px 8px;mask-image:linear-gradient(to right,transparent,#000 10px,#000 calc(100% - 10px),transparent)}.recent-rail::-webkit-scrollbar{display:none}.recent-rail:active{cursor:grabbing}.recent-track{display:flex;flex-direction:row-reverse;gap:8px;width:max-content;min-width:100%}.recent-tool{flex:none;white-space:nowrap;min-height:42px;border:1px solid #dce1d4;border-radius:24px;padding:9px 16px;background:#eef0e6;color:#314b40;font:inherit;font-size:13px;user-select:none;touch-action:pan-y}.recent-tool:hover{background:#e2e9d8}.recent-tool:focus-visible{outline:2px solid #648260;outline-offset:2px}.recent-motion{flex:none;width:30px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:#6c7f66;cursor:pointer;font-size:14px}.recent-motion[hidden]{display:none}@media(max-width:500px){.recent-strip{gap:7px}.recent-label{font-size:11px}.recent-tool{font-size:12px;padding:9px 13px}.recent-rail{padding-inline:6px}.recent-motion{width:25px}}

.recent-rail{overflow:clip;position:relative}.recent-track{position:relative;will-change:transform}.typed-picker{border:1px solid #dce2d3;border-radius:15px;background:#f1f3e9;padding:13px;margin:14px 0}.typed-picker>p:first-child{margin:0 0 9px;font-size:13px;font-weight:700;color:#435d4e}.typed-picker-actions{display:flex;gap:9px;flex-wrap:wrap}.typed-picker-actions .button{flex:1;min-height:46px;white-space:nowrap}.typed-picker .micro:empty{display:none}.local-file-picker{margin-bottom:14px}

.qr-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.qr-modes .button{font-size:12px;padding:10px 8px}
.p2p-dialog progress{width:100%;height:10px;margin:6px 0 12px}.p2p-name{font-weight:700;overflow-wrap:anywhere;margin:8px 0}.p2p-dialog .design-preview{display:block;max-width:100%;max-height:50vh;margin:0 auto 12px;border-radius:12px}
.legal{max-width:760px;margin:0 auto;padding:28px 20px 60px;line-height:2}.legal h1{font-size:24px}.legal h2{font-size:18px;margin-top:26px}.legal code{font-size:12px;overflow-wrap:anywhere}.legal section{margin-top:30px}

.music-hero{margin-top:18px;background:linear-gradient(120deg,#fffaf3,#f7ece2);border:1px solid #ecd7c8;border-radius:20px;padding:22px 26px;display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;position:relative;overflow:hidden}
.mh-wave{display:flex;align-items:center;gap:4px;height:54px}.mh-wave i{display:block;width:5px;border-radius:3px;background:var(--orange);height:20%;animation:mhwave 1.6s ease-in-out infinite}
.mh-wave i:nth-child(odd){background:var(--green)}.mh-wave i:nth-child(1){animation-delay:-.2s}.mh-wave i:nth-child(2){animation-delay:-.9s}.mh-wave i:nth-child(3){animation-delay:-.4s}.mh-wave i:nth-child(4){animation-delay:-1.2s}.mh-wave i:nth-child(5){animation-delay:-.6s}.mh-wave i:nth-child(6){animation-delay:-1.4s}.mh-wave i:nth-child(7){animation-delay:-.1s}.mh-wave i:nth-child(8){animation-delay:-1s}.mh-wave i:nth-child(9){animation-delay:-.7s}
.mh-wave i:nth-child(even){animation-name:mhfade}
@keyframes mhwave{0%,100%{height:22%}50%{height:95%}}@keyframes mhfade{0%,100%{height:30%;opacity:1}50%{height:70%;opacity:.15}}
.mh-kicker{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--orange);font-weight:700}.mh-kicker svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mh-text h2{margin:6px 0 4px;font-size:22px;color:var(--ink)}.mh-text p{margin:0;color:var(--muted);font-size:12px;line-height:1.9}
.mh-actions{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-width:190px}.mh-main{background:var(--orange)!important;color:#fff!important;text-align:center;text-decoration:none}
.mh-new{font-size:11px;color:var(--green);text-decoration:none;display:flex;gap:7px;align-items:center;justify-content:center}.mh-new b{background:var(--green);color:#fff;border-radius:20px;padding:1px 8px;font-size:9px}
@media (max-width:760px){.music-hero{grid-template-columns:1fr;text-align:center;padding:20px}.mh-wave{justify-content:center}.mh-text h2{font-size:20px}.mh-actions{min-width:0}}
@media (prefers-reduced-motion:reduce){.mh-wave i{animation:none;height:60%}}
.dub-intro{margin-bottom:12px}.dub-badge{display:inline-block;background:var(--green);color:#fff;border-radius:20px;padding:3px 10px;font-size:11px}.dub-intro h3{margin:8px 0 4px}.dub-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.9}
.dub-steps{display:flex;gap:6px;list-style:none;padding:0;margin:12px 0;counter-reset:s}.dub-steps li{flex:1;text-align:center;font-size:10px;padding:7px 4px;border-radius:10px;background:var(--soft);color:var(--muted)}.dub-steps li.active{background:var(--ink);color:#fff}.dub-steps li.done{background:#dfe8dc;color:var(--green)}
.dub-video{width:100%;max-height:46vh;border-radius:14px;background:#000;margin:8px 0}
.dub-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.dub-list{list-style:none;padding:0;margin:8px 0 14px;display:grid;gap:9px}
.dub-item{border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--paper)}.dub-item.recorded{border-color:#e8c9b6}.dub-item.done{border-color:#b9cdb4;background:#f4f8f1}
.dub-time{font-weight:700;font-size:12px;margin-bottom:8px}.dub-actions{display:flex;gap:6px;flex-wrap:wrap}.dub-actions .button{padding:8px 11px;font-size:11px}
.dub-fine{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.dub-chip{border:1px solid var(--line);background:var(--bg);border-radius:20px;padding:3px 9px;font-size:10px;color:var(--muted);cursor:pointer}
.ws-off{display:none!important}
.wizard-steps{display:flex;gap:5px;list-style:none;padding:0;margin:0 0 10px}.wizard-steps li{flex:1;text-align:center;font-size:10px;padding:7px 3px;border-radius:10px;background:var(--soft);color:var(--muted)}.wizard-steps li.active{background:var(--ink);color:#fff}.wizard-steps li.done{background:#dfe8dc;color:var(--green);cursor:pointer}
.wizard-back{background:none;border:0;color:var(--green);font-size:12px;padding:4px 0 10px;cursor:pointer}.wizard-back[hidden]{display:none}
.dub-lead{font-size:13px;line-height:1.9;margin:4px 0 12px}.dub-colab{margin-top:6px}
.dub-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--paper)}.dub-card-head{display:flex;justify-content:space-between;align-items:center;font-size:13px}.dub-card-head span{color:var(--muted);font-size:11px}
.dub-main{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;margin:10px 0}.dub-main #dubMine{grid-column:1/-1}.dub-rec{background:var(--orange)!important;color:#fff!important}.dub-rec.live{animation:dubpulse 1s ease-in-out infinite}
@keyframes dubpulse{50%{box-shadow:0 0 0 7px #bc674933}}
.dub-dots{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:6px 0 12px}.dub-dot{width:11px;height:11px;border-radius:50%;border:0;background:var(--line);padding:0;cursor:pointer}.dub-dot.done{background:var(--green)}.dub-dot.current{background:var(--orange);transform:scale(1.3)}
.dub-nav{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-bottom:8px}
#dubStatus:empty,#dubError:empty,.colab-wizard .inline-error:empty{display:none}.upload-zone[hidden]{display:none}

html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}dialog{overscroll-behavior:contain}
.dub-stage{position:relative}.dub-count{position:absolute;inset:8px 0;display:flex;align-items:center;justify-content:center;font-size:72px;font-weight:800;color:#fff;background:#0007;border-radius:14px}.dub-count[hidden]{display:none}
.dub-text{background:var(--ink);color:#fff;border-radius:14px;padding:12px 14px;margin:-2px 0 8px;min-height:54px}.dub-text[hidden]{display:none}
.dub-say{margin:0;font-size:17px;line-height:1.8;font-weight:700}.dub-say span{color:#ffffff73;transition:color .12s}.dub-say span.now{color:#ffd29a}.dub-say span.said{color:#fff}
.dub-say span[data-k=sound]{font-style:italic;font-weight:600;color:#9fd8ff73}.dub-say span[data-k=sound].now,.dub-say span[data-k=sound].said{color:#9fd8ff}.dub-say span[data-k=pause]{letter-spacing:2px}
.dub-bar{height:4px;background:#ffffff26;border-radius:4px;margin-top:8px;overflow:hidden}.dub-bar i{display:block;height:100%;width:0;background:var(--orange)}
.dub-orig{margin:6px 0 0;font-size:11px;color:#ffffffa6;line-height:1.7}
.dub-spk{border:0;border-radius:999px;padding:4px 12px;font:inherit;font-size:.85rem;font-weight:700;background:var(--spk,#9aa0a6);color:#10181c;cursor:pointer}.dub-dot{box-shadow:inset 0 -3px 0 var(--spk,transparent)}.dub-say span,.dub-orig span{cursor:pointer}.dub-split{display:block;margin:8px auto 0}
.dub-dot{touch-action:none;transition:transform .12s}.dub-dot.dragging{position:relative;z-index:5;transition:none;box-shadow:0 0 0 3px var(--spk,#9aa0a6)}.dub-dot.drop{transform:scale(1.5);outline:3px solid #e07a5f;outline-offset:2px}
.dub-hint{margin:6px 0 0;text-align:center;line-height:1.7}.dub-undo{display:block;margin:6px auto 0}
.dub-say span[data-cut=a],.dub-orig span[data-cut=a]{color:#8fd3ff;text-decoration:underline}.dub-say span[data-cut=b],.dub-orig span[data-cut=b]{color:#ffcc80}
.dub-cut{margin-top:8px;padding:10px;border:1px dashed #e07a5f;border-radius:12px;text-align:center}.dub-cut p{margin:0 0 8px;line-height:1.8}.dub-cut .cut-a{color:#1d6fa5;font-weight:700}.dub-cut .cut-b{color:#b25c00;font-weight:700}.dub-cut-actions{display:flex;gap:8px;justify-content:center}.dub-cut-actions .button{flex:1}
.dub-dots{gap:8px}.dub-dot{width:16px;height:16px;box-shadow:none;background:color-mix(in srgb,var(--spk,#b9b9b9) 40%,#fff);border:2px solid color-mix(in srgb,var(--spk,#b9b9b9) 80%,#000 0%)}
.dub-dot.done{background:var(--spk,var(--green));border-color:#2f3e3c}.dub-dot.current{background:var(--spk,var(--orange));border-color:#e07a5f;transform:scale(1.35);box-shadow:0 0 0 2px #fff,0 0 0 4px #e07a5f}
.dub-hint{font-size:12.5px}
/* Scrolling stays, the bars don't: the site looks like an app, not a web page. */
html,body,dialog,*{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
.picked-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#e6efe1;border:1.5px solid #9fbf9a;animation:pickedIn .35s ease}
.picked-mark{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3f6b4f;color:#fff;font-weight:800;font-size:19px}
.picked-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.picked-text b{font-size:15px;color:#25403a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.picked-text small{font-size:12.5px;color:#56705f}
.picked-change{flex:none;font-weight:700;color:#2e5545;padding:8px 10px;border-radius:10px;background:#fff8}
.typed-picker.has-file{padding:8px;background:transparent;border-color:transparent}
.picked-list{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.stop-done{background:#e3ead5!important;color:#2e5545!important}
@keyframes pickedIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#colabFilename{display:none}
#pickTool:has(~#fileChips .picked-card){display:none}
.personal-top{align-items:center;flex-wrap:nowrap}
.personal-top>.favorite-toggle{min-height:40px;width:40px;padding:0;font-size:20px;line-height:1;border-radius:50%;flex:none}
.preset-panel{min-width:0!important;padding:8px 12px;border-radius:12px}
.preset-panel summary{font-size:13.5px;min-height:22px}
.preset-panel[open]{flex-basis:100%}
.personal-top:has(.preset-panel[open]){flex-wrap:wrap}
.chain-actions{margin-top:16px;padding:14px;border-radius:18px;background:#eef3ea;border:1px solid #d5e2cf}
.chain-actions h4{margin:0 0 10px;font-size:16px;color:#25403a}
.chain-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chain-btn{display:flex;align-items:center;gap:8px;min-height:52px;padding:10px 12px;border-radius:14px;border:1px solid #cfdcc8;background:#fff;color:#25403a;font:inherit;font-size:14px;font-weight:600;text-align:start;cursor:pointer}
.chain-btn span{font-size:20px;line-height:1}
.chain-btn:active{transform:scale(.98)}
.cpu-note{background:#fff6e6;border-color:#f0dcb4}
.qr-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.qr-actions .button{min-height:48px}
.drive-usage .text-btn{font-size:9px;color:var(--orange);padding:0 4px;text-decoration:underline}
.share-row{display:flex;gap:9px;margin-bottom:6px}.share-row .button{flex:1;min-height:40px}.recipe-btn{display:block;width:100%;text-align:right;border:1px solid #d9e0cc;background:#f4f6ee;border-radius:12px;padding:11px 13px;margin:0 0 8px}.recipe-btn b{display:block;font-size:12px;color:var(--ink)}.recipe-btn small{display:block;font-size:10px;color:#86917c;margin-top:4px}.recipe-btn:hover{border-color:#b5c0a5}
.chain-actions .recipe-btn+h4{margin-top:14px}
/* Cloud progress: one sentence, one bar, a countdown. */
#colabProgress.live-progress{display:flex;flex-direction:column;gap:10px;color:var(--ink)}
#colabProgress.live-progress b{font-size:13px;font-weight:600}
.progress-track{display:block;height:8px;border-radius:8px;background:#dfe5d4;overflow:hidden;direction:rtl}
.progress-track i{display:block;height:100%;width:2%;background:linear-gradient(90deg,#4f6b5d,#314d47);border-radius:8px;transition:width .9s linear}
#colabProgress.live-progress small{font-size:11px;color:#6f7d66}
/* Technical choices stay automatic: no support panel, no GPU or memory pickers. */
#colabSupport,#colabDiagnostic,label:has(>#colabGPU),label:has(>#colabMemory){display:none!important}
/* A long file name must never widen the tool window (it made the page slide sideways). */
.picked-card{min-width:0;max-width:100%;flex:1 1 100%}
.picked-text b,.picked-text small{max-width:100%}
dialog{overflow-x:hidden}
dialog *{max-width:100%}
dialog .progress-track i{max-width:none}
/* The wheel follows the finger all the way round; tools can be lifted and dropped on the centre. */
.tools-orbit{touch-action:none;user-select:none;-webkit-user-select:none}
.orbit-tool{transition:box-shadow .2s,border-color .2s,opacity .25s}
.orbit-tool.carrying{z-index:5;box-shadow:0 18px 40px #213a2d33;border-color:#7c9572;transition:none}
.orbit-tool.returning{transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .3s}
.orbit-tool.landing{transition:transform .28s ease-in,opacity .28s ease-in}
.orbit-hub{transition:transform .25s,box-shadow .25s}
.orbit-hub.waiting{box-shadow:0 8px 35px #23483c25,0 0 0 9px #fffdfb70,0 0 0 11px #9fbf9a}
.orbit-hub.ready{transform:translate(-50%,-50%) scale(1.1);box-shadow:0 10px 40px #23483c40,0 0 0 12px #e6efe1,0 0 0 14px #6f9674}
.orbit-hub.landed{transform:translate(-50%,-50%) scale(1.16)}
/* ---------- Assistant: steady layout, the box stays put and only the conversation scrolls ---------- */
.chat-view{display:flex;flex-direction:column;height:calc(100dvh - 87px);padding-bottom:14px;overflow:hidden}
.chat-view[hidden]{display:none!important}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.chat-head h1{font-size:22px;margin:4px 0 0;line-height:1.5}
.chat-head .text-btn{border:1px solid var(--line);border-radius:20px;padding:8px 13px;background:#fffefa;color:#5d6d57}
.chat-view .chat-shell{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:760px;margin:12px auto 0}
.chat-view .chat-log{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;padding:6px 2px 14px;gap:12px}
.chat-view .chat-log::-webkit-scrollbar{display:none}
.chat-dock{flex:none;position:relative;padding-top:6px}
.chat-view .chat-suggestions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 9px;padding:2px 1px;gap:7px;mask-image:linear-gradient(to left,#000 88%,transparent)}
.chat-view .chat-suggestions::-webkit-scrollbar{display:none}
.idea{flex:none;display:inline-flex;align-items:center;gap:6px;background:#f2f1e8;border:1px solid #e3e1d6;border-radius:20px;padding:9px 13px;font-size:12px;color:#40513b;white-space:nowrap}
.idea:active{transform:scale(.97)}
.chat-view .chat-files{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 0 8px;padding:1px}
.chat-view .chat-files[hidden]{display:none}
.attach-chip{flex:none;display:flex;align-items:center;gap:8px;max-width:240px;background:#e6efe1;border:1.5px solid #9fbf9a;border-radius:14px;padding:6px 6px 6px 10px}
.attach-chip.from-result{background:#eef1f7;border-color:#b9c4d8}
.attach-kind{font-size:17px;line-height:1}
.attach-text{display:flex;flex-direction:column;min-width:0}
.attach-text b{font-size:12px;color:#25403a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;direction:ltr;text-align:right}
.attach-text small{font-size:10px;color:#6b7e68}
.attach-x{flex:none;width:26px;height:26px;border-radius:50%;border:0;background:#fff9;color:#4b5d48;font-size:12px}
.attach-menu{position:absolute;bottom:calc(100% - 4px);right:0;left:0;z-index:6;background:#fffefa;border:1px solid #dfe3d4;border-radius:18px;padding:14px;box-shadow:0 -10px 40px #182c2a26;animation:menuUp .18s ease}
@keyframes menuUp{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.attach-title{margin:0 0 10px;font-size:13px;font-weight:700;color:#3d5148}
.attach-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px}
.attach-option{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid #e1e5d6;background:#f4f5ec;border-radius:14px;padding:13px 6px;font-size:12px;color:#33483e}
.attach-option span{font-size:22px}
.chat-view .chat-composer{padding:7px 9px;border-radius:22px;align-items:center;box-shadow:0 4px 20px #182c2a0d}
.chat-view .chat-composer textarea{min-height:40px;max-height:140px;padding:9px 2px;font-size:14px}
.chat-view .chat-composer .icon-button{width:40px;height:40px}
.chat-view .send{width:40px;height:40px;border-radius:50%}
.chat-message small.chat-attached{display:block;margin-top:6px;font-size:10px;color:#7f8c78;white-space:normal}
.chat-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;white-space:normal}
.chat-choice{border:1px solid #cdd8c2;background:#fffefa;border-radius:20px;padding:9px 13px;font-size:12px;color:#33483e}
.chat-choice.chosen{background:var(--ink);color:#fff;border-color:var(--ink)}
.chat-choice:disabled:not(.chosen){opacity:.45}
.job-card{display:flex;flex-direction:column;gap:9px;white-space:normal;width:min(100%,420px);max-width:100%}
.job-title{font-size:12px;color:#556650;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.job-label{font-size:14px;font-weight:600;color:var(--ink)}
.job-sub{font-size:11px;color:#6f7d66}
.job-sub:empty{display:none}
.job-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.job-actions:empty{display:none}
.job-actions .button{min-height:40px;padding:9px 15px}
.job-connect{background:#2f5d8a}
.job-card.done{background:#f6f9f1;border-color:#cfdcc4}
.job-card.failed{background:#f6efe8;border-color:#ead8c8}
.job-preview:empty{display:none}
.job-preview img,.job-preview video,.job-preview canvas{max-width:100%;max-height:260px;border-radius:10px;display:block;margin:auto}
.job-preview audio{width:100%}
.job-qr canvas{width:100%;max-width:260px;height:auto;display:block;margin:4px auto;border-radius:10px;background:#fff}
.job-qr .qr-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.job-next .chain-actions{margin:4px 0 0;padding:0;border:0;background:none}
@media(max-width:680px){
 .chat-view{height:calc(100dvh - 76px);padding:10px 12px calc(76px + env(safe-area-inset-bottom))}
 .chat-head h1{font-size:18px}
 .chat-view .chat-shell{margin-top:6px}
 .chat-message{font-size:13px;max-width:92%}
}
.job-preview .result-preview-box{margin:0;padding:0;border:0;background:none}
.job-preview .result-preview-box>h3{display:none}
.job-preview .result-preview-box .button{min-height:42px;margin-top:8px}
.chat-choice.chosen:disabled{opacity:1}
.job-next h4{font-size:12px;margin:6px 0;color:#556650}
.job-next .chain-grid{display:flex;flex-wrap:wrap;gap:6px}
.job-next .chain-btn{min-height:0;padding:8px 12px;font-size:12px;border-radius:18px;gap:6px;width:auto;flex:none}
.job-next .chain-btn span{font-size:15px}
.job-next .recipe-btn{padding:10px 12px}
.job-next .share-row .button{min-height:38px}
/* Readability (Lighthouse): muted text dark enough, nothing under 12px on phones. */
.filter span{color:#4f5c49;opacity:1}
@media(max-width:680px){
 .cloud-settings p,.assistant-card p,.hero p,footer,.welcome p,.orbit-caption,.orbit-heading,.filter,.section-head p,.empty-inline p,.music-shortcut,.hero-kicker,.trust-strip,.field,.eyebrow,.empty-inline b,.mh-new,.notice,.hint{font-size:12px}
 .orbit-tool strong{font-size:11px}
}
/* A short plain description of Madar for visitors and search engines. */
.about-madar{margin:40px 4px 8px;padding:16px 2px 0;border-top:1px solid var(--line);color:#6b7565}
.about-madar h2{font-size:13px;font-weight:600;margin:0 0 6px;color:#55604f}
.about-madar p{font-size:12px;line-height:1.8;margin:0 0 6px}
.about-madar ul{list-style:none;margin:0;padding:0;font-size:12px;line-height:1.9}
.about-madar li{display:inline}
.about-madar li:not(:last-child)::after{content:" · ";color:#a3ab9c}
footer #limitsBtn{white-space:nowrap;flex:none}
@media(max-width:680px){footer{flex-wrap:wrap;gap:8px;line-height:1.9}footer #limitsBtn{font-size:12px}}
/* Fast lane start: above the Google step, needs no account. */
.fast-start{display:flex;flex-direction:column;align-items:center;gap:2px;margin:12px 0 4px;background:linear-gradient(135deg,#2f5d4f,#20403a)}
.fast-start small{font-size:11px;font-weight:400;opacity:.85}

/* video previews: keep browser overlay buttons (pop-up player etc.) off the save button */
.result-preview-box video{margin-bottom:10px}
#colabConnect.is-connected{background:#e4efe6;color:#1f4d3a;border:1px solid #b9d6c1}
