.remote-screen{display:grid;gap:16px;color:var(--mg-ink)}.remote-workspace,.remote-conversation{min-width:0;display:grid;gap:16px}.remote-directory{display:none}.remote-screen h1{font-size:clamp(25px,6vw,32px);line-height:1.3;text-wrap:pretty;overflow-wrap:anywhere}.remote-screen h2{font-size:19px;margin:0}.remote-screen button,.remote-screen select{min-height:44px}.remote-screen button{border:1px solid var(--mg-line);border-radius:12px;padding:10px 14px;background:var(--mg-surface);color:var(--mg-ink);transition:background .15s ease,transform .15s ease}.remote-screen button:hover:not(:disabled){background:var(--mg-brand-soft)}.remote-screen button:active:not(:disabled){transform:scale(.985)}.remote-screen button:disabled{opacity:.55}.remote-screen .primary{background:var(--mg-brand-strong);color:var(--mg-surface)}.remote-tabs{display:flex;gap:8px}.remote-tabs button{flex:1}.remote-tabs [aria-selected=true],.remote-inbox-actions [aria-pressed=true]{background:var(--mg-brand-soft);border-color:var(--mg-brand);color:var(--mg-brand-strong)}.remote-tabs span{display:inline-block;min-width:22px;margin-left:4px;border-radius:20px;background:var(--mg-brand-strong);color:var(--mg-surface)}.remote-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.remote-filters label,.remote-models label{min-width:0;display:grid;gap:8px;font-size:13px}.remote-filters select,.remote-models select{width:100%;min-width:0}.remote-hint{color:var(--mg-muted);font-size:12px;line-height:1.65;margin:0;text-wrap:pretty}.remote-session-list{display:grid;gap:10px}.remote-screen .remote-session-card{display:grid;gap:12px;padding:16px;text-align:left;border-radius:18px;overflow-wrap:anywhere}.remote-session-card>strong{font-size:17px;line-height:1.55;font-weight:650}.remote-session-heading,.remote-session-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.remote-session-heading b{display:flex;align-items:center;gap:7px;font-size:12px}.remote-session-footer,.remote-session-card>small{color:var(--mg-muted);font-size:12px;line-height:1.5}.remote-status{display:inline-flex;border-radius:20px;padding:5px 9px;font-size:11px;line-height:1.4;background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.remote-status-failed,.remote-status-interrupted{background:var(--mg-danger-soft)}.remote-status-waiting_input,.remote-status-waiting_approval{background:var(--mg-warm-soft)}.remote-callout{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:14px 16px;border-radius:14px;background:var(--mg-warm-soft);font-size:14px;line-height:1.7;overflow-wrap:anywhere}.remote-callout[role=alert]{background:var(--mg-danger-soft)}.remote-empty{padding:34px 16px;text-align:center;color:var(--mg-muted);line-height:1.7}.remote-digest{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.remote-digest>div{display:grid;gap:8px;padding:16px 10px;border:1px solid var(--mg-line);background:var(--mg-surface);border-radius:16px;text-align:center}.remote-digest strong{font-size:30px;line-height:1;font-weight:550}.remote-digest span{font-size:12px;color:var(--mg-muted)}.remote-inbox-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.remote-unread{width:7px;height:7px;border-radius:50%;background:var(--mg-brand)}.remote-detail-heading{display:grid;gap:8px}.remote-detail-heading h1{margin:0;font-size:clamp(21px,5vw,28px)}.remote-detail-state{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.remote-access-label{color:var(--mg-muted);font-size:12px;line-height:1.6}.remote-access-label.writable{color:var(--mg-brand-strong);font-weight:650}.remote-continue{justify-self:start}.remote-access-help{display:grid;gap:8px;padding:14px 16px;border:1px solid var(--mg-line);border-radius:16px;background:var(--mg-surface);font-size:14px;line-height:1.7;overflow-wrap:anywhere}.remote-access-help p{margin:0}.remote-access-help summary{min-height:44px;padding-block:10px;cursor:pointer;color:var(--mg-brand-strong)}.remote-access-help ol{padding-left:22px;display:grid;gap:8px}.remote-access-help small{color:var(--mg-muted)}.remote-screen .remote-integration-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;text-align:left}.remote-integration-entry small{grid-column:1;color:var(--mg-muted)}.remote-integration-entry>span{grid-column:2;grid-row:1 / 3;align-self:center}.remote-integration-screen .workbuddy-panel{margin-top:0;color:var(--mg-ink);border-color:var(--mg-line);background:var(--mg-surface)}.remote-integration-screen[hidden]{display:none}.remote-integration-screen .workbuddy-panel small{color:var(--mg-muted)}.remote-integration-screen .workbuddy-gate,.remote-integration-screen .workbuddy-message{background:var(--mg-brand-soft)}.remote-detail-heading>span:first-child,.remote-detail-heading small{color:var(--mg-muted);font-size:12px}.remote-detail-heading .remote-status{width:fit-content}.remote-history-heading{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.remote-history-heading button{font-size:12px}.remote-history-heading>div{display:flex;gap:8px;flex-wrap:wrap}.remote-history{display:grid;gap:12px;padding:2px;margin:0;list-style:none;max-height:62dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0}.remote-history:empty{display:none}.remote-history:focus-visible,.remote-access-help summary:focus-visible{outline:3px solid var(--mg-brand);outline-offset:2px}.remote-history>li{min-width:0;border-radius:18px;padding:16px;background:var(--mg-surface);border:1px solid var(--mg-line);overflow-wrap:anywhere}.remote-history>li>b{display:block;margin-bottom:8px;font-size:12px;color:var(--mg-muted)}.remote-history p{margin:0;white-space:pre-wrap;line-height:1.8;font-size:15px}.remote-history .user{background:var(--mg-brand-soft);margin-left:min(8vw,44px)}.remote-tool{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.remote-tool small{width:100%;color:var(--mg-muted);font-size:12px}.remote-files{width:100%;padding-left:20px;margin:4px 0;font-size:14px}.remote-composer{display:grid;gap:10px;padding:14px;border:1px solid var(--mg-line);border-radius:18px;background:var(--mg-surface);min-width:0}.remote-composer>small{font-size:12px;color:var(--mg-muted);line-height:1.5}.remote-models{display:grid;gap:8px}.remote-models button{justify-self:start;font-size:12px}.remote-composer textarea{width:100%;resize:vertical;min-height:100px;max-height:50dvh;font-size:16px}.remote-composer p{margin:0;line-height:1.6;font-size:13px;color:var(--mg-muted)}.remote-composer-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.remote-composer .remote-composer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.remote-more{width:100%}.app-shell .bottom-nav{display:flex;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}.app-shell .bottom-nav>button{flex:1 0 44px;min-width:44px;padding-inline:2px}.app-shell .bottom-nav{padding-inline:4px}.app-shell .bottom-nav small{width:100%;text-align:center}@media(min-width:720px){.app-shell .bottom-nav{flex-direction:column;justify-content:center;overflow-y:auto;overflow-x:hidden}.app-shell .bottom-nav>button{flex:0 0 68px}}@media(max-height:600px){.remote-history{max-height:45dvh}.remote-composer:focus-within>small{display:none}.remote-composer:focus-within textarea{height:64px;min-height:64px}}@media(max-width:600px){.remote-screen--conversation{gap:12px;padding-inline:12px}.remote-screen--conversation .back-button{justify-self:start}.remote-screen .remote-session-card{padding:14px;gap:9px}.remote-history>li{padding:13px}.remote-history p{line-height:1.7}.remote-composer textarea{min-height:80px}.remote-history-heading{align-items:start}.remote-history-heading>div{gap:6px}}@media(max-width:350px){.remote-filters{grid-template-columns:1fr}.remote-composer-actions button{width:100%}}@media(prefers-reduced-motion:reduce){.remote-screen button{transition:none;transform:none!important}}@media(min-width:1100px){.app-shell .content:has(.remote-screen){width:min(100%,1360px)}.remote-screen:not(.remote-screen--conversation) .remote-session-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.remote-workspace{grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:28px;align-items:start}.remote-directory{display:grid;gap:10px;position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow-y:auto;padding:2px 8px 8px 2px}.remote-directory h2{padding:8px 0}.remote-directory>button{display:grid;gap:8px;text-align:left;min-width:0;overflow-wrap:anywhere}.remote-directory>button[aria-current=true]{border-color:var(--mg-brand);background:var(--mg-brand-soft)}.remote-directory small{color:var(--mg-muted)}.remote-directory .remote-status{width:fit-content}.remote-conversation{padding-bottom:32px}}.workbuddy-panel{display:grid;gap:16px;margin-top:24px;padding:20px;border:1px solid var(--border, #dcded4);border-radius:22px;background:var(--surface, #fffdf7)}.workbuddy-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workbuddy-panel h2{margin:0 0 8px;font-size:1.2rem}.workbuddy-panel p{margin:0;line-height:1.65;overflow-wrap:anywhere}.workbuddy-panel small{line-height:1.6;color:var(--muted, #677263)}.workbuddy-gate{padding:16px;border-radius:14px;background:var(--panel-muted, #f0f2e9)}.workbuddy-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.workbuddy-actions label{display:flex;gap:8px;align-items:center;min-height:44px}.workbuddy-actions a{display:inline-flex;align-items:center;min-height:44px}.workbuddy-panel button{min-height:44px;white-space:normal}.workbuddy-panel form{display:grid;gap:12px}.workbuddy-panel textarea{width:100%;min-height:100px;resize:vertical;font:inherit}.workbuddy-messages{display:grid;gap:12px;max-height:50vh;overflow-y:auto;overscroll-behavior:contain}.workbuddy-message{padding:14px;border-radius:14px;background:var(--panel-muted, #f0f2e9)}.workbuddy-message.user{margin-left:16px}.workbuddy-message>header{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;font-size:.8rem;margin-bottom:8px}.workbuddy-message p{white-space:pre-wrap}.workbuddy-message li{overflow-wrap:anywhere}@media(max-width:420px){.workbuddy-panel{padding:14px}.workbuddy-panel>header{flex-wrap:wrap}}.assistant-view{display:grid;gap:18px;max-width:1080px;margin:auto;width:100%;min-width:0;box-sizing:border-box;padding:20px 14px calc(32px + env(safe-area-inset-bottom,0px));color:var(--mg-ink,#25352e)}.assistant-heading,.assistant-panel>header,.assistant-records article,.assistant-guest{display:flex;align-items:center;justify-content:space-between;gap:14px}.assistant-heading h2{margin:5px 0;font-size:clamp(22px,4vw,30px);letter-spacing:-.04em}.assistant-heading small{letter-spacing:.12em;font-size:10px;color:var(--mg-muted,#66766d)}.assistant-heading p{margin:4px 0;font-size:13px;color:var(--mg-muted,#66766d)}.assistant-tabs{display:flex;gap:8px;overflow:auto}.assistant-view button,.assistant-view input,.assistant-view select,.assistant-view textarea,.assistant-view a{font:inherit}.assistant-view button,.assistant-view a{min-height:44px;border:1px solid var(--mg-line,#d6ddd2);border-radius:12px;padding:10px 14px;background:var(--mg-surface,#fffefa);color:inherit;text-decoration:none;cursor:pointer;transition:background .16s,transform .16s}.assistant-view button:active{transform:translateY(1px)}.assistant-view button:disabled{opacity:.5;cursor:not-allowed}.assistant-tabs button[aria-pressed=true]{background:var(--mg-brand-soft,#e3eee0);border-color:var(--mg-brand,#6c896e)}.assistant-panel,.assistant-metrics>div{padding:20px;border:1px solid var(--mg-line,#d6ddd2);border-radius:20px;background:var(--mg-surface,#fffefa)}.assistant-panel h3{font-size:16px;margin:0 0 12px}.assistant-panel>header h3{margin:0}.assistant-view label{display:grid;gap:7px;font-size:13px;color:var(--mg-muted,#66766d)}.assistant-view input,.assistant-view select,.assistant-view textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid var(--mg-line,#d6ddd2);border-radius:12px;background:var(--mg-surface,#fffefa);color:var(--mg-ink,#25352e)}.assistant-view textarea{min-height:100px;resize:vertical}.assistant-view :is(button,input,select,textarea,a):focus-visible{outline:3px solid var(--mg-brand,#6c896e);outline-offset:3px}.assistant-view form{display:grid;gap:14px}.assistant-view form>button{justify-self:start;background:var(--mg-brand-soft,#e3eee0)}.assistant-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.assistant-metrics>div{display:grid;gap:6px;padding:18px}.assistant-metrics b{font-size:28px;font-weight:500}.assistant-metrics span{font-size:12px;color:var(--mg-muted,#66766d)}.assistant-hint{font-size:12px;line-height:1.65;color:var(--mg-muted,#66766d);margin:6px 0}.assistant-notice,.assistant-error{padding:14px 16px;border-radius:14px;margin:0;font-size:13px;line-height:1.65;background:var(--mg-brand-soft,#e3eee0)}.assistant-error{background:var(--danger-soft,#fce7df)}.assistant-error small{display:block;overflow-wrap:anywhere}.assistant-records{display:grid;gap:8px}.assistant-records article{padding:16px;border:1px solid var(--mg-line,#d6ddd2);border-radius:16px;background:var(--mg-surface,#fffefa)}.assistant-records article>div{min-width:0}.assistant-records h4{font-size:14px;overflow-wrap:anywhere;margin:7px 0}.assistant-records small,.assistant-records time,.assistant-records span{font-size:11px;color:var(--mg-muted,#66766d)}.assistant-records time{display:block;margin-top:5px}.assistant-records button{flex-shrink:0;font-size:12px}.assistant-view .assistant-check{display:flex;align-items:center;gap:12px}.assistant-check input{width:20px;height:20px;min-height:20px;flex-shrink:0}.assistant-guest{width:100%;margin:8px 0}.assistant-guest time{font-size:11px;color:var(--mg-muted,#66766d)}.assistant-receipt pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8;font-size:14px}.assistant-messages{display:grid;gap:12px;margin:18px 0}.assistant-message{padding:14px;border-radius:14px;background:var(--canvas,#f5f4eb);max-width:95%}.assistant-message.assistant{background:var(--mg-brand-soft,#e3eee0);margin-left:5%}.assistant-message small{font-size:10px;color:var(--mg-muted,#66766d)}.assistant-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:8px 0 0}@media(max-width:520px){.assistant-panel{padding:16px}.assistant-heading{align-items:flex-start}.assistant-heading>button{padding:8px 12px}.assistant-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.assistant-panel>header{flex-wrap:wrap}.assistant-view{gap:14px}.assistant-records article{align-items:flex-start}.assistant-guest time{max-width:140px}}@media(prefers-reduced-motion:reduce){.assistant-view button{transition:none}.assistant-view button:active{transform:none}}.assistant-public{min-width:0;display:grid;gap:14px;border:1px solid var(--mg-line,#d6ddd2);border-radius:16px;padding:16px;margin:0}.assistant-public legend{font-size:13px;padding:0 8px;color:var(--mg-muted,#66766d)}.activity-summary{background:var(--panel, #fffdf7)}.activity-summary h3{margin:.25rem 0}.activity-summary-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:1rem}.activity-summary-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden}.activity-summary-actions,.activity-summary-sources{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin-top:1rem}.activity-summary-actions span{color:var(--muted);font-size:.85rem}.activity-summary button{min-height:44px;overflow-wrap:anywhere}.activity-summary-sources button{max-width:100%;text-align:start}.activity-summary small{overflow-wrap:anywhere}@media(max-width:480px){.activity-summary header{align-items:flex-start;flex-wrap:wrap}.activity-summary-actions>button{width:100%}}.task-activity{color:var(--mg-ink);display:grid;gap:16px;min-width:0}.task-activity h1,.task-activity h2,.task-activity p{margin:0}.task-activity h1{font-size:clamp(23px,5vw,30px)}.task-activity h2{font-size:17px;line-height:1.55;overflow-wrap:anywhere}.task-activity button{min-height:44px;border:1px solid var(--mg-line);border-radius:12px;padding:10px 14px;color:var(--mg-ink);background:var(--mg-surface)}.task-activity button:disabled{opacity:.55}.task-activity button:hover:not(:disabled){background:var(--mg-brand-soft)}.task-activity button:focus-visible{outline:3px solid var(--mg-brand);outline-offset:2px}.task-activity .primary{color:var(--mg-surface);background:var(--mg-brand-strong)}.task-activity-heading{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:12px}.task-activity-heading>div{flex:1 1 230px}.task-activity-heading p,.task-activity-muted,.task-activity-toolbar small,.task-activity-meta{font-size:12px;color:var(--mg-muted);line-height:1.7}.task-activity-heading p{margin-top:8px}.task-activity-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.task-activity-counts>div{min-width:0;display:grid;gap:6px;padding:14px 6px;text-align:center;background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:16px}.task-activity-counts strong{font-size:25px;font-weight:600}.task-activity-counts span{font-size:11px;line-height:1.5;color:var(--mg-muted);overflow-wrap:anywhere}.task-activity-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.task-activity-toolbar small{flex:1 1 190px}.task-activity-list{display:grid;gap:14px;min-width:0}.task-activity-card{display:grid;gap:12px;padding:18px;border:1px solid var(--mg-line);border-radius:18px;background:var(--mg-surface);min-width:0;overflow-wrap:anywhere}.task-activity-card.has-new-reply{border-color:var(--mg-brand)}.task-activity-card>header{display:flex;align-items:start;justify-content:space-between;gap:10px;flex-wrap:wrap}.task-activity-card>header>div{flex:1 1 180px;min-width:0}.task-activity-card>header small,.task-activity-reply-heading small{font-size:12px;color:var(--mg-muted)}.task-activity-card h2{margin-top:5px}.task-activity-reply-heading,.task-activity-meta,.task-activity-inline-actions,.task-activity-card footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.task-activity-reply-heading{font-size:12px;justify-content:flex-start}.task-activity-new{color:var(--mg-brand-strong)}.task-activity-reply{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.task-activity-reply.expanded{display:block}.task-activity-stale{color:var(--mg-muted);padding:9px 11px;background:var(--mg-warm-soft);border-radius:10px;font-size:12px;line-height:1.6}.task-activity-inline-actions{justify-content:flex-start}.task-activity-inline-actions button{font-size:12px}.task-activity-card footer .primary{flex:1}.task-activity-more{width:100%}@media(max-width:380px){.task-activity{padding-inline:12px}.task-activity-card{padding:14px}.task-activity-counts{gap:5px}.task-activity-counts span{font-size:10px}}@media(min-width:1100px){.task-activity-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}.push-settings{display:grid;gap:14px;color:var(--mg-ink)}.push-settings h2{margin:5px 0 0;font-size:20px}.push-settings p{margin:0;font-size:14px;line-height:1.7;text-wrap:pretty}.push-settings small,.push-settings .push-help{color:var(--mg-muted);font-size:12px}.push-settings .push-status{padding:12px;border-radius:12px;background:var(--mg-brand-soft)}.push-settings [role=alert]{padding:12px;border-radius:12px;background:var(--mg-danger-soft)}.push-actions{display:flex;gap:8px;flex-wrap:wrap}.push-actions button{min-height:44px;min-width:44px;flex:1 1 140px}:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#19352f;background:#f3f0e8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(circle at 88% -8%,rgba(202,148,86,.18),transparent 36%),#f3f0e8}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,textarea,select{border:1px solid #d7d2c4;background:#ffffffb3;color:#19352f;border-radius:12px;padding:12px 13px;outline:none;width:100%}input:focus,textarea:focus,select:focus{border-color:#4f756b;box-shadow:0 0 0 3px #305b511f}label{display:grid;gap:7px;color:#536b65;font-size:12px;font-weight:700;letter-spacing:.02em}label small{font-weight:500;color:#82908d}.primary{border:0;background:#1e4d43;color:#fff;border-radius:13px;padding:12px 17px;font-weight:760;box-shadow:0 8px 22px #1e4d432e}.text-button,.icon-button{border:0;background:transparent;color:#2a5d51;font-weight:700}.icon-button{width:44px;height:44px;border-radius:50%;background:#ffffff9e;font-size:20px}.auth-shell{min-height:100dvh;display:grid;grid-template-rows:auto 1fr;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))}.brand,.topbar{display:flex;align-items:center;gap:11px}.brand>span,.mini-brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#1e4d43;color:#fff;font-family:Georgia,serif;font-size:22px}.brand>div,.mini-brand>div{display:grid;gap:2px;flex:1}.brand b,.mini-brand b{font-size:15px}.brand small,.mini-brand small{color:#70817c;font-size:11px}.brand select{width:auto;min-width:106px;padding:9px}.auth-card{align-self:center;width:min(100%,440px);margin:30px auto;padding:22px;border:1px solid rgba(191,183,164,.65);border-radius:26px;background:#ffffffb8;box-shadow:0 22px 80px #3240391a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.dev-boundary{padding:10px 12px;margin-bottom:18px;border-radius:12px;background:#f7e9d5;color:#795633;font-size:12px;line-height:1.5}.endpoint-form,.auth-form{display:grid;gap:14px}.endpoint-form{grid-template-columns:1fr auto;align-items:end}.endpoint-form button{min-height:44px;border:1px solid #c9c3b4;border-radius:12px;background:#fff}.auth-heading{display:grid;gap:4px;margin:25px 0 16px}.auth-heading span{font-family:Georgia,"Noto Serif SC",serif;font-size:28px}.auth-heading small{overflow:hidden;text-overflow:ellipsis;color:#89938f}.auth-form .primary{margin-top:3px}.auth-card>.text-button{width:100%;margin-top:15px}.app-shell{min-height:100dvh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:10;justify-content:space-between;padding:max(12px,env(safe-area-inset-top)) 18px 11px;background:#f3f0e8d6;border-bottom:1px solid rgba(195,189,175,.55);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.mini-brand{display:flex;align-items:center;gap:10px}.mini-brand>span{width:36px;height:36px;border-radius:12px;font-size:18px}.network{padding:7px 9px;border-radius:999px;color:#886451;background:#f1dfd4;font-size:11px;font-weight:800}.network.online{color:#2a6c5c;background:#d9e9e3}.offline-banner{padding:9px 18px;color:#795633;background:#f7e9d5;font-size:12px;text-align:center}.content{width:min(100%,760px);margin:0 auto}.screen{padding:20px 16px 30px}.screen-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.screen-title small{color:#87918e}.screen-title h1{margin:3px 0 0;font:32px/1.1 Georgia,"Noto Serif SC",serif}.device-list,.command-list{display:grid;gap:10px}.device-card,.command-list>button{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid #d9d4c7;border-radius:18px;padding:14px;text-align:left;background:#ffffffad}.device-card.selected{border-color:#52776d;box-shadow:0 0 0 2px #2e594f1a}.device-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e3ebe7;font-size:19px}.device-card>span:nth-child(2),.command-list>button>span{min-width:0;display:grid;gap:4px}.device-card b,.command-list b{overflow:hidden;text-overflow:ellipsis}.device-card small,.command-list small{color:#7c8b87;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-card em{color:#92705e;font-size:11px;font-style:normal;font-weight:800}.device-card em.online{color:#2b725e}.action-card,.settings-card{display:grid;gap:13px;margin-top:16px;padding:16px;border:1px solid #d9d4c7;border-radius:18px;background:#ffffff9e}.action-card small{color:#856d55}.settings-card form{display:grid;gap:10px}.settings-card button{border:1px solid #d0cabd;padding:12px;border-radius:12px;background:#fff}.settings-card .danger{color:#9a423b;border-color:#e1c3bd}.result-card{overflow:auto;max-height:300px;padding:15px;border-radius:16px;background:#193b34;color:#e6f0ec;font-size:11px;white-space:pre-wrap}.empty{display:grid;justify-items:center;text-align:center;padding:58px 22px;color:#72817d}.empty>span{display:grid;place-items:center;width:62px;height:62px;border-radius:22px;background:#e1e7e3;color:#28584d;font:29px Georgia,serif}.empty h2{margin:17px 0 5px;color:#294b43;font:22px Georgia,serif}.empty p{max-width:360px;margin:0;line-height:1.6}.chat-screen{min-height:calc(100dvh - 135px);display:grid;grid-template-rows:auto 1fr auto}.conversation{display:flex;flex-direction:column;gap:12px;min-height:340px;padding-bottom:14px}.bubble{max-width:88%;padding:13px 15px;border-radius:18px;box-shadow:0 5px 18px #333d390f}.bubble small{color:#768580}.bubble p{margin:5px 0 0;white-space:pre-wrap;line-height:1.58}.bubble.user{align-self:flex-end;background:#235a4d;color:#fff;border-bottom-right-radius:5px}.bubble.user small{color:#cae0d8}.bubble.assistant{align-self:flex-start;background:#ffffffd6;border:1px solid #dfdacf;border-bottom-left-radius:5px}.tool-event{display:flex;gap:10px;margin-left:8px;padding:10px 12px;border-left:2px solid #9db2aa}.tool-event div{display:grid;gap:3px}.tool-event small{color:#71827d}.approval-card{display:grid;gap:10px;padding:15px;border:1px solid #dfc48e;border-radius:17px;background:#fff8e9}.approval-card p{margin:0;color:#6f6046}.approval-card>div{display:flex;flex-wrap:wrap;gap:8px}.approval-card button{border:1px solid #d5bd8c;border-radius:11px;padding:9px 11px;background:#fff}.composer{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));display:grid;gap:8px;padding:10px;border:1px solid #d6d0c2;border-radius:19px;background:#ffffffe6;box-shadow:0 10px 35px #2f3b351f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.composer textarea{resize:none;border:0;background:transparent;box-shadow:none;padding:6px}.composer>div{display:flex;justify-content:space-between;align-items:center}.composer button:not(.primary){border:0;background:transparent;color:#9a423b;font-weight:700}.status-pill{justify-self:end;display:inline-flex;width:fit-content;margin-top:8px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;background:#eee4cf;color:#785e35}.status-pill.good{background:#dcece6;color:#276a58}.status-pill.bad{background:#f1deda;color:#963f37}.bottom-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);height:calc(68px + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom);border-top:1px solid rgba(196,190,176,.8);background:#faf8f2eb;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}.bottom-nav button{min-width:44px;min-height:44px;display:grid;place-items:center;gap:1px;border:0;border-radius:13px;background:transparent;color:#778682}.bottom-nav button span{font-size:18px}.bottom-nav button.active{color:#1f5c4e;background:#e1eae6}.bottom-nav small{max-width:100%;overflow:hidden;font-size:9px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.toast{position:fixed;z-index:40;left:14px;right:14px;bottom:calc(82px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border:1px solid #d6c9ae;border-radius:15px;background:#fffaf0;box-shadow:0 13px 40px #2e373329}.toast>button{flex:0 0 44px;width:44px;height:44px;margin:-8px -10px -8px 0;border:0;border-radius:12px;background:transparent;font-size:21px}.error-box{display:grid;gap:3px;color:#963f37}.error-box small{color:#8b7772}.notice{color:#2d6c5c;text-align:center}.agent-tasks-screen{display:grid;gap:16px}.agent-tasks-title{margin-bottom:0}.icon-button.is-refreshing{color:#7d8c87}.task-sync-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7b8985;font-size:11px}.task-sync-strip>span{display:flex;align-items:center;gap:6px;font-weight:800}.task-sync-strip i,.detail-live i{width:7px;height:7px;border-radius:50%;background:#a68a79}.task-sync-strip .connected i,.detail-live.online i{background:#4c806f;box-shadow:0 0 0 4px #4c806f1a}.task-sync-strip small{text-align:right}.agent-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.agent-stats>div{display:grid;gap:5px;min-width:0;padding:13px 14px;border:1px solid #ddd7ca;border-radius:15px;background:#ffffff9e}.agent-stats small{color:#778682;font-size:10px;font-weight:750}.agent-stats b{font:24px/1 Georgia,serif}.agent-stats .needs-attention{border-color:#d9b978;background:#fff8e9;color:#7c5d28}.agent-source-health{display:flex;gap:8px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:none}.agent-source-health::-webkit-scrollbar{display:none}.agent-source-health-card{flex:0 0 min(286px,84vw);min-height:58px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 11px;border:1px solid #d8d4c8;border-radius:15px;background:#ffffffa3}.agent-source-health-card .agent-source-mark{width:34px;height:34px;border-radius:11px;font-size:11px}.agent-source-health-card>span:nth-child(2){min-width:0;display:grid;gap:3px}.agent-source-health-card b,.agent-source-health-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-source-health-card b{font-size:11px}.agent-source-health-card small{color:#7b8985;font-size:9px}.agent-source-health-card em,.collector-health{font-style:normal;font-size:9px;font-weight:850;white-space:nowrap}.agent-source-health-card.live em{color:#2b725e}.agent-source-health-card.error{border-color:#dfb7ae;background:#fff1ee}.agent-source-health-card.error em,.collector-health.error{color:#963f37}.agent-source-health-card.offline em,.agent-source-health-card.stale em,.collector-health.offline,.collector-health.stale{color:#8a6545}.agent-filters{display:grid;gap:12px}.agent-filters fieldset{min-width:0;margin:0;padding:0;border:0}.agent-filters legend{margin-bottom:7px;color:#536b65;font-size:12px;font-weight:750}.filter-scroll{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 4px;scrollbar-width:none}.filter-scroll::-webkit-scrollbar{display:none}.filter-scroll button{flex:0 0 auto;min-height:44px;padding:9px 13px;border:1px solid #d5d0c3;border-radius:999px;background:#ffffff9e;color:#61736e;font-size:12px;font-weight:760}.filter-scroll button.active{border-color:#315f54;background:#315f54;color:#fff}.filter-selects{display:grid;grid-template-columns:1fr 1fr;gap:9px}.filter-selects select{min-height:44px;padding:10px 12px}.agent-inline-state{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;padding:13px 14px;border:1px solid #dfc894;border-radius:15px;background:#fff8e9;color:#765f37}.agent-inline-state span{grid-column:1;font-size:12px;line-height:1.45}.agent-inline-state button{grid-column:2;grid-row:1 / 3;min-height:44px;border:1px solid currentColor;border-radius:11px;background:transparent;font-weight:750}.agent-inline-state.error{border-color:#dfb7ae;background:#fff1ee;color:#8d423a}.agent-task-list,.agent-task-skeletons{display:grid;gap:10px}.agent-task-card{position:relative;width:100%;min-height:116px;display:grid;grid-template-columns:42px minmax(0,1fr) 16px;gap:11px;align-items:start;padding:14px;border:1px solid #dad5c8;border-radius:18px;background:#ffffffb8;text-align:left;box-shadow:0 6px 22px #333d390a}.agent-task-card.requires-attention{border-color:#d7b56e;background:#fffbf2}.agent-task-card.failed{border-color:#ddb7af;background:#fff7f5}.agent-source-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e1e9e5;color:#24584c;font:800 13px ui-monospace,SFMono-Regular,Menlo,monospace}.agent-source-mark.codex{background:#e8e5de;color:#4c504d}.agent-source-mark.third_party{background:#efe5d6;color:#785d36;font-size:10px}.agent-task-main{min-width:0;display:grid;gap:8px}.agent-task-main>strong{overflow:hidden;color:#243f38;font-size:15px;line-height:1.35;text-wrap:pretty}.agent-task-meta{display:flex;align-items:center;gap:6px;min-width:0}.agent-task-meta>b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.agent-task-meta>small{color:#84908d;font:9px ui-monospace,SFMono-Regular,Menlo,monospace}.agent-task-meta .collector-health{overflow:visible;font-family:inherit}.agent-task-meta .agent-status{margin-left:auto}.agent-task-foot{display:flex;justify-content:space-between;gap:8px;color:#7b8985}.agent-task-foot small{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.agent-task-foot small:first-child{max-width:48%}.card-chevron{align-self:center;color:#8b9793;font-size:22px}.attention-flag{position:absolute;top:-7px;right:13px;padding:4px 7px;border-radius:999px;background:#876527;color:#fff;font-size:8px;font-weight:850;letter-spacing:.02em}.agent-status{display:inline-flex;width:fit-content;padding:4px 7px;border-radius:999px;background:#e7e7e2;color:#65716d;font-size:9px;font-weight:850;white-space:nowrap}.agent-status.good{background:#dcece6;color:#276a58}.agent-status.bad{background:#f1deda;color:#963f37}.agent-status.attention{background:#f4e6c7;color:#785c27}.agent-status.running{background:#dce9e7;color:#245e54}.agent-progress{display:grid;gap:7px}.agent-progress-copy{display:flex;justify-content:space-between;gap:10px;color:#687b75;font-size:11px}.agent-progress-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-progress-track{width:100%;height:7px;overflow:hidden;appearance:none;border:0;border-radius:999px;background:#e5e4dd}.agent-progress-track::-webkit-progress-bar{border-radius:inherit;background:#e5e4dd}.agent-progress-track::-webkit-progress-value{border-radius:inherit;background:#3e7567}.agent-progress-track::-moz-progress-bar{border-radius:inherit;background:#3e7567}.agent-progress.compact{gap:4px}.agent-progress.compact .agent-progress-copy{font-size:9px}.agent-progress.compact .agent-progress-track{height:4px}.agent-task-skeleton{min-height:112px;display:grid;grid-template-columns:42px 1fr 28px;gap:12px;padding:14px;border:1px solid #dfdbd0;border-radius:18px;background:#ffffff8a}.agent-task-skeleton>i,.agent-task-skeleton b,.agent-task-skeleton small,.agent-task-skeleton em{display:block;border-radius:10px;background:#e4e2da;animation:task-pulse 1.4s ease-in-out infinite alternate}.agent-task-skeleton>i{width:42px;height:42px}.agent-task-skeleton>span{display:grid;align-content:start;gap:12px}.agent-task-skeleton b{width:55%;height:12px}.agent-task-skeleton small{width:88%;height:18px}.agent-task-skeleton em{width:28px;height:16px}@keyframes task-pulse{to{opacity:.45}}.agent-state-card{display:grid;justify-items:center;padding:44px 24px;text-align:center;color:#71807c}.agent-state-card>span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#e3e7e2;color:#315d53;font:24px Georgia,serif}.agent-state-card h2{margin:15px 0 5px;color:#294b43;font:21px Georgia,serif}.agent-state-card p{max-width:390px;margin:0;line-height:1.55;text-wrap:pretty}.agent-state-card button{min-height:44px;margin-top:16px;padding:10px 18px;border:0;border-radius:12px;background:#315f54;color:#fff;font-weight:800}.agent-state-card.error>span{background:#f1deda;color:#963f37}.agent-task-detail{display:grid;gap:17px}.detail-topbar{display:flex;align-items:center;justify-content:space-between}.back-button{min-height:44px;display:inline-flex;align-items:center;gap:4px;padding:0 8px 0 0;border:0;background:transparent;color:#315f54;font-weight:800}.back-button span{font-size:27px}.detail-live{display:flex;align-items:center;gap:7px;color:#7b8985;font-size:10px;font-weight:800}.detail-hero{display:grid;gap:16px;padding:18px;border:1px solid #d8d3c6;border-radius:22px;background:#ffffffb3}.detail-agent{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center}.detail-agent>span:nth-child(2){display:grid;gap:3px}.detail-agent small{color:#80908b;font-size:10px}.detail-hero h1{margin:0;font:26px/1.2 Georgia,"Noto Serif SC",serif;text-wrap:pretty}.detail-hero dl{display:grid;gap:9px;margin:0;padding-top:4px;border-top:1px solid #e1ddd3}.detail-hero dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px}.detail-hero dt{color:#7d8b87;font-size:10px}.detail-hero dd{overflow:hidden;margin:0;font:10px ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;white-space:nowrap}.task-attention-panel{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:15px;border:1px solid #d8b66f;border-radius:17px;background:#fff7e6;color:#725827}.task-attention-panel>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#876527;color:#fff;font-weight:900}.task-attention-panel p{margin:5px 0 0;line-height:1.5}.task-attention-panel.error{border-color:#ddb5ad;background:#fff0ed;color:#8b4139}.task-attention-panel.error>span{background:#98483f}.timeline-heading{display:flex;justify-content:space-between;align-items:end}.timeline-heading small{color:#81908c}.timeline-heading h2{margin:3px 0 0;font:22px Georgia,serif}.syncing-label{color:#58736c;font-size:10px}.timeline-empty{display:grid;gap:5px;padding:25px 18px;border:1px dashed #d6d1c5;border-radius:16px;color:#74837f;text-align:center}.timeline-empty span{font-size:12px}.agent-timeline{margin:0;padding:0;list-style:none}.agent-timeline li{position:relative;display:grid;grid-template-columns:16px 1fr;gap:10px;padding-bottom:22px}.agent-timeline li:not(:last-child):before{content:"";position:absolute;left:7px;top:14px;bottom:-2px;width:1px;background:#cbd4d0}.timeline-dot{z-index:1;width:15px;height:15px;margin-top:2px;border:4px solid #dce7e3;border-radius:50%;background:#477568}.timeline-dot.attention{border-color:#f4e6c7;background:#9a762e}.agent-timeline li>div{min-width:0;display:grid;gap:5px}.agent-timeline header{display:flex;justify-content:space-between;gap:12px}.agent-timeline header b{overflow-wrap:anywhere;font-size:12px}.agent-timeline time,.agent-timeline small{color:#7e8c88;font-size:9px}.agent-timeline time{flex:0 0 auto}.timeline-tags{display:flex;align-items:center;gap:8px}.timeline-tags .agent-progress{flex:1}@media(max-width:370px){.bottom-nav{padding-inline:4px}.bottom-nav small{font-size:8px}.agent-task-card{grid-template-columns:38px minmax(0,1fr) 12px;padding-inline:12px}.agent-source-mark{width:38px;height:38px}.agent-stats>div{padding-inline:10px}.filter-selects{grid-template-columns:1fr}}@media(min-width:720px){.app-shell{padding-left:94px}.bottom-nav{top:0;right:auto;width:94px;height:100dvh;grid-template-columns:1fr;grid-template-rows:repeat(5,75px);align-content:center;border-top:0;border-right:1px solid rgba(196,190,176,.8);padding:14px}.content{width:min(100%,820px)}.screen{padding-top:34px}.toast{left:112px;max-width:500px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}button:focus-visible{outline:3px solid var(--mg-brand, #4f756b);outline-offset:3px}.text-button,.approval-card button,.toast>button,.agent-inline-state button,.agent-state-card button{min-height:44px}.toast>button{min-width:44px;flex-shrink:0}.mini-brand,.mini-brand>div,.screen-title>div{min-width:0}.mini-brand small{max-width:min(52vw,360px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.screen-title{gap:12px}.screen-title>button{flex-shrink:0}.auth-heading small,.toast,.bubble p,.approval-card p{overflow-wrap:anywhere}.auth-card .offline-banner{margin-bottom:16px;border-radius:12px}.mobile-loading{display:flex;gap:10px;align-items:center;justify-content:center;min-height:150px;color:var(--mg-muted, #536b65);font-size:14px}.loading-dot{width:10px;height:10px;border-radius:50%;background:var(--mg-brand, #4f756b);box-shadow:0 0 0 5px var(--mg-brand-soft, #e3ebe7)}.command-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:14px;padding:16px;border:1px solid var(--mg-line, #d7d2c4);border-radius:18px;background:var(--mg-surface, #fffdf8);font-size:13px}.command-summary .result-card{flex-basis:100%;margin:0}.composer-hint{display:block;padding:6px 2px;color:var(--mg-muted, #536b65);line-height:1.5;font-size:12px}.agent-stats>button{display:grid;gap:7px;min-width:0;min-height:86px;padding:15px;text-align:left;border:1px solid var(--mg-line, #d7d2c4);border-radius:18px;background:var(--mg-surface, #fffdf8);color:var(--mg-ink, #19352f)}.agent-stats>button small{color:var(--mg-muted, #536b65);font-size:12px}.agent-stats>button b{font-size:26px;line-height:1;font-weight:650}.agent-stats>button[aria-pressed=true]{border-color:var(--mg-brand, #4f756b);background:var(--mg-brand-soft, #e3ebe7)}.agent-stats>button.needs-attention b{color:var(--mg-brand-strong, #1e4d43)}.agent-reporting-note{margin:-3px 0 0;color:var(--mg-muted, #536b65);font-size:12px;line-height:1.6;text-wrap:pretty}.agent-source-mark.kimi,.agent-source-mark.claude_code,.agent-source-mark.workbuddy{background:var(--mg-brand-soft, #e3ebe7);color:var(--mg-brand-strong, #1e4d43)}.agent-source-mark.claude_code,.agent-source-mark.workbuddy{font-size:11px}.command-list>button{grid-template-columns:minmax(0,1fr) auto}.command-list>button[aria-pressed=true]{border-color:var(--mg-brand, #4f756b)}.screen-title .title-actions{display:flex;align-items:center;gap:8px}.screen-title .title-actions .icon-button{flex-shrink:0}.screen-title .icon-button.active{background:color-mix(in srgb,var(--mg-brand, #4f756b) 16%,transparent);border-color:color-mix(in srgb,var(--mg-brand, #4f756b) 38%,transparent)}@media(max-width:600px){input,textarea,select{font-size:16px}.endpoint-form{grid-template-columns:minmax(0,1fr)}.auth-card{padding:20px}.agent-stats>button{padding:12px}}:root{--mg-canvas: #F6F2EA;--mg-surface: #FFFCF7;--mg-ink: #1F3933;--mg-muted: #4B625B;--mg-brand: #35695B;--mg-brand-strong: #295548;--mg-brand-soft: #E3EEE8;--mg-warm-soft: #F8E9D6;--mg-danger-soft: #F7E2DE;--mg-line: #D9D1C4;--mg-shadow-soft: 0 1px 2px rgba(31, 57, 51, .04), 0 12px 30px rgba(31, 57, 51, .07);--mg-shadow-float: 0 16px 42px rgba(31, 57, 51, .12);color:var(--mg-ink);background:var(--mg-canvas);font-family:PingFang SC,Noto Sans CJK SC,Microsoft YaHei,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}body{color:var(--mg-ink);background:radial-gradient(circle at 92% -6%,var(--mg-warm-soft) 0,transparent 34%),radial-gradient(circle at -12% 18%,var(--mg-brand-soft) 0,transparent 28%),var(--mg-canvas)}button,input,select{min-height:44px}textarea{min-height:52px}button{border-color:var(--mg-line);-webkit-tap-highlight-color:transparent}input,textarea,select{border-color:var(--mg-line);background:var(--mg-surface);color:var(--mg-ink);caret-color:var(--mg-brand-strong)}input::placeholder,textarea::placeholder{color:var(--mg-muted);opacity:.78}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--mg-brand);outline-offset:2px;border-color:var(--mg-brand);box-shadow:0 0 0 5px var(--mg-brand-soft)}:where(button,input,textarea,select):disabled{opacity:.58}label,label small{color:var(--mg-muted)}label{font-size:13px;line-height:1.4}label small{font-size:12px;line-height:1.5}.primary,.filter-scroll button.active,.agent-state-card button{border-color:var(--mg-brand-strong);background:var(--mg-brand-strong);color:var(--mg-surface);box-shadow:0 8px 20px #29554829}.primary:active,.filter-scroll button.active:active,.agent-state-card button:active{background:var(--mg-brand);transform:translateY(1px)}.text-button,.icon-button,.back-button{color:var(--mg-brand-strong)}.icon-button{background:var(--mg-surface);border:1px solid var(--mg-line);box-shadow:0 2px 10px #1f39330d}.auth-shell{padding-inline:clamp(16px,5vw,28px)}.brand>span,.mini-brand>span{background:var(--mg-brand-strong);color:var(--mg-surface);box-shadow:0 8px 18px #29554829}.brand>div,.mini-brand>div{min-width:0}.brand small,.mini-brand small{color:var(--mg-muted);font-size:12px}.mini-brand small{display:block;max-width:min(52vw,360px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-card{border-color:var(--mg-line);background:var(--mg-surface);box-shadow:var(--mg-shadow-soft);-webkit-backdrop-filter:none;backdrop-filter:none}.dev-boundary,.offline-banner{background:var(--mg-warm-soft);color:var(--mg-ink)}.dev-boundary{border:1px solid var(--mg-line);font-size:13px}.endpoint-form button,.settings-card button,.approval-card button{border-color:var(--mg-line);background:var(--mg-surface);color:var(--mg-brand-strong)}.auth-heading span,.screen-title h1,.empty h2,.agent-state-card h2,.detail-hero h1,.timeline-heading h2{color:var(--mg-ink);font-family:Songti SC,"Noto Serif CJK SC",Iowan Old Style,Georgia,serif;text-wrap:pretty}.auth-heading small{color:var(--mg-muted);font-size:12px}.notice{color:var(--mg-brand-strong)}.topbar{border-bottom-color:var(--mg-line);background:#f6f2eaf0;box-shadow:0 4px 18px #1f39330a}.mini-brand{min-width:0;flex:1}.network{flex:0 0 auto;min-height:32px;display:inline-flex;align-items:center;background:var(--mg-warm-soft);color:var(--mg-ink);font-size:12px}.network.online{background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.screen-title small,.task-sync-strip,.detail-live,.timeline-heading small,.syncing-label{color:var(--mg-muted);font-size:12px}.screen-title h1{font-size:clamp(29px,8vw,34px)}.bottom-nav{border-top-color:var(--mg-line);background:#fffcf7f5;box-shadow:0 -10px 28px #1f39330f}.bottom-nav button{color:var(--mg-muted)}.bottom-nav button.active{background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.bottom-nav small{font-size:10px;font-weight:760}.device-card,.command-list>button,.action-card,.settings-card,.bubble.assistant,.composer,.agent-stats>div,.agent-source-health-card,.agent-task-card,.agent-task-skeleton,.detail-hero{border-color:var(--mg-line);background:var(--mg-surface)}.device-card,.command-list>button,.action-card,.settings-card,.agent-task-card,.detail-hero{box-shadow:var(--mg-shadow-soft)}.device-card.selected{border-color:var(--mg-brand);box-shadow:0 0 0 3px var(--mg-brand-soft),var(--mg-shadow-soft)}.device-icon,.empty>span,.agent-source-mark,.agent-state-card>span{background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.device-card small,.command-list small,.action-card small,.empty,.bubble small,.tool-event small,.agent-stats small,.agent-source-health-card small,.agent-task-foot,.agent-progress-copy,.detail-agent small,.detail-hero dt,.agent-timeline time,.agent-timeline small,.timeline-empty,.error-box small{color:var(--mg-muted)}.device-card small,.command-list small,.action-card small,.tool-event small,.agent-task-foot small,.agent-progress-copy,.detail-agent small,.detail-hero dt,.detail-hero dd,.agent-timeline time,.agent-timeline small{font-size:12px}.device-card em,.device-card em.online{color:var(--mg-brand-strong);font-size:12px}.settings-card .danger{border-color:var(--mg-line);background:var(--mg-danger-soft);color:var(--mg-ink)}.result-card,.bubble.user{background:var(--mg-brand-strong);color:var(--mg-surface)}.bubble.user small{color:var(--mg-brand-soft)}.tool-event{border-left-color:var(--mg-brand)}.approval-card,.agent-inline-state,.agent-stats .needs-attention,.task-attention-panel,.agent-task-card.requires-attention{border-color:var(--mg-line);background:var(--mg-warm-soft);color:var(--mg-ink)}.approval-card p,.task-attention-panel p{color:var(--mg-muted)}.agent-inline-state.error,.agent-source-health-card.error,.agent-task-card.failed,.task-attention-panel.error,.agent-state-card.error>span{border-color:var(--mg-line);background:var(--mg-danger-soft);color:var(--mg-ink)}.composer{background:#fffcf7f7;box-shadow:var(--mg-shadow-float)}.composer button:not(.primary),.error-box{color:var(--mg-ink)}.status-pill,.agent-status{background:var(--mg-warm-soft);color:var(--mg-ink);font-size:11px}.status-pill.good,.agent-status.good,.agent-status.running{background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.status-pill.bad,.agent-status.bad{background:var(--mg-danger-soft);color:var(--mg-ink)}.agent-status.attention{background:var(--mg-warm-soft);color:var(--mg-ink)}.toast{border-color:var(--mg-line);background:var(--mg-surface);color:var(--mg-ink);box-shadow:var(--mg-shadow-float)}.task-sync-strip i,.detail-live i{background:var(--mg-muted)}.task-sync-strip .connected i,.detail-live.online i{background:var(--mg-brand);box-shadow:0 0 0 4px var(--mg-brand-soft)}.agent-stats small,.agent-source-health-card b,.agent-source-health-card small,.agent-source-health-card em,.collector-health{font-size:12px}.agent-source-health-card.live em,.collector-health,.collector-health.error,.collector-health.offline,.collector-health.stale{color:var(--mg-brand-strong)}.agent-source-mark.codex{background:var(--mg-canvas);color:var(--mg-ink)}.agent-source-mark.third_party{background:var(--mg-warm-soft);color:var(--mg-ink)}.agent-filters legend{color:var(--mg-muted);font-size:13px}.filter-scroll button{border-color:var(--mg-line);background:var(--mg-surface);color:var(--mg-muted);font-size:13px}.agent-task-main>strong{color:var(--mg-ink);font-size:16px}.agent-task-meta{row-gap:5px}.agent-task-meta>b,.agent-task-meta>small{color:var(--mg-muted);font-size:12px}.attention-flag{background:var(--mg-brand-strong);color:var(--mg-surface);font-size:10px}.card-chevron{color:var(--mg-muted)}.agent-progress-track{background:var(--mg-line)}.agent-progress-track::-webkit-progress-bar{background:var(--mg-line)}.agent-progress-track::-webkit-progress-value{background:var(--mg-brand)}.agent-progress-track::-moz-progress-bar{background:var(--mg-brand)}.agent-progress.compact .agent-progress-copy{font-size:12px}.agent-task-skeleton>i,.agent-task-skeleton b,.agent-task-skeleton small,.agent-task-skeleton em{background:var(--mg-line)}.detail-hero dl,.timeline-empty{border-color:var(--mg-line)}.task-attention-panel>span,.task-attention-panel.error>span{background:var(--mg-brand-strong);color:var(--mg-surface)}.agent-timeline li:not(:last-child):before{background:var(--mg-line)}.timeline-dot,.timeline-dot.attention{border-color:var(--mg-brand-soft);background:var(--mg-brand)}@media(max-width:420px){.auth-shell{padding-inline:16px}.brand{flex-wrap:wrap}.brand>div{min-width:calc(100% - 56px)}.brand select{width:100%}.endpoint-form{grid-template-columns:minmax(0,1fr)}.endpoint-form button{width:100%}.auth-card{margin-block:20px;padding:20px 16px;border-radius:22px}.topbar{gap:8px;padding-inline:14px}.mini-brand small{max-width:44vw}.network{padding-inline:8px}.screen{padding-inline:14px}.device-card{grid-template-columns:auto minmax(0,1fr)}.device-card em{grid-column:2;justify-self:start}.approval-card>div{display:grid;grid-template-columns:1fr}.approval-card button{width:100%}.agent-task-card{grid-template-columns:38px minmax(0,1fr) 12px;gap:9px;padding-inline:12px}.agent-task-card>.agent-source-mark,.detail-agent .agent-source-mark{width:38px;height:38px}.agent-task-meta{flex-wrap:wrap}.agent-task-meta .agent-status{margin-left:0}.agent-task-foot{display:grid;gap:2px}.agent-task-foot small:first-child{max-width:100%}.agent-task-foot small{white-space:normal}.detail-agent{grid-template-columns:38px minmax(0,1fr)}.detail-agent .agent-status{grid-column:2;justify-self:start}.detail-hero dl>div{grid-template-columns:1fr;gap:2px}.settings-card form,.settings-card form button{width:100%}}@media(min-width:720px){.bottom-nav{border-right-color:var(--mg-line)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.primary:active,.filter-scroll button.active:active,.agent-state-card button:active{transform:none}}:root[data-theme=cloud-wander]{--mg-canvas: #EDF3F2;--mg-surface: #FBFDFC;--mg-ink: #223A40;--mg-muted: #4C656A;--mg-brand: #416F78;--mg-brand-strong: #315761;--mg-brand-soft: #DBE9EB;--mg-warm-soft: #E8EEF0;--mg-danger-soft: #F4E3E0;--mg-line: #CEDCDD;--mg-shadow-soft: 0 1px 2px rgba(34, 58, 64, .04), 0 12px 30px rgba(34, 58, 64, .07);--mg-shadow-float: 0 16px 42px rgba(34, 58, 64, .12)}:root[data-theme=cloud-wander] body{background:radial-gradient(circle at 82% -8%,#F3EEDF 0,transparent 34%),radial-gradient(circle at -12% 17%,#D7E7EA 0,transparent 31%),linear-gradient(155deg,#F6F8F5 0%,var(--mg-canvas) 48%,#E5EEEE 100%)}:root[data-theme=cloud-wander] .topbar{background:#edf3f2f2}:root[data-theme=cloud-wander] .bottom-nav,:root[data-theme=cloud-wander] .composer{background:#fbfdfcf7}.app-shell.has-wallpaper{position:relative;isolation:isolate;background:transparent}.wallpaper-layer{position:fixed;z-index:0;inset:0;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.wallpaper-layer img{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.wallpaper-layer:after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,#f6f2eac2,#f6f2eadb 45%,#f6f2eaf2),radial-gradient(circle at 50% 12%,transparent 0%,rgba(31,57,51,.08) 100%)}:root[data-theme=cloud-wander] .wallpaper-layer:after{background:linear-gradient(180deg,#edf3f2c2,#edf3f2de 45%,#edf3f2f2),radial-gradient(circle at 50% 12%,transparent 0%,rgba(34,58,64,.08) 100%)}.app-shell.has-wallpaper>.offline-banner,.app-shell.has-wallpaper>.content{position:relative;z-index:1}.app-shell.has-wallpaper .topbar{background:#f6f2eaf2}:root[data-theme=cloud-wander] .app-shell.has-wallpaper .topbar{background:#edf3f2f2}.appearance-card{display:grid;gap:18px;margin-bottom:16px;padding:18px;border:1px solid var(--mg-line);border-radius:22px;background:var(--mg-surface);box-shadow:var(--mg-shadow-soft)}.appearance-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.appearance-heading>div{min-width:0}.appearance-heading small{color:var(--mg-muted);font-size:12px;font-weight:760;letter-spacing:.04em}.appearance-heading h2{margin:3px 0 0;color:var(--mg-ink);font:24px/1.2 Songti SC,"Noto Serif CJK SC",Iowan Old Style,Georgia,serif;text-wrap:pretty}.appearance-heading>span{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:11px;font-weight:800}.appearance-intro{margin:-8px 0 0;color:var(--mg-muted);font-size:14px;line-height:1.6;text-wrap:pretty}.theme-fieldset{min-width:0;margin:0;padding:0;border:0}.theme-fieldset legend{margin-bottom:9px;color:var(--mg-muted);font-size:13px;font-weight:780}.theme-options{display:grid;gap:10px}.theme-options>button{position:relative;width:100%;min-height:92px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--mg-line);border-radius:17px;background:var(--mg-surface);color:var(--mg-ink);text-align:left;box-shadow:0 4px 16px #1f39330a}.theme-options>button.selected{border-color:var(--mg-brand);box-shadow:0 0 0 3px var(--mg-brand-soft),0 8px 20px #1f39330f}.theme-options>button>span:nth-child(2){min-width:0;display:grid;gap:4px}.theme-options b{font-size:15px}.theme-options small{color:var(--mg-muted);font-size:12px;line-height:1.45;text-wrap:pretty}.theme-options em{align-self:start;padding:5px 7px;border-radius:999px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:10px;font-style:normal;font-weight:850}.theme-swatch{position:relative;width:72px;height:70px;overflow:hidden;border:1px solid rgba(31,57,51,.1);border-radius:14px}.theme-swatch i{position:absolute;display:block;border-radius:999px;transform:rotate(-18deg)}.theme-swatch.morning-garden{background:radial-gradient(circle at 80% 8%,#F8E9D6 0 17%,transparent 18%),linear-gradient(155deg,#fffcf7 0 38%,#e3eee8 39% 70%,#35695b 71% 100%)}.theme-swatch.morning-garden i:nth-child(1){width:54px;height:13px;right:-12px;bottom:13px;background:#fffcf7b8}.theme-swatch.morning-garden i:nth-child(2){width:38px;height:8px;left:-9px;top:19px;background:#35695b29}.theme-swatch.morning-garden i:nth-child(3){width:30px;height:30px;right:8px;top:13px;background:#fffcf752}.theme-swatch.cloud-wander{background:radial-gradient(circle at 77% 16%,#F3EEDF 0 16%,transparent 17%),linear-gradient(150deg,#fbfdfc 0 36%,#dbe9eb 37% 68%,#416f78 69% 100%)}.theme-swatch.cloud-wander i:nth-child(1){width:58px;height:14px;left:-8px;bottom:14px;background:#fbfdfcab}.theme-swatch.cloud-wander i:nth-child(2){width:43px;height:9px;right:-11px;top:22px;background:#31576124}.theme-swatch.cloud-wander i:nth-child(3){width:34px;height:34px;left:10px;top:9px;background:#fbfdfc4a}.wallpaper-settings{display:grid;gap:11px;padding-top:17px;border-top:1px solid var(--mg-line)}.wallpaper-copy{display:grid;gap:4px}.wallpaper-copy b{font-size:14px}.wallpaper-copy p{margin:0;color:var(--mg-muted);font-size:12px;line-height:1.5;text-wrap:pretty}.wallpaper-preview,.wallpaper-placeholder{position:relative;width:100%;height:178px;overflow:hidden;margin:0;border:1px solid var(--mg-line);border-radius:16px;background:var(--mg-brand-soft)}.wallpaper-preview:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 36%,rgba(31,57,51,.65) 100%);pointer-events:none}.wallpaper-preview img{width:100%;height:100%;object-fit:cover}.wallpaper-preview figcaption{position:absolute;z-index:1;right:12px;bottom:10px;left:12px;overflow:hidden;color:#fffcf7;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.wallpaper-placeholder{background:radial-gradient(circle at 84% 18%,var(--mg-warm-soft) 0 17%,transparent 18%),linear-gradient(160deg,var(--mg-surface) 0 40%,var(--mg-brand-soft) 41% 72%,var(--mg-canvas) 73% 100%)}.wallpaper-placeholder span{position:absolute;display:block;height:16px;border-radius:999px;background:#35695b1f;transform:rotate(-8deg)}.wallpaper-placeholder span:nth-child(1){width:58%;right:-8%;top:25%}.wallpaper-placeholder span:nth-child(2){width:48%;left:-7%;bottom:29%}.wallpaper-placeholder span:nth-child(3){width:34%;right:14%;bottom:14%}.wallpaper-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.wallpaper-upload,.wallpaper-clear{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--mg-line);border-radius:12px;font-size:13px;font-weight:790}.wallpaper-upload{position:relative;overflow:hidden;background:var(--mg-brand-strong);color:var(--mg-surface);cursor:pointer}.wallpaper-upload.disabled{cursor:not-allowed;opacity:.58}.wallpaper-upload input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.wallpaper-upload:focus-within{outline:3px solid var(--mg-brand);outline-offset:2px;box-shadow:0 0 0 5px var(--mg-brand-soft)}.wallpaper-clear{padding-inline:14px;background:var(--mg-danger-soft);color:var(--mg-ink)}.wallpaper-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px 8px 12px;border-radius:12px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:12px;line-height:1.45}.wallpaper-status.error{background:var(--mg-danger-soft);color:var(--mg-ink)}.wallpaper-status button{flex:0 0 44px;width:44px;min-height:44px;margin-block:-6px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:20px}:root[data-theme=community] body{color:var(--mg-ink);background:radial-gradient(circle at 92% -6%,var(--mg-warm-soft) 0,transparent 34%),radial-gradient(circle at -12% 18%,var(--mg-brand-soft) 0,transparent 28%),var(--mg-canvas)}:root[data-theme=community] .topbar,:root[data-theme=community] .app-shell.has-wallpaper .topbar{background:color-mix(in srgb,var(--mg-canvas) 94%,transparent)}:root[data-theme=community] .bottom-nav,:root[data-theme=community] .composer{background:color-mix(in srgb,var(--mg-surface) 96%,transparent)}:root[data-theme=community] .wallpaper-layer:after{background:linear-gradient(180deg,color-mix(in srgb,var(--mg-canvas) 76%,transparent),color-mix(in srgb,var(--mg-canvas) 95%,transparent)),radial-gradient(circle at 50% 12%,transparent 0%,color-mix(in srgb,var(--mg-ink) 8%,transparent) 100%)}.theme-store-card{display:grid;gap:16px;margin-bottom:16px;padding:18px;border:1px solid var(--mg-line);border-radius:22px;background:var(--mg-surface);color:var(--mg-ink);box-shadow:var(--mg-shadow-soft)}.theme-store-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.theme-store-heading>div{min-width:0}.theme-store-heading small{color:var(--mg-brand);font-size:11px;font-weight:850;letter-spacing:.08em}.theme-store-heading h2{margin:4px 0 7px;font:24px/1.2 Songti SC,"Noto Serif CJK SC",Iowan Old Style,Georgia,serif}.theme-store-heading p,.theme-studio-intro p{margin:0;color:var(--mg-muted);font-size:13px;line-height:1.65}.theme-store-heading>button,.theme-studio-intro>button{flex:0 0 auto;min-height:44px;padding:0 13px;border:1px solid var(--mg-line);border-radius:12px;background:var(--mg-surface);color:var(--mg-brand-strong);font-size:12px;font-weight:800}.theme-store-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:var(--mg-brand-soft)}.theme-store-tabs button{min-height:44px;border:0;border-radius:11px;background:transparent;color:var(--mg-muted);font-size:13px;font-weight:800}.theme-store-tabs button.active{background:var(--mg-surface);color:var(--mg-brand-strong);box-shadow:0 3px 12px color-mix(in srgb,var(--mg-ink) 8%,transparent)}.theme-store-message{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center;padding:8px 8px 8px 12px;border-radius:12px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:12px;line-height:1.5}.theme-store-message.error{background:var(--mg-danger-soft);color:var(--mg-ink)}.theme-store-message button{min-height:44px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:20px}.theme-store-state{padding:26px 18px;color:var(--mg-muted);text-align:center;font-size:13px;line-height:1.6}.community-theme-grid{display:grid;gap:11px}.community-theme-card{display:grid;grid-template-columns:108px minmax(0,1fr);gap:13px;padding:11px;border:1px solid var(--mg-line);border-radius:18px;background:color-mix(in srgb,var(--mg-surface) 92%,var(--mg-canvas))}.community-theme-card.selected{border-color:var(--mg-brand);box-shadow:0 0 0 3px var(--mg-brand-soft)}.community-theme-preview{position:relative;min-height:96px;overflow:hidden;border:1px solid;border-radius:15px;isolation:isolate}.community-theme-sun{position:absolute;top:13px;right:14px;width:26px;height:26px;border-radius:50%}.community-theme-hill{position:absolute;left:-14%;right:-14%;bottom:-44%;height:82%;border-radius:50% 50% 0 0;transform:rotate(-4deg)}.community-theme-hill.far{bottom:-29%;transform:rotate(7deg)}.community-theme-window{position:absolute;z-index:2;left:13px;top:17px;width:42px;height:52px;border:1px solid;border-radius:9px;box-shadow:0 5px 16px #00000014}.community-theme-preview>i{position:absolute;z-index:3;left:20px;top:28px;width:26px;height:3px;border-radius:3px}.community-theme-preview>i:nth-last-child(2){top:38px;width:18px;opacity:.7}.community-theme-preview>i:last-child{top:52px;width:13px;height:7px}.community-theme-copy{min-width:0}.community-theme-copy>span,.own-submissions article>div>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.community-theme-copy b,.own-submissions b{overflow-wrap:anywhere;font-size:14px}.community-theme-copy em,.own-submissions em{flex:0 0 auto;font-style:normal;color:var(--mg-muted);font-size:10px;font-weight:800}.community-theme-copy>small{display:block;margin-top:3px;color:var(--mg-muted);font-size:10px}.community-theme-copy p{display:-webkit-box;margin:8px 0;overflow:hidden;color:var(--mg-muted);font-size:12px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.theme-asset-badges{display:flex;flex-wrap:wrap;gap:5px}.theme-asset-badges span{padding:4px 7px;border-radius:999px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:9px;font-weight:800}.community-theme-card>button{grid-column:1 / -1;min-height:44px;border:1px solid var(--mg-brand-strong);border-radius:12px;background:var(--mg-brand-strong);color:var(--mg-surface);font-size:12px;font-weight:820}.community-theme-card.selected>button{border-color:var(--mg-line);background:var(--mg-brand-soft);color:var(--mg-brand-strong)}.theme-store-empty{display:grid;justify-items:center;padding:34px 18px;text-align:center}.theme-store-empty>span{display:grid;place-items:center;width:58px;height:58px;border-radius:21px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:25px}.theme-store-empty b{margin-top:15px;font:19px/1.3 Songti SC,"Noto Serif CJK SC",Georgia,serif}.theme-store-empty p{max-width:390px;margin:7px 0 15px;color:var(--mg-muted);font-size:12px;line-height:1.6}.theme-store-empty button{min-height:44px;padding:0 15px;border:1px solid var(--mg-brand);border-radius:12px;background:var(--mg-surface);color:var(--mg-brand-strong);font-size:12px;font-weight:800}.theme-studio,.theme-submission-form{display:grid;gap:16px}.theme-studio-intro{display:flex;align-items:start;justify-content:space-between;gap:12px}.theme-studio-intro b{font:17px/1.3 Songti SC,"Noto Serif CJK SC",Georgia,serif}.theme-studio-intro p{margin-top:5px}.theme-submission-form{padding:14px;border:1px solid var(--mg-line);border-radius:17px;background:color-mix(in srgb,var(--mg-canvas) 50%,var(--mg-surface))}.theme-form-preview{display:grid;grid-template-columns:116px 1fr;gap:11px;align-items:center}.theme-form-preview>span{color:var(--mg-brand-strong);font-size:12px;font-weight:850}.theme-submission-form textarea{resize:vertical}.theme-palette-fields,.theme-asset-fields{min-width:0;margin:0;padding:0;border:0}.theme-palette-fields legend,.theme-asset-fields legend{margin-bottom:9px;color:var(--mg-ink);font-size:13px;font-weight:850}.theme-palette-fields>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-palette-fields label{gap:5px;padding:9px;border:1px solid var(--mg-line);border-radius:12px;background:var(--mg-surface);font-size:10px}.theme-color-control{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:7px}.theme-color-control input{width:44px;height:44px;min-height:44px;padding:3px;border-radius:10px}.theme-color-control code{overflow:hidden;color:var(--mg-muted);font:10px ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis}.theme-asset-fields{display:grid;gap:10px}.theme-asset-fields>p{margin:-3px 0 2px;color:var(--mg-muted);font-size:11px;line-height:1.55}.theme-asset-fields label{padding:10px;border:1px solid var(--mg-line);border-radius:12px;background:var(--mg-surface)}.theme-asset-fields input[type=file]{min-height:44px;padding:7px;font-size:11px}.theme-asset-fields small{overflow-wrap:anywhere;font-size:10px}.theme-submit{width:100%;min-height:48px}.own-submissions{display:grid;gap:9px;padding-top:4px}.own-submissions>header{display:flex;align-items:center;justify-content:space-between}.own-submissions>header b{font:17px Songti SC,"Noto Serif CJK SC",Georgia,serif}.own-submissions>header span{padding:4px 8px;border-radius:999px;background:var(--mg-brand-soft);color:var(--mg-brand-strong);font-size:10px;font-weight:850}.own-submissions>div{display:grid;gap:8px}.own-submissions article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--mg-line);border-radius:15px;background:var(--mg-surface)}.own-submissions .community-theme-preview{min-height:72px}.own-submissions article>div{min-width:0}.own-submissions article small{display:block;margin-top:4px;color:var(--mg-muted);font-size:9px}.own-submissions article p{margin:7px 0 0;padding:7px 8px;border-radius:9px;background:var(--mg-danger-soft);color:var(--mg-ink);font-size:10px;line-height:1.5}.own-submissions article p strong{margin-right:3px}.own-submissions article>button{grid-column:1 / -1;min-height:44px;border:1px solid var(--mg-line);border-radius:11px;background:var(--mg-surface);color:var(--mg-brand-strong);font-size:11px;font-weight:800}.own-submissions em.pending_review{color:#8a642e}.own-submissions em.published{color:var(--mg-brand-strong)}.own-submissions em.rejected{color:#984a42}@media(max-width:420px){.appearance-card{padding:16px}.appearance-heading{display:grid}.appearance-heading>span{justify-self:start}.theme-options>button{grid-template-columns:60px minmax(0,1fr);min-height:96px}.theme-swatch{width:60px;height:72px}.theme-options em{grid-column:2;justify-self:start}.wallpaper-actions{grid-template-columns:1fr}.wallpaper-clear{width:100%}.theme-store-card{padding:16px}.theme-store-heading,.theme-studio-intro{display:grid}.theme-store-heading>button,.theme-studio-intro>button{justify-self:start}.community-theme-card{grid-template-columns:92px minmax(0,1fr)}.theme-palette-fields>div{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.theme-options>button,.wallpaper-upload,.wallpaper-clear{transition:none}}:root[data-theme-family=healing]{--mg-shadow-soft: 0 1px 2px color-mix(in srgb, var(--mg-ink) 4%, transparent), 0 10px 28px color-mix(in srgb, var(--mg-ink) 7%, transparent);--mg-shadow-float: 0 16px 42px color-mix(in srgb, var(--mg-ink) 12%, transparent)}:root[data-theme-family=healing] body{background:var(--mg-atmosphere);background-attachment:fixed}:root[data-theme-family=healing] .topbar,:root[data-theme-family=healing] .app-shell.has-wallpaper .topbar{background:color-mix(in srgb,var(--mg-surface) 96%,transparent)}:root[data-theme-family=healing] .bottom-nav,:root[data-theme-family=healing] .composer{background:color-mix(in srgb,var(--mg-surface) 97%,transparent)}:root[data-theme-family=healing] .screen{margin-top:18px;background:color-mix(in srgb,var(--mg-canvas) 97%,transparent);border-radius:var(--mg-radius)}:root[data-theme-family=healing] :is(.appearance-card,.theme-store-card,.auth-card,.device-card,.settings-card,.action-card,.agent-task-card,.detail-hero){border-radius:var(--mg-radius)}:root[data-theme-family=healing] :is(.primary,.theme-store-card button,.wallpaper-clear,.wallpaper-upload,input,textarea,select){border-radius:12px}:root[data-theme-family=healing] .wallpaper-layer:after{background:linear-gradient(180deg,color-mix(in srgb,var(--mg-canvas) 22%,transparent),color-mix(in srgb,var(--mg-canvas) 48%,transparent))}:root[data-theme=meadow-sky] :is(.appearance-card,.theme-store-card,.auth-card,.settings-card,.device-card,.agent-task-card){background:linear-gradient(125deg,var(--mg-surface),color-mix(in srgb,var(--mg-surface) 93%,var(--mg-warm-soft)));box-shadow:inset 0 1px color-mix(in srgb,var(--mg-surface) 80%,white),var(--mg-shadow-soft)}:root[data-theme=sea-salt-letter] :is(.appearance-card,.theme-store-card,.auth-card,.settings-card,.device-card,.agent-task-card){background:color-mix(in srgb,var(--mg-surface) 95%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 1px color-mix(in srgb,var(--mg-surface) 80%,white),var(--mg-shadow-soft)}:root[data-theme=moonlit-forest] .auth-shell>.brand :is(b,small){color:var(--mg-surface)}:root[data-theme=moonlit-forest] .auth-appearance>summary{border-color:var(--mg-line);background:var(--mg-surface);color:var(--mg-brand-strong)}:root[data-theme=moonlit-forest] :is(.appearance-card,.theme-store-card,.auth-card,.settings-card){background:var(--mg-surface);box-shadow:0 14px 36px color-mix(in srgb,var(--mg-brand-strong) 16%,transparent)}.auth-appearance{width:min(100%,440px);margin:0 auto 24px}.auth-appearance>summary{min-height:44px;padding:12px 16px;border:1px solid var(--mg-line);border-radius:14px;background:var(--mg-surface);color:var(--mg-brand-strong);cursor:pointer;font-size:14px;font-weight:650;text-align:center}.auth-appearance[open]>summary{margin-bottom:14px}.auth-appearance>summary:focus-visible{outline:3px solid var(--mg-brand);outline-offset:3px}.auth-appearance .appearance-card{margin-bottom:0}.appearance-current{display:grid;gap:10px;padding:15px;border:1px solid var(--mg-line);border-radius:16px;background:var(--mg-brand-soft)}.appearance-current>div{display:grid;gap:2px}.appearance-current small{color:var(--mg-muted);font-size:12px}.appearance-current b{font:23px/1.35 Songti SC,"Noto Serif CJK SC",Georgia,serif;color:var(--mg-ink)}.appearance-current>span{font-size:12px;line-height:1.5;color:var(--mg-brand-strong);overflow-wrap:anywhere}.theme-options>.theme-option{grid-template-columns:78px minmax(0,1fr);min-height:122px;padding:14px 11px;align-items:start;transition:border-color .18s ease,box-shadow .18s ease}.theme-option.selected{background:color-mix(in srgb,var(--mg-surface) 90%,var(--mg-brand-soft))}.theme-options>.theme-option>em{grid-column:2;justify-self:start;font-size:11px;padding:4px 8px}.theme-options b{font:20px/1.25 Songti SC,"Noto Serif CJK SC",Georgia,serif}.theme-options small{font-size:13px;line-height:1.55}.theme-option-copy{display:grid;gap:7px;min-width:0}.healing-theme-detail{display:flex;flex-wrap:wrap;gap:5px;padding-top:3px}.healing-theme-detail>span{padding:3px 6px;border-radius:6px;background:var(--mg-canvas);color:var(--mg-muted);font-size:10px;line-height:1.5}.healing-ui-preview{position:relative;display:block;min-width:0;width:78px;height:102px;overflow:hidden;border:1px solid color-mix(in srgb,var(--preview-ink) 10%,transparent);border-radius:12px;background:var(--preview-atmosphere)}.healing-preview-panel{position:absolute;display:grid;align-content:start;gap:6px;left:9px;right:9px;top:12px;padding:9px 7px;height:65px;border-radius:var(--preview-radius);background:var(--preview-surface);box-shadow:0 5px 13px color-mix(in srgb,var(--preview-ink) 12%,transparent)}.healing-preview-panel>i{height:3px;width:85%;border-radius:1px;background:var(--preview-muted);opacity:.4}.healing-preview-panel>i:first-child{width:58%;height:5px;background:var(--preview-ink);opacity:.85}.healing-preview-panel>i:nth-child(3){width:68%}.healing-preview-panel>span{width:21px;height:10px;margin-top:2px;border-radius:3px;background:var(--preview-brand)}.healing-preview-chips{position:absolute;display:flex;gap:4px;bottom:9px;left:13px}.healing-preview-chips>i{width:12px;height:5px;border-radius:3px;background:var(--preview-surface)}.healing-preview-chips>i:nth-child(2){background:var(--preview-brand)}.healing-preview-chips>i:last-child{background:var(--preview-soft)}.healing-artwork-note,.wallpaper-source-note{margin:12px 0 0;font-size:13px;line-height:1.65;color:var(--mg-muted);text-wrap:pretty}.wallpaper-atmosphere-preview{display:grid;align-content:center;gap:8px;min-height:145px;padding:24px;border:1px solid var(--mg-line);border-radius:16px;background:var(--mg-atmosphere, var(--mg-canvas))}.wallpaper-atmosphere-preview>span,.wallpaper-atmosphere-preview>small{justify-self:start;padding:5px 9px;border-radius:8px;background:var(--mg-surface);color:var(--mg-ink)}.wallpaper-atmosphere-preview>span{font-size:15px}.wallpaper-atmosphere-preview>small{font-size:12px;color:var(--mg-muted)}.wallpaper-copy b{font-size:16px}.wallpaper-copy p{font-size:13px;line-height:1.6}.appearance-heading{flex-wrap:wrap}.appearance-heading>span{font-size:12px}.theme-option .theme-swatch{height:90px;width:78px}.wallpaper-actions:has(.wallpaper-clear){grid-template-columns:1fr}@media(hover:hover){.theme-option:hover{border-color:var(--mg-brand);box-shadow:0 0 0 2px var(--mg-brand-soft)}}@media(max-width:370px){.appearance-card{padding:14px}.theme-options>.theme-option{grid-template-columns:60px minmax(0,1fr);gap:10px;padding:12px 9px}.healing-ui-preview,.theme-option .theme-swatch{width:60px}.healing-preview-panel{left:6px;right:6px;padding-inline:6px}.healing-preview-chips{left:7px}.theme-options b{font-size:18px}.theme-options small{font-size:12px}}@media(prefers-reduced-motion:reduce){.theme-options>.theme-option{transition:none}}
