/* Make-inspired workspace composition; byecrm palette and existing CRM behavior. */
:root{--shell-accent:#c52c21;--shell-soft:#fff0ed;--shell-canvas:#f5f7f9;--muted:#728093;background:var(--shell-canvas);font-family:Inter,"Segoe UI",sans-serif}
.app-rail{position:fixed;inset:0 auto 0 0;width:80px;background:#c52c21;color:#fff;z-index:10;display:flex;align-items:center;flex-direction:column;padding:18px 8px;gap:16px}
.rail-brand{font-size:42px;font-weight:800;letter-spacing:-4px;color:#fff;text-decoration:none;line-height:1;margin-bottom:26px}.rail-brand span{color:#ffc5ba}
.rail-item{width:64px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;color:#fff;border-radius:10px;font-size:10px;cursor:pointer}.rail-item svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.rail-item:hover,.rail-item[data-active]{background:#9f211a}.rail-item:focus-visible{outline:2px solid #fff;outline-offset:2px}.rail-settings{margin-top:auto}
.sidebar{left:80px;width:232px;padding:28px 18px 20px;border-right:1px solid #e9edf1}.sidebar .brand{font-size:25px;padding:0 12px}.workspace-name{margin:8px 12px 35px;color:#758194;font-size:12px}.nav-section-label{font-size:10px;letter-spacing:.12em;color:#8590a0;margin:0 12px 12px;font-weight:700}.nav-item{min-height:43px;border-radius:8px;font-size:14px;padding:10px 14px;margin:2px 0}.nav-item[aria-current]{background:var(--shell-soft);color:var(--shell-accent);font-weight:650}.sidebar-bottom{border-top:1px solid #edf0f4;padding-top:20px}
.main{margin-left:312px;background:var(--shell-canvas);min-height:100dvh}.topbar{height:76px;padding:0 32px;border-bottom:1px solid #e9edf1}.topbar #preview-label{font-size:15px;font-weight:650;color:#253044}.topbar #sync{font-size:12px;color:#7b8796}.topbar .button{border-color:#e6eaf0;border-radius:8px}main{padding:30px 32px 85px}.heading{gap:20px;margin-bottom:26px}h1{font-size:28px;font-weight:650;letter-spacing:-.035em}.heading-actions{gap:10px}.heading-actions input{width:250px;background:#fff;border-color:#dee4eb;border-radius:9px;padding:11px 14px}.button{border-radius:8px;min-height:40px;padding:9px 14px}.primary{background:var(--shell-accent);border-color:var(--shell-accent)}
.summary{border:0;padding:0;gap:16px;margin:0 0 26px}.summary>div{background:#fff;border:1px solid #edf0f4;border-radius:12px;padding:20px 24px;min-width:180px;display:flex;justify-content:space-between;gap:30px;color:#798698}.summary strong{font-size:26px;font-weight:650;color:#202a38}.board{gap:18px;grid-auto-columns:minmax(260px,1fr)}.column{background:#edf1f5;border:0;border-radius:12px;padding:0 10px 12px}.column-header{padding:16px 6px;min-height:58px;border-bottom:1px solid #d6dfe7}.column-header h2{font-size:14px;font-weight:650}.count{background:#fff;color:#778395;font-size:12px;border-radius:6px;padding:2px 7px}.deal{border:1px solid #e6eaf0;border-radius:10px;padding:17px;margin-bottom:12px;box-shadow:none}.record-title{font-size:14px;font-weight:650;line-height:1.5}.deal .muted{line-height:1.65}.next-task{padding-top:12px;margin-top:12px}.deal select{border-color:#e4e9ef;background:#fafbfc;border-radius:7px;padding:8px}.table-wrap{background:#fff;border:1px solid #e8edf2;border-radius:12px}th{background:#fafbfc;color:#778395;font-size:12px}td,th{padding:16px}.graph-launcher{border-color:#e3e7ed;box-shadow:0 4px 18px #25324412}
@media(max-width:1100px) and (min-width:801px){.sidebar{width:205px}.main{margin-left:285px}main{padding:24px}.heading-actions input{width:200px}}
@media(max-width:800px){.app-rail{display:none}.sidebar{left:0;width:260px;padding-top:24px}.main{margin-left:0}.topbar{height:64px;padding:0 16px}main{padding:22px 16px 80px}h1{font-size:25px}.heading{gap:14px}.heading-actions input{width:auto;min-width:130px}.summary{gap:10px}.summary>div{flex:1;min-width:130px;padding:16px;gap:12px}.summary strong{font-size:23px}.board{grid-auto-columns:280px;gap:14px}.column{min-height:55dvh}}
@media(prefers-reduced-motion:reduce){.rail-item{transition:none}}
@media(max-width:800px){.topbar{height:auto;min-height:64px;gap:10px;padding-block:12px}.topbar>div{flex-wrap:wrap}.topbar #sync{font-size:11px}.heading{margin-top:0}}

.pipeline-controls{display:flex;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}.pipeline-dialog{position:fixed;inset:0;margin:auto;width:min(850px,94vw);height:auto;max-height:90dvh;border-radius:14px;overflow:auto}.pipeline-dialog input,.pipeline-dialog select,.pipeline-dialog textarea{padding:9px;max-width:100%}.pipeline-dialog>textarea{width:100%;min-height:130px}.pipeline-dialog form{gap:16px}.stage-setting{display:grid;grid-template-columns:minmax(130px,1fr) 100px 45px 40px 40px 80px;gap:8px;margin:10px 0}.stage-setting input[type=color]{width:45px;height:40px;padding:3px}.graph-stage-filters{display:flex;gap:16px;flex-wrap:wrap;width:100%;padding-top:8px}.graph-stage-filters label{display:flex;gap:6px;align-items:center;font-size:12px}.graph-stage-filters input{width:auto}.table-sort{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;padding:0;text-align:left}.table-sort:focus-visible{outline:2px solid #c52c21;outline-offset:4px}.table-wrap th input{width:100%;min-width:110px;font-size:12px;padding:7px}.table-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px}.table-result-count{margin:0;color:#728093;font-size:12px}@media(max-width:650px){.stage-setting{grid-template-columns:minmax(100px,1fr) 85px 40px}.stage-setting .button{padding:6px}.pipeline-dialog{padding:16px}.graph-stage-filters{gap:10px}}
