:root{color-scheme:light;--bg:#f2f5f4;--paper:#ffffff;--surface:#eaf0ed;--ink:#192d26;--muted:#52645c;--line:#cbd6d0;--green:#22664b;--on-green:#fff;--lime:#dbeddf;--danger:#ac2838;--danger-bg:#fff0f1;--amber:#81510b;--amber-bg:#fff2d7;--blue:#285da0;--blue-bg:#eaf1ff;--purple:#704294;--purple-bg:#f5ecfc;--shadow:0 12px 45px #153b2420}
:root[data-theme=dark]{color-scheme:dark;--bg:#111b20;--paper:#1b282e;--surface:#24343b;--ink:#eff7f3;--muted:#b2c5bd;--line:#40565d;--green:#9cddba;--on-green:#112d22;--lime:#284c3b;--danger:#ffadba;--danger-bg:#462b35;--amber:#f1cd81;--amber-bg:#423b2d;--blue:#a9cbff;--blue-bg:#283c57;--purple:#dbb9fa;--purple-bg:#3f304e;--shadow:0 12px 45px #0004}
*{box-sizing:border-box} [x-cloak]{display:none!important} body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a,input,select,textarea,summary{outline-offset:4px} :focus-visible{outline:3px solid var(--green)}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.25;letter-spacing:-.8px;font-weight:700}h2{font-size:20px;line-height:1.4;letter-spacing:-.3px}h3{font-size:17px}small,.muted{color:var(--muted)}small{font-size:14px}svg.icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.text-danger{color:var(--danger)!important}.spacer{flex:1}.shell{display:flex;min-height:100vh}
.sidebar{width:254px;position:fixed;inset:0 auto 0 0;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 18px 18px;z-index:40;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);padding:0 10px 30px}.brand:hover{text-decoration:none}.brand img{width:38px;height:38px}.brand strong{font-size:28px;letter-spacing:-1px;line-height:1}.brand small{display:block;font-size:11px;letter-spacing:1.2px;margin-top:7px;color:var(--muted)}.nav{display:grid;gap:5px}.nav-label{font-size:11px;font-weight:750;letter-spacing:1.15px;color:var(--muted);padding:22px 12px 7px}.nav-label:first-child{padding-top:8px}.nav button{border:0;background:transparent;color:var(--muted);text-align:left;display:flex;align-items:center;gap:11px;padding:11px 12px;min-height:46px;border-radius:8px;font-size:15px;font-weight:600}.nav button.active{background:var(--lime);color:var(--green)}.nav button:hover{background:var(--surface);color:var(--ink)}.nav .count{margin-left:auto;background:var(--paper);color:var(--ink);padding:1px 8px;border-radius:6px;font-size:13px}.sidebar-bottom{margin-top:auto;padding-top:32px;display:grid;gap:10px}.sidebar-bottom .btn{justify-content:flex-start}.profile{display:flex;align-items:center;gap:10px;padding:16px 3px 0;border-top:1px solid var(--line);margin-top:6px}.profile strong{font-size:14px}.profile small{display:block;font-size:12px}.avatar,.tiny-avatar{display:inline-flex;align-items:center;justify-content:center;background:var(--lime);color:var(--green);border-radius:50%;width:38px;height:38px;font-size:13px;font-weight:700;flex-shrink:0}.tiny-avatar{width:28px;height:28px}.theme-toggle span:first-child{font-size:24px;line-height:1}.main{margin-left:254px;width:calc(100% - 254px);min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px;background:var(--paper);border-bottom:1px solid var(--line)}.searchbox{display:flex;align-items:center;gap:11px;flex:1;max-width:570px;color:var(--muted)}.searchbox input{border:0;background:transparent;padding:10px 0;width:100%;min-width:0;font-size:15px;outline-offset:1px}.searchbox input::placeholder{color:var(--muted)}.date-label{font-size:14px;color:var(--muted);white-space:nowrap}.content{padding:32px 36px;max-width:1700px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.5px;color:var(--muted);margin-bottom:9px}.subtitle{color:var(--muted);font-size:15px;margin-top:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px 15px;min-height:42px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;white-space:nowrap}.btn:hover{background:var(--surface);text-decoration:none;border-color:var(--muted)}.btn.primary{background:var(--green);color:var(--on-green);border-color:var(--green)}.btn.primary:hover{filter:brightness(.92)}.btn.small{padding:7px 10px;min-height:36px;font-size:14px}.btn.ghost{background:transparent;border-color:transparent}.btn.danger{color:var(--danger)}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:26px 0 16px}.section-top p,.panel-head p{font-size:14px;color:var(--muted);margin-top:6px}.section-top a,.link{color:var(--green)}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 24px;border-bottom:1px solid var(--line)}.panel-body{padding:24px}.empty{text-align:center;padding:40px 22px!important;color:var(--muted);font-size:15px}.empty p{margin:8px 0 18px}.footer-note{display:flex;justify-content:space-between;gap:15px;margin-top:34px;font-size:12px;color:var(--muted)}
.focus-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.focus-card{border:1px solid var(--line);border-top:3px solid var(--green);background:var(--paper);border-radius:10px;padding:19px 20px;text-align:left;color:var(--ink);transition:transform .15s,box-shadow .15s}.focus-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.focus-card>span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:650;font-size:15px}.focus-card .icon{width:16px}.focus-card>strong{font-size:40px;font-weight:700;display:block;line-height:1.3;margin:12px 0 7px}.focus-card>small{display:block;font-size:13px}.focus-card.danger{border-top-color:var(--danger)}.focus-card.danger>strong{color:var(--danger)}.focus-card.production{border-top-color:var(--amber)}.focus-card.quote{border-top-color:var(--purple)}.focus-card.design{border-top-color:var(--blue)}.workday-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(270px,1fr);gap:24px;align-items:start}.next-work .panel-head{align-items:flex-start;flex-wrap:wrap}.next-row{display:flex;align-items:center;text-align:left;gap:14px;padding:19px 24px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}.next-row:last-child{border:0}.next-row:hover{background:var(--surface)}.next-status{width:4px;height:40px;border-radius:4px;flex-shrink:0;background:var(--green)}.next-status.quote{background:var(--purple)}.next-status.design{background:var(--blue)}.next-status.production{background:var(--amber)}.next-title{flex:1;min-width:0}.next-title strong{font-size:16px;font-weight:650;display:block;line-height:1.45}.next-title small{display:block;margin-top:5px;font-size:13px}.next-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:45%;text-align:right}.next-meta small{font-size:12px}.next-row>.icon{width:16px;color:var(--muted)}.day-side{display:grid;gap:24px}.day-side .panel-head{padding:21px}.day-side h2{font-size:18px}.tidy-list{padding:4px 20px 10px}.tidy-list button,.stage-summary button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;text-align:left;padding:15px 0;color:var(--ink);font-size:14px}.tidy-list button:hover,.stage-summary button:hover{color:var(--green)}.tidy-list button strong{margin-left:auto}.tidy-list button .icon{width:15px}.stage-summary{padding:5px 20px 10px}.stage-summary button{padding:11px 0;justify-content:space-between}.recent-panel{margin-top:24px}.recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:24px}.recent-grid strong{display:block;font-size:14px;margin:5px 0}.recent-grid p,.recent-grid small{font-size:13px;color:var(--muted)}
.focus-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.focus-tabs button,.view-toggle button,.period button{background:transparent;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:14px;font-weight:650;padding:9px 13px;min-height:40px}.focus-tabs button.active,.view-toggle button.active,.period button.active{background:var(--lime);color:var(--green);border-color:var(--green)}.focus-tabs button:hover,.period button:hover{background:var(--surface)}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filters select{width:auto;min-width:150px;max-width:220px;font-size:14px}.view-toggle{display:flex;gap:3px}.view-toggle button{display:flex;align-items:center;gap:7px;padding:8px 10px}.view-toggle .icon{width:16px}.result-count{font-size:14px;color:var(--muted);white-space:nowrap}.extra-filters{position:relative}.extra-filters summary{list-style:none;cursor:pointer}.filter-popover{position:absolute;left:0;top:calc(100% + 8px);display:grid;gap:14px;padding:20px;min-width:245px;background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:10px;z-index:15}.filter-popover label{font-size:14px;font-weight:650}.filter-popover select{width:100%;margin-top:5px}.filter-summary{margin:-7px 0 18px;color:var(--muted);font-size:14px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;padding:15px 20px;background:var(--surface);color:var(--muted);white-space:nowrap}td{padding:18px 20px;border-bottom:1px solid var(--line);font-size:14px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface)}.work-table{min-width:730px}.work-title button{background:none;border:0;padding:0;text-align:left;color:var(--ink);font-size:16px;font-weight:650}.work-title button:hover{color:var(--green);text-decoration:underline}.work-subtitle{display:block;color:var(--muted);font-size:13px;margin-top:5px}.tag{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}.tag:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.tag.quote{color:var(--purple);background:var(--purple-bg)}.tag.design{color:var(--blue);background:var(--blue-bg)}.tag.production{color:var(--amber);background:var(--amber-bg)}.tag.done{color:var(--green);background:var(--lime)}.tag.danger{color:var(--danger);background:var(--danger-bg)}.tag.neutral{background:var(--surface);color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;color:var(--muted);font-size:14px}.board{display:grid;grid-template-columns:repeat(4,minmax(245px,1fr));gap:16px;overflow-x:auto;padding-bottom:18px}.board-column{background:var(--surface);border-radius:10px;padding:12px;min-height:240px}.column-head{display:flex;align-items:center;justify-content:space-between;padding:6px 0 15px;color:var(--muted);font-size:14px}.job-card{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:17px;margin-bottom:13px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-top small{font-size:12px}.job-card h3{margin:12px 0 7px}.job-card h3 button{font:inherit;background:none;border:0;padding:0;color:var(--ink);text-align:left;line-height:1.45}.job-card h3 button:hover{color:var(--green)}.job-card p{font-size:14px;color:var(--muted)}.card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:18px 0 12px;font-size:12px;color:var(--muted)}.card-bottom .icon{width:15px;height:15px;margin-right:5px}.stage-select{font-size:14px;width:100%}
.notice,.error{border:1px solid var(--green);background:var(--lime);color:var(--green);border-radius:8px;padding:13px 18px;margin-bottom:20px;font-size:15px}.notice{display:flex;align-items:center;justify-content:space-between;gap:12px}.error{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}.loading-bar{position:fixed;top:0;left:0;right:0;height:4px;background:var(--green);z-index:100;animation:pulse 1s ease-in-out infinite}@keyframes pulse{50%{opacity:.4}}.modal-backdrop{position:fixed;inset:0;background:var(--overlay,#081b2dcc);z-index:60;padding:32px 20px;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center}.modal{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);width:100%;max-width:800px;margin:auto;overflow:hidden}.modal.wide{max-width:1100px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 28px;border-bottom:1px solid var(--line);background:var(--paper)}.modal-head h2{font-size:22px}.modal-body{padding:28px}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:19px 28px;border-top:1px solid var(--line);background:var(--surface)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field.full{grid-column:1/-1}.field label{display:block;font-size:14px;font-weight:650;color:var(--ink);margin-bottom:7px}.field input,.field select,.field textarea,input[type=date],select{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);padding:10px 12px;min-height:44px;font-size:15px}.field textarea{width:100%;min-height:100px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green)}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=checkbox]{accent-color:var(--green);width:18px;height:18px}.checkfield{display:flex;align-items:center;gap:9px;font-size:14px;padding:8px 0}.detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.detail-top h2{font-size:25px;margin-top:6px}.detail-top small{font-size:13px}.detail-description{background:var(--surface);padding:20px;border-radius:8px;font-size:15px;white-space:pre-wrap;color:var(--ink);margin:18px 0 24px}.work-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.deadline{display:block;font-size:16px;padding:11px 0}.autosave-hint{font-size:13px;margin-top:9px}.note-actions{justify-content:flex-end;margin:12px 0 24px}.secondary-details{border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:0 18px;background:var(--paper)}.secondary-details summary{font-size:15px;font-weight:650;padding:16px 0;cursor:pointer;color:var(--ink)}.secondary-details[open]>summary{margin-bottom:10px;border-bottom:1px solid var(--line)}.secondary-details[open]{padding-bottom:20px}.secondary-details .form-grid{padding-top:5px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.detail-grid small{display:block;margin-bottom:6px}.detail-grid strong{font-size:15px}.timeline{border-left:2px solid var(--line);padding-left:20px;margin:20px 0 0 5px}.timeline-entry{position:relative;margin:0 0 20px}.timeline-entry:before{content:'';position:absolute;left:-26px;top:6px;width:10px;height:10px;background:var(--green);border-radius:50%;border:2px solid var(--paper)}.timeline-entry strong{font-size:15px}.timeline-entry small{font-size:12px}.timeline-entry p{font-size:14px;color:var(--muted);white-space:pre-wrap}.note-box{font-size:14px;color:var(--muted);padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin:18px 0}.note-box summary{cursor:pointer;color:var(--ink)}.quote-link{font-size:14px;background:var(--lime);color:var(--green);padding:15px;border-radius:8px;margin-bottom:18px;overflow-wrap:anywhere}.quote-item{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:20px}.quote-item .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quote-item input,.quote-item select{padding:9px;font-size:14px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.setting-card{padding:24px}.setting-card h3{margin:10px 0}.setting-card p{font-size:15px;color:var(--muted);margin-bottom:18px}.integration-status{font-size:13px;padding:10px;background:var(--surface);border-radius:7px;color:var(--muted);border:1px solid var(--line)}.list-row{display:flex;align-items:center;gap:15px;padding:20px;border-bottom:1px solid var(--line)}.list-row p{font-size:14px;color:var(--muted)}.list-row .actions{margin-left:auto}.report-period{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:24px}.report-period label{font-size:13px;color:var(--muted)}.report-period input{display:block;width:165px;margin-top:5px}.period{display:flex;gap:5px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.revenue-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{border:1px solid var(--line);border-radius:10px;padding:22px;background:var(--paper)}.stat.featured{background:var(--lime);color:var(--green)}.stat-head{font-size:14px;font-weight:650}.stat-value{font-size:30px;font-weight:700;margin:14px 0 6px}.stat small{font-size:13px}.source-line{font-size:13px;color:var(--muted);margin-top:12px}.login-page{min-height:100vh;display:grid;place-items:center;background:var(--bg)}.login-card{padding:40px;max-width:500px;background:var(--paper);border-radius:16px;border:1px solid var(--line);text-align:center}.login-card p{margin:20px 0;color:var(--muted)}.mobile-menu,.mobile-scrim{display:none}
@media(min-width:1650px){.content{padding:40px 48px}.topbar{padding-inline:48px}.focus-card{padding:24px}.next-row{padding-block:22px}}
@media(max-width:1250px){.content{padding:28px 24px}.topbar{padding-inline:24px}.workday-grid{grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr)}.focus-grid{gap:12px}.focus-card{padding:16px}.focus-card>span{font-size:14px}.next-row{padding:17px;gap:10px}.next-meta{max-width:40%}.next-row>.icon{display:none}.date-label{display:none}.panel-head{padding:20px}.next-meta small{max-width:160px}.stat-value{font-size:26px}}
@media(max-width:1100px){.workday-grid{grid-template-columns:1fr}.day-side{grid-template-columns:1fr 1fr}.focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.focus-card>strong{font-size:34px;margin:8px 0}.focus-card>span{font-size:15px}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.mobile-open{transform:translateX(0)}.mobile-scrim{display:block;position:fixed;inset:0;background:var(--scrim,#071d2f99);border:0;z-index:30}.main{margin-left:0;width:100%}.mobile-menu{display:inline-flex}.topbar{height:72px}.content{padding:26px 24px}.searchbox{max-width:none}.topbar .mobile-menu{padding:6px}.split{grid-template-columns:1fr}.modal-backdrop{padding:20px 12px}.brand{padding-bottom:18px}.sidebar-bottom{padding-top:25px}.sidebar{padding-top:22px}}
@media(max-width:600px){h1{font-size:27px}.content{padding:24px 16px}.topbar{padding:0 16px;gap:12px}.searchbox input{font-size:14px}.page-heading{align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:22px}.page-heading .actions{width:100%}.page-heading .actions .primary{width:100%;font-size:15px}.eyebrow{font-size:10px}.focus-grid{gap:10px}.focus-card{padding:15px 12px}.focus-card>span{font-size:13px}.focus-card>small{font-size:12px}.focus-card>strong{font-size:32px}.focus-card .icon{display:none}.day-side,.recent-grid{grid-template-columns:1fr}.next-row{flex-wrap:wrap;padding:18px 16px;gap:10px}.next-title{flex-basis:80%}.next-meta{flex-direction:row;max-width:none;align-items:center;justify-content:space-between;width:100%;padding-left:14px}.next-meta small{max-width:65%}.next-title strong{font-size:16px}.panel-head{padding:20px 16px}.panel-head h2{font-size:18px}.filters{gap:8px}.filters select{max-width:none;min-width:0;flex:1}.filters>.spacer{display:none}.result-count{margin-left:auto}.focus-tabs button{font-size:13px;padding:8px 10px}.view-toggle{width:100%;margin-top:5px}.view-toggle button{flex:1;justify-content:center}.filter-popover{left:0;min-width:240px}.section-top{align-items:flex-start;flex-direction:column}.form-grid,.work-controls,.detail-grid{grid-template-columns:1fr}.quote-item .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-body{padding:20px 16px}.modal-head{padding:20px 16px}.modal-head h2{font-size:20px}.modal-backdrop{padding:12px 8px}.modal-footer{padding:18px 16px}.detail-top{flex-direction:column;gap:14px}.detail-top h2{font-size:23px}.work-controls{gap:15px}.deadline{padding:2px 0}.recent-grid{gap:22px}.footer-note{display:block}.footer-note span{display:block;margin-top:5px}.revenue-stats{grid-template-columns:1fr}.report-period input{width:145px}.stat-value{font-size:30px}.note-actions .btn{width:100%}.secondary-details{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.filters,.actions,.modal-footer,.mobile-scrim{display:none}.main{width:100%;margin:0}.content{padding:0}.panel,.stat{break-inside:avoid}}

.brand small{font-size:10px;letter-spacing:.5px;white-space:nowrap}.topbar .theme-toggle{flex-shrink:0}.topbar .theme-toggle span:first-child{font-size:21px}@media(max-width:600px){.topbar .theme-toggle{padding:8px}.topbar .theme-toggle span:last-child{display:none}}

body:has(.modal-backdrop){overflow:hidden}
/* Profile controls, work board and configuration. */
select,.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352645c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:42px!important}
[data-theme=dark] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b2c5bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.theme-toggle{width:44px;height:44px;min-width:44px;padding:8px!important}.theme-toggle span{display:inline!important}.brand img{object-fit:contain;max-width:54px}.profile-switch{display:flex;align-items:center;gap:10px;padding-top:15px;border-top:1px solid var(--line)}.profile-switch label{font-size:12px;color:var(--muted);min-width:0;flex:1}.profile-switch select{font-size:14px;min-height:38px;padding:6px 9px}.signed-in{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.profile-dot{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;min-width:28px;border-radius:50%;background:var(--profile-color,#64748b);color:var(--profile-ink,#fff);font-size:11px;font-weight:750;line-height:1;letter-spacing:.3px}.profile-switch>.profile-dot{width:36px;height:36px;font-size:13px}.person-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.actor-action{display:inline-flex;position:relative;vertical-align:middle;align-items:stretch;max-width:100%;isolation:isolate}.actor-action>.btn{gap:7px;white-space:nowrap;padding:7px 9px;border-radius:7px 0 0 7px;min-height:40px;font-size:13px}.actor-action>.btn>small{font-size:10px;color:inherit;opacity:.85;font-weight:400}.actor-action .profile-dot{width:25px;height:25px;min-width:25px;font-size:10px}.actor-chevron{border:1px solid var(--line);border-left:0;background:var(--paper);border-radius:0 7px 7px 0;padding:4px 7px;color:var(--ink);min-width:26px;font-size:18px}.actor-chevron:hover{background:var(--surface)}.actor-menu{display:grid;position:absolute;top:calc(100% + 5px);right:0;min-width:210px;padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);z-index:100}.actor-menu button{display:flex;gap:9px;align-items:center;border:0;background:transparent;text-align:left;color:var(--ink);padding:9px;border-radius:5px;font-size:13px}.actor-menu button:hover,.actor-menu button.selected{background:var(--surface)}.actor-action:has(.actor-menu:not([style*="display: none"])){z-index:30}.work-date{display:inline-flex;flex-direction:column;line-height:1.45;font-size:13px;white-space:nowrap}.work-date small,.date-friendly{display:block;font-size:12px;color:var(--muted)}.text-danger .work-date small{color:var(--danger)}.multi-filters{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:5px 18px;margin-bottom:15px}.filter-row{border:0;border-bottom:1px solid var(--line);margin:0;padding:13px 0;display:flex;align-items:flex-start;gap:16px;min-width:0}.filter-row:last-child{border:0}.filter-row legend{float:left;min-width:130px;font-size:14px;font-weight:650;padding:7px 0;margin:0}.filter-options{display:flex;flex-wrap:wrap;align-items:center;gap:7px;flex:1}.filter-chip{cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;background:var(--bg);border:1px solid var(--line);border-radius:6px;font-size:13px;color:var(--muted)}.filter-chip input{width:15px;height:15px;margin:0;accent-color:var(--green)}.filter-chip:has(input:checked){background:var(--lime);border-color:var(--green);color:var(--ink)}.filter-all{border:1px solid var(--line);border-radius:6px;font-size:13px;background:var(--paper);padding:7px 11px;color:var(--muted)}.filter-all.active{background:var(--lime);color:var(--ink);border-color:var(--green)}.city-filter{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.board{grid-template-columns:repeat(var(--column-count,4),minmax(270px,1fr));gap:14px;align-items:start;overflow-x:auto;padding-bottom:16px}.board-column{padding:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:180px}.column-head{margin:0;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:13px 8px;border-radius:8px 8px 0 0;font-size:18px;line-height:1.4}.column-head span{font-size:13px;border:1px solid currentColor;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.column-scroll{padding:9px;max-height:calc(100vh - 280px);min-height:220px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.compact-card{padding:11px 12px;margin-bottom:9px;background:color-mix(in srgb,var(--owner-color) 9%,var(--paper));border-left:3px solid var(--owner-color);cursor:pointer;position:relative}.compact-card:hover{border-color:var(--owner-color);box-shadow:0 2px 9px #0001}.compact-card .card-top{font-size:11px;line-height:1}.compact-card .card-top small{font-size:11px}.compact-card .card-top .profile-dot{width:23px;height:23px;font-size:9px;min-width:23px}.compact-card h3{font-size:15px;line-height:1.3;margin:7px 0 4px}.compact-card p{font-size:12px;line-height:1.4}.card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.card-tags .tag{font-size:10px;padding:2px 6px;white-space:normal}.compact-card .card-bottom{margin:9px 0;gap:5px}.compact-card .work-date{flex-direction:row;gap:8px;font-size:11px}.compact-card .work-date small{font-size:11px}.compact-card .actor-action>.btn{font-size:12px;min-height:33px;padding:5px 7px}.compact-card .actor-action .profile-dot{width:21px;height:21px;min-width:21px;font-size:9px}.compact-card .actor-menu{right:auto;left:0;top:auto;bottom:calc(100% + 5px)}.row-next{display:flex;align-items:center;gap:5px;white-space:nowrap}.work-table{min-width:1000px}.work-table td{padding:14px 16px}.work-table .person-label{font-size:13px}.work-table .work-title button{font-size:15px}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.settings-editor{padding:26px;margin-bottom:22px;overflow:visible}.settings-editor>.subtitle{margin-bottom:20px}.settings-fields{margin:20px 0 24px}.setting-line{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:15px 0;padding-bottom:15px;border-bottom:1px solid var(--line)}.setting-line>.field,.setting-line>.person-label,.setting-line>div{flex:1;min-width:180px}.setting-line .field input{display:block;margin-top:6px}.settings-save{margin-top:28px;display:flex;justify-content:flex-end}.color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0 28px}.color-grid label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;border:1px solid var(--line);border-radius:7px;padding:12px}input[type=color]{width:54px;height:40px;border:1px solid var(--line);border-radius:5px;padding:3px;background:var(--paper);cursor:pointer}.epr-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end;margin:20px 0}.epr-row input{display:block;margin-top:7px}.delivery-row{padding:18px 0;border-bottom:1px solid var(--line)}.delivery-row summary{cursor:pointer;font-size:15px;font-weight:650}.delivery-row .tag{margin-left:10px}.delivery-row p{margin:10px 0}.quote-modal{max-width:1500px;width:96vw}.quote-modal .modal-body{padding:0}.quote-workbench{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(480px,1.3fr);align-items:start;max-height:calc(100vh - 245px);min-height:380px}.quote-mail,.quote-editor{padding:24px;max-height:calc(100vh - 245px);overflow-y:auto;overscroll-behavior:contain}.quote-mail{background:var(--surface);border-right:1px solid var(--line)}.quote-editor{background:var(--paper)}.quote-mail>.subtitle,.quote-editor>.subtitle{font-size:13px;margin:10px 0 20px}.mail-preview{padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:8px;margin-bottom:16px}.mail-preview summary{font-size:14px;font-weight:650;cursor:pointer}.mail-preview>small{display:block;font-size:12px;margin-top:10px}.mail-preview .work-date{margin:6px 0}.mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:12px 0 20px}.quote-item{padding:18px;margin:18px 0;background:var(--bg)}.quote-item-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.quote-item .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-item .field{display:block;font-size:13px;color:var(--muted)}.quote-item .field input,.quote-item .field select{display:block;margin-top:6px;font-size:14px}.quote-item>.field{margin-top:15px}.product-specs{margin-top:18px}.product-specs summary{cursor:pointer;font-size:13px;font-weight:650;color:var(--ink);padding:6px 0}.product-specs .form-grid{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-saved{border:1px solid var(--green);border-radius:8px;background:var(--lime);padding:18px;margin-top:22px}.quote-saved>p{margin:8px 0 14px}.advance-confirm{padding:16px}.advance-confirm p{margin:18px 0}.quote-modal .modal-head{padding:18px 25px}.quote-modal .modal-footer{padding:15px 25px}.quote-modal .notice{margin:16px 24px}.board-column .empty{font-size:13px;padding:22px 12px!important}
@media(max-width:1100px){.quote-workbench{grid-template-columns:minmax(260px,.8fr) minmax(380px,1.2fr)}.quote-mail,.quote-editor{padding:18px}.quote-item .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-row legend{min-width:115px}.epr-row{grid-template-columns:1fr 1fr}.sidebar-bottom{padding-top:18px}.nav-label{padding-top:15px}}
@media(max-width:760px){.quote-workbench{grid-template-columns:1fr;max-height:none}.quote-mail,.quote-editor{max-height:none;overflow:visible}.quote-mail{border-right:0;border-bottom:1px solid var(--line)}.quote-modal{width:100%}.quote-mail .mail-preview{max-height:350px;overflow:auto}.filter-row{display:block}.filter-row legend{float:none;width:100%;padding:3px 0 9px}.filter-options{gap:6px}.multi-filters{padding:8px 12px}.settings-editor{padding:20px 16px}.color-grid{grid-template-columns:1fr}.settings-tabs .btn{font-size:13px;padding:8px 10px}.epr-row{grid-template-columns:1fr}.column-scroll{max-height:65vh}.work-controls .actor-action{margin-top:9px}.city-filter{width:100%}.city-filter select{flex:1}.setting-line{align-items:flex-start}.profile-switch select{max-width:175px}.quote-modal .modal-body{overflow:visible}}


.modal.quote-modal{max-width:1500px;width:96vw}.profile-switch select{background-position:right 12px center}.work-date .date-friendly{display:block}

.modal{position:relative}.discard-layer{position:absolute;inset:0;background:var(--overlay,#081b2dcc);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.discard-box{background:var(--paper);color:var(--ink);padding:28px;border:1px solid var(--line);border-radius:12px;max-width:560px;box-shadow:var(--shadow)}.discard-box p{margin:18px 0 24px}.quote-estimate{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:17px;margin:20px 0}.quote-estimate small,.quote-estimate strong{display:block}.quote-estimate strong{font-size:18px}.quote-estimate p{grid-column:1/-1;font-size:12px;color:var(--muted)}

.actor-menu.floating{position:fixed;right:auto!important;bottom:auto!important;max-height:280px;overflow-y:auto;min-width:220px;z-index:200}

/* The active profile owns the workspace palette and its sidebar picker. */
.profile-switch{position:relative;display:block}.profile-picker{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);text-align:left}.profile-picker:hover{border-color:var(--green)}.profile-picker .profile-dot{width:36px;height:36px;font-size:13px}.profile-picker-name{flex:1;min-width:0}.profile-picker-name small,.profile-picker-name strong{display:block}.profile-picker-name small{font-size:11px}.profile-picker-name strong{font-size:14px;overflow-wrap:anywhere}.profile-picker-chevron{font-size:20px}.profile-options{position:absolute;top:auto;bottom:calc(100% + 5px);left:0;right:0;min-width:0;max-height:260px;overflow:auto}.profile-options button{min-height:44px}.profile-options button.selected{box-shadow:inset 3px 0 var(--green)}.profile-color-field{display:flex;align-items:center;gap:10px;font-size:13px}.monogram-setting{font-size:13px;min-width:180px}.monogram-setting>label{display:flex;align-items:center;gap:8px}.monogram-setting input[type=checkbox]{display:inline;width:16px;height:16px;margin:0;accent-color:var(--green)}.monogram-setting small{display:block;font-size:12px;margin-top:6px}

/* Keep filter checkboxes keyboard-accessible without a visible square. */
.filter-chip{position:relative}.filter-chip input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.filter-chip:has(input:focus-visible){outline:3px solid var(--green);outline-offset:3px}

.quote-register-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin-bottom:22px}.quote-status-filters{display:flex;gap:7px;flex-wrap:wrap}.quote-search{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:8px 12px;min-width:280px;flex:1;max-width:430px;color:var(--muted)}.quote-search input{border:0;background:transparent;min-width:0;width:100%;font-size:14px;padding:3px}.quote-register-table{min-width:1080px}.quote-number{font-weight:750;font-size:15px}.quote-subject{display:block;font-size:14px;margin-top:7px;max-width:300px}.quote-amount{font-weight:700;white-space:nowrap}.quote-row-actions{display:flex;gap:7px;flex-wrap:wrap;max-width:285px;min-width:220px}.quote-state{white-space:nowrap}.quote-state-draft{background:var(--surface);color:var(--ink)}.quote-state-issued{background:var(--blue-bg);color:var(--blue)}.quote-state-accepted{background:var(--lime);color:var(--green)}.quote-state-expired{background:var(--amber-bg);color:var(--amber)}.quote-state-revoked{background:var(--danger-bg);color:var(--danger)}.quote-state-superseded{background:var(--purple-bg);color:var(--purple)}.quote-register .empty h3{margin-bottom:8px}@media(max-width:760px){.quote-search{max-width:none;min-width:0;width:100%;flex-basis:100%}}

.quote-register-table:has(.empty){min-width:0}.quote-register-table:has(.empty) thead{display:none}

.settlement-toasts{position:fixed;left:16px;bottom:16px;z-index:150;display:grid;gap:10px;width:min(390px,calc(100vw - 32px));max-height:75vh;overflow:auto}.settlement-toast{position:relative;background:var(--paper);color:var(--ink);border:1px solid var(--green);border-left:4px solid var(--green);border-radius:10px;padding:17px 40px 16px 17px;box-shadow:var(--shadow);font-size:14px}.settlement-toast strong{display:block;font-size:14px}.settlement-toast p{margin:7px 0;font-size:14px}.settlement-toast small{display:block;font-size:12px;line-height:1.5}.settlement-close{position:absolute;top:7px;right:7px;width:30px;height:30px;border:0;background:transparent;border-radius:5px;color:var(--muted);font-size:23px}.settlement-close:hover{background:var(--surface);color:var(--ink)}.settlement-undo{margin-top:12px;color:var(--green);border-color:var(--green)}.settlement-toast.failed{border-color:var(--danger)}.settlement-pending-label{font-size:13px;color:var(--muted);display:inline-block;max-width:210px}.focus-tabs{flex-wrap:wrap}

/* Compact pending-payment notice. */
.settlement-toasts{width:max-content;max-width:calc(100vw - 32px)}
.settlement-toast:not(.failed){padding:8px 10px 8px 14px}
.settlement-pending-row{display:flex;align-items:center;gap:12px;white-space:nowrap}
.settlement-pending-row .settlement-close{position:static;flex-shrink:0}
.settlement-pending-row .settlement-undo{margin:0;flex-shrink:0}
.settlement-message b{font-variant-numeric:tabular-nums}
.settlement-undo-icon{display:none}
.settlement-toast.failed{max-width:390px}
@media(max-width:540px){.settlement-pending-row{gap:6px;font-size:12px}.settlement-undo-label{display:none}.settlement-undo-icon{display:inline;font-size:20px}.settlement-pending-row .settlement-undo{padding:2px 7px}.settlement-toast:not(.failed){padding-left:9px}}

/* Full-width branding, with a dedicated image for each theme. */
.brand.brand-with-logo{display:block;padding:0 0 18px}
.brand.brand-with-logo img{width:100%;max-width:none;height:78px;object-fit:contain;object-position:center}
.brand .brand-logo-dark{display:none}
:root[data-theme="dark"] .brand .brand-logo-light{display:none}
:root[data-theme="dark"] .brand .brand-logo-dark{display:block}
.logo-setting{display:grid;gap:12px;align-content:start;min-width:0}
.logo-preview{display:flex;align-items:center;justify-content:center;min-height:110px;padding:16px;border:1px solid var(--line);border-radius:8px}
.logo-preview-light{background:#f4f5f6}.logo-preview-dark{background:#111b20}
.logo-preview img{width:100%;max-width:260px;height:78px;object-fit:contain}

/* Board cards: identifiers and badges above, date and action below. */
.compact-card{padding:9px 10px;margin-bottom:7px}
.compact-card .card-top{align-items:flex-start;gap:6px}
.card-identifiers{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0}
.card-identifiers>small{white-space:nowrap;line-height:20px}
.compact-card .card-tags{display:contents;margin:0}
.compact-card .card-tags .tag{font-size:10px;line-height:16px;padding:1px 5px}
.compact-card .card-top>.profile-dot{flex-shrink:0;width:20px;height:20px;min-width:20px}
.compact-card h3{margin:5px 0 2px}
.compact-card p{margin:0}
.compact-card .card-bottom{margin:7px 0 0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px}
.compact-card .card-bottom>.work-date{flex-direction:column;align-items:flex-start;gap:1px;line-height:1.25;flex-shrink:0;font-size:10px}
.compact-card .card-bottom>.work-date small{font-size:10px}
.compact-card .card-bottom>.actor-action{margin-left:auto;flex-shrink:0}
.compact-card .actor-action>.btn{font-size:11px;min-height:30px;padding:4px 5px;gap:4px}
.compact-card .actor-action>.btn>small{font-size:9px}
.compact-card .actor-action .profile-dot{width:18px;height:18px;min-width:18px;font-size:8px}
.compact-card .actor-chevron{min-width:22px;padding:3px 4px;font-size:16px}

.compact-card .card-top{gap:4px}
.compact-card .card-identifiers{flex:1;flex-wrap:nowrap;gap:4px;overflow:hidden}
.compact-card .card-identifiers>small{font-size:10px;flex-shrink:0}
.compact-card .card-tags .tag{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 4px}

/* Work searches preserve the filters and search each board column separately. */
.job-quick-search{display:flex;align-items:center;gap:7px;min-width:190px;flex:1;max-width:340px}
.job-quick-search>.icon{width:18px;height:18px;flex-shrink:0;color:var(--muted)}
.job-quick-search input{width:100%;min-width:0}
.column-head{justify-content:space-between;gap:8px;padding:10px 9px;font-size:16px}
.column-title{display:flex;align-items:center;gap:6px;min-width:0}
.column-title>strong{white-space:nowrap}
.column-title>span{flex-shrink:0;width:23px;height:23px;font-size:12px}
.column-head .column-search{width:108px;min-width:0;flex:0 1 108px;margin:0;padding:6px 8px;font-size:12px;line-height:1.4;border:1px solid #ffffff80;border-radius:6px;background:#fff;color:#17252b;min-height:32px}
.column-head .column-search::placeholder{color:#54636b;opacity:1}
.column-head .column-search:focus{outline:2px solid #fff;outline-offset:2px}
.work-search-status{padding:5px 9px;color:var(--muted);font-size:12px;line-height:1.4}
.search-email-button{border:0;background:transparent;padding:2px 0;color:var(--green);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Expand work searches only while they are being used. */
.filters .job-quick-search{flex:0 1 230px;max-width:none;min-width:190px;min-height:44px;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);transition:flex-grow .2s ease,border-color .15s ease,box-shadow .15s ease}
.filters .job-quick-search input{display:block;flex:1;width:100%;min-width:0;min-height:42px;padding:9px 0;border:0;border-radius:0;outline:none;background:transparent;color:var(--ink);font:inherit;font-size:14px;box-shadow:none}
.filters .job-quick-search input::placeholder{color:var(--muted);opacity:1}
.filters .job-quick-search:focus-within{flex-grow:1;border-color:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 25%,transparent)}
.filters:has(.job-quick-search)>.spacer{flex:1 1 0;transition:flex-grow .2s ease}
.filters:has(.job-quick-search:focus-within)>.spacer{flex-grow:0}
.filters:has(.job-quick-search)>.result-count{margin-left:auto}
.column-head{position:relative;min-height:52px;padding-right:49px}
.column-head .column-title{transition:opacity .15s ease}
.column-head:has(.column-search-control.is-open) .column-title{opacity:0;pointer-events:none}
.column-search-control{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:32px;height:32px;z-index:2;transition:width .2s ease}
.column-search-control.is-open{width:calc(100% - 18px)}
.column-head .column-search-control .column-search{width:100%;height:32px;min-height:32px}
.column-search-trigger{position:relative;display:grid;place-items:center;width:32px;height:32px;padding:5px;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer}
.column-search-trigger .icon{width:21px;height:21px}
.column-search-trigger:hover{background:#ffffff20}
.column-search-trigger:focus-visible{outline:2px solid #fff;outline-offset:2px}
.column-search-trigger.has-query::after{content:'';position:absolute;right:2px;top:2px;width:6px;height:6px;border-radius:50%;background:#fff}
@media(prefers-reduced-motion:reduce){.column-search-control,.column-head .column-title,.filters .job-quick-search,.filters:has(.job-quick-search)>.spacer{transition:none}}

.work-select{width:auto;max-width:100%;min-height:34px;padding:6px 30px 6px 9px;font-size:12px;font-weight:600;cursor:pointer}
.compact-card .work-select{min-height:30px;max-width:165px;padding:4px 25px 4px 7px;font-size:11px;margin-left:auto}
.job-list-tabs{display:flex;gap:8px;margin:0 0 10px;border-bottom:1px solid var(--line);padding-bottom:8px}
.job-list-tabs button{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.job-list-tabs button.active{background:var(--lime);border-color:var(--green);color:var(--green);font-weight:650}
.job-list-tabs button span{font-size:12px}
.column-head.pending .column-title{font-size:14px}
.triage-assignee{display:flex;gap:10px;align-items:center;margin:12px 0 22px}
.triage-mail{border:1px solid var(--line);border-radius:9px;margin:14px 0;overflow:hidden}
.triage-mail header{padding:14px 18px;background:var(--surface)}
.triage-mail header h3{margin:0 0 6px}
.triage-mail header>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:13px}
.triage-mail-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;font-size:15px;line-height:1.65}

.board{grid-template-columns:repeat(var(--column-count,4),minmax(300px,1fr))}

/* Keep the tab count on the same text baseline as its label. */
.job-list-tabs button{align-items:baseline}
.job-list-tabs button span{align-self:baseline;line-height:inherit}
/* Slim scrollbars throughout the workspace, including modal and column scrollers. */
*{scrollbar-width:thin;scrollbar-color:var(--muted) var(--surface)}
@supports selector(::-webkit-scrollbar){
*{scrollbar-width:auto;scrollbar-color:auto}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:var(--surface)}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 75%,var(--surface));border:1px solid var(--surface);border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}
}

/* Workspace-wide and page-level search */
.global-search{position:relative;flex:1;min-width:0;max-width:800px}.global-search-bar{display:flex;align-items:center;gap:10px}.global-search .searchbox{min-width:0;max-width:none}.global-search .searchbox input{font-size:15px}.advanced-search-toggle{white-space:nowrap;flex-shrink:0}.advanced-search-panel{position:absolute;top:calc(100% + 18px);left:0;width:min(760px,calc(100vw - 310px));max-height:calc(100dvh - 115px);overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:24px;z-index:60}.advanced-search-panel .section-top{margin-bottom:18px}.advanced-search-panel .field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ink)}.advanced-search-panel select,.advanced-search-panel input[type=date]{width:100%;min-width:0;background-color:var(--paper)}.advanced-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.search-help{font-size:13px;color:var(--muted);margin:12px 0 18px}.search-mail-option{display:flex;align-items:center;gap:10px;margin-top:20px;font-size:14px}.search-mail-option input{width:17px;height:17px;flex-shrink:0;accent-color:var(--green)}.advanced-search-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}.page-quick-search-row{margin-bottom:20px}.page-quick-search-row .job-quick-search{flex-basis:410px}.search-summary{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:20px;overflow-wrap:anywhere}.search-filter-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.search-result-section{padding:22px;margin-bottom:24px}.search-result-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid var(--line)}.search-result-row>div{min-width:0;overflow-wrap:anywhere}.search-result-row>.btn{flex-shrink:0}.search-result-row p{font-size:14px;color:var(--muted)}.search-mail-result{flex:1}.search-mail-result summary{cursor:pointer;font-weight:650}.search-result-section nav{margin-top:16px}
@media(max-width:1000px){.advanced-search-toggle span{display:none}.advanced-search-panel{width:min(660px,calc(100vw - 300px))}}
@media(max-width:760px){.advanced-search-panel{position:fixed;left:16px;right:16px;top:76px;width:auto;max-height:calc(100dvh - 92px);padding:18px}.global-search .searchbox input{font-size:14px}.page-quick-search-row .job-quick-search{flex-basis:100%;min-width:0}.search-result-row{align-items:flex-start;flex-wrap:wrap}.search-result-row>div{flex-basis:100%}}
@media(max-width:420px){.advanced-search-grid{grid-template-columns:1fr}}

.search-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin:18px 0}.search-pagination .actions{align-items:center}.search-pagination>span{font-size:14px;color:var(--muted)}

.advanced-search-actions{position:sticky;bottom:-24px;background:var(--paper);padding:16px 0;margin-bottom:-24px;border-top:1px solid var(--line);z-index:1}@media(max-width:760px){.advanced-search-actions{bottom:-18px;margin-bottom:-18px}}

.webshop-connection{border-top:1px solid var(--line);padding:26px 0}.webshop-connection .field input{display:block;width:100%;margin-top:7px}.webshop-connection .note-box{margin:18px 0}.webshop-connection>.actions{margin-top:18px}.generated-secret{display:block;overflow-wrap:anywhere;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.webshop-connections>.section-top{align-items:flex-start;gap:24px}.webshop-connections>.section-top>.btn{flex-shrink:0}
