:root{color-scheme:light;--node-width:128px;--avatar-size:92px;--avatar-center-y:calc(var(--avatar-size) / 2);--connect-ring-size:120px;--bg:#eef2f3;--surface:#ffffff;--ink:#1d2526;--muted:#66706c;--line:#d5dde0;--accent:#1f7a6d;--accent-dark:#145f55;--danger:#b43b37;--shadow:0 18px 50px rgb(36 41 38/14%)}*{box-sizing:border-box}body,html{height:100%}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{border:0;border-radius:8px;color:white;background:var(--accent);cursor:pointer;min-height:40px;padding:0 14px}button:hover{background:var(--accent-dark)}button:disabled{cursor:not-allowed;opacity:.45}button:disabled:hover{background:var(--accent)}.button-icon{width:19px;height:19px;display:block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.chevron-icon{width:16px;height:16px}.button-label{min-width:0}.app{min-height:100%;display:grid;grid-template-rows:auto 1fr}.topbar{position:relative;z-index:40;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line);background:rgb(255 255 255/88%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{min-width:180px}.topbar h1,.topbar p{margin:0}.topbar h1{font-size:24px;line-height:1.1}.topbar p{margin-top:4px;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.people-actions{flex:1 1 420px;align-items:center;flex-wrap:nowrap}.people-actions>button,.people-filter-field,.people-search-field{height:40px}.people-filter-field,.people-search-field{margin-bottom:0}.people-search-field{flex:1 1 320px;min-width:220px;max-width:620px;display:flex;align-items:center;gap:8px;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 12px}.people-search-field:focus-within{border-color:rgb(31 122 109/60%);box-shadow:0 0 0 3px rgb(31 122 109/12%)}.people-search-field input{width:100%;min-width:0;border:0;outline:0;color:var(--ink);background:transparent}.people-search-field .button-icon{width:18px;height:18px}.people-filter-field{flex:0 1 230px;min-width:180px}.people-filter-field select{height:100%;padding-top:0;padding-bottom:0}.actions button,.mobile-panel-button,.view-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.view-switch{position:relative;display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f7faf9}.view-switch button{min-height:32px;color:var(--muted);background:transparent;padding:0 10px}.view-switch button.active{color:white;background:var(--accent)}.project-picker{position:relative;display:flex;min-width:0}.project-picker-button{border-radius:8px 0 0 8px;min-width:0;max-width:240px;overflow:hidden}.view-switch .project-dropdown-button{flex:0 0 34px;width:34px;border-radius:0 8px 8px 0;padding:0}.project-picker.open .project-dropdown-button .button-icon{transform:rotate(180deg)}.project-name-label{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-dropdown{position:absolute;z-index:60;top:calc(100% + 8px);left:0;display:none;min-width:min(260px,calc(100vw - 24px));max-height:300px;overflow:auto;pointer-events:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);padding:6px}.project-picker.open .project-dropdown{display:grid;grid-gap:4px;gap:4px}.project-option{display:flex;align-items:center;gap:8px;justify-content:flex-start;width:100%;min-height:36px;color:var(--ink);background:var(--surface);text-align:left;white-space:nowrap;padding:0 10px}.project-option,.project-option span{overflow:hidden;text-overflow:ellipsis}.project-option span{flex:1 1 auto;min-width:0}.project-option.active,.project-option:hover{color:white;background:var(--accent)}.project-option.active small,.project-option:hover small{color:rgb(255 255 255/78%)}.project-option.new-project-option{margin-top:4px;border-top:1px solid var(--line);border-radius:0;color:var(--accent-dark);background:#edf5f2}.project-option.new-project-option:hover{color:white;background:var(--accent)}.icon-action{display:grid;place-items:center;width:40px;padding:0}.account-menu-button,.mobile-panel-button,.mobile-panel-close,.settings-button{display:none}.settings-button{display:inline-grid;place-items:center;width:42px;min-width:42px;padding:0}.auth-form{display:grid;grid-template-columns:170px 170px auto auto auto auto;align-items:center;justify-content:flex-end;grid-gap:8px;gap:8px;max-width:none}.auth-form input{width:100%;min-height:40px;padding:8px 10px}.auth-form button{min-height:40px;white-space:nowrap}.auth-form #signUpBtn{color:var(--accent-dark);background:#dcefe8}.auth-form #signUpBtn:hover{color:white;background:var(--accent-dark)}.auth-status{max-width:220px;overflow:hidden;color:var(--muted);font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.auth-status:empty{display:none}.language-field{display:grid;grid-template-columns:auto minmax(92px,1fr);align-items:center;grid-gap:8px;gap:8px;margin:0;color:var(--muted);font-size:12px;font-weight:700}.language-field select{min-height:40px;padding:8px 10px}.auth-form.signed-in{grid-template-columns:auto auto auto auto auto}.project-form{display:grid;grid-template-columns:170px 150px auto;align-items:center;grid-gap:8px;gap:8px}.project-form input,.project-form select{min-height:40px;padding:8px 10px}.project-form button{min-height:40px;white-space:nowrap}#projectForm{display:none}#connectBtn{color:var(--accent-dark);background:#dcefe8}#connectBtn.active{color:white;background:var(--accent-dark)}.workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 360px}.graph-shell{position:relative;cursor:-webkit-grab;cursor:grab;touch-action:none;background:linear-gradient(90deg,rgb(29 37 38/6%) 1px,transparent 0),linear-gradient(rgb(29 37 38/6%) 1px,transparent 0);background-size:34px 34px}.graph-shell,.people-list-shell{overflow:hidden;min-height:calc(100vh - 78px)}.people-list-shell{height:calc(100vh - 78px);background:#f7faf9;padding:22px}.people-list-head{margin-bottom:16px}.people-list-head h2,.people-list-head p{margin:0}.people-list-head h2{font-size:20px}.people-list-head p{margin-top:4px;color:var(--muted)}.people-list{height:100%;overflow-y:auto;overflow-x:hidden;display:grid;align-content:start;grid-gap:8px;gap:8px;padding-right:4px}.people-list-item{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(150px,.8fr);align-items:center;grid-gap:12px;gap:12px;min-height:62px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface);text-align:left;padding:8px 10px}.people-list-item.selected,.people-list-item:hover{border-color:var(--accent);background:#edf5f2}.people-list-item img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#d5ddd7}.people-list-primary{min-width:0;display:grid;grid-gap:3px;gap:3px}.people-list-item small,.people-list-item strong,.people-list-projects{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.people-list-empty,.people-list-item small,.people-list-projects{color:var(--muted)}.people-list-projects{min-width:0;font-size:13px;text-align:right}.people-list-empty{border:1px dashed var(--line);border-radius:8px;background:var(--surface);padding:18px}.edges,.nodes{position:absolute;inset:0;transform-origin:0 0}.selection-rect{position:absolute;z-index:3;border:1px solid var(--accent);background:rgb(31 122 109/12%)}.nodes,.selection-rect{pointer-events:none}.graph-shell.panning{cursor:-webkit-grabbing;cursor:grabbing}.edge-line{pointer-events:none;stroke:#76958d;stroke-width:2}.edge-hit-line{cursor:pointer;pointer-events:stroke;stroke:transparent;stroke-linecap:round;stroke-width:18}.draft-edge-line{stroke:var(--accent);stroke-dasharray:8 7;stroke-linecap:round;stroke-width:3}.edge.selected .edge-line{stroke:var(--accent);stroke-width:3}.edge-label rect{fill:var(--surface);stroke:var(--line);rx:6}.edge-label text{fill:var(--ink);font-size:13px;font-weight:650;text-anchor:middle;dominant-baseline:middle}.edge-comment-indicator{fill:var(--accent);stroke:var(--surface);stroke-width:2}.edge-label{cursor:text;pointer-events:auto}.edge-label:hover rect{stroke:var(--accent)}.edge-label-empty rect{fill:rgb(255 255 255/58%);stroke-dasharray:4 4}.edge.selected .edge-label rect{stroke:var(--accent)}.edge.selected .edge-label{cursor:-webkit-grab;cursor:grab}.edge.selected .edge-label:active{cursor:-webkit-grabbing;cursor:grabbing}.relation-editor{z-index:4;height:30px;margin:0;border:1px solid var(--accent);border-radius:8px;background:var(--surface);box-shadow:0 0 0 3px rgb(31 122 109/12%);font-size:13px;font-weight:650;line-height:1;text-align:center;outline:none;padding:0 10px}.person-node,.relation-editor{position:absolute;color:var(--ink)}.person-node{display:grid;justify-items:center;align-content:start;pointer-events:auto;width:var(--node-width);height:146px;padding:0;background:transparent;transform:translate(calc(var(--node-width) / -2),calc(var(--avatar-center-y) * -1)) scale(var(--node-scale,1));transform-origin:calc(var(--node-width) / 2) var(--avatar-center-y);cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.connect-port{position:absolute;z-index:2;top:50%;left:50%;width:var(--connect-ring-size);height:var(--connect-ring-size);cursor:crosshair;opacity:0;overflow:visible;pointer-events:none;transform:translate(-50%,-50%);transition:opacity .12s ease}.connect-port circle{fill:none;stroke:rgb(31 122 109/24%);stroke-width:16;pointer-events:stroke;transition:stroke .12s ease,stroke-width .12s ease}.person-node.relation-target .connect-port,.person-node:hover .connect-port{opacity:1}.connect-port:hover circle{stroke:rgb(31 122 109/38%);stroke-width:18}.person-node.relation-target .connect-port circle{stroke:rgb(31 122 109/48%);stroke-width:18}.person-node:hover{background:transparent}.person-node:active{cursor:-webkit-grabbing;cursor:grabbing}.avatar-wrap{position:relative;display:grid;place-items:center;margin:0 auto}.avatar,.avatar-wrap{width:var(--avatar-size);height:var(--avatar-size)}.avatar{position:relative;z-index:1;display:block;box-sizing:border-box;border:4px solid var(--surface);border-radius:50%;overflow:hidden;background:#d5ddd7;box-shadow:var(--shadow)}.avatar img{width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.node-label{margin-top:8px;color:var(--ink);font-size:13px;font-weight:750}.node-label,.node-role{display:block;max-width:128px;overflow:hidden;line-height:1.15;text-align:center;text-overflow:ellipsis;white-space:nowrap}.node-role{margin-top:3px;color:var(--muted);font-size:12px;font-weight:650}.person-node.selected .avatar{border-color:var(--accent);box-shadow:0 0 0 6px rgb(31 122 109/16%),var(--shadow)}.person-node.pending .avatar{border-color:#d59d37}.goal-orb{position:relative;z-index:1;display:block;box-sizing:border-box;width:var(--avatar-size);height:var(--avatar-size);border:4px solid var(--surface);border-radius:50%;background:radial-gradient(circle at center,#ffffff 0 13px,#1f7a6d 14px 18px,transparent 19px),radial-gradient(circle at center,transparent 0 34px,#7ec4b3 35px 39px,transparent 40px),#dcefe8;box-shadow:var(--shadow)}.goal-orb.has-image{overflow:hidden;background:#d5ddd7}.goal-orb img{width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.goal-node.selected .goal-orb{border-color:var(--accent);box-shadow:0 0 0 6px rgb(31 122 109/16%),var(--shadow)}.goal-node.pending .goal-orb{border-color:#d59d37}.panel{position:relative;overflow:auto;border-left:1px solid var(--line);background:var(--surface)}.empty-panel,.goal-form,.person-form,.relation-panel-form{padding:24px}.relation-panel-form h2{margin:0 0 14px;font-size:20px}.relation-summary{display:flex;align-items:center;gap:8px;margin-bottom:18px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#f7faf9;font-size:13px;font-weight:700}.relation-summary span:first-child,.relation-summary span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-panel h2{margin:0 0 8px;font-size:20px}.empty-panel p{margin:0;color:var(--muted);line-height:1.45}.hidden{display:none}.profile-head{align-items:start}.goal-head,.profile-head{display:grid;grid-template-columns:86px 1fr;grid-gap:16px;gap:16px;margin-bottom:18px}.goal-head{align-items:center}.panel-image-button{position:relative;min-height:0;border:0;border-radius:50%;padding:0;cursor:pointer}.panel-image-button,.panel-image-button:hover{background:transparent}.panel-image-button:after{content:"Upload";position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;color:white;background:rgb(29 37 38/58%);font-size:12px;font-weight:750;opacity:0;transition:opacity .14s ease}body[data-language=ru] .panel-image-button:after{content:"Загрузить"}.panel-image-button:focus-visible:after,.panel-image-button:hover:after{opacity:1}.file-input{display:none}.goal-preview{display:block;width:72px;height:72px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at center,#ffffff 0 10px,#1f7a6d 11px 15px,transparent 16px),radial-gradient(circle at center,transparent 0 27px,#7ec4b3 28px 31px,transparent 32px),#dcefe8}.goal-preview.has-image{background:#d5ddd7}.goal-preview img{width:100%;height:100%;display:none;object-fit:cover}.goal-preview.has-image img{display:block}.profile-head img{width:86px;height:86px;display:block;border-radius:50%;object-fit:cover;background:#d5ddd7}label{display:grid;grid-gap:7px;gap:7px;margin-bottom:14px;color:var(--muted);font-size:13px;font-weight:650}fieldset{display:contents;min-width:0;margin:0;padding:0;border:0}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white;outline:none;padding:10px 11px}.field-with-action{display:flex;gap:8px}.field-with-action input{min-width:0}.field-with-action button{flex:0 0 auto}.acquaintance-person-picker{display:grid;grid-gap:7px;gap:7px}textarea{resize:vertical}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgb(31 122 109/12%)}.dialog-actions,.panel-actions{display:flex;gap:10px;justify-content:flex-end}.panel-loading-status{margin:0 0 14px;color:var(--muted);font-size:13px}.danger{color:var(--danger);background:#f4dfdc}.danger:hover{color:white;background:var(--danger)}dialog{width:min(420px,calc(100vw - 28px));border:1px solid var(--line);border-radius:8px;padding:0;background:var(--surface);box-shadow:var(--shadow)}dialog::-webkit-backdrop{background:rgb(29 37 38/28%)}dialog::backdrop{background:rgb(29 37 38/28%)}dialog form{padding:22px}dialog h2,dialog p{margin:0}dialog h2{font-size:20px}dialog p{margin:8px 0 18px;color:var(--muted)}.avatar-dialog{width:min(560px,calc(100vw - 28px))}.ai-tokens-dialog{width:min(620px,calc(100vw - 28px))}.ai-audit-dialog{width:min(760px,calc(100vw - 28px))}.confirm-dialog{width:min(420px,calc(100vw - 28px))}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}.confirm-actions button{width:auto}.settings-dialog{width:min(760px,calc(100vw - 28px))}.settings-layout{min-height:440px;display:grid;grid-template-columns:180px minmax(0,1fr)}.settings-sidebar{display:grid;align-content:start;grid-gap:6px;gap:6px;border-right:1px solid var(--line);background:#f7faf9;padding:14px}.settings-sidebar button{justify-content:flex-start;width:100%;color:var(--ink);background:transparent;text-align:left}.settings-sidebar button.active,.settings-sidebar button:hover{color:white;background:var(--accent)}.settings-content{min-width:0;display:grid;align-content:start;grid-gap:18px;gap:18px;padding:22px}.settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-head h2{margin:0;font-size:20px}.settings-close{display:grid;place-items:center;width:38px;min-width:38px;padding:0}.settings-section{display:grid;grid-gap:14px;gap:14px}.settings-section p{margin:0;color:var(--muted)}.settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-section-head h3{margin:0;font-size:16px}.settings-section-head button{width:auto;min-height:34px;padding:0 12px}.settings-section-head .memory-refresh-button{display:grid;place-items:center;width:34px;min-width:34px;padding:0}.settings-field{display:grid;grid-gap:8px;gap:8px;color:var(--muted);font-size:13px;font-weight:700}.settings-field input,.settings-field select{width:100%;min-height:40px;padding:8px 10px}.settings-checkbox{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:14px;font-weight:700}.settings-checkbox input{width:18px;height:18px;accent-color:var(--accent)}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.account-settings-form .auth-status{max-width:none}.project-sharing-settings{display:grid;grid-gap:20px;gap:20px}.settings-public-link{display:grid;grid-gap:12px;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}.settings-public-link p{margin:0}.project-sharing-form{display:grid;grid-gap:12px;gap:12px}.project-share-list{display:grid;grid-gap:8px;gap:8px}.project-share-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.project-share-row div{display:grid;grid-gap:2px;gap:2px;min-width:0}.project-share-row small,.project-share-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-option small,.project-share-row small{color:var(--muted);font-weight:700}.project-share-row button{width:auto;flex:0 0 auto}.project-memory-settings{display:grid;grid-gap:18px;gap:18px;border-top:1px solid var(--line);padding-top:20px}.project-memory-layout{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);grid-gap:16px;gap:16px}.project-memory-list{display:grid;align-content:start;grid-gap:8px;gap:8px}.project-memory-list button{justify-content:start;text-align:left}.project-memory-list button:not(:first-child){display:grid;grid-gap:2px;gap:2px;color:var(--ink);background:white;border:1px solid var(--line)}.project-memory-list button.active{color:white;background:var(--accent);border-color:var(--accent)}.project-memory-list small{color:inherit;opacity:.72}.project-memory-form{display:grid;grid-gap:12px;gap:12px}.ai-audit-form,.ai-tokens-form{display:grid;grid-gap:14px;gap:14px}.ai-token-created,.ai-tokens-form label{display:grid;grid-gap:8px;gap:8px}.ai-tokens-form input,.ai-tokens-form select,.ai-tokens-form textarea{width:100%}.ai-token-created{border:1px solid var(--line);border-radius:8px;background:#f7faf9;padding:12px}.ai-token-created textarea{min-height:72px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.ai-token-list{max-height:260px}.ai-audit-list,.ai-token-list{display:grid;grid-gap:8px;gap:8px;overflow:auto}.ai-audit-list{max-height:min(520px,58vh)}.ai-token-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:12px;gap:12px;border:1px solid var(--line);border-radius:8px;padding:10px}.ai-token-row span,.ai-token-row strong{display:block}.ai-token-empty,.ai-token-row span,.ai-token-status{color:var(--muted);font-size:12px;font-weight:700}.ai-token-empty,.ai-token-status{margin:0}.ai-audit-row{display:grid;grid-gap:8px;gap:8px;border:1px solid var(--line);border-radius:8px;background:#fbfdfc;padding:10px}.ai-audit-detail-head,.ai-audit-row-main{display:flex;align-items:center;justify-content:space-between;gap:10px}.ai-audit-detail-head{border:1px solid var(--line);border-radius:8px;background:#fbfdfc;padding:10px}.ai-audit-status{border-radius:999px;padding:3px 8px;color:white;font-size:12px;font-weight:800}.ai-audit-status.ok{background:var(--accent)}.ai-audit-status.error{background:var(--danger)}.ai-audit-metadata{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px 12px;gap:8px 12px;margin:0}.ai-audit-metadata.expanded{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-audit-metadata dd,.ai-audit-metadata dt{margin:0}.ai-audit-metadata dt{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.ai-audit-metadata dd{overflow:hidden;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.ai-audit-row-actions{display:flex;justify-content:flex-end}.ai-audit-row-actions button{min-height:34px;padding:7px 12px}.ai-audit-request-panel{display:grid;grid-gap:8px;gap:8px}.ai-audit-request-panel h3{margin:0;font-size:12px;font-weight:800}.ai-audit-request-panel pre{max-height:min(420px,44vh);margin:0;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#f7faf9;padding:10px;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.avatar-drop-zone{display:grid;justify-items:center;grid-gap:10px;gap:10px;margin:18px 0;border:2px dashed var(--line);border-radius:8px;background:#f7faf9;color:var(--muted);font-size:13px;font-weight:700;outline:none;padding:18px}.avatar-drop-zone.drag-over,.avatar-drop-zone:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgb(31 122 109/12%)}.avatar-drop-zone img{width:112px;height:112px;border-radius:50%;object-fit:cover;background:#d5ddd7}.avatar-tools{display:grid;grid-gap:16px;gap:16px}.avatar-tools section{display:grid;grid-gap:10px;gap:10px}.avatar-tools h3{margin:0;color:var(--muted);font-size:13px}.custom-emoji-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:8px;gap:8px}.custom-emoji-row input{font-size:22px;text-align:center}.emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:8px;gap:8px;max-height:154px;overflow:auto}.emoji-grid button{min-height:42px;padding:0;color:var(--ink);background:#edf5f2;font-size:22px}.emoji-grid button:hover{background:#dcefe8}@media (max-width:820px){:root{--node-width:116px;--avatar-size:82px;--connect-ring-size:108px}.topbar{align-items:stretch;display:grid;grid-template-columns:42px minmax(120px,1fr) auto auto;grid-gap:10px;gap:10px;position:relative}.brand{min-width:0}.topbar h1{font-size:22px}.topbar p{font-size:14px}.actions,.auth-form,.project-form,.view-switch{width:100%}.brand{grid-column:1/-1}.account-menu-button{display:grid;grid-column:1/2;order:1;place-items:center;width:42px;min-height:42px;padding:0}.view-switch{grid-column:2/4;order:2}.mobile-panel-button{display:inline-grid;grid-column:4/5;order:3;place-items:center;min-width:42px;padding:0 12px;color:var(--accent-dark);background:#dcefe8}.mobile-panel-button.has-selection{color:white;background:var(--accent)}.actions{grid-column:1/-1;order:4}.auth-form{grid-column:1/-1;order:5}.actions button,.view-switch button{flex:1 1 auto}.auth-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.auth-form.signed-in{grid-template-columns:minmax(0,1fr) auto}.auth-status{max-width:none}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(520px,62vh) auto}.graph-shell,.people-list-shell{min-height:520px}.panel{position:fixed;z-index:20;right:0;bottom:0;left:0;max-height:min(78dvh,680px);border-top:1px solid var(--line);border-left:0;border-radius:14px 14px 0 0;box-shadow:0 -18px 50px rgb(36 41 38/18%);transform:translateY(105%);transition:transform .18s ease}.app.mobile-panel-open .panel{transform:translateY(0)}.app.mobile-panel-open:after{content:"";position:fixed;z-index:19;inset:0;background:rgb(29 37 38/24%)}.mobile-panel-close{position:-webkit-sticky;position:sticky;z-index:2;top:0;left:auto;float:right;display:grid;place-items:center;width:40px;min-height:40px;margin:10px 10px 0 0;border-radius:50%;color:var(--ink);background:#edf5f2;font-size:26px;line-height:1}.mobile-panel-close:hover{color:white;background:var(--accent)}}@media (max-width:560px){:root{--node-width:108px;--avatar-size:76px;--connect-ring-size:100px}body{min-width:320px}.topbar{grid-template-columns:minmax(0,1fr) 42px;gap:8px;padding:8px 10px}.brand{display:none}.view-switch{grid-column:1/2;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 42px;align-self:end;grid-gap:0;gap:0;border:0;border-radius:0;background:transparent;padding:0}.mobile-panel-button,.view-switch>button:not(.project-picker-button){width:44px;min-width:44px;min-height:38px;padding:0}.mobile-panel-button{grid-column:auto}.settings-button{grid-column:2/3;grid-row:1;width:42px;min-width:42px;min-height:42px;padding:0}#addGoalBtn .button-label,#addPersonBtn .button-label,#addPersonFromDbBtn .button-label,#connectBtn .button-label,#peopleViewBtn .button-label,.mobile-panel-button .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.project-picker{width:100%;min-width:0}.project-picker-button{flex:1 1 auto;width:auto;max-width:none;justify-content:flex-start;border-left:1px solid var(--line);border-bottom-color:var(--line);border-top:1px solid var(--line);border-right:0;border-bottom:1px solid var(--surface);border-radius:10px 0 0 0;padding:0 8px}.project-picker-button,.view-switch .project-dropdown-button{height:42px;min-height:42px;box-shadow:inset 0 3px 0 var(--accent)}.view-switch .project-dropdown-button{flex-basis:36px;width:36px;border:1px solid var(--line);border-bottom-color:var(--surface);border-radius:0 10px 0 0;padding:0}#peopleViewBtn{height:42px;border:1px solid var(--line);border-bottom:0;border-left:0;border-radius:10px 10px 0 0}#peopleViewBtn:not(.active){color:var(--muted);background:#eef3f1}.project-dropdown-button:not(.active),.project-picker-button:not(.active){color:var(--muted);border-bottom-color:var(--line);background:#eef3f1;box-shadow:none}.view-switch button.active{color:var(--accent-dark);background:var(--surface)}.project-name-label{flex:1 1 auto;width:0;text-align:left}.project-dropdown{right:auto;left:0;width:min(330px,calc(100vw - 20px));min-width:0;max-height:min(360px,calc(100dvh - 130px));padding:8px}.project-dropdown .project-option{width:100%;min-width:0;min-height:44px;justify-content:flex-start;border-radius:8px;font-size:15px;padding:0 12px}.project-option.new-project-option{margin-top:6px;border-top:0}.actions{grid-column:1/-1;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.actions:after{content:"";flex:1 1 auto}.actions button{flex:0 0 auto;min-width:0;padding:0 10px}.people-actions{overflow-x:visible}.people-actions:after{display:none}.people-search-field{flex:1 1 auto;min-width:0;max-width:none;height:42px}.people-filter-field{flex:0 1 190px;min-width:150px;height:42px}#addGoalBtn,#addPersonBtn,#undoBtn{width:42px;padding:0}#addPersonFromDbBtn,#connectBtn{min-width:42px;width:42px;padding:0}.auth-form,.auth-form button,.auth-form input,.project-form,.project-form select{width:100%}.auth-form,.project-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.auth-form{position:absolute;z-index:30;top:calc(100% + 8px);left:10px;right:10px;display:none;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);padding:10px}.topbar.account-menu-open .auth-form{display:grid}.auth-form.signed-in{grid-template-columns:1fr}.auth-status{display:none}.auth-form.signed-in #signOutBtn{width:100%}.settings-dialog{width:min(420px,calc(100vw - 20px))}.settings-layout{min-height:min(560px,calc(100dvh - 40px));grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.settings-sidebar{grid-template-columns:repeat(3,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--line)}.settings-sidebar button{justify-content:center;padding:0 8px}.settings-content{padding:16px}.project-memory-layout{grid-template-columns:1fr}.project-memory-list{max-height:180px;overflow:auto}.workspace{grid-template-rows:minmax(calc(100dvh - 146px),1fr)}.graph-shell,.people-list-shell{height:calc(100dvh - 146px);min-height:calc(100dvh - 146px)}.empty-panel,.goal-form,.people-list-shell,.person-form,.relation-panel-form{padding:16px}.people-list-item{grid-template-columns:46px minmax(0,1fr)}.people-list-projects{display:none}.goal-head,.profile-head{grid-template-columns:72px minmax(0,1fr);gap:12px}.goal-preview,.goal-preview img,.panel-image-button img{width:72px;height:72px}.dialog-actions,.panel-actions{display:grid;grid-template-columns:1fr}.emoji-grid{grid-template-columns:repeat(5,1fr)}}