:root{font:15px/1.55 "Segoe UI",Arial,sans-serif;color-scheme:light;--bg:#f5f7fb;--surface:#fff;--text:#173047;--muted:#65788a;--line:#dfe7ef;--blue:#075f91;--soft:#edf5fc;--amber:#b56b05;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-underline-offset:3px}a:hover{text-decoration:underline}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border:1px solid transparent;border-radius:7px;padding:10px 16px;font:600 14px "Segoe UI",sans-serif;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{filter:brightness(.95)}button.secondary,.button.secondary,.quiet,.theme-toggle{background:var(--surface);border-color:var(--line);color:var(--text)}button:disabled{opacity:.55;cursor:wait}header{height:88px;padding:18px 32px;display:flex;align-items:center;gap:24px;background:var(--surface);border-bottom:1px solid var(--line)}header form{margin:0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;letter-spacing:.07em;color:var(--text);font-weight:800;font-size:17px;line-height:1.1}.brand small{display:block;font-size:11px;letter-spacing:.32em;font-weight:600;margin-top:5px}.brand img{flex-shrink:0}.product{padding-left:24px;border-left:1px solid var(--line);color:var(--muted);font-size:13px}.theme-toggle{margin-left:auto}.workspace{display:flex;min-height:calc(100vh - 88px)}.sidebar{width:228px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;font-weight:700;color:var(--muted);padding:0 14px;margin:0 0 13px}nav .nav-label{margin-top:32px}.sidebar nav>a{display:block;padding:11px 14px;margin:3px 0;border-radius:7px;color:var(--muted);font-size:14px;text-decoration:none;font-weight:600}.sidebar nav>a:hover,.sidebar nav>a[aria-current]{background:var(--soft);color:var(--blue)}.sidebar-foot{border-top:1px solid var(--line);padding:20px 10px 0;margin-top:auto;color:var(--muted);font-size:12px}.sidebar-foot p{margin:4px 0}.sidebar-foot small{overflow-wrap:anywhere}main{flex:1;min-width:0;max-width:1560px;padding:36px 40px;margin:0 auto;width:100%}h1{font-size:30px;letter-spacing:-.025em;line-height:1.2;margin:6px 0 10px}h2{font-size:18px;line-height:1.3;margin:0 0 14px}h3{font-size:15px;margin:10px 0 6px}.eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:750;color:var(--blue);margin:0}.muted{color:var(--muted);font-size:13px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p:last-child{margin-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-heading h2,.section-heading p{margin:0}.section-heading p{margin-top:6px}.card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:24px;margin-bottom:24px;box-shadow:0 2px 4px #132e4503}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.metrics .card{border-top:3px solid #38bdf8;padding:20px}.metrics .card:nth-child(3){border-top-color:#f59e0b}.metrics span,.metrics small{color:var(--muted);font-size:12px}.metrics strong{display:block;font-size:32px;line-height:1.3;margin:8px 0;font-weight:650}.metrics em{font-style:normal;color:var(--muted);font-size:18px;font-weight:400}.pipeline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pipeline-card h2{margin:10px 0 2px}.pipeline-card h2 a{text-decoration:none}.pipeline-card>.muted{margin:0}.pipeline-icon{font-size:30px;line-height:1;background:var(--soft);color:var(--blue);padding:8px 12px;border-radius:9px}.pipeline-counts{display:flex;gap:35px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:15px;color:var(--muted);font-size:12px}.pipeline-counts strong{font-size:21px;color:var(--text);display:block}.text-link{display:flex;justify-content:space-between;text-decoration:none;font-weight:650;font-size:13px}.badge{display:inline-block;font-size:11px;font-weight:650;line-height:1.4;padding:5px 8px;border-radius:5px;white-space:nowrap}.badge.good{color:#1f7050;background:#e8f6ee}.badge.warning{color:#91540b;background:#fff3dc}.badge.neutral{color:var(--muted);background:var(--soft)}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:22px}.scroll{overflow:auto}table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}td,th{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--bg);font-weight:650}tbody tr:last-child td{border-bottom:0}.row-title{font-weight:650;text-decoration:none}.subline{display:block;font-size:11px;color:var(--muted);margin-top:4px}.table-empty{padding:36px 16px;text-align:center;color:var(--muted)}.empty-state{text-align:center;grid-column:1/-1;padding:48px 28px}.empty-state p{max-width:470px;margin:10px auto 20px;color:var(--muted);font-size:14px}.empty-state.compact{padding:25px 15px}.empty-icon{font-size:38px;color:#59a7d1;margin-bottom:12px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs a{color:var(--muted);text-decoration:none;padding:12px 3px;font-size:14px}.tabs a[aria-current]{color:var(--blue);font-weight:650;border-bottom:3px solid #38bdf8}.breadcrumbs{display:flex;gap:10px;font-size:12px;color:var(--muted);margin-bottom:22px}.breadcrumbs a{text-decoration:none}.chart-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.chart-controls label{flex:1;min-width:135px;margin-bottom:0}.chart-output svg{width:100%;height:auto;display:block;color:var(--muted)}.chart-output{overflow:hidden}.chart-summary{font-size:12px;color:var(--muted)}label{display:block;font-size:13px;font-weight:600;margin-bottom:17px}input,select,textarea{display:block;width:100%;padding:10px 11px;margin-top:6px;border:1px solid #b8c8d5;border-radius:6px;background:var(--surface);color:var(--text);font:inherit}input[type=hidden]{display:none}textarea{resize:vertical}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.actions label{margin:0}.notice{padding:16px 20px;background:var(--soft);border:1px solid var(--line);border-radius:8px;margin-bottom:22px}.notice.error{border-color:#efb9b9;color:#8c2727;background:#fff2f2}.alert-item,.assignment-row,.location-item{padding:16px 0;border-bottom:1px solid var(--line)}.alert-item:last-child,.assignment-row:last-child,.location-item:last-child{border:0}.alert-item p{margin-bottom:0}.assignment-row{display:flex;justify-content:space-between;gap:15px;align-items:center}.assignment-row form{display:flex;gap:8px;align-items:center}.assignment-row select{margin:0;max-width:140px}.location-item>*{display:block}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:20px}code{font-family:Consolas,monospace;background:var(--soft);padding:4px;overflow-wrap:anywhere}dt{font-weight:650}dd{margin:6px 0 22px}footer{display:flex;justify-content:space-between;gap:16px;padding:20px 0;color:var(--muted);font-size:11px}.login{max-width:460px;margin:50px auto}.skip-link{position:absolute;top:-100px;left:20px;background:var(--surface);padding:12px;z-index:10}.skip-link:focus{top:10px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e9ab45;outline-offset:3px}
html[data-theme="dark"]{color-scheme:dark;--bg:#101923;--surface:#182431;--text:#e2ebf3;--muted:#a0b3c5;--line:#334455;--blue:#74c9f4;--soft:#253849}html[data-theme="dark"] button,html[data-theme="dark"] .button{color:#102536}html[data-theme="dark"] .secondary,html[data-theme="dark"] .quiet,html[data-theme="dark"] .theme-toggle{color:var(--text)}html[data-theme="dark"] .badge.good{background:#193d32;color:#8fd8b5}html[data-theme="dark"] .badge.warning{background:#43351c;color:#f6cb86}
@media(max-width:1200px){main{padding:28px}.pipeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:190px}.metrics{gap:12px}.metrics .card{padding:16px}}@media(max-width:900px){.workspace{display:block}.sidebar{width:auto;display:block;padding:10px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{display:flex;gap:5px;overflow-x:auto;white-space:nowrap}.sidebar .nav-label,.sidebar-foot{display:none}.sidebar nav>a{padding:8px 12px}.product{display:none}header{padding:16px 22px}.two-column{grid-template-columns:1fr;gap:0}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){header{height:auto;gap:12px;padding:15px;flex-wrap:wrap}.brand{font-size:14px}.brand img{width:30px;height:30px}.theme-toggle,.quiet{font-size:11px;padding:8px}.product{display:none}main{padding:24px 15px}.page-heading{align-items:start}.page-heading>button{font-size:11px;padding:8px}h1{font-size:25px}.card{padding:18px}.pipeline-grid{grid-template-columns:1fr;gap:0}.metrics{gap:10px}.metrics .card{padding:13px}.metrics strong{font-size:27px}.metrics small{font-size:10px}.metrics span{font-size:11px}.section-heading{align-items:start}table{min-width:560px}.assignment-row{align-items:start;flex-direction:column}footer{flex-direction:column;gap:5px}.tabs{gap:20px}}

.assignment-row{flex-wrap:wrap}.assignment-row>div{flex-basis:100%}.assignment-row form{flex-wrap:wrap}.assignment-row select{width:auto}
.history-toolbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}.segmented{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}.segmented button{background:var(--surface);color:var(--muted);border:0;border-radius:0;border-right:1px solid var(--line);padding:9px 15px}.segmented button:last-child{border-right:0}.segmented button[aria-pressed=true]{background:var(--soft);color:var(--blue)}.history-options{padding:16px;background:var(--bg);border-radius:8px}.history-options label{min-width:95px}.history-options label:first-child{min-width:175px}.check-label{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:500;white-space:nowrap}.check-label input{width:auto;margin:0}.chart-controls .check-label{flex:0 0 auto;min-height:40px}.history-legend{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 10px;font-size:12px}.history-series{display:flex;align-items:center;gap:7px}.history-chart svg{width:100%;height:auto;display:block;color:var(--muted);cursor:crosshair}.history-caption{display:flex;justify-content:space-between;align-items:start;gap:30px;margin-top:10px}.history-caption p{max-width:650px;margin:0}.history-caption .check-label{margin:0}[hidden]{display:none!important}@media(max-width:700px){.history-caption{display:block}.history-caption .check-label{margin-top:15px}.history-toolbar .actions{gap:8px}.history-options{padding:12px}.history-options label{min-width:110px}.segmented button{padding:9px 11px}}
.pipeline-map{border:1px solid var(--line);border-radius:8px;overflow:hidden;min-height:180px}.pipeline-map svg{display:block;width:100%;height:auto;min-height:220px;max-height:560px;color:var(--muted);cursor:grab;touch-action:none}.pipeline-map svg:active{cursor:grabbing}.pipeline-map.empty-map{display:grid;place-items:center;padding:40px;text-align:center;background:var(--bg);color:var(--muted);font-size:13px}
@media(max-width:900px){.sidebar nav{flex-wrap:wrap;overflow:visible;white-space:normal}.sidebar nav>a{margin:1px 0}.sidebar nav .nav-label{display:block;flex-basis:100%;margin:12px 0 0;padding:0 12px}.sidebar> .nav-label{display:none}}
fieldset{border:1px solid var(--line);border-radius:8px;padding:14px;margin:0 0 16px;min-width:0}legend{font-size:12px;padding:0 6px;color:var(--muted)}fieldset .two-column{gap:12px}fieldset label{margin-bottom:0}.segment-settings{border-top:1px solid var(--line);padding:16px 0}.segment-settings summary{cursor:pointer;font-weight:650;color:var(--blue)}.segment-settings form,.segment-settings dl{margin-top:20px}.archive-job{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--line)}.archive-job:last-child{border-bottom:0}.archive-job>div{flex:1;min-width:180px}.archive-job>p{flex-basis:100%;margin:0}.archive-job strong{font-size:13px}

/* Long customer pipeline names must not push heading actions off small screens. */
.page-heading{flex-wrap:wrap}.page-heading>div{min-width:0;flex:1 1 260px}.page-heading h1{overflow-wrap:anywhere}.breadcrumbs{flex-wrap:wrap;overflow-wrap:anywhere}
