:root{--bg:var(--theme-surface);--panel:var(--theme-panel);--panel-soft:var(--theme-chrome);--border:var(--theme-edge);--accent:var(--theme-accent);--blue:var(--theme-accent);--text:color-mix(in srgb,var(--theme-accent) 18%,#f4f5f8);--muted:color-mix(in srgb,var(--theme-accent) 60%,#667080)}
.theme-picker{position:relative;z-index:70;flex-shrink:0}.theme-picker summary{display:grid;place-items:center;list-style:none;width:37px;height:37px;border:1px solid color-mix(in srgb,var(--theme-edge) 75%,transparent);border-radius:12px;color:var(--muted);background:color-mix(in srgb,var(--theme-panel) 80%,transparent);cursor:pointer;transition:color .2s,border-color .2s,background .2s}.theme-picker summary::-webkit-details-marker,.download-options summary::-webkit-details-marker{display:none}.theme-picker summary:hover,.theme-picker[open] summary{color:var(--theme-accent);border-color:var(--theme-accent)}.theme-picker summary .icon{width:18px;height:18px}.theme-menu{position:absolute;inset-inline-end:0;top:calc(100% + 12px);width:310px;background:var(--theme-panel);border:1px solid var(--theme-edge);border-radius:19px;padding:17px;box-shadow:0 22px 65px #0007;animation:control-open .2s ease-out;max-height:calc(100dvh - 110px);overflow:auto;scrollbar-width:thin}.theme-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;font-size:13px}.theme-menu-heading>span{color:var(--muted);font-size:11px}.theme-swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.theme-swatches button{display:flex;align-items:center;gap:8px;font-size:10px;border:1px solid transparent;background:transparent;padding:9px 7px;border-radius:10px;color:var(--muted);min-height:38px;text-align:start;cursor:pointer}.theme-swatches button:hover{background:color-mix(in srgb,var(--theme-accent) 7%,transparent)}.theme-swatches button[aria-pressed=true]{background:color-mix(in srgb,var(--theme-accent) 10%,transparent);border-color:color-mix(in srgb,var(--theme-accent) 25%,transparent);color:var(--text)}.theme-swatch{width:17px;height:17px;border-radius:6px;flex-shrink:0;border:1px solid #ffffff35}.theme-swatches button>.icon{width:12px;height:12px;margin-inline-start:auto;visibility:hidden}.theme-swatches button[aria-pressed=true]>.icon{visibility:visible}.theme-sync{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6;margin-top:15px;padding-top:15px;border-top:1px solid var(--theme-edge);color:var(--muted);cursor:pointer}.theme-sync input{min-height:17px;width:17px;height:17px}.theme-sync>i{width:6px;height:6px;border-radius:50%;background:var(--theme-edge);margin-inline-start:auto}.theme-sync:has(input:checked)>i[data-connected=true]{background:#8ed5b3;box-shadow:0 0 0 3px #8ed5b312}.theme-menu,.download-menu{overscroll-behavior:contain}.download-actions{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:31px;position:relative;z-index:50;scroll-margin-top:100px}.download-primary{min-height:50px;padding-inline:23px;gap:10px;font-size:14px;border-radius:13px}.download-primary>.icon{width:19px;height:19px}.download-options{position:relative}.download-options summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;font-size:13px;color:var(--muted);padding:10px 0}.download-options summary:hover{color:var(--text)}.download-options summary>span{transition:transform .2s}.download-options[open] summary>span{transform:rotate(180deg)}.download-menu{position:absolute;top:calc(100% + 10px);inset-inline-start:0;width:285px;background:var(--theme-panel);border:1px solid var(--theme-edge);border-radius:17px;padding:8px;box-shadow:0 20px 60px #0008;animation:control-open .2s ease-out;text-align:start;max-height:380px;overflow:auto;scrollbar-width:thin}.download-menu>a,.download-menu>div{display:flex;align-items:center;gap:10px;padding:11px 10px;min-height:43px;border-radius:10px;font-size:12px;line-height:1.5;color:var(--text);white-space:nowrap}.download-menu>a:hover{background:color-mix(in srgb,var(--theme-accent) 9%,transparent)}.download-menu>a>.icon{width:14px;height:14px;margin-inline-start:auto;color:var(--theme-accent)}.download-menu>div[aria-disabled]{color:var(--muted);opacity:.5}.download-menu small{margin-inline-start:auto;font-size:9px;color:var(--muted)}.os-mark{width:15px;height:15px;flex-shrink:0;display:inline-block;background:currentColor}.os-windows{clip-path:polygon(0 0,45% 0,45% 45%,0 45%,0 0,55% 0,100% 0,100% 45%,55% 45%,55% 0,55% 55%,100% 55%,100% 100%,55% 100%,55% 55%,45% 55%,45% 100%,0 100%,0 55%,45% 55%)}.os-macos{mask:url('/assets/os-apple.svg') center/contain no-repeat}.os-linux{mask:url('/assets/os-linux.svg') center/contain no-repeat}
.demo-app-layout{background:var(--theme-chrome);padding:0 5px 5px 0;border-radius:0 0 18px 18px;gap:0}.demo-rail{background:var(--theme-chrome)}.demo-sidebar{border-radius:16px 0 0 16px;background:var(--theme-surface);border-right:1px solid color-mix(in srgb,var(--theme-edge) 40%,transparent)}.demo-chat{background:var(--theme-surface)}.demo-activity{border-radius:0 16px 16px 0;background:var(--theme-surface)}.demo-chat-header{border-color:color-mix(in srgb,var(--theme-edge) 40%,transparent)}.demo-windowbar{background:var(--theme-chrome);border-bottom:0}.demo-tab{position:relative;background:var(--theme-surface);border-radius:13px 13px 0 0}.demo-tab:before,.demo-tab:after{content:'';position:absolute;bottom:0;width:12px;height:12px;pointer-events:none}.demo-tab:before{right:100%;background:radial-gradient(circle at top left,transparent 12px,var(--theme-surface) 12.5px)}.demo-tab:after{left:100%;background:radial-gradient(circle at top right,transparent 12px,var(--theme-surface) 12.5px)}.app-demo{background:var(--theme-chrome);border-color:var(--theme-edge)}.demo-result{background:var(--theme-panel)}.tool-card{border-color:color-mix(in srgb,var(--theme-edge) 65%,transparent);box-shadow:inset 0 1px #ffffff06,0 12px 30px #0001}.feature{box-shadow:inset 0 1px #ffffff07,0 14px 35px #0001}.tool-card:hover,.feature:hover{box-shadow:inset 0 1px #ffffff09,0 16px 42px #0003}.app-shell .app-main{border-radius:0;margin-top:0;background-color:var(--theme-surface);box-shadow:none}html[dir=rtl] .app-shell .app-main{border-radius:0 21px 0 0}.app-body{background:var(--theme-chrome)}.site-header .theme-picker{z-index:90}.demo-code-line:nth-child(2n){color:color-mix(in srgb,var(--theme-accent) 55%,#c09de6)}
@keyframes control-open{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){.theme-picker summary{width:33px;height:33px;border-radius:10px}.theme-menu{width:296px;max-width:calc(100vw - 30px)}.site-header .button-row{gap:11px}.download-actions{flex-direction:column;gap:7px;margin-top:28px}.download-primary{min-height:49px;width:auto;max-width:100%;font-size:13px;padding-inline:21px}.download-options summary{font-size:12px;padding-block:9px}.download-menu{inset-inline-start:auto;inset-inline-end:50%;transform:translateX(50%);width:282px;animation:none}html[dir=rtl] .download-menu{transform:translateX(-50%)}.demo-app-layout{padding:0 5px 5px}.demo-chat{border-radius:15px;overflow:hidden}.app-shell .app-main{border-radius:0!important;margin-top:0}.top-actions{gap:9px}.theme-menu{inset-inline-end:-37px}.site-header .theme-menu{inset-inline-end:-85px}.app-demo .demo-composer{border-color:var(--theme-edge)}}
@media(prefers-reduced-motion:reduce){.theme-menu,.download-menu{animation:none}.theme-picker summary,.theme-swatches button{transition:none}}
.download-options>summary{font-size:16px;font-weight:500;min-height:52px;box-sizing:border-box;padding:12px 8px;gap:11px}.download-options>summary>.disclosure-chevron{width:16px;height:16px;flex-basis:16px}@media(max-width:600px){.download-options>summary{font-size:14px;min-height:48px;padding:10px 6px}}

:is(.theme-picker,.mobile-theme-popup) .theme-language{padding:16px 0 0;margin-top:16px;border-top:1px solid var(--panel-line,var(--theme-edge))}:is(.theme-picker,.mobile-theme-popup) .theme-language-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin-bottom:10px}:is(.theme-picker,.mobile-theme-popup) .theme-language-label>.icon{width:16px;height:16px;flex-shrink:0}:is(.theme-picker,.mobile-theme-popup) .theme-language-options{display:flex;gap:8px}:is(.theme-picker,.mobile-theme-popup) .theme-language-options>a{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;padding:9px 12px;border:1px solid var(--panel-line,var(--theme-edge));border-radius:9px;font-size:14px;line-height:1.5;color:var(--muted);text-decoration:none;transition:background .15s,color .15s}:is(.theme-picker,.mobile-theme-popup) .theme-language-options>a:hover{background:var(--panel-hover,color-mix(in srgb,var(--theme-accent) 9%,transparent));color:var(--text)}:is(.theme-picker,.mobile-theme-popup) .theme-language-options>a.is-active{color:var(--text);background:var(--panel-hover,color-mix(in srgb,var(--theme-accent) 9%,transparent));border-color:var(--accent,var(--theme-accent))}:is(.theme-picker,.mobile-theme-popup) .theme-language-options .icon{width:14px;height:14px;flex:0 0 14px}

.theme-picker>summary{box-sizing:border-box;display:grid;place-items:center;align-self:center;line-height:1;padding:0}.theme-picker>summary>.icon{display:block;width:18px;height:18px;margin:0;flex:none}.theme-picker>summary:focus:not(:focus-visible){outline:none}.theme-picker>summary:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}.theme-picker input[type=checkbox]{accent-color:var(--theme-accent)}
