:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-accent:#176a70;--color-canvas:#f5f7f8;--color-surface:#fff;--color-surface-soft:#eef3f3;--color-text:#142b2e;--color-text-muted:#586a6e;--color-border:#d4dedf;--color-danger:#b42318;--color-success:#18794e;--color-warning:#8a5a00;--radius-control:8px;--radius-panel:12px;--workspace-standard-max-width:1280px;--app-footer-height:38px;--project-tabs-height:0px;--app-footer-occupied-height:max(44px, var(--app-footer-height));--project-tabs-occupied-height:0px;--safe-bottom:env(safe-area-inset-bottom,0px);--workspace-bottom-clearance:calc(var(--app-footer-occupied-height) + var(--project-tabs-occupied-height) + var(--safe-bottom) + 24px);--ink:var(--color-text);--muted:var(--color-text-muted);--line:var(--color-border);--surface:var(--color-surface);--surface-soft:var(--color-surface-soft);--accent:var(--color-accent);--accent-soft:#dceff0;--danger:var(--color-danger);--footer-height:var(--app-footer-height);font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}html,body{background:var(--surface-soft);min-height:100%;color:var(--ink);margin:0}body{min-width:0}.kvagga-build-info{z-index:5;right:max(8px, env(safe-area-inset-right));bottom:max(8px, env(safe-area-inset-bottom));color:#586a6e;text-align:right;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;background:#ffffffeb;border-radius:3px;max-width:min(360px,100vw - 16px);padding:2px 4px;font:11px/1.4 Inter,Segoe UI,Arial,sans-serif;position:fixed}body:has(.login-footer) .kvagga-build-info{bottom:calc(52px + env(safe-area-inset-bottom))}body:has(.planner-sets) .kvagga-build-info{bottom:calc(66px + env(safe-area-inset-bottom))}@media (max-width:1279px){body:has(.workspace-shell--responsive) .kvagga-build-info{bottom:calc(72px + env(safe-area-inset-bottom))}body:has(.workspace-shell--responsive .planner-sets) .kvagga-build-info{bottom:calc(132px + env(safe-area-inset-bottom))}}@media (max-width:1080px){body:has(.workspace-shell--responsive .planner-sets) .kvagga-build-info{bottom:calc(72px + env(safe-area-inset-bottom))}}a{color:inherit}.skip-link{z-index:100;background:var(--ink);color:#fff;border-radius:8px;padding:10px 14px;position:fixed;top:-80px;left:12px}.skip-link:focus{top:10px}.app-header{border-bottom:1px solid var(--line);background:var(--surface);grid-template-columns:max-content 1fr max-content;align-items:center;gap:24px;min-height:64px;padding:0 24px;display:grid}.brand{letter-spacing:.02em;align-items:center;min-height:44px;font-weight:800;text-decoration:none;display:inline-flex}.profile-link{border-radius:8px;padding:10px 12px;text-decoration:none}.account-menu{justify-self:end;align-items:center;gap:8px;min-width:0;display:flex}.account-menu__name{max-width:200px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.account-menu__link,.secondary-button{background:var(--surface);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;border:1px solid #9bacae;border-radius:8px;justify-content:center;align-items:center;padding:9px 12px;font-weight:700;text-decoration:none;display:inline-flex}.account-menu__link:focus-visible,.secondary-button:focus-visible{outline-offset:2px;outline:3px solid #f0b74f}.secondary-button:disabled{cursor:wait;opacity:.6}.module-nav{align-items:stretch;display:flex}.module-nav--top{justify-content:center;gap:4px;min-width:0}.module-nav__link{min-height:44px;color:var(--muted);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;padding:0 14px;text-decoration:none;display:inline-flex}.module-nav__link[aria-current=page]{background:var(--accent-soft);color:var(--accent);font-weight:700}.module-nav__link:focus-visible,.profile-link:focus-visible,.brand:focus-visible{outline-offset:2px;outline:3px solid #f0b74f}.workspace-content{min-height:calc(100dvh - 64px);padding:24px 24px calc(var(--footer-height) + 24px)}.workspace-heading{max-width:var(--workspace-standard-max-width);margin:0 auto 20px}.workspace-eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 4px;font-size:12px}h1{margin:0;font-size:clamp(24px,3vw,36px)}.empty-state{max-width:var(--workspace-standard-max-width);background:var(--surface);color:var(--muted);border:1px dashed #a9babc;border-radius:12px;margin:0 auto;padding:24px}.auth-page,.auth-status{place-items:center;min-height:100dvh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;width:min(100%,520px);padding:clamp(24px,5vw,40px);box-shadow:0 12px 32px #112d3014}.auth-card--welcome{width:min(100%,620px)}.auth-card:not(.auth-card--welcome){width:min(100%,420px);box-shadow:none;border-radius:12px;padding:24px}.auth-card:not(.auth-card--welcome) .auth-brand{margin-bottom:12px}.auth-card:not(.auth-card--welcome) h1{margin:0 0 6px;font-size:22px;line-height:28px}.auth-card:not(.auth-card--welcome) .auth-intro{margin-bottom:20px}.auth-card:not(.auth-card--welcome) .auth-form{gap:12px}.auth-card:not(.auth-card--welcome) .form-field input{height:36px;min-height:36px;padding:6px 10px}.auth-card:not(.auth-card--welcome) .primary-button{width:max-content;min-height:36px;padding:6px 16px}@media (max-width:767px),(pointer:coarse){.auth-card:not(.auth-card--welcome) .form-field input{height:44px;min-height:44px;font-size:16px}.auth-card:not(.auth-card--welcome) .primary-button{width:100%;min-height:44px}}.auth-loading{color:var(--muted);margin:0}.auth-load-error{gap:16px;display:grid}.auth-brand{color:var(--accent);letter-spacing:.02em;margin:0 0 24px;font-weight:800}.auth-card h1{margin-bottom:12px}.auth-intro{color:var(--muted);margin:0 0 28px;line-height:1.55}.auth-form{gap:20px;display:grid}.form-field{gap:7px;display:grid}.form-field label{font-weight:700}.form-field input{background:var(--surface);width:100%;min-height:48px;color:var(--ink);font:inherit;border:1px solid #9bacae;border-radius:8px;padding:11px 12px}.form-field input[aria-invalid=true]{border-color:var(--danger)}.form-field input:focus-visible,.primary-button:focus-visible{outline-offset:2px;outline:3px solid #f0b74f}.field-help,.field-error,.form-message{margin:0;font-size:14px;line-height:1.45}.field-help{color:var(--muted)}.field-error,.form-message{color:var(--danger)}.form-message:empty{display:none}.primary-button{border:1px solid var(--accent);background:var(--accent);color:#fff;min-height:48px;font:inherit;cursor:pointer;border-radius:8px;padding:11px 20px;font-weight:700}.primary-button:hover{background:#11575c}.primary-button:disabled{cursor:wait;opacity:.6}.auth-page--login{--ink:#1c2c25;--muted:#607269;--line:#d7e0d8;--accent:#477437;--surface:#fff;background:#f4f6f3;grid-template-rows:minmax(min-content,1fr) auto;place-items:stretch stretch;gap:20px;min-width:0;padding:24px 32px 16px}.login-panel{border:1px solid var(--line);background:var(--surface);border-radius:16px;grid-template-columns:320px minmax(0,1fr);place-self:center;width:min(100%,880px);min-width:0;display:grid;overflow:hidden}.login-identity{border-right:1px solid var(--line);flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:40px 24px;display:flex}.login-identity img{width:min(100%,264px);height:auto}.login-wordmark{color:#305a25;letter-spacing:.01em;font-size:25px;font-weight:800}.login-form-panel{min-width:0;padding:48px 60px}.login-mobile-brand{display:none}.login-form-panel h1{text-align:center;margin:0 0 4px;font-size:28px;line-height:1.25}.login-form-panel .auth-intro{text-align:center;margin:0 0 32px;font-size:15px}.login-form-panel .auth-form{gap:16px}.login-form-panel .form-field input{height:44px;min-height:44px;padding:9px 12px}.login-form-panel .primary-button{width:100%;min-height:44px}.login-form-panel .primary-button:hover{background:#385e2b}.login-footer{justify-content:space-between;align-items:end;gap:16px;width:100%;display:flex}.login-footer a{color:#305a25;text-underline-offset:3px;align-items:center;min-height:44px;font-size:13px;text-decoration:underline;display:flex}.login-footer a:last-child{text-align:right}.login-footer a:focus-visible{outline-offset:2px;outline:3px solid #f0b74f}.auth-page--closed-alpha{--ink:#1c2c25;--muted:#607269;--line:#d7e0d8;--accent:#477437;--surface:#fff;background:#f4f6f3;grid-template-rows:minmax(min-content,1fr) auto;place-items:stretch stretch;gap:20px;min-width:0;padding:24px 32px 16px}.closed-alpha-panel{border:1px solid var(--line);background:var(--surface);border-radius:16px;place-self:center;width:min(100%,440px);min-width:0;padding:32px 40px 40px}.closed-alpha-brand{flex-direction:column;justify-content:center;align-items:center;gap:6px;height:152px;margin-bottom:24px;display:flex}.closed-alpha-brand img{object-fit:contain;width:118px;height:118px;display:block}.closed-alpha-brand .login-wordmark{font-size:22px;line-height:28px}.closed-alpha-panel h1{text-align:center;margin:0 0 4px;font-size:28px;line-height:1.25}.closed-alpha-panel .auth-intro{text-align:center;margin:0 0 28px;font-size:15px}.closed-alpha-form{gap:20px;display:grid}.closed-alpha-form .form-field input{text-align:center;letter-spacing:.22em;min-height:56px;font-size:22px}.closed-alpha-form .primary-button{width:100%;min-height:44px}.closed-alpha-form .primary-button:hover{background:#385e2b}.closed-alpha-form .field-help,.closed-alpha-form .field-error{text-align:center}@media (max-width:900px){.login-panel{grid-template-columns:minmax(0,1fr);max-width:560px}.login-identity{border-right:0;gap:12px;padding:24px 24px 0}.login-identity img{width:172px}.login-identity .login-wordmark{font-size:23px}.login-form-panel{width:min(100%,560px);padding:32px 60px 48px}}@media (max-width:600px){.auth-page--login{padding:16px 16px max(16px, env(safe-area-inset-bottom));background:#fff}.login-panel{border:0;border-radius:0;width:min(100%,440px);overflow:visible}.login-identity{display:none}.login-form-panel{width:100%;padding:0}.login-mobile-brand{justify-content:center;align-items:center;gap:12px;margin-bottom:48px;display:flex}.login-mobile-brand img{width:70px;height:70px}.login-mobile-brand .login-wordmark{font-size:18px}.login-form-panel h1{font-size:24px}.login-form-panel .auth-intro{margin-bottom:32px;font-size:14px}.login-form-panel .form-field input{font-size:16px}.login-footer{align-items:start}.login-footer a{overflow-wrap:break-word;flex:0 48%;min-width:0;font-size:12px;line-height:1.35}.login-footer a:last-child{justify-content:flex-end}.auth-page--closed-alpha{padding:16px 16px max(16px, env(safe-area-inset-bottom));background:#fff}.closed-alpha-panel{border:0;border-radius:0;padding:16px 0 24px}.closed-alpha-panel h1{font-size:24px}.closed-alpha-panel .auth-intro{font-size:14px}.closed-alpha-form .form-field input{font-size:22px}}@media (max-width:900px) and (max-height:800px){.login-identity img{display:none}}@media (max-width:600px) and (max-height:700px){.login-panel{align-self:start}.login-mobile-brand{margin-bottom:24px}.closed-alpha-panel{align-self:start}.closed-alpha-brand{margin-bottom:12px}}.admin-workspace{gap:20px;min-width:0;max-width:1120px;margin:0 auto;display:grid}.admin-panel{min-width:0}.admin-restore-dialog{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);width:min(640px,100% - 32px);max-height:calc(100dvh - 32px);color:var(--ink);border-radius:12px;padding:24px;overflow-y:auto}.admin-restore-dialog::backdrop{background:#112d3080}.admin-restore-dialog h2{margin-top:0}.admin-restore-dialog dd{overflow-wrap:anywhere;margin:4px 0 12px}.admin-restore-dialog code,.admin-restore-dialog .admin-backups__id{overflow-wrap:anywhere}.admin-restore-dialog__key,.admin-backups__restore{gap:8px;min-width:0;display:grid}.admin-restore-dialog__key input,.admin-backups__restore select{min-width:0;max-width:100%}.admin-restore-dialog__actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.admin-restore-dialog .checkbox-field{align-items:center;gap:8px;min-height:44px;display:flex}.admin-restore-dialog .checkbox-field input{flex:0 0 20px;width:20px;height:20px}.admin-restore-dialog :focus-visible{outline-offset:2px;outline:3px solid #275fad}.admin-panel{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:clamp(16px,3vw,24px);box-shadow:0 4px 14px #112d300a}.admin-panel__heading{justify-content:space-between;align-items:start;gap:16px;margin-bottom:20px;display:flex}.admin-panel h2{margin:0;font-size:clamp(20px,2.2vw,26px)}.admin-panel__hint{max-width:440px;color:var(--muted);text-align:right;margin:0;font-size:14px;line-height:1.5}.admin-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}.admin-form__fields{grid-column:1/-1;grid-template-columns:subgrid;border:0;gap:16px;min-width:0;margin:0;padding:0;display:grid}.admin-form>.field-help{grid-column:1/-1}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.admin-workspace :focus-visible,.account-menu__link:focus-visible{outline-offset:2px;outline:3px solid #275fad}.admin-form .checkbox-field,.admin-form .form-message,.admin-form .primary-button{grid-column:1/-1}.checkbox-field{align-items:center;gap:10px;min-height:44px;font-weight:700;display:inline-flex}.checkbox-field input{block-size:20px;inline-size:20px;accent-color:var(--accent)}.admin-loading{color:var(--muted);margin:0}.admin-load-error{color:var(--danger);align-items:center;gap:16px;display:flex}.admin-load-error p{margin:0}.admin-table-wrap{border:1px solid var(--line);border-radius:8px;overflow-x:auto}.admin-table-wrap:focus-visible{outline-offset:2px;outline:3px solid #f0b74f}.admin-table{border-collapse:collapse;text-align:left;width:100%;min-width:660px}.admin-table th,.admin-table td{border-bottom:1px solid var(--line);vertical-align:top;padding:12px 14px}.admin-table th{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:12px}.admin-table tbody tr:last-child td{border-bottom:0}.admin-table td span{color:var(--muted);margin-top:3px;font-size:14px;display:block}.module-nav--bottom{z-index:50;height:var(--footer-height);box-shadow:inset 0 1px var(--line), 0 -4px 16px #112d300f;padding-inline:max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));background:#fffffff7;position:fixed;bottom:0;left:0;right:0}.module-nav--bottom .module-nav__link{border-radius:0;flex:1;min-width:0;min-height:38px;padding:0 8px;font-size:12px}@media (max-width:900px){.admin-panel__heading{flex-direction:column;align-items:stretch}.admin-panel__hint{text-align:left;max-width:none}.admin-form{grid-template-columns:1fr}.admin-table{min-width:0}.admin-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.admin-table,.admin-table tbody,.admin-table tr,.admin-table td{display:block}.admin-table tr{border-bottom:1px solid var(--line);padding:12px}.admin-table td{overflow-wrap:anywhere;border:0;padding:4px 0}.admin-table td[data-label]:before{content:attr(data-label) ": ";font-weight:700}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.workspace-shell--responsive{--app-footer-height:44px;--app-footer-occupied-height:max(44px, var(--app-footer-height));--footer-height:var(--app-footer-height);--workspace-bottom-clearance:calc(var(--app-footer-occupied-height) + var(--project-tabs-occupied-height) + var(--safe-bottom) + 24px);background:var(--color-canvas);overflow-wrap:anywhere;min-width:0;min-height:100dvh;font-size:16px;line-height:1.5}.workspace-shell--responsive .app-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:56px;padding:8px 16px}.workspace-shell--responsive .app-header>*,.workspace-page,.workspace-container{min-width:0;max-width:100%}.workspace-container>*{min-width:0}.workspace-shell--responsive .brand{font-size:14px}.workspace-shell--responsive .module-nav--top{display:none}.workspace-shell--responsive .account-menu{flex-wrap:wrap;max-width:100%}.workspace-shell--responsive .account-menu__name{display:none}.workspace-shell--responsive .account-menu__link{padding-inline:8px;font-size:14px}.workspace-shell--responsive :is(input,select,textarea,button){font-size:16px}.workspace-page{min-height:calc(100dvh - 56px);padding:20px 16px;padding-bottom:var(--workspace-bottom-clearance)}.workspace-container{width:100%;max-width:var(--workspace-standard-max-width);margin-inline:auto}.workspace-shell--responsive .module-nav--bottom{height:calc(var(--app-footer-occupied-height) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:linear-gradient(var(--color-surface), var(--color-surface)) bottom / 100% calc(var(--app-footer-height) + var(--safe-bottom)) no-repeat;box-shadow:none}.workspace-shell--responsive .module-nav--bottom .module-nav__link{min-height:var(--app-footer-occupied-height);white-space:normal;overflow-wrap:anywhere;padding-inline:4px;font-size:11px}.workspace-shell--responsive .module-nav__link{border-radius:var(--radius-control);transition:background-color .15s,color .15s}.workspace-shell--responsive .module-nav--bottom .module-nav__link{border-radius:0}.workspace-shell--responsive .module-nav__link:hover{background:var(--color-surface-soft);color:var(--color-accent)}.workspace-shell--responsive .module-nav__link[aria-current=page]{background:var(--color-surface-soft);color:var(--color-accent);font-weight:700}.workspace-shell--responsive .module-nav--bottom .module-nav__link:hover,.workspace-shell--responsive .module-nav--bottom .module-nav__link[aria-current=page]{background:linear-gradient(var(--color-surface-soft), var(--color-surface-soft)) bottom / 100% var(--app-footer-height) no-repeat}.workspace-shell--responsive :focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}.workspace-shell--responsive .workspace-heading{margin-bottom:24px}.ui-error-banner{border:1px solid var(--color-danger);border-radius:var(--radius-control);color:var(--color-danger);background:var(--color-surface);flex-wrap:wrap;align-items:center;gap:12px;padding:16px;display:flex}.ui-error-banner p,.ui-loading p,.ui-empty-state p{margin:0}.ui-loading{color:var(--color-text-muted);gap:12px;display:grid}.ui-loading-rows{gap:8px;display:grid}.ui-loading-row{border-radius:var(--radius-control);background:var(--color-surface-soft);height:44px}.ui-empty-state{color:var(--color-text-muted);overflow-wrap:anywhere;justify-items:start;gap:12px;padding-block:24px;display:grid}.ui-empty-state__title{color:var(--color-text);font-weight:700}.ui-live-notice{color:var(--color-text-muted);overflow-wrap:anywhere}@media (min-width:768px){.workspace-shell--responsive .app-header,.workspace-page{padding-inline:24px}.workspace-shell--responsive .module-nav--bottom .module-nav__link{font-size:14px}.workspace-shell--responsive .account-menu__name{max-width:160px;display:inline}}@media (min-width:1024px){.workspace-shell--responsive{--app-footer-height:38px;font-size:14px}.workspace-shell--responsive .app-header{grid-template-columns:auto minmax(0,1fr) auto;gap:16px;min-height:64px}.workspace-shell--responsive .module-nav--top{flex-wrap:wrap;display:flex}.workspace-shell--responsive .module-nav--top .module-nav__link{white-space:normal;padding-inline:8px}.workspace-shell--responsive .account-menu__name{display:none}.workspace-shell--responsive :is(input,select,textarea,button){font-size:14px}.workspace-page{min-height:calc(100dvh - 64px);padding-top:24px}}@media (min-width:1280px){.workspace-shell--responsive .account-menu__name{display:inline}.workspace-shell--responsive .module-nav--top .module-nav__link{padding-inline:14px}}@media (min-width:1440px){.workspace-shell--responsive .account-menu__name{max-width:200px}}.invitation-diagnostic{overflow-wrap:anywhere}.invitation-diagnostic__status{color:var(--accent,#12665d)}.invitation-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin-top:24px;display:grid}.invitation-facts dt{color:#52646b;font-size:.875rem}.invitation-facts dd{margin:4px 0 0}.admin-panel button[aria-disabled=true]{opacity:.65;cursor:wait}@media (max-width:600px){.invitation-facts{grid-template-columns:minmax(0,1fr)}}.crm-workspace{overflow-wrap:anywhere}.crm-workspace a{color:var(--color-accent)}.crm-workspace .primary-button{color:var(--color-surface)}.crm-back{justify-self:start;align-items:center;min-height:44px;display:inline-flex}.crm-toolbar{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:24px;display:flex}.crm-toolbar>*{min-width:0}.crm-eyebrow{color:var(--color-text-muted);letter-spacing:.04em;margin:0 0 4px;font-size:12px}.crm-intro{color:var(--color-text-muted);max-width:64ch;margin-block:12px 24px}.crm-form-group{border-bottom:1px solid var(--color-border);gap:16px;min-width:0;padding-block:4px 20px;display:grid}.crm-form-group h3{margin:0;font-size:18px}.crm-company-fields,.crm-channel-grid,.crm-contact-grid,.crm-facts{gap:16px;min-width:0;display:grid}.crm-company-fields>.form-field,.crm-channel-fields{align-content:start}.crm-channel-grid,.crm-contact-grid{align-items:start}.crm-facts{margin:24px 0}.crm-facts>div{border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface-soft);min-width:0;padding:16px}.crm-facts dt{color:var(--color-text-muted);margin-bottom:8px;font-size:12px}.crm-facts dd{margin:0;font-weight:600}.crm-record-date{color:var(--color-text-muted);font-size:12px}.crm-record-date time{display:block}.crm-record-title p{color:var(--color-text-muted);margin:0}.crm-contact h4{margin:0 0 8px;font-size:16px}.crm-contact-label{color:var(--color-accent);margin:0 0 12px}.crm-channels{gap:8px;margin:0;padding:0;list-style:none;display:grid}.crm-validation a,.crm-uncertain>a,.crm-duplicates li a{align-items:center;min-height:44px;display:inline-flex}.crm-load-error{justify-items:start;gap:12px;margin-block:16px;display:grid}.crm-create-link{align-items:center;text-decoration:none;display:inline-flex}.crm-form,.crm-semantic{gap:20px;display:grid}.crm-semantic{border:0;min-width:0;margin:0;padding:0}.crm-form fieldset{border:1px solid var(--color-border);border-radius:var(--radius-control);min-width:0;padding:16px}.crm-form fieldset.crm-semantic{border:0;padding:0}.crm-form select{width:100%;min-height:48px;font:inherit;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-control);padding:10px}.crm-search{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:16px;display:flex}.crm-search .form-field{flex:1;min-width:0}.crm-records{gap:12px;margin:16px 0;padding:0;list-style:none;display:grid}.crm-records>li,.crm-contact{border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);min-width:0;padding:16px}.crm-records>li:hover{background:var(--color-surface-soft)}.crm-records a{align-items:center;min-width:44px;min-height:44px;font-weight:700;display:inline-flex}.crm-channel-fields{gap:12px;display:grid}.crm-channel-row{flex-direction:column;align-items:stretch;gap:12px;display:flex}.crm-channel-row .form-field{flex:1;min-width:0}.crm-duplicates,.crm-uncertain,.crm-validation{border:1px solid var(--color-warning);border-radius:var(--radius-control);background:var(--color-surface-soft);padding:16px}.crm-form .checkbox-field{align-items:start}.crm-form .checkbox-field input{flex-shrink:0}@media (min-width:768px){.crm-toolbar{flex-direction:row;justify-content:space-between;align-items:center}.crm-toolbar>div{flex:1}.crm-toolbar>:is(button,a){flex-shrink:0}.crm-search{flex-direction:row;align-items:end}.crm-records>li{grid-template-columns:minmax(0,1fr) minmax(0,240px);align-items:center;gap:24px;display:grid}.crm-record-date{text-align:right}.crm-directory[aria-label=Поиск\ контактов] .crm-records>li{display:block}.crm-company-fields,.crm-channel-grid,.crm-contact-grid,.crm-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}.crm-duplicates,.crm-uncertain{gap:12px;display:grid}.project-create select{width:100%;min-width:0;min-height:48px;color:var(--ink);font:inherit;background:#fff;border:1px solid #9bacae;border-radius:8px;padding:10px}.project-create{max-width:620px}.project-create fieldset{border:0;gap:20px;min-width:0;margin:0;padding:0;display:grid}.project-create select:focus-visible{outline-offset:-3px;outline:3px solid #f0b74f}.task-actions,.task-list-controls{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;display:flex}.task-create,.task-numbering{border:1px solid var(--line);background:var(--surface);border-radius:10px;max-width:760px;margin:20px 0;padding:20px}.task-create fieldset,.task-numbering fieldset{border:0;gap:9px;min-width:0;padding:0;display:grid}.task-create label,.task-numbering label{font-weight:600}.task-create input:not([type=checkbox]),.task-create select,.task-create textarea,.task-numbering input,.task-list-controls select{width:100%;min-width:0;min-height:48px;font:inherit;color:var(--ink);background:#fff;border:1px solid #9bacae;border-radius:6px;padding:10px}.task-create textarea{resize:vertical;min-height:100px}.task-list-controls select{width:auto}.task-assignees{max-height:220px;overflow-y:auto}.task-assignees label{overflow-wrap:anywhere;align-items:center;gap:10px;min-height:44px;display:flex}.task-assignees input{flex-shrink:0;width:22px;height:22px}.task-numbering :focus-visible{outline-offset:1px;outline:3px solid #f0b74f}.numbering-admin{overflow-wrap:anywhere;max-width:1120px}.numbering-admin form{gap:12px;display:grid}.numbering-admin fieldset{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;display:grid}.numbering-admin fieldset>label,.numbering-admin fieldset>p{grid-column:1/-1}.numbering-admin input:not([type=checkbox]){width:100%;min-width:0;min-height:48px;font:inherit;border:1px solid #9bacae;border-radius:6px;padding:10px}.numbering-admin .checkbox-field{align-items:center;gap:10px;min-height:44px;display:flex}.task-numbering .checkbox-field input[type=checkbox]{flex:0 0 20px;width:20px;min-width:20px;height:20px;min-height:20px;padding:0}.numbering-admin input[aria-invalid=true]{border-color:#a63737;box-shadow:0 0 0 1px #a63737}.numbering-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;margin:16px 0;display:grid}.numbering-facts p{background:var(--surface-soft);overflow-wrap:anywhere;border-radius:8px;margin:0;padding:10px}.numbering-preview{border:1px solid var(--accent);background:var(--accent-soft);border-radius:8px;padding:12px}.numbering-preview h3,.numbering-history h3{margin-top:0}.numbering-history{gap:8px;margin-bottom:12px;display:grid}.numbering-history article{border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(70px,.6fr) minmax(160px,1fr) minmax(0,2fr) minmax(100px,.8fr);gap:10px;padding:10px;display:grid}@media (max-width:900px){.numbering-admin fieldset,.numbering-facts,.numbering-history article{grid-template-columns:minmax(0,1fr)}.numbering-history article span:before{content:""}}.task-urgency{color:var(--muted);margin:4px 0;font-size:12px;display:block}.task-urgency>span:first-child{letter-spacing:1px}.task-card dl{grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:12px;display:grid}.task-card dt{font-weight:600}.task-card dd{overflow-wrap:anywhere;margin:0}.task-description{white-space:pre-wrap}.task-view-controls,.task-saved-views{min-width:0;max-width:100%}.task-view-toolbar{flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0;display:flex}.task-view-toolbar>span{white-space:nowrap;align-self:center;font-size:13px}.task-view-controls label{gap:6px;min-width:0;font-size:14px;display:grid}.task-view-controls input,.task-view-controls select{width:100%;min-width:0;max-width:100%;min-height:44px;color:var(--ink);font:inherit;background:#fff;border:1px solid #7b9093;border-radius:6px;padding:8px}.task-view-controls select[multiple]{min-height:120px}.task-view-controls button,.task-view-controls summary,.task-header-sort{cursor:pointer;min-width:44px;min-height:44px;font:inherit}.task-saved-scroll{align-items:start;gap:8px;padding:4px 2px 10px;display:flex;overflow-x:auto}.task-saved-tab{color:#183038;border:1px solid #7b9093;border-radius:7px;flex:0 0 220px}.task-saved-tab button,.task-saved-tab summary{color:inherit;background:0 0;border:0;padding:10px}.task-saved-name{text-align:left;overflow-wrap:anywhere;width:100%}.task-saved-tab{grid-template-columns:minmax(0,1fr) 44px;display:grid}.task-saved-tab .task-saved-name{grid-area:1/1/auto/-1}.task-saved-tab .task-saved-drag{touch-action:none;cursor:grab;border-top:1px solid #7b9093;grid-area:2/2;align-self:start;width:44px;height:44px;padding:8px}.task-saved-tab details{grid-area:2/1}.task-saved-tab[data-dragging=true]{outline-offset:-3px;outline:2px dashed #183038}.task-saved-tab[data-drop-target=true]{outline-offset:-3px;outline:3px solid #183038}.task-saved-name[aria-current]{text-underline-offset:4px;border:2px solid #183038;border-radius:6px;font-weight:800;text-decoration:underline}.task-saved-tab details{border-top:1px solid #7b9093}.task-set-menu{padding:4px;display:grid}.task-set-menu button{text-align:left}.task-view-dialog{color:var(--ink);background:#fff;border:1px solid #7b9093;border-radius:10px;padding:0}.task-filter-dialog{width:100%;max-width:none;margin:12px 0;position:relative}.task-set-dialog{width:min(540px,100vw - 32px);height:fit-content;min-height:0;max-height:calc(100dvh - 130px);margin:auto;position:fixed;overflow:auto}.task-view-dialog::backdrop{background:#14262d59}.task-dialog-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.task-dialog-heading h4{overflow-wrap:anywhere;margin:0}.task-dialog-heading>button{flex-shrink:0}.task-filter-body,.task-set-body{min-width:0;padding:16px}.task-filter-body>label{margin-bottom:16px}.task-field-help{color:var(--muted);font-size:13px;line-height:1.5;display:block}.task-filter-group,.task-sort-chain,.task-condition{border:1px solid #9bacae;border-radius:6px;min-width:0;margin:12px 0;padding:12px}.task-filter-group legend,.task-sort-chain legend{font-weight:700}.task-condition{background:#f7faf9;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;display:grid}.task-condition>button{justify-self:start}.task-sort-row{grid-template-columns:20px minmax(0,1fr) minmax(0,2fr);gap:8px;margin:16px 0;display:grid}.task-sort-actions{flex-wrap:wrap;grid-column:2/-1;gap:8px;display:flex}.task-filter-actions{border-top:1px solid var(--line);background:#fff;flex-wrap:wrap;justify-content:end;gap:8px;padding:12px 16px;display:flex}.task-palette{border:0;min-width:0;margin:16px 0;padding:0}.task-palette>div{grid-template-columns:repeat(6,minmax(44px,1fr));gap:8px;margin-top:12px;display:grid}.task-palette button{color:#183038;border:1px solid #7b9093;border-radius:6px}.task-palette button[aria-pressed=true]{outline-offset:1px;outline:3px solid #183038;font-weight:800}.task-header-sort{width:100%;color:var(--ink);text-align:left;overflow-wrap:anywhere;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:6px;padding:4px 0;font-weight:700;display:inline-flex}.task-header-sort:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.task-sort-indicator{width:16px;height:16px;color:var(--color-text-muted);flex:none;display:block}.task-sort-indicator.is-active{color:var(--color-accent)}@media (max-width:900px){.task-view-toolbar{align-items:center}.task-number-search{flex-basis:100%}.task-view-toolbar>button{flex:auto}.task-filter-dialog{inset:0 0 calc(var(--footer-height) + 48px + env(safe-area-inset-bottom));border-radius:0;width:100%;max-width:100%;height:auto;max-height:none;margin:0;position:fixed}.task-filter-dialog[open]{flex-direction:column;display:flex}.task-filter-body{flex:1;padding-bottom:24px;overflow-y:auto}.task-dialog-heading,.task-filter-actions{flex-shrink:0}.task-filter-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}.task-filter-actions>button{white-space:nowrap;flex:1;padding:10px;font-size:14px}.task-condition,.task-sort-row{flex-direction:column;align-items:stretch;display:flex}.task-sort-actions{flex-wrap:wrap;display:flex}.task-condition{padding:10px}.task-filter-group{padding:8px}.task-set-dialog{inset:12px 0 calc(var(--footer-height) + 60px + env(safe-area-inset-bottom));max-height:none}.task-palette>div{grid-template-columns:repeat(5,minmax(44px,1fr))}}@media (min-width:901px){.task-filter-dialog .task-filter-actions{bottom:calc(var(--footer-height) + 38px);position:sticky}}@media (max-width:900px){.task-create,.task-numbering{padding:12px}.task-card dl{grid-template-columns:minmax(0,1fr)}.task-card dd{margin-bottom:8px}}.task-view-controls [data-color=calm-01]{background-color:#e4eeeb}.task-view-controls [data-color=calm-02]{background-color:#dcebe7}.task-view-controls [data-color=calm-03]{background-color:#dce8ed}.task-view-controls [data-color=calm-04]{background-color:#e0e5ef}.task-view-controls [data-color=calm-05]{background-color:#e9e4ef}.task-view-controls [data-color=calm-06]{background-color:#efe3e9}.task-view-controls [data-color=calm-07]{background-color:#f0e5df}.task-view-controls [data-color=calm-08]{background-color:#eee9d9}.task-view-controls [data-color=calm-09]{background-color:#e8ecd9}.task-view-controls [data-color=calm-10]{background-color:#dfecd9}.task-view-controls [data-color=calm-11]{background-color:#d9ece6}.task-view-controls [data-color=calm-12]{background-color:#dcecf0}.task-view-controls [data-color=calm-13]{background-color:#e1e7f2}.task-view-controls [data-color=calm-14]{background-color:#e8e3f0}.task-view-controls [data-color=calm-15]{background-color:#eee2ed}.task-view-controls [data-color=calm-16]{background-color:#f1e3e2}.task-view-controls [data-color=calm-17]{background-color:#f2e9df}.task-view-controls [data-color=calm-18]{background-color:#edeedc}.task-view-controls [data-color=calm-19]{background-color:#e3eedf}.task-view-controls [data-color=calm-20]{background-color:#dfeeea}.task-view-controls [data-color=calm-21]{background-color:#e9f2ef}.task-view-controls [data-color=calm-22]{background-color:#e8f0f3}.task-view-controls [data-color=calm-23]{background-color:#eaf0f8}.task-view-controls [data-color=calm-24]{background-color:#efeaf5}.task-view-controls [data-color=calm-25]{background-color:#f5eaf1}.task-view-controls [data-color=calm-26]{background-color:#f7ebeb}.task-view-controls [data-color=calm-27]{background-color:#f7eee6}.task-view-controls [data-color=calm-28]{background-color:#f3f2e5}.task-view-controls [data-color=calm-29]{background-color:#edf3e5}.task-view-controls [data-color=calm-30]{background-color:#e6f2e9}.task-view-toolbar{border-bottom:1px solid var(--color-border);gap:8px;padding-bottom:16px}.task-number-search{flex:240px}.task-number-search-group{flex:240px;align-items:end;gap:6px;min-width:0;display:flex}.task-number-search-group .task-number-search{flex:auto;min-width:0}.task-search-filter-button{border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);width:44px;height:44px;color:var(--color-text);cursor:pointer;flex:none;place-items:center;padding:8px;display:grid}.task-search-filter-button svg{width:18px;height:18px}.task-search-filter-button:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.task-saved-views:has(.task-saved-scroll:empty){display:none}.task-saved-tab{border-radius:var(--radius-control);flex-basis:200px}.task-saved-name{font-weight:600}.task-list-controls{color:var(--color-text-muted)}.task-card dl{grid-template-columns:minmax(0,1fr)}.task-card dt{color:var(--color-text-muted)}.task-card dd{margin-bottom:8px}.task-filter-dialog{inset:0 0 calc(var(--app-footer-occupied-height) + var(--project-tabs-occupied-height) + var(--safe-bottom));border-radius:0;width:100%;max-width:100%;height:auto;max-height:none;margin:0;position:fixed}.task-filter-dialog[open]{flex-direction:column;display:flex}.task-filter-body{flex:1;min-height:0;padding:16px;overflow-y:auto}.task-dialog-heading,.task-filter-actions{background:var(--color-surface);flex-shrink:0}.task-filter-dialog .task-filter-actions{padding:12px 16px;position:static}.task-filter-body section{scroll-margin-top:16px}.task-set-dialog{inset:12px 0 calc(var(--app-footer-occupied-height) + var(--project-tabs-occupied-height) + var(--safe-bottom) + 12px);max-height:calc(100dvh - var(--app-footer-occupied-height) - var(--project-tabs-occupied-height) - var(--safe-bottom) - 24px);overflow-y:auto}.task-set-dialog[open]{flex-direction:column;display:flex}.task-set-dialog>.task-dialog-heading{flex:none}.task-set-dialog :is(.primary-button,.secondary-button):disabled{color:#71806f;opacity:1;cursor:default;background:#edf0ec;border:1px solid #d2d9ce}.task-set-dialog>form{flex-direction:column;flex:0 auto;min-height:0;display:flex;overflow:hidden}.task-set-dialog .task-set-body{flex:auto;min-height:0;overflow-y:auto}.task-set-dialog .task-filter-actions{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.task-set-dialog .task-filter-actions>button{white-space:normal;overflow-wrap:anywhere;min-width:44px;height:auto;min-height:44px}@media (max-width:1279px){.task-number-search,.task-number-search-group{flex-basis:100%}.task-number-search-group .task-number-search{flex-basis:auto}.task-view-toolbar>button{flex:auto}.task-condition,.task-sort-row{flex-direction:column;align-items:stretch;display:flex}}@media (min-width:1280px){.task-card dl{grid-template-columns:minmax(140px,1fr) minmax(0,3fr)}.task-filter-dialog{border-radius:var(--radius-panel);height:auto;max-height:70dvh;margin:12px 0;position:relative;inset:auto}.task-filter-dialog .task-filter-actions{position:static}.workspace-shell--responsive[data-module=projects] .module-nav--top{flex-wrap:nowrap;min-width:0;overflow-x:auto}.workspace-shell--responsive[data-module=projects] .module-nav--top .module-nav__link{flex:none}}@media (max-width:1279px){.workspace-shell--responsive[data-module=projects]{--app-footer-height:64px;--app-footer-occupied-height:64px;--footer-height:64px}.workspace-shell--responsive[data-module=projects] .module-nav--top{display:none}.workspace-shell--responsive[data-module=projects] .module-nav--bottom{display:flex}}
.feedback-host{z-index:110;pointer-events:none;text-align:center;width:min(420px,100vw - 24px);position:fixed;left:50%;transform:translate(-50%)}.feedback-card{-webkit-line-clamp:2;line-clamp:2;color:#193235;overflow-wrap:anywhere;opacity:1;background:#fff;border:1px solid #b8cbb9;border-radius:8px;-webkit-box-orient:vertical;padding:8px 14px;font:600 13px/1.4 Inter,Segoe UI,Arial,sans-serif;transition:opacity .2s,transform .2s;display:-webkit-box;overflow:hidden;box-shadow:0 8px 24px #112d3026}.feedback-host[data-phase=leaving] .feedback-card{opacity:0;transform:translateY(-4px)}@media (prefers-reduced-motion:reduce){.feedback-card{transition:none}}
.workspace-shell--responsive{--app-footer-height:64px;--app-footer-occupied-height:64px}.workspace-shell--responsive .app-header{grid-template-columns:minmax(0,1fr) auto;height:56px;min-height:56px;padding:0 16px}.workspace-shell--responsive .brand{white-space:nowrap;overflow-wrap:normal;gap:7px;min-width:0;height:56px;font-size:16px}.workspace-shell--responsive .brand__mark{flex:none;width:50px;height:50px;display:block;position:relative;overflow:hidden}.workspace-shell--responsive .brand__mark img{width:93px;max-width:none;height:82px;display:block;position:absolute;top:-19px;left:-22px}.workspace-shell--responsive .brand__wordmark{line-height:1}@media (max-width:380px){.workspace-shell--responsive .account-menu__admin{width:44px;min-width:44px;padding:0;font-size:0}.workspace-shell--responsive .account-menu__admin:before{content:"⚙";font-size:20px;line-height:1}}.workspace-shell--responsive .module-nav--top{display:none}.workspace-shell--responsive .module-nav{--module-nav-accent:#176a70;--module-nav-active-surface:#eef3f3;--module-nav-muted:#586a6e;--module-nav-radius:8px;--color-accent:var(--module-nav-accent);--accent:var(--module-nav-accent);--color-surface-soft:var(--module-nav-active-surface);--accent-soft:var(--module-nav-active-surface);--color-text-muted:var(--module-nav-muted);--muted:var(--module-nav-muted);--radius-control:var(--module-nav-radius)}.workspace-shell--responsive .module-nav__link{gap:8px}.workspace-shell--responsive .module-nav--bottom .module-nav__link{flex-direction:column;gap:0;min-height:64px;padding:4px;position:relative}.workspace-shell--responsive .module-nav--bottom .module-nav__link[aria-current=page]:after{content:"";background:currentColor;border-radius:3px;width:22px;height:3px;position:absolute;bottom:4px}.workspace-shell--responsive .workspace-content{min-height:calc(100dvh - 56px);padding:16px 16px var(--workspace-bottom-clearance)}.workspace-shell--responsive .workspace-heading{margin-bottom:16px}.workspace-shell--responsive .workspace-heading>h1{font-size:24px}.workspace-shell--responsive .workspace-eyebrow{display:none}.workspace-shell--responsive[data-module=tasks] .workspace-heading{margin-bottom:4px}.workspace-shell--responsive .auth-status--embedded{min-height:120px;padding:16px}.workspace-shell--responsive .task-view-nav{flex-wrap:wrap;align-items:center;gap:4px 18px;margin:0 0 8px;display:flex}.workspace-shell--responsive .task-view-nav__link{min-height:36px;color:var(--color-text-muted);white-space:nowrap;border-bottom:2px solid #0000;align-items:center;font-size:14px;text-decoration:none;display:inline-flex}.workspace-shell--responsive .task-view-nav__link[aria-current=page]{border-bottom-color:var(--color-accent);color:var(--color-accent);font-weight:700}.workspace-shell--responsive .task-view-nav__link:focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}@media (max-width:780px){.workspace-shell--responsive .task-view-nav__link{min-height:44px}}@media (min-width:1280px){.workspace-shell--responsive{--app-footer-height:0px;--app-footer-occupied-height:0px}.workspace-shell--responsive .app-header{grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);padding-inline:24px}.workspace-shell--responsive .module-nav--top{flex-wrap:nowrap;justify-self:center;display:flex}.workspace-shell--responsive .module-nav--bottom{display:none}.workspace-shell--responsive .workspace-content{padding-inline:24px}}@media (max-width:319px){.workspace-shell--responsive .account-menu{justify-self:start}.workspace-shell--responsive :is(input,select,textarea,fieldset){min-width:0;max-width:100%}.workspace-shell--responsive :is(.primary-button,.secondary-button){white-space:normal;overflow-wrap:anywhere;max-width:100%}.auth-page,.auth-status{grid-template-columns:minmax(0,1fr);padding:16px}.auth-card{overflow-wrap:anywhere;min-width:0;padding:16px}.auth-form,.auth-card .form-field,.auth-card input{min-width:0;max-width:100%}}.workspace-shell--responsive .module-nav--top,.workspace-shell--responsive .module-nav--bottom{align-items:center}.workspace-shell--responsive .account-menu{flex-wrap:nowrap;position:relative}.workspace-shell--responsive .account-menu__trigger{min-width:44px;min-height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:4px 8px;display:inline-flex}.workspace-shell--responsive .account-menu__trigger:hover,.workspace-shell--responsive .account-menu__trigger[aria-expanded=true]{border-color:var(--color-border,#cbd6d6);background:var(--color-surface-soft,#eef3f2)}.workspace-shell--responsive .account-menu__panel{z-index:100;border:1px solid var(--color-border,#cbd6d6);background:var(--color-surface,#fff);border-radius:12px;width:min(280px,100vw - 24px);padding:6px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 14px 38px #00000029}.workspace-shell--responsive .account-menu__panel :is(a,button){min-height:44px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;padding:9px 12px;text-decoration:none;display:flex}.workspace-shell--responsive .account-menu__panel :is(a,button):hover{background:var(--color-surface-soft,#eef3f2)}.workspace-shell--responsive .account-menu__panel button:disabled{opacity:.6;cursor:wait}.workspace-shell--responsive .account-menu__panel [role=alert]{color:#a62626;margin:6px 10px;font-size:13px}@media (max-width:599px){.workspace-shell--responsive .app-header{grid-template-columns:minmax(0,1fr) auto}.workspace-shell--responsive .account-menu__trigger{padding-inline:2px}}@media (max-width:319px){.workspace-shell--responsive .app-header{grid-template-columns:minmax(0,1fr);height:auto;padding-block:4px}}
