/* Visual foundation copied from the user-owned v2 prototype; the source is unchanged. */

    :root {
      --paper:#fbfdf6; --surface:#fefefb; --ink:#0a1d08; --ink-soft:#576554;
      --line:#dfe5d5; --sage:#d7e8b5; --sage-pale:#eff2e8; --loam:#4a3212;
      --amber:#b27b37; --amber-pale:#f7edda; --red:#b75141; --red-pale:#f8e9e5;
      --shadow:0 18px 50px rgba(24,39,18,.09); --ease:cubic-bezier(.22,1,.36,1);
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;color:var(--ink);background:var(--paper);font:14px/1.55 "Avenir Next","PingFang SC","Hiragino Sans GB",sans-serif}
    body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.37;background:radial-gradient(circle at 80% 5%,#e7efd8 0,transparent 29%),radial-gradient(circle at 5% 85%,#f4ead8 0,transparent 31%)}
    button,textarea,input,select{font:inherit}
    button{cursor:pointer}
    button:disabled{cursor:not-allowed;opacity:.48}
    button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #92ae6e;outline-offset:3px}
    svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex:none}
    [hidden]{display:none!important}
    .app-shell{display:grid;grid-template-columns:72px 254px minmax(0,1fr);min-height:100vh}
    .channel-rail{position:sticky;top:0;height:100vh;background:#202b20;border-right:1px solid #172317;display:flex;align-items:center;flex-direction:column;padding:15px 0;gap:10px}
    .rail-brand{width:44px;height:44px;border-radius:16px;background:#eef4e5;color:#20371c;text-decoration:none;display:grid;place-items:center;font:800 25px/1 Georgia,serif;transition:border-radius .2s var(--ease)}
    .rail-brand:hover{border-radius:13px}
    .rail-divider{width:30px;height:1px;background:#556950;margin:4px 0 2px}
    .channel-nav{display:grid;justify-items:center;gap:9px;width:100%}
    .channel-option{position:relative;width:46px;height:46px;border:0;border-radius:17px;background:#3d503d;color:#edf6e6;font:700 11px/1 "PingFang SC",sans-serif;transition:background .2s,border-radius .2s,transform .2s}
    .channel-option:hover{background:#5d7f4c;border-radius:14px;transform:translateY(-1px)}
    .channel-option.active{background:#d6e8bc;color:#1e3b1d;border-radius:14px}
    .channel-option.active::before{content:"";position:absolute;left:-13px;top:9px;width:4px;height:28px;border-radius:0 4px 4px 0;background:#d6e8bc}
    .rail-pending{position:absolute;right:-4px;bottom:-4px;min-width:18px;height:18px;padding:0 3px;border:2px solid #202b20;border-radius:9px;background:#c8904d;color:#fff;display:grid;place-items:center;font:700 9px/1 sans-serif}
    .channel-sidebar{position:sticky;top:0;height:100vh;background:#eef2e8;border-right:1px solid #d7e2d0;display:flex;flex-direction:column;min-width:0}
    .sidebar-head{height:64px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #d6e0ce;box-shadow:0 2px 7px #26391a0b}
    .sidebar-head strong{font-size:15px;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .sidebar-head .hash{color:#5e8550;font:700 22px/1 Georgia,serif;margin-right:11px}
    .sidebar-scroll{padding:23px 10px 15px;overflow:auto}
    .sidebar-label{display:flex;justify-content:space-between;align-items:center;color:#6c8062;font-size:10px;font-weight:800;letter-spacing:.13em;padding:0 10px;margin:0 0 8px}
    .sidebar-label span{letter-spacing:0;background:#dfe9d7;border-radius:6px;padding:2px 6px}
    .ability-nav{display:grid;gap:3px;margin-bottom:24px}
    .ability-option{width:100%;display:flex;align-items:center;gap:10px;background:transparent;border:1px solid transparent;border-radius:8px;color:#566a50;text-align:left;padding:9px 10px;transition:background .18s,border-color .18s,color .18s}
    .ability-option:hover{background:#e2eadc;color:var(--ink)}
    .ability-option.active{background:#dce9d2;border-color:#c8d9c0;color:#213b1c}
    .ability-option-icon{width:23px;height:23px;display:grid;place-items:center;flex:none;color:#718e67}
    .ability-option-icon svg{width:17px;height:17px}
    .ability-option-copy{min-width:0;display:block}
    .ability-option strong{display:block;font-size:12px;line-height:1.3}
    .ability-option small{display:block;font-size:10px;color:#7a8c73;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .sidebar-bottom{margin-top:auto;border-top:1px solid #d7e2d0;padding:13px 18px;color:#83917b;font-size:10px}
    .topbar{height:64px;padding:0 34px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:rgba(251,253,246,.93);backdrop-filter:blur(16px);position:sticky;top:0;z-index:10}
    .top-channel{display:flex;align-items:center;gap:9px;min-width:0;font-size:13px}
    .top-channel .hash{color:#788e6e;font:700 23px/1 Georgia,serif}
    .top-channel strong{white-space:nowrap}
    .top-divider{color:#b4c0ac;margin:0 3px}
    .top-ability{color:#617459;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;white-space:nowrap;font:700 26px/1 Georgia,"Songti SC",serif;letter-spacing:-.075em}
    .brand-mark{width:29px;height:29px;border:2px solid var(--ink);border-radius:9px 9px 12px 9px;display:grid;place-items:center;font:700 17px/1 Georgia,serif;transform:rotate(-8deg)}
    .top-separator{width:1px;height:25px;background:var(--line)}
    .crumb{color:var(--ink-soft);font-size:12px;white-space:nowrap}
    .crumb strong{color:var(--ink);font-weight:700}
    .top-spacer{flex:1}
    .demo-pill{border:1px solid #d7d2ba;background:#f8f3e7;color:#6f613f;padding:5px 10px;border-radius:999px;font-size:11px;white-space:nowrap}
    .avatar{width:34px;height:34px;border:1px solid #b7c8a2;border-radius:50%;display:grid;place-items:center;background:var(--sage-pale);font:700 13px Georgia,serif}
    .app-content{min-width:0;height:100vh;display:flex;flex-direction:column}
    main{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;padding:0 34px 22px}
    .channel-view{width:100%;max-width:820px;margin:0 auto;flex:1}
    .intro{padding:48px 0 25px;border-bottom:1px solid var(--line)}
    .ability-emblem{width:54px;height:54px;border-radius:18px;background:#deebd3;color:#4b7842;display:grid;place-items:center;margin-bottom:19px}
    .ability-emblem svg{width:27px;height:27px}
    .ability-overline{color:#708567;font-size:10px;font-weight:780;letter-spacing:.14em;margin:0 0 7px;text-transform:uppercase}
    .eyebrow{display:flex;align-items:center;gap:9px;color:#687e50;font-size:10px;font-weight:750;letter-spacing:.19em;text-transform:uppercase}
    .eyebrow::before{content:"";width:18px;height:2px;background:#849e63}
    h1,h2,h3,p{margin-top:0}
    h1{font:600 clamp(29px,3vw,38px)/1.15 "Iowan Old Style","Songti SC",Georgia,serif;letter-spacing:-.045em;margin:0}
    .intro .ability-description{font-size:13px;color:var(--ink-soft);margin:8px 0 0;max-width:650px}
    .intro-actions{display:flex;align-items:center;gap:10px;margin-bottom:2px}
    .quiet-button,.solid-button,.danger-button,.text-button,.icon-button,.chip-button{border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease),box-shadow .18s var(--ease)}
    .quiet-button{background:var(--surface);border:1px solid var(--line);color:var(--ink);padding:10px 14px;font-weight:650}
    .quiet-button:hover,.chip-button:hover,.icon-button:hover{background:var(--sage-pale);border-color:#b9caa6}
    .solid-button{background:var(--loam);border:1px solid var(--loam);color:#fffdf7;padding:10px 17px;font-weight:700}
    .solid-button:hover:not(:disabled){background:#67451a;transform:translateY(-1px);box-shadow:0 5px 14px #4a321226}
    .danger-button{margin-right:auto;background:transparent;border:1px solid #d9a6a0;color:#9b3e35;padding:10px 14px;font-weight:680}
    .danger-button:hover:not(:disabled){background:#faece9;border-color:#c77e75}
    .text-button{background:transparent;border:0;color:#496d34;padding:8px 2px;font-weight:680}
    .text-button:hover{color:#203c16;text-decoration:underline;text-underline-offset:4px}
    .icon-button{width:37px;height:37px;padding:0;border:1px solid transparent;background:transparent;color:var(--ink-soft)}
    .icon-button svg{width:18px;height:18px}
    .chip-button{padding:7px 10px;background:transparent;border:1px solid transparent;color:var(--ink-soft);font-size:12px}
    .chip-button strong{color:var(--ink);font-weight:700}
    .workspace{margin-top:0}
    .compose-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:0 0 11px}
    .compose-heading h2{font:600 19px/1.3 "Iowan Old Style","Songti SC",Georgia,serif;margin:0;letter-spacing:-.02em}
    .primary-column{max-width:790px}
    .compose-dock{position:sticky;bottom:0;width:100%;max-width:820px;margin:0 auto;padding:18px 0 0;background:linear-gradient(to bottom,#fbfdf600 0,#fbfdf6 17px,#fbfdf6 100%)}
    .composer{position:relative;background:var(--surface);border:1px solid #cfdbc5;border-radius:18px;box-shadow:0 8px 24px #1e33110c;transition:border-color .2s,box-shadow .2s}
    .composer:focus-within{border-color:#90a979;box-shadow:0 0 0 3px #d7e8b57d,0 8px 24px #1e33110c}
    .composer textarea{display:block;width:100%;height:112px;resize:vertical;border:0;outline:0!important;background:transparent;padding:18px 58px 18px 20px;color:var(--ink);line-height:1.7;font-size:14px;border-radius:18px}
    .composer textarea::placeholder{color:#929d88}
    .composer-mic{position:absolute;right:13px;bottom:13px;width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:#f5f8ef;color:#597449}
    .composer-mic:hover{background:#e8f0df}
    .compose-action{display:flex;justify-content:flex-end;margin-top:13px}
    .result-section{margin-top:32px;border-top:1px solid var(--line)}
    .result-fold{border-bottom:1px solid var(--line)}
    .result-fold summary{list-style:none;display:flex;align-items:center;gap:10px;padding:19px 3px;cursor:pointer}
    .result-fold summary::-webkit-details-marker{display:none}
    .result-fold summary strong{font:600 19px/1.3 "Iowan Old Style","Songti SC",Georgia,serif}
    .result-fold summary .count{background:#e5eedb;color:#557448;font:700 10px/1 sans-serif;border-radius:999px;padding:5px 7px}
    .result-fold summary svg{margin-left:auto;width:17px;height:17px;color:#7a9070;transition:transform .2s}
    .result-fold[open] summary svg{transform:rotate(180deg)}
    .result-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:0 0 19px}
    .work-card{display:flex;align-items:center;gap:16px;width:100%;min-width:0;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:16px 18px;color:var(--ink);transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}
    .work-card:hover{transform:translateY(-2px);border-color:#a8bc94;box-shadow:0 11px 24px #1e331111}
    .work-card:active{transform:translateY(0)}
    .result-copy{min-width:0;flex:1}
    .result-ability{display:block;color:#78916d;font-size:10px;font-weight:700;margin-bottom:3px}
    .state-pill{border-radius:999px;padding:4px 8px;display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;white-space:nowrap;background:var(--sage-pale);color:#496d34}
    .state-pill.amber{background:var(--amber-pale);color:#8e6027}
    .state-pill.red{background:var(--red-pale);color:#9c4c3f}
    .state-pill .tiny-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
    .card-time{font-size:10px;color:#899583}
    .work-card h3{font:700 13px/1.5 "Avenir Next","PingFang SC",sans-serif;margin:0 0 4px;letter-spacing:-.015em}
    .work-card p{color:var(--ink-soft);font-size:12px;line-height:1.5;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .result-action{font-size:11px;font-weight:700;color:#4d723e;white-space:nowrap;display:flex;align-items:center;gap:7px}
    .result-action svg{width:15px;height:15px}
    .completed-row{width:100%;background:transparent;border:0;border-radius:7px;padding:9px 7px;color:var(--ink-soft);display:flex;align-items:center;gap:9px;text-align:left;font-size:12px}
    .completed-row:hover{background:var(--sage-pale);color:var(--ink)}
    .completed-row svg{width:15px;height:15px;color:#6d9854}
    .completed-row span{margin-left:auto;font-size:10px;color:#8b9681}
    .scrim{position:fixed;inset:0;background:#0b1d0c66;z-index:20;opacity:0;pointer-events:none;transition:opacity .25s var(--ease)}
    .scrim.open{opacity:1;pointer-events:auto}
    .drawer{position:fixed;top:0;bottom:0;right:0;z-index:21;width:min(560px,100vw);background:var(--paper);box-shadow:-24px 0 60px #0a1d0829;transform:translateX(102%);transition:transform .34s var(--ease);display:flex;flex-direction:column;pointer-events:none}
    .drawer.open{transform:translateX(0);pointer-events:auto}
    .drawer-head{min-height:70px;display:flex;align-items:center;gap:12px;padding:14px 27px;border-bottom:1px solid var(--line);background:var(--surface)}
    .drawer-head .icon-button{margin-left:auto}
    .drawer-kicker{color:#6d8758;font-size:10px;font-weight:760;letter-spacing:.17em;text-transform:uppercase}
    .drawer-head h2{font:600 20px/1.2 "Iowan Old Style","Songti SC",Georgia,serif;letter-spacing:-.03em;margin:4px 0 0}
    .drawer-body{overflow:auto;flex:1;padding:24px 29px 40px}
    .drawer-body h3{font:600 16px/1.35 "Iowan Old Style","Songti SC",Georgia,serif;margin:25px 0 9px}
    .drawer-body p{font-size:12px;color:var(--ink-soft);line-height:1.7}
    .drawer-footer{border-top:1px solid var(--line);padding:14px 29px 20px;background:var(--surface);display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
    .drawer-footer .solid-button,.drawer-footer .quiet-button,.drawer-footer .danger-button{font-size:12px}
    .drawer-footer .delete-confirmation{flex:1 1 100%;color:var(--ink-soft);font-size:12px;line-height:1.5}
    .drawer-footer .confirm-delete-button{margin-right:0;background:#9b3e35;border-color:#9b3e35;color:#fff}
    .drawer-footer .confirm-delete-button:hover:not(:disabled){background:#7f3029;border-color:#7f3029}
    .work-lead{font:600 23px/1.35 "Iowan Old Style","Songti SC",Georgia,serif;letter-spacing:-.03em;margin:14px 0 9px}
    .work-context{font-size:11px;color:#718668;font-weight:700}
    .work-meta{display:flex;align-items:center;gap:10px;color:#7a8b70;font-size:11px;flex-wrap:wrap}
    .quote{background:#f1f5eb;border-left:3px solid #b4ca9e;border-radius:0 8px 8px 0;padding:12px 14px;color:#455940;font-size:12px;line-height:1.7}
    .timeline{display:grid;gap:0;padding:0;margin:13px 0 0;list-style:none}
    .timeline li{display:grid;grid-template-columns:18px 1fr;gap:9px;position:relative;min-height:44px;color:var(--ink-soft);font-size:12px}
    .timeline li:not(:last-child)::before{content:"";position:absolute;width:1px;background:#c8d6bd;left:7px;top:19px;bottom:0}
    .timeline .node{width:15px;height:15px;border:1px solid #aac297;border-radius:50%;background:#e3eed9;display:grid;place-items:center;margin-top:2px}
    .timeline .node.current{background:#729b5c;border-color:#729b5c;box-shadow:0 0 0 4px #dcebd1}
    .timeline strong{display:block;color:var(--ink);font-weight:700}
    .timeline small{color:#84927d;font-size:11px}
    .draft-box,.preview-box{border:1px solid #cfdbc4;border-radius:12px;background:var(--surface);padding:17px 18px;color:var(--ink);font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
    .editable{display:block;width:100%;min-height:190px;resize:vertical;border:1px solid #a8bd97;border-radius:12px;background:var(--surface);padding:15px 16px;color:var(--ink);line-height:1.8;font-size:13px}
    .section-label{font-size:10px;letter-spacing:.14em;color:#728369;font-weight:750;text-transform:uppercase;margin:21px 0 8px}
    .target-table{display:grid;grid-template-columns:72px 1fr;gap:9px 11px;font-size:11px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
    .target-table dt{color:#87957e}.target-table dd{margin:0;overflow-wrap:anywhere;font-weight:650;color:#364d2b}
    .inline-notice{background:var(--amber-pale);border:1px solid #ead8b7;border-radius:10px;padding:11px 13px;color:#735729!important;font-size:11px!important;line-height:1.6!important}
    .success-notice{background:var(--sage-pale);border:1px solid #d2e3c6;border-radius:10px;padding:11px 13px;color:#405f32!important;font-size:11px!important}
    .config-intro{margin:0 0 20px!important}
    .config-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:0 0 10px;overflow:hidden}
    .config-card summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 16px;cursor:pointer}
    .config-card summary::-webkit-details-marker{display:none}
    .config-card summary:hover{background:#f6f9f2}
    .config-icon{width:33px;height:33px;border-radius:9px;background:var(--sage-pale);color:#557648;display:grid;place-items:center;flex:none}
    .config-icon svg{width:17px;height:17px}
    .config-text{min-width:0;flex:1}
    .config-text strong{display:block;font-size:12px;color:var(--ink)}
    .config-text small{display:block;font-size:11px;color:#7d8c75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
    .config-card summary>.chevron{width:16px;height:16px;color:#8b9984;transition:transform .2s}
    .config-card[open] summary>.chevron{transform:rotate(180deg)}
    .config-content{border-top:1px solid var(--line);padding:15px 17px 18px}
    .field{display:block;color:#62745a;font-size:11px;font-weight:700;margin:0 0 12px}
    .field input,.field select{display:block;width:100%;margin-top:6px;background:#fff;border:1px solid #cfdbc5;border-radius:8px;padding:10px 11px;color:var(--ink);font-size:12px}
    .field-note{font-size:11px!important;color:#84927b!important;margin:0!important}
    .config-card .text-button{font-size:11px}
    .voice-pill{position:fixed;bottom:25px;left:50%;z-index:30;transform:translate(-50%,25px) scale(.97);opacity:0;pointer-events:none;min-width:390px;max-width:calc(100vw - 24px);height:60px;background:#182019;color:#f6f8f2;border:1px solid #66755e;border-radius:11px;display:flex;align-items:center;gap:12px;padding:0 11px 0 16px;box-shadow:0 16px 42px #08120a4d;transition:opacity .24s var(--ease),transform .24s var(--ease)}
    .voice-pill.open{transform:translate(-50%,0) scale(1);opacity:1;pointer-events:auto}
    .voice-light{width:9px;height:9px;background:#ef6b5d;border-radius:50%;box-shadow:0 0 0 0 #ef6b5d99;animation:pulse 1.4s infinite}
    .voice-bars{height:23px;display:flex;align-items:center;gap:2px}
    .voice-bars i{display:block;width:2px;height:4px;border-radius:2px;background:#e6efdc;opacity:.8;animation:bar 1s ease-in-out infinite alternate;animation-delay:calc(var(--n) * -90ms)}
    .voice-copy{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
    .voice-copy strong{font-size:12px}.voice-copy small{font-size:10px;color:#b8c6b1;margin-top:4px}
    .voice-time{font:600 11px/1 ui-monospace,SFMono-Regular,monospace;color:#c8d7c0}
    .voice-pill button{width:32px;height:32px;border:1px solid #566257;border-radius:7px;background:#ffffff13;color:#fff;display:grid;place-items:center;padding:0}
    .voice-pill button:hover{background:#ffffff2d}
    .voice-pill button svg{width:17px;height:17px}
    .voice-pill .finish{border-color:#7c9e72;background:#375b35}
    .toast{position:fixed;left:50%;bottom:101px;z-index:31;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#1c2e19;color:#f5f8f0;border-radius:8px;padding:9px 14px;font-size:11px;box-shadow:var(--shadow);transition:opacity .2s,transform .2s;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
    .toast.show{opacity:1;transform:translate(-50%,0)}
    @keyframes pulse{70%{box-shadow:0 0 0 8px #ef6b5d00}100%{box-shadow:0 0 0 0 #ef6b5d00}}
    @keyframes bar{from{height:4px;opacity:.5}to{height:20px;opacity:1}}
    @media(max-width:1000px){.app-shell{grid-template-columns:64px 220px minmax(0,1fr)}.topbar{padding:0 22px}main{padding-left:22px;padding-right:22px}.channel-option.active::before{left:-9px}}
    @media(max-width:700px){.app-shell{display:flex;flex-direction:column;min-height:100vh}.channel-rail{position:relative;top:auto;height:62px;width:100%;flex-direction:row;padding:7px 13px;gap:10px}.rail-brand{width:38px;height:38px;border-radius:12px;font-size:21px}.rail-divider{width:1px;height:27px;margin:0 2px}.channel-nav{display:flex;width:auto;gap:7px}.channel-option{width:38px;height:38px;border-radius:12px;font-size:10px}.channel-option.active::before{left:9px;top:42px;width:20px;height:3px;border-radius:3px}.rail-pending{min-width:15px;height:15px;font-size:8px}.channel-sidebar{position:relative;top:auto;height:auto;border-right:0;border-bottom:1px solid var(--line)}.sidebar-head{height:45px;padding:0 17px}.sidebar-head strong{font-size:13px}.sidebar-head .hash{font-size:19px}.sidebar-scroll{padding:10px 12px}.sidebar-label,.sidebar-bottom{display:none}.ability-nav{display:flex;overflow:auto;gap:6px;margin:0}.ability-option{width:auto;white-space:nowrap;padding:7px 10px}.ability-option small{display:none}.ability-option-icon{width:16px;height:18px}.ability-option-icon svg{width:15px;height:15px}.app-content{height:calc(100dvh - 188px);min-height:0}.topbar{height:52px;flex:none;padding:0 16px}.top-channel{font-size:11px}.top-channel .hash{font-size:20px}.demo-pill{display:none}.topbar .quiet-button{padding:7px 9px;font-size:11px}main{padding:0 17px 10px}.intro{padding:26px 0 20px}.ability-emblem{width:43px;height:43px;border-radius:13px;margin-bottom:12px}.ability-emblem svg{width:22px;height:22px}.intro h1{font-size:29px}.intro .ability-description{font-size:12px}.composer textarea{height:98px;padding:16px 54px 15px 16px;font-size:13px}.compose-dock{padding-top:12px}.result-section{margin-top:25px}.result-action{font-size:0;gap:0}.result-action svg{width:18px;height:18px}.drawer{width:100vw}.drawer-head{padding:12px 18px}.drawer-body{padding:18px 19px 32px}.drawer-footer{padding:12px 19px 17px}.voice-pill{bottom:14px;min-width:0;width:calc(100vw - 28px)}}
    /* The Channel router is a little world, not a fixed conversation window. */
    body{background:#000;color:#273622}
    body::before{display:none}
    .world{--life:#b4a0e7;--life-light:#e9ddff;--life-deep:#8a79c9;--route:#a99bc9;--wash:#f9f3ff;position:relative;height:100dvh;min-height:560px;overflow:clip;background:#000;transition:background .55s}
    .world[data-channel="writing"]{--life:#86b8ed;--life-light:#d7eeff;--life-deep:#617fc5;--route:#90aad4;--wash:#f2f7ff;background:#000}
    .world[data-channel="team"]{--life:#87d8ae;--life-light:#d8f7ce;--life-deep:#59a98f;--route:#86b7a1;--wash:#f3f9e6;background:#000}
    .world[data-channel="friend_moon"]{--life:#d0a7e9;--life-light:#f3ddff;--life-deep:#a67bc8;--route:#c1a5d7;--wash:#faf1ff;background:#000}
    .world[data-channel="friend_reef"]{--life:#8bc6dc;--life-light:#dcf6fa;--life-deep:#629ebd;--route:#91bfd0;--wash:#effaff;background:#000}
    .world[data-channel="friend_leaf"]{--life:#b6d39b;--life-light:#e9f7d9;--life-deep:#84ac76;--route:#abc398;--wash:#f6fbe9;background:#000}
    .world[data-channel="friend_question"]{--life:#f2cf64;--life-light:#fff0ac;--life-deep:#d8a344;--route:#d5bd75;--wash:#fff8df;background:#000}
    body[data-theme="day"]{background:#f5e8cd}
    .world[data-theme="day"]{background:radial-gradient(circle at 67% 14%,#fffaf0 0,#f8ecd4 46%,#eeddbb 100%)}
    .world[data-theme="day"] .world-brand,.world[data-theme="day"] .life-name{color:#314431}
    .world[data-theme="day"] .world-brand .brand-mark{border-color:#314431}
    .world::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.28;background-image:radial-gradient(#aa9b72 0.6px,transparent 0.7px);background-size:8px 8px;mask-image:linear-gradient(90deg,#0007,transparent 45%,#0007)}
    .world::after{content:"";position:absolute;width:870px;height:870px;left:50%;top:48%;transform:translate(-50%,-50%);border:1px solid #9b8bbd28;border-radius:50%;pointer-events:none;box-shadow:0 0 0 95px #a18ab10a,0 0 0 195px #a18ab107}
    .world-head{position:absolute;top:0;left:0;right:0;z-index:12;display:flex;align-items:center;justify-content:space-between;padding:26px 34px}
    .world-brand{display:flex;align-items:center;gap:9px;color:#f8f3ff;text-decoration:none;font:700 25px/1 Georgia,"Songti SC",serif;letter-spacing:-.06em}
    .world-brand .brand-mark{width:34px;height:34px;border-color:#f8f3ff;border-radius:12px;transform:rotate(-7deg)}
    .world-tools{display:flex;align-items:center;gap:10px}
    .world-demo{font-size:10px;color:#8e927e;letter-spacing:.1em}
    .world-tool{width:40px;height:40px;border:1px solid #baa9d76b;background:#fffcffc9;color:#685e7b;border-radius:14px;display:grid;place-items:center;box-shadow:0 6px 16px #71539319}
    .world-tool:hover{background:#fff;transform:rotate(9deg)}
    .world-rail{position:absolute;left:26px;top:50%;transform:translateY(-50%);z-index:12;display:grid;gap:16px;padding:13px 11px;border:1px solid #ded2eb;background:#fffcffbf;backdrop-filter:blur(14px);border-radius:31px;box-shadow:0 14px 40px #765d9624}
    .rail-heading{position:absolute;left:50%;top:-31px;transform:translateX(-50%);display:flex;align-items:center;gap:3px;padding:3px 4px;border:0;background:transparent;color:#f8f3ff;white-space:nowrap;font-size:11px;font-weight:750;letter-spacing:.1em;cursor:pointer}
    .rail-heading:hover{opacity:.72}
    .rail-heading svg{width:12px;height:12px;transform:rotate(-90deg)}
    .world[data-theme="day"] .rail-heading{color:#4c5543}
    .rail-life{position:relative;width:54px;height:54px;border:0;border-radius:19px;background:var(--rail-color);color:#273622;display:grid;place-items:center;font:800 12px/1 "PingFang SC",sans-serif;box-shadow:inset -6px -7px 0 #744b3920,0 7px 12px #59452421;transition:transform .23s,border-radius .35s}
    .rail-life:hover{transform:translateX(4px) rotate(-5deg);border-radius:45% 55% 54% 46%/48% 42% 58% 52%}
    .rail-life.active{transform:translateX(5px);border-radius:48% 52% 44% 56%/56% 44% 56% 44%;outline:3px solid #fffaff;box-shadow:0 0 0 5px #947bc0a8,0 10px 16px #59452428}
    .rail-life .rail-face{display:flex;gap:7px;align-items:center}
    .rail-life .rail-face i{width:5px;height:8px;background:#273622;border-radius:50%}
    .rail-life .rail-count{position:absolute;right:-7px;top:-5px;min-width:20px;height:20px;padding:0 4px;border-radius:10px;background:#554978;color:#fff;border:2px solid #fffcff;display:grid;place-items:center;font-size:10px}
    .rail-life.offline .rail-face i{width:9px;height:5px;background:transparent;border-bottom:2px solid #273622;border-radius:0 0 50% 50%;transform:rotate(8deg)}
    .rail-life.offline .rail-face i:last-child{transform:rotate(-8deg)}
    .rail-life .rail-name{position:absolute;left:69px;top:10px;white-space:nowrap;padding:8px 12px;border-radius:10px;background:#283d2b;color:#fff;font-size:11px;opacity:0;pointer-events:none;transform:translateX(-6px);transition:opacity .2s,transform .2s;box-shadow:0 7px 20px #3d3b2c2e}
    .rail-life:hover .rail-name,.rail-life:focus-visible .rail-name{opacity:1;transform:translateX(0)}
    .rail-create{width:54px;height:34px;border:1px dashed #9d8bb8;border-radius:15px;background:#fffaff99;color:#6d5d86;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .2s}
    .rail-create:hover,.rail-create:focus-visible{background:#fff;transform:translateX(3px)}
    .rail-create:disabled{opacity:.5;cursor:wait}.rail-create svg{width:16px;height:16px}
    .rail-transition{--portal-y:46%;--passage-wash:#b5a3d035;--passage-line:#dbcbed99;position:absolute;inset:0;z-index:14;pointer-events:none;overflow:hidden;opacity:0}
    .rail-transition[data-to="mine"]{--passage-wash:#bdd2ad39;--passage-line:#d7e6c599}
    .rail-transition .passage-wash{position:absolute;inset:-15% -35%;background:linear-gradient(103deg,transparent 27%,var(--passage-wash) 43%,#fff9ee25 50%,var(--passage-wash) 57%,transparent 72%);opacity:0;transform:translateX(-65%) skewX(-8deg)}
    .rail-transition .passage-line{position:absolute;left:50%;top:var(--portal-y);width:min(58vmin,510px);aspect-ratio:1;border:1px solid var(--passage-line);border-radius:46% 54% 51% 49%/53% 47% 53% 47%;opacity:0;transform:translate(-50%,-50%) scale(.9) rotate(-9deg)}
    .rail-transition .passage-line::after{content:"";position:absolute;inset:22px;border:1px solid var(--passage-line);border-radius:54% 46% 48% 52%/48% 52% 46% 54%;opacity:.55}
    .rail-transition.active{opacity:1}
    .rail-transition.active .passage-wash{animation:passage-wash .6s ease-in-out both}
    .rail-transition.active .passage-line{animation:passage-line .6s ease-in-out both}
    .world.rail-warping .world-stage{animation:passage-world .6s ease-in-out both}
    .world.rail-warping .world-rail{animation:passage-rail .6s ease-in-out both}
    .world-stage{position:relative;z-index:1;display:grid;place-items:center;width:100%;height:100%;min-height:0;max-width:none;padding:0;margin:0;overflow:visible}
    .scene{position:relative;width:min(1100px,calc(100vw - 170px));height:min(790px,calc(100dvh - 20px));min-height:550px}
    .scene::before{content:"";position:absolute;width:390px;height:390px;left:50%;top:46%;transform:translate(-50%,-50%);border:1px dashed #a48a5c36;border-radius:50%;pointer-events:none}
    .route-map{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
    .route-path{fill:none;stroke:var(--route);stroke-width:2;stroke-linecap:round;stroke-dasharray:3 10;opacity:.48;transition:stroke-width .25s,opacity .25s}
    .route-path.active{stroke-width:3;stroke-dasharray:4 8;opacity:1;animation:route-flow 1.8s linear infinite}
    .route-path.offline{opacity:.4;animation:none}
    .route-end{fill:var(--route);opacity:.45}
    .route-end.active{opacity:1}
    .route-end.offline{opacity:.35}
    .mote{position:absolute;width:8px;height:8px;border-radius:50%;background:#fff9e4;border:1px solid #dcb77c;box-shadow:0 0 0 7px #fff9e466;pointer-events:none;animation:mote 6s ease-in-out infinite}
    .mote.one{left:26%;top:50%}.mote.two{left:66%;top:13%;animation-delay:-2s}.mote.three{left:91%;top:48%;animation-delay:-4s}
    .life-button{position:absolute;left:50%;top:46%;z-index:5;width:250px;height:250px;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;cursor:pointer;filter:drop-shadow(0 21px 27px #664a2933)}
    .life-button:focus-visible{outline:0}
    .life-shadow{position:absolute;left:13%;right:13%;bottom:6px;height:30px;border-radius:50%;background:#765e9261;filter:blur(14px);animation:shadow-breathe 4s ease-in-out infinite}
    .life-body{position:absolute;inset:18px 13px 22px;border-radius:48% 52% 46% 54%/52% 44% 56% 48%;background:radial-gradient(circle at 29% 25%,var(--life-light) 0,var(--life) 53%,var(--life-deep) 100%);box-shadow:inset -14px -17px 0 #6f57a616,inset 9px 8px 0 #f7fff97a,0 0 24px 7px #bcabe655;filter:url(#fur-edge);animation:life-breathe 4s ease-in-out infinite,life-morph 9s ease-in-out infinite}
    .life-body::before{content:"";position:absolute;inset:-7px;border-radius:inherit;background:var(--life);filter:blur(10px);opacity:.42;z-index:-1}
    .life-body::after{content:"";position:absolute;inset:4px;border-radius:inherit;background-image:radial-gradient(#ffffffaa 1px,transparent 2px),radial-gradient(#2d6f7461 1px,transparent 2px);background-size:12px 13px,17px 19px;background-position:2px 4px,9px 10px;opacity:.23;mask-image:radial-gradient(ellipse,#000 22%,transparent 83%);pointer-events:none}
    .life-button:hover .life-body,.life-button:focus-visible .life-body{animation-duration:2.3s,5s;box-shadow:inset -14px -17px 0 #6f57a616,inset 9px 8px 0 #f7fff97a,0 0 0 13px #e8dfff84,0 0 24px 7px #bcabe655}
    .life-button:focus-visible .life-body{outline:3px solid #8e79bd;outline-offset:7px}
    .life-face{position:absolute;z-index:2;inset:0;width:100%;height:100%;fill:none;stroke:#29382b;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transform:translate(var(--look-x,0px),var(--look-y,0px));will-change:transform}
    .life-eye{transform-box:fill-box;transform-origin:center;animation:life-blink 6s infinite}
    .life-eye:nth-child(2){animation-delay:.08s}
    .life-face.morphing .life-eye{animation:none;transform:none}
    .life-button.thinking .life-eye{animation:none;transform:scaleY(.5)}
    .life-button.delighted .life-eye{animation:none;transform:rotate(-20deg) scaleY(.8)}
    .life-cheek{position:absolute;z-index:2;top:58%;width:24px;height:11px;border-radius:50%;background:#e56f6542;filter:blur(3px)}
    .life-cheek.left{left:25%}.life-cheek.right{right:25%}
    .life-face .effort-mouth{stroke-width:4.5;opacity:0}
    .life-button::after{content:"•••";position:absolute;right:0;top:7px;width:39px;height:31px;border-radius:16px 16px 16px 5px;background:#fffaff;color:#8b7aaa;display:grid;place-items:center;font:800 15px/1 sans-serif;letter-spacing:2px;box-shadow:0 7px 19px #806f4830;animation:hint-float 3s ease-in-out infinite}
    .life-button.thinking::after{content:"· ·"}
    .life-button.delighted::after{content:"✦"}
    .world.channel-offline .life-button{cursor:pointer}
    .world.channel-offline .life-face{transform:translate(0,0)}
    .world.channel-offline .life-eye{animation:none;transform:none}
    .world.channel-offline .life-button::after{content:"一键配置";font:700 12px/1 var(--sans);letter-spacing:.08em;animation:sleep-drift 3.8s ease-in-out infinite}
    .world:is(.rail-charging,.life-charging) .life-button{animation:life-effort-shake .09s steps(2,end) infinite}
    .world:is(.rail-charging,.life-charging) .life-body{animation:life-effort-crouch .34s ease-out both}
    .world:is(.rail-charging,.life-charging) .life-shadow{animation:life-effort-shadow .34s ease-out both}
    .world:is(.rail-charging,.life-charging) .life-face{transform:translate(0,0)}
    .world:is(.rail-charging,.life-charging) .life-eye,.world.rail-warping .life-eye{animation:none;transform:none}
    .world:is(.rail-charging,.life-charging) .effort-mouth{animation:effort-mouth-wiggle .1s ease-in-out infinite alternate}
    .world:is(.rail-charging,.life-charging) .life-cheek{background:#e56f6570}
    .world:is(.rail-charging,.life-charging) .life-button::after{content:"· ·";animation:none;transform:translateY(-3px) rotate(8deg)}
    .world:is(.rail-charging,.life-charging) .route-path{opacity:.75;stroke-dasharray:2 7;animation:route-flow .55s linear infinite}
    .world.rail-warping .life-body{animation:life-effort-release .27s ease-out both}
    .life-face.switch-blink .life-eye{animation:channel-switch-blink .34s ease-in-out both}
    .world.rail-warping .life-button::after{content:"✦"}
    .life-name{position:absolute;left:50%;top:calc(46% + 143px);z-index:6;transform:translateX(-50%);display:flex;align-items:center;gap:8px;font:600 28px/1.2 "Iowan Old Style","Songti SC",Georgia,serif;letter-spacing:-.04em;white-space:nowrap;color:#f8f3ff;transition:opacity .2s,transform .2s}
    .channel-presence{display:inline-flex;align-items:center;gap:5px;font:700 10px/1.2 "PingFang SC",sans-serif;letter-spacing:0;color:#bfe3b8}
    .channel-presence:not(.offline){display:none}
    .channel-presence::before{content:"";width:6px;height:6px;border-radius:50%;background:#96d1a2;box-shadow:0 0 7px #96d1a299}
    .channel-presence.offline{color:#aca8b1}
    .channel-presence.offline::before{background:#aaa5ad;box-shadow:none}
    .world[data-theme="day"] .channel-presence{color:#557955}
    .world[data-theme="day"] .channel-presence.offline{color:#8c8788}
    .world.intent-open .life-name{opacity:0;transform:translate(-50%,-9px)}
    .notice-toggle{width:24px;height:24px;padding:0;border:0;background:transparent;color:inherit;opacity:.7;display:grid;place-items:center;transition:transform .2s var(--ease),opacity .2s}
    .notice-toggle:hover,.notice-toggle[aria-expanded="true"]{opacity:1;transform:rotate(-9deg)}
    .notice-toggle svg{width:18px;height:18px}
    .channel-notice{position:absolute;left:50%;top:calc(100% + 15px);z-index:7;width:min(290px,calc(100vw - 32px));white-space:normal;transform:translateX(-50%);padding:13px 16px;border:1px solid #d7c9e6;border-radius:17px;background:#fffcfff5;color:#4c4260;box-shadow:0 15px 35px #69547f3b;font:500 12px/1.65 "Avenir Next","PingFang SC",sans-serif;letter-spacing:0;animation:panel-in .25s var(--ease)}
    .channel-notice::before{content:"";position:absolute;top:-7px;left:calc(50% + 26px);width:12px;height:12px;transform:rotate(45deg);background:#fffcff;border-left:1px solid #d7c9e6;border-top:1px solid #d7c9e6}
    .ability-node{position:absolute;z-index:4;width:160px;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;color:#3b4a35}
    .ability-node::before{content:"";position:absolute;left:0;right:0;top:-60px;height:60px;z-index:1;pointer-events:none}
    .ability-node:hover::before,.ability-node:focus-within::before{pointer-events:auto}
    .ability-main{position:relative;z-index:2;display:flex;align-items:center;flex-direction:column;gap:9px;border:0;background:transparent;color:inherit;cursor:pointer;padding:0}
    .ability-node[data-slot="0"]{left:18%;top:27%}.ability-node[data-slot="1"]{left:82%;top:27%}.ability-node[data-slot="2"]{left:78%;top:75%}
    .ability-seed{position:relative;width:84px;height:84px;border-radius:45% 55% 50% 50%/53% 46% 54% 47%;background:color-mix(in srgb,var(--pod-color) 42%,transparent);display:grid;place-items:center;box-shadow:inset -9px -11px 0 #47604406,0 12px 23px #755d3b12;transition:transform .25s,border-radius .3s,box-shadow .3s,background .3s;animation:pod-float 5s ease-in-out infinite}
    .ability-node[data-slot="1"] .ability-seed{animation-delay:-1.5s}.ability-node[data-slot="2"] .ability-seed{animation-delay:-3s}
    .ability-seed svg{width:34px;height:34px;stroke-width:1.55;color:#37534391;transition:color .3s}
    .ability-node:hover .ability-seed,.ability-node:focus-within .ability-seed{transform:translateY(-7px) rotate(8deg) scale(1.06);border-radius:58% 42% 44% 56%/46% 58% 42% 54%;background:var(--pod-color);box-shadow:inset -9px -11px 0 #4760440d,0 12px 23px #755d3b2b}
    .ability-node:hover .ability-seed svg,.ability-node:focus-within .ability-seed svg{color:#375343}
    .world[data-theme="night"] .ability-node:not(:hover):not(:focus-within) .ability-seed{background:color-mix(in srgb,var(--pod-color) 52%,transparent)}
    .world[data-theme="night"] .ability-node:not(:hover):not(:focus-within) .ability-seed svg{color:#ecf3e0b8}
    .ability-node.active .ability-seed{box-shadow:inset -9px -11px 0 #47604406,0 0 0 7px #fffaff91,0 0 0 10px color-mix(in srgb,var(--route) 55%,transparent),0 16px 30px #755d3b1d}
    .ability-node.active:hover .ability-seed,.ability-node.active:focus-within .ability-seed{box-shadow:inset -9px -11px 0 #4760440d,0 0 0 7px #fffaff,0 0 0 10px var(--route),0 16px 30px #755d3b35}
    .ability-main:focus-visible{outline:0}.ability-main:focus-visible .ability-seed{outline:3px solid #486b43;outline-offset:12px}
    .ability-label{font-size:13px;font-weight:750;white-space:nowrap;background:#fff9e780;color:#4a5548b5;padding:4px 11px;border-radius:999px;box-shadow:0 2px 10px #99885d15;transition:background .3s,color .3s}
    .ability-node:hover .ability-label,.ability-node:focus-within .ability-label{background:#fff9e7c2;color:#3b4a35}
    .world[data-theme="night"] .ability-node:not(:hover):not(:focus-within) .ability-label{color:#f8f2e5c2}
    .ability-node.active .ability-label{background:#554978;color:#fffaff}
    .ability-presence{display:inline-flex;align-items:center;gap:3px;margin-left:7px;font:700 10px/1 sans-serif;letter-spacing:0;color:#427e60}
    .ability-presence::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
    .ability-node.offline .ability-main:disabled{cursor:not-allowed}
    .ability-node.offline .ability-seed{animation:none}
    .ability-node.offline .ability-presence{color:#76727a}
    .world[data-theme="night"] .ability-node:not(.offline) .ability-presence{color:#b6e3c0}
    .ability-status{position:absolute;top:-10px;right:-15px;z-index:3;display:flex;gap:2px;transition:opacity .18s,transform .18s}
    .ability-count{min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;border:2px solid #fffcff;border-radius:11px;background:#a390cf;color:#fff;font:750 10px/1 sans-serif;box-shadow:0 3px 9px #64547d33}
    .ability-count[data-mode="draft"]{background:#c38263}.ability-count[data-mode="accepted"]{background:#779e88}
    .ability-node:hover .ability-status,.ability-node:focus-within .ability-status{opacity:0;transform:translateY(-5px)}
    .ability-orbit{position:absolute;inset:0;z-index:3;pointer-events:none;transform-origin:50% 42px;animation:pod-float 5s ease-in-out infinite}
    .ability-node[data-slot="1"] .ability-orbit{animation-delay:-1.5s}.ability-node[data-slot="2"] .ability-orbit{animation-delay:-3s}
    .ability-orbit-action{position:absolute;left:50%;top:42px;width:36px;height:36px;border:1px solid #dcd1e9;border-radius:50%;background:#fffaff;color:#655a7a;display:grid;place-items:center;box-shadow:0 7px 16px #5c487b38;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.3);transition:transform .28s var(--ease),opacity .18s,background .2s}
    .ability-orbit-action[data-mode="draft"]{--orbit-x:0px;--orbit-y:-80px}
    .ability-orbit-action[data-mode="ready"]{--orbit-x:-69px;--orbit-y:40px}
    .ability-orbit-action[data-mode="accepted"]{--orbit-x:69px;--orbit-y:40px}
    .ability-orbit-action svg{width:18px;height:18px}
    .ability-orbit-action b{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 3px;border-radius:9px;background:#675583;color:#fff;border:2px solid #fffaff;display:grid;place-items:center;font:700 9px/1 sans-serif}
    .ability-orbit-action[data-count="0"]{color:#a29aab}
    .ability-node:hover .ability-orbit-action,.ability-node:focus-within .ability-orbit-action{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) translate(var(--orbit-x),var(--orbit-y)) scale(1)}
    .world.intent-open .ability-orbit{visibility:hidden}
    .ability-orbit-action:hover,.ability-orbit-action.active{background:#e9def8;color:#4e3f66}
    .intent-wrap{position:absolute;left:50%;top:calc(46% + 157px);z-index:8;width:min(530px,calc(100% - 40px));transform:translateX(-50%);animation:bubble-in .3s var(--ease)}
    .intent-wrap::before{content:"";position:absolute;left:calc(50% - 10px);top:-10px;width:20px;height:20px;transform:rotate(45deg);background:#fffcff;border-left:1px solid #d9c7ed;border-top:1px solid #d9c7ed}
    .intent-form{position:relative;display:flex;align-items:center;gap:6px;background:#fffcff;border:1px solid #d9c7ed;border-radius:23px;padding:10px 11px 10px 21px;box-shadow:0 16px 40px #80659e35,0 3px 0 #bda8d72b}
    .intent-form input{min-width:0;flex:1;border:0;outline:0!important;background:transparent;color:#2c3b2a;font-size:15px;line-height:1.5}
    .intent-form input::placeholder{color:#9b9b88}
    .intent-form button{width:38px;height:38px;flex:none;border:0;border-radius:13px;display:grid;place-items:center;background:#f3ecd9;color:#536f50}
    .intent-form button:hover{background:#e7e9cf}
    .intent-form button.submit{background:#65558e;color:#fffaff}
    .intent-form button.submit:hover{background:#7964aa}
    .intent-form button:disabled{opacity:.4}
    .intent-form button svg{width:18px;height:18px}
    .parcel-flight{position:absolute;z-index:7;left:50%;top:46%;width:27px;height:27px;border:3px solid #fff9e7;border-radius:8px;background:#b7de8d;box-shadow:0 5px 14px #5d6a3b55;opacity:0;pointer-events:none}
    .parcel-flight.flying{animation:parcel-flight .82s cubic-bezier(.22,.78,.33,1) forwards}
    .parcel-panel{position:absolute;left:0;top:0;z-index:10;width:min(340px,calc(100% - 24px));max-height:340px;overflow:auto;background:#fffcff;border:1px solid #d9c7ed;border-radius:22px;padding:15px;box-shadow:0 21px 52px #6f578638;animation:panel-in .25s var(--ease)}
    .parcel-panel-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
    .parcel-panel-head strong{font:600 18px/1.2 "Iowan Old Style","Songti SC",Georgia,serif}
    .parcel-panel-head button{width:27px;height:27px;border:0;background:#f4eedf;border-radius:9px;color:#6b755f;display:grid;place-items:center}
    .parcel-panel-head svg{width:15px;height:15px}
    .parcel-items{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:7px}
    .parcel-item{width:100%;min-width:0;overflow:hidden;border:1px solid #e4dac1;border-radius:12px;background:#fffaf0;padding:11px 12px;text-align:left;color:#34422e}
    .parcel-item:hover{background:#f2f0df;border-color:#b9c9aa}
    .parcel-item small{display:block;color:#879778;font-size:10px;font-weight:700}
    .parcel-item strong{display:block;font-size:12px;margin-top:3px}
    .parcel-item span{display:block;color:#7a8a72;font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .parcel-empty{padding:16px 5px;color:#8a8096;font-size:12px;text-align:center}
    .drawer{background:#faf7ff;border-radius:28px 0 0 28px}
    .drawer-head,.drawer-footer{background:#fffcff}
    .config-card{background:#fffcff;border-color:#e6dded}
    .config-card summary:hover{background:#f3ecfa}
    .config-icon{background:#efe7f7;color:#766299}
    .ability-config .config-text small{white-space:normal;line-height:1.45}
    .compute-details{border-top:1px solid #e9e1ee;margin-top:16px}
    .compute-details>summary{list-style:none;display:flex;align-items:center;gap:9px;padding:14px 0 0;cursor:pointer;color:#665a78;font-size:12px;font-weight:750}
    .compute-details>summary::-webkit-details-marker{display:none}
    .compute-details>summary small{margin-left:auto;color:#8d8795;font-size:10px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .compute-details>summary svg{width:15px;height:15px;transition:transform .2s}
    .compute-details[open]>summary svg{transform:rotate(180deg)}
    .compute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding-top:15px}
    .compute-grid .field{min-width:0}
    @media(max-width:480px){.compute-grid{grid-template-columns:1fr}}
    .drawer-footer .solid-button{background:#66558f;border-color:#66558f}
    .drawer-footer .solid-button:hover:not(:disabled){background:#7965a6}
    .voice-pill{background:#3f335b}
    .trace-intro{margin:0 0 19px!important;color:#766987!important}
    .device-panel{padding:13px 15px;margin:0 0 20px;border:1px solid #e6dded;border-radius:14px;background:#fffcff}
    .device-panel-title{display:block;color:#6d5b83;font-size:11px;font-weight:800;letter-spacing:.08em;margin-bottom:10px}
    .device-list{display:flex;flex-wrap:wrap;gap:8px}
    .device-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8e4d4;border-radius:999px;background:#eef5ec;color:#4b6850;padding:7px 10px;font-size:11px;font-weight:700}
    .device-toggle::before{content:"";width:7px;height:7px;border-radius:50%;background:#7fb990}
    .device-toggle.offline{border-color:#e3dce5;background:#f0ecf2;color:#807985}
    .device-toggle.offline::before{background:#aaa3ad}
    .device-toggle:hover{transform:translateY(-1px)}
    .trace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 10px;color:#5e4d78;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
    .trace-heading span{font-size:10px;font-weight:600;letter-spacing:0;color:#9589a3}
    .trace-card{border:1px solid #e6dded;border-radius:14px;background:#fffcff;margin-bottom:9px;overflow:hidden}
    .trace-card summary{list-style:none;display:flex;align-items:center;gap:11px;padding:13px 15px;cursor:pointer}
    .trace-card summary::-webkit-details-marker{display:none}
    .trace-card summary:hover{background:#f5effb}
    .trace-card-title{flex:1;min-width:0}
    .trace-card-title strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .trace-card-title small{display:block;margin-top:3px;color:#8b8195;font-size:10px}
    .trace-card .state-pill{font-size:9px}
    .trace-detail{border-top:1px solid #eee7f2;padding:13px 15px 15px}
    .trace-detail dl{display:grid;grid-template-columns:70px 1fr;gap:5px 8px;margin:0 0 15px;font-size:11px}
    .trace-detail dt{color:#91869c}.trace-detail dd{margin:0;color:#574b66;overflow-wrap:anywhere}
    .trace-steps{display:flex;flex-wrap:wrap;gap:6px}
    .trace-step{border:1px solid #e5dced;border-radius:999px;padding:5px 8px;color:#9c91a6;background:#faf7fd;font-size:10px}
    .trace-step.done{border-color:#cbbce0;background:#ede5f6;color:#5c4a78}
    .trace-log{display:grid;gap:0;border:1px solid #e6dded;border-radius:14px;background:#fffcff;overflow:hidden}
    .trace-event{display:grid;grid-template-columns:52px minmax(0,1fr);gap:9px;padding:11px 13px;border-top:1px solid #eee7f2;font-size:11px}
    .trace-event:first-child{border-top:0}
    .trace-event time{color:#9a91a2;font:10px/1.6 ui-monospace,SFMono-Regular,monospace}
    .trace-event strong{display:block;color:#594d6b;font-size:11px}
    .trace-event small{display:block;color:#8c8295;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
    body:not([data-theme="day"]) .drawer{--surface:#302b3b;--ink:#f4edf8;--ink-soft:#bcb2c7;--line:#4e465a;--sage-pale:#3f4d43;--amber-pale:#514134;--red-pale:#51383d;background:#25212e;color:var(--ink);box-shadow:-24px 0 60px #0009;color-scheme:dark}
    body:not([data-theme="day"]) .drawer-head,body:not([data-theme="day"]) .drawer-footer{background:#302b3b}
    body:not([data-theme="day"]) .drawer-kicker,body:not([data-theme="day"]) .work-context{color:#b6a0d4}
    body:not([data-theme="day"]) .drawer .icon-button{color:#cbc0d8}
    body:not([data-theme="day"]) .drawer .icon-button:hover{background:#42394f;border-color:#695a78}
    body:not([data-theme="day"]) .config-card,body:not([data-theme="day"]) .trace-card,body:not([data-theme="day"]) .trace-log{background:#302b3b;border-color:#554b61}
    body:not([data-theme="day"]) .config-card summary:hover,body:not([data-theme="day"]) .trace-card summary:hover{background:#3c3447}
    body:not([data-theme="day"]) .config-icon{background:#453a55;color:#d4c1ea}
    body:not([data-theme="day"]) .config-text small,body:not([data-theme="day"]) .field-note{color:#aaa0b6!important}
    body:not([data-theme="day"]) .config-card summary>.chevron{color:#b5a7c5}
    body:not([data-theme="day"]) .compute-details,body:not([data-theme="day"]) .trace-detail,body:not([data-theme="day"]) .trace-event{border-color:#554b61}
    body:not([data-theme="day"]) .compute-details>summary,body:not([data-theme="day"]) .field,body:not([data-theme="day"]) .section-label{color:#cbbbd9}
    body:not([data-theme="day"]) .compute-details>summary small{color:#9f93ad}
    body:not([data-theme="day"]) .field input,body:not([data-theme="day"]) .field select,body:not([data-theme="day"]) .editable{background:#24202e;border-color:#63566f;color:#f4edf8}
    body:not([data-theme="day"]) .drawer .quiet-button{background:#383244;border-color:#62556e;color:#f0e8f6}
    body:not([data-theme="day"]) .drawer .quiet-button:hover{background:#453a53}
    body:not([data-theme="day"]) .drawer .danger-button{background:transparent;border-color:#805c63;color:#efaaa7}
    body:not([data-theme="day"]) .drawer .danger-button:hover{background:#4a3038;border-color:#a66f72}
    body:not([data-theme="day"]) .drawer-footer .confirm-delete-button{background:#8c454d;border-color:#a66f72;color:#fff}
    body:not([data-theme="day"]) .drawer-footer .confirm-delete-button:hover:not(:disabled){background:#a5525b}
    body:not([data-theme="day"]) .drawer-footer .solid-button{background:#8069ab;border-color:#8069ab;color:#fff}
    body:not([data-theme="day"]) .drawer-footer .solid-button:hover:not(:disabled){background:#9278c0}
    body:not([data-theme="day"]) .trace-intro,body:not([data-theme="day"]) .trace-heading span{color:#aca0b8!important}
    body:not([data-theme="day"]) .device-panel{background:#302b3b;border-color:#554b61}
    body:not([data-theme="day"]) .device-panel-title{color:#cbbbd9}
    body:not([data-theme="day"]) .device-toggle{background:#32463b;border-color:#4d735c;color:#d5ebd8}
    body:not([data-theme="day"]) .device-toggle.offline{background:#383440;border-color:#5c5662;color:#b9b1be}
    body:not([data-theme="day"]) .trace-heading{color:#cab8e0}
    body:not([data-theme="day"]) .trace-card-title small,body:not([data-theme="day"]) .trace-detail dt,body:not([data-theme="day"]) .trace-event time{color:#a99eb5}
    body:not([data-theme="day"]) .trace-detail dd,body:not([data-theme="day"]) .trace-event strong{color:#e7dcef}
    body:not([data-theme="day"]) .trace-event small{color:#b4a9bf}
    body:not([data-theme="day"]) .trace-step{background:#2b2635;border-color:#50455d;color:#a99eb5}
    body:not([data-theme="day"]) .trace-step.done{background:#4b3d60;border-color:#76638e;color:#f0e4ff}
    body:not([data-theme="day"]) .drawer .draft-box,body:not([data-theme="day"]) .drawer .preview-box,body:not([data-theme="day"]) .drawer .quote{background:#302b3b;border-color:#62556e;color:#e5dce9}
    body:not([data-theme="day"]) .drawer .inline-notice{background:#49392f;border-color:#74573e;color:#f0d4ab!important}
    body:not([data-theme="day"]) .drawer .success-notice{background:#31493a;border-color:#55765d;color:#d2ecd7!important}
    body:not([data-theme="day"]) .drawer .target-table dt,body:not([data-theme="day"]) .drawer .timeline small{color:#aa9eb6}
    body:not([data-theme="day"]) .drawer .target-table dd,body:not([data-theme="day"]) .drawer .timeline strong{color:#f1eaf5}
    @keyframes life-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-8px) scale(1.035,.97)}}
    @keyframes life-morph{0%,100%{border-radius:48% 52% 46% 54%/52% 44% 56% 48%}33%{border-radius:55% 45% 52% 48%/46% 54% 44% 56%}66%{border-radius:45% 55% 56% 44%/56% 48% 52% 44%}}
    @keyframes life-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.09)}}
    @keyframes channel-switch-blink{0%,100%{transform:scaleY(1)}42%,58%{transform:scaleY(.08)}}
    @keyframes life-effort-shake{0%,100%{transform:translate(-50%,-50%) rotate(0)}25%{transform:translate(calc(-50% - 2px),calc(-50% + 1px)) rotate(-.5deg)}75%{transform:translate(calc(-50% + 2px),calc(-50% - 1px)) rotate(.5deg)}}
    @keyframes life-effort-crouch{0%{transform:translateY(0) scale(1)}45%{transform:translateY(4px) scale(1.045,.94)}100%{transform:translateY(6px) scale(1.07,.9)}}
    @keyframes life-effort-shadow{to{transform:scaleX(1.15);opacity:.78}}
    @keyframes life-effort-release{0%{transform:translateY(6px) scale(1.07,.9)}55%{transform:translateY(-8px) scale(.96,1.05)}100%{transform:translateY(0) scale(1)}}
    @keyframes life-effort-open{from{transform:scaleY(.24)}to{transform:scaleY(1)}}
    @keyframes effort-mouth-wiggle{from{transform:translateY(-1px)}to{transform:translateY(1px)}}
    @keyframes sleep-drift{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-5px) rotate(-4deg)}}
    @keyframes pod-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(4deg)}}
    @keyframes shadow-breathe{0%,100%{transform:scaleX(1);opacity:.65}50%{transform:scaleX(.85);opacity:.4}}
    @keyframes hint-float{0%,100%{transform:translateY(0) rotate(6deg)}50%{transform:translateY(-7px) rotate(-4deg)}}
    @keyframes mote{0%,100%{transform:translate(0,0);opacity:.5}50%{transform:translate(10px,-12px);opacity:1}}
    @keyframes route-flow{to{stroke-dashoffset:-36}}
    @keyframes bubble-in{from{opacity:0;transform:translate(-50%,13px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
    @keyframes panel-in{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
    @keyframes parcel-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(0)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--flight-x)),calc(-50% + var(--flight-y))) scale(.65) rotate(290deg)}}
    @keyframes passage-wash{0%{opacity:0;transform:translateX(-65%) skewX(-8deg)}25%,68%{opacity:.7}100%{opacity:0;transform:translateX(65%) skewX(-8deg)}}
    @keyframes passage-line{0%{opacity:0;transform:translate(-50%,-50%) scale(.88) rotate(-9deg)}28%{opacity:.52}70%{opacity:.34}100%{opacity:0;transform:translate(-50%,-50%) scale(1.1) rotate(5deg)}}
    @keyframes passage-world{0%,100%{opacity:1;transform:translateX(0) scale(1)}45%{opacity:.72;transform:translateX(-12px) scale(.988)}55%{opacity:.72;transform:translateX(12px) scale(1.012)}}
    @keyframes passage-rail{0%,100%{opacity:1}45%,55%{opacity:.45}}
    @media(max-width:760px){.world{min-height:650px}.world-head{padding:17px 20px}.world-brand{font-size:21px}.world-brand .brand-mark{width:29px;height:29px}.world-demo{display:none}.world-rail{left:50%;top:auto;bottom:15px;transform:translateX(-50%);display:flex;gap:12px;padding:8px 12px;border-radius:24px}.rail-life{width:40px;height:40px;border-radius:15px}.rail-life.active{transform:translateY(-4px)}.rail-life .rail-name{left:50%;top:-43px;transform:translateX(-50%)}.rail-life:hover .rail-name,.rail-life:focus-visible .rail-name{transform:translateX(-50%)}.rail-transition{--portal-y:40%}.scene{width:100%;height:calc(100dvh - 45px);min-height:600px}.scene::before{width:250px;height:250px;top:40%}.life-button{width:190px;height:190px;top:40%}.life-name{top:calc(40% + 113px);font-size:23px}.ability-node{width:110px;gap:5px}.ability-node[data-slot="0"]{left:20%;top:20%}.ability-node[data-slot="1"]{left:79%;top:20%}.ability-node[data-slot="2"]{left:78%;top:62%}.ability-seed{width:60px;height:60px}.ability-seed svg{width:24px;height:24px}.ability-label{font-size:10px;padding:3px 7px}.intent-wrap{top:calc(40% + 120px);width:calc(100% - 32px)}.intent-form{padding:8px 8px 8px 15px}.intent-form input{font-size:13px}.intent-form button{width:33px;height:33px}.ability-main{gap:5px}.ability-orbit-action{top:30px;width:30px;height:30px}.ability-orbit-action[data-mode="draft"]{--orbit-x:0px;--orbit-y:-58px}.ability-orbit-action[data-mode="ready"]{--orbit-x:-50px;--orbit-y:29px}.ability-orbit-action[data-mode="accepted"]{--orbit-x:50px;--orbit-y:29px}.ability-orbit-action svg{width:15px;height:15px}.ability-status{right:-12px}.ability-count{min-width:17px;height:17px;font-size:9px}.parcel-panel{width:calc(100% - 24px)}.mote.three{display:none}.drawer{border-radius:20px 20px 0 0}}
    @media(max-width:420px){.ability-node[data-slot="0"]{left:18%;top:19%}.ability-node[data-slot="1"]{left:82%;top:19%}.ability-node[data-slot="2"]{left:79%;top:62%}.life-button{width:176px;height:176px}.life-name{top:calc(40% + 106px)}}
    @media(max-width:760px){.world-rail{gap:6px;padding:7px 8px;border-radius:22px}.rail-life{width:69px;height:64px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;background:transparent;box-shadow:none}.rail-life:hover,.rail-life.active{transform:none;background:transparent;border-radius:16px;outline:0;box-shadow:none}.rail-life .rail-face{width:38px;height:38px;justify-content:center;border-radius:14px;background:var(--rail-color);box-shadow:inset -5px -5px 0 #744b391a,0 4px 9px #59452420}.rail-life.active .rail-face{outline:2px solid #fffaff;box-shadow:0 0 0 4px var(--rail-color),0 5px 12px #59452420}.rail-life .rail-name,.rail-life:hover .rail-name,.rail-life:focus-visible .rail-name{position:static;opacity:1;transform:none;padding:0;background:transparent;box-shadow:none;color:#5b526a;font-size:10px;line-height:1.2}.rail-life .rail-count{right:10px;top:0}.rail-create{width:38px;height:38px;border-radius:14px;align-self:center}.rail-create:hover,.rail-create:focus-visible{transform:none}}
    @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#world-loading{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:70;background:#fffdf4;color:#483e28;padding:9px 17px;border-radius:20px;box-shadow:var(--shadow);max-width:min(80vw,500px);text-align:center}#world-loading[hidden]{display:none}.world-head .world-tools{gap:8px}.world-app-link{font-size:12px;color:inherit;text-decoration:none;border:1px solid currentColor;border-radius:20px;padding:6px 10px;white-space:nowrap}.world-app-link:hover{text-decoration:underline}.world-app-button{border:1px solid currentColor;border-radius:20px;padding:6px 10px;background:transparent;color:inherit;cursor:pointer}.world-app-button:hover{text-decoration:underline}.world-app-empty{padding:20px;line-height:1.6}.world-app-error{color:#ad433c}.world-app-muted{color:var(--ink-soft)}.world-app-file{display:block;margin:12px 0;color:#295f4d}.world-app-preview{max-width:100%;max-height:330px;object-fit:contain;border-radius:14px}.world-app-status{margin:10px 0}.world-app-status strong{display:block}.world-app-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.world-app-select{width:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.world-app-field{display:block;margin:12px 0}.world-app-field>span{display:block;margin-bottom:5px}.world-app-field input{width:100%;padding:10px;border:1px solid var(--line);border-radius:12px}.world-app-ability-config{padding:15px;border:1px solid var(--line);border-radius:18px;margin:10px 0}.world-app-ability-config h3{margin:0 0 5px}.world-app-ability-config p{margin:4px 0}.world-app-ability-config dl{display:grid;grid-template-columns:auto 1fr;gap:5px 10px}.world-app-ability-config dt{color:var(--ink-soft)}.world-app-ability-config dd{margin:0;overflow-wrap:anywhere}.world-app-work-meta{white-space:pre-wrap;overflow-wrap:anywhere}.world-app-badge{display:inline-block;border-radius:12px;background:var(--amber-pale);padding:2px 8px;margin-left:7px;font-size:11px}.world-app-controls{padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);margin:10px 0}#requestInput{min-width:0}@media(max-width:760px){.world-app-link,.world-app-button{font-size:10px;padding:5px 7px}.world-head .world-tools{gap:4px}}

.world-app-quick-config{padding:20px;margin:0 0 18px;border:1px solid #d9cbea;border-radius:18px;background:linear-gradient(145deg,#f8f2ff,#fffdf8);box-shadow:0 9px 28px #5e477414}
.channel-create-shade{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:#201a2d66;backdrop-filter:blur(7px)}
.channel-create-dialog{width:min(420px,100%);padding:24px;border:1px solid #d9cbea;border-radius:22px;background:var(--surface);color:var(--ink);box-shadow:0 24px 70px #24183555}.channel-create-dialog h2{margin:0 0 8px;font-family:var(--serif)}.channel-create-dialog p{margin:0 0 16px;color:var(--ink-soft);line-height:1.55}.channel-create-dialog input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font:inherit}.channel-create-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.world-app-quick-config h3{font-family:var(--serif);font-size:24px;margin:5px 0 8px}
.world-app-quick-config p{max-width:58ch;line-height:1.65}
.world-app-quick-config .solid-button{margin-top:4px;background:#66558f;border-color:#66558f}
.config-advanced{margin-top:14px}.config-advanced>summary{padding:12px 2px;color:var(--ink-soft);font-weight:700;cursor:pointer}.config-advanced[open]>summary{margin-bottom:8px}
.world-app-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#755aa0}
.config-card-title{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.config-card-title small{color:var(--ink-soft);font-weight:500}.config-card-route{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-soft);font-size:11px}.ability-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}.ability-folder{grid-column:1/-1}.folder-row{display:flex;align-items:center;gap:8px}.folder-row input{min-width:0;flex:1}.folder-row .quiet-button{flex:0 0 auto}.config-save-status{min-height:24px}.config-drawer .solid-button{margin-top:4px}
body:not([data-theme="day"]) .world-app-quick-config{background:linear-gradient(145deg,#372d48,#2b2734);border-color:#5d4d70}
body:not([data-theme="day"]) .world-app-quick-config .solid-button{background:#8069ab;border-color:#8069ab}
@media(max-width:760px){.world-app-quick-config{padding:16px}.world-app-quick-config h3{font-size:21px}.ability-config-grid{grid-template-columns:1fr}.ability-folder{grid-column:auto}.config-card-route{display:none}}
