html{color-scheme:dark}body,html{background:var(--background)}body{color:var(--text-primary);font-family:var(--font-manrope),Manrope,Arial,sans-serif;font-weight:500;letter-spacing:-.01em}button,input,select,textarea{font:inherit}a,button,input,select,textarea{transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease}:focus-visible{outline:2px solid var(--focus-ring)!important;outline-offset:2px}::selection{background:var(--accent);color:var(--accent-foreground)}.app-shell{min-height:100dvh;background:var(--surface-page)}.sidebar{width:252px;padding:24px 16px 20px;background:var(--background);border-right:1px solid var(--border);box-shadow:none}.sidebar .brand{min-height:80px;padding:4px 12px 24px;display:flex;align-items:center}.sidebar .brand img{width:108px;max-width:100%}.sidebar nav{gap:6px}.sidebar nav button{position:relative;min-height:46px;padding:11px 13px;gap:11px;border:1px solid transparent;border-radius:13px;color:var(--text-muted);font-size:13px;font-weight:700}.sidebar nav button:hover{color:var(--text-primary);background:rgba(255,255,255,.04);border-color:var(--border);transform:translateX(2px)}.sidebar nav button.active{color:var(--accent);background:rgba(217,255,63,.1);border-color:rgba(217,255,63,.2);box-shadow:none}.sidebar nav button.active:before{content:"";position:absolute;inset:11px auto 11px -1px;width:2px;border-radius:var(--radius-pill);background:var(--accent)}.nav-icon{width:19px!important;height:19px;flex:0 0 19px!important;color:currentColor}.nav-badge{margin-left:auto;background:var(--accent);color:var(--accent-foreground)}.profile{padding:13px 10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-card)}.avatar,.profile .avatar{color:var(--accent-foreground);background:var(--accent);box-shadow:none}.profile small{color:var(--text-muted)}.logout{border:1px solid var(--border);background:var(--surface-muted);color:var(--text-secondary)}.content{margin-left:252px;width:calc(100% - 252px);max-width:1660px;padding:34px 38px 64px;background:var(--surface-page)}.content>header{min-height:70px;margin-bottom:30px;padding-bottom:18px;border-bottom:1px solid var(--border)}.content>header p,.employee-estimate-note,.panel-title>div>p,.privacy-note{color:var(--text-muted)}.content>header p{text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800}h1,h2,h3{color:var(--text-primary);font-weight:650;letter-spacing:-.04em}h1{font-size:clamp(28px,2.5vw,36px);line-height:1.06}.danger-button,.ghost,.primary,.secondary{min-height:42px;padding:10px 18px;border-radius:var(--radius-pill);font-size:12px;font-weight:800;box-shadow:none}.primary{border:1px solid var(--accent);background:var(--accent)}.primary,.primary:hover{color:var(--accent-foreground)}.primary:hover{border-color:#e4ff74;background:#e4ff74;box-shadow:none;transform:translateY(-1px)}.ghost,.secondary{border:1px solid var(--input-border);background:var(--surface-secondary);color:var(--text-primary)}.ghost:hover,.secondary:hover{border-color:rgba(217,255,63,.5);background:var(--surface-muted);color:var(--accent)}.danger-button,.icon-danger{border-color:var(--danger);background:transparent;color:#ff7a77}.danger-button:hover,.icon-danger:hover{background:var(--danger);color:#fff}.catalog-layout,.employee-detail,.estimate-card,.panel,.project-card,.project-estimate,.project-info,.project-planning,.settings-section,.stat,.supplier-detail,.team-chat,.team-grid article{border:1px solid var(--border);background:var(--surface-card);color:var(--text-primary);box-shadow:none}.calendar,.estimate-card,.panel,.project-card,.team-chat,.team-grid article{border-radius:var(--radius-lg)}.calc-row,.comment-list article,.employee-detail-row,.finance-person,.panel-title,.participant,.payment-entry,.supplier-detail-row,.work-row{border-color:var(--border)}.panel-title{padding:20px 24px}.panel-title h2{font-size:21px;line-height:1.15}.calc-toolbar,.calculation-tabs,.catalog-toolbar,.estimate-toolbar,.finance-filters,.project-tabs,.team-toolbar,.toolbar{border-color:var(--border);background:var(--surface-raised)}.calculation-tabs,.project-tabs{border-radius:var(--radius-lg)}.calculation-tabs button,.project-tabs button{color:var(--text-muted)}.calculation-tabs button.active,.project-tabs button.active{color:var(--accent);background:rgba(217,255,63,.09)}.demo,.estimate-status,.no-pin,.online,.pill,.tags span{border-radius:var(--radius-pill);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.demo,.pill{background:rgba(217,255,63,.1);color:var(--accent)}.calendar{border:1px solid var(--border);background:var(--surface-card);box-shadow:none}.calendar button,.day,.month-groups details,.month-groups summary,.weekdays b{border-color:var(--border)}.calc-head,.estimate-table-head,.weekdays b{color:var(--text-muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.day.empty,.month-groups summary{background:var(--surface-raised)}.day>span,.field>span,.legend,.project-info-grid label>span{color:var(--text-muted)}.current-day,.event-shell.joined .event-membership{background:var(--accent);color:var(--accent-foreground)!important}.event{border-left-color:var(--accent);background:rgba(217,255,63,.09);color:var(--text-primary)}.event.done{border-left-color:#6c777d;background:var(--surface-muted);color:var(--text-muted)}.event-shell.joined .event{border-left-color:var(--accent);background:rgba(217,255,63,.14);color:var(--text-primary)}.field>span,.project-info-grid label>span{font-size:11px;font-weight:700}.chat-composer textarea,.chat-upload-panel select,.field input,.field select,.field textarea,.modal select,.project-info-grid input,.project-info-grid select,.project-info-grid textarea{border:1px solid var(--input-border);border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-primary);box-shadow:none}.field input,.field select,.modal select,.project-info-grid input,.project-info-grid select{min-height:42px}.field textarea,.project-info-grid textarea{min-height:100px}input::placeholder,textarea::placeholder{color:#69747a}.field input:focus,.field select:focus,.field textarea:focus,.project-info-grid input:focus,.project-info-grid select:focus,.project-info-grid textarea:focus{border-color:rgba(217,255,63,.5);outline:2px solid var(--focus-ring);outline-offset:2px;box-shadow:none}.overlay{background:rgba(7,9,11,.82);backdrop-filter:blur(8px)}.modal{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface-raised);color:var(--text-primary);box-shadow:0 30px 90px rgba(0,0,0,.62)}.modal small,.modal>p,.security{color:var(--text-muted)}.toast{border:1px solid rgba(217,255,63,.35);background:var(--surface-muted);color:var(--accent)}.login-page{background:linear-gradient(rgba(217,255,63,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(217,255,63,.025) 1px,transparent 1px),radial-gradient(circle at 82% 14%,rgba(217,255,63,.08),transparent 28%),var(--background);background-size:40px 40px,40px 40px,auto,auto}.login-card{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface-card);color:var(--text-primary);box-shadow:0 35px 100px rgba(0,0,0,.55)}.login-card .brand img{content:url(/top-logo-white.png)}.balance-summary,.calc-panel,.employee-estimate,.estimate-card,.estimate-editor,.finance-panel{--ink:#07090b;--muted:#565e61;--line:#cfd1c7;color-scheme:light;border-color:#cfd1c7;background:#f2f2ea;color:#07090b}.calc-panel h2,.calc-panel h3,.employee-estimate h2,.employee-estimate h3,.estimate-card h2,.estimate-card h3,.estimate-editor h2,.estimate-editor h3,.finance-panel h2,.finance-panel h3{color:#07090b}.calc-panel .secondary,.calc-panel input,.calc-panel select,.employee-estimate .secondary,.employee-estimate input,.employee-estimate select,.estimate-card .secondary,.estimate-editor .secondary,.estimate-editor input,.estimate-editor select,.estimate-editor textarea,.finance-panel .secondary,.finance-panel input,.finance-panel select{border-color:#cfd1c7;background:#fff;color:#07090b}.chat-channel-list,.chat-channel-list>button,.chat-channels,.chat-conversation,.chat-panel-head,.chat-room-head,.chat-task-list,.chat-tasks,.team-chat{border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.chat-channel-list>button.active,.chat-channel-list>button:hover{background:rgba(217,255,63,.08);color:var(--text-primary)}.chat-channel-list .channel-hash,.chat-channels>.chat-panel-head>button,.chat-room-avatar,.send-button{background:var(--accent)!important;color:var(--accent-foreground)!important}.chat-attach-button,.chat-bubble,.mention-button{border:1px solid var(--border);background:var(--surface-raised);color:var(--text-primary);box-shadow:none}.chat-messages article.mine .chat-bubble{border-color:rgba(217,255,63,.22);background:rgba(217,255,63,.13);color:var(--text-primary)}.chat-messages{background:linear-gradient(rgba(217,255,63,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(217,255,63,.025) 1px,transparent 1px),var(--surface-page);background-size:32px 32px}.chat-composer,.chat-upload-panel{border-color:var(--border);background:var(--surface-card)}.chat-mobile-back,.chat-mobile-close-tasks,.chat-mobile-tasks{color:var(--accent)!important}.yandex-connect-page{background:var(--background)}.yandex-connect-page section{border:1px solid var(--border);background:var(--surface-card);color:var(--text-primary)}.yandex-connect-page a,.yandex-connect-page section>div{background:var(--accent);color:var(--accent-foreground)}@media (max-width:1179px) and (min-width:901px){.sidebar{width:82px;padding-inline:10px}.sidebar .brand img{width:58px}.sidebar nav button{justify-content:center;padding-inline:10px;font-size:0}.sidebar nav button .nav-badge{position:absolute;top:3px;right:3px;font-size:9px}.profile .logout,.profile>div:not(.avatar){display:none}.content{margin-left:82px;width:calc(100% - 82px);padding-inline:28px}}@media (max-width:900px){.sidebar{height:calc(68px + env(safe-area-inset-bottom));padding-top:6px;background:rgba(7,9,11,.97);border-top:1px solid var(--border);border-right:0}.sidebar nav button{min-height:48px;border-radius:12px}.sidebar nav button.active:before{inset:2px 12px auto;width:auto;height:2px}.content,.content.chat-content{margin-left:0;width:100%;padding:22px 14px calc(88px + env(safe-area-inset-bottom));background:var(--surface-page)}.content>header{min-height:68px;align-items:flex-start}.content>header h1{font-size:clamp(25px,8vw,30px)}.header-actions,.header-actions .primary{width:100%}.team-chat{height:calc(100dvh - 68px - env(safe-area-inset-bottom))}.chat-content>header{display:none}.chat-channel-list,.chat-channel-list>button,.chat-channels,.chat-conversation,.chat-panel-head,.chat-room-head,.chat-task-list,.chat-tasks{background:var(--surface-card);color:var(--text-primary)}.chat-channel-list>button:after{background:var(--border)}}@media (max-width:640px){.content{padding-inline:14px}.estimate-toolbar .primary,.primary.full,.team-toolbar .primary{width:100%}.modal{border-radius:22px 22px 0 0}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.month .today,.month button{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary);box-shadow:none}.month .today:hover,.month button:hover{border-color:rgba(217,255,63,.5);background:var(--surface-muted);color:var(--accent)}.balance-summary,.calc-panel,.employee-estimate,.finance-panel{--ink:var(--text-primary);--muted:var(--text-muted);--line:var(--border);color-scheme:dark;border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.balance-summary{background:transparent}.balance-summary>div,.stats .stat{border:1px solid var(--border);background:var(--surface-card);color:var(--text-primary);box-shadow:none}.balance-summary small,.balance-summary span,.stat small,.stat span{color:var(--text-muted)}.balance-summary .due b,.balance-summary b,.stat b,.stat.danger b{color:var(--accent)}.calc-panel h2,.calc-panel h3,.employee-estimate h2,.employee-estimate h3,.finance-panel h2,.finance-panel h3{color:var(--text-primary)}.calc-panel .secondary,.employee-estimate .secondary,.finance-panel .secondary{border-color:var(--input-border);background:var(--surface-secondary);color:var(--text-primary)}.calc-panel input,.calc-panel select,.employee-estimate input,.employee-estimate select,.finance-panel input,.finance-panel select{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.calc-head,.calc-row,.catalog-breadcrumb,.catalog-center,.catalog-center>footer,.catalog-editor,.catalog-layout,.catalog-page,.catalog-search,.catalog-table-head,.catalog-tree,.employee-estimate-head,.employee-estimate-row,.finance-person{border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.catalog-page{box-shadow:none}.catalog-toolbar{border-color:var(--border);background:var(--surface-raised)}.catalog-availability-date,.catalog-center>footer,.catalog-editor-empty,.catalog-editor-empty p,.catalog-editor-head small,.catalog-stock small,.catalog-toolbar p{color:var(--text-muted)}.catalog-availability-date input,.catalog-field input,.catalog-field select,.catalog-field textarea,.catalog-search input,.catalog-search select{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.catalog-availability-date input:focus,.catalog-field input:focus,.catalog-field select:focus,.catalog-field textarea:focus,.catalog-search input:focus,.catalog-search select:focus{border-color:rgba(217,255,63,.5);outline:2px solid var(--focus-ring);outline-offset:2px}.catalog-breadcrumb button{color:var(--accent)}.catalog-breadcrumb .danger-link{color:#ff7a77}.tree-node,.tree-root,.tree-select,.tree-toggle{border-color:var(--border);color:var(--text-secondary)}.tree-node.active,.tree-node:hover,.tree-root.active,.tree-root:hover{background:rgba(217,255,63,.09);color:var(--accent)}.tree-node b,.tree-root b{background:var(--surface-muted);color:var(--text-muted)}.tree-branch .tree-branch{border-left-color:rgba(255,255,255,.18)}.catalog-table-head{color:var(--text-muted)}.catalog-table-row,.catalog-table-row.stock-empty{border-bottom-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.catalog-table-row.active,.catalog-table-row:hover{background:rgba(217,255,63,.075)}.catalog-table-row.stock-shortage{background:rgba(239,83,80,.08);box-shadow:inset 3px 0 var(--danger)}.catalog-table-row em{color:var(--text-secondary)}.catalog-stock.available b,.catalog-table-row strong{color:var(--accent)}.catalog-stock.empty b{color:var(--text-muted)}.catalog-stock.shortage b{color:#ff7a77}.catalog-availability-card,.catalog-ready-toggle{border-color:rgba(217,255,63,.22);background:rgba(217,255,63,.075);color:var(--text-primary)}.catalog-availability-card.shortage{border-color:rgba(239,83,80,.35);background:rgba(239,83,80,.08);color:#ff9a97}.catalog-editor h4,.catalog-editor-empty b,.catalog-editor-head,.catalog-field>span,.catalog-ready-toggle b{border-color:var(--border);color:var(--text-primary)}.x-inline{background:var(--surface-muted);color:var(--text-secondary)}.catalog-editor-empty>span{color:var(--text-muted)}.catalog-page .danger-button.full{border-color:rgba(239,83,80,.4);background:rgba(239,83,80,.08);color:#ff8c89}.settings-hero,.settings-page{color:var(--text-primary)}.settings-hero{border:1px solid var(--border);background:linear-gradient(rgba(217,255,63,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(217,255,63,.025) 1px,transparent 1px),var(--surface-raised);background-size:32px 32px;box-shadow:none}.settings-hero:after{display:none}.settings-hero p{color:var(--accent)}.settings-hero span{color:var(--text-secondary)}.document-asset,.settings-card,.settings-grade-card,.settings-supplier-row{border-color:var(--border);background:var(--surface-card);color:var(--text-primary);box-shadow:none}.document-asset>b,.document-company-grid label>span,.settings-card>header b,.settings-fields label>span,.settings-grade-card>b{color:var(--text-primary)}.document-asset>small,.document-company-grid label>small,.document-template-actions span,.settings-card>header span,.settings-fields small,.settings-grade-card label span,.settings-note,.settings-supplier-row>span small,.settings-table-head{color:var(--text-muted)}.settings-card input,.settings-card select,.work-type-control>input{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.settings-card input:focus,.settings-card select:focus,.work-type-control>input:focus{border-color:rgba(217,255,63,.5);outline:2px solid var(--focus-ring);outline-offset:2px}.settings-table-row{border-top-color:var(--border)}.document-asset-preview,.document-options-grid,.integration-status,.settings-add-row{border-color:var(--border);background:var(--surface-raised);color:var(--text-primary)}.document-options-grid label{color:var(--text-secondary)}.document-options-grid label.disabled{color:var(--text-muted)}.document-options-grid input{accent-color:var(--accent)}.document-settings-status,.estimate-pdf-status,.planning-hours-summary{color:var(--accent)}.document-upload-button{border-color:var(--input-border);background:var(--surface-secondary);color:var(--text-primary)}.document-asset>.document-asset-confirm{flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--border)}.document-asset-confirm>span{width:100%;font-size:12px}.document-asset-confirm>button{min-height:36px}.integration-status.connected>i,.integration-status>i{background:var(--accent);box-shadow:0 0 0 5px rgba(217,255,63,.1)}.integration-status small{color:var(--text-muted)}@media (max-width:900px){.month{gap:9px}.month button{min-width:38px;min-height:38px}.sidebar{position:fixed;inset:auto 0 0 0;width:100%;height:calc(68px + env(safe-area-inset-bottom));padding:6px max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:flex;flex-direction:row;align-items:center;gap:8px;border-top:1px solid var(--border);border-right:0;background:rgba(7,9,11,.98);z-index:40}.sidebar .brand{display:none!important}.sidebar nav{flex:1;width:auto;height:56px;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(48px,1fr);gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}}@media (max-width:900px){.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button,.sidebar nav button:not(.active){width:auto;min-width:48px;min-height:52px;padding:6px 5px;flex-direction:column;justify-content:center;gap:4px;overflow:hidden;white-space:nowrap;font-size:9px;line-height:1;transform:none}.sidebar nav button:hover{transform:none}.profile{width:44px;flex:0 0 44px;margin:0;padding:0;border:0;background:transparent}.profile .avatar,.profile>div:not(.avatar){display:none}.profile .logout{width:44px;height:44px;margin:0;padding:0;display:grid;place-items:center;border-radius:14px}}@media (max-width:600px){.sidebar nav button,.sidebar nav button:not(.active){min-width:44px;font-size:0;gap:0}.profile,.profile .logout{width:42px;flex-basis:42px}}.balance-summary,.calc-head,.calc-panel,.chat-channel-list,.chat-channel-list>button,.chat-channels,.chat-channels>.chat-panel-head,.chat-conversation,.chat-room-head,.chat-task-list,.chat-tasks,.chat-tasks>.chat-panel-head,.employee-detail-head,.employee-detail-total,.employee-estimate,.finance-panel,.participant-head,.payment-history,.selected-project,.table-head{--ink:var(--text-primary);--muted:var(--text-muted);--line:var(--border);color-scheme:dark;border-color:var(--border);background:var(--surface-card);color:var(--text-primary);box-shadow:none}.chat-channel-list button b,.chat-panel-head b,.datebox b,.employee-detail-row>div b,.employee-metrics b,.project-budgets b,.selected-project b{color:var(--text-primary)}.calc-head,.chat-channel-list .channel-side time,.chat-channel-list button small,.chat-panel-head small,.datebox small,.employee-allocation-types label span,.employee-detail-head,.employee-detail-row>div em,.employee-detail-row>div small,.employee-detail-total span,.employee-metrics span,.participant-head,.payment-history>p,.project-budgets span,.selected-project span,.table-head{color:var(--text-muted)}.debt-sum,.earned b,.employee-detail-row strong,.employee-detail-total b,.finance-earned,.paid-sum,.project-budgets strong,.selected-project strong{color:var(--accent)}.calc-panel input,.calc-panel select,.employee-detail-row input,.employee-estimate input,.employee-estimate select,.finance-panel input,.finance-panel select{border:1px solid var(--input-border);background:var(--surface-raised);color:var(--text-primary);box-shadow:none}.employee-metrics span,.tags em{border:1px solid rgba(217,255,63,.2);background:rgba(217,255,63,.08);color:var(--accent)}.datebox,.mobile-agenda-item time{border:1px solid var(--border);background:var(--surface-muted);color:var(--text-primary)}.chat-channel-list>button.active,.chat-channel-list>button:hover,.employee-calc-person:hover,.employee-detail-row:hover,.finance-person:hover,.work-row:hover{background:rgba(217,255,63,.08)}.chat-channel-list>button:after{background:var(--border)}.chat-channel-list .channel-hash,.chat-channels>.chat-panel-head>button{background:var(--accent)!important;color:var(--accent-foreground)!important}@media (max-width:600px){.mobile-agenda-empty,.mobile-agenda-item,.mobile-agenda-item.joined{border-color:var(--border);border-left-color:var(--accent);background:var(--surface-card);color:var(--text-primary);box-shadow:none}.mobile-agenda-project,.mobile-agenda-project b{color:var(--text-primary)}.mobile-agenda-project span{color:var(--text-muted)}.mobile-agenda-membership{border-color:rgba(217,255,63,.45);background:transparent;color:var(--accent)}.mobile-agenda-item.joined .mobile-agenda-membership{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}.chat-channel-list,.chat-channel-list>button,.chat-channels>.chat-panel-head{background:var(--surface-card);color:var(--text-primary)}}.estimate-card{--ink:var(--text-primary);--muted:var(--text-muted);--line:var(--border);color-scheme:dark;border-color:var(--border);background:var(--surface-card);box-shadow:none}.estimate-card,.estimate-card h3,.estimate-metrics b,.estimate-project b{color:var(--text-primary)}.estimate-card footer>small,.estimate-card-head>small,.estimate-card>p,.estimate-metrics small,.estimate-project{color:var(--text-muted)}.estimate-metrics span,.estimate-project{border:1px solid var(--border);background:var(--surface-raised)}.estimate-metrics strong{color:var(--accent)}.estimate-card footer{border-top-color:var(--border)}.estimate-card .secondary{border-color:var(--input-border);background:var(--surface-secondary);color:var(--text-primary)}.estimate-card .secondary:hover{border-color:rgba(217,255,63,.5);background:var(--surface-muted);color:var(--accent)}.estimate-status{border:1px solid var(--border);background:var(--surface-muted);color:var(--text-secondary)}.estimate-status.sent{border-color:rgba(217,255,63,.25);background:rgba(217,255,63,.07);color:var(--accent)}.estimate-status.approved{border-color:rgba(217,255,63,.35);background:rgba(217,255,63,.1);color:var(--accent)}.online{border:1px solid rgba(217,255,63,.28);background:rgba(217,255,63,.08);color:var(--accent);box-shadow:none}.no-pin{border:1px solid rgba(239,83,80,.32);background:rgba(239,83,80,.08);color:#ff8c89;box-shadow:none}.project-editor-content,.project-editor-page,.project-estimate,.project-info,.project-planning{color-scheme:dark;background:var(--surface-base);color:var(--text-primary)}.project-editor-page{border:1px solid var(--border);box-shadow:none}.estimate-flowbar,.project-editor-tabs,.project-empty,.project-estimate,.project-info,.project-planning{border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.project-editor-tabs button{color:var(--text-secondary)}.project-editor-tabs button.active,.project-editor-tabs button:hover{color:var(--accent);background:rgba(217,255,63,.06)}.project-editor-section-head h2,.project-empty b{color:var(--text-primary)}.project-editor-section-head p,.project-empty span{color:var(--text-muted)}.planning-add select,.project-info-grid input,.project-info-grid select,.project-info-grid textarea{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.project-info-grid input[readonly]{border-color:rgba(217,255,63,.25);background:rgba(217,255,63,.06);color:var(--accent);cursor:default}.estimate-flow-status option,.planning-add option,.project-info-grid option{background:var(--surface-card);color:var(--text-primary)}.estimate-autosave-status,.estimate-autosave-status.saved,.project-info-autosave,.project-info-autosave.saved{border:1px solid rgba(217,255,63,.28);background:rgba(217,255,63,.08);color:var(--accent);box-shadow:none}.estimate-autosave-status.dirty,.estimate-autosave-status.saving{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-secondary)}.estimate-autosave-status.error{border-color:rgba(239,83,80,.35);background:rgba(239,83,80,.08);color:#ff8c89}.estimate-flow-status{display:flex;align-items:center;gap:14px}.estimate-flow-status label{display:flex;align-items:center;gap:8px;color:var(--text-muted)}.estimate-flow-status select{min-width:170px;border:1px solid var(--input-border);border-radius:8px;background:var(--surface-raised);color:var(--text-primary);padding:8px 34px 8px 10px}.estimate-flow-status strong{color:var(--accent)}.estimate-quickbar{position:sticky;top:8px;z-index:18;display:flex;align-items:center;gap:10px;margin:10px 0;padding:10px 12px;border:1px solid rgba(217,255,63,.24);border-radius:12px;background:rgba(15,20,23,.97);box-shadow:0 10px 28px rgba(0,0,0,.28);backdrop-filter:blur(12px)}.estimate-quickbar>div{display:grid;margin-right:auto}.estimate-quickbar small,.estimate-quickbar span{color:var(--text-muted)}.estimate-quickbar strong{color:var(--accent);font-size:20px}.estimate-workspace{height:min(74vh,880px);min-height:560px;align-items:stretch;overflow:hidden}.catalog-pane,.project-estimate-pane{min-height:0;max-height:100%}.catalog-pane{display:flex;flex-direction:column;overflow:hidden;border-color:var(--border);background:var(--surface-card)}.estimate-category-tree{max-height:210px;overflow:auto;flex:0 0 auto}.catalog-list{flex:1 1 auto;min-height:150px;overflow-y:auto;overscroll-behavior:contain}.catalog-manual-top{flex:0 0 auto;width:calc(100% - 20px);margin:8px 10px 0;border-color:rgba(217,255,63,.32);color:var(--accent)}.catalog-pane>.catalog-manual:last-child{display:none}.project-estimate-pane{overflow:auto;overscroll-behavior:contain}.project-estimate-head{position:sticky;top:0;z-index:8}.dot.request,.event.request{background:#4aa8d8}.dot.confirmed,.event.confirmed{background:#d9ff3f}.dot.done,.event.done{background:#89949a}.dot.paid,.event.paid{background:#45d6a3}.event.cancelled{background:#cb5d5d}.event.cancelled,.event.confirmed,.event.done,.event.paid,.event.request{color:#071012}.event-shell.range-end,.event-shell.range-middle{margin-left:-9px}.event-shell.range-middle,.event-shell.range-start{margin-right:-9px}.event-shell.range-start .event{border-radius:7px 0 0 7px}.event-shell.range-middle .event{border-radius:0}.event-shell.range-end .event{border-radius:0 7px 7px 0}.day[role=button]{cursor:cell}.day[role=button]:hover{background:rgba(217,255,63,.025)}.customers-page{min-height:100%}.customer-card,.customer-editor,.customers-empty,.customers-toolbar{border:1px solid var(--border);background:var(--surface-card);color:var(--text-primary)}.customers-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:14px;padding:18px;border-radius:14px}.customers-toolbar h2,.customers-toolbar p{margin:0}.customers-toolbar p{margin-top:4px;color:var(--text-muted)}.customers-actions{display:flex;gap:10px;margin-left:auto}.customers-actions input{width:min(420px,35vw);border:1px solid var(--input-border);border-radius:10px;background:var(--surface-raised);color:var(--text-primary);padding:11px 13px}.customer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.customer-card{min-height:190px;border-radius:14px;padding:16px;text-align:left;cursor:pointer}.customer-card:hover{border-color:rgba(217,255,63,.4);background:var(--surface-raised)}.customer-card h3{margin:12px 0 5px;color:var(--text-primary)}.customer-card dt,.customer-card p{color:var(--text-muted)}.customer-card dl{display:grid;grid-template-columns:70px 1fr;gap:5px 10px;margin:16px 0 0}.customer-card dd,.customer-card dt{margin:0}.customer-kind{display:inline-flex;border:1px solid rgba(217,255,63,.24);border-radius:999px;background:rgba(217,255,63,.07);color:var(--accent);padding:4px 8px;font-size:10px;font-weight:800;letter-spacing:.08em}.customers-empty{display:grid;gap:5px;border-radius:14px;padding:30px}.customers-empty span{color:var(--text-muted)}.customer-editor-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.68)}.customer-editor{width:min(860px,100%);max-height:92vh;overflow:auto;border-radius:16px;padding:20px}.customer-editor-actions,.customer-editor-head{display:flex;align-items:center;gap:12px}.customer-editor-head h2{margin:4px 0 0}.customer-editor-head small{color:var(--accent);letter-spacing:.12em}.customer-close{margin-left:auto;border:0;background:transparent;color:var(--text-muted);font-size:28px}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.customer-form-grid label{display:grid;gap:6px}.customer-form-grid label>span{color:var(--text-muted);font-size:12px}.customer-form-grid .wide{grid-column:1/-1}.customer-form-grid input,.customer-form-grid select,.customer-form-grid textarea{border:1px solid var(--input-border);border-radius:9px;background:var(--surface-raised);color:var(--text-primary);padding:11px}.customer-form-grid textarea{min-height:90px;resize:vertical}.customer-editor-actions{justify-content:flex-end}@media (max-width:800px){.estimate-flow-status label span,.estimate-quickbar span{display:none}.estimate-flow-status select{min-width:135px}.estimate-quickbar{flex-wrap:wrap}.estimate-workspace{height:auto;min-height:0;overflow:visible}.catalog-pane{max-height:68vh}.project-estimate-pane{max-height:none}.customers-actions,.customers-toolbar{align-items:stretch;flex-direction:column}.customers-actions{width:100%;margin-left:0}.customers-actions input{width:100%}.customer-form-grid{grid-template-columns:1fr}.customer-form-grid .wide{grid-column:auto}.event-shell.range-end,.event-shell.range-middle{margin-left:0}.event-shell.range-middle,.event-shell.range-start{margin-right:0}.event-shell .event{border-radius:7px!important}}.content.project-editor-content{background:var(--surface-base)}.project-editor-top .badge.request{border:1px solid rgba(74,168,216,.35);background:rgba(74,168,216,.12);color:#79c9ef}.project-editor-top .badge.confirmed{border:1px solid rgba(217,255,63,.35);background:rgba(217,255,63,.1);color:var(--accent)}.project-editor-top .badge.paid{border:1px solid rgba(69,214,163,.35);background:rgba(69,214,163,.1);color:#72e8be}.estimate-flow-steps button{color:var(--text-muted)}.estimate-flow-steps button b{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-secondary)}.estimate-flow-steps button.active,.estimate-flow-steps button.active b{color:var(--accent)}.estimate-flow-steps button.active b{border-color:var(--accent);background:rgba(217,255,63,.08)}.planning-list,.planning-row{border-color:var(--border);background:var(--surface-card)}.planning-head{background:var(--surface-raised);color:var(--text-muted)}.planning-person>span,.planning-roles label{border-color:var(--border);background:var(--surface-raised);color:var(--text-secondary)}.planning-hourly-role input[type=number],.planning-row>input{border:1px solid var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.catalog-filters,.catalog-pane h3,.estimate-category-title,.estimate-category-tree{color:var(--text-primary)}.catalog-filters input,.catalog-filters select{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.catalog-product{border-bottom-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.catalog-product:hover{background:var(--surface-raised)}.catalog-product.stock-empty{background:rgba(217,168,63,.07)}.catalog-product.stock-shortage{background:rgba(239,83,80,.08)}.catalog-product b{color:var(--text-primary)}.catalog-product small{color:var(--text-muted)}.catalog-product strong{color:var(--accent)}.catalog-product strong i{background:var(--accent);color:var(--accent-foreground)}.estimate-row-stock.available,.estimate-stock-hint.available{background:rgba(217,255,63,.08);color:var(--accent)}.estimate-stock-hint.empty{background:rgba(217,168,63,.1);color:#f0c46c}.estimate-row-stock.shortage,.estimate-stock-hint.shortage{background:rgba(239,83,80,.1);color:#ff8c89}.project-estimate-pane,.project-estimate-row,.project-estimate-table{background:var(--surface-card);color:var(--text-primary)}.project-estimate-head{background:var(--surface-raised);color:var(--text-muted)}.project-estimate-row{border-top-color:var(--border)}.project-estimate-row.stock-shortage{background:rgba(239,83,80,.07)}.project-estimate-row input,.project-estimate-row select{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.estimate-supplier-cell input:disabled,.estimate-supplier-cell select:disabled{background:var(--surface-muted);color:var(--text-muted)}.project-estimate-total{border-top:1px solid rgba(217,255,63,.24);background:#0b0f11;color:var(--text-primary)}.project-estimate-total strong{color:var(--accent)}.project-estimate .estimate-sections{border-color:var(--border);background:var(--surface-card)}.project-estimate .estimate-section-tabs button{border-color:var(--border);background:transparent;color:var(--text-secondary)}.project-estimate .estimate-section-tabs button.active{border-color:rgba(217,255,63,.3);border-bottom-color:var(--accent);background:rgba(217,255,63,.07);color:var(--accent)}.project-estimate .estimate-section-tabs button.active span,.project-estimate .estimate-section-tabs span{background:var(--surface-muted);color:var(--text-muted)}.project-estimate .estimate-category-tree,.project-estimate .estimate-category-tree .tree-root{border-color:var(--border);background:var(--surface-card);color:var(--text-secondary)}.project-estimate .estimate-category-title{background:var(--surface-raised);color:var(--text-primary)}.project-estimate .estimate-category-title span{background:var(--surface-muted);color:var(--text-muted)}.project-estimate .project-estimate-row,.project-estimate .project-estimate-table{background:var(--surface-card);color:var(--text-primary)}.project-estimate .project-estimate-head{background:var(--surface-raised);color:var(--text-muted)}.project-estimate .project-estimate-row.stock-shortage{border-color:rgba(239,83,80,.35);background:rgba(239,83,80,.07);box-shadow:inset 3px 0 rgba(239,83,80,.8)}.project-estimate .project-estimate-row input,.project-estimate .project-estimate-row select{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.project-editor-top{min-height:58px;padding:8px 16px;gap:12px}.project-editor-top h1{margin:1px 0;font-size:18px;line-height:1.05}.project-editor-top p,.project-editor-top small{font-size:9px;line-height:1.2}.project-back,.project-delete,.project-editor-top .badge{min-height:30px;padding:6px 10px;font-size:10px}.project-editor-tabs{min-height:38px;padding:0 14px}.project-editor-tabs button{padding:10px 12px 8px}.project-estimate{height:calc(100dvh - 118px);min-height:520px;margin:8px 12px 0;padding:10px;display:flex;flex-direction:column;overflow:hidden}.project-estimate>.project-editor-section-head{flex:0 0 auto;margin-bottom:7px}.project-estimate>.project-editor-section-head h2{font-size:17px}.project-estimate>.project-editor-section-head p{margin-top:2px;font-size:10px}.project-estimate .estimate-sections{flex:0 0 auto;min-height:40px}.project-estimate .estimate-workspace{flex:1 1 auto;height:auto;min-height:0;margin-top:8px}.venue-save-button{margin-top:6px;border:1px solid rgba(217,255,63,.34);border-radius:8px;background:rgba(217,255,63,.08);color:var(--accent);padding:7px 10px;text-align:left}.project-expenses{margin:12px 16px;padding:18px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-card)}.project-expenses .project-editor-section-head strong{color:var(--accent);font-size:24px}.project-expense-form{display:grid;grid-template-columns:1.1fr .65fr .8fr 1.8fr auto;gap:8px;margin:14px 0}.project-expense-form input,.project-expense-form select{min-height:42px;border:1px solid var(--input-border);border-radius:8px;background:var(--surface-raised);color:var(--text-primary);padding:8px 10px}.project-expense-list article{display:grid;grid-template-columns:1fr 140px 140px auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--border)}.project-expense-list article>div{display:grid;gap:3px}.project-expense-list span,.project-expense-list time{color:var(--text-muted);font-size:11px}.project-expense-list strong{color:var(--accent)}.business-balance>div:first-child{min-width:44%}.business-balance small{line-height:1.35}.chat-topics{display:flex;flex:0 0 auto;gap:7px;padding:8px 10px;overflow-x:auto;border-bottom:1px solid var(--border);background:var(--surface-raised)}.chat-topics button{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:var(--surface-card);color:var(--text-secondary);padding:7px 11px;font-size:11px}.chat-topics .chat-topic-add,.chat-topics button.active{border-color:rgba(217,255,63,.35);background:rgba(217,255,63,.09);color:var(--accent)}.chat-topics .chat-topic-delete{margin-left:auto;border-color:rgba(239,83,80,.35);color:#ff8c89}@media (max-width:900px){.project-estimate{height:auto;min-height:0;overflow:visible}.project-estimate .estimate-workspace{min-height:620px}.project-expense-form{grid-template-columns:1fr 1fr}.project-expense-list article{grid-template-columns:1fr auto}}.project-estimate .estimate-section-pricing,.project-estimate .estimate-summary-metrics>div,.project-estimate .estimate-summary-side,.project-estimate .project-estimate-total{border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.project-estimate .estimate-section-pricing>b,.project-estimate .estimate-summary-metrics dd,.project-estimate .estimate-summary-metrics>div>b,.project-estimate .estimate-summary-side b,.project-estimate .estimate-summary-side strong{color:var(--text-primary)}.project-estimate .estimate-section-pricing label span,.project-estimate .estimate-summary-metrics dt,.project-estimate .estimate-summary-side small,.project-estimate .estimate-summary-side>div{color:var(--text-muted)}.project-estimate .estimate-section-pricing input{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}.chat-mobile-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.project-editor-tabs i{min-width:20px;display:inline-grid;place-items:center;border:1px solid var(--border-strong);background:var(--surface-muted);color:var(--text-primary);font-weight:900;line-height:1}.project-editor-tabs button.active i{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}.customer-save-button,.venue-save-button{width:100%;margin-top:6px;border:1px solid rgba(217,255,63,.34);border-radius:8px;background:rgba(217,255,63,.08);color:var(--accent);padding:7px 10px;text-align:left}.chat-reactions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:4px}.chat-reaction-picker,.chat-reaction-summary{display:flex;gap:4px;flex-wrap:wrap}.chat-reaction-picker button,.chat-reaction-summary button{min-width:28px;height:26px;padding:2px 6px;border:1px solid var(--border);border-radius:999px;background:var(--surface-raised);color:var(--text-primary);font-size:13px}.chat-reaction-summary button.mine{border-color:rgba(217,255,63,.42);background:rgba(217,255,63,.12)}.chat-reaction-summary b{color:var(--text-secondary);font-size:10px}.modal .employee-detail,.modal .employee-detail-row,.modal .equipment-empty,.modal .supplier-detail,.modal .supplier-detail section,.modal .supplier-detail section>header,.modal .supplier-detail-row,.modal.wide{color-scheme:dark;border-color:var(--border);background:var(--surface-card);color:var(--text-primary)}.modal .equipment-empty{min-height:120px;border:1px dashed var(--border-strong);border-radius:12px}.modal .employee-detail-head,.modal .employee-detail-total,.modal .supplier-detail-head{border-color:var(--border);background:var(--surface-raised);color:var(--text-muted)}.modal .employee-detail-row>div b,.modal .supplier-detail section>header b,.modal .supplier-detail section>header strong,.modal .supplier-detail-row>div b{color:var(--text-primary)}.modal .employee-detail-row input,.modal .supplier-detail-row input{border-color:var(--input-border);background:var(--surface-raised);color:var(--text-primary)}@media (max-width:900px){.project-editor-page:has(>.project-estimate){height:calc(100dvh - 64px - env(safe-area-inset-bottom));min-height:0;padding-bottom:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.project-editor-top{min-height:50px;padding:5px 8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;align-items:center}.project-editor-top>div{min-width:0}.project-editor-top h1{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.project-editor-top p,.project-editor-top small{overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.project-back,.project-delete,.project-editor-top .badge{min-height:28px;padding:5px 7px;font-size:8px;white-space:nowrap}.project-editor-tabs{min-height:34px;padding:0 5px}.project-editor-tabs button{min-height:34px;padding:7px 9px 5px;font-size:9px}.project-estimate{width:auto;height:auto;min-height:0;margin:4px 5px 5px;padding:6px;overflow:hidden}.project-estimate>.project-editor-section-head{min-height:34px;margin:0 0 4px}.project-estimate>.project-editor-section-head>div:first-child{display:none}.estimate-top-actions{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.estimate-top-actions .primary,.estimate-top-actions .secondary{min-height:30px;padding:4px 3px;font-size:8px;line-height:1.1;white-space:normal}.project-estimate .estimate-autosave-status,.project-estimate .estimate-pdf-status{display:none}.project-estimate .estimate-sections{min-height:34px;margin:0;padding:3px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}.project-estimate .estimate-section-actions,.project-estimate .estimate-section-tabs{min-width:0;display:flex;flex-wrap:nowrap;gap:3px;overflow-x:auto}.project-estimate .estimate-section-actions button,.project-estimate .estimate-section-tabs button{min-height:28px;flex:0 0 auto;padding:4px 7px;font-size:8px}.project-estimate .estimate-section-actions strong{flex:0 0 auto;padding:5px 7px;font-size:8px;white-space:nowrap}.project-estimate .estimate-workspace{flex:1 1 auto;height:auto;min-height:0;margin-top:4px;display:grid;grid-template-columns:minmax(225px,40%) minmax(0,60%);overflow:hidden}.project-estimate .catalog-pane,.project-estimate .project-estimate-pane{width:auto;min-width:0;height:100%;max-height:none;overflow:hidden}.project-estimate .catalog-list,.project-estimate .project-estimate-table{min-height:0;overflow:auto;overscroll-behavior:contain}.project-estimate .project-estimate-row{min-width:720px;margin:0;border-radius:0}.chat-conversation{grid-template-rows:54px 42px minmax(0,1fr) auto}.chat-room-head{min-height:54px;padding:5px 7px;grid-template-columns:38px 38px minmax(0,1fr) auto}.chat-mobile-back{width:36px;height:36px;border:1px solid rgba(217,255,63,.34);border-radius:50%;background:rgba(217,255,63,.08);color:var(--accent)!important;font-size:21px;font-weight:800}.chat-topics{width:100%;min-width:0;height:42px;padding:5px 7px;overflow-x:auto;overflow-y:hidden;white-space:nowrap}.chat-topics button{height:30px;padding:4px 9px;font-size:10px}.chat-composer{grid-template-columns:36px minmax(0,1fr) 42px}.send-button{width:42px;height:42px;display:grid;place-items:center;font-size:18px}.send-button:after{content:none}.chat-reaction-picker button,.chat-reaction-summary button{min-width:27px;height:25px;padding:2px 5px;font-size:12px}.modal.wide{max-height:calc(100dvh - 24px);overflow:auto;border-color:var(--border-strong);background:var(--surface-card)}}.catalog-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px}.catalog-pagination nav{display:flex;align-items:center;gap:7px}.catalog-pagination button{min-width:34px;min-height:30px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);color:var(--text-primary)}.catalog-pagination button:disabled{opacity:.35}.project-calendar{width:100%;min-width:0}.project-calendar .month-calendar{width:100%;min-width:0;max-width:100%;overflow:clip}.month-calendar>.calendar-week,.month-calendar>.weekdays{width:100%;min-width:0;max-width:100%;grid-template-columns:repeat(7,minmax(0,1fr))}.project-calendar .calendar-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.project-calendar .month{display:grid;grid-template-columns:34px minmax(0,1fr) 34px auto;gap:5px;width:min(100%,370px);align-items:center}.project-calendar .month>b{text-align:center;text-transform:capitalize;font-size:14px}.project-calendar .month button{width:auto;min-width:0;height:34px;min-height:34px;padding:4px 9px}.project-calendar .month .today{grid-column:auto;width:auto;margin:0;font-size:11px}.project-calendar .legend{display:flex;flex-wrap:wrap;gap:6px 12px;width:100%;margin:0}.project-calendar .legend span{white-space:nowrap}.calendar-view-switch{display:none}.dot.cancelled{background:#cb5d5d}.project-status-request{--project-color:#4aa8d8}.project-status-confirmed{--project-color:#d9ff3f}.project-status-done{--project-color:#89949a}.project-status-paid{--project-color:#45d6a3}.project-status-cancelled{--project-color:#cb5d5d}.month-calendar .calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:86px;border-bottom:1px solid var(--border);padding-bottom:5px;position:relative;isolation:isolate}.month-calendar .calendar-week:last-child{border-bottom:0}.month-calendar .calendar-week-cell{position:relative;min-width:0;padding:0;border:0;border-right:1px solid var(--border);border-radius:0;background:transparent;color:var(--text-secondary);text-align:left}.month-calendar .calendar-week-cell>span{position:absolute;top:4px;left:7px;font-size:12px}.month-calendar .calendar-week-cell.outside{background:var(--surface-muted);opacity:.35}.month-calendar .calendar-week-cell:hover:not(:disabled){background:rgba(217,255,63,.035)}.month-calendar .calendar-week-cell.is-today>span{display:grid;place-items:center;width:24px;height:22px;border-radius:5px;background:var(--accent);color:#071012}.month-calendar .calendar-project-bar{display:flex;min-width:0;margin:2px 3px;z-index:1;border-radius:6px;background:var(--project-color,#89949a);color:#071012;overflow:hidden}.month-calendar .calendar-project-bar.continues-before{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.month-calendar .calendar-project-bar.continues-after{margin-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.month-calendar .calendar-project-bar.joined{outline:1px solid var(--text-primary);outline-offset:1px}.month-calendar .calendar-project-open{flex:1;min-width:0;padding:3px 7px;border:0;border-radius:0;background:transparent;color:#071012;text-align:left}.month-calendar .calendar-project-open b,.month-calendar .calendar-project-open small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;line-height:1.35}.month-calendar .calendar-project-open b{font-size:11px}.month-calendar .calendar-project-open small{font-size:9px}.calendar-membership{flex:0 0 28px;width:28px;min-width:28px;min-height:28px;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted);color:var(--accent);font-size:17px}.calendar-project-bar .calendar-membership{border:0;border-radius:0;background:#0001;color:#071012}.calendar-week-tasks{min-width:0;z-index:1;padding:3px}.calendar-week-tasks .calendar-task{min-width:0;margin:0 0 3px}.calendar-week-tasks .calendar-task b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.crm-task-card,.crm-task-list,.crm-task-main,.task-filters,.task-form-card,.task-form-grid,.task-form-grid>label,.task-reminders-editor,.tasks-content,.tasks-page,.tasks-page-head>div{min-width:0;max-width:100%}.tasks-page{width:100%}.task-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.task-custom-reminder input,.task-filters>select,.task-form-card input:not([type=checkbox]),.task-form-card select,.task-form-card textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.tasks-page-head{flex-wrap:wrap}.tasks-page-head p{overflow-wrap:anywhere}.tasks-page-head>button{flex:0 0 auto}.task-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-task-main h3,.crm-task-main p,.crm-task-main small{overflow-wrap:anywhere}.task-custom-reminder{flex-wrap:wrap}.task-custom-reminder input{flex:1 1 190px}.task-form-card>header{margin:0}.team-chat .chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.team-chat .chat-room-head{flex:0 0 auto;min-width:0;display:flex;align-items:center;gap:9px}.team-chat .chat-room-title{flex:1 1 0;min-width:0}.team-chat .chat-room-title b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-chat .chat-room-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--accent);color:#071012}.team-chat .chat-room-actions{flex:0 0 auto;gap:5px}.team-chat .chat-topics{display:flex;align-items:center;flex:0 0 48px;box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;max-height:48px;gap:6px;padding:6px 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.team-chat .chat-topics>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;align-self:center;height:32px;min-height:32px;max-height:32px;margin:0;padding:4px 10px;line-height:1.2;white-space:nowrap}.team-chat .chat-messages{flex:1 1 0;min-height:0;min-width:0;width:100%;overflow-y:auto;overflow-x:hidden}.chat-history-more{align-self:center;min-height:40px;max-width:100%;padding:8px 14px;background:var(--surface-card);color:var(--text-primary)}.chat-history-error,.chat-history-more{flex:0 0 auto;border:1px solid var(--border);border-radius:10px;font-size:14px}.chat-history-error{padding:10px}.chat-history-error button{margin-left:8px;color:var(--accent)}.chat-topics .chat-topic-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:10px;background:var(--accent);color:#07090b;font-size:12px}.team-chat .chat-composer{flex:0 0 auto;min-width:0;grid-template-columns:36px 36px minmax(0,1fr) 42px!important;align-items:end}.team-chat .chat-composer textarea{min-width:0;width:100%;box-sizing:border-box}.team-chat .chat-composer>button{min-width:0;max-width:100%}.team-chat .chat-composer .send-button{width:42px;height:42px;min-height:42px}@media (min-width:901px){.team-chat{grid-template-columns:220px minmax(0,1fr) 250px}}@media (min-width:901px) and (max-width:1200px){.team-chat{position:relative;grid-template-columns:200px minmax(0,1fr)}.team-chat .chat-tasks{display:none}.team-chat .chat-mobile-close-tasks,.team-chat .chat-mobile-tasks{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px}.team-chat.mobile-tasks-open .chat-tasks{display:grid;position:absolute;z-index:20;inset:0 0 0 auto;width:min(380px,100%);max-height:none;grid-template-rows:auto 1fr;background:var(--surface-card);border-left:1px solid var(--border)}}@media (max-width:1200px){.team-chat .chat-rename-channel span{display:none}.team-chat .chat-rename-channel{width:34px;height:34px;padding:3px}.task-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-task-card{grid-template-columns:minmax(0,1fr) 180px}.crm-task-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}}@media (max-width:760px){.task-filters,.task-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-form-wide{grid-column:1/-1}.task-reminder-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-task-card,.crm-task-history>div{grid-template-columns:minmax(0,1fr)}.crm-task-history>div{gap:3px}.tasks-page-head{gap:9px}.tasks-page-head p{font-size:12px}.task-filters>select{padding:9px 7px;font-size:12px}}@media (max-width:600px){.content.calendar-content>header,.content.tasks-content>header{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;gap:9px;margin-bottom:14px;padding-bottom:12px}.content.calendar-content>header h1,.content.tasks-content>header h1{font-size:23px}.content.calendar-content .header-actions{display:contents}.content.calendar-content .notification-bell{grid-column:2;grid-row:1}.content.calendar-content .header-actions .primary{grid-column:1/-1;justify-self:start;width:auto;min-height:32px;padding:6px 12px}.content.tasks-content .header-actions{display:flex;width:auto}.project-calendar .month{width:100%}.project-calendar .month>b{font-size:13px}.calendar-view-switch{display:flex;gap:4px}.calendar-view-switch button{min-height:30px;padding:3px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface-card);color:var(--text-secondary);font-size:11px}.calendar-view-switch button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:#d9ff3f10}.project-calendar .legend{gap:5px 9px;font-size:9px}.project-calendar.calendar-view-month .month-calendar{display:block}.project-calendar.calendar-view-month .mobile-agenda{display:none}.month-calendar .weekdays b{padding:7px 0}.month-calendar .calendar-project-open{padding:3px 4px}.month-calendar .calendar-project-open b{font-size:10px}.month-calendar .calendar-project-open small{font-size:8px}.month-calendar .calendar-project-bar .calendar-membership{flex-basis:18px;min-width:18px;width:18px;font-size:13px}.project-calendar .mobile-agenda-item{min-height:72px;padding:8px;gap:9px;grid-template-columns:46px minmax(0,1fr) auto;border-left:4px solid var(--project-color,#4aa8d8)}.project-calendar .mobile-agenda-item.joined{border-left-color:var(--project-color)}.project-calendar .mobile-agenda-project b{white-space:normal;overflow-wrap:anywhere;line-height:1.3}.project-calendar .agenda-status{display:block;width:fit-content;margin-top:4px;color:var(--project-color,#9cddff);font-size:10px;line-height:1.3;font-style:normal;font-weight:700}.project-calendar .calendar-task-mobile.completed{--project-color:#74be88}.project-calendar .calendar-task-mobile.overdue{--project-color:#ff8c89}.team-chat .chat-room-head{min-height:54px!important;gap:5px}.team-chat .chat-room-avatar{flex-basis:30px;width:30px;height:30px;font-size:11px}.team-chat .chat-room-title b{font-size:12px}.team-chat .chat-room-actions{gap:3px}.team-chat .chat-room-actions>button{width:29px;min-width:29px;height:32px;padding:3px}.team-chat .chat-composer{grid-template-columns:30px 30px minmax(0,1fr) 38px!important;gap:4px}.team-chat .chat-composer .send-button{width:38px;height:38px;min-height:38px}}@media (max-width:420px){.task-form-grid{grid-template-columns:minmax(0,1fr)}.task-form-card{padding:10px}}.brief-mobile-tools{display:none}.project-brief{min-width:0;max-width:100%;padding:16px;background:var(--surface-page,#0a0d0f)}.brief-footer,.brief-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.brief-head h2{margin:0;font-size:22px}.brief-status{font-size:13px;margin:5px 0 12px;color:#939da4}.brief-status.saved{color:#d9ff3f}.brief-status.conflict,.brief-status.error{color:#ffb3ad}.brief-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px;border:1px solid var(--border);border-radius:12px;background:#11161a}.project-brief .brief-table-picker button,.project-brief .brief-toolbar button,.project-brief .brief-toolbar select{width:auto;min-width:0;min-height:36px;height:auto;padding:7px 10px;font-size:12px;border-radius:7px;line-height:1.3;color:#f7f8f3;background:#20262b;border:1px solid var(--border)}.project-brief .brief-toolbar button.active{background:#283016;color:#d9ff3f;border-color:#738a26}.project-brief button:disabled{opacity:.45;cursor:not-allowed}.brief-toolbar label{display:flex;align-items:center;gap:5px;font-size:12px;width:auto;color:#c5c9ca}.project-brief .brief-toolbar input[type=color]{width:32px;min-width:32px;height:32px;padding:3px}.brief-table-tools{margin-top:8px;border-color:#46522a}.brief-table-picker{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:12px}.brief-table-picker label{width:110px;display:grid;gap:5px;font-size:13px}.brief-table-picker input{width:100%;min-width:0}.brief-footer,.brief-hint{color:#939da4;font-size:12px;line-height:1.5}.brief-warning{color:#ffce85;background:#242015;border:1px solid #65532e;padding:10px 12px;border-radius:10px;font-size:13px}.brief-warning button{margin:4px;width:auto}.brief-sheet{min-width:0;max-width:100%;margin:12px 0;border:1px solid var(--border);border-radius:12px;background:#0e1215}.brief-document{min-height:540px;padding:24px;outline:none;color:#f7f8f3;font-family:inherit;font-size:16px;line-height:1.65;overflow-wrap:anywhere}.brief-document:focus{box-shadow:inset 0 0 0 1px #738a26;border-radius:12px}.brief-document p{margin:.5em 0}.brief-document h1,.brief-document h2,.brief-document h3{line-height:1.2;margin:1em 0 .4em}.brief-document h1{font-size:30px}.brief-document h2{font-size:24px}.brief-document h3{font-size:20px}.brief-document ul{list-style:disc;padding-left:1.6em}.brief-document ol{list-style:decimal;padding-left:1.6em}.brief-document li{margin:3px 0}.brief-document li p{margin:0}.brief-document blockquote{border-left:3px solid #738a26;padding-left:16px;margin:1em 0;color:#c5c9ca}.brief-document a{color:#9bd9ff;text-decoration:underline}.brief-document .tableWrapper{overflow-x:auto;max-width:100%;margin:12px 0}.brief-document table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:0;margin:0;font-size:inherit}.brief-document td,.brief-document th{min-width:60px;padding:8px 10px;position:relative;vertical-align:top;border:1px solid #56636b;background:transparent;color:inherit;text-transform:none;white-space:normal}.brief-document th{font-weight:700;background:#20262b}.brief-document td p,.brief-document th p{margin:0}.brief-document .selectedCell:after{content:"";position:absolute;inset:0;pointer-events:none;background:rgba(217,255,63,.16)}.brief-document .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#d9ff3f;pointer-events:none}.brief-document.resize-cursor{cursor:col-resize}@media(max-width:640px){.project-brief{padding:10px}.brief-head h2{font-size:20px}.project-brief .brief-footer>button,.project-brief .brief-head>button{width:auto}.brief-toolbar{padding:7px;gap:5px}.brief-document{padding:14px;min-height:420px}.brief-table-picker label{width:90px}.brief-mobile-tools{display:grid;grid-template-columns:36px 36px minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:5px;padding:6px 0}.project-brief .brief-mobile-tools button{width:100%;min-width:0;min-height:40px;padding:6px 2px;font-size:12px;line-height:1.2;border-radius:8px;background:#20262b;color:#f7f8f3;border:1px solid var(--border)}.project-brief .brief-mobile-tools button.active,.project-brief .brief-mobile-tools button[aria-expanded=true]{color:#d9ff3f;background:#283016;border-color:#738a26}.project-brief .brief-table-tools,.project-brief .brief-text-tools{display:none}.project-brief .brief-toolbar.mobile-expanded{display:flex}.brief-desktop-hint{display:none}.brief-hint{margin:4px 0}.brief-document{scroll-margin-block:90px;padding-bottom:90px}}.estimate-list-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px auto;gap:8px;margin:12px 0 16px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-card)}.estimate-list-filters input,.estimate-list-filters select,.standalone-estimate-meta input,.standalone-estimate-meta select,.standalone-estimate-meta textarea{min-width:0;border:1px solid var(--input-border);border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-primary)}.estimate-grid.compact{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.estimate-grid.compact .estimate-card{display:grid;grid-template-columns:104px minmax(180px,1.35fr) minmax(180px,1fr) minmax(220px,1fr) auto;grid-template-areas:"head title project metrics actions";align-items:center;gap:12px;min-height:64px;padding:9px 12px;border-radius:var(--radius-md)}.estimate-grid.compact .estimate-card-head{grid-area:head}.estimate-grid.compact .estimate-card h3{grid-area:title}.estimate-grid.compact .estimate-card>p{display:none}.estimate-grid.compact .estimate-project{grid-area:project}.estimate-grid.compact .estimate-metrics{grid-area:metrics}.estimate-grid.compact .estimate-card footer{grid-area:actions}.estimate-grid.compact .estimate-card footer,.estimate-grid.compact .estimate-card h3,.estimate-grid.compact .estimate-card-head,.estimate-grid.compact .estimate-card>p,.estimate-grid.compact .estimate-metrics,.estimate-grid.compact .estimate-project{margin:0}.estimate-grid.compact .estimate-card h3{font-size:14px}.estimate-grid.compact .estimate-project{padding:7px 9px}.estimate-grid.compact .estimate-metrics{display:grid;grid-template-columns:70px minmax(120px,1fr);gap:6px}.estimate-grid.compact .estimate-metrics span{min-height:42px;padding:5px 8px}.estimate-grid.compact .estimate-card footer{border:0;padding:0}.estimate-grid.compact .estimate-card footer>small{display:none}.standalone-estimate-page{min-width:0}.standalone-estimate-page .project-estimate{height:calc(100dvh - 48px);margin:0}.standalone-estimate-meta{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) minmax(220px,1.2fr) 150px 160px;gap:8px;margin-bottom:8px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-card)}.standalone-estimate-meta label{display:grid;gap:5px;min-width:0}.standalone-estimate-meta label>span{color:var(--text-muted);font-size:11px;font-weight:700}.standalone-estimate-meta input,.standalone-estimate-meta select,.standalone-estimate-meta textarea{width:100%;min-height:38px;padding:8px 10px;font-size:13px}.standalone-estimate-meta textarea{min-height:58px;resize:vertical}.standalone-estimate-meta .standalone-estimate-notes{grid-column:1/-1}.standalone-estimate-meta>p{grid-column:1/-1;margin:0;color:var(--text-muted);font-size:12px}@media (max-width:900px){.estimate-list-filters{grid-template-columns:minmax(0,1fr) minmax(150px,.55fr)}.estimate-grid.compact .estimate-card{grid-template-columns:96px minmax(160px,1fr) minmax(180px,.9fr) auto;grid-template-areas:"head title metrics actions" "project project project project"}.standalone-estimate-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.estimate-list-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px}.estimate-list-filters input{grid-column:1/-1}.estimate-list-filters .secondary{width:100%}.estimate-grid.compact .estimate-card{grid-template-columns:86px minmax(0,1fr);grid-template-areas:"head title" "project project" "metrics metrics" "actions actions";gap:8px}.estimate-grid.compact .estimate-card footer,.estimate-grid.compact .estimate-metrics,.estimate-grid.compact .estimate-project{grid-column:1/-1}.estimate-grid.compact .estimate-card footer>div{width:100%}.estimate-grid.compact .estimate-card footer button{flex:1 1 0}.standalone-estimate-page .project-estimate{height:auto;min-height:calc(100dvh - 88px);margin:0}.standalone-estimate-meta{grid-template-columns:minmax(0,1fr);padding:8px}.standalone-estimate-meta .standalone-estimate-notes,.standalone-estimate-meta>p{grid-column:1}}.team-chat .chat-task-list article{background:var(--surface-raised);color:var(--text-primary);border:1px solid var(--border);box-shadow:none}.team-chat .chat-task-list article.done{opacity:1}.team-chat .chat-task-list article b{color:var(--text-primary)}.team-chat .chat-task-list article p{color:var(--text-secondary)}.team-chat .chat-task-list article small{color:var(--text-muted)}.team-chat .chat-task-list article>div:last-child{min-width:0;overflow-wrap:anywhere}.team-chat .task-actions button{background:var(--surface-secondary);color:var(--text-primary);border-color:var(--input-border)}.team-chat .task-actions button:focus-visible,.team-chat .task-actions button:hover{border-color:var(--accent)}.team-chat .task-actions button.danger{background:#2b1517;color:#ffb4ab;border-color:#71403e}.calendar-content-filter{display:flex;flex-wrap:wrap;gap:6px}.calendar-content-filter button{min-height:36px;padding:7px 14px;border:1px solid var(--input-border);border-radius:var(--radius-pill);background:var(--surface-raised);color:var(--text-primary);font-weight:700}.calendar-content-filter button[aria-pressed=true]{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}.catalog-photos{padding:16px;margin:12px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface-raised)}.catalog-photos h4{margin:0 0 10px;color:var(--text-primary)}.catalog-photos p,.catalog-photos>small{color:var(--text-secondary);font-size:12px}.catalog-photos>small{display:block;margin-top:8px}.catalog-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;margin-bottom:12px}.catalog-photo-gallery img{width:100%;height:100px;object-fit:contain;border-radius:10px;background:var(--surface-card)}.catalog-photo-upload{display:inline-flex;position:relative;align-items:center;min-height:42px;padding:8px 16px;border-radius:var(--radius-pill);background:var(--accent);color:var(--accent-foreground);font-size:13px;font-weight:800;cursor:pointer}.catalog-photo-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.catalog-photo-upload:focus-within{outline:2px solid var(--focus-ring);outline-offset:3px}.catalog-photos[aria-busy=true] .catalog-photo-upload{opacity:.65}@media (max-width:1250px){.catalog-page .catalog-layout{grid-template-columns:200px minmax(0,1fr)}.catalog-page .catalog-editor{display:none}.catalog-item-open .catalog-layout{display:block;height:auto;min-height:0}.catalog-item-open .catalog-center,.catalog-item-open .catalog-tree{display:none}.catalog-item-open .catalog-editor{display:block;width:100%;border-left:0;overflow-x:hidden}.catalog-item-open .catalog-editor form{max-width:none}}