:root{font-family:Arial,Helvetica,sans-serif;color:#183644;background:#f3f7f9;font-synthesis:none;--green:#12394b;--mint:#d7eef5;--muted:#526e7b;--line:#dce6eb;--paper:#fff;--amber:#ad7127;--red:#a5413b}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #1682a2;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #398aa5;outline-offset:1px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.25}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}small,.muted{color:var(--muted)}.loading{padding:80px;text-align:center}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:var(--green);color:#dbeaf0;position:sticky;top:0;height:100vh;padding:30px 19px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 33px}.brand-mark{width:36px;height:39px;border:1px solid #809f8e;border-radius:11px 11px 4px 11px;display:grid;place-items:center;font-size:23px;color:white;font-weight:bold}.brand strong{font-size:19px;letter-spacing:1.6px;color:white}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#bad9e5}.nav-label{text-transform:uppercase;font-size:10px;letter-spacing:1.7px;color:#a5c9d8;padding:0 14px;margin:12px 0}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:4px 0;border-radius:7px;color:#d6e7ee;font-size:13px}.nav-link svg{width:18px;height:18px;stroke-width:1.6}.nav-link:hover{background:#1b4b60}.nav-link.active{background:#245a70;color:white}.sidebar-foot{margin-top:auto;padding:22px 10px 0;border-top:1px solid #386179}.identity{display:flex;gap:10px;align-items:center}.avatar{height:35px;width:35px;display:grid;place-items:center;border-radius:50%;background:#deedf3;color:#164b61;font-weight:bold;flex-shrink:0}.identity strong{display:block;font-size:12px;color:#fff}.identity small{font-size:11px;color:#bbd8e4}.text-btn{padding:0;background:none;color:inherit;text-decoration:underline;font-size:12px}.sidebar .text-btn{color:#d0e4ec;margin-top:15px}.main{min-width:0}.topbar{height:79px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:var(--muted);font-size:12px}.breadcrumb{display:flex;align-items:center;gap:10px}.top-meta{display:flex;align-items:center;gap:18px}.local-label{padding:4px 9px;background:#f4ecd9;color:#82682a;border-radius:4px;font-size:10px;letter-spacing:.8px;text-transform:uppercase}.content{max-width:1460px;padding:35px 38px 50px;margin:auto}.page-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);margin-bottom:6px}.subhead{color:var(--muted);margin-top:8px;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:10px 17px;border-radius:6px;background:var(--green);color:#fff;font-size:12px;font-weight:bold;white-space:nowrap}.btn svg{height:15px;width:15px}.btn.secondary{border:1px solid var(--line);background:#fff;color:#205c72}.btn.quiet{background:#e7f0f4;color:#205c72}.btn.danger{background:#f9eeee;color:var(--red)}.btn.small{min-height:31px;padding:6px 10px;font-size:11px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:21px 22px}.stat-top{display:flex;justify-content:space-between;font-size:12px;color:#677a70}.stat-icon{color:#196f8f}.stat-icon svg{width:18px;height:18px}.stat-value{font-size:34px;line-height:1.3;margin:8px 0 4px;letter-spacing:-1px;color:var(--green)}.stat-foot{font-size:11px;color:var(--muted)}.stat.warn .stat-value{color:var(--amber)}.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.card-head{display:flex;justify-content:space-between;align-items:center;padding:20px 23px;border-bottom:1px solid var(--line);gap:15px}.card-head small{font-size:11px}.card-body{padding:22px}.card-link{font-size:11px;color:#196f8f}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:normal}th{background:#f4f8fa;color:#506b78;font-weight:normal;text-transform:uppercase;letter-spacing:1px;font-size:9px;padding:12px 22px;white-space:nowrap}td{padding:16px 22px;border-top:1px solid #edf0ec;font-size:12px;vertical-align:middle}td strong{display:block;font-size:12px;font-weight:bold;color:#20495e}td small{display:block;font-size:11px;margin-top:3px}.click-row:hover{background:#f1f8fb}.click-row{cursor:pointer}.pill{display:inline-flex;align-items:center;border-radius:4px;padding:3px 8px;font-size:10px;background:#eef3ee;color:#59715e;white-space:nowrap}.pill.New{background:#eef2f5;color:#657b89}.pill.Won,.pill.Customer,.pill.Qualified{background:#e0f0e5;color:#3f7753}.pill.Lost,.pill.overdue{background:#f8e9e5;color:#a75e48}.pill.Quote-sent,.pill.Negotiating{background:#faf0d7;color:#a17b31}.pill.demo{border:1px solid #e1dec9;background:#fffdf1;color:#8b7f4f}.due-date{font-size:11px;color:#8b6d36}.empty{padding:38px 25px;text-align:center;color:var(--muted);font-size:13px}.empty-icon{width:47px;height:47px;background:#e9f3f7;border-radius:12px;display:grid;place-items:center;color:#397a93;margin:0 auto 13px}.empty h3{color:#476050;margin-bottom:6px}.empty .btn{margin-top:18px}.empty p{max-width:420px;margin:auto}.activity-item{display:flex;gap:13px;padding:17px 23px;border-bottom:1px solid #edf0ec}.activity-item:last-child{border:0}.activity-dot{width:31px;height:31px;border-radius:9px;background:#eaf4f7;display:grid;place-items:center;color:#297696;flex-shrink:0}.activity-dot svg{width:15px;height:15px}.activity-text{font-size:12px;min-width:0}.activity-text strong{font-size:12px}.activity-text small{display:block;margin-top:5px;font-size:10px}.activity-text p{font-size:11px;color:#6c8072;margin-top:4px;overflow-wrap:anywhere}.pipeline-row{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-size:11px}.pipeline-row span{width:88px}.pipeline-row strong{width:20px;text-align:right}.pipeline-row progress{flex:1;max-width:100%;height:7px;border:0;border-radius:10px;accent-color:#196f8f}.pipeline-row progress::-webkit-progress-bar{background:#e4eef3;border-radius:10px}.pipeline-row progress::-webkit-progress-value{background:#2483a2;border-radius:10px}.toolbar{display:flex;gap:12px;padding:17px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search{display:flex;gap:8px;align-items:center;background:#f4f8fb;border:1px solid var(--line);border-radius:6px;min-width:250px;flex:1;padding:0 11px}.search svg{width:16px;color:#8d9c90}.search input{border:0;background:none;outline:none!important;width:100%;padding:9px 0;font-size:12px}.toolbar select{width:auto;max-width:210px;font-size:12px}.pager{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.tabs{display:flex;gap:5px;padding:4px;background:#edf1eb;border-radius:6px}.tab{font-size:11px;background:none;padding:6px 13px;border-radius:4px;color:#6f8175}.tab.active{background:white;color:#2d5840;box-shadow:0 1px 3px #27372b12}.details-grid{display:grid;grid-template-columns:290px minmax(0,1fr);gap:23px}.detail-summary{padding:24px}.contact-initial{width:53px;height:53px;background:#e6f0e7;display:grid;place-items:center;border-radius:13px;font-size:21px;color:#57765e;margin-bottom:15px}.detail-summary h2{font-size:19px;margin-bottom:5px}.detail-list{margin-top:23px;border-top:1px solid var(--line)}.detail-line{padding:12px 0;border-bottom:1px solid #edf0ec;font-size:12px;overflow-wrap:anywhere}.detail-line small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.7px;margin-bottom:3px}.detail-notes{white-space:pre-wrap;font-size:12px;color:#65796a;margin:16px 0}.timeline{padding:8px 22px}.timeline-row{border-left:2px solid #dbe9de;padding:14px 0 17px 18px;margin-left:6px}.timeline-row h3{font-size:12px}.timeline-row p{white-space:pre-wrap;font-size:12px;color:#617667;margin-top:8px;overflow-wrap:anywhere}.timeline-row small{font-size:10px}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.team-card{padding:23px;background:white;border:1px solid var(--line);border-radius:9px}.team-card .avatar{width:44px;height:44px;margin-bottom:13px}.team-card h3{font-size:15px}.team-card p{font-size:11px;color:var(--muted);margin:4px 0 16px}.hint{border:1px solid #e4ddc5;background:#fcf8ed;padding:12px 15px;border-radius:6px;color:#8b763f;font-size:12px;margin-bottom:18px}.error-inline{color:var(--red);font-size:12px;min-height:18px;line-height:1.5}.banner{background:#eaf2e7;border:1px solid #d6e4d0;padding:14px 19px;border-radius:8px;margin-bottom:22px;display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px}.banner p{color:#5b745b;margin-top:3px}dialog{border:0;border-radius:13px;width:min(690px,calc(100vw - 28px));padding:0;box-shadow:0 20px 90px #15352644;color:#254657}dialog::backdrop{background:#182d274f;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:24px 27px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:21px}.close{font-size:22px;background:none;color:#7a8a7e;padding:0 5px}.modal-body{padding:24px 27px;max-height:75vh;overflow-y:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#486875}.field.full{grid-column:1/-1}.field small{font-size:10px}input,select,textarea{width:100%;background:#fff;border:1px solid #d6e2e8;border-radius:5px;color:#234b5e;padding:10px 11px;font-size:13px;min-height:40px}textarea{resize:vertical;min-height:80px}input[type=checkbox]{min-height:0;width:auto;accent-color:var(--green)}.check-field{display:flex;gap:9px;align-items:center;font-size:12px}.form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:23px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:var(--green);color:#d5e5d9;padding:60px 65px;display:flex;flex-direction:column;justify-content:space-between}.auth-story .brand{padding:0}.auth-story h1{font-size:46px;line-height:1.16;font-weight:normal;max-width:460px;letter-spacing:-1.7px;color:#f2f7ef;margin:50px 0 23px}.auth-story p{max-width:370px;font-size:14px;line-height:1.9;color:#c1dbe7}.auth-rule{height:1px;background:#3e6653;margin:33px 0 23px;width:80px}.auth-bottom{font-size:11px;color:#94b19e;letter-spacing:.5px}.auth-main{display:flex;align-items:center;justify-content:center;background:#f5f9fb;padding:40px}.auth-form{width:100%;max-width:365px}.auth-form h2{font-size:27px;letter-spacing:-.7px;margin-bottom:9px}.auth-form>p{font-size:13px;color:#526e7b;margin-bottom:30px}.auth-form .field{margin:16px 0}.auth-form .btn{width:100%;margin-top:10px;padding:13px}.auth-small{font-size:11px;color:#8c998e;margin-top:23px}.role-note{background:#edf3e9;border-radius:7px;padding:15px;margin-top:28px;font-size:11px;color:#607857}.toast{position:fixed;right:24px;bottom:24px;background:#174a5e;color:white;padding:13px 19px;border-radius:8px;box-shadow:0 4px 25px #172b2722;z-index:100;font-size:13px}.toast.bad{background:#a94f43}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.import-results{padding:16px;background:#f3f6f0;border-radius:6px;margin-top:18px;font-size:12px}.import-results li{margin:5px 0}.warning-text{color:#a55c3c}.nowrap{white-space:nowrap}.mobile-brand{display:none}
@media(min-width:1600px){.content{padding-top:45px}.stats{gap:22px}.stat{padding:25px}}
@media(max-width:1120px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:25px 13px}.content{padding:28px 25px}.topbar{padding:0 25px}.grid-main{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.team-grid{grid-template-columns:repeat(2,1fr)}.details-grid{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;width:100%;height:auto;padding:16px}.sidebar>.brand{padding:0 0 15px}.sidebar nav{display:flex;overflow-x:auto;gap:5px}.nav-label{display:none}.nav-link{white-space:nowrap;margin:0;padding:9px;font-size:11px;gap:5px}.nav-link svg{width:14px;height:14px}.sidebar-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 0 0;margin-top:12px}.sidebar-foot .identity{margin-right:auto}.sidebar .text-btn{margin-top:0}.topbar{height:50px;padding:0 18px}.top-meta .muted{display:none}.content{padding:23px 16px}.page-head{align-items:flex-start;margin-bottom:22px}h1{font-size:25px}.page-head .actions{justify-content:flex-end}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-value{font-size:28px}.grid-main,.details-grid{grid-template-columns:1fr}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.card-head{padding:17px}th,td{padding:12px 15px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.team-grid{grid-template-columns:1fr}.toolbar{padding:14px}.search{min-width:180px}.toolbar select{max-width:100%}.auth{display:block}.auth-story{padding:24px}.auth-story h1,.auth-story p,.auth-bottom,.auth-rule{display:none}.auth-main{padding:40px 24px;min-height:75vh}.modal-body{padding:20px}.modal-head{padding:20px}.import-grid{grid-template-columns:1fr}}

/* Regimen and OptCare branding */
.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 25px;
}
.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}
.brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}
.topbar-optcare {
  display: block;
  object-fit: contain;
}
.auth-story {
  justify-content: flex-start;
  gap: clamp(36px, 11vh, 125px);
}
.auth-story h1 {
  margin-block: 0 14px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand img {
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
}
.auth-company-logo {
  max-width: 78%;
  height: auto;
}
.auth-optcare-logo {
  box-sizing: content-box;
  padding: 6px;
}
.btn:not(.secondary, .quiet, .danger) {
  background: #007583;
}
.nav-link.active {
  box-shadow: inset 3px 0 #ed1c24;
}
.stat.warn .stat-value {
  color: #b8222b;
}
.pill.urgent {
  background: #f9e8e8;
  color: #9a292e;
}
.queue-actions {
  flex-wrap: nowrap;
}
.schedule-fields {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.schedule-fields[hidden], .field[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .brand {
    flex-direction: row;
    align-items: center;
  }
  .brand-logo {
    width: 160px;
  }
  .auth-story {
    gap: 0;
  }
  .auth-company-logo {
    max-width: calc(100% - 75px);
  }
  .auth-optcare-logo {
    width: 49px;
    height: 38px;
  }
}
