/* StimPilot 0.40 — shared visual language, no calculation changes. */
body{background:#f5f8fc;color:#243b59}button{border-radius:9px;transition:background .15s,border-color .15s}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8fc4f9;outline-offset:3px}button svg{vertical-align:middle;flex-shrink:0}button.primary{background:#1676dc;border-color:#1676dc;box-shadow:0 3px 7px #176cca12}button.primary:hover:not(:disabled){background:#0964c4}h1{color:#203956;font-weight:650;letter-spacing:-.8px}h2,h3{color:#2b4565}.section-title{display:flex;align-items:center;gap:10px}.section-title>svg{color:#2d7cc9;flex-shrink:0}.shell>aside{z-index:20;padding:30px 20px;width:220px}.shell>aside>button{display:flex;align-items:center;gap:12px;font-weight:500;border-radius:10px}.shell>aside>button.active{font-weight:600;background:#eaf3ff}.shell>aside>img{margin-bottom:42px}.main{margin-left:220px}.shell .main>header{height:52px;background:#fff;padding:0 36px;border-color:#e8eef5}.main>header .workspace-breadcrumb{display:flex;gap:12px;align-items:center;font-size:13px;color:#4d627c;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.main>header .workspace-breadcrumb span{background:none;padding:0;font-size:13px;letter-spacing:0;color:#7a8ca0}.main>header .workspace-private{display:flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;background:none;color:#70839b;white-space:nowrap}.shell main{padding:32px 36px 110px}.shell section{border-color:#e0e8f1;border-radius:14px;box-shadow:0 3px 12px #17375b03}.heading{gap:16px}.heading>button,.project-heading-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.heading>div>small{font-size:10px;letter-spacing:1.5px}.heading p{margin-bottom:0;color:#7c8da1}.project-heading-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.account-bar{height:66px;gap:20px;margin-left:220px;padding:8px 36px;background:#fff;border-bottom:1px solid #e8eef5;color:#5c7189}.account-identity{display:flex;align-items:center;gap:10px;margin-right:5px;min-width:0}.account-avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#eaf3fd;color:#2378c8;font-size:15px;font-weight:600}.account-identity strong,.account-identity small{display:block;line-height:1.5}.account-identity strong{font-size:12px;font-weight:600;color:#334d6c}.account-identity small{font-size:11px;color:#8292a5}.account-bar a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#55718f}.account-bar .admin-link{font-size:12px}.account-bar a:hover{color:#126dcc}.user-menu summary{list-style:none;display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #e0e7ef;border-radius:9px;background:#fff;font-weight:500}.user-menu summary::-webkit-details-marker{display:none}.user-menu nav{top:calc(100% + 9px);padding:8px;gap:4px}.user-menu nav a,.user-menu nav button{padding:11px;display:flex;align-items:center;gap:9px;font-size:13px;border:0;background:#fff;text-align:left;border-radius:6px}.user-menu nav a:hover,.user-menu nav button:hover{background:#f0f6fd}
.stats{gap:20px;margin:28px 0}.stats article{display:flex;align-items:center;gap:20px;padding:25px 24px;border-radius:14px;border-color:#e0e8f1;box-shadow:0 3px 12px #17375b03}.stats .stat-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:50%;background:#edf5ff;color:#2c7acc}.stats .stat-icon svg{width:29px;height:29px;stroke-width:1.65}.stats span{color:#74879f;font-size:13px}.stats strong{font-size:29px;margin:2px 0;letter-spacing:-.6px;line-height:1.4}.stats strong em{font-style:normal;font-size:19px;font-weight:400;color:#57708c}.stats small{font-size:11px;color:#8a9bb0}.project-list{padding:0!important;overflow:hidden}.project-list>.heading{padding:22px 24px;margin:0;min-height:85px}.project-list h2{margin:0;font-size:17px}.dashboard-filters{gap:12px;display:flex;align-items:center}.dashboard-filters select{width:160px;font-size:12px;min-height:38px;padding:8px 11px;background:#fff}.project-search{position:relative;width:240px}.project-search svg{position:absolute;top:50%;left:11px;transform:translateY(-50%);color:#8b9bb0}.project-search input{padding:9px 10px 9px 36px;font-size:12px;min-height:38px}.project-list th{background:#f8fafc;color:#74879d;font-size:12px;font-weight:500;padding:15px 20px}.project-list td{padding:20px;font-size:13px;color:#5f7590}.project-list tbody tr:last-child td{border-bottom:0}.project-list tbody tr:hover{background:#fafcff}.project-name{display:flex;align-items:center;gap:12px;min-width:190px}.project-name strong{color:#2b4566;font-weight:600}.project-file-icon{width:37px;height:42px;display:grid;place-items:center;background:#f0f6fe;border:1px solid #e2edfb;border-radius:8px;color:#3b87d4}.project-name .subtext{font-size:11px;margin-top:3px;color:#8b9aae}.progress-badge{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#eaf3ff;border:1px solid #d9e9fd;border-radius:7px;color:#3977b7;padding:6px 9px;font-size:12px;font-weight:500}.progress-badge.complete{background:#ebf7f1;border-color:#d2ebdd;color:#3b8c69}.progress-ring{width:17px;height:17px;fill:none;stroke:#c9dff6;stroke-width:2.5;transform:rotate(-90deg)}.progress-ring circle+circle{stroke:#3d88d5}.project-date{white-space:nowrap;font-size:12px!important;color:#8293a7!important}.project-actions{flex-wrap:nowrap;gap:7px}.project-actions>button:first-child{display:flex;align-items:center;gap:8px;font-size:12px;padding:7px 11px;color:#3478bd;border-color:#d6e5f7;background:#f3f8ff}.project-actions .plain-icon{background:transparent;color:#8494a7;padding:7px;border:0}.project-actions .trash-action:hover{color:#b44252;background:#fff0f2}
.stepper{border:0;padding:20px 0 24px;margin:8px 0 8px;gap:0;flex-wrap:nowrap;overflow-x:auto;justify-content:initial}.stepper button{flex:1;min-width:max-content;position:relative;gap:11px;font-size:12px;font-weight:500;padding:6px 0;color:#71849b;white-space:nowrap}.stepper button:not(:last-child)::after{content:"";height:1px;min-width:14px;flex:1;background:#d9e3ee;margin:0 16px}.stepper button:last-child{flex:0 0 auto}.stepper b{flex:0 0 36px;width:36px;height:36px;font-size:16px;font-weight:500;background:#e7edf4;color:#74869c;position:relative}.stepper .current{color:#1771cc;font-weight:600}.stepper .current b{background:#1676dc;box-shadow:0 0 0 5px #e3efff;color:#fff}.stepper .visited b{background:#e0edfc;color:#317ccb}.stepper button:disabled{opacity:.65}.stepper button:hover:not(:disabled){background:transparent;color:#126bc2}.stepper button:hover:not(:disabled) b{box-shadow:0 0 0 4px #e9f2fd}
.dc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px 16px}.dc-fields .field{min-width:0;display:grid;grid-template-rows:36px 44px auto;gap:7px;align-items:end}.dc-fields .field>span{align-self:end;line-height:18px}.dc-fields .field>select,.dc-fields .field>input{height:44px}.dc-fields .field>small{align-self:start}.dc-fields>button{grid-column:2;justify-self:start;font-size:12px}.building-toggle{border-radius:9px}.shell input,.shell select{border-radius:8px}.shell .field>span{color:#5d728b}
@media(min-width:1600px){.stepper{max-width:none}.stats article{padding:28px}}
@media(max-width:1200px){.shell>aside{width:170px;padding:26px 16px}.shell>aside>img{width:135px}.main,.account-bar{margin-left:170px}.shell main{padding:26px 22px 110px}.account-bar,.shell .main>header{padding-left:22px;padding-right:22px}.stats article{gap:13px;padding:20px 17px}.stats .stat-icon{flex-basis:47px;width:47px;height:47px}.stats strong{font-size:25px}.project-list>.heading{flex-wrap:wrap}.project-heading-actions{justify-content:flex-start}.heading:has(.project-heading-actions){flex-wrap:wrap}.stepper button:not(:last-child)::after{margin:0 12px}}
@media(max-width:800px){.stats{gap:10px}.stats article{align-items:flex-start;gap:10px;padding:17px 13px}.stats .stat-icon{flex-basis:33px;width:33px;height:33px}.stats .stat-icon svg{width:20px;height:20px}.stats small{display:none}.stats strong{font-size:23px}.stats span{font-size:11px}.stepper{gap:0}.stepper button{font-size:11px;gap:8px}.stepper b{width:32px;height:32px;flex-basis:32px}.stepper button:not(:last-child)::after{margin:0 9px;min-width:15px}}
@media(max-width:650px){.shell>aside{position:static;width:100%;padding:15px 18px;gap:6px}.shell>aside>img{width:116px;margin:0 auto 0 0}.shell>aside>button{padding:9px;gap:6px;font-size:12px}.shell>aside>button svg{width:16px}.main,.account-bar{margin-left:0}.account-bar{height:auto;min-height:59px;flex-wrap:wrap;padding:9px 16px;gap:12px}.account-identity{margin-right:auto}.account-identity small{display:none}.account-bar .admin-link{font-size:0;gap:0}.account-bar .admin-link svg{width:19px;height:19px}.shell main{padding:24px 16px 140px}.shell .main>header{padding:0 18px;height:44px}.main>header .workspace-breadcrumb span{display:inline}.main>header .workspace-private{display:none}.stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0}.stats article{display:block;padding:14px 10px}.stats .stat-icon{margin-bottom:9px}.stats strong{font-size:22px;overflow-wrap:anywhere}.stats strong em{font-size:14px}.project-list>.heading{padding:18px;align-items:stretch}.dashboard-filters{flex-wrap:wrap;width:100%;gap:9px}.dashboard-filters select{width:100%}.project-search{width:100%}.project-list td,.project-list th{padding:16px}.project-heading-actions{gap:8px}.project-heading-actions>button{font-size:12px;padding:9px}.stepper{padding:15px 5px 23px}.dc-fields{grid-template-columns:1fr}.dc-fields .field{grid-template-rows:auto 44px auto}.dc-fields>button{grid-column:1}.heading{gap:14px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.project-list .table-wrap{position:relative}

/* 0.40.1: align the stepper with the full card width at every desktop size. */
.stepper{width:100%;max-width:none}.stepper b{background:#f0f3f7;border:1px solid #dce3ec;color:#536780;font-size:14px;font-weight:700}.stepper .current b{border-color:#1676dc;font-weight:700}.stepper .visited b{background:#1676dc;border-color:#1676dc;color:white;box-shadow:0 0 0 4px #e3efff}.stepper .visited{color:#1771cc;font-weight:600}
