:root{color-scheme:light;--bg: #f3f1ec;--bg-soft: #f7f5f1;--surface: #fffcf8;--ink: #1e2926;--muted: #5c6a66;--faint: #8b948f;--line: #e4ddd4;--line-strong: #d5cdc2;--accent: #2a4f8f;--accent-ink: #f5f8fd;--accent-soft: #e7eef9;--progress: #c47d09;--progress-ink: #5c3b04;--progress-soft: #fff3d6;--done: #17803f;--done-soft: #e3f6ea;--pending: #d23b3b;--pending-soft: #fde8e8;--warn: #3d5f86;--warn-soft: #eaf1f8;--danger: #6d3c78;--danger-soft: #f6eaf4;--shadow: 0 16px 40px rgba(48, 39, 28, .06);--sans: "Outfit", "Segoe UI", sans-serif;--serif: "Fraunces", Georgia, serif;--z-overlay: 80;--z-popover: 120;--z-toast: 140}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.5}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:inherit}img{max-width:100%}::selection{background:#d5e2f6}:focus-visible{outline:2px solid #2a4f8f;outline-offset:2px}.boot,.auth-screen{min-height:100vh;display:grid}.boot{place-items:center;background:radial-gradient(700px 320px at 10% 0%,rgba(42,79,143,.14),transparent 60%),var(--bg)}.boot-mark,.mark{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-family:var(--serif);font-size:16px;letter-spacing:-.04em}.auth-screen{place-items:center;width:100%;height:100dvh;min-height:0;overflow:hidden;padding:24px 24px 52px;position:relative;background:radial-gradient(700px 380px at 5% 0%,rgba(42,79,143,.16),transparent 65%),var(--bg)}.auth-screen .site-footer{position:absolute;left:16px;right:16px;bottom:12px;max-width:none;margin:0;padding:0;border:0}.auth-card{width:min(920px,100%);height:min(560px,calc(100dvh - 88px));display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)}.auth-brand{height:100%;min-height:0;padding:28px 32px 24px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;color:#f5f8fd;background:radial-gradient(540px 280px at 0% 0%,rgba(255,252,248,.16),transparent 70%),#243e73;border:1px solid #1c3260;border-right:0;border-radius:26px 0 0 26px;overflow:hidden}.auth-brand-top{display:flex;align-items:center;gap:14px}.auth-brand .mark{background:#f5f8fd;color:#243e73}.auth-brand .eyebrow{color:#f5f8fdad}.auth-name{margin:0;font-family:var(--serif);font-size:22px;letter-spacing:-.03em;color:#f5f8fd}.auth-brand-top .eyebrow{margin-top:2px}.auth-story{display:flex;flex-direction:column;gap:10px;max-width:380px}.auth-story h1{margin:0;font-family:var(--serif);font-weight:520;font-size:34px;letter-spacing:-.04em;line-height:1;color:#f7faf8}.auth-story p{margin:0;max-width:36ch;color:#f3faf7c7;font-size:14px;line-height:1.45}.auth-motion{width:min(100%,360px)}.auth-motion svg{width:100%;height:auto;display:block;overflow:visible}.auth-route{fill:none;stroke:#f3faf759;stroke-width:2;stroke-linecap:round;stroke-dasharray:8 10;animation:auth-flow 18s linear infinite}.auth-node{fill:#f5f8fd;transform-box:fill-box;transform-origin:center;animation:auth-pulse 2.8s ease-in-out infinite}.auth-node.is-mid{animation-delay:.6s}.auth-node.is-end{animation-delay:1.2s}.auth-traveler{fill:#f5f8fd;offset-path:path("M20 84C78 84 120 30 180 30S260 96 340 48");animation:auth-travel 7s ease-in-out infinite}@keyframes auth-flow{to{stroke-dashoffset:-180}}@keyframes auth-pulse{50%{opacity:.35}}@keyframes auth-travel{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.auth-route,.auth-node,.auth-traveler{animation:none}}.auth-rail{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.auth-rail li{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid rgba(243,250,247,.22);font-size:14px}.auth-rail span{font-family:var(--serif);font-size:18px;color:#f3faf7b3}.eyebrow{margin:0;text-transform:uppercase;letter-spacing:.16em;font-size:12px;color:var(--faint)}.auth-panel{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:28px 36px;border:1px solid var(--line);border-radius:0 26px 26px 0;background:var(--surface);box-shadow:0 24px 70px #30271c0f}.auth-form-card{width:min(360px,100%)}.auth-form-card>.eyebrow{margin-bottom:12px}.auth-panel form{margin-top:4px}.auth-panel input{min-height:48px}.auth-panel .btn{min-height:44px}.auth-help{width:min(360px,100%);margin:0;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.auth-panel h2{margin:0 0 8px;font-family:var(--serif);font-size:32px;font-weight:520;letter-spacing:-.03em}.lede{margin:0 0 20px;color:var(--muted)}.shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar-w, 188px) minmax(0,1fr)}.main{min-width:0;min-height:100vh;display:flex;flex-direction:column;padding:var(--main-pad-y, 28px) var(--main-pad-x, 36px) 28px}.content{width:100%;max-width:var(--content-max, 1520px);margin:0 auto;flex:1}.site-footer{width:100%;max-width:var(--content-max, 1520px);margin:28px auto 0;padding-top:14px;border-top:1px solid var(--line);color:var(--faint);font-size:12px;text-align:center}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:16px;padding:16px 10px;background:#f7f5f1;border-right:1px solid var(--line);z-index:20}.sidebar .mark{width:34px;height:34px;border-radius:10px;font-size:15px}.brand{display:flex;gap:8px;align-items:center;padding:0 4px}.brand strong{display:block;font-family:var(--serif);font-size:18px;font-weight:560;letter-spacing:-.03em}.brand span{color:var(--faint);font-size:11px;letter-spacing:.06em;line-height:1.25;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:4px}.nav a,.menu-trigger,.select-trigger,.btn,.icon-btn,.text-btn,.segment button{border:0;background:transparent}.nav a{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 8px;border-radius:12px;color:var(--muted);text-decoration:none}.nav a.active,.nav a:hover{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px}.sign-out{width:100%;justify-content:flex-start}.account{width:100%;display:flex;align-items:center;gap:8px;text-align:left;padding:6px;border-radius:14px}.account:hover,.menu-trigger[aria-expanded=true] .account{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}.avatar{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:600;flex:none}.account small,.muted,.field-hint,.modal-head p,.chart-card p,.stage p,.empty p{color:var(--muted)}.account strong,.account small{display:block}.account small{font-size:11px;max-width:92px;overflow:hidden;text-overflow:ellipsis}.topbar{display:none;align-items:center;justify-content:space-between;margin-bottom:18px}.page-head,.toolbar,.modal-actions,.split-actions,.stage-top,.company-card-top,.kpi-row,.filter-row{display:flex;gap:12px}.page-head{justify-content:space-between;align-items:flex-end;flex-wrap:wrap;row-gap:14px;margin-bottom:22px}.page-head>div:first-child{min-width:0;flex:1 1 420px}.page-head>:not(:first-child){flex:none}.page-head h1,.section-title{margin:0;font-family:var(--serif);font-weight:540;letter-spacing:-.03em}.page-head h1{font-size:40px;line-height:1}.page-head p{margin:8px 0 0;color:var(--muted);max-width:620px}.crumb{color:var(--muted);text-decoration:none;font-size:13px}.crumb:hover{color:var(--ink)}.btn,.select-trigger,.icon-btn{min-height:40px;border-radius:12px;border:1px solid transparent}.btn{padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:500}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-primary:hover{background:#1b3f3a}.btn-ghost{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}.btn-ghost:hover{border-color:#c9bfb3}.btn-danger{background:var(--danger-soft);color:var(--danger)}.icon-btn{width:38px;padding:0;display:grid;place-items:center;background:var(--surface);border-color:var(--line)}.text-btn{color:var(--accent);padding:0;min-height:28px;font-weight:500}.inline-link{color:var(--accent);font-weight:500}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field-label{display:flex;justify-content:space-between;font-size:13px;font-weight:500}.field-label i{font-style:normal;color:var(--faint);font-weight:400}input,textarea{width:100%;border:1px solid var(--line-strong);background:#fff;border-radius:12px;padding:10px 12px;outline:none}input{min-height:42px}textarea{min-height:110px;resize:vertical}input:focus,textarea:focus{border-color:#8eaea6;box-shadow:0 0 0 4px #234e4814}.password-wrap{position:relative}.password-wrap input{padding-right:44px}.password-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:32px;height:32px;min-height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted)}.password-toggle:hover{background:var(--bg-soft);color:var(--ink)}.search{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;min-width:min(320px,100%);color:var(--faint)}.search input{border:0;background:transparent;min-height:38px;padding:0;box-shadow:none}.search input:focus{box-shadow:none}.form-error,.note{margin:0 0 14px;padding:10px 12px;border-radius:12px;background:var(--danger-soft);color:var(--danger)}.note{background:var(--warn-soft);color:var(--warn)}.note.calm{background:var(--accent-soft);color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.field-follow{margin-top:8px}.modal-actions,.split-actions{justify-content:flex-end;margin-top:8px}.select-trigger,.menu-trigger{color:inherit}.select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;background:#fff;border:1px solid var(--line-strong);text-align:left}.stage .select-trigger{width:168px;background:var(--bg-soft)}.menu-trigger{padding:0;border-radius:14px}.sidebar-foot .menu-trigger{width:100%}.placeholder{color:var(--faint)}.option-label{display:inline-flex;align-items:center;gap:8px}.dot{width:8px;height:8px;border-radius:99px;display:inline-block}.dot-pending{background:var(--pending)}.dot-progress{background:var(--progress)}.dot-done{background:var(--done)}.modal-root,.drawer-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-overlay);display:grid;place-items:center;padding:24px}.drawer-root{justify-content:end;padding:0}.backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#24201b47}.modal,.drawer{position:relative;z-index:1;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.modal{width:min(560px,100%);max-height:min(88vh,860px);border-radius:20px;display:flex;flex-direction:column;overflow:hidden}.modal-wide{width:min(1040px,100%)}.modal-body{padding:4px 24px 0;overflow:auto;flex:1;min-height:0}.modal-body>:last-child:not(.modal-actions){margin-bottom:24px}.drawer{width:min(520px,calc(100vw - 32px));height:100%;border-radius:20px 0 0 20px;border-right:0;display:flex;flex-direction:column;overflow:hidden}.drawer-body{padding:18px 24px 0;overflow:auto;flex:1;min-height:0;scrollbar-gutter:stable}.drawer-body>:last-child:not(form){margin-bottom:28px}.drawer-body>form:last-child .modal-actions{margin-bottom:0}.modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:20px 24px 14px;flex:none}.drawer-head{padding:22px 24px 16px;border-bottom:1px solid var(--line);background:var(--surface)}.head-text{min-width:0;flex:1}.modal-head h2{margin:0;font-family:var(--serif);font-size:24px;line-height:1.2;font-weight:540;letter-spacing:-.02em;overflow-wrap:anywhere}.drawer-head h2{font-size:22px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.modal-head p{margin:4px 0 0;font-size:14px}.modal-head .icon-btn{flex:none;margin-top:-2px}.modal-body .modal-actions,.drawer-body .modal-actions{position:sticky;bottom:0;z-index:2;margin:12px -24px 0;padding:14px 24px 20px;background:linear-gradient(to bottom,rgba(255,252,248,.85),var(--surface) 30%);border-top:1px solid var(--line)}.drawer-section{margin-top:24px}.drawer-section h3{margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:500}.drawer-body .form-grid{gap:0 14px}.popover{position:fixed;z-index:var(--z-popover);overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 18px 50px #28201824}.option{width:100%;min-height:38px;border:0;background:transparent;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px;text-align:left}.option:hover,.option.is-active{background:var(--bg-soft)}.option.is-danger{color:var(--danger)}.option-check{color:var(--faint);font-size:12px}.menu-pop{width:210px}.toast-wrap{position:fixed;z-index:var(--z-toast);right:18px;bottom:18px;display:flex;flex-direction:column;gap:8px;width:min(360px,calc(100vw - 32px))}.toast{background:var(--ink);color:#f6f4ef;border-radius:14px;padding:12px 14px;box-shadow:var(--shadow)}.toast.is-bad{background:#5c345f}.card,.company-card,.kpi,.chart-card,.stage,.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 1px #ffffffb3}.kpi-grid,.chart-grid,.card-grid{display:grid;gap:14px}.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:14px}.kpi,.chart-card,.panel{padding:16px 16px 14px}.stack-panel{margin-bottom:16px}.kpi span,.chart-card h2,.panel h2{display:block;color:var(--muted);font-size:13px;font-weight:500;margin:0}.kpi strong{display:block;margin-top:10px;font-family:var(--serif);font-size:32px;font-weight:540;letter-spacing:-.04em}.kpi em{font-style:normal;color:var(--faint);font-size:12px}.chart-grid{grid-template-columns:1.4fr .8fr;margin-bottom:14px}.chart-grid.even{grid-template-columns:1fr 1fr}.chart-card h2,.panel h2{font-family:var(--sans);letter-spacing:0;margin-bottom:4px;color:var(--ink);font-size:16px;font-weight:600}.chart{height:280px}.chart-tip{background-color:#fffcf8;border:1px solid var(--line-strong);border-radius:12px;padding:8px 10px;box-shadow:0 8px 24px #1e292629;display:flex;flex-direction:column;gap:2px;font-size:13px;opacity:1}.chart-tip strong{font-weight:600}.attention{display:flex;flex-direction:column}.attention a,.timeline a{color:var(--accent);text-decoration:none;font-weight:500}.attention li,.timeline li{list-style:none}.attention ul,.timeline{margin:0;padding:0}.attention li{padding:12px 0;border-top:1px solid var(--line)}.attention li:first-child{border-top:0}.stack{display:flex;flex-direction:column;gap:14px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.company-card{display:flex;flex-direction:column;gap:12px;padding:16px;text-decoration:none;min-height:176px}.company-card:hover{border-color:#cfc6ba}.company-card h3{margin:0;font-size:18px;letter-spacing:-.02em}.company-card-top,.stage-top,.toolbar,.filter-row{align-items:center;justify-content:space-between}.toolbar-end{display:flex;align-items:center;gap:8px;margin-left:auto}.segments{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.segments i,.progress>span{display:block;height:7px;border-radius:99px;background:#e6e0d7}.segments i.is-done{background:var(--done)}.segments i.is-progress{background:var(--progress)}.segments i{background:var(--pending)}.progress{height:8px;border-radius:99px;background:#e6e0d7;overflow:hidden}.progress>span{height:100%;background:var(--accent)}.meta-line{display:flex;justify-content:space-between;gap:8px;color:var(--faint);font-size:13px}.badge{display:inline-flex;align-items:center;min-height:26px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.badge-pending{background:var(--pending-soft);color:var(--pending)}.badge-progress{background:var(--progress-soft);color:var(--progress-ink)}.badge-done{background:var(--done-soft);color:var(--done)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-accent{background:var(--accent-soft);color:var(--accent)}.badge-quiet{background:#eef1f4;color:#3e4a55}.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.filters .select-trigger{width:190px}.segment{display:inline-flex;padding:3px;background:#efece6;border-radius:12px}.segment button{min-height:32px;padding:0 10px;border-radius:9px;color:var(--muted)}.segment button.active{background:#fff;color:var(--ink)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.table-wrap:has(.entity-table){overflow-x:hidden}.entity-table{width:100%;min-width:0;table-layout:fixed}.entity-table th,.entity-table td{padding:10px 8px;overflow-wrap:break-word}.entity-table th:first-child,.entity-table td:first-child{padding-left:20px}.entity-table th:last-child,.entity-table td:last-child{padding-right:20px}.entity-table th{line-height:1.2;letter-spacing:.03em}.secret-value{display:inline-flex;align-items:center;gap:4px;min-width:0}.secret-mask{letter-spacing:.14em;color:var(--faint);font-weight:600}.secret-text{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.secret-eye{width:28px;min-height:28px}.col-stage{width:240px;min-width:240px}.entity-table .col-name{width:13%;min-width:0}.entity-table .col-group{width:10%}.entity-table .col-stage{width:9%;min-width:0}.entity-table .col-person{width:10%}.entity-table .col-erp{width:6%}.entity-table .col-method,.entity-table .col-owner{width:9%}.entity-table .col-asp{width:7%}.entity-table .col-money{width:6%}.entity-table .col-phase,.entity-table .col-invoices{width:5%}.entity-table .col-peppol{width:6%}.entity-table .col-fit{width:4%}.entity-table .entity-stage{display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal;line-height:1.3}.executor-input{width:100%;min-height:34px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff}.entity-table .assign-cell .select-trigger,.entity-table .integration-cell .select-trigger,.entity-table .integration-cell input,.entity-table .owner-cell .select-trigger,.entity-table .owner-cell input{width:100%;max-width:100%;min-width:0;padding:0 6px}.assign-cell .select-trigger{width:124px;min-height:34px;padding:0 8px}.integration-cell .select-trigger,.integration-cell input,.owner-cell .select-trigger,.owner-cell input{width:128px;min-height:34px;padding:0 8px}.assign-cell .select-trigger>span,.integration-cell .select-trigger>span,.owner-cell .select-trigger>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-table .col-fit{padding-left:6px}.entity-table .icon-btn{width:30px;min-height:30px;border-radius:10px}.col-fit{width:1%;white-space:nowrap}.fact-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0}.fact-list dt{color:var(--faint);font-size:11px;letter-spacing:.04em;text-transform:uppercase}.fact-list dd{margin:2px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}table{width:100%;border-collapse:collapse;min-width:860px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);font-weight:500}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbf9f6}.entity-table tbody tr.is-alert td{background:var(--danger-soft)}.entity-table tbody tr.is-alert:hover td{background:#f0deec}.linkish{border:0;background:transparent;padding:0;color:var(--ink);font-weight:600;text-align:left}a.linkish{text-decoration:none}.linkish:hover{color:var(--accent)}.entity-flow{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.crumb-row{display:flex;align-items:center;gap:8px;margin:0 0 8px}.entity-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;margin-bottom:16px}.entity-facts strong{display:block;margin-top:4px;font-weight:600;overflow-wrap:anywhere}@media(max-width:1100px){.entity-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.entity-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}.btn-small{min-height:32px;padding:4px 10px;font-size:13px}.company-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:16px;align-items:start}.stage{padding:14px;margin-bottom:10px}.stage-child{margin-left:16px;background:#fbfaf7}.stage h3{margin:0 0 4px;font-size:16px}.stage p{margin:0;font-size:13px}.stage-top{align-items:flex-start}.stage blockquote,.timeline blockquote{margin:8px 0 0;padding-left:10px;border-left:2px solid var(--line-strong);color:var(--ink)}.history{margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}.history li{list-style:none;padding-top:8px;border-top:1px solid var(--line);font-size:13px}.history span,.history em{color:var(--muted);margin-left:6px;font-style:normal}.subhead{margin:8px 0;color:var(--muted);font-size:13px}.dash-head{margin-bottom:16px}.deadline-strip{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.deadline-card{text-align:left;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:16px 18px;color:inherit;box-shadow:0 1px #ffffffb3}.deadline-card.is-clickable{cursor:pointer}.deadline-card.is-clickable:hover{border-color:var(--line-strong)}.deadline-card.is-met{border-color:#b7e0c6;background:linear-gradient(180deg,#f3fbf6,var(--surface))}.deadline-card.is-overdue{border-color:#e3c6e4;background:linear-gradient(180deg,#fbf6fb,var(--surface))}.deadline-card.is-open{border-color:#c9d6ee;background:linear-gradient(180deg,#f6f8fd,var(--surface))}.deadline-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.deadline-top h2{margin:2px 0 0;font-family:var(--serif);font-size:24px;font-weight:540;letter-spacing:-.03em;line-height:1.15}.deadline-badge{flex:none;display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.deadline-badge.is-met{background:var(--done-soft);color:var(--done)}.deadline-badge.is-overdue{background:var(--danger-soft);color:var(--danger)}.deadline-badge.is-open,.deadline-badge.is-empty{background:var(--accent-soft);color:var(--accent)}.deadline-line{margin:10px 0 12px;color:var(--muted);font-size:14px}.deadline-meter{height:8px;border-radius:99px;background:#ece7df;overflow:hidden}.deadline-meter>span{display:block;height:100%;border-radius:99px;background:var(--accent)}.deadline-card.is-met .deadline-meter>span{background:var(--done)}.deadline-card.is-overdue .deadline-meter>span{background:var(--danger)}.deadline-card.is-open .deadline-meter>span{background:var(--accent)}.deadline-foot{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:13px;color:var(--muted)}.deadline-action{color:var(--accent);font-weight:500}.deadline-card.is-overdue .deadline-action{color:var(--danger)}.dash{background:radial-gradient(820px 240px at 100% -80px,rgba(42,79,143,.1),transparent 62%),transparent}.stat-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface);border:1px solid #d5e0f2;border-radius:18px;margin-bottom:14px;box-shadow:0 12px 28px #243a6e0f}.stat{display:flex;flex-direction:column;justify-content:center;padding:14px 18px;border-left:1px solid var(--line);min-width:0;color:inherit;text-decoration:none}.stat:first-child{border-left:0}a.stat{cursor:pointer;transition:background .12s ease}a.stat:hover{background:var(--bg-soft)}a.stat:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.stat-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.stat strong{display:block;margin:4px 0 2px;font-family:var(--serif);font-size:28px;font-weight:540;line-height:1.1;letter-spacing:-.03em}.stat em{display:block;font-style:normal;color:var(--faint);font-size:12px}.stat-bar{height:5px;margin:8px 0 6px}.dash-board{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:14px;align-items:start}.dash-col{display:flex;flex-direction:column;gap:14px;min-width:0}.volume-list .bar-row{grid-template-columns:minmax(110px,1fr) minmax(70px,1.3fr) auto auto}.volume-list .num{white-space:nowrap;padding-left:8px}.turnover-donut{display:grid;grid-template-columns:168px minmax(0,1fr);gap:18px;align-items:center;min-height:168px}.turnover-chart{position:relative;height:168px}.turnover-chart .recharts-responsive-container{position:relative;z-index:2}.turnover-chart .recharts-tooltip-wrapper{z-index:5}.turnover-center{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-content:center;text-align:center;pointer-events:none;line-height:1.1}.turnover-center strong{font-size:28px;letter-spacing:-.04em}.turnover-center span{color:var(--muted);font-size:12px}.turnover-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.turnover-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;gap:8px;align-items:center}.turnover-legend i{width:10px;height:10px;border-radius:99px}.turnover-legend strong{font-variant-numeric:tabular-nums}.turnover-legend li>span:last-child{color:var(--faint);font-size:12.5px;min-width:36px;text-align:right}@media(max-width:720px){.turnover-donut{grid-template-columns:1fr;justify-items:center}.turnover-legend{width:100%}}.dash-panel{padding:16px;box-shadow:0 12px 28px #243a6e0d}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px 12px;margin-bottom:12px}.panel-head>div:first-child{min-width:0;flex:1 1 220px}.panel-head>.segment,.panel-head>.legend{flex:none}.panel-head h2{margin:0}.panel-head p{margin:2px 0 0;font-size:13px}.panel-head .segment button{min-height:28px;font-size:13px}.legend{display:flex;gap:12px;font-size:12px;color:var(--muted);white-space:nowrap}.legend span{display:inline-flex;align-items:center;gap:5px}.pipe{display:flex;flex-direction:column}.pipe-row{display:grid;grid-template-columns:150px minmax(0,1fr) 88px;align-items:center;gap:14px;width:100%;min-height:40px;padding:4px 8px;border:0;background:transparent;border-radius:10px;text-align:left}button.pipe-row:hover{background:var(--bg-soft)}.pipe-cols{min-height:26px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.pipe-group{margin:2px 0 6px;padding:2px 0 2px 12px;border-left:2px solid #d9e3df}.pipe-group .pipe-row{grid-template-columns:140px minmax(0,1fr) 88px}.pipe-main-label,.pipe-row.is-main .pipe-label{font-size:16px;font-weight:600;color:var(--accent);letter-spacing:-.02em}.pipe-main-label{padding:10px 8px 2px}.pipe-row.is-main .here{color:var(--accent)}.pipe-row.is-main .stack-bar{height:26px}.pipe-group .pipe-label{font-size:13px;font-weight:500;color:var(--ink);letter-spacing:0}.pipe-label{font-size:14px;font-weight:500}.stack-bar{display:flex;height:22px;border-radius:7px;overflow:hidden;background:#ece7df;gap:2px}.seg{display:grid;place-items:center;font-size:11px;font-weight:600;min-width:36px;flex-shrink:0}.seg-done{background:var(--done);color:#f4fbf7}.seg-progress{background:var(--progress);color:var(--progress-ink)}.seg-pending{background:var(--pending);color:#fff7f7}.num{text-align:right;font-variant-numeric:tabular-nums}.here{font-family:var(--serif);font-size:18px;font-weight:540}.here.is-zero{color:var(--faint)}.compact-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.compact-list li{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}.compact-list li:first-child{border-top:0;padding-top:0}.compact-list li>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.compact-list li.is-blocker,.compact-list li.is-blocker:first-child,.compact-list li.is-blocker:last-child,.drawer-body .compact-list li.is-blocker{flex-direction:row;align-items:flex-start;gap:12px;margin:0 0 10px;padding:14px 16px;border:1px solid #e4cfe0;border-radius:12px;background:var(--danger-soft)}.compact-list li.is-blocker a{color:var(--danger)}.blocker-mark{flex:none;margin-top:1px;line-height:1.2}.blocker-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.blocker-banner{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--danger-soft);color:var(--danger);border:1px solid #e4cfe0}.blocker-list .blocker-banner{margin-top:0}.blocker-banner p{margin:4px 0 0;color:var(--ink)}.blocker-banner a{color:var(--danger);font-weight:600}.blocker-stage{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--danger)}.blocker-line{color:var(--danger);font-weight:600}.stage-detail-history .text-btn,.blocker-banner .text-btn{margin-top:4px}.stage-note{margin-top:14px}.track-alert,.entity-alert{margin-left:6px}.compact-list li:last-child{padding-bottom:0}.compact-list a{color:var(--accent);text-decoration:none;font-weight:500}.compact-list .muted{font-size:12.5px}.recent-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.all-clear{margin:0;font-size:14px}.bar-list{display:flex;flex-direction:column;gap:2px}.bar-row{display:grid;grid-template-columns:minmax(90px,160px) minmax(0,1fr) 56px;align-items:center;gap:12px;width:100%;min-height:34px;padding:2px 8px;border:0;background:transparent;border-radius:10px;text-align:left;font-size:14px}button.bar-row:hover{background:var(--bg-soft)}.bar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:10px;border-radius:99px;background:#ece7df;overflow:hidden}.bar-track>span{display:block;height:100%;border-radius:99px;background:var(--accent)}.bar-warm>span{background:#5b7cb8}.foot-note{margin:10px 0 0;font-size:12.5px;color:var(--warn)}.pulse{height:96px;cursor:pointer}.pulse .recharts-surface,.pulse .recharts-wrapper{cursor:pointer}.drawer-body .timeline time{color:var(--faint);font-size:12px;white-space:nowrap}.drawer-body .timeline header strong{font-weight:600}.seg{border:0;padding:0;cursor:pointer;transition:filter .12s ease}.seg:hover,.seg:focus-visible{filter:brightness(.92);outline-offset:-2px}button.here{border:0;background:transparent;padding:0 4px;border-radius:8px;justify-self:end;min-width:36px}button.here:not(:disabled):hover{background:var(--accent-soft);color:var(--accent)}button.here:disabled{cursor:default;opacity:1}.pipe-row:hover{background:var(--bg-soft)}.pipe-cols:hover{background:transparent}.hover-tip{position:fixed;z-index:var(--z-popover);transform:translate(-50%,-100%);pointer-events:none;display:flex;flex-direction:column;gap:1px;padding:8px 10px;background:var(--ink);color:#f6f4ef;border-radius:10px;font-size:12.5px;white-space:nowrap;box-shadow:var(--shadow)}.hover-tip span{color:#cfd6d2}.bar-row{grid-template-columns:minmax(90px,160px) minmax(0,1fr) 44px 44px;text-decoration:none;color:inherit}.bar-row .share{color:var(--faint);font-size:12.5px}.bar-list-head{display:grid;grid-template-columns:minmax(90px,160px) minmax(0,1fr) 44px 44px;gap:12px;padding:0 8px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.bar-list-head span:first-child{grid-column:1 / 3}.bar-list.is-scroll{max-height:280px;overflow:auto}.bar-list-missing{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line-strong)}.bar-row.is-missing .bar-name{color:var(--warn)}.bar-row.is-missing .bar-track>span{background:#d9b48f}.bar-more{margin:4px 0 0 8px;padding:0;border:0;background:transparent;color:var(--accent);font-size:13px;font-weight:500}.bar-more:hover{text-decoration:underline}.drawer-search{width:100%;min-width:0;margin-bottom:14px}.drawer-body .entity-list a{margin:0 -8px;padding:12px 8px}.entity-list strong{font-weight:600;font-size:15px;line-height:1.3}.entity-list a>span:first-child{gap:2px}.drawer-body .compact-list li:not(.is-blocker){padding:12px 0}.drawer-body .note{margin-bottom:14px}.entity-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.entity-list li{border-top:1px solid var(--line)}.entity-list li:first-child{border-top:0}.entity-list li.muted{padding:12px 0}.entity-list a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 8px;border-radius:10px;text-decoration:none}.entity-list a:hover{background:var(--bg-soft)}.entity-list a>span:first-child{display:flex;flex-direction:column;min-width:0}.entity-list .muted{font-size:13px}.entity-stage{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}.chip{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 4px 0 12px;border-radius:99px;background:var(--accent-soft);color:var(--accent);font-size:13px}.chip button{border:0;background:transparent;color:inherit;width:24px;height:24px;border-radius:99px;display:grid;place-items:center;padding:0}.chip button:hover{background:#234e481f}.filters{align-items:center}.filter-count{font-size:13px;margin-left:auto}.workflow-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;margin-bottom:16px}.workflow-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px}.workflow-head h2{margin:0;font-family:var(--serif);font-size:26px;font-weight:540;letter-spacing:-.03em}.workflow-head p{margin:4px 0 0}.workflow-progress{display:flex;align-items:center;gap:12px;width:min(280px,100%)}.workflow-progress strong{font-family:var(--serif);font-size:24px;font-weight:540}.workflow-progress .progress{flex:1}.track{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,5fr) minmax(130px,1fr);gap:10px;overflow-x:auto;padding-bottom:4px}.track-group{display:flex;flex-direction:column;gap:8px;min-width:0}.track-solo{padding-top:46px}.track-impl{border:1px solid var(--line);border-radius:16px;padding:8px;background:var(--bg-soft);min-width:640px}.track-impl.is-selected{border-color:#8eaae0;box-shadow:0 0 0 3px #2a4f8f1a}.track-group-head{display:flex;align-items:center;gap:10px;min-height:30px;padding:0 6px;border:0;background:transparent;text-align:left;font-weight:600;border-radius:10px}.track-group-head:hover{background:#ffffffb3}.track-group-head .muted{margin-left:auto;font-weight:400;font-size:13px}.track-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.track-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:112px;padding:12px;text-align:left;border-radius:14px;border:1px solid var(--line);background:#fff}.track-step:hover{border-color:var(--line-strong)}.track-step.is-blocked{background:var(--danger-soft);border-color:#e4cfe0}.track-step.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px #2a4f8f1f}.track-step.is-blocked.is-selected{border-color:var(--danger);box-shadow:0 0 0 3px #6d3c7824}.track-dot{width:26px;height:26px;border-radius:99px;display:grid;place-items:center;font-size:12px;font-weight:600;background:var(--pending-soft);color:var(--pending)}.track-step.is-progress .track-dot{background:var(--progress-soft);color:var(--progress-ink);box-shadow:inset 0 0 0 1.5px var(--progress)}.track-step.is-done .track-dot{background:var(--done);color:#f4fbf7}.track-step.is-pending .track-dot,.track-step:not(.is-progress):not(.is-done) .track-dot{background:var(--pending-soft);color:var(--pending)}.track-label{font-weight:600;font-size:14px;line-height:1.25}.track-executor{font-size:12px;font-weight:600;line-height:1.2;color:var(--accent)}.track-status{font-size:12px;color:var(--muted)}.track-step.is-progress .track-status{color:var(--progress-ink)}.track-step.is-done .track-status{color:var(--done)}.track-now{position:absolute;top:10px;right:10px;font-size:11px;padding:2px 7px;border-radius:99px;background:var(--accent-soft);color:var(--accent)}.stage-detail{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:20px;margin-top:16px;padding-top:18px;border-top:1px solid var(--line)}.stage-detail h3{margin:2px 0 4px;font-family:var(--serif);font-size:24px;font-weight:540;letter-spacing:-.02em}.stage-detail .muted{margin:0}.stage-control{display:flex;flex-direction:column;gap:6px;margin:16px 0 8px;max-width:240px}.group-status{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(180px,auto);align-items:center;gap:8px 28px;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--bg-soft)}.group-status .field-label{display:block;margin-bottom:6px}.group-status p{margin:0}.stage-detail.is-group:not(:has(.stage-detail-history)){grid-template-columns:1fr}.row-actions{display:flex;justify-content:flex-end;gap:8px;white-space:nowrap}.company-card h3 a{color:inherit;text-decoration:none}.company-card h3 a:hover{color:var(--accent)}.company-card>.btn{align-self:flex-start;margin-top:auto}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.template-grid .panel{display:flex;flex-direction:column;gap:8px}.template-grid .panel>.btn{align-self:flex-start;margin-top:6px}.template-grid h3{margin:0;font-size:18px}.mail-preview{margin-top:8px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--bg-soft);display:flex;flex-direction:column;align-items:flex-start;gap:8px}.mail-preview strong{font-family:var(--serif);font-size:24px;font-weight:540;letter-spacing:-.03em}.mail-preview p{margin:0}.stage-updated{font-size:13px}.latest-remark{margin-top:14px}.stage-detail-history{border-left:1px solid var(--line);padding-left:20px;max-height:360px;overflow:auto}.stage-detail-history .timeline{margin-top:6px}.stage-detail-history .status-shift{margin:6px 0 0}.time-dot.dot-done{background:var(--done)}.time-dot.dot-progress{background:var(--progress)}.tab-panel{padding:16px}.tab-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.status-shift{display:flex;align-items:center;gap:8px;margin-bottom:14px}.summary-strip{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.dropzone{border:1px dashed var(--line-strong);border-radius:16px;background:var(--bg-soft);min-height:160px;display:grid;place-items:center;text-align:center;padding:20px;color:var(--muted)}.dropzone strong{color:var(--ink)}.dropzone input{display:none}.preview-group{margin-bottom:16px}.preview-group h3{margin:0 0 8px;display:flex;gap:8px;align-items:center}.import-history{margin-top:20px}.import-history h3{margin:0 0 8px;font-size:16px}.import-history table{min-width:0}.import-history th:nth-child(3),.import-history td:nth-child(3),.import-history th:nth-child(4),.import-history td:nth-child(4),.import-history th:nth-child(5),.import-history td:nth-child(5){white-space:nowrap}.import-history td:nth-child(5){text-align:right}.import-row-actions{display:flex;justify-content:flex-end;gap:10px}.import-file{font-weight:600;text-align:left;overflow-wrap:anywhere}.import-delete-btn{color:var(--danger)}.import-delete{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--danger-soft)}.import-delete p{margin:0 0 10px}.import-archive-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.import-archive-head strong{display:block;margin-bottom:4px}.import-archive-head p{margin:0}.import-sheet{min-width:980px}.timeline{display:flex;flex-direction:column}.timeline li{display:grid;grid-template-columns:16px 1fr;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.activity-timeline{position:relative;display:flex;flex-direction:column;gap:24px;padding-left:30px}.activity-timeline:before{content:"";position:absolute;top:9px;bottom:14px;left:8px;width:2px;border-radius:99px;background:var(--line)}.activity-day{position:relative}.activity-day-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.activity-day-head h2{margin:0;font-family:var(--serif);font-size:20px;font-weight:540}.activity-day-head>span:last-child{color:var(--muted);font-size:13px}.activity-day-dot{position:absolute;top:7px;left:-28px;width:14px;height:14px;border:3px solid var(--bg);border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent)}.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}.activity-card{min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.activity-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.activity-person{display:flex;align-items:center;gap:9px;min-width:0}.activity-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-avatar{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}.activity-card time{color:var(--faint);font-size:12px;white-space:nowrap}.activity-card p{margin:12px 0 0;line-height:1.45}.activity-card p a{color:var(--accent);font-weight:600;text-decoration:none}.activity-card p a:hover{text-decoration:underline}.activity-card blockquote{margin:10px 0 0;padding:8px 10px;border:0;border-radius:9px;background:var(--bg-soft);color:var(--ink)}.activity-client{display:inline-flex;margin-top:11px;color:var(--accent);font-size:13px;font-weight:600;text-decoration:none}.activity-client:hover{text-decoration:underline}.timeline li:first-child{border-top:0}.time-dot{width:9px;height:9px;margin-top:6px;border-radius:99px;background:#b7aa9b}.timeline header{display:flex;justify-content:space-between;gap:8px}.empty{padding:28px 8px;text-align:center}.empty h3{margin:0 0 6px;font-family:var(--serif);font-weight:540}.skeleton{height:14px;border-radius:8px;background:linear-gradient(90deg,#ece7df,#f7f4ef,#ece7df);background-size:200% 100%;animation:shimmer 1.4s infinite}.skeleton.lg{height:180px;border-radius:18px}@keyframes shimmer{to{background-position:-200% 0}}@media(min-width:1920px){:root{--sidebar-w: 200px;--content-max: 1640px;--main-pad-x: 48px;--main-pad-y: 36px}body{font-size:15.5px}.page-head h1{font-size:44px}.dash-panel,.tab-panel{padding:20px}.workflow-panel{padding:24px}.stat{padding:16px 22px}.stat strong{font-size:30px}.track-step{min-height:120px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}@media(max-width:1600px){:root{--sidebar-w: 188px;--main-pad-x: 30px}}@media(max-width:1440px){:root{--sidebar-w: 176px;--main-pad-x: 24px;--main-pad-y: 22px}body{font-size:14.5px}.sidebar{padding:14px 8px;gap:14px}.brand strong{font-size:17px}.mark{width:40px;height:40px;border-radius:12px;font-size:14px}.page-head{margin-bottom:18px}.page-head h1{font-size:34px}.page-head p{font-size:14px}.deadline-card{padding:14px 16px}.deadline-top h2{font-size:21px}.stat{padding:12px 16px}.stat strong{font-size:25px}.dash-board{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:12px}.dash-col{gap:12px}.dash-panel,.tab-panel{padding:14px}.pipe-row{grid-template-columns:136px minmax(0,1fr) 72px;gap:12px;min-height:36px}.pipe-group .pipe-row{grid-template-columns:126px minmax(0,1fr) 72px}.pipe-label{font-size:13.5px}.pipe-main-label,.pipe-row.is-main .pipe-label{font-size:15px}.stack-bar{height:20px}.bar-row,.bar-list-head{grid-template-columns:minmax(80px,140px) minmax(0,1fr) 40px 40px;gap:10px}.bar-row{min-height:32px;font-size:13.5px}.workflow-panel{padding:18px}.workflow-head h2{font-size:23px}.track-step{min-height:104px;padding:10px}.track-label{font-size:13px}.stage-detail{gap:16px}.stage-detail h3{font-size:21px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.company-card{min-height:164px;padding:14px}th,td{padding:11px 12px}.modal-head{padding:18px 20px 12px}.drawer-head{padding:18px 20px 14px}.modal-body{padding:4px 20px 0}.drawer-body{padding:16px 20px 0}.modal-body .modal-actions,.drawer-body .modal-actions{margin:12px -20px 0;padding:12px 20px 18px}.drawer{width:min(480px,calc(100vw - 32px))}.auth-story h1{font-size:48px}}@media(max-width:1280px){:root{--sidebar-w: 168px;--main-pad-x: 20px}.dash-board{grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr)}.legend{gap:8px}.pipe-row{grid-template-columns:120px minmax(0,1fr) 56px}.pipe-group .pipe-row{grid-template-columns:110px minmax(0,1fr) 56px}.pipe-cols .num{font-size:10px}.stage-detail{grid-template-columns:minmax(240px,.85fr) minmax(0,1.15fr)}.track{grid-template-columns:120px minmax(600px,5fr) 120px}.track-impl{min-width:600px}.search{min-width:min(260px,100%)}.filters .select-trigger{width:170px}}@media(max-height:820px)and (min-width:861px){.sidebar{gap:14px;padding-top:14px;padding-bottom:14px}.modal{max-height:92vh}.stage-detail-history{max-height:300px}.auth-screen{padding:16px}.auth-card{height:min(520px,calc(100dvh - 32px))}.auth-brand{padding:20px 24px;gap:12px}.auth-story h1{font-size:28px}.auth-motion{display:none}.auth-panel{padding:22px 28px;gap:12px}.auth-form-card>.eyebrow{margin-bottom:7px}.auth-panel h2{font-size:28px;margin-bottom:5px}.auth-panel .lede{margin-bottom:16px}.auth-panel .field{margin-bottom:10px}.auth-panel input{min-height:42px}.auth-panel .btn{min-height:40px}.auth-help{padding-top:12px}}@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-grid,.chart-grid.even,.company-layout,.stage-detail,.dash-board,.group-status,.deadline-strip{grid-template-columns:1fr}.stat-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.stat:nth-child(4){border-left:0}.stat:nth-child(n+4){border-top:1px solid var(--line)}.stage-detail-history{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:14px}.track{grid-template-columns:140px 640px 140px}}@media(max-width:860px){.auth-screen{height:auto;min-height:100dvh;overflow:visible;padding:12px 12px 48px}.auth-card{width:min(460px,100%);height:auto;grid-template-columns:1fr}.auth-brand{height:auto;border:1px solid #1c3260;border-bottom:0;border-radius:22px 22px 0 0}.auth-panel{height:auto;border-radius:0 0 22px 22px;padding:28px 24px}.template-grid{grid-template-columns:1fr}.shell{display:block}.sidebar{position:fixed;z-index:70;transform:translate(-105%);transition:transform .16s ease;width:min(300px,88vw)}.sidebar.open{transform:none}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;border:0;background:#24201b47}.topbar{display:flex}.main{padding:18px 16px 56px}.page-head,.toolbar,.form-grid{display:grid}.toolbar-end{margin-left:0;flex-wrap:wrap}.auth-brand{padding:22px}.auth-story h1{font-size:30px}.auth-motion{width:220px}.form-grid{grid-template-columns:1fr}.activity-timeline{padding-left:24px}.activity-day-dot{left:-22px}.activity-grid{grid-template-columns:1fr}.drawer{width:100vw;border-radius:0}.modal-root{padding:12px}.page-head h1{font-size:32px}.kpi-grid{grid-template-columns:1fr 1fr}.pipe-row,.pipe-group .pipe-row{grid-template-columns:96px minmax(0,1fr) 40px;gap:8px}.panel-head{flex-direction:column}.legend{white-space:normal;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
