/* Local integration layer. Existing API, role checks and form handlers remain authoritative. */
#app .design-workspace{--accent:#7139ed;--ink:#16152b;--muted:#737c9c;--line:#e7eaf3;--surface:#fff;background:#f7f8fc;color:var(--ink);min-height:100vh;padding-left:228px}
#app .design-workspace .topbar{position:sticky;top:0;left:auto;width:100%;height:76px;min-height:76px;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end;gap:18px;padding:14px 28px;background:#fbfcff;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;z-index:40}
#app .design-workspace .workspace-sidebar{position:fixed;inset:0 auto 0 0;width:228px;padding:22px 14px;background:#fff;border-right:1px solid var(--line);z-index:50;overflow-y:auto}
#app .design-workspace .workspace-sidebar .brand{display:flex!important;gap:10px;padding:0 8px 24px;margin:0;min-width:0}
#app .design-workspace .brand img{width:40px;height:45px;object-fit:contain}#app .design-workspace .brand strong{font-size:16px;color:#17182d;white-space:nowrap;letter-spacing:-.5px}#app .design-workspace .brand span{display:none}
#app .design-workspace .workspace-sidebar .tabs{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;padding:0 0 20px;border:0;background:transparent;box-shadow:none;overflow:visible}
#app .design-workspace .workspace-sidebar .tab{display:flex!important;justify-content:flex-start;gap:14px;min-height:44px;width:100%;padding:12px 15px;border:0!important;border-radius:8px;background:transparent!important;color:#4d587b!important;font-size:15px;font-weight:500;box-shadow:none!important}
#app .design-workspace .workspace-sidebar .tab.active{background:#f1edff!important;color:#6725ed!important}#app .design-workspace .tab::after{display:none!important}
#app .design-workspace .header-search{flex:0 1 440px;max-width:440px;min-width:160px;order:0;margin:0}#app .design-workspace .header-search input{height:40px;min-height:40px;background:#f2f4fa;border:1px solid #e3e7f3;border-radius:9px;padding-left:16px;font-size:13px}
#app .design-workspace .user-menu{margin:0;display:flex;gap:16px;order:1}#app .design-workspace .user-copy{display:none}#app .design-workspace .profile-button{padding:0;border:0;background:transparent;box-shadow:none}#app .design-workspace .profile-button .avatar{width:38px;height:38px}#app .design-workspace .presence-control{margin-right:auto;border-radius:7px;box-shadow:none;background:transparent;padding:6px 8px;order:-1}#app .design-workspace .workspace-nav-controls{order:-2;display:flex;gap:4px}#app .design-workspace .workspace-nav-controls button{border:0;box-shadow:none;background:transparent;color:#687393}
#app .design-workspace .content{padding:20px 24px 12px;max-width:none;margin:0;width:100%}#app .design-workspace .workspace-download-footer{margin:0;padding:12px 24px;background:transparent;border-top:1px solid var(--line);border-radius:0}
#app .workspace-menu-toggle{display:none}#app .design-workspace .crm-navigation{position:static!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto;max-height:none;transform:none!important;box-shadow:none!important;padding:18px 0 0!important;border:0;border-top:1px solid var(--line);background:transparent!important;display:block!important}
#app .design-workspace .crm-navigation-brand,#app .design-workspace .crm-nav-foot{display:none}#app .design-workspace .crm-navigation-label{font-size:11px;letter-spacing:.5px;color:#8690ad;margin:0 12px 12px}#app .design-workspace .crm-nav-folder summary{padding:10px 8px;font-size:13px;white-space:normal}#app .design-workspace .crm-nav-folder button{padding:9px 12px 9px 23px;font-size:12px;border-radius:6px}#app .design-workspace .crm-saved-views{margin-top:20px}
#app .design-crm{display:block!important;grid-template-columns:none!important;max-width:none;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}#app .design-crm .crm-main{margin:0!important;padding:0!important;min-width:0;width:100%}
#app .design-crm .crm-header-surface{border:0!important;border-radius:0!important;background:transparent!important;padding:0 0 18px!important;box-shadow:none!important}#app .design-crm .crm-reg-head{padding:0 0 18px!important;border-bottom:1px solid var(--line);gap:15px!important}#app .design-crm .crm-reg-head h1{font-size:28px!important;font-weight:750;letter-spacing:-.7px;color:#16152b}#app .design-crm .crm-titleline{gap:16px;align-items:baseline}#app .design-crm .crm-titleline>strong{font-weight:400;color:#8189a7;font-size:14px}#app .design-crm .crm-reg-head p{font-size:12px;color:#7a84a2}#app .design-crm .crm-reg-head small{color:#7a84a2;font-size:11px}
#app .design-crm button,#app .design-crm summary{box-shadow:none!important}#app .design-crm .primary{background:#7037ef!important;color:#fff!important;border:1px solid #7037ef!important;border-radius:7px!important}#app .design-crm .secondary,#app .design-crm .crm-header-settings>summary{background:#fff!important;border:1px solid var(--line)!important;border-radius:7px!important;color:#242b48!important;min-height:38px!important;font-size:12px!important}
#app .design-crm .crm-command-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0 0!important;margin:0!important;border:0;background:transparent;box-shadow:none}#app .design-crm .crm-search{background:#fff!important;border:1px solid var(--line)!important;border-radius:7px!important;min-height:38px}#app .design-crm .crm-workspace-filters>summary{min-height:38px!important;border-radius:7px!important;background:#fff!important;border:1px solid var(--line)!important;color:#252a46!important;font-size:12px!important}#app .design-crm .crm-reg-view-switch{border:0!important;background:transparent!important;padding:0;gap:0}#app .design-crm .crm-reg-view-switch button{border-radius:0!important;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:#7681a0!important;padding:10px 14px}#app .design-crm .crm-reg-view-switch .active{color:#6c30ed!important;border-bottom-color:#7439ed!important}
#app .design-status-picker{position:relative;min-width:145px;z-index:30}#app .design-status-picker>summary{list-style:none;cursor:pointer;padding:10px 12px;min-height:38px;border:1px solid var(--line);border-radius:7px;background:white;font-size:12px}#app .design-status-picker>summary::after{content:'⌄';float:right;margin-left:10px}#app .design-status-picker:not([open])>#crm-reg-statusbar{display:none!important}#app .design-status-picker[open]>#crm-reg-statusbar{position:absolute;top:44px;right:0;width:290px;max-height:350px;overflow:auto;display:flex!important;flex-direction:column;gap:2px!important;padding:8px!important;border:1px solid var(--line)!important;border-radius:9px;background:#fff;box-shadow:0 10px 32px #24234718}#app .design-crm .design-status-picker #crm-reg-statusbar>button{width:100%;min-height:34px!important;border:0!important;border-radius:5px!important;padding:7px 10px!important;background:white!important}#app .design-crm .design-status-picker #crm-reg-statusbar>button.active{background:#f0eaff!important;color:#6829e7!important}
#app .design-crm .crm-kanban-board{display:flex!important;gap:14px!important;overflow-x:auto!important;align-items:stretch;max-width:100%;padding:0 0 12px!important;scrollbar-width:thin;min-height:420px}#app .design-crm .crm-kanban-column{position:relative;flex:0 0 var(--column-width,280px)!important;width:var(--column-width,280px)!important;min-width:240px!important;max-width:520px;background:#f3f5fa!important;border:0!important;border-top:3px solid var(--stage-color,#7439ed)!important;border-radius:6px 6px 0 0!important;padding:0 5px 6px!important;box-shadow:none!important}#app .design-crm .crm-kanban-column>header{padding:16px 12px 13px!important;display:flex;gap:10px;min-height:52px;background:transparent;border:0}#app .design-crm .crm-kanban-column h2{font-size:15px!important;color:#1e2039!important;font-weight:700}#app .design-crm .crm-kanban-column>header>b{font-size:12px!important;background:transparent!important;color:#7883a4!important;padding:0!important}#app .design-crm .crm-kanban-dot{display:none}#app .design-crm .crm-kanban-stack{display:flex;flex-direction:column;gap:10px;overflow-y:auto;max-height:calc(100vh - 350px);min-height:260px;padding:0!important}
#app .design-crm .crm-kanban-card{border:1px solid #e9ecf4!important;border-left:3px solid var(--stage-color)!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 5px #29345a03!important;padding:13px 13px 10px!important;min-height:0!important;margin:0!important;color:#1b2037}#app .design-crm .crm-kanban-card-top b{display:flex;align-items:center;gap:6px;font-size:14px!important;line-height:1.35;white-space:normal!important}#app .design-crm .crm-kanban-card-top>span{display:none}#app .design-crm .crm-kanban-card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;margin-top:5px}#app .design-crm .crm-kanban-card-meta>a{font-size:12px!important;font-variant-numeric:tabular-nums;color:#687394!important}#app .design-crm .crm-kanban-card-meta .operator-identity{order:3;width:100%;margin-top:5px;font-size:11px}#app .design-crm .crm-kanban-fields{display:grid!important;grid-template-columns:1fr!important;border-top:1px solid #edf0f6!important;border-radius:0!important;background:transparent!important;gap:5px!important;margin-top:10px;padding:10px 0 0!important}#app .design-crm .crm-kanban-fields>div{display:flex!important;align-items:baseline;justify-content:space-between;gap:8px;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-height:0!important}#app .design-crm .crm-kanban-fields small{font-size:11px!important;color:#8790a7!important;font-weight:400!important}#app .design-crm .crm-kanban-fields b{font-size:11px!important;color:#53607e!important;font-weight:500!important;white-space:normal!important;max-width:65%;text-align:right}#app .design-crm .crm-kanban-card-foot{margin-top:8px;padding-top:8px;border-top:1px solid #edf0f6;font-size:10px;color:#8790a7}#app .design-crm .crm-copy-value{display:inline-flex;align-items:center;justify-content:center;border:0!important;background:transparent!important;color:#9ca6bc;font-size:15px;min-height:20px!important;height:20px!important;width:20px;min-width:20px;padding:0!important;cursor:pointer}#app .design-crm .crm-copy-value:hover{color:#7139ed;background:#f1ebff!important}#app .crm-column-resize{position:absolute;top:0;right:-7px;bottom:0;width:12px;cursor:col-resize;touch-action:none;z-index:5}#app .crm-column-resize:hover,#app .crm-column-resize:focus-visible{background:#7139ed33;outline:0}#app .design-crm .crm-reg-table{background:#fff}#app .design-crm .crm-reg-table th{background:#f3f5fb;color:#7a83a1;font-size:11px;padding:12px;border-color:var(--line)}#app .design-crm .crm-reg-table td{padding:13px 12px;border-color:#eef0f5;font-size:12px}#app .design-crm .crm-reg-load{border:0;background:transparent;padding:12px 0}
@media(max-width:1000px){#app .design-workspace{padding-left:190px}#app .design-workspace .workspace-sidebar{width:190px}#app .design-workspace .topbar{padding:12px 16px;gap:10px}#app .design-workspace .content{padding:16px}#app .design-workspace .brand strong{font-size:13px}#app .design-crm .crm-reg-head h1{font-size:24px!important}}
@media(max-width:700px){#app .design-workspace{padding-left:0}#app .design-workspace .workspace-sidebar{transform:translateX(-100%);transition:transform .16s ease;width:228px;box-shadow:8px 0 30px #171c3422}#app .design-workspace.workspace-menu-open .workspace-sidebar{transform:translateX(0)}#app .workspace-menu-toggle{display:block;border:0;background:transparent;min-width:34px;padding:5px;font-size:20px;color:#53338c;order:-3}#app .design-workspace .topbar{height:64px;min-height:64px;padding:10px 12px;gap:8px}#app .design-workspace .header-search{display:none!important}#app .design-workspace .workspace-nav-controls{display:flex!important}#app .design-workspace .user-menu{display:flex!important}#app .design-workspace .presence-control{font-size:11px;min-width:0}#app .design-workspace .mobile-profile-button{display:none!important}#app .design-workspace .content{padding:16px 10px 8px}#app .design-crm .crm-reg-head{align-items:flex-start!important}#app .design-crm .crm-reg-head h1{font-size:22px!important}#app .design-crm .crm-titleline{display:block}#app .design-crm .crm-reg-head-right{gap:6px!important}#app .design-crm .crm-command-bar{gap:8px}#app .design-crm .crm-search{min-width:160px!important;flex:1 1 100%;width:100%}#app .design-crm .crm-kanban-column{flex-basis:270px!important}#app .design-crm .crm-kanban-stack{max-height:calc(100vh - 390px)}#app .design-crm .crm-header-surface{padding-bottom:12px!important}#app .design-workspace .workspace-download-footer{font-size:10px;padding:10px}#app .design-status-picker[open]>#crm-reg-statusbar{left:0;right:auto;max-width:calc(100vw - 24px)} }
/* Reset layout dimensions inherited from the previous horizontal shell. */
#app .design-workspace .workspace-sidebar .tabs{position:static!important;inset:auto!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;margin:0!important;transform:none!important}
#app .design-workspace .workspace-sidebar .tab{position:static!important;flex:none!important;height:auto!important}
#app .design-crm .crm-kanban-card{flex:0 0 auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
