:root{--green-950:#073d2c;--green-900:#0a4a36;--green-800:#0c5a42;--green-100:#dcebe4;--gold:#b48a34;--rose:#d95d63;--ink:#1d2825;--muted:#6e7773;--line:#e4e8e3;--surface:#fff;--soft:#f7f6f1;--soft-2:#fbfaf7;--shadow:0 18px 50px #14231e1f;color:var(--ink);background:var(--soft);font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit;min-width:0}button{cursor:pointer}.auth-shell{color:#f4f2eb;background-color:#080b09;background-image:url(/assets/lamp-path-Cb3hKwWB.jpg);background-position:0;background-repeat:no-repeat;background-size:auto 100%;grid-template-columns:minmax(0,1.2fr) minmax(390px,.8fr);min-height:100vh;display:grid}.auth-brand{z-index:2;color:#f3efe3;position:fixed;top:28px;left:32px}.auth-brand.user-wordmark{color:#f3efe3}.auth-brand.user-wordmark span span{color:#c8c2b3}.auth-copy{align-self:end;padding:48px 38px}.auth-copy p{color:#e8dfca;max-width:360px;margin:0;font-size:22px;font-weight:400;line-height:1.35}.auth-form-surface{background:#0a0d0bf0;border-left:1px solid #ffffff1a;align-content:center;min-height:100vh;padding:72px clamp(34px,6vw,88px);display:grid}.auth-form-surface form{gap:17px;width:min(100%,440px);display:grid}.auth-step{gap:7px;width:min(100%,440px);margin-bottom:28px;display:flex}.auth-step span{background:#4a4e49;width:34px;height:2px}.auth-step span.active{background:#d8a84e}.auth-heading{gap:8px;margin-bottom:7px;display:grid}.auth-heading>svg{color:#d8a84e;width:23px;height:23px}.auth-heading h1,.auth-heading p{margin:0}.auth-heading h1{color:#fff;letter-spacing:0;font-size:26px;font-weight:500;line-height:1.25}.auth-heading p{color:#aeb4ae;font-size:14px;line-height:1.5}.auth-heading strong{color:#e8e9e5;font-weight:500}.auth-form-surface label{gap:7px;display:grid}.auth-form-surface label>span{color:#d7d9d5;font-size:13px;font-weight:500}.auth-form-surface input{color:#fff;background:#161a17;border:1px solid #414742;border-radius:7px;outline:0;width:100%;min-height:46px;padding:0 13px;font-size:15px;font-weight:400}.auth-form-surface input:focus{border-color:#c89a45;box-shadow:0 0 0 3px #c89a4524}.auth-code-input{letter-spacing:0!important;font-size:22px!important}.auth-age-notice,.auth-error{margin:0;font-size:12px;line-height:1.55}.auth-age-notice{color:#969c96}.auth-error{color:#f2cf92;border-left:2px solid #d7a245;padding-left:10px}.auth-primary{color:#fff;background:#2c684f;border:1px solid #327058;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:46px;font-size:14px;font-weight:500;display:inline-flex}.auth-primary:hover:not(:disabled){background:#34785c}.auth-primary:disabled{cursor:not-allowed;opacity:.55}.auth-primary svg{width:17px;height:17px}.auth-secondary-actions{justify-content:space-between;gap:16px;display:flex}.auth-secondary-actions button{color:#c4c9c4;background:0 0;border:0;padding:5px 0;font-size:13px;font-weight:400}.auth-secondary-actions button:disabled{cursor:default;color:#6e746f}.user-app-shell{color:#272824;background:#fff;min-height:100vh;font-weight:400}.user-error{z-index:20;color:#8a2632;background:#fff6f7;border:1px solid #ebc3c8;border-radius:8px;max-width:min(520px,100vw - 28px);padding:10px 14px;font-size:13px;position:fixed;top:14px;left:50%;transform:translate(-50%)}.user-chat-shell{grid-template-columns:172px minmax(0,1fr);min-height:100vh;display:grid}.user-conversation-rail{background:#f8f8f5;border-right:1px solid #ebebe7;flex-direction:column;gap:14px;min-width:0;height:100vh;padding:18px 12px;display:flex;position:sticky;top:0}.user-wordmark{color:#2d2e2a;letter-spacing:0;align-items:center;gap:8px;font-size:15px;font-weight:500;display:flex}.user-wordmark span span{color:#777a73}.user-wordmark.large{justify-content:center;font-size:17px}.user-wordmark-mark{color:#926817;background:#fff8df;border:1px solid #ead8a9;border-radius:50%;place-items:center;width:25px;height:25px;display:inline-grid}.user-wordmark.large .user-wordmark-mark{width:36px;height:36px}.user-wordmark-mark svg{width:13px;height:13px}.user-wordmark.large svg{width:17px;height:17px}.user-new-chat{color:#30312d;background:#fff;border:1px solid #deded9;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:36px;font-size:13px;font-weight:500;display:inline-flex}.user-new-chat svg{width:15px;height:15px}.user-trail-link{color:#5b615b;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;min-height:34px;padding:0 9px;font-size:13px;font-weight:400;display:inline-flex}.user-trail-link:hover,.user-trail-link.active{color:#2f302c;background:#ecece7}.user-trail-link svg{width:15px;height:15px}.user-conversation-list{align-content:start;gap:4px;min-height:0;max-height:30vh;display:grid;overflow:auto}.user-account-control{color:#575b55;border-top:1px solid #e3e4df;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:7px;margin-top:auto;padding:12px 4px 0 8px;font-size:13px;display:grid}.user-account-control>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-account-control button{color:#757971;background:0 0;border:0;border-radius:6px;place-items:center;width:30px;height:30px;display:grid}.user-account-control button:hover{color:#333530;background:#ecece7}.user-account-control svg{width:15px;height:15px}.user-conversation{color:#666962;text-align:left;background:0 0;border:0;border-radius:7px;min-height:34px;padding:8px 9px;font-size:13px;font-weight:400}.user-conversation span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.user-conversation.active{color:#2f302c;background:#ecece7;font-weight:500}.user-empty-thread-label{color:#777a73;font-size:13px}.user-chat-column{grid-template-rows:minmax(0,1fr) auto;width:min(100%,900px);min-width:0;height:100vh;margin:0 auto;padding:0 30px;display:grid}.user-message-thread{flex-direction:column;gap:22px;min-height:0;padding:72px 0 26px;display:flex;overflow:auto}.user-message{color:#2c2d2a;font-size:15px;line-height:1.6;display:flex}.user-message.user{justify-content:flex-end}.user-message.assistant{flex-direction:column;justify-content:flex-start;align-items:flex-start}.user-message-content{white-space:pre-line;max-width:690px}.user-message.user .user-message-content{background:#f0f0ec;border-radius:18px;max-width:min(520px,82%);padding:10px 14px}.closure-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.closure-actions button{color:#244d3d;min-height:34px;font:inherit;background:#f3f7f4;border:1px solid #ccd9d1;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 13px;font-size:13px;font-weight:500;display:inline-flex}.closure-actions button:last-child{color:#626b66;background:0 0}.closure-actions button:disabled{opacity:.58;cursor:wait}.closure-actions svg{width:14px;height:14px}.closure-encouragement{color:#637068;margin:11px 0 0;font-size:13px;font-weight:400;line-height:1.45}.thinking-message{color:#777a73;align-items:center;gap:10px;font-weight:500;display:inline-flex}.thinking-message span{gap:4px;display:inline-flex}.thinking-message i{opacity:.35;background:currentColor;border-radius:999px;width:6px;height:6px;animation:1.1s ease-in-out infinite thinkingPulse}.thinking-message i:nth-child(2){animation-delay:.15s}.thinking-message i:nth-child(3){animation-delay:.3s}.user-message.system{color:#777a73;justify-content:center;font-size:13px}.user-empty-state{color:#6b6d67;text-align:center;justify-items:center;gap:18px;margin:auto;display:grid}.user-empty-state h1{color:#2d2e2a;letter-spacing:0;margin:0;font-size:24px;font-weight:500;line-height:1.25}.user-suggestions{flex-wrap:wrap;justify-content:center;gap:8px;max-width:620px;display:flex}.user-suggestions button{color:#4d5049;background:#fff;border:1px solid #e2e2dd;border-radius:999px;min-height:36px;padding:0 13px;font-size:13px;font-weight:400}.user-composer-shell{background:linear-gradient(#fff0,#fff 22% 100%);padding:18px 0 22px;position:sticky;bottom:0}.user-entry-prompts{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:10px;display:flex}.user-entry-prompts button{color:#365244;text-align:left;background:#f7faf7;border:1px solid #d9ded9;border-radius:999px;max-width:100%;min-height:34px;padding:7px 13px;font-size:13px;font-weight:400;line-height:1.35}.user-entry-prompts button:disabled{opacity:.58;cursor:wait}.user-composer{background:#fff;border:1px solid #deded8;border-radius:24px;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:8px;padding:6px 7px 6px 18px;display:grid;box-shadow:0 10px 32px #1e1f1c14}.user-composer input{color:#282925;border:0;outline:0;min-height:42px;font-size:15px}.user-composer input::placeholder{color:#85877f}.user-send-button{color:#fff;background:#2d2e2a;border:0;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.user-send-button:disabled{cursor:not-allowed;background:#d7d7d1}.user-send-button svg{width:17px;height:17px}.user-composer-shell p{color:#777a73;text-align:center;margin:8px 0 0;font-size:12px}.user-trail-column{min-width:0;height:100vh;overflow:auto}.user-trail-page{width:min(100%,720px);margin:0 auto;padding:64px 30px 72px}.user-trail-header{border-bottom:1px solid #e7e9e5;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:14px;padding-bottom:30px;display:grid}.user-trail-header>button{color:#4c544f;background:#fff;border:1px solid #dfe2dd;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.user-trail-header svg{width:17px;height:17px}.user-trail-header span{color:#777d78;font-size:13px}.user-trail-header h1{color:#282b28;letter-spacing:0;margin:5px 0 0;font-size:25px;font-weight:500;line-height:1.2}.user-trail-loading,.user-trail-empty{color:#69706b;text-align:center;place-content:center;justify-items:center;gap:10px;min-height:360px;display:grid}.user-trail-loading{grid-template-columns:auto auto}.user-trail-loading svg{width:17px;height:17px}.user-trail-empty h2,.user-trail-empty p{margin:0}.user-trail-empty h2{color:#323632;font-size:19px;font-weight:500}.user-trail-empty p{max-width:420px;font-size:14px;line-height:1.55}.user-trail-empty button{color:#3e5448;background:#f7f9f7;border:1px solid #d8ddd8;border-radius:7px;min-height:34px;padding:0 12px;font-size:13px}.user-trail-milestones{padding:28px 0 8px}.user-trail-milestones h2{color:#737a75;text-transform:uppercase;margin:0 0 12px;font-size:12px;font-weight:500}.user-trail-milestones p{color:#3d493f;border-bottom:1px solid #edf0ec;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;margin:0;padding:9px 0;font-size:14px;display:grid}.user-trail-milestones svg{color:#9a721f;width:15px;height:15px}.user-trail-milestones strong{font-weight:500}.user-trail-milestones span{color:#6f7972;font-size:12px}.user-trail-list{gap:0;margin:26px 0 0;padding:0;list-style:none;display:grid;position:relative}.user-trail-list:before{content:"";background:#d9ded9;width:1px;position:absolute;top:18px;bottom:18px;left:7px}.user-trail-list li{grid-template-columns:16px minmax(0,1fr);gap:14px;padding:13px 0;display:grid;position:relative}.user-trail-light{z-index:1;background:#b7892d;border:3px solid #fff9e6;border-radius:50%;width:15px;height:15px;margin-top:3px;box-shadow:0 0 0 1px #d8bf86}.user-trail-list li>div{gap:3px;display:grid}.user-trail-list strong{color:#2e332f;font-size:15px;font-weight:500;line-height:1.35}.user-trail-list li span:last-child{color:#7a817c;font-size:12px}.admin-gate{background:var(--soft);place-items:center;min-height:100vh;padding:24px;display:grid}.admin-gate form{border:1px solid var(--line);width:min(380px,100%);box-shadow:var(--shadow);background:#fff;border-radius:8px;gap:12px;padding:28px;display:grid}.admin-gate-icon{width:40px;height:40px;color:var(--green-900);background:#edf5f0;border-radius:50%;place-items:center;display:grid}.admin-gate-icon svg{width:20px;height:20px}.admin-gate h1{margin:2px 0 0;font-size:24px;line-height:1.2}.admin-gate p{color:var(--muted);margin:0;line-height:1.5}.admin-gate input{border:1px solid var(--line);border-radius:8px;outline:0;min-height:42px;padding:0 12px}.admin-gate-error{color:#8e2530;font-size:13px;font-weight:700}.app-shell{background:linear-gradient(90deg, var(--green-950), var(--green-900) 208px, var(--soft) 208px);grid-template-columns:208px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#fff;flex-direction:column;gap:22px;height:100vh;padding:24px 14px;display:flex;position:sticky;top:0}.brand{letter-spacing:0;align-items:center;gap:10px;padding:0 4px 12px;font-size:20px;font-weight:750;display:flex}.brand>span:last-child{white-space:nowrap}.brand-mark,.leaf-mark{width:34px;height:34px;color:var(--green-900);background:#f7f4e9;border:1px solid #b48a346b;border-radius:50%;place-items:center;font-weight:800;display:inline-grid}.brand-soft{color:#ddc689}.nav-list{gap:8px;display:grid}.nav-button{color:#ffffffdb;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;height:48px;padding:0 14px;font-size:14px;font-weight:700;display:flex}.nav-button svg{width:20px;height:20px}.nav-button.active,.nav-button:hover{color:#fff;background:#ffffff1f}.sidebar-footer{margin-top:auto}.mentor-chip{align-items:center;gap:10px;padding:12px 8px;display:flex}.mentor-chip strong,.mentor-chip small{display:block}.mentor-chip small{color:#ffffffb8}.workspace{flex-direction:column;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--line);background:#fffffff0;justify-content:space-between;align-items:center;gap:16px;height:82px;padding:0 28px;display:flex}.topbar h1{margin:0;font-size:26px;line-height:1.1}.topbar p{color:var(--muted);margin:5px 0 0;font-size:13px}.top-actions{align-items:center;gap:10px;display:flex}.select,.top-actions select,.toolbar select,.toolbar input,.edge-add select,.editor-form input,.editor-form textarea,.editor-form select,.content-item-editor input,.content-item-editor textarea,.content-item-editor select,.content-ingest-panel input,.content-ingest-panel select,.module-create input,.module-create textarea,.attribute-create input,.attribute-create textarea,.attribute-create select,.select-label select,.state-table select,.module-state-grid select{border:1px solid var(--line);min-height:38px;color:var(--ink);background:#fff;border-radius:8px;outline:none;padding:0 10px}.icon-button{border:1px solid var(--line);width:40px;height:40px;color:var(--green-900);background:#fff;border-radius:50%;place-items:center;display:inline-grid}.icon-button svg{width:18px}.icon-button.small{border-radius:8px;width:32px;height:32px}.icon-button.small svg{width:15px;height:15px}.icon-button.danger{color:#9b2b34;background:#fff7f7;border-color:#efc8cc}.icon-button:disabled{opacity:.45;cursor:not-allowed}.content-grid{grid-template-columns:minmax(0,1fr) 420px;min-height:calc(100vh - 82px);display:grid}.primary-surface{min-width:0;padding:24px 28px 28px}.inspector{border-left:1px solid var(--line);background:#ffffffdb;padding:20px;overflow:auto}.notice{border-radius:8px;margin:14px 28px 0;padding:12px 14px;font-weight:700}.notice.error{color:#8e2530;background:#fff2f2;border:1px solid #f1c4c9}.notice.success{color:var(--green-900);background:#f2f8f4;border:1px solid #cfe0d7}.chat-workspace{grid-template-columns:280px minmax(0,1fr);gap:16px;height:calc(100vh - 134px);display:grid}.conversation-rail{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;min-width:0;padding:14px;display:grid;box-shadow:0 12px 36px #14231e0f}.conversation-rail-header,.chat-thread-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.conversation-rail-header h2,.chat-thread-heading h2{margin:0;font-size:18px}.conversation-rail-header p,.chat-thread-heading p{color:var(--muted);margin:4px 0 0;font-size:12px;font-weight:650}.conversation-list{align-content:start;gap:8px;display:grid;overflow:auto}.conversation-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;gap:8px;padding:8px;display:grid}.conversation-row.active{background:#f2f8f4;border-color:#bad1c5}.conversation-row>button{text-align:left;background:0 0;border:0;gap:3px;padding:0;display:grid}.conversation-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.conversation-row time,.shared-state-chip span{color:var(--muted);font-size:12px;font-weight:750}.conversation-actions{gap:6px;display:flex}.shared-state-chip{color:var(--green-900);background:#edf5f0;border:1px solid #cfe0d7;border-radius:8px;gap:2px;padding:10px 12px;display:grid}.chat-layout{grid-template-rows:auto minmax(0,1fr) auto;gap:14px;min-width:0;display:grid}.operator-chat-layout{grid-template-rows:auto auto minmax(0,1fr) auto}.message-thread{flex-direction:column;gap:18px;padding:12px 4px 8px;display:flex;overflow:auto}.message{border:1px solid var(--line);background:#fff;border-radius:8px;max-width:min(760px,86%);padding:16px 18px;box-shadow:0 10px 30px #14231e0f}.message.user{background:#f2eadc;align-self:flex-end}.message.assistant{align-self:flex-start}.message p{white-space:pre-line;margin:9px 0 0;line-height:1.55}.message-meta{color:var(--muted);justify-content:space-between;gap:18px;font-size:12px;font-weight:750;display:flex}.empty-thread{text-align:center;color:var(--muted);margin:auto}.empty-thread svg{color:var(--gold);width:34px;height:34px}.empty-thread h2{color:var(--ink);margin:10px 0 4px}.example-row{gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.example-row button{white-space:nowrap;border:1px solid var(--line);color:var(--green-900);background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:750}.composer{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px;display:grid}.composer input{min-height:44px;color:var(--ink);border:0;outline:none}.send-button,.primary-action{background:var(--green-900);color:#fff;border-color:var(--green-900)}.send-button,.primary-action,.edge-add button,.secondary-action{border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 15px;font-weight:850;display:inline-flex}.send-button svg,.primary-action svg,.edge-add button svg,.secondary-action svg{width:17px;height:17px}.secondary-action{color:var(--green-900);background:#edf5f0;border:1px solid #cfe0d7}.primary-action:disabled{opacity:.56;cursor:not-allowed}.turn-debug-panel{color:var(--green-900);background:#f7fbf8;border:1px solid #dbe5df;border-radius:8px;gap:8px;padding:12px;font-size:12px;display:grid}.turn-debug-panel.empty{color:var(--muted);background:#fbfaf7}.turn-debug-panel>div:first-child,.turn-debug-targets{justify-content:space-between;gap:12px;display:flex}.turn-debug-panel span,.turn-debug-panel small{color:var(--muted);font-weight:700}.turn-debug-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;display:grid}.turn-debug-grid article{background:#fff;border:1px solid #dbe5df;border-radius:8px;gap:3px;padding:9px;display:grid}.admin-grid{grid-template-columns:330px minmax(0,1fr);gap:18px;min-height:calc(100vh - 134px);display:grid}.list-panel,.edit-panel,.state-admin,.attributes-panel,.prompt-compose-panel,.prompt-library-panel{border:1px solid var(--line);background:#fff;border-radius:8px;box-shadow:0 12px 36px #14231e0f}.list-panel{min-width:0;padding:14px}.toolbar{gap:8px;margin-bottom:12px;display:grid}.list-count{color:var(--muted);font-size:12px;font-weight:850}.topic-label-bulk{width:100%}.topic-label-notice{color:var(--green-900);margin:0;font-size:12px}.mitzvah-list{gap:6px;max-height:calc(100vh - 238px);display:grid;overflow:auto}.mitzvah-list-unit{gap:4px;display:grid}.mitzvah-row-shell{grid-template-columns:28px minmax(0,1fr);align-items:stretch;gap:6px;display:grid}.unit-expander{border:1px solid var(--line);color:var(--green-900);background:#fff;border-radius:8px;font-weight:850}.unit-expander:disabled{opacity:.35;cursor:default}.row-button{text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:34px minmax(0,1fr);gap:2px 8px;padding:10px;display:grid}.row-button span{background:var(--soft);width:28px;height:28px;color:var(--green-900);border-radius:50%;grid-row:span 2;place-items:center;font-size:12px;font-weight:850;display:grid}.row-button strong,.row-button small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.topic-label-dot{vertical-align:1px;background:#2f8a58;border-radius:50%;width:7px;height:7px;margin-left:5px;display:inline-block}.topic-label-dot.missing{background:#d79722}.row-button small{color:var(--muted)}.row-button.active,.row-button:hover{background:#f9faf7;border-color:#cdd9d2}.sub-mitzvah-list{gap:4px;padding-left:34px;display:grid}.sub-mitzvah-row{border:1px solid var(--line);text-align:left;background:#fbfaf7;border-radius:8px;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px;padding:7px 9px;display:grid}.sub-mitzvah-row.active{background:#f2f8f4;border-color:#bad1c5}.sub-mitzvah-row span,.sub-mitzvah-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.edit-panel{padding:18px;overflow:auto}.panel-heading,.inspector-header,.state-header{justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.panel-heading h2,.inspector-header h2,.state-header h2{margin:0;font-size:18px}.panel-heading select{max-width:280px}.panel-actions{align-items:center;gap:8px;display:flex}.editor-form{gap:12px;display:grid}.topic-label-editor{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;display:grid}.topic-label-editor .secondary-action{min-height:40px}.editor-form label,.content-item-editor label,.content-ingest-panel label,.module-create,.attribute-create,.prompt-compose-panel label{color:var(--muted);gap:6px;font-size:12px;font-weight:800;display:grid}.editor-form textarea,.content-item-editor textarea,.module-create textarea,.attribute-create textarea,.prompt-compose-panel textarea{resize:vertical;min-height:86px;padding:10px}.prompt-admin{gap:16px;display:grid}.prompt-compose-panel,.prompt-library-panel{gap:14px;padding:18px;display:grid}.prompt-compose-panel .notice{margin:0}.panel-heading.compact{margin-bottom:0}.panel-heading p,.prompt-library-heading p{color:var(--muted);margin:4px 0 0;font-size:13px;font-weight:600}.prompt-compose-panel textarea{min-height:260px;line-height:1.55}.prompt-library-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.prompt-library-heading h3{color:var(--ink);margin:0}.prompt-link-list{gap:8px;display:grid}.prompt-link-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:58px;padding:8px 10px;display:grid}.prompt-link-row.active{background:#f2f8f4;border-color:#bad1c5}.prompt-open-button{color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;gap:3px;padding:0;display:grid}.prompt-open-button strong,.prompt-open-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.prompt-open-button span,.prompt-preview span{color:var(--muted);font-size:12px;font-weight:750}.prompt-status-pill{text-transform:uppercase;white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-height:28px;padding:4px 10px;font-size:11px;font-weight:850;display:inline-flex}.prompt-status-pill.pending{color:#76560d;background:#fff3c4;border-color:#ecd28f}.prompt-status-pill.processed{color:var(--green-900);background:#edf7f1;border-color:#c9dfd2}.prompt-delete-button{color:#9c392c;background:#fff8f6;border:1px solid #ead4ce;border-radius:999px;place-items:center;width:32px;height:32px;display:inline-grid}.prompt-delete-button:hover{background:#ffece8;border-color:#d79c90}.prompt-delete-button svg{width:15px;height:15px}.prompt-preview{border-top:1px solid var(--line);grid-column:1/-1;gap:10px;padding-top:14px;display:grid}.prompt-preview pre{border:1px solid var(--line);color:#26302c;white-space:pre-wrap;background:#fbfaf7;border-radius:8px;max-height:420px;margin:0;padding:12px;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;overflow:auto}.module-create{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.module-create h3{color:var(--ink);margin:0 0 4px;font-size:14px}.scene-manager-panel{border-top:1px solid var(--line);gap:14px;margin-top:6px;padding-top:18px;display:grid}.scene-editor-form,.scene-card-editor{border:1px solid var(--line);background:#fbfaf7;border-radius:8px;gap:12px;padding:14px;display:grid}.scene-act-list,.scene-act-group,.scene-card-list{gap:10px;display:grid}.scene-act-group>h4{border-bottom:1px solid var(--line);color:var(--muted);text-transform:uppercase;margin:0;padding-bottom:7px;font-size:12px;font-weight:800}.scene-authoring-block{border-left:3px solid #bad1c5;gap:12px;padding:4px 0 14px 14px;display:grid}.scene-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.scene-heading strong{color:var(--ink);font-size:14px}.scene-heading p,.scene-heading small{color:var(--muted);margin:4px 0 0;font-size:12px;line-height:1.45;display:block}.scene-heading small{color:var(--green-900)}.scene-card-row{border:1px solid var(--line);background:var(--soft-2);border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;display:grid}.scene-card-copy{min-width:0}.scene-card-copy strong,.scene-card-copy span{display:block}.scene-card-copy span{color:var(--muted);margin-top:2px;font-size:11px;font-weight:750}.scene-card-copy p{color:#39443f;margin:5px 0 0;font-size:12px;line-height:1.4}.scene-card-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.scene-card-controls select{max-width:180px;min-height:32px;font-size:12px}.scene-add-card{width:fit-content}.scene-unassigned{border-top:1px solid var(--line);gap:8px;padding-top:12px;display:grid}.content-library-panel,.included-mitzvos-panel{border-top:1px solid var(--line);gap:12px;margin-top:6px;padding-top:18px;display:grid}.content-library-header,.content-editor-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.content-library-header h3,.content-editor-heading h4{color:var(--ink);margin:0}.content-library-header p{color:var(--muted);margin:4px 0 0;font-size:13px;font-weight:500}.content-add-tabs{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.secondary-action.active{color:var(--green-900);background:#f2f8f4;border-color:#bad1c5}.inline-error{color:#8e2530;background:#fff2f2;border:1px solid #f1c4c9;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:800}.content-item-list,.included-mitzvah-list,.included-mitzvah-edit-shell{gap:8px;display:grid}.included-mitzvah-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:10px 12px;display:grid}.included-mitzvah-row.active{background:#f2f8f4;border-color:#bad1c5}.included-mitzvah-row>button:first-child{color:inherit;text-align:left;background:0 0;border:0;gap:3px;padding:0;display:grid}.included-mitzvah-row strong,.included-mitzvah-row span,.included-mitzvah-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.included-mitzvah-row small{color:var(--muted);grid-column:1/-1;font-size:12px;font-weight:750}.content-tier-section{border:1px solid var(--line);background:#fff;border-radius:8px;gap:8px;padding:10px;display:grid}.content-tier-section.essence{background:#fffdf6;border-color:#ead8a9}.content-tier-section.expansion{background:#fbfaf7}.content-tier-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.content-tier-heading h4{color:var(--ink);margin:0;font-size:13px}.content-tier-heading span{color:var(--muted);font-size:12px;font-weight:800}.content-doc-group{border:1px solid var(--line);background:#fff;border-radius:8px;gap:8px;padding:10px;display:grid}.content-doc-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.content-doc-heading svg{width:18px;height:18px;color:var(--green-900)}.content-doc-heading strong,.source-meta strong{color:var(--ink);overflow-wrap:anywhere;display:block}.content-doc-heading span,.source-meta span{color:var(--muted);margin-top:2px;font-size:12px;font-weight:800;display:block}.content-doc-chunks{gap:6px;padding-left:28px;display:grid}.content-item-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:54px;padding:10px 12px;display:flex}.content-item-row.active{background:#f2f8f4;border-color:#bad1c5}.content-item-row.essence{background:#fffdf6;border-color:#ead8a9}.content-item-row.expansion{background:var(--soft-2)}.content-item-row strong,.content-item-row span{display:block}.content-row-title{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.content-item-row span{color:var(--muted);margin-top:3px;font-size:12px;font-weight:750}.content-row-title .tier-badge{border:1px solid var(--line);text-transform:uppercase;border-radius:999px;align-items:center;width:fit-content;margin-top:0;padding:2px 7px;font-size:10px;font-weight:850;display:inline-flex}.tier-badge.essence{color:#75560e;background:#fff5d8;border-color:#ead8a9}.tier-badge.expansion{color:var(--green-900);background:#edf5f0;border-color:#cfe0d7}.content-item-actions{flex:none;align-items:center;gap:6px;display:flex}.content-item-editor{background:#fbfdfb;border:1px solid #d8e2dc;border-radius:8px;gap:12px;margin:8px 0 12px;padding:14px;display:grid}.inline-sub-editor{margin-left:18px}.content-editor-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tidy-review-panel{background:#fff;border:1px solid #d8e2dc;border-radius:8px;gap:12px;padding:12px;display:grid}.tidy-review-heading{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.tidy-review-heading span{color:var(--muted);font-size:12px;font-weight:650}.tidy-review-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.tidy-review-grid textarea{min-height:180px;line-height:1.55}.content-ingest-panel{background:#fbfdfb;border:1px solid #d8e2dc;border-radius:8px;gap:12px;padding:14px;display:grid}.source-meta{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 12px}.two-col{grid-template-columns:1fr 1fr;gap:10px;display:grid}.check-line{grid-template-columns:auto 1fr;align-items:center;display:flex!important}.dependency-editor{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.dependency-editor h3,.state-admin h3,.inspector-section h3{margin:0 0 10px;font-size:14px}.edge-add{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.edge-add button{background:var(--green-900);color:#fff}.edge-list{gap:8px;margin-top:10px;display:grid}.edge-row,.mini-row,.event-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:8px 10px;display:flex}.edge-row svg,.mini-row svg{width:16px;height:16px;color:var(--green-900)}.edge-row button{color:#9b2b34;background:#fff0f1;border:0;border-radius:8px;margin-left:auto;padding:7px 10px;font-size:12px;font-weight:800}.state-admin{padding:18px}.state-header p{color:var(--muted);margin:6px 0 0}.state-header svg{color:var(--green-900)}.state-table{border:1px solid var(--line);background:var(--line);border-radius:8px;grid-template-columns:minmax(230px,1.5fr) repeat(5,minmax(130px,1fr));gap:1px;display:grid;overflow:auto}.state-table>*{background:#fff;min-height:42px;padding:8px}.table-head{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:850}.state-name{align-items:center;gap:8px;font-weight:750;display:flex}.state-name span{color:var(--green-900);font-weight:900}.module-state-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-bottom:18px;display:grid}.module-state-grid label{border:1px solid var(--line);background:#fff;border-radius:8px;gap:6px;padding:12px;display:grid}.user-attribute-grid{gap:10px;display:grid}.user-attribute-row{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr);align-items:center;gap:12px;padding:12px;display:grid}.user-attribute-row strong,.user-attribute-row span{display:block}.user-attribute-row span{color:var(--muted);margin-top:3px;font-size:12px}.user-attribute-row code{color:var(--green-900);white-space:pre-wrap;overflow-wrap:anywhere}.attributes-panel{grid-template-columns:minmax(260px,360px) 1fr;gap:18px;padding:18px;display:grid}.attribute-create{align-content:start}.attribute-list{gap:10px;display:grid}.attribute-card{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;gap:7px;padding:14px;display:grid}.attribute-card span{color:var(--muted)}.attribute-card code{white-space:pre-wrap;color:var(--green-900)}.inspector-header svg{color:var(--green-900)}.select-label{color:var(--muted);gap:6px;font-size:12px;font-weight:850;display:grid}.inspector-section{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.node-title{align-items:center;gap:12px;margin-bottom:12px;display:flex}.node-title h3{margin:0;font-size:18px}.node-title p,.inspector-section p,.muted{color:var(--muted);margin:0;line-height:1.45}.node-icon{width:44px;height:44px;color:var(--green-900);background:#f3ead7;border:1px solid #e0c88f;border-radius:50%;place-items:center;display:grid}.node-icon svg{width:20px}.mini-grid{grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin-top:12px;font-size:13px;display:grid}.mini-grid span{color:var(--muted)}.ancestor-tree,.event-list{gap:8px;display:grid}.ancestor-tree span{border:1px solid var(--line);background:var(--soft-2);border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:13px;display:flex}.ancestor-tree svg{width:15px;color:var(--gold)}.event-row{justify-content:space-between;font-size:13px}.event-row time{color:var(--muted)}.loading-screen{min-height:100vh;color:var(--green-900);background:var(--soft);align-content:center;place-items:center;gap:12px;font-weight:850;display:grid}.loading-screen svg{width:32px;height:32px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes thinkingPulse{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:.9;transform:translateY(-2px)}}@media (width<=1120px){.app-shell{background:linear-gradient(90deg, var(--green-950), var(--green-900) 78px, var(--soft) 78px);grid-template-columns:78px minmax(0,1fr)}.brand span:not(.brand-mark),.nav-button{font-size:0}.nav-button{justify-content:center;padding:0}.mentor-chip span:last-child{display:none}}@media (width<=1500px) and (width>=921px){.content-grid{grid-template-columns:1fr}.inspector{border-left:0;border-top:1px solid var(--line)}}@media (width<=920px){.content-grid,.admin-grid,.chat-workspace,.attributes-panel,.prompt-link-row{grid-template-columns:1fr}.inspector{border-left:0;border-top:1px solid var(--line)}.chat-workspace{height:auto;min-height:calc(100vh - 134px)}.conversation-rail{max-height:320px}}@media (width<=760px){.auth-shell{background-position:34%;grid-template-columns:1fr}.auth-brand{top:20px;left:20px}.auth-copy{display:none}.auth-form-surface{background:#080b09e6;border-left:0;min-height:100vh;padding:96px 22px 38px}.auth-form-surface form,.auth-step{width:min(100%,460px);margin-left:auto;margin-right:auto}.user-chat-shell{grid-template-columns:1fr}.user-conversation-rail{border-bottom:1px solid #ebebe7;border-right:0;height:auto;padding:12px;position:static}.user-conversation-list{padding-bottom:2px;display:flex;overflow-x:auto}.user-conversation{flex:0 0 138px}.user-chat-column{width:100%;height:calc(100dvh - 198px);min-height:420px;padding:0 14px}.user-trail-column{height:auto;min-height:calc(100dvh - 198px)}.user-trail-page{padding:34px 18px 52px}.user-message-thread{padding-top:32px}.user-message.user .user-message-content,.user-message-content{max-width:min(100%,680px)}}@media (width<=640px){.app-shell{background:var(--soft);display:block}.sidebar{background:var(--green-950);flex-direction:row;height:auto;padding:10px;position:static;overflow-x:auto}.brand,.sidebar-footer{display:none}.nav-list{display:flex}.nav-button{width:48px}.topbar{flex-direction:column;align-items:flex-start;height:auto;padding:18px}.primary-surface,.inspector{padding:16px}.composer{grid-template-columns:minmax(0,1fr) auto}.chat-thread-heading,.panel-heading,.panel-actions{flex-direction:column;align-items:stretch}.two-col,.tidy-review-grid,.edge-add{grid-template-columns:1fr}.content-library-header{flex-direction:column;align-items:stretch}.scene-heading{flex-direction:column}.scene-card-row{grid-template-columns:1fr}.scene-card-controls{justify-content:flex-start}.scene-card-controls select{flex:160px;max-width:100%}.content-add-tabs{justify-content:stretch}.content-add-tabs .secondary-action{flex:90px}.content-doc-chunks{padding-left:0}.state-table{grid-template-columns:minmax(190px,1fr) repeat(5,132px)}.user-attribute-row{grid-template-columns:1fr}}
