:root{--paper:#f4f4ef;--white:#fff;--ink:#242820;--muted:#73796e;--line:#dfe2d8;--dark:#20231f;--accent:#dc602d;--accent-soft:#fff0e7;--green:#49674c;--green-soft:#eaf1e8;--red:#a33c36;--red-soft:#faeae7;--blue:#42677b;--blue-soft:#eaf1f4;--radius:16px;--shadow:0 12px 42px #20231f12;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible{outline:3px solid #de8f57}button:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,3.5vw,42px);letter-spacing:-1.4px;line-height:1.12;font-weight:650}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:17px;line-height:1.35}p{line-height:1.6}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:750;color:var(--muted)}.brand{font-size:31px;line-height:1;font-weight:900;letter-spacing:-1.4px;color:#fff}.brand span{color:#f1783e;margin-left:3px}.brand-dark{color:var(--dark)}.brand small{font-size:10px;font-weight:600;letter-spacing:1.5px;display:block;color:#adb4a7;margin-top:10px}.skip{position:fixed;top:-100px;left:12px;background:var(--ink);color:white;padding:12px;z-index:1000}.skip:focus{top:12px}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px}.spinner{width:25px;height:25px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:100%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;background:var(--dark);color:#d6dacd;padding:33px 23px 22px;z-index:30}.sidebar .brand{padding:3px 14px 40px}.side-nav{display:grid;gap:6px}.nav-link{display:flex;gap:13px;align-items:center;border:0;background:transparent;color:#bdc5b6;text-align:left;border-radius:10px;padding:13px 14px;font-size:14px;font-weight:550}.nav-link:hover{background:#ffffff09;color:#fff}.nav-link.active{background:#343b30;color:#fff}.nav-link.active .ico{color:#f3925c}.ico{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-count{margin-left:auto;min-width:20px;font-size:11px;padding:2px 6px;border-radius:5px;background:#ffffff16;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff13;padding-top:20px;display:grid;gap:15px}.identity{display:flex;align-items:center;gap:11px;min-width:0}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#414c38;color:#e6ebdf;font-size:13px;font-weight:700;flex:none}.identity-label{min-width:0}.identity-label b{display:block;color:#fff;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.identity-label span{font-size:11px;color:#9ca792;display:block;margin-top:4px}.sidebar-site{font-size:11px;color:#99a18f;padding-left:2px;display:flex;justify-content:space-between;align-items:center}.workspace{grid-column:2;min-width:0}.topbar{height:83px;display:flex;justify-content:space-between;align-items:center;padding:0 44px;border-bottom:1px solid var(--line);gap:20px;background:#f7f7f2}.topbar-context{font-size:12px;display:flex;gap:12px;align-items:center}.project-select{border:0;background:transparent;color:var(--ink);font-size:13px;font-weight:600;max-width:340px;padding:10px 28px 10px 4px}.topbar-right{display:flex;align-items:center;gap:13px}.topbar-date{font-size:12px;color:var(--muted)}.mobile-brand,.mobile-nav{display:none}.main{max-width:1600px;margin:auto;padding:38px 44px 50px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}.page-head .eyebrow{margin-bottom:11px}.page-head p{font-size:14px;color:var(--muted);margin-top:11px;max-width:640px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--line);border-radius:9px;padding:11px 16px;background:var(--white);color:var(--ink);font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.35;min-height:41px}.btn:hover{background:#f9faf6;border-color:#c3cabc}.btn-primary{background:var(--accent);border-color:var(--accent);color:white}.btn-primary:hover{background:#c85223;border-color:#c85223}.btn-dark{background:var(--dark);color:#fff;border-color:var(--dark)}.btn-dark:hover{background:#39432e;border-color:#39432e}.btn-soft{background:var(--green-soft);border-color:transparent;color:var(--green)}.btn-soft:hover{background:#e0eada}.btn-quiet{background:transparent;border-color:transparent;color:var(--muted)}.btn-quiet:hover{background:#e9ece3;border-color:transparent;color:var(--ink)}.btn-small{font-size:12px;padding:7px 11px;min-height:34px}.btn-danger{color:var(--red);background:var(--red-soft);border-color:transparent}.btn-block{width:100%}.icon-button{width:35px;height:35px;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;display:inline-grid;place-items:center;color:var(--muted)}.icon-button:hover{color:var(--ink);background:var(--paper)}
.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:27px}.stat{border:1px solid var(--line);background:var(--white);border-radius:var(--radius);padding:22px 24px;text-align:left;position:relative}.stat-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.stat-number{font-size:34px;line-height:1.1;font-weight:650;letter-spacing:-1px;margin-top:12px;display:block}.stat small{position:absolute;right:22px;bottom:25px;color:var(--muted)}.stat .dot{width:7px;height:7px}.grid-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:24px;align-items:start}.stack{display:grid;gap:21px}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-pad{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 18px;gap:16px}.panel-head h2{font-size:17px;font-weight:650}.panel-head .eyebrow{font-size:10px;letter-spacing:1px}.panel-footer{border-top:1px solid var(--line);padding:12px 22px}.count{font-size:12px;color:var(--muted);font-weight:500;margin-left:6px}.work-row{padding:17px 24px;display:flex;gap:13px;align-items:flex-start;border-top:1px solid #edf0e7;cursor:pointer;text-align:left;width:100%;background:none;color:inherit;border-left:0;border-right:0;border-bottom:0}.work-row:hover{background:#fafbf7}.work-mark{width:30px;height:30px;background:var(--paper);border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;flex:none;color:var(--muted);margin-top:2px}.work-mark .ico{width:15px;height:15px}.work-copy{min-width:0;flex:1}.work-copy b{font-size:14px;font-weight:600;line-height:1.45;display:block}.work-copy p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}.work-copy .meta{margin-top:8px}.work-end{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:none}.meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}.meta-divider:before{content:'·';margin-right:7px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.3;font-weight:650;letter-spacing:.1px;border-radius:5px;padding:5px 7px;background:#edf0e8;color:#68715e;white-space:nowrap}.badge-doing{background:var(--blue-soft);color:var(--blue)}.badge-blocked,.badge-rejected,.badge-failed{background:var(--red-soft);color:var(--red)}.badge-review,.badge-draft,.badge-processing{background:var(--accent-soft);color:#a55f2a}.badge-accepted,.badge-approved,.badge-draft_ready{background:var(--green-soft);color:var(--green)}.dot{width:6px;height:6px;background:currentColor;border-radius:50%;display:inline-block}.empty{padding:33px 24px;text-align:center;color:var(--muted)}.empty .ico{width:27px;height:27px;color:#a0ac92;margin-bottom:11px}.empty h3{font-size:14px;color:#57614d;font-weight:600;margin-bottom:7px}.empty p{font-size:12px;max-width:360px;margin:auto;line-height:1.65}.empty .btn{margin-top:17px}.notice{background:#ecf0e5;border:1px solid #dbe3d1;border-radius:11px;padding:14px 17px;color:#57624b;font-size:12px;line-height:1.65;display:flex;gap:11px;margin-bottom:22px}.notice .ico{margin-top:1px;width:17px;height:17px}.notice-warn{background:var(--accent-soft);border-color:#f0d4bd;color:#86512b}.notice-error{background:var(--red-soft);border-color:#e7c1bb;color:var(--red)}.notice p{line-height:1.6}.notice button{margin-left:auto}.assistant-card{background:#e8ecdf;border-color:#d8dfcb;padding:23px;position:relative}.assistant-title{display:flex;align-items:center;gap:10px}.spark{width:35px;height:35px;border-radius:10px;background:#fff9;display:grid;place-items:center;color:#566743}.assistant-card h2{font-size:18px}.assistant-card>p{font-size:12px;color:#6a735d;margin:12px 0 18px}.suggestion{width:100%;border:0;background:#fff9;border-radius:8px;padding:12px 13px;text-align:left;font-size:12px;font-weight:500;color:#45533a;line-height:1.5;display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.suggestion:hover{background:#fff}.assistant-card .btn{margin-top:9px}.progress-track{display:flex;gap:4px;margin:20px 0 12px}.progress-phase{height:5px;flex:1;background:#e3e8dc;border-radius:3px}.progress-phase.done{background:#80956b}.phase-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);gap:7px}.goal-list{list-style:none;padding:0;margin:17px 0 0}.goal-list li{display:flex;gap:10px;align-items:start;font-size:12px;line-height:1.6;margin-top:9px;color:#5d6752}.goal-list .ico{width:15px;height:15px;color:#8b9a7c;margin-top:2px}
.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:19px;flex-wrap:wrap}.segmented{display:inline-flex;border:1px solid var(--line);padding:4px;border-radius:9px;background:#ebeee5;gap:2px}.segmented button{border:0;background:transparent;border-radius:6px;padding:7px 13px;color:var(--muted);font-size:12px;min-height:31px;display:flex;gap:6px;align-items:center}.segmented button.active{background:white;box-shadow:0 1px 4px #22341610;color:var(--ink)}.segmented .ico{width:15px;height:15px}.search{position:relative;min-width:180px;max-width:310px;flex:1}.search .ico{position:absolute;left:12px;top:12px;width:16px;height:16px;color:var(--muted)}.search input{padding-left:37px}.field{display:grid;gap:7px;margin-bottom:17px}.field label,.field-label{font-size:12px;font-weight:650;color:#58624e}.field input,.field select,.field textarea,.search input,.control{width:100%;border:1px solid #d8decf;border-radius:8px;background:white;padding:11px 12px;color:var(--ink);font-size:13px;line-height:1.45;min-height:42px}.field textarea{resize:vertical;min-height:95px}.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{outline:2px solid #dbaa83;border-color:#bb885b}.field small{font-size:11px;color:var(--muted);line-height:1.5}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row>.field{min-width:0}.check{font-size:12px;line-height:1.65;display:flex;gap:9px;align-items:flex-start;color:#57614e;cursor:pointer}.check input{accent-color:var(--green);width:16px;height:16px;flex:none;margin-top:3px}.check+.check{margin-top:10px}.form-error{padding:11px 13px;color:var(--red);background:var(--red-soft);border-radius:8px;font-size:12px;line-height:1.6;margin:13px 0}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:23px;flex-wrap:wrap}.board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:13px;overflow-x:auto;padding-bottom:12px}.column{background:#ebeee6;border-radius:12px;padding:13px;min-height:235px}.column-head{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:650;margin-bottom:15px}.column-count{margin-left:auto;font-size:10px;color:var(--muted)}.result-card{background:#fff;border:1px solid #dfe4d6;border-radius:10px;padding:14px;margin-bottom:10px;cursor:pointer;display:block;text-align:left;width:100%;color:var(--ink)}.result-card:hover{border-color:#9faa8f;box-shadow:0 4px 12px #34452608}.result-card h3{font-size:13px;font-weight:600}.result-card p{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0}.result-card .meta{margin-top:12px;font-size:10px}.column-empty{font-size:11px;text-align:center;color:#8e9784;margin-top:27px}.details-list{margin:0;display:grid;gap:15px}.details-list>div{display:grid;grid-template-columns:110px 1fr;gap:15px}.details-list dt{color:var(--muted);font-size:12px}.details-list dd{margin:0;font-size:13px;line-height:1.6}.rich-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.75}.section-rule{margin-top:24px;padding-top:23px;border-top:1px solid var(--line)}.section-rule h3{margin-bottom:13px}.link-list{display:grid;gap:8px}.source-link{display:flex;gap:8px;align-items:center;color:var(--blue);font-size:12px;line-height:1.5;padding:8px 10px;background:#edf3f5;border-radius:7px;overflow-wrap:anywhere}.source-link .ico{width:14px;height:14px}.history{margin:0;padding-left:15px;color:var(--muted);font-size:11px;line-height:1.7}.history li{margin-bottom:9px}.attachment{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #ecf0e6}.attachment:last-child{border:0}.attachment .file-icon{width:37px;height:42px;background:#edf0e7;border-radius:8px;color:#849571;display:grid;place-items:center;flex:none}.attachment .work-copy b{font-size:13px}.attachment .work-copy p{margin-top:3px;font-size:11px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 15px}.section-title h2{font-size:18px}.split-panels{display:grid;grid-template-columns:1fr 1fr;gap:21px}.meeting-card{padding:21px 23px}.meeting-card+.meeting-card{border-top:1px solid var(--line)}.meeting-card h3{font-size:15px;margin-bottom:8px}.meeting-card .actions{margin-top:15px}.meeting-card p{font-size:12px;color:var(--muted);margin-top:8px}.meeting-state{margin-left:auto}.materials-tabs{margin-bottom:22px}.chat-list{display:grid;gap:12px}.chat-card{background:#fff;border:1px solid var(--line);padding:20px;border-radius:13px;display:flex;align-items:center;gap:15px}.chat-card .file-icon{color:var(--green);background:var(--green-soft);border-radius:12px;padding:10px}.chat-card .work-copy b{font-size:14px}.chat-card .actions{flex:none}.message{padding:15px 17px;border:1px solid var(--line);border-radius:11px;margin-bottom:12px;background:#fafbf8}.message header{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:var(--muted);font-size:11px}.message header b{color:#53624b}.message .rich-text{font-size:12px;line-height:1.65}.message footer{display:flex;gap:8px;align-items:center;margin-top:12px}.message footer a{font-size:11px;color:var(--blue)}.member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:15px}.member-card{padding:21px;background:#fff;border:1px solid var(--line);border-radius:14px}.member-card .identity{margin-bottom:15px}.member-card .identity b{color:var(--ink)}.member-card .identity span{color:var(--muted)}.member-card .avatar{background:var(--green-soft);color:var(--green)}.member-card p{font-size:12px;color:var(--muted);margin:11px 0}.member-card .btn{margin-top:7px}.grant-list{border:1px solid var(--line);border-radius:10px;max-height:220px;overflow:auto;padding:14px;margin-top:9px}.grant-list .check{font-size:12px}.profile-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);gap:22px}.profile-info{font-size:13px;line-height:1.8;color:var(--muted)}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:20px 0}.role-option{border:1px solid var(--line);background:#fff;border-radius:10px;padding:15px;display:flex;align-items:flex-start;gap:10px;cursor:pointer}.role-option:has(input:checked){border-color:#719059;background:#f1f5eb;box-shadow:0 0 0 1px #719059}.role-option input{margin:3px 0 0;accent-color:var(--green);flex:none}.role-option b{font-size:13px;line-height:1.5;display:block}.role-option span{font-size:11px;color:var(--muted);display:block;line-height:1.55;margin-top:5px}.specializations{background:#eef2e8;border-radius:11px;padding:17px;margin-bottom:18px}.specializations h3{font-size:13px;margin-bottom:12px}.onboarding{max-width:860px;margin:0 auto;padding:40px 30px}.onboarding .brand{margin-bottom:42px}.onboarding h1{font-size:34px}.onboarding>.muted{margin:13px 0 25px;font-size:14px}.onboarding .form-actions{justify-content:space-between;align-items:center}.onboarding .form-actions p{max-width:450px;font-size:11px;color:var(--muted)}.role-intro{display:flex;gap:9px;align-items:center;margin-bottom:17px}.step{padding:5px 8px;border-radius:5px;background:#e5ebdc;color:#637250;font-size:10px;font-weight:700;letter-spacing:1px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--dark);color:#e8eddf;padding:48px 62px;display:flex;flex-direction:column;min-height:100vh;position:relative;overflow:hidden}.auth-story:before{content:'';position:absolute;width:400px;height:400px;border:1px solid #6f81572c;border-radius:50%;right:-180px;top:210px}.auth-story:after{content:'';position:absolute;width:570px;height:570px;border:1px solid #6f81571f;border-radius:50%;right:-265px;top:125px}.auth-story-content{margin:auto 0;max-width:470px;padding:60px 0;position:relative;z-index:1}.auth-story h1{font-size:clamp(38px,4.8vw,65px);line-height:1.08;letter-spacing:-2px;margin:20px 0 23px;font-weight:600}.auth-story h1 em{font-style:normal;color:#f59b65}.auth-story p{font-size:14px;color:#aeb9a3;max-width:375px;line-height:1.8}.auth-story .eyebrow{color:#9ba98d}.auth-phases{display:flex;gap:7px;margin-top:38px;align-items:center}.auth-phase{font-size:10px;color:#bcc7b2;border:1px solid #ffffff1c;padding:9px 11px;border-radius:7px}.auth-phases .ico{width:12px;color:#707f61}.auth-story-footer{display:flex;justify-content:space-between;color:#88947b;font-size:11px;position:relative;z-index:1}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px 35px}.auth-form-card{width:100%;max-width:390px}.auth-form-card h2{font-size:27px;letter-spacing:-.7px;margin-bottom:10px}.auth-form-card>p{font-size:13px;color:var(--muted);margin-bottom:26px}.auth-mode{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:23px}.auth-mode button{border:0;border-bottom:2px solid transparent;background:none;font-size:13px;padding:12px 0;color:var(--muted);font-weight:600}.auth-mode button.active{border-color:var(--accent);color:var(--ink)}.auth-form-card .btn{min-height:45px}.auth-divider{display:flex;gap:13px;align-items:center;margin:24px 0;color:#8b9481;font-size:11px}.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:var(--line)}.telegram-button{background:#eaf1f4;color:#34677f;border-color:#d3e0e6}.telegram-button:hover{background:#deebf1;border-color:#c6d9e3}.auth-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:22px}.telegram-wait{padding:20px;background:#eff4f7;border-radius:11px;text-align:center;margin:17px 0}.telegram-wait p{font-size:12px;color:#5d7986;margin:12px 0}.telegram-wait .spinner{margin:17px auto 0}.tg-timer{display:block;font-size:11px;color:var(--muted);margin-top:10px}
dialog{border:0;padding:0;border-radius:19px;width:min(720px,calc(100vw - 36px));max-height:calc(100dvh - 48px);background:var(--white);color:var(--ink);box-shadow:0 30px 120px #17200d50;overflow:auto}dialog::backdrop{background:#11170f72;backdrop-filter:blur(3px)}.dialog-head{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;padding:25px 28px 21px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fffffff5;backdrop-filter:blur(12px);z-index:5}.dialog-head h2{font-size:22px;line-height:1.4;overflow-wrap:anywhere}.dialog-head .eyebrow{font-size:9px;margin-bottom:8px}.dialog-body{padding:25px 28px 28px}.dialog-body>.notice{margin-bottom:20px}.dialog-body .section-rule:first-child{margin-top:0;border-top:0;padding-top:0}.dialog-back{border:0;background:none;padding:0;color:var(--muted);display:inline-flex;font-size:12px;gap:6px;align-items:center;margin-bottom:13px}.dialog-back .ico{width:14px;height:14px}.dialog-subheading{font-size:12px;color:var(--muted);margin:9px 0 0}.dialog-sticky-actions{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(10px);padding:16px 28px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:14px 21px;max-width:calc(100vw - 28px);border-radius:11px;background:#2f3d27;color:#fff;z-index:200;box-shadow:0 8px 30px #223b272d;font-size:13px;line-height:1.5}.toast.error{background:#963f33}.assistant-answer{border:1px solid #dce5d2;border-radius:11px;background:#f4f7ed;padding:20px;margin-top:22px}.assistant-answer .rich-text{font-size:13px}.assistant-answer .eyebrow{margin-bottom:11px;font-size:9px;color:var(--green)}.assistant-sources{margin-top:18px}.assistant-sources summary{font-size:11px;color:var(--muted);cursor:pointer;margin-bottom:10px}.assistant-input{display:flex;gap:10px;align-items:flex-end}.assistant-input .field{flex:1;margin-bottom:0}.assistant-input textarea{min-height:92px}.assistant-input>.btn{margin-bottom:1px}.assistant-context{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}.assistant-context select{flex:1;min-width:160px;font-size:12px}.mini-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.mini-suggestions button{font-size:11px;background:#eef2e7;border:1px solid #e2e7da;color:#627153;border-radius:7px;padding:7px 9px}.recording-box{background:#f2f5ed;border:1px solid #dee6d4;border-radius:13px;padding:20px;margin:16px 0}.recording-status{display:flex;gap:10px;align-items:center;margin-bottom:17px;font-size:13px;font-weight:600}.recording-dot{width:8px;height:8px;background:#b34f42;border-radius:50%;animation:blink 1.4s ease-in-out infinite}@keyframes blink{50%{opacity:.4}}.recording-time{margin-left:auto;font-variant-numeric:tabular-nums;font-size:24px;letter-spacing:-.5px}.recording-box audio{width:100%;height:38px;margin:14px 0 8px}.level-track{height:6px;background:#dce4d2;border-radius:4px;overflow:hidden;margin:14px 0}.level-fill{width:0;height:100%;background:#7e9d60;transition:width .07s linear}.recording-hint{font-size:11px;line-height:1.6;color:var(--muted);margin-top:12px}.audio-preview{width:100%;margin:8px 0 12px;height:42px}.proposal{border:1px solid var(--line);border-radius:10px;padding:17px;margin-top:12px}.proposal h3{font-size:14px}.proposal p{font-size:12px;line-height:1.65;margin-top:8px;color:var(--muted)}.proposal blockquote{padding:10px 13px;margin:12px 0;background:#f3f5ee;border-left:2px solid #a3b18e;font-size:11px;color:#657254;line-height:1.65}.proposal .actions{margin-top:13px}.transcript-box{max-height:400px;overflow:auto;border:1px solid var(--line);padding:17px;border-radius:10px;background:#fafbf7}.segment{display:grid;grid-template-columns:54px 1fr;gap:10px;margin-bottom:11px;font-size:12px;line-height:1.7}.segment button{border:0;background:transparent;color:var(--blue);font-size:11px;padding:0;align-self:start;text-align:left;font-variant-numeric:tabular-nums}.proposal-edit{background:#f4f6f0;border-radius:10px;padding:16px;margin-bottom:13px}.proposal-edit .field:last-child{margin-bottom:0}.device-row{display:flex;gap:9px;align-items:flex-end}.device-row .field{margin-bottom:0;flex:1}.text-link{border:0;padding:0;color:var(--blue);background:none;font-size:12px;text-decoration:underline;text-underline-offset:3px}.tiny-note{font-size:11px;color:var(--muted);line-height:1.7}.noscript{padding:20px;text-align:center}.loading-inline{display:flex;align-items:center;justify-content:center;gap:12px;padding:30px;color:var(--muted);font-size:12px}.board-wrap{min-width:0}.danger-text{color:var(--red)}.overdue{color:var(--red)}.word-wrap{overflow-wrap:anywhere}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.focus-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eaf0e0;padding:15px 18px;border-radius:11px;margin-bottom:20px}.focus-banner p{font-size:12px;color:#637153}.focus-banner b{font-size:13px;display:block;margin-bottom:2px}.toggle-line{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:17px 0}.toggle-line p{font-size:12px;color:var(--muted);margin-top:5px}.toggle-line b{font-size:13px}.pill-toggle{appearance:none;width:38px;height:22px;border-radius:20px;background:#d6ddce;position:relative;cursor:pointer;transition:background .2s;flex:none}.pill-toggle:after{content:'';position:absolute;width:16px;height:16px;background:#fff;left:3px;top:3px;border-radius:50%;transition:transform .2s}.pill-toggle:checked{background:#78905e}.pill-toggle:checked:after{transform:translateX(16px)}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-grid .check+.check{margin-top:0}
@media(min-width:1600px){.main{padding-top:44px}.topbar{padding-left:max(44px,calc((100vw - 1600px)/2))}}
@media(max-width:1190px){.shell{grid-template-columns:196px minmax(0,1fr)}.sidebar{width:196px;padding:27px 16px 20px}.sidebar .brand{padding:3px 10px 34px}.nav-link{padding:12px 10px;font-size:13px;gap:10px}.main{padding:30px 27px 40px}.topbar{padding:0 27px}.topbar-date{display:none}.grid-main{grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:18px}.stat{padding:20px}.stat small{position:static;display:block;margin-top:9px;font-size:10px}.stat-number{font-size:30px}.work-row{padding:16px 18px}.panel-head{padding:20px 18px 16px}.auth-story{padding:40px}.auth-phases{flex-wrap:wrap}.board{grid-template-columns:repeat(5,210px)}}
@media(max-width:950px){.grid-main{grid-template-columns:1fr}.stack-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.split-panels{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.topbar-context>span{display:none}.project-select{max-width:300px}.auth-story{padding:34px}.auth-story h1{font-size:44px}.auth-form-wrap{padding:30px}.page-head h1{font-size:33px}.page-head{gap:14px}.page-head .btn{font-size:12px;padding:10px 12px}.stat-row{gap:11px}.stat{padding:17px}.stat-label{font-size:11px;gap:5px}.auth-phase{font-size:9px;padding:8px}.auth-story-footer span:last-child{display:none}}
@media(max-width:720px){.shell{display:block}.sidebar{display:none}.workspace{display:block}.mobile-brand{display:block;font-size:22px;flex:none}.topbar{height:auto;min-height:67px;padding:13px 19px;position:sticky;top:0;background:#f4f4eff5;backdrop-filter:blur(15px);z-index:20;gap:14px}.topbar-context{flex:1;justify-content:flex-end;min-width:0}.project-select{max-width:100%;font-size:12px;min-width:0;text-overflow:ellipsis;padding-right:17px}.topbar-right{gap:0}.topbar-right>.btn{display:none}.topbar-right>.icon-button{width:31px;height:31px;border:0;background:transparent}.main{padding:26px 19px calc(100px + var(--safe-bottom))}.page-head{margin-bottom:22px;align-items:flex-start}.page-head h1{font-size:30px;letter-spacing:-1px}.page-head .eyebrow{font-size:9px;margin-bottom:9px}.page-head p{font-size:12px;margin-top:10px}.page-head .actions{justify-content:flex-end;max-width:130px}.page-head .btn{font-size:11px;padding:9px 11px;min-height:37px}.page-head .btn .ico{width:15px;height:15px}.stat-row{gap:9px;margin-bottom:21px}.stat{padding:15px 12px;border-radius:12px}.stat-label{font-size:10px;gap:5px;line-height:1.45}.stat-number{font-size:27px;margin-top:10px}.stat small{font-size:9px;line-height:1.5;margin-top:7px}.stat .dot{display:none}.grid-main{gap:18px}.stack-aside{grid-template-columns:1fr}.panel-head{padding:18px 18px 16px}.panel-head h2{font-size:16px}.panel-pad{padding:20px}.work-row{padding:15px 17px;gap:10px}.work-copy b{font-size:13px}.work-copy p{font-size:11px}.work-end{max-width:95px}.work-end .badge{font-size:9px;padding:4px 5px}.meta{font-size:10px}.work-mark{width:26px;height:26px}.assistant-card{padding:20px}.assistant-card h2{font-size:17px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid var(--line);z-index:40;padding:7px 7px calc(7px + var(--safe-bottom));box-shadow:0 -3px 20px #263d1110}.mobile-nav .nav-link{display:flex;flex-direction:column;gap:5px;padding:7px 2px;font-size:9px;color:#818977;position:relative;align-items:center;text-align:center;line-height:1.2}.mobile-nav .nav-link.active{color:#ab5c2f;background:#fbf1e8}.mobile-nav .nav-link .ico{width:20px;height:20px}.mobile-nav .nav-count{position:absolute;right:calc(50% - 20px);top:3px;margin:0;font-size:8px;min-width:13px;height:13px;padding:1px 4px;color:white;background:var(--accent)}.toolbar{gap:10px}.search{min-width:140px;max-width:100%;order:3;flex-basis:100%}.segmented button{padding:6px 10px;font-size:11px}.board{grid-template-columns:repeat(5,235px);margin-right:-19px;padding-right:19px}.column{min-height:280px}.notice{font-size:11px;padding:12px 14px;margin-bottom:18px}.notice .ico{width:15px;height:15px}.auth-page{display:block}.auth-story{min-height:auto;padding:24px 24px 28px}.auth-story .brand{font-size:28px}.auth-story-content{padding:32px 0 0;margin:0}.auth-story h1{font-size:37px;letter-spacing:-1.2px;margin:14px 0 15px;max-width:350px}.auth-story p{font-size:12px;max-width:350px}.auth-story .eyebrow{font-size:9px}.auth-phases,.auth-story-footer{display:none}.auth-story:before{width:250px;height:250px;right:-110px;top:30px}.auth-story:after{width:390px;height:390px;right:-180px;top:-40px}.auth-form-wrap{padding:30px 24px 40px}.auth-form-card{max-width:430px}.auth-form-card h2{font-size:24px}.auth-form-card>p{font-size:12px;margin-bottom:18px}.auth-mode{margin-bottom:20px}.onboarding{padding:27px 21px 45px}.onboarding .brand{margin-bottom:30px}.onboarding h1{font-size:29px}.onboarding>.muted{font-size:13px}.role-grid{gap:9px;grid-template-columns:1fr}.role-option{padding:13px}.role-option span{font-size:11px;margin-top:3px}.onboarding .form-actions{gap:18px}.onboarding .form-actions .btn{width:100%}.onboarding .form-actions p{order:2}.role-option b{font-size:13px}.chat-card{padding:16px;gap:11px;flex-wrap:wrap}.chat-card .work-copy{flex-basis:calc(100% - 65px)}.chat-card .actions{margin-left:0}.meeting-card{padding:19px}.meeting-card .actions .btn{font-size:11px}.meeting-card p{font-size:11px}.materials-tabs .segmented{width:100%;justify-content:space-between}.materials-tabs .segmented button{flex:1;justify-content:center;padding:6px 8px}.profile-grid{gap:16px}.member-grid{grid-template-columns:1fr}.form-row{gap:11px}.field{margin-bottom:15px}.field label{font-size:11px}.field input,.field select,.field textarea{font-size:16px;min-height:44px}.field small{font-size:10px}.search input{font-size:14px}.toast{bottom:calc(85px + var(--safe-bottom));font-size:12px;padding:13px 16px;width:max-content;text-align:center}.details-list>div{grid-template-columns:90px 1fr;gap:10px}.details-list dt{font-size:11px}.details-list dd{font-size:12px}.section-title{margin-top:22px}.section-title h2{font-size:17px}.section-title .btn{font-size:11px}.assistant-input{display:block}.assistant-input>.btn{width:100%;margin-top:12px}.assistant-context select{min-width:140px;font-size:13px}.assistant-answer{padding:16px}.assistant-answer .rich-text{font-size:12px}.dialog-head{padding:21px 21px 17px}.dialog-head h2{font-size:21px}.dialog-body{padding:20px 21px 26px}.dialog-sticky-actions{padding:14px 21px calc(14px + var(--safe-bottom));flex-wrap:wrap}.dialog-sticky-actions>.btn{flex:1;font-size:12px}.dialog-body .rich-text{font-size:12px}.check-grid{grid-template-columns:1fr}.recording-box{padding:16px}.device-row{align-items:stretch;flex-direction:column}.device-row .btn{font-size:12px}.proposal p{font-size:11px}.form-actions .btn{font-size:12px}.grant-list .check{font-size:11px}.focus-banner{font-size:11px;padding:13px 14px}.focus-banner .btn{font-size:10px;padding:7px 9px;white-space:nowrap}.tiny-note{font-size:10px}}
@media(max-width:480px){dialog{width:100vw;max-width:100vw;max-height:calc(100dvh - 20px);margin:auto 0 0;border-radius:19px 19px 0 0}.dialog-head{padding-top:23px}.dialog-body{padding-bottom:calc(27px + var(--safe-bottom))}.form-row{grid-template-columns:1fr;gap:0}.page-head{flex-wrap:wrap}.page-head .actions{max-width:none}.stat-label{min-height:28px}.stat small{min-height:27px}.topbar-context{max-width:calc(100% - 95px)}.project-select{font-size:11px}.badge{font-size:9px}.auth-story h1{font-size:35px}.segment{grid-template-columns:44px 1fr;gap:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* One entry point: providers and the shared email form. */
.auth-entry{min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:30px 28px calc(28px + var(--safe-bottom));background:var(--paper)}
.auth-entry-header{width:min(100%,1080px);display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:35px}.auth-entry-header>a:last-child{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.auth-entry-header .ico{width:14px;height:14px}
.auth-entry-card{width:min(100%,480px);padding:34px 37px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 48px #20231f08}.auth-entry-card>.eyebrow{font-size:10px}.auth-entry-card h1{font-size:32px;letter-spacing:-1px;margin-top:10px}.auth-entry-intro{font-size:13px;color:var(--muted);margin:11px 0 24px}.auth-entry-card .field input{min-height:46px}.auth-entry-card .auth-note{margin-top:20px;margin-bottom:0}.auth-entry-footer{margin-top:25px;color:#858b7e;font-size:11px;letter-spacing:.4px}.auth-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.auth-provider{display:flex;align-items:center;gap:10px;min-height:57px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px;text-align:left;color:var(--ink)}.auth-provider:hover{background:#f7f8f4;border-color:#bbc5b3}.auth-provider>span:nth-child(2){flex:1;min-width:0}.auth-provider b{font-size:13px;display:block}.auth-provider small{display:block;font-size:9px;margin-top:4px;font-weight:400;line-height:1.3;color:var(--muted)}.auth-provider>.ico{width:14px;height:14px;color:var(--muted)}.provider-mark{width:25px;height:27px;display:grid;place-items:center;flex:none;font-size:23px;line-height:1;font-weight:700}.provider-yandex .provider-mark{color:#e13d32}.provider-mailru .provider-mark{color:#f19b22}.provider-vk .provider-mark{color:#1673f7;font-size:16px;letter-spacing:-1px}.provider-telegram .provider-mark{color:#2b91be}.provider-telegram .provider-mark .ico{width:24px;height:24px}.auth-provider:disabled{cursor:not-allowed;opacity:1;background:#f5f6f2;color:#84897e;border-color:#e6e8e1}.auth-provider:disabled .provider-mark{opacity:.52}.auth-email-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.auth-email-actions .btn{min-height:45px}.auth-status{font-size:11px;color:var(--muted);margin-top:15px;line-height:1.6}.auth-status .btn{font-size:11px;padding:4px 7px;min-height:26px}.auth-entry .auth-divider{margin:23px 0 19px}
/* Project cards always come from the authorized project payload. */
.projects-section{margin:0 0 28px}.projects-section .section-title{margin-top:0;align-items:flex-end}.projects-section .section-title .tiny-note{margin-top:5px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.project-grid-single{grid-template-columns:minmax(0,1fr)}.project-card{padding:22px;border:1px solid var(--line);border-radius:15px;background:var(--white);min-width:0;display:flex;flex-direction:column}.project-card-top{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:11px}.project-symbol{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e7e9df;background:#f5f6f0;border-radius:9px;color:#68775d}.project-symbol .ico{width:18px;height:18px}.project-name{padding:0;border:0;background:none;text-align:left;font-size:17px;font-weight:650;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}.project-name:hover{color:var(--accent)}.project-card-top .badge{max-width:130px;white-space:normal;text-align:left;font-size:9px}.project-description{font-size:11px;color:var(--muted);line-height:1.6;margin-top:5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.project-stage-current{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;margin-top:20px;font-size:11px;color:var(--muted)}.project-stage-current strong{font-size:13px;color:var(--ink);font-weight:650}.project-stages{padding:0;margin:14px 0 0;list-style:none;display:flex;flex-wrap:wrap;gap:7px}.project-stages li{display:flex;gap:6px;align-items:center;font-size:10px;line-height:1.5;padding:6px 8px;border-radius:7px;background:#f2f3ee;color:#7e8576}.project-stages .stage-mark{display:grid;place-items:center;flex:none;width:15px;height:15px;font-size:9px;border-radius:50%;background:#e4e7dc}.project-stages .stage-mark .ico{width:11px;height:11px}.project-stages .stage-done{color:var(--green);background:#eef4eb}.project-stages .stage-done .stage-mark{background:#dcead4}.project-stages .stage-current{color:#a65129;background:var(--accent-soft);font-weight:600}.project-stages .stage-current .stage-mark{background:#f7d9c5}.project-next{margin-top:18px;padding-top:16px;border-top:1px solid #ecefe5}.project-next .eyebrow{font-size:9px;letter-spacing:1px;color:#8a9380}.project-next p{font-size:12px;line-height:1.65;margin-top:7px;overflow-wrap:anywhere}.project-source{display:flex;flex-wrap:wrap;gap:5px 13px;margin-top:17px;color:#849077;font-size:10px;line-height:1.6}.project-source>span{display:inline-flex;align-items:center;gap:5px}.project-source .ico{width:12px;height:12px}.project-evidence{font-size:11px;color:var(--muted);margin-top:9px}.project-evidence summary{cursor:pointer;font-size:10px}.project-evidence p{font-size:11px;line-height:1.65;margin-top:10px}.project-evidence a{display:inline-flex;gap:5px;align-items:center;color:var(--blue);margin-top:9px}.project-evidence a .ico{width:12px;height:12px}.project-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:18px;margin-top:auto}.project-card-actions .btn{font-size:11px;min-height:34px}.materials-tabs{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
/* The project chat is the existing Telegram conversation. */
.project-chat{display:grid;grid-template-columns:220px minmax(0,1fr);height:clamp(500px,calc(100dvh - 235px),850px);border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.chat-threads{overflow:auto;border-right:1px solid var(--line);background:#f8f9f4;padding:17px 10px}.chat-threads-heading{font-size:10px;letter-spacing:.6px;font-weight:650;color:var(--muted);padding:3px 10px 14px}.chat-thread{display:flex;align-items:flex-start;gap:9px;width:100%;border:1px solid transparent;border-radius:10px;background:transparent;padding:13px 10px;text-align:left;color:var(--muted);margin-bottom:5px}.chat-thread>.ico{width:17px;height:17px;flex:none;color:#6995a7;margin-top:2px}.chat-thread>span{min-width:0}.chat-thread b{display:block;font-size:12px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.chat-thread small{display:block;font-size:10px;line-height:1.5;margin-top:6px;color:#8b947e}.chat-thread:hover{background:#eef1e7}.chat-thread.active{background:#fff;border-color:#dfe5d5;color:var(--ink);box-shadow:0 2px 5px #263b0d04}.chat-conversation{min-height:0;min-width:0;display:flex;flex-direction:column}.chat-conversation-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 21px;border-bottom:1px solid #e9ece3;flex:none}.chat-conversation-header>div:first-child{min-width:0}.chat-conversation-header h2{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.chat-conversation-header p{font-size:10px;color:#7c8a71;margin-top:5px;display:flex;gap:5px;align-items:center}.chat-conversation-header p .ico{width:12px;height:12px}.chat-conversation-header .actions{flex:none;flex-wrap:nowrap}.chat-conversation-header .btn{font-size:10px;min-height:32px;padding:7px 9px}.chat-conversation-header .btn .ico{width:15px;height:15px}.chat-connection{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 20px;font-size:9px;color:#8b947f;min-height:34px;border-bottom:1px solid #edf0e7;flex:none}.chat-connection>span{display:inline-flex;align-items:center;gap:6px;line-height:1.5}.chat-connection .ico{width:12px;height:12px}.chat-connection .chat-connection-error{color:var(--red)}.chat-connection .btn{font-size:10px;min-height:24px;padding:3px 6px;flex:none}.chat-refresh-note{white-space:nowrap}.chat-messages{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:21px;background:#f6f7f2}.chat-messages .empty{padding-top:45px}.project-message{border:1px solid #e4e8dc;border-radius:10px;background:#fff;padding:13px 15px;margin-bottom:12px;max-width:95%;box-shadow:0 2px 5px #20331402}.project-message:last-child{margin-bottom:0}.project-message.message-workplace{border-left:3px solid #95b07e;padding-left:13px}.project-message header{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:7px}.project-message header b{font-size:11px;color:#526847;line-height:1.5;overflow-wrap:anywhere}.project-message time{font-size:9px;color:#929987;flex:none}.project-message .rich-text{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.project-message footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:9px}.project-message footer a{display:inline-flex;gap:4px;align-items:center;font-size:10px;color:var(--blue)}.project-message footer a .ico{width:11px;height:11px}.project-message footer .btn{min-height:23px;padding:4px 7px;font-size:9px}.message-origin{font-size:9px;color:#8c987e}.chat-composer{padding:17px 20px;background:#fff;border-top:1px solid var(--line);flex:none}.chat-composer>label{display:block;font-size:11px;font-weight:600;color:#637456;margin-bottom:8px}.chat-composer textarea{display:block;resize:vertical;min-height:66px;max-height:160px;width:100%;padding:10px 12px;border:1px solid #d8dfce;border-radius:9px;background:#fcfdf9;color:var(--ink);font-size:13px;line-height:1.55;outline-offset:2px}.chat-composer textarea:focus{border-color:#b5bd9e;outline:2px solid #e9eddd}.chat-composer textarea:disabled{background:#f5f6f2;color:#87917b;cursor:not-allowed}.chat-composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:11px}.chat-composer-bottom p{font-size:10px;color:#929b85;line-height:1.5;max-width:260px}.chat-composer-bottom .btn{font-size:11px;min-height:37px;flex:none}.chat-composer-bottom .btn:disabled{cursor:not-allowed}.chat-composer .form-error{font-size:11px;margin:10px 0}.project-chat .empty .btn{margin-top:12px}
@media(max-width:1100px){.project-grid{grid-template-columns:1fr}.project-chat{grid-template-columns:180px minmax(0,1fr)}.chat-conversation-header{padding:15px}.chat-conversation-header .actions a.btn{font-size:0;width:34px;padding:7px}.chat-conversation-header .actions a.btn>.ico:last-child{display:none}.chat-connection{padding:8px 15px}.chat-refresh-note{display:none}.chat-composer{padding:15px}.chat-messages{padding:16px}.project-card-top .badge{max-width:150px}}
@media(max-width:720px){.projects-section{margin-bottom:22px}.project-grid{gap:13px}.project-card{padding:18px}.project-card-top{grid-template-columns:30px minmax(0,1fr) auto;gap:9px}.project-symbol{width:30px;height:30px}.project-name{font-size:15px}.project-card-top .badge{max-width:95px;font-size:9px}.project-description{font-size:10px}.project-stage-current{margin-top:17px;font-size:10px}.project-stage-current strong{font-size:12px}.project-stages{gap:6px}.project-stages li{font-size:9px}.project-next{margin-top:15px;padding-top:13px}.project-next p{font-size:11px}.project-source{font-size:9px}.project-card-actions{padding-top:15px}.project-card-actions .btn{font-size:10px}.materials-tabs>.segmented{width:auto;flex:1}.materials-tabs>.btn{font-size:10px}.project-chat{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 270px - var(--safe-bottom));min-height:430px;border-radius:13px}.chat-threads{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--line);padding:9px}.chat-threads-heading{display:none}.chat-thread{width:auto;min-width:150px;max-width:220px;flex:none;padding:9px 10px;margin:0;gap:8px}.chat-thread b{font-size:11px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-thread small{font-size:9px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:3px}.chat-thread>.ico{width:15px;height:15px}.chat-conversation-header{padding:12px 13px;gap:10px}.chat-conversation-header h2{font-size:13px}.chat-conversation-header p{font-size:9px}.chat-conversation-header .actions{gap:4px}.chat-conversation-header .actions .btn{min-height:29px}.chat-connection{padding:7px 13px;font-size:9px;min-height:29px}.chat-messages{padding:13px}.project-message{max-width:100%;padding:11px 12px;margin-bottom:10px}.project-message.message-workplace{padding-left:10px}.project-message .rich-text{font-size:12px;line-height:1.65}.project-message time{font-size:8px}.project-message header{gap:10px}.project-message header b{font-size:10px}.chat-composer{padding:12px 13px}.chat-composer>label{font-size:10px}.chat-composer textarea{font-size:16px;min-height:62px;max-height:125px;line-height:1.4}.chat-composer-bottom{gap:9px;align-items:flex-start;margin-top:9px}.chat-composer-bottom p{font-size:9px;padding-top:2px}.chat-composer-bottom .btn{font-size:10px;min-height:35px;padding:8px 10px}.chat-composer-bottom .btn .ico{width:14px;height:14px}}
@media(max-width:540px){.auth-entry{padding:23px 21px calc(23px + var(--safe-bottom));background:#fff}.auth-entry-header{margin-bottom:29px}.auth-entry-header .brand{font-size:29px}.auth-entry-header>a:last-child{font-size:10px}.auth-entry-card{padding:0;border:0;border-radius:0;box-shadow:none;max-width:420px}.auth-entry-card h1{font-size:29px}.auth-entry-intro{font-size:12px;margin-top:10px;margin-bottom:21px}.auth-providers{gap:9px}.auth-provider{min-height:54px;padding:10px 11px;gap:9px}.auth-provider b{font-size:12px}.auth-provider small{font-size:9px}.auth-entry-card .field input{font-size:16px;min-height:46px}.auth-entry-card .field label{font-size:11px}.auth-entry .auth-divider{margin:22px 0 18px}.auth-email-actions{gap:9px;margin-top:18px}.auth-email-actions .btn{font-size:12px;min-height:45px;padding:10px 11px}.auth-entry-card .auth-note{font-size:10px;margin-top:19px;line-height:1.65}.auth-entry-footer{font-size:9px;margin-top:26px}.auth-entry .telegram-wait{padding:14px}.auth-entry .telegram-wait p{font-size:11px}}

.project-status-detail{font-size:11px;line-height:1.65;color:#6c7962;margin-top:12px;overflow-wrap:anywhere}.project-work-items{margin-top:17px;padding-top:15px;border-top:1px solid #e9ede1}.project-work-items>summary{cursor:pointer;font-size:12px;font-weight:650;color:#596d4b}.project-work-items>.tiny-note{font-size:10px;margin-top:10px}.project-work-item{padding:14px 0}.project-work-item+.project-work-item{border-top:1px solid #e9ede1}.project-work-item h3{font-size:13px;font-weight:650}.project-work-item .meta{font-size:10px;gap:6px 13px;margin-top:8px}.project-work-item p{font-size:11px;line-height:1.65;color:var(--muted);margin-top:9px;overflow-wrap:anywhere}.project-work-item .work-item-next{color:#596b4d}.project-work-item .work-item-next b{font-weight:600}.work-item-source{font-size:9px;line-height:1.65;color:#8a957e;margin-top:9px}.work-item-source a{color:var(--blue)}.work-item-source .ico{width:10px;height:10px}.project-work-item>.btn{margin-top:11px;font-size:10px}.project-edit-source{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.project-edit-source .btn{flex:none;font-size:10px}.project-edit-source p{font-size:10px;color:var(--muted)}

.project-updated{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:#658450;margin-top:12px;line-height:1.5}.project-updated .ico{width:12px;height:12px}.project-refresh-needed{font-size:10px;color:#a2754a;margin-top:9px;line-height:1.5}.project-description-editor{padding:15px 0 3px;border-top:1px solid var(--line)}.project-description-editor>summary{cursor:pointer}.project-description-editor .field{margin-bottom:0}

.extra-projects{margin-top:18px;padding:17px 19px;border:1px solid var(--line);border-radius:12px;background:#eff1e9}.extra-projects>summary{cursor:pointer;font-size:12px;font-weight:600;color:#6b785e}.extra-projects>.project-grid{margin-top:17px}.extra-projects .project-card{background:#fafbf7}

/* Keep each project action near its content and the chat composer in view. */
.project-grid{align-items:start}.main.main-chat{height:calc(100dvh - 83px);display:flex;flex-direction:column}.main-chat>.page-head,.main-chat>.notice{flex:none}.main-chat>.project-chat{flex:1;height:auto;min-height:360px}
@media(max-width:720px){.main.main-chat{height:calc(100dvh - 67px);padding-bottom:calc(85px + var(--safe-bottom))}.main-chat>.project-chat{min-height:360px}}
