:root{color-scheme:dark;--background:#080808;--foreground:#fafafa;--card:#141414;--card-foreground:#fafafa;--popover:#141414;--popover-foreground:#fafafa;--primary:#ebebeb;--primary-foreground:#141414;--secondary:#212121;--secondary-foreground:#fafafa;--muted:#212121;--muted-foreground:#999;--accent:#242424;--accent-foreground:#fafafa;--border:hsla(0,0%,100%,.1);--input:hsla(0,0%,100%,.15);--ring:#a6a6a6;--primary-soft:#1c1c1c;--primary-border:#474747;--radius:0.5rem}*{box-sizing:border-box}body,html{min-height:100%}body{margin:0;overflow:hidden;background:var(--background);color:var(--foreground);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer}.error-screen{display:grid;min-height:100vh;place-items:center;padding:24px;background:var(--background);color:var(--foreground)}.error-panel{width:min(100%,480px);padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--card)}.error-eyebrow{margin:0 0 10px;color:var(--muted-foreground);font-size:13px;font-weight:700;text-transform:uppercase}.error-panel h1{margin:0;font-size:26px;line-height:1.15}.error-message{margin:14px 0 0;color:var(--muted-foreground);line-height:1.5}.error-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.error-actions a,.error-actions button{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--primary);color:var(--primary-foreground);font:inherit;font-weight:700;text-decoration:none}.error-actions a{background:var(--secondary);color:var(--secondary-foreground)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9}.app-shell{display:grid;grid-template-columns:minmax(340px,400px) minmax(500px,1fr) minmax(300px,360px);height:100vh;min-width:1180px;background:var(--background)}.admin-shell,.content-shell,.settings-shell,.tasks-shell{grid-template-columns:71px minmax(0,1fr)}.chat-list,.client-card,.dialog-window,.main-menu{min-height:0}.sidebar-panel{display:flex;flex-direction:row;min-height:0;margin:10px 0 10px 10px;border:0;border-radius:14px;overflow:hidden}.main-menu{width:61px;flex-shrink:0;border-right:0}.chat-list{flex:1 1;min-width:0}.main-menu{display:flex;flex-direction:column;align-items:center;gap:8px;padding:11px 8px;background:var(--card)}.admin-shell>.main-menu,.content-shell>.main-menu,.docs-shell>.main-menu,.settings-shell>.main-menu,.tasks-shell>.main-menu{margin:10px 0 10px 10px;border-radius:14px;overflow:hidden}.brand-logo-link{margin-bottom:6px}.brand-logo,.brand-logo-link{display:block;border-radius:var(--radius)}.brand-logo{width:35px;height:35px;object-fit:cover}.avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:13px;font-weight:700}.avatar.muted{border:1px solid var(--border);background:var(--secondary);color:var(--secondary-foreground)}.avatar.large{width:48px;height:48px;font-size:15px}.avatar-photo{width:100%;height:100%;border-radius:999px;object-fit:cover}.avatar-channel-badge{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:18px;height:18px;border:2px solid var(--card);border-radius:999px;overflow:hidden;background:var(--card);color:#fff}.avatar-channel-badge .channel-logo{width:100%;height:100%;object-fit:cover}.avatar-channel-badge.avito-1,.avatar-channel-badge.avito-2{background:var(--card)}.menu-item{position:relative;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font:inherit;text-decoration:none;cursor:pointer}.menu-item>span{position:absolute;left:47px;z-index:5;display:none;width:max-content;max-width:180px;padding:6px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);color:var(--popover-foreground);box-shadow:0 10px 30px rgba(0,0,0,.28);font-size:11px}.menu-item:hover>span{display:block}.menu-item.active{background:var(--accent);color:var(--primary)}.menu-item.active:before{position:absolute;left:-8px;width:3px;height:19px;border-radius:999px;background:var(--primary);content:""}.menu-item.admin,.menu-item.settings{margin-top:auto}.menu-item.admin+.menu-item.settings{margin-top:0}.menu-item.shortcuts{margin-top:auto}.menu-item.shortcuts+.menu-item.admin,.menu-item.shortcuts+.shortcuts-popover+.menu-item.admin{margin-top:0}.shortcuts-popover{position:fixed;left:78px;bottom:90px;z-index:80;width:286px;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);color:var(--foreground);box-shadow:0 18px 42px rgba(0,0,0,.36)}.shortcuts-popover-header{margin-bottom:10px;font-size:13px;font-weight:650}.shortcuts-popover dl{display:grid;grid-gap:8px;gap:8px;margin:0}.shortcuts-popover dl>div{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;grid-gap:10px;gap:10px}.shortcuts-popover dt{display:inline-grid;place-items:center;min-height:26px;margin:0;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--card);color:var(--foreground);font-size:12px;font-weight:650}.shortcuts-popover dd{min-width:0;margin:0;color:var(--muted-foreground);font-size:12px;line-height:1.35}.menu-item-icon{position:relative;display:grid;place-items:center;width:24px;height:24px}.menu-icon-img{display:block;width:22px;height:22px;background:currentColor;mask:url(/admin-plugins.svg) center/contain no-repeat;-webkit-mask:url(/admin-plugins.svg) center/contain no-repeat}.menu-item-badge{position:absolute;top:-6px;right:-8px;z-index:10;min-width:18px;height:18px;padding:0 5px;border-radius:6px;background:#e42525;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;white-space:nowrap}.chat-list,.client-card{overflow:auto;background:var(--card)}.chat-list{padding:22px 14px 22px 11px}.chat-row-top,.client-card-header,.composer,.deal-status,.section-header,.voice-line{display:flex;align-items:center}.section-header{justify-content:space-between}.eyebrow{margin:0 0 4px;color:var(--muted-foreground);font-size:12px}h1,h2,h3,p{margin:0}h1{font-size:24px}h1,h2{font-weight:650}h2{font-size:17px}h3{font-size:13px;font-weight:650}.icon-button{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border:0;border-radius:var(--radius);background:var(--card);color:var(--foreground)}.ghost-button:hover,.icon-button:hover{background:var(--accent)}.icon-button.primary{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}.icon-button.primary.recording{border-color:#ed6e6e;background:#ea5353;color:#fff}.icon-button.recording-cancel{border-color:#8b2323;background:#2b1212;color:#eb8484}.search-field{display:flex;align-items:center;gap:9px;height:42px;margin:20px 0 12px;padding:0 12px;border:0;border-radius:var(--radius);background:var(--background);color:var(--muted-foreground)}.composer textarea,.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--foreground);font:inherit}.composer textarea::placeholder,.search-field input::placeholder{color:#5c5c5c}.chat-tabs{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:4px;gap:4px;margin-bottom:14px;padding:4px;border-radius:var(--radius);background:var(--muted)}.chat-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--muted-foreground);font-size:13px}.chat-tabs button.active{background:var(--card);color:var(--foreground);box-shadow:0 1px 2px rgba(0,0,0,.18)}.chat-tab-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e42525;color:#fff;font-size:11px;font-weight:700;line-height:18px}.chat-row{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-gap:10px;gap:10px;min-height:74px;padding:12px 9px;border-radius:var(--radius);cursor:pointer}.chat-row.active,.chat-row:hover{background:var(--muted)}.chat-row-main{min-width:0}.chat-row-title{display:flex;align-items:center;gap:6px;min-width:0}.chat-row-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:2px 0}.chat-row-pin{width:13px;height:13px;flex:0 0 auto;color:var(--primary);opacity:.7}.chat-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.chat-row time{color:var(--muted-foreground);font-size:12px}.chat-row p{display:-webkit-box;overflow:hidden;margin-top:5px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.chat-row p,.chat-search-empty{color:var(--muted-foreground);font-size:13px}.chat-search-empty{padding:24px 16px;text-align:center}.unread{align-self:center;min-width:22px;padding:3px 7px;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:12px;font-weight:700;text-align:center}.section-title-row{gap:6px}.section-title-row,.sync-icon{display:flex;align-items:center}.sync-icon{justify-content:center;width:16px;height:16px;padding:0;border:none;background:none;color:var(--muted-foreground);cursor:pointer;opacity:.5;transition:opacity .15s}.sync-icon:hover{opacity:1}.sync-icon svg{width:14px;height:14px}@keyframes spin{to{transform:rotate(1turn)}}.sync-icon.spinning svg{animation:spin .8s linear infinite}.dialog-window{position:relative;flex-direction:column;min-width:0;background:var(--background)}.dialog-body,.dialog-window{display:flex;overflow:hidden}.dialog-body{flex:1 1;min-height:0;flex-direction:column;margin:10px 5px;border:0;border-radius:14px}.open-chat-screen{display:grid;grid-column:2/4;place-items:center;min-width:0;min-height:0;background:var(--background);color:var(--muted-foreground)}.open-chat-screen h2{color:var(--muted-foreground);font-size:18px;font-weight:600}.dialog-header{position:-webkit-sticky;position:sticky;top:16px;z-index:10;transform:translateY(-25%);align-self:center;display:flex;align-items:center;gap:10px;min-height:54px;margin:-8px auto 14px;padding:10px 14px 10px 10px;border-radius:999px;background:var(--card);box-shadow:0 2px 12px rgba(0,0,0,.3)}.dialog-header .icon-button{background:transparent;border-radius:999px;cursor:pointer}.dialog-header .icon-button:hover{background:var(--accent)}.dialog-header .pin-button.active{color:var(--primary)}.pin-icon{display:block;width:18px;height:18px;background:currentColor;opacity:.88;mask:url(/pin.svg) center/contain no-repeat;-webkit-mask:url(/pin.svg) center/contain no-repeat}.pin-icon.chat-row-pin{width:13px;height:13px}.pin-icon.unpin{mask-image:url(/unpin.svg);-webkit-mask-image:url(/unpin.svg)}.app-toast{position:fixed;right:24px;bottom:24px;z-index:100;max-width:340px;padding:12px 14px;border-radius:var(--radius);box-shadow:0 16px 48px rgba(0,0,0,.32);color:#fff;font-size:13px}.app-toast.error{background:#c52020}.client-title{display:flex;align-items:center;gap:12px;min-width:0}.client-card-header p,.client-title p,.dialog-header p,.info-field span,.summary{color:var(--muted-foreground);font-size:13px}.status-pill{padding:7px 10px;border:1px solid var(--primary-border);border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:13px;font-weight:600}.messages{flex:1 1;gap:10px;overflow:auto;padding:24px 22px 104px}.message,.messages{display:flex;flex-direction:column}.message{max-width:min(520px,78%);padding:10px 12px;border-radius:16px;background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.16)}.message-date-separator{display:flex;justify-content:center;width:100%;margin:6px 0;pointer-events:none}.message-date-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#292929;color:var(--muted-foreground);font-size:12px;line-height:1}.message p{font-size:14px;line-height:1.45;white-space:pre-wrap}.message time{align-self:flex-end;margin-top:2px;color:#575757;font-size:11px}.message.outgoing{align-self:flex-end;background:var(--primary-soft)}.message.ai,.message.incoming{align-self:flex-start}.message.incoming{background:#0f0f0f}.message.system{align-self:center;max-width:min(560px,82%);border:1px solid var(--border);background:#1a1a1a;color:var(--muted-foreground)}.message.system p{font-style:italic}.image-message,.link-preview-message{padding:6px}.link-preview-card{display:block;overflow:hidden;border-radius:calc(var(--radius) - 2px);background:var(--background);text-decoration:none;color:inherit;width:240px}.link-preview-card:hover{opacity:.9}.link-preview-bare{padding:6px 10px;width:auto;max-width:300px}.link-preview-img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.link-preview-body{padding:8px 10px 6px}.link-preview-title{font-size:13px;font-weight:500;line-height:1.35;color:var(--foreground);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.link-preview-price{margin-top:3px;font-size:13px;font-weight:600;color:var(--foreground)}.link-preview-url{margin-top:3px;font-size:11px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-message-btn{display:block;overflow:hidden;padding:0;border:none;border-radius:calc(var(--radius) - 2px);background:none;cursor:zoom-in}.image-message img{display:block;width:min(340px,54vw);max-height:360px;object-fit:contain;background:var(--background)}.lightbox-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.82);cursor:zoom-out}.lightbox-img{max-width:min(90vw,1200px);max-height:90vh;object-fit:contain;border-radius:var(--radius);cursor:default}.lightbox-close{position:absolute;top:20px;right:24px;padding:6px 10px;border:none;border-radius:6px;background:hsla(0,0%,100%,.12);color:#fff;font-size:18px;line-height:1;cursor:pointer}.lightbox-close:hover{background:hsla(0,0%,100%,.22)}.file-message{padding:6px}.file-card{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--background);border-radius:calc(var(--radius) - 2px);text-decoration:none;color:inherit;min-width:180px;max-width:280px}.file-card:hover{opacity:.85}.file-card-unavailable{opacity:.55;cursor:default}.file-card-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--muted-foreground)}.file-card-icon svg{width:28px;height:28px}.file-card-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}.file-card-name{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-card-size{font-size:11px;color:var(--muted-foreground)}.video-message{display:flex;flex-direction:column;gap:6px;max-width:320px}.video-message video{display:block;width:100%;max-height:240px;border-radius:calc(var(--radius) - 2px);background:#000}.video-file-link{max-width:100%}.ai-label{display:inline-flex;margin-bottom:7px;padding:3px 7px;border-radius:calc(var(--radius) - 2px);background:var(--accent);color:var(--primary);font-size:12px;font-weight:700}.voice-line{gap:10px;width:min(260px,55vw)}.message.voice audio{display:none}.voice-unavailable{color:var(--muted-foreground);font-size:13px}.voice-play-button{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border:none;border-radius:999px;background:var(--primary);color:#fff;cursor:pointer;transition:opacity .15s}.voice-play-button:hover{opacity:.85}.voice-play-button svg{width:14px;height:14px;fill:currentColor;stroke:none}.voice-track{flex:1 1;height:4px;border-radius:999px;background:var(--border);cursor:pointer;position:relative}.voice-track:hover{height:5px}.voice-track-fill{height:100%;position:relative;min-width:0;transition:width .05s linear}.voice-track-fill,.voice-track-thumb{border-radius:999px;background:var(--primary)}.voice-track-thumb{position:absolute;right:-5px;top:50%;transform:translateY(-50%);width:10px;height:10px;opacity:0;transition:opacity .15s}.voice-track:hover .voice-track-thumb{opacity:1}.voice-duration{font-size:12px;white-space:nowrap;min-width:28px;text-align:right}.transcript,.voice-duration{color:var(--muted-foreground)}.transcript{margin-top:8px;font-style:italic}.transcript-error{margin-top:8px;color:#eb8484;font-size:12px;line-height:1.4}.composer{position:absolute;right:27px;bottom:30px;left:27px;gap:10px;min-height:58px;padding:9px;border:0;border-radius:calc(var(--radius) + 6px);background:hsla(0,0%,5%,.92);box-shadow:0 16px 48px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.composer .icon-button{background:transparent;color:var(--foreground)}.composer .icon-button:hover{background:var(--accent)}.composer .icon-button.primary{background:transparent;color:var(--foreground)}.composer .icon-button.primary:hover{background:var(--accent);color:var(--foreground)}.composer .icon-button.primary.recording{background:#ea5353;color:#fff}.composer .icon-button.primary.recording:hover{background:#e63737;color:#fff}.composer textarea{display:block;min-height:40px;max-height:120px;padding:10px 0;resize:none;line-height:20px;overflow-y:hidden}.composer-input-wrap{position:relative;width:100%;min-width:0}.recording-time{min-width:44px;color:#ef8080;font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700;text-align:center}.composer-error{bottom:calc(100% + 8px);padding:9px 11px;border:1px solid #8b2323;border-radius:var(--radius);background:#2b1212;color:#eb8484;font-size:12px}.composer-error,.quick-palette{position:absolute;right:0;left:0}.quick-palette{bottom:52px;z-index:20;display:grid;max-height:360px;grid-gap:12px;gap:12px;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:calc(var(--radius) + 6px);background:var(--popover);box-shadow:0 18px 42px rgba(0,0,0,.36)}.quick-group-title{margin-bottom:6px;color:var(--muted-foreground);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.quick-group-items,.quick-item{display:grid;grid-gap:4px;gap:4px}.quick-item{width:100%;padding:9px 10px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--foreground);text-align:left}.quick-item.active,.quick-item:hover{border-color:var(--primary-border);background:var(--primary-soft)}.quick-item strong{font-size:13px}.quick-empty,.quick-item span{overflow:hidden;color:var(--muted-foreground);font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.composer-drop-zone{justify-content:center;border-style:dashed;border-color:var(--primary);background:var(--primary-soft);color:var(--foreground);font-size:13px;font-weight:600}.composer-drop-zone svg{color:var(--primary)}.attachment-menu{position:relative;flex:0 0 auto}.file-input{display:none}.attachment-popover{position:absolute;bottom:50px;left:0;z-index:10;display:grid;grid-gap:4px;gap:4px;width:168px;padding:6px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);box-shadow:0 18px 42px rgba(0,0,0,.36)}.attachment-popover button{display:flex;align-items:center;gap:9px;height:36px;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--popover-foreground);font-size:13px;text-align:left}.attachment-popover button:hover{background:var(--accent)}.attachment-popover svg{width:17px;height:17px;color:var(--primary)}.client-card{margin:10px 10px 10px 5px;padding:0 16px 22px;border:0;border-radius:14px}.prop-panel{padding:0}.tasks-panel{margin-top:10px}.prop-panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 0 2px;margin-bottom:0}.prop-panel-title{display:flex;align-items:center;gap:5px;height:30px;padding:0;border:0;background:transparent;font-weight:600;font-size:14px;color:var(--foreground)}.prop-panel-title svg{width:14px;height:14px;opacity:.5;transition:transform .16s ease}.prop-panel-title.expanded svg{transform:rotate(180deg)}.prop-panel-actions{display:flex;align-items:center;gap:2px}.prop-panel-body{padding-top:0}.prop-row{display:grid;grid-template-columns:100px 1fr;align-items:center;min-height:34px;grid-gap:8px;gap:8px}.prop-row-tall{align-items:start}.prop-row-listing{margin-bottom:8px}.prop-label{color:var(--muted-foreground);flex-shrink:0}.prop-label,.prop-value{display:flex;align-items:center;min-height:34px;font-size:13px}.prop-value{color:var(--foreground);min-width:0}.prop-value input,.prop-value textarea{width:100%;padding:0 8px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--foreground);font-size:13px;font-family:inherit;outline:none}.prop-value input{height:30px}.prop-value textarea{min-height:30px;padding:5px 8px;resize:none;line-height:1.35;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.prop-value input:focus,.prop-value input:hover,.prop-value textarea:focus,.prop-value textarea:hover{background:var(--accent)}.prop-value input::placeholder,.prop-value textarea::placeholder{color:var(--muted-foreground)}.prop-long-text{position:relative;width:100%}.prop-long-text textarea{display:block}.prop-long-text .prop-expand-button{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:999px;background:var(--card);color:var(--muted-foreground)}.prop-long-text .prop-expand-button:hover{background:var(--primary);color:var(--primary-foreground)}.prop-long-text .prop-expand-button svg{width:14px;height:14px;transition:transform .16s ease}.prop-long-text .prop-expand-button.expanded svg{transform:rotate(180deg)}.task-entry{display:grid;position:relative;grid-template-columns:minmax(0,1fr) 30px 30px 30px;align-items:center;grid-gap:4px;gap:4px;min-height:34px}.task-checkbox{display:grid;place-items:center;width:24px;height:30px}.task-checkbox input{position:absolute;opacity:0;pointer-events:none}.task-checkbox span{position:relative;width:16px;height:16px;border:1px solid var(--border);border-radius:4px;background:transparent;transition:border-color .14s ease,background .14s ease}.task-checkbox input:checked+span{border-color:var(--primary);background:var(--primary)}.task-checkbox input:checked+span:after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid var(--primary-foreground);border-width:0 2px 2px 0;transform:rotate(45deg)}.task-input{width:100%;height:30px;min-width:0;padding:0 8px;border:1px solid transparent;border-radius:var(--radius);outline:none;background:transparent;color:var(--foreground);font-size:13px}.task-input:focus,.task-input:hover{background:var(--accent)}.task-input::placeholder{color:var(--muted-foreground)}.task-icon-button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground)}.task-icon-button:hover{background:var(--accent);color:var(--foreground)}.task-icon-button.primary{color:var(--foreground)}.task-icon-button.active{color:var(--primary)}.task-icon-button svg{width:16px;height:16px}.task-icon-button-date{position:relative;cursor:pointer}.prop-link{display:block;max-width:100%;max-height:calc(1.9em * 2);width:100%;padding:5px 8px;border-radius:var(--radius);color:var(--foreground);text-decoration:none;overflow:hidden;text-overflow:clip;white-space:normal;line-height:1.35;min-width:0}.prop-link:hover{background:var(--accent);color:var(--foreground)}.prop-empty{display:block;width:100%;padding:5px 8px;color:var(--muted-foreground)}.prop-value select{height:30px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--foreground);font-size:13px;outline:none;cursor:pointer;max-width:100%}.prop-value select:hover{background:var(--accent)}.deal-status-picker{position:relative;width:100%}.deal-status-trigger{display:flex;align-items:center;gap:8px;width:100%;height:32px;padding:0 10px;border:0;border-radius:var(--radius);background:transparent;color:var(--foreground);font:inherit;font-size:13px;text-align:left;cursor:pointer;transition:background .12s}.deal-status-trigger:hover,.deal-status-trigger[aria-expanded=true]{background:var(--accent)}.deal-status-trigger>svg{width:14px;height:14px;color:var(--muted-foreground);margin-left:auto;flex-shrink:0}.deal-status-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--status-dot,var(--muted-foreground))}.deal-status-dot.status-sale{--status-dot:#3b82f6}.deal-status-dot.status-processing{--status-dot:#74c69d}.deal-status-dot.status-lost{--status-dot:#d13d3f}.deal-status-dot.status-agreement{--status-dot:#3b82f6}.deal-status-dot.status-preparation{--status-dot:#74c69d}.deal-status-dot.status-delivery{--status-dot:#0b62cf}.deal-status-dot.status-done{--status-dot:#239a75}.deal-status-dot.status-cancelled{--status-dot:#d13d3f}.deal-status-dot.status-problem{--status-dot:#e05a5a}.deal-status-menu{position:absolute;top:calc(100% + 4px);z-index:30;max-width:calc(100vw - 24px);max-height:min(480px,70vh);padding:4px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);color:var(--popover-foreground);box-shadow:0 4px 6px -1px rgba(0,0,0,.25),0 12px 28px -4px rgba(0,0,0,.45);overflow-y:auto}.deal-status-group{--status-color:var(--muted-foreground)}.deal-status-separator{margin:4px -4px;height:1px;background:var(--border)}.deal-status-group-title{display:flex;align-items:center;gap:6px;padding:4px 8px 3px;color:var(--status-color);font-size:11px;font-weight:500;letter-spacing:.02em}.deal-status-group-title svg{width:12px;height:12px;flex-shrink:0}.deal-status-options{display:grid}.deal-status-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:30px;padding:0 8px;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--foreground);font:inherit;font-size:13px;font-weight:400;text-align:left;cursor:pointer}.deal-status-option:hover{background:color-mix(in srgb,var(--status-color) 12%,transparent);color:var(--accent-foreground)}.deal-status-option.selected{background:color-mix(in srgb,var(--status-color) 18%,transparent);color:var(--accent-foreground)}.deal-status-option.status-sold{--status-color:#239a75}.deal-status-check{display:flex;align-items:center;flex-shrink:0;color:var(--muted-foreground);opacity:0}.deal-status-check svg{width:13px;height:13px}.deal-status-option.selected .deal-status-check{opacity:1}.order-panel-body{gap:8px}.order-number-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:8px;gap:8px;margin-bottom:2px}.order-chip-list{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}.order-chip-list::-webkit-scrollbar{display:none}.order-number-chip{flex:0 0 auto;max-width:148px;min-height:28px;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.order-number-chip.active,.order-number-chip:hover{background:var(--primary-soft);color:var(--foreground)}.order-actions{display:inline-flex;align-items:center;gap:4px}.order-icon-button{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:var(--radius);background:transparent;color:var(--muted-foreground);cursor:pointer}.order-icon-button:hover:not(:disabled){background:var(--accent);color:var(--foreground)}.order-icon-button.danger:hover:not(:disabled){color:#ef6a6a}.order-icon-button:disabled{opacity:.42;cursor:default}.order-icon-button svg{width:14px;height:14px}.order-availability-row{align-items:start}.order-availability-value{display:flex;justify-content:flex-start;background:transparent}.order-availability-tabs{width:min(100%,190px);margin:0;flex-shrink:0;background:transparent}.order-availability-tabs button{height:28px;padding:0 8px;font-size:12px;white-space:nowrap}.order-availability-tabs button.availability-in_stock.active,.order-availability-tabs button.availability-preorder.active{background:var(--foreground);color:var(--background)}.order-date-row input[type=date]{max-width:160px;margin-left:auto}.prop-value-channels{flex-wrap:wrap;gap:6px;padding:6px 0}.prop-value-wrap{align-items:flex-start;padding:6px 0}.prop-value .qual-button{width:100%;height:30px;font-size:13px}.prop-more-btn{display:flex;align-items:center;justify-content:center;width:100%;height:34px;margin-top:6px;border:1px solid var(--border);border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font-size:13px;font-weight:500;cursor:pointer}.prop-more-btn:hover{background:var(--accent);color:var(--foreground)}.ghost-button,.qual-button{width:100%;height:38px;border-radius:var(--radius);font-weight:600}.ghost-button{border:0;background:var(--card);color:var(--foreground)}.summary{line-height:1.55}.deal-stage-select,.deal-status{gap:9px;margin-bottom:12px;font-size:14px}.admin-workspace{min-height:0;overflow:auto;padding:28px 18px;background:var(--background)}.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;max-width:980px;margin:0 auto 20px}.admin-header h1{margin:0;color:var(--foreground);font-size:22px;font-weight:600;letter-spacing:0}.admin-header p{margin-top:6px;color:var(--muted-foreground);font-size:13px}.admin-refresh-state{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:var(--radius);background:var(--card);color:var(--muted-foreground);font-size:12px}.admin-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px;max-width:980px;margin:0 auto}.admin-service-card{min-height:154px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}.admin-service-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.admin-service-dot{width:10px;height:10px;border-radius:999px;background:#20c55d;box-shadow:0 0 0 4px rgba(32,197,93,.12)}.admin-service-card.degraded .admin-service-dot{background:#f4b625;box-shadow:0 0 0 4px rgba(244,182,37,.14)}.admin-service-card.offline .admin-service-dot{background:#e63737;box-shadow:0 0 0 4px rgba(230,55,55,.14)}.admin-service-state{color:var(--muted-foreground);font-size:12px;text-transform:uppercase}.admin-service-card h2{margin:0;color:var(--foreground);font-size:16px;font-weight:600;letter-spacing:0}.admin-service-card p{margin-top:8px;color:var(--muted-foreground);font-size:13px;line-height:1.45}.admin-service-meta{display:grid;grid-gap:8px;gap:8px;margin:16px 0 0}.admin-service-meta div{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-service-meta dt{color:var(--muted-foreground);font-size:12px}.admin-service-meta dd{margin:0;color:var(--foreground);font-size:13px}.admin-error{max-width:980px;margin:14px auto 0;color:#e77;font-size:13px}.tasks-workspace{position:relative;display:flex;flex:1 1;flex-direction:column;gap:28px;min-height:0;overflow:auto;padding:32px 32px 112px;background:var(--background)}.tasks-header{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(1120px,100%);margin:0 auto}.tasks-header h1{font-size:28px;font-weight:650}.tasks-header p{margin-top:6px;color:var(--muted-foreground);font-size:14px}.tasks-header>.assignee-avatar{width:36px;height:36px}.tasks-create{position:-webkit-sticky;position:sticky;bottom:30px;z-index:20;display:grid;grid-template-columns:minmax(260px,1fr) 34px 34px 34px;align-items:center;grid-gap:10px;gap:10px;width:min(380px,100%);min-height:58px;margin:auto auto 0;padding:9px;border:0;border-radius:calc(var(--radius) + 6px);background:hsla(0,0%,5%,.92);box-shadow:0 16px 48px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tasks-date-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.deadline-picker{position:relative;display:inline-grid;min-width:0}.deadline-picker>button{width:100%}.deadline-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:grid;grid-template-columns:132px 96px auto;align-items:end;grid-gap:8px;gap:8px;min-width:max-content;padding:10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);box-shadow:0 16px 42px rgba(0,0,0,.28)}.deadline-popover label{display:grid;grid-gap:5px;gap:5px;min-width:0;color:var(--muted-foreground);font-size:11px}.deadline-popover input{width:100%;min-width:0;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);font:inherit;font-size:13px;color-scheme:dark}.deadline-clear{display:grid;place-items:center;height:32px;width:32px;padding:0;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font:inherit;font-size:13px;cursor:pointer}.deadline-clear:hover{background:var(--accent);color:var(--foreground)}.deadline-clear svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tasks-create-input{width:100%;min-width:0;height:40px;padding:0 2px;border:0;border-radius:0;outline:none;background:transparent;color:var(--foreground);font-size:13px}.tasks-create-input::placeholder{color:var(--muted-foreground)}.tasks-create-input:focus,.tasks-create-input:hover{background:transparent}.tasks-icon-button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);cursor:pointer}.tasks-icon-button.active,.tasks-icon-button:hover{background:var(--accent);color:var(--foreground)}.tasks-icon-button.primary{background:var(--primary);color:var(--primary-foreground)}.tasks-icon-button.primary:hover{background:#d6d6d6;color:var(--primary-foreground)}.tasks-icon-button svg{width:17px;height:17px}.tasks-state{width:min(1120px,100%);margin:-14px auto 0;color:var(--muted-foreground);font-size:13px}.tasks-board{display:grid;grid-gap:12px;gap:12px;width:min(1120px,100%);margin:0 auto}.tasks-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.tasks-summary{display:flex;align-items:center;gap:7px;color:var(--muted-foreground);font-size:13px}.tasks-summary strong{color:var(--foreground);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.tasks-toolbar-actions{display:flex;align-items:center;gap:8px}.tasks-toolbar-button{height:32px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font:inherit;font-size:13px}.tasks-toolbar-button.active,.tasks-toolbar-button:hover{background:var(--accent);color:var(--foreground)}.tasks-table-wrap{overflow:visible;border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}.tasks-table{width:100%;border-collapse:collapse;table-layout:fixed}.tasks-table td,.tasks-table th{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.tasks-table th{height:42px;padding:0 12px;color:var(--muted-foreground);font-size:12px;font-weight:500}.tasks-th-sort{display:inline-flex;align-items:center;gap:4px;background:none;border:none;padding:0;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tasks-th-sort.active,.tasks-th-sort:hover{color:var(--foreground)}.sort-arrows{display:inline-flex;flex-direction:column;gap:1px;line-height:1}.sort-arrow{font-size:7px;opacity:.25;line-height:1}.sort-arrow.on{opacity:1}.view-panel{position:relative}.view-panel-dropdown{position:absolute;top:calc(100% + 6px);right:0;z-index:50;min-width:140px;padding:4px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:0 8px 24px rgba(0,0,0,.2)}.view-panel-option{display:flex;align-items:center;justify-content:space-between;width:100%;padding:6px 8px;background:none;border:none;border-radius:calc(var(--radius) - 2px);color:var(--foreground);font-size:12px;cursor:pointer;text-align:left}.view-panel-option:hover{background:var(--accent)}.view-panel-check{width:14px;text-align:center;color:var(--muted-foreground);font-size:11px}.tasks-table td{height:52px;padding:7px 12px}.tasks-table tbody tr:last-child td{border-bottom:0}.tasks-table .col-check{width:44px}.tasks-table .col-code{width:100px}.tasks-table .col-client{width:130px}.tasks-table .col-status{width:110px}.tasks-table .col-assignee{width:80px}.tasks-table .col-due{width:120px}.tasks-table .col-actions{width:44px}.task-row{background:transparent}.task-row:hover{background:var(--accent)}.task-row.completed .task-title{color:var(--muted-foreground);text-decoration:line-through}.tasks-checkbox{display:grid;place-items:center;width:18px;height:18px}.tasks-checkbox input{position:absolute;opacity:0;pointer-events:none}.tasks-checkbox span{position:relative;width:15px;height:15px;border:1px solid var(--border);border-radius:4px;background:transparent;transition:border-color .14s ease,background .14s ease}.tasks-checkbox input:checked+span{border-color:var(--primary);background:var(--primary)}.tasks-checkbox input:checked+span:after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid var(--primary-foreground);border-width:0 2px 2px 0;transform:rotate(45deg)}.task-code{font-size:12px;font-weight:500}.task-code,.task-project{color:var(--muted-foreground)}.task-project{display:block;width:max-content;max-width:100%;overflow:hidden;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.task-project-linked{text-decoration:none}.task-project-linked:hover,.task-title{color:var(--foreground)}.task-title{min-width:0;width:100%;padding:0;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;overflow:hidden;font-family:inherit;font-size:13px;font-weight:500;line-height:1.3;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text}.task-title-input,.task-title:hover{color:var(--foreground)}.task-title-input{min-width:0;width:100%;height:28px;padding:0 6px;border:1px solid var(--ring);border-radius:var(--radius);outline:none;background:var(--accent);font:inherit;font-size:13px}.task-row-main{display:grid;grid-gap:2px;gap:2px;min-width:0}.task-status{display:inline-flex;align-items:center;height:24px;padding:0 8px;border:1px solid var(--border);border-radius:var(--radius);color:var(--muted-foreground);font-size:12px;white-space:nowrap}.task-status.done{color:#66d68f}.task-status.missed{color:#e87373}.task-status.progress{color:#73ade8}.assignee-picker{position:relative;display:grid;place-items:center}.assignee-button{display:grid;place-items:center;width:30px;height:30px}.assignee-avatar{display:block;width:20px;height:20px;border-radius:50%;flex-shrink:0}.assignee-avatar.assignee-empty{border:1.5px dashed var(--muted-foreground);opacity:.5}.assignee-dropdown{position:absolute;top:calc(100% + 4px);right:0;z-index:50;min-width:160px;padding:4px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);box-shadow:0 8px 24px rgba(0,0,0,.18)}.assignee-option{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--foreground);font-size:13px;cursor:pointer;text-align:left}.assignee-option:hover{background:var(--accent)}.assignee-option.selected{background:var(--accent);font-weight:500}.tasks-due{display:flex;align-items:center;justify-content:center;min-width:96px;height:30px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font-size:12px;cursor:pointer;white-space:nowrap}.tasks-due:hover{background:var(--accent);color:var(--foreground)}.tasks-row-action{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);opacity:0;cursor:pointer}.tasks-row-action:hover{background:#4f0d0d;color:#e25050}.task-row:hover .tasks-row-action,.tasks-row-action:focus-visible{opacity:1}.tasks-row-action svg{width:16px;height:16px}.tasks-empty-cell{height:128px;color:var(--muted-foreground);font-size:13px;text-align:center!important}.deal-stage-select span,.deal-status span{width:10px;height:10px;flex:0 0 auto;border-radius:999px;background:var(--primary)}.deal-stage-select{display:flex;align-items:center;color:var(--foreground)}.deal-stage-select select{width:100%;height:38px;padding:0 10px;border:1px solid transparent;border-radius:var(--radius);outline:0;background:var(--background);color:var(--foreground);font-size:14px}.dialog-actions{display:grid;grid-gap:8px;gap:8px}.dialog-action-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;grid-gap:8px;gap:8px}.dialog-channel-button,.dialog-link-button{display:inline-flex;align-items:center;height:38px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground)}.dialog-channel-button{gap:9px;justify-content:flex-start;padding:0 10px;font-weight:600}.dialog-channel-button.active,.dialog-channel-button:hover,.dialog-link-button:hover{border-color:var(--primary-border);background:var(--primary-soft)}.dialog-link-button{justify-content:center;text-decoration:none}.dialog-channel-button .channel-logo,.dialog-channel-button svg,.dialog-link-button svg{width:17px;height:17px}.channel-chip{display:inline-flex;align-items:center;min-height:28px;padding:0;border-radius:999px;background:var(--card);color:var(--foreground);font-size:12px;font-weight:600;text-decoration:none;overflow:hidden}.channel-chip.active,.channel-chip:hover{background:var(--primary-soft)}.channel-chip-link,.channel-chip-main{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border:0;background:transparent;color:inherit}.channel-chip-main{gap:6px;padding:0 6px 0 8px;cursor:pointer;font:inherit}.channel-chip-link{width:28px;border-left:1px solid var(--border);color:var(--muted-foreground);text-decoration:none}.channel-chip-link:hover{color:var(--foreground)}.channel-chip .channel-logo,.channel-chip svg{width:14px;height:14px}.channel-logo{display:block;flex:0 0 auto;border-radius:999px;object-fit:cover}.qual-button{border:1px solid var(--primary);background:var(--primary);color:var(--primary-foreground);position:relative}.qual-info-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;align-items:center;opacity:.45;transition:opacity .15s;cursor:pointer}.qual-info-icon:hover{opacity:1}.qual-info-icon svg{width:14px;height:14px}.qual-button.active{border-color:#ae7613;background:#2e230f;color:#f7c164}.label-chips{display:flex;flex-wrap:wrap;gap:6px}.label-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 8px;border:0;border-radius:999px;background:var(--card);color:#fff;font-size:12px;font-weight:600}.label-chip-button{cursor:pointer}.label-chip-button:hover{background:var(--primary-soft);color:var(--foreground)}.label-chip-button.active{background:var(--primary);color:var(--primary-foreground)}.content-workspace,.settings-workspace{display:flex;min-width:0;min-height:0;flex-direction:column;background:var(--background)}.settings-workspace{overflow:hidden}.content-header{display:flex;align-items:center;justify-content:space-between;height:73px;flex:0 0 auto;padding:0 22px;border-bottom:1px solid var(--border);background:#0a0a0a}.ghost-link{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);color:var(--foreground);font-size:13px;font-weight:600;text-decoration:none}.ghost-link:hover{background:var(--accent)}.settings-add{width:38px;padding:0}.ghost-button.icon-only{display:inline-grid;place-items:center;width:38px;min-width:38px;padding:0}.ghost-button.icon-only svg{width:18px;height:18px}.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:0;flex:1 1}.settings-section-nav{display:flex;flex-direction:column;gap:4px;padding:18px 12px;background:var(--background)}.settings-section-nav button{display:flex;align-items:center;min-height:36px;padding:0 10px;border:0;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font-size:13px;font-weight:600;text-align:left;text-decoration:none}.settings-section-nav button.active,.settings-section-nav button:hover{background:var(--accent);color:var(--foreground)}.settings-sections{display:flex;min-width:0;flex-direction:column;gap:18px;overflow:auto;padding:18px 22px 28px}.settings-section{display:grid;grid-gap:14px;gap:14px;max-width:1100px}.settings-section-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.settings-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.settings-save-state{min-width:160px;color:#6ad290;font-size:12px;text-align:right}.settings-save-state.dirty{color:#ecba65}.ghost-button.primary-action{background:var(--primary);color:var(--primary-foreground)}.ghost-button.primary-action:disabled{background:var(--muted);color:var(--muted-foreground);cursor:default;opacity:.7}.quick-settings-list{display:grid;grid-gap:14px;gap:14px;overflow:auto;padding:18px 22px}.quick-settings-list.compact{overflow:visible;padding:0}.quick-settings-card{display:grid;grid-gap:12px;gap:12px;max-width:980px;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}.quick-settings-card.dragging{opacity:.55}.property-card-title{width:-moz-fit-content;width:fit-content;max-width:100%;margin-bottom:10px;color:var(--foreground);font-size:13px;font-weight:650;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.property-card-title:active{cursor:-webkit-grabbing;cursor:grabbing}.property-drag-title{width:-moz-fit-content;width:fit-content;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.property-drag-title:active{cursor:-webkit-grabbing;cursor:grabbing}.quick-settings-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,280px);grid-gap:12px;gap:12px}.deal-stage-group-settings{gap:14px}.settings-stage-list{display:grid;grid-gap:8px;gap:8px}.settings-stage-row{display:grid;grid-template-columns:minmax(220px,1fr) 120px 38px;align-items:end;grid-gap:8px;gap:8px}.info-field.compact-number{min-width:0}.deal-stage-group-settings .settings-add{width:-moz-fit-content;width:fit-content;padding:0 12px}.property-settings-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,220px) minmax(220px,1fr);grid-gap:12px;gap:12px}.info-field{display:grid;grid-gap:6px;gap:6px}.info-field input,.info-field select{width:100%;height:38px;padding:0 10px;border:1px solid transparent;border-radius:var(--radius);outline:0;background:var(--background);color:var(--foreground);font:inherit;font-size:14px}.info-field input::placeholder{color:var(--muted-foreground)}.info-field input:focus,.info-field select:focus{background:var(--accent)}.info-field textarea{width:100%;min-height:96px;resize:vertical;padding:10px;border:1px solid transparent;border-radius:var(--radius);outline:0;background:var(--background);color:var(--foreground);font:inherit;font-size:14px;line-height:1.45}.info-field textarea::placeholder{color:var(--muted-foreground)}.info-field textarea:focus{background:var(--accent)}.quick-settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-muted{color:var(--muted-foreground);font-size:12px}.toggle-row{display:inline-flex;align-items:center;gap:10px;color:var(--foreground);font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}.toggle-row input{position:absolute;opacity:0}.toggle-row i{position:relative;width:42px;height:24px;border:1px solid var(--border);border-radius:999px;background:var(--muted)}.toggle-row i:after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:999px;background:var(--muted-foreground);content:"";transition:transform .16s ease,background .16s ease}.toggle-row input:checked+i{border-color:var(--primary-border);background:var(--primary-soft)}.toggle-row input:checked+i:after{background:var(--primary);transform:translateX(18px)}.ghost-button.danger{width:38px;padding:0;color:#ed6e6e}.content-frame{width:100%;min-height:0;flex:1 1;border:0;background:var(--background)}.content-empty-state{display:grid;flex:1 1;place-content:center;grid-gap:8px;gap:8px;padding:24px;color:var(--muted-foreground);text-align:center}.content-empty-state h2{color:var(--foreground)}@media (max-width:1180px){body{overflow:auto}.app-shell{height:100vh}}@media (max-width:900px){.property-settings-grid,.quick-settings-grid,.settings-layout{grid-template-columns:1fr}.settings-section-nav{border-bottom:0}}.docs-shell{grid-template-columns:71px minmax(0,1fr)}.docs-workspace{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--background)}.docs-header{flex-shrink:0;padding:20px 24px 16px;border-bottom:1px solid var(--border)}.doc-tabs{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:4px;gap:4px;flex-shrink:0;margin:12px 16px 0;padding:4px;border-radius:var(--radius);background:var(--muted)}.doc-tabs a{display:flex;align-items:center;justify-content:center;height:32px;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--muted-foreground);font-size:13px;font-weight:500;text-decoration:none}.doc-tabs a.active{background:var(--card);color:var(--foreground);box-shadow:0 1px 2px rgba(0,0,0,.18)}.docs-body{flex:1 1;margin-top:12px}.docs-body,.docs-two-col{min-height:0;display:flex;overflow:hidden}.docs-two-col{width:100%}.docs-list-panel{width:260px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--border);overflow-y:auto}.docs-list-header{padding:12px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.docs-new-btn{width:100%;height:34px;font-size:13px}.docs-empty{padding:20px 16px;color:var(--muted-foreground);font-size:13px}.docs-list{list-style:none;padding:8px 0;margin:0}.docs-list-item{display:flex;align-items:center;gap:4px;padding:0 8px 0 16px;border-radius:var(--radius)}.docs-list-item.active{background:var(--primary-soft)}.docs-list-title{flex:1 1;min-width:0;height:38px;padding:0;border:none;background:none;color:var(--foreground);font-size:13px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.docs-list-item.active .docs-list-title{color:var(--primary);font-weight:500}.docs-delete-btn{flex-shrink:0;width:22px;height:22px;border:none;background:none;color:var(--muted-foreground);font-size:18px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s}.docs-list-item:hover .docs-delete-btn{opacity:1}.docs-editor-panel{flex:1 1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.docs-mode-bar{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:10px 20px;border-bottom:1px solid var(--border)}.docs-mode-tabs{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:3px;gap:3px;padding:3px;border-radius:var(--radius);background:var(--muted)}.docs-mode-tabs button{height:28px;padding:0 16px;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;color:var(--muted-foreground);font-size:13px;cursor:pointer;white-space:nowrap}.docs-mode-tabs button.active{background:var(--card);color:var(--foreground);box-shadow:0 1px 2px rgba(0,0,0,.18)}.docs-mode-tabs button:disabled{opacity:.35;cursor:default}.docs-save-btn{width:auto;height:32px;padding:0 18px;font-size:13px}.docs-save-btn:disabled{opacity:.4;cursor:not-allowed}.docs-link-row{display:flex;align-items:center;gap:8px;min-width:0;margin-left:auto}.docs-permalink{color:var(--primary);font-size:12px;font-family:monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.docs-copy-btn{flex-shrink:0;height:28px;padding:0 10px;font-size:12px}.docs-read-body{flex:1 1;overflow-y:auto;padding:28px 36px 48px 108px}.docs-read-content{max-width:600px}.docs-editor-body{flex:1 1;min-height:0;display:flex;flex-direction:column;padding:16px 20px;gap:10px}.docs-editor-top{flex-shrink:0}.docs-title-input{width:100%;height:42px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);font-size:18px;font-weight:600}.docs-slug-preview{margin-top:6px;color:var(--muted-foreground);font-size:12px;font-family:monospace}.docs-content-input{flex:1 1;min-height:0;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);font-size:13px;font-family:monospace;line-height:1.6;resize:none}.docs-editor-placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted-foreground);font-size:14px}.docs-view-wrap{width:100%;padding:28px 36px 48px 108px;overflow-y:auto}.docs-view-inner{max-width:600px}.docs-view-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.docs-action-btn{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}.docs-action-btn:hover{background:var(--muted)}.docs-back{color:var(--muted-foreground);font-size:13px;text-decoration:none}.docs-back:hover{color:var(--foreground)}.docs-view-title{margin-bottom:24px;font-size:28px}.docs-not-found{color:var(--muted-foreground);margin-bottom:16px}.md-view{line-height:1.7}.md-view h1{margin:0 0 20px;font-size:22px;padding-bottom:10px}.md-view h1,.md-view h2{border-bottom:1px solid var(--border)}.md-view h2{margin:32px 0 12px;font-size:18px;padding-bottom:8px}.md-view h3{margin:24px 0 8px;font-size:15px}.md-view h4,.md-view h5,.md-view h6{margin:20px 0 6px;font-size:14px;color:var(--muted-foreground)}.md-view p{margin:0 0 12px}.md-view ol,.md-view ul{margin:0 0 14px 22px}.md-view li{margin-bottom:5px}.md-view hr{margin:28px 0;border:none;border-top:1px solid var(--border)}.md-view .md-blockquote{margin:0 0 14px;padding:10px 16px;border-left:3px solid var(--primary);background:var(--muted);border-radius:0 var(--radius) var(--radius) 0}.md-view .md-blockquote p{margin:0;color:var(--muted-foreground)}.md-view .md-pre{margin:0 0 16px;padding:14px 16px;border-radius:var(--radius);background:#0f0f0f;overflow-x:auto}.md-view .md-pre code{background:none;padding:0;font-size:13px;font-family:monospace;line-height:1.6;white-space:pre}.md-inline-code{padding:1px 5px;border-radius:4px;background:var(--muted);font-size:13px;font-family:monospace}.md-view a{color:var(--primary);text-decoration:underline}.md-table-wrap{margin:0 0 16px;overflow-x:auto}.md-table{width:100%;border-collapse:collapse;font-size:14px}.md-table td,.md-table th{padding:8px 14px;border:1px solid var(--border);text-align:left;vertical-align:top}.md-table th{background:var(--muted);font-weight:600;white-space:nowrap}.md-table tr:hover td{background:#121212}.docs-ai-placeholder{width:100%;color:var(--muted-foreground);font-size:14px}.docs-ai-placeholder,.login-shell{display:flex;align-items:center;justify-content:center}.login-shell{min-height:100vh;background:var(--background)}.login-form{display:flex;flex-direction:column;gap:12px;width:100%;max-width:340px;padding:40px 32px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius)}.login-logo{display:flex;justify-content:center;margin-bottom:4px}.login-logo img{width:48px;height:48px;object-fit:contain}.login-title{font-size:18px;font-weight:600;text-align:center;margin:0 0 8px}.login-field input{width:100%;height:38px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background);color:var(--foreground);font-size:14px;outline:none;box-sizing:border-box}.login-field input:focus{background:var(--accent)}.login-field input:disabled{opacity:.5}.login-error{font-size:13px;color:#e05252;margin:0;text-align:center}.login-submit{height:38px;border:0;border-radius:var(--radius);background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:500;cursor:pointer;margin-top:4px}.login-submit:disabled{opacity:.5;cursor:default}.login-submit:not(:disabled):hover{opacity:.88}.client-task-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}.client-task-item{display:grid;grid-template-columns:24px minmax(0,1fr) 30px auto 28px;align-items:center;grid-gap:4px;gap:4px;padding:3px 0;border-radius:var(--radius)}.client-task-item.completed .client-task-title{text-decoration:line-through;color:var(--muted-foreground)}.client-task-title{min-width:0;width:100%;padding:2px 4px;border:0;border-radius:calc(var(--radius) - 2px);background:transparent;color:#d1d1d1;font-family:inherit;font-size:12px;font-weight:400;line-height:1.35;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}.client-task-title:hover{background:var(--accent);color:var(--foreground)}.client-task-title-input{min-width:0;width:100%;height:28px;padding:0 6px;border:1px solid var(--ring);border-radius:var(--radius);outline:none;background:var(--accent);color:var(--foreground);font:inherit;font-size:13px}.client-task-due{display:grid;place-items:center;min-width:68px;height:28px;padding:0 6px;border:0;border-radius:var(--radius);background:transparent;font-size:11px;color:var(--muted-foreground);white-space:nowrap;cursor:pointer}.client-task-due:hover{background:var(--accent);color:var(--foreground)}.client-task-due.empty{min-width:56px;opacity:.72}