:root{
  --sc-navy:#001a33;
  --sc-navy-2:#052b50;
  --sc-blue:#0057e7;
  --sc-blue-2:#0067ff;
  --sc-cyan:#00a9e8;
  --sc-bg:#f4f7fb;
  --sc-panel:#ffffff;
  --sc-ink:#10233a;
  --sc-muted:#6f7f92;
  --sc-line:#e4eaf1;
  --sc-line-strong:#d5dee9;
  --sc-soft:#edf4ff;
  --sc-good:#0c8b68;
  --sc-danger:#c93737;
  --sc-shadow:0 14px 38px rgba(16,35,58,.08);
  --sc-shadow-soft:0 8px 26px rgba(16,35,58,.05);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{background:var(--sc-bg)}
body{margin:0;background:var(--sc-bg);color:var(--sc-ink);font-size:14px;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{color:inherit}
svg{display:block}
a{color:inherit}

.app-shell{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:276px;background:#fff;border-right:1px solid var(--sc-line);display:flex;flex-direction:column;z-index:40;box-shadow:6px 0 24px rgba(16,35,58,.025)}
.brand{height:88px;display:flex;align-items:center;padding:18px 23px;border-bottom:1px solid var(--sc-line);text-decoration:none}
.brand img{display:block;width:205px;max-width:100%;height:auto}
.workspace-chip{margin:17px 14px 7px;padding:12px 12px;border:1px solid var(--sc-line);border-radius:14px;background:linear-gradient(135deg,#fbfdff,#f5f8fc);display:grid;grid-template-columns:38px minmax(0,1fr) 8px;gap:10px;align-items:center}
.workspace-symbol{width:38px;height:38px;border-radius:10px;background:linear-gradient(145deg,var(--sc-blue),var(--sc-cyan));color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;box-shadow:0 7px 14px rgba(0,87,231,.17)}
.workspace-copy{min-width:0}
.workspace-copy strong,.workspace-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-copy strong{font-size:12px;color:var(--sc-navy)}
.workspace-copy span{font-size:10px;color:var(--sc-muted);margin-top:3px}
.status-dot{width:7px;height:7px;border-radius:50%;background:#17b785;box-shadow:0 0 0 4px rgba(23,183,133,.11)}
.nav{padding:7px 10px 18px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d8e1ea transparent}
.nav-title{font-size:9px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#9aa8b8;margin:20px 11px 8px}
.nav-link{min-height:43px;display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:10px;text-decoration:none;color:#4d6278;margin:2px 0;position:relative;transition:.16s ease}
.nav-link:hover{background:#f5f8fc;color:var(--sc-navy)}
.nav-link.active{background:linear-gradient(90deg,#edf4ff,#f7fbff);color:var(--sc-blue);font-weight:700}
.nav-link.active:before{content:"";position:absolute;left:-10px;width:3px;height:24px;border-radius:0 4px 4px 0;background:linear-gradient(var(--sc-blue),var(--sc-cyan))}
.nav-link.is-disabled{cursor:default}
.nav-link.is-disabled:hover{background:transparent;color:#607387}
.nav-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 21px}
.nav-icon svg{width:20px;height:20px}
.nav-label{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-soon{margin-left:auto;font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:#9ba8b7;background:#f0f3f7;border-radius:999px;padding:3px 6px}
.sidebar-footer{margin-top:auto;padding:14px;border-top:1px solid var(--sc-line)}
.sidebar-plan{padding:10px 11px;border-radius:12px;background:var(--sc-navy);color:#fff;display:flex;align-items:center;gap:10px}
.plan-badge{background:linear-gradient(135deg,var(--sc-blue-2),var(--sc-cyan));font-size:9px;font-weight:900;letter-spacing:.08em;border-radius:7px;padding:6px 7px}
.sidebar-plan strong,.sidebar-plan small{display:block}
.sidebar-plan strong{font-size:11px}
.sidebar-plan small{font-size:9px;color:#9ab0c7;margin-top:2px}
.sidebar-backdrop{display:none}

.main{margin-left:276px;width:calc(100% - 276px);min-height:100vh}
.topbar{height:76px;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--sc-line);display:flex;align-items:center;justify-content:space-between;padding:0 27px}
.topbar-left,.topbar-actions,.user-menu{display:flex;align-items:center}
.topbar-left{gap:11px}
.topbar-context strong,.topbar-context span{display:block}
.topbar-context strong{font-size:13px;color:var(--sc-navy)}
.topbar-context span{font-size:10px;color:var(--sc-muted);margin-top:2px}
.topbar-actions{gap:10px}
.icon-button{width:39px;height:39px;border:1px solid var(--sc-line);border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer}
.icon-button svg{width:19px;height:19px}
.icon-button:disabled{cursor:default;color:#8190a2}
.menu-button{display:none;border:0;background:transparent;width:36px}
.notification-button{position:relative}
.notification-dot{position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:var(--sc-blue);border:2px solid #fff;box-sizing:content-box}
.user-menu{gap:9px;padding:0 7px 0 4px}
.avatar{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,var(--sc-navy),var(--sc-navy-2));color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em}
.user-copy strong,.user-copy span{display:block}
.user-copy strong{font-size:11px;color:var(--sc-navy)}
.user-copy span{font-size:9px;color:var(--sc-muted);margin-top:2px}
.logout-button{height:38px;border:0;background:transparent;color:#6f7f92;padding:0 8px;border-radius:9px;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:10px}
.logout-button:hover{background:#f5f7fa;color:var(--sc-navy)}
.logout-button svg{width:17px;height:17px}

.content{padding:30px;max-width:1580px;margin:0 auto}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px}
.page-heading h1{font-size:28px;line-height:1.15;margin:5px 0 7px;color:var(--sc-navy);letter-spacing:-.025em}
.page-heading p{margin:0;color:var(--sc-muted);font-size:12px}
.eyebrow{display:inline-block;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.16em;font-weight:900;color:var(--sc-blue)}
.heading-actions{display:flex;align-items:center;gap:10px}
.date-chip{height:39px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--sc-line);border-radius:10px;background:#fff;color:#718095;font-size:10px}
.btn{height:40px;border:0;border-radius:10px;padding:0 15px;font-weight:750;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.16s ease}
.btn svg{width:16px;height:16px}
.btn-primary{background:linear-gradient(135deg,var(--sc-blue),#0069ff 60%,var(--sc-cyan));color:#fff;box-shadow:0 8px 18px rgba(0,87,231,.18)}
.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px rgba(0,87,231,.22)}
.btn-secondary{background:#fff;border:1px solid var(--sc-line);color:#5b6e82;box-shadow:none}
.btn:disabled{opacity:.68;cursor:not-allowed;transform:none;box-shadow:none}
.soon{font-size:7px;font-weight:600;opacity:.72;text-transform:uppercase;letter-spacing:.08em;margin-left:2px}

.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.stat{min-height:126px;background:#fff;border:1px solid var(--sc-line);border-radius:15px;padding:18px;display:flex;align-items:flex-start;gap:14px;box-shadow:var(--sc-shadow-soft);position:relative;overflow:hidden}
.stat:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;right:-34px;top:-42px;background:currentColor;opacity:.035}
.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:0 0 42px}
.stat-icon svg{width:21px;height:21px}
.stat-blue{color:var(--sc-blue)}.stat-blue .stat-icon{background:#edf4ff}
.stat-cyan{color:#008fc8}.stat-cyan .stat-icon{background:#eafaff}
.stat-navy{color:var(--sc-navy)}.stat-navy .stat-icon{background:#edf1f5}
.stat-slate{color:#556d84}.stat-slate .stat-icon{background:#f1f4f7}
.stat-copy span,.stat-copy strong,.stat-copy small{display:block}
.stat-copy span{color:#6c7c8f;font-size:10px;font-weight:700}
.stat-copy strong{font-size:29px;line-height:1;margin:8px 0 7px;color:var(--sc-navy);letter-spacing:-.03em}
.stat-copy small{font-size:9px;color:#9aa7b5}

.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.panel{background:#fff;border:1px solid var(--sc-line);border-radius:16px;padding:21px;box-shadow:var(--sc-shadow-soft)}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.panel-head h2{margin:4px 0 4px;color:var(--sc-navy);font-size:17px;letter-spacing:-.015em}
.panel-head p{margin:0;color:var(--sc-muted);font-size:10px;line-height:1.45}
.panel-head.compact{align-items:center}
.pill{font-size:9px;font-weight:800;color:var(--sc-blue);background:#edf4ff;border:1px solid #dceaff;border-radius:999px;padding:6px 8px;white-space:nowrap}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.module-card{min-height:166px;border:1px solid var(--sc-line);border-radius:13px;padding:14px;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:10px;background:linear-gradient(180deg,#fff,#fcfdff);transition:.16s ease}
.module-card:hover{border-color:#cfdceb;box-shadow:0 8px 20px rgba(16,35,58,.055);transform:translateY(-1px)}
.module-icon{width:40px;height:40px;border-radius:11px;background:linear-gradient(145deg,#edf4ff,#e8f8ff);color:var(--sc-blue);display:grid;place-items:center;font-size:17px;font-weight:800}
.module-copy{min-width:0}
.module-card h3{margin:2px 0 5px;color:var(--sc-navy);font-size:12px}
.module-card p{margin:0;color:var(--sc-muted);font-size:9.5px;line-height:1.5}
.module-card button{grid-column:1/-1;border:0;border-top:1px solid var(--sc-line);padding:10px 0 0;background:none;color:#8a98a8;display:flex;align-items:center;justify-content:space-between;font-size:9px;cursor:not-allowed}
.module-card button svg{width:14px;height:14px}
.empty-state{grid-column:1/-1;border:1px dashed var(--sc-line-strong);border-radius:12px;padding:24px;text-align:center;color:var(--sc-muted)}
.empty-state strong,.empty-state span{display:block}.empty-state strong{color:var(--sc-navy);font-size:12px}.empty-state span{font-size:10px;margin-top:4px}

.overview-panel{padding-bottom:16px}
.live-badge{display:inline-flex;align-items:center;gap:6px;font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--sc-good);background:#eaf8f4;border-radius:999px;padding:6px 8px}
.live-badge i{width:6px;height:6px;background:#18b886;border-radius:50%;box-shadow:0 0 0 3px rgba(24,184,134,.12)}
.status-list{display:grid;gap:3px}
.status-list>div{display:flex;align-items:center;gap:11px;padding:11px 6px;border-bottom:1px solid #edf1f5}
.status-list>div:last-child{border-bottom:0}
.status-symbol{width:35px;height:35px;border-radius:10px;background:#f4f7fb;color:var(--sc-blue);display:grid;place-items:center;flex:0 0 35px}
.status-symbol svg{width:18px;height:18px}
.status-list strong,.status-list small{display:block}
.status-list strong{font-size:10.5px;color:var(--sc-navy)}
.status-list small{font-size:8.5px;color:var(--sc-muted);margin-top:3px}
.subscription-card{margin-top:14px;padding:14px;background:linear-gradient(135deg,var(--sc-navy),#063c70);border-radius:13px;color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}
.subscription-card:after{content:"";position:absolute;width:90px;height:90px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-26px;top:-34px}
.subscription-card span,.subscription-card strong{display:block}.subscription-card>div span{font-size:8px;text-transform:uppercase;letter-spacing:.12em;color:#80a9cf}.subscription-card strong{font-size:11px;margin-top:3px}.subscription-mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,var(--sc-blue),var(--sc-cyan));display:grid!important;place-items:center;font-size:10px;font-weight:900;z-index:1}

.activity-panel{margin-top:18px}
.activity-empty{min-height:118px;border:1px dashed var(--sc-line-strong);border-radius:13px;background:#fbfcfe;display:flex;align-items:center;justify-content:center;gap:13px;padding:22px}
.activity-empty-icon{width:42px;height:42px;border-radius:12px;background:#eef4fb;color:#6f86a0;display:grid;place-items:center}
.activity-empty-icon svg{width:20px;height:20px}
.activity-empty strong{display:block;font-size:11px;color:var(--sc-navy)}
.activity-empty p{margin:4px 0 0;font-size:9.5px;color:var(--sc-muted);max-width:470px;line-height:1.5}

/* Authentication */
.auth-body{min-height:100vh;background:#fff}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(520px,1.06fr) minmax(440px,.94fr)}
.auth-brand-panel{position:relative;overflow:hidden;background:linear-gradient(145deg,#f4f8ff 0%,#eaf3ff 46%,#e7f8ff 100%);border-right:1px solid #dfe8f2}
.auth-brand-panel:before,.auth-brand-panel:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.auth-brand-panel:before{width:560px;height:560px;background:radial-gradient(circle,rgba(0,87,231,.11),rgba(0,87,231,0) 66%);right:-170px;top:-170px}
.auth-brand-panel:after{width:420px;height:420px;border:1px solid rgba(0,87,231,.09);left:-160px;bottom:-180px;box-shadow:0 0 0 70px rgba(0,87,231,.025),0 0 0 140px rgba(0,169,232,.018)}
.auth-brand-inner{min-height:100vh;padding:42px 6vw 34px;display:flex;flex-direction:column;position:relative;z-index:1}
.auth-logo{width:270px;max-width:62%;height:auto}
.auth-promo{margin:auto 0;max-width:640px;padding:50px 0}
.auth-kicker{font-size:9px;font-weight:900;letter-spacing:.18em;color:var(--sc-blue)}
.auth-promo h1{font-size:48px;line-height:1.08;letter-spacing:-.045em;color:var(--sc-navy);margin:13px 0 17px;max-width:590px}
.auth-promo p{max-width:560px;font-size:13px;line-height:1.75;color:#60748a;margin:0}
.auth-feature-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:34px;max-width:620px}
.auth-feature-list>div{background:rgba(255,255,255,.68);border:1px solid rgba(213,226,240,.9);border-radius:13px;padding:14px;backdrop-filter:blur(8px)}
.auth-feature-list span,.auth-feature-list strong{display:block}
.auth-feature-list span{font-size:8px;font-weight:900;color:var(--sc-blue);margin-bottom:8px}
.auth-feature-list strong{font-size:10px;color:var(--sc-navy)}
.auth-brand-footer{font-size:9px;color:#7b8ea3;letter-spacing:.04em}
.auth-form-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px;background:#fff}
.auth-mobile-logo{display:none}
.login-card{width:min(410px,100%)}
.login-heading{margin-bottom:24px}
.login-heading h2{font-size:27px;letter-spacing:-.03em;color:var(--sc-navy);margin:6px 0 7px}
.login-heading p{font-size:11px;color:var(--sc-muted);margin:0}
.login-form{display:block}
.field-label{display:block;font-size:10px;font-weight:800;color:#40556b;margin:14px 0 7px}
.field-row{display:flex;align-items:center;justify-content:space-between}
.field-wrap{position:relative}
.field-wrap input{width:100%;height:47px;border:1px solid var(--sc-line-strong);border-radius:11px;padding:0 46px 0 41px;color:var(--sc-navy);background:#fff;outline:none;font-size:12px;transition:.15s ease}
.field-wrap input::placeholder{color:#aab5c1}
.field-wrap input:focus{border-color:#7ca6e8;box-shadow:0 0 0 3px rgba(0,87,231,.08)}
.field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#7f91a5;pointer-events:none}
.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;color:#7d8ea2;cursor:pointer}
.password-toggle:hover{background:#f4f7fb;color:var(--sc-blue)}
.password-toggle svg{width:17px;height:17px}
.btn-login{width:100%;height:47px;margin-top:20px;border-radius:11px;font-size:11px;justify-content:center}
.btn-login svg{margin-left:auto}
.alert{padding:11px 12px;border-radius:10px;font-size:10px;line-height:1.45;margin-bottom:15px}
.alert-error{background:#fff3f3;color:var(--sc-danger);border:1px solid #ffdada}
.login-security{display:flex;align-items:flex-start;gap:9px;margin-top:18px;padding-top:17px;border-top:1px solid var(--sc-line);color:#8493a4;font-size:8.5px;line-height:1.5}
.login-security svg{width:16px;height:16px;flex:0 0 16px;color:var(--sc-blue)}
.auth-copyright{font-size:8.5px;color:#9aa7b4;margin:26px 0 0;text-align:center}

@media(max-width:1280px){
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:minmax(0,1fr) 300px}
  .auth-promo h1{font-size:42px}
}

@media(max-width:1080px){
  .sidebar{width:250px}.main{margin-left:250px;width:calc(100% - 250px)}
  .brand img{width:188px}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
  .overview-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.overview-panel .panel-head{grid-column:1/-1}.subscription-card{align-self:end}
  .auth-layout{grid-template-columns:1fr 440px}.auth-promo h1{font-size:38px}.auth-feature-list{grid-template-columns:1fr}
}

@media(max-width:820px){
  body.menu-open{overflow:hidden}
  .sidebar{width:min(286px,86vw);transform:translateX(-102%);transition:transform .22s ease;box-shadow:18px 0 46px rgba(6,30,55,.18)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(2,19,37,.42);z-index:35;opacity:0;pointer-events:none;transition:.2s}
  .sidebar-backdrop.open{opacity:1;pointer-events:auto}
  .main{margin-left:0;width:100%}
  .menu-button{display:grid}
  .topbar{padding:0 16px}
  .content{padding:21px 17px}
  .auth-layout{display:block}.auth-brand-panel{display:none}.auth-form-panel{min-height:100vh;padding:34px 24px}.auth-mobile-logo{display:block;width:min(255px,72vw);margin-bottom:42px}.auth-mobile-logo img{width:100%;height:auto}
}

@media(max-width:620px){
  .topbar{height:68px}.topbar-context span,.user-copy,.logout-button span{display:none}.topbar-actions{gap:4px}.user-menu{padding:0 2px}.logout-button{width:36px;padding:0;justify-content:center}
  .page-heading{display:block}.heading-actions{margin-top:15px;justify-content:space-between}.page-heading h1{font-size:24px}
  .stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat{min-height:112px;padding:14px;gap:10px}.stat-icon{width:36px;height:36px;flex-basis:36px}.stat-copy strong{font-size:25px}.stat-copy span{font-size:9px}
  .panel{padding:16px}.module-grid{grid-template-columns:1fr}.overview-panel{display:block}.subscription-card{margin-top:14px}
  .panel-head{gap:10px}.activity-empty{justify-content:flex-start}
}

@media(max-width:430px){
  .content{padding:17px 13px}.stats-grid{grid-template-columns:1fr}.stat{min-height:100px}.heading-actions{align-items:stretch}.date-chip{display:none}.heading-actions .btn{width:100%}
  .auth-form-panel{padding:26px 20px}.auth-mobile-logo{margin-bottom:34px}.login-heading h2{font-size:25px}
}

/* Patch 003 - Company data & billing */
.company-heading{margin-bottom:14px}
.company-status-chip{height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #dce8f7;border-radius:10px;background:#f7fbff;color:#54708d;font-size:9px;font-weight:750}
.company-status-chip i{width:7px;height:7px;border-radius:50%;background:var(--sc-blue);box-shadow:0 0 0 4px rgba(0,87,231,.08)}
.settings-tabs{display:flex;align-items:center;gap:4px;margin:0 0 18px;padding:5px;background:#fff;border:1px solid var(--sc-line);border-radius:12px;width:max-content;max-width:100%;box-shadow:0 4px 14px rgba(16,35,58,.025)}
.settings-tab{height:35px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;text-decoration:none;color:#65798f;font-size:10px;font-weight:750;white-space:nowrap}
.settings-tab.active{background:linear-gradient(135deg,#eef5ff,#f2fbff);color:var(--sc-blue)}
.settings-tab.disabled{color:#a3afbb;cursor:default}.settings-tab small{font-size:7px;text-transform:uppercase;letter-spacing:.06em;background:#f1f3f6;color:#9aa5b2;padding:2px 5px;border-radius:999px}
.company-alert{max-width:none;display:flex;align-items:flex-start;gap:10px;padding:13px 14px;margin-bottom:16px}.company-alert>svg{width:18px;height:18px;flex:0 0 18px;margin-top:1px}.company-alert strong{display:block;margin-bottom:4px;font-size:10px}.company-alert ul{margin:4px 0 0;padding-left:17px}.company-alert li{margin:3px 0}.alert-success{background:#edfaf5;color:#08775a;border:1px solid #caeee2}
.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.settings-main-column{display:grid;gap:16px}.settings-side-column{display:grid;gap:16px;position:sticky;top:94px}.settings-section{padding:0;overflow:hidden}
.settings-section-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 16px;border-bottom:1px solid var(--sc-line);background:linear-gradient(180deg,#fff,#fcfdff)}.settings-section-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:linear-gradient(145deg,#edf4ff,#e9f9ff);color:var(--sc-blue);display:grid;place-items:center}.settings-section-icon svg{width:19px;height:19px}.settings-section-head h2{font-size:14px;color:var(--sc-navy);margin:1px 0 4px}.settings-section-head p{font-size:9.5px;line-height:1.5;color:var(--sc-muted);margin:0}
.settings-section>.form-grid,.billing-section>.form-grid{padding:18px 20px}.form-grid{display:grid;gap:14px}.form-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.form-field{display:block;min-width:0}.form-field.full{grid-column:1/-1}.form-field>span{display:block;margin:0 0 7px;color:#425970;font-size:9.5px;font-weight:800}.form-field>span b{color:#d24444;font-weight:900}.form-field input{width:100%;height:42px;border:1px solid var(--sc-line-strong);border-radius:10px;background:#fff;color:var(--sc-navy);padding:0 12px;outline:none;font-size:11px;transition:border-color .15s,box-shadow .15s}.form-field input::placeholder{color:#adb7c2}.form-field input:focus{border-color:#7ca6e8;box-shadow:0 0 0 3px rgba(0,87,231,.07)}.mono-input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.035em;text-transform:uppercase}
.switch-row{margin:0 20px 18px;padding:13px 14px;border:1px solid var(--sc-line);border-radius:11px;background:#f9fbfd;display:flex;align-items:center;gap:12px;cursor:pointer}.switch-row>span:last-child strong,.switch-row>span:last-child small{display:block}.switch-row>span:last-child strong{font-size:10px;color:var(--sc-navy)}.switch-row>span:last-child small{font-size:8.5px;color:var(--sc-muted);margin-top:3px;line-height:1.4}.switch-control{width:38px;height:22px;flex:0 0 38px;position:relative}.switch-control input{position:absolute;opacity:0;pointer-events:none}.switch-control i{position:absolute;inset:0;border-radius:999px;background:#cfd8e2;transition:.18s}.switch-control i:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(16,35,58,.2);transition:.18s}.switch-control input:checked+i{background:linear-gradient(90deg,var(--sc-blue),var(--sc-cyan))}.switch-control input:checked+i:after{transform:translateX(16px)}
.billing-switch-row{margin-top:0}.billing-address-fields{padding-top:0;overflow:hidden}.billing-address-fields.is-hidden{display:none}.billing-address-fields .form-grid{padding:0 20px 18px}.section-divider{height:1px;background:var(--sc-line);margin:0 20px}.billing-section>.section-divider+.form-grid{padding-top:18px}
.company-summary-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,#f8fbff)}.company-summary-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,var(--sc-navy),#063d70);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900;margin-bottom:17px}.company-summary-card h3{font-size:16px;color:var(--sc-navy);margin:7px 0}.company-summary-card>p{font-size:9.5px;line-height:1.55;color:var(--sc-muted);margin:0 0 17px}.summary-list{border-top:1px solid var(--sc-line)}.summary-list>div{padding:11px 0;border-bottom:1px solid var(--sc-line)}.summary-list>div:last-child{border-bottom:0}.summary-list span,.summary-list strong{display:block}.summary-list span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#95a2b0;font-weight:800}.summary-list strong{font-size:9.5px;color:#40566d;margin-top:4px;overflow-wrap:anywhere}
.data-security-card{display:flex;gap:11px;align-items:flex-start;background:#f8fbff}.data-security-icon{width:36px;height:36px;border-radius:10px;background:#eaf3ff;color:var(--sc-blue);display:grid;place-items:center;flex:0 0 36px}.data-security-icon svg{width:18px;height:18px}.data-security-card strong{font-size:10px;color:var(--sc-navy)}.data-security-card p{font-size:8.8px;line-height:1.5;color:var(--sc-muted);margin:4px 0 0}
.form-save-bar{position:sticky;bottom:0;z-index:20;margin-top:18px;padding:13px 15px;border:1px solid #dce5ef;border-radius:13px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);box-shadow:0 -6px 25px rgba(16,35,58,.07);display:flex;align-items:center;justify-content:space-between;gap:18px}.form-save-bar strong,.form-save-bar span{display:block}.form-save-bar strong{font-size:10px;color:var(--sc-navy)}.form-save-bar span{font-size:8.5px;color:var(--sc-muted);margin-top:3px}.save-company-button{min-width:205px}
@media(max-width:1180px){.settings-layout{grid-template-columns:1fr}.settings-side-column{position:static;grid-template-columns:1fr 1fr}}
@media(max-width:700px){.settings-tabs{width:100%;overflow:auto}.form-grid.two-columns{grid-template-columns:1fr}.form-field.full{grid-column:auto}.settings-side-column{grid-template-columns:1fr}.form-save-bar{position:static;display:block}.save-company-button{width:100%;margin-top:12px}}
@media(max-width:430px){.company-heading .heading-actions{display:none}.settings-section-head{padding:16px}.settings-section>.form-grid,.billing-section>.form-grid{padding:16px}.switch-row{margin:0 16px 16px}.billing-address-fields .form-grid{padding:0 16px 16px}.section-divider{margin:0 16px}}

/* Patch 004 - Company data view + explicit edit mode */
.company-edit-button{gap:7px}.company-edit-button svg{width:16px;height:16px}.company-cancel-button{text-decoration:none}
.company-view-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.company-view-main{display:grid;gap:16px}.company-view-side{display:grid;gap:16px;position:sticky;top:94px}
.company-profile-hero{display:flex;align-items:center;gap:18px;padding:22px;background:linear-gradient(135deg,#fff 0%,#f8fbff 72%,#f0f7ff 100%);overflow:hidden}.company-profile-badge{width:58px;height:58px;flex:0 0 58px;border-radius:17px;background:linear-gradient(145deg,var(--sc-navy),#0754a5);box-shadow:0 8px 24px rgba(0,55,110,.14);display:grid;place-items:center;color:#fff;font-size:16px;font-weight:900}.company-profile-copy{min-width:0}.company-profile-copy h2{font-size:20px;line-height:1.2;color:var(--sc-navy);margin:5px 0 4px}.company-profile-copy>p{font-size:10px;color:var(--sc-muted);margin:0}.company-inline-meta{display:flex;flex-wrap:wrap;gap:9px 22px;margin-top:16px}.company-inline-meta span{font-size:9.5px;color:#435a71}.company-inline-meta strong{display:block;color:#95a2b0;font-size:7.5px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:3px}
.company-view-section{padding:0;overflow:hidden}.company-view-section-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 16px;border-bottom:1px solid var(--sc-line);background:linear-gradient(180deg,#fff,#fcfdff)}.company-view-section-head>div:nth-child(2){min-width:0;flex:1}.company-view-section-head h2{font-size:14px;color:var(--sc-navy);margin:1px 0 4px}.company-view-section-head p{font-size:9.5px;line-height:1.5;color:var(--sc-muted);margin:0}.same-address-chip{align-self:center;flex:0 0 auto;padding:6px 8px;border-radius:999px;background:#eef7ff;color:#3970a8;border:1px solid #d8eafc;font-size:7.5px;font-weight:800;white-space:nowrap}
.company-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 20px 16px}.company-detail-item{min-width:0;padding:14px 0;border-bottom:1px solid var(--sc-line)}.company-detail-item:nth-last-child(-n+2){border-bottom:0}.company-detail-item:nth-child(odd):not(.full){padding-right:18px;border-right:1px solid var(--sc-line)}.company-detail-item:nth-child(even){padding-left:18px}.company-detail-item.full{grid-column:1/-1;padding-left:0!important;padding-right:0!important;border-right:0!important}.company-detail-item span,.company-detail-item strong{display:block}.company-detail-item span{font-size:8px;text-transform:uppercase;letter-spacing:.065em;color:#96a4b2;font-weight:800;margin-bottom:5px}.company-detail-item strong{font-size:10.5px;line-height:1.45;color:#334c64;font-weight:750;overflow-wrap:anywhere}.mono-detail{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.025em}
.company-status-card{background:linear-gradient(145deg,#fff,#f8fbff)}.company-status-card h3{font-size:16px;color:var(--sc-navy);margin:7px 0}.company-status-card>p{font-size:9.5px;line-height:1.55;color:var(--sc-muted);margin:0 0 17px}.save-bar-actions{display:flex;align-items:center;gap:9px}
@media(max-width:1180px){.company-view-grid{grid-template-columns:1fr}.company-view-side{position:static;grid-template-columns:1fr 1fr}}
@media(max-width:700px){.company-view-side{grid-template-columns:1fr}.company-profile-hero{align-items:flex-start}.company-detail-grid{grid-template-columns:1fr}.company-detail-item,.company-detail-item:nth-child(odd):not(.full),.company-detail-item:nth-child(even){grid-column:auto;padding:13px 0;border-right:0;border-bottom:1px solid var(--sc-line)}.company-detail-item:last-child{border-bottom:0}.company-view-section-head{flex-wrap:wrap}.same-address-chip{margin-left:50px}.save-bar-actions{width:100%;display:grid;grid-template-columns:1fr}.save-bar-actions .btn{width:100%;justify-content:center}}
@media(max-width:430px){.company-profile-hero{padding:17px}.company-profile-badge{width:48px;height:48px;flex-basis:48px;border-radius:14px}.company-inline-meta{gap:10px 16px}.company-view-section-head{padding:16px}.company-detail-grid{padding:3px 16px 13px}.same-address-chip{margin-left:0}.company-heading .heading-actions{display:flex;width:100%}.company-edit-button{width:100%;justify-content:center}}

/* Patch 005 - Service locations */
.location-add-button svg{width:16px;height:16px}.location-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.location-stat-card{display:flex;align-items:center;gap:13px;padding:16px 18px}.location-stat-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;background:#edf4ff;color:var(--sc-blue)}.location-stat-icon.is-active{background:#edf9f5;color:#0a8a68}.location-stat-icon.is-primary{background:linear-gradient(145deg,#edf4ff,#edfaff);color:#0766d9}.location-stat-icon svg{width:20px;height:20px}.location-stat-card strong,.location-stat-card span{display:block}.location-stat-card>div{min-width:0}.location-stat-card strong{font-size:18px;line-height:1.2;color:var(--sc-navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-stat-card span:not(.location-stat-icon){margin-top:4px;font-size:8.5px;color:var(--sc-muted);font-weight:750;text-transform:uppercase;letter-spacing:.055em}.location-stat-primary strong{font-size:12px}
.locations-panel{padding:0;overflow:hidden}.locations-panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 20px;border-bottom:1px solid var(--sc-line);background:linear-gradient(180deg,#fff,#fcfdff)}.locations-panel-head h2{font-size:15px;color:var(--sc-navy);margin:4px 0}.locations-panel-head p{font-size:9.5px;color:var(--sc-muted);margin:0;line-height:1.5}.locations-count-badge{flex:0 0 auto;border:1px solid #dce8f7;background:#f7fbff;color:#54708d;border-radius:999px;padding:7px 10px;font-size:8px;font-weight:800}.locations-list{display:grid}.location-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 20px;border-bottom:1px solid var(--sc-line);transition:background .15s ease}.location-row:last-child{border-bottom:0}.location-row:hover{background:#fbfdff}.location-row.is-inactive{background:#fcfcfd}.location-row.is-inactive .location-row-main{opacity:.72}.location-row-symbol{width:46px;height:46px;border-radius:13px;background:linear-gradient(145deg,#eff5ff,#eefaff);color:var(--sc-blue);display:grid;place-items:center}.location-row-symbol svg{width:21px;height:21px}.location-row-main{min-width:0}.location-row-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.location-row-title h3{margin:0;color:var(--sc-navy);font-size:12.5px;line-height:1.3}.location-badge{display:inline-flex;align-items:center;height:21px;padding:0 7px;border-radius:999px;font-size:7px;font-weight:850;text-transform:uppercase;letter-spacing:.055em}.location-badge.primary{background:#eef5ff;color:#246bb7;border:1px solid #d8e8fb}.location-badge.active{background:#edfaf5;color:#08775a;border:1px solid #caeee2}.location-badge.inactive{background:#f4f5f7;color:#84909e;border:1px solid #e4e7eb}.location-address{margin:5px 0 0;color:#63778c;font-size:9.5px;line-height:1.5}.location-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px;margin-top:9px}.location-meta span{display:inline-flex;align-items:center;gap:5px;color:#8696a6;font-size:8.3px}.location-meta svg{width:13px;height:13px}.location-row-actions{display:flex;align-items:center;gap:7px}.location-row-actions form{margin:0}.location-edit-action,.location-delete-action{height:36px}.location-delete-action{background:#fff;border:1px solid #f1d5d5;color:#bd4b4b;box-shadow:none}.location-delete-action:hover{background:#fff8f8;border-color:#e9bcbc}.location-empty-state{padding:52px 20px;text-align:center}.location-empty-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:16px;background:linear-gradient(145deg,#eef5ff,#effcff);color:var(--sc-blue);display:grid;place-items:center}.location-empty-icon svg{width:27px;height:27px}.location-empty-state h3{font-size:15px;color:var(--sc-navy);margin:0 0 7px}.location-empty-state p{max-width:480px;margin:0 auto 17px;color:var(--sc-muted);font-size:9.5px;line-height:1.6}.location-form-heading .heading-actions{align-self:flex-end}.location-status-section{padding-bottom:2px}.location-switch-row:last-child{margin-top:-5px}.location-help-card h3{overflow-wrap:anywhere}
@media(max-width:980px){.location-overview-grid{grid-template-columns:1fr 1fr}.location-stat-primary{grid-column:1/-1}.location-row{grid-template-columns:42px minmax(0,1fr)}.location-row-symbol{width:42px;height:42px}.location-row-actions{grid-column:2;justify-content:flex-start}.location-row-actions .btn{height:34px}}
@media(max-width:700px){.location-overview-grid{grid-template-columns:1fr}.location-stat-primary{grid-column:auto}.locations-panel-head{align-items:flex-start}.location-row{grid-template-columns:38px minmax(0,1fr);padding:15px 16px;gap:11px}.location-row-symbol{width:38px;height:38px;border-radius:11px}.location-row-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.location-row-actions form{width:100%}.location-row-actions .btn{width:100%;justify-content:center}.location-meta{align-items:flex-start;flex-direction:column;gap:6px}.location-form-heading .heading-actions{align-self:auto}}
@media(max-width:430px){.location-add-button{width:100%;justify-content:center}.locations-panel-head{padding:16px;flex-wrap:wrap}.locations-count-badge{margin-top:2px}.location-row-actions{grid-template-columns:1fr}.location-overview-grid{gap:10px}.location-stat-card{padding:14px 15px}}

/* Patch 006 - Work locations status workflow + UI alignment */
.location-stat-card{min-height:72px;align-items:center}.location-stat-card .location-stat-icon{display:grid!important;place-items:center!important;margin:0;line-height:0}.location-stat-card .location-stat-icon svg{display:block;width:20px;height:20px;margin:0}.location-stat-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}.location-stat-card .location-stat-copy strong{display:block;margin:0;font-size:18px;line-height:1.15;color:var(--sc-navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-stat-card .location-stat-copy span{display:block;margin:5px 0 0;font-size:8.5px;line-height:1.15;color:var(--sc-muted);font-weight:750;text-transform:uppercase;letter-spacing:.055em}.location-stat-primary .location-stat-copy strong{font-size:12px;line-height:1.25}
.location-row.is-closed{background:#fbfcfd}.location-row.is-closed .location-row-main{opacity:.76}.location-row-symbol.is-closed{background:#f3f5f7;color:#7b8a99}.location-badge.closed{background:#f4f5f7;color:#667482;border:1px solid #e0e4e8}
.location-edit-action,.location-close-action,.location-reactivate-action{height:36px}.location-close-action{background:#fffaf4;border:1px solid #f0d9bd;color:#9a5a1a;box-shadow:none}.location-close-action:hover{background:#fff6eb;border-color:#e4c49e}.location-reactivate-action{background:#f0faf7;border:1px solid #ccece2;color:#08775a;box-shadow:none}.location-reactivate-action:hover{background:#e8f7f2;border-color:#b7e2d5}.location-row-actions form{display:flex}
.location-status-readonly{display:flex;align-items:flex-start;gap:12px;margin:0 18px 16px;padding:14px 15px;border:1px solid var(--sc-line);border-radius:12px;background:#fbfdff}.location-status-readonly>.location-badge{flex:0 0 auto;margin-top:1px}.location-status-readonly>div{min-width:0}.location-status-readonly strong,.location-status-readonly small{display:block}.location-status-readonly strong{font-size:10px;color:var(--sc-navy);margin-bottom:4px}.location-status-readonly small{font-size:8.8px;line-height:1.5;color:var(--sc-muted)}.location-switch-row.is-disabled{opacity:.62}.location-switch-row.is-disabled input{cursor:not-allowed}
.sc-modal-backdrop[hidden]{display:none}.sc-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,22,38,.54);backdrop-filter:blur(3px)}.sc-modal{position:relative;width:min(100%,470px);padding:26px;border:1px solid rgba(213,225,238,.95);border-radius:18px;background:#fff;box-shadow:0 26px 70px rgba(9,28,48,.24)}.sc-modal-x{position:absolute;right:16px;top:16px;width:34px;height:34px;border:0;border-radius:9px;background:#f5f7fa;color:#738396;display:grid;place-items:center;cursor:pointer}.sc-modal-x:hover{background:#edf1f5}.sc-modal-x svg{width:16px;height:16px}.sc-modal-icon{width:48px;height:48px;margin-bottom:15px;border-radius:14px;display:grid;place-items:center;background:#fff6eb;color:#9a5a1a}.sc-modal-icon svg{width:23px;height:23px}.sc-modal h2{margin:5px 38px 8px 0;color:var(--sc-navy);font-size:19px;line-height:1.25}.sc-modal>p{margin:0;color:#61758a;font-size:10.5px;line-height:1.65}.sc-modal-note{display:flex;gap:11px;align-items:flex-start;margin-top:17px;padding:13px 14px;border:1px solid #dbe9e5;border-radius:12px;background:#f4fbf8}.sc-modal-note>svg{width:20px;height:20px;flex:0 0 20px;color:#0a8a68}.sc-modal-note strong,.sc-modal-note span{display:block}.sc-modal-note strong{font-size:9.5px;color:#244d43;margin-bottom:3px}.sc-modal-note span{font-size:8.8px;line-height:1.45;color:#66867e}.sc-modal-secondary{min-height:0;margin-top:12px!important;font-size:9px!important;color:#8796a5!important}.sc-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.location-close-confirm{background:#9a5a1a;border:1px solid #9a5a1a;color:#fff}.location-close-confirm:hover{background:#824b15;border-color:#824b15}
body.sc-modal-open{overflow:hidden}
@media(max-width:700px){.location-stat-card{min-height:68px}.sc-modal-backdrop{padding:14px;align-items:flex-end}.sc-modal{width:100%;border-radius:18px;padding:22px}.sc-modal-actions{display:grid;grid-template-columns:1fr 1fr}.sc-modal-actions .btn{width:100%;justify-content:center}.location-status-readonly{margin:0 16px 16px}}
@media(max-width:430px){.sc-modal-actions{grid-template-columns:1fr}.location-stat-card .location-stat-copy strong{font-size:17px}.location-stat-primary .location-stat-copy strong{font-size:12px}}

/* Patch 007 - Team & roles */
.team-add-button svg,.team-edit-action svg,.team-disable-action svg,.team-reactivate-action svg{width:17px;height:17px;flex:0 0 auto}.team-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.team-stat-card{display:flex;align-items:center;gap:14px;min-height:86px;padding:18px 20px}.team-stat-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#eef6ff;color:#0865ee;flex:0 0 auto}.team-stat-icon.is-active{background:#ecfaf5;color:#12805f}.team-stat-icon.is-manager{background:#eef2ff;color:#244fc7}.team-stat-icon svg{width:23px;height:23px}.team-stat-card>div{display:flex;flex-direction:column;min-width:0}.team-stat-card strong{font-size:20px;line-height:1.1;color:#081b38}.team-stat-card span:not(.team-stat-icon){font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em;color:#65758e;margin-top:6px}.team-panel{overflow:hidden;padding:0}.team-panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e1e8f1}.team-panel-head h2{font-size:17px;margin:4px 0 4px;color:#071a37}.team-panel-head p{margin:0;color:#64748b;font-size:12px}.team-list{display:flex;flex-direction:column}.team-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 24px;border-bottom:1px solid #e4eaf2;transition:background .15s ease}.team-row:last-child{border-bottom:0}.team-row.is-disabled-user{background:#fafbfc}.team-avatar{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#eaf4ff,#f5f9ff);display:grid;place-items:center;font-weight:800;color:#0759d5;font-size:14px;border:1px solid #deebfb}.team-row-main{min-width:0}.team-row-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.team-row-title h3{font-size:14px;margin:0;color:#07192f}.team-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.team-badge.current{background:#eef5ff;color:#0a5edb}.team-badge.status.active{background:#ebf9f4;color:#0b7c59}.team-badge.status.suspended{background:#f1f3f6;color:#687386}.team-badge.status.invited{background:#fff6df;color:#8b6400}.team-contact-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px;color:#68778c;font-size:11px}.team-contact-line span+span:before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:#b6c0cd;margin:0 10px 2px 0}.team-access-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:18px;margin-top:13px}.team-access-block>small{display:block;font-size:9px;font-weight:800;letter-spacing:.065em;color:#7b899c;margin-bottom:7px}.team-chip-list{display:flex;gap:6px;flex-wrap:wrap}.team-chip{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border:1px solid #dce6f1;border-radius:8px;background:#f8fbff;color:#334760;font-size:10px;font-weight:700}.team-chip.manager{border-color:#cbdcff;background:#edf4ff;color:#0b58ca}.team-chip.location{background:#fbfcfe}.team-chip.closed,.team-chip.muted{background:#f3f4f6;color:#7b8491;border-color:#e0e4e9}.team-row-actions{display:flex;gap:8px;align-items:center;align-self:center}.team-row-actions form{margin:0}.team-disable-action{border:1px solid #f0c6c2;background:#fff;color:#b33e34}.team-disable-action:hover{background:#fff6f5}.team-reactivate-action{border:1px solid #bfe6d8;background:#f3fbf8;color:#087052}.team-disable-confirm{background:#b93c34;color:#fff;border-color:#b93c34}.team-form{display:block}.team-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.team-form-main{display:flex;flex-direction:column;gap:16px}.team-form-section{margin:0}.team-form-side{display:flex;flex-direction:column;gap:16px;position:sticky;top:84px}.team-side-card{padding:20px}.team-side-card h3{font-size:16px;margin:5px 0 14px;color:#091b36}.team-side-card ul{padding-left:18px;margin:0;color:#5f6f84;font-size:12px;line-height:1.6}.team-plan-usage{padding:14px;border-radius:12px;background:#f4f8fe;border:1px solid #e2ebf7;display:flex;flex-direction:column}.team-plan-usage strong{font-size:21px;color:#075ddc}.team-plan-usage span{font-size:11px;color:#6d7b8f;margin-top:2px}.team-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-option-grid.locations{grid-template-columns:repeat(2,minmax(0,1fr))}.team-option-card{position:relative;display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #dce5ef;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.team-option-card:hover{border-color:#b9cde6}.team-option-card.selected{border-color:#73a9ef;background:#f6faff;box-shadow:0 0 0 2px rgba(17,103,229,.06)}.team-option-card input{position:absolute;opacity:0;pointer-events:none}.team-option-check{width:21px;height:21px;border-radius:7px;border:1px solid #c9d5e3;display:grid;place-items:center;flex:0 0 auto;color:transparent;background:#fff}.team-option-check svg{width:14px;height:14px}.team-option-card input:checked+.team-option-check{background:#0968ed;border-color:#0968ed;color:#fff}.team-option-copy{min-width:0;display:flex;flex-direction:column}.team-option-copy strong{font-size:12px;color:#11233c}.team-option-copy small{font-size:10px;color:#748296;line-height:1.45;margin-top:3px}.team-option-card.closed-location{opacity:.68;background:#f8f9fa}.team-option-card.closed-location input:disabled~.team-option-copy{cursor:not-allowed}.team-select-actions{display:flex;gap:16px;margin-top:12px}.btn-link{border:0;background:transparent;padding:0;color:#0964dd;font-size:11px;font-weight:700;cursor:pointer}.team-no-locations{padding:16px;border-radius:11px;background:#f6f8fb;border:1px dashed #cad5e2;display:flex;flex-direction:column;gap:3px}.team-no-locations strong{font-size:12px;color:#263952}.team-no-locations span{font-size:11px;color:#748297}.team-form-actions{margin-top:18px}.team-form-section .form-grid label>span{color:#24364e}.team-form-section .form-grid label>span b{color:#d34438;font-weight:800}.team-form-section .company-section-head{align-items:flex-start}
@media(max-width:1180px){.team-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-form-layout{grid-template-columns:1fr}.team-form-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.team-overview-grid{grid-template-columns:1fr 1fr}.team-panel-head{align-items:flex-start;flex-direction:column}.team-row{grid-template-columns:44px minmax(0,1fr);padding:17px}.team-avatar{width:42px;height:42px}.team-row-actions{grid-column:1/-1;width:100%;padding-left:60px;align-self:auto}.team-row-actions .btn,.team-row-actions form,.team-row-actions form .btn{flex:1}.team-access-grid{grid-template-columns:1fr;gap:12px}.team-option-grid,.team-option-grid.locations{grid-template-columns:1fr}.team-form-side{grid-template-columns:1fr}.team-contact-line{align-items:flex-start;flex-direction:column;gap:4px}.team-contact-line span+span:before{display:none}}
@media(max-width:520px){.team-overview-grid{grid-template-columns:1fr}.team-row{grid-template-columns:1fr}.team-avatar{width:44px}.team-row-actions{padding-left:0;flex-direction:column}.team-row-actions .btn,.team-row-actions form,.team-row-actions form .btn{width:100%}.team-form-actions{display:flex;flex-direction:column-reverse}.team-form-actions .btn{width:100%}}

/* Patch 008 - Team: single function, protected primary account, polished forms */
.btn,.btn:hover,.btn:focus,.btn:active,.btn:visited{text-decoration:none!important}
.btn-link,.btn-link:hover,.btn-link:focus{text-decoration:none!important}
.team-badge.primary-account{background:#eef2ff;color:#244fc7;border:1px solid #d9e1ff}
.team-protected-account{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border:1px solid #dfe6ef;border-radius:10px;background:#f7f9fc;color:#738196;font-size:10.5px;font-weight:750;white-space:nowrap}
.team-protected-account svg{width:16px;height:16px;flex:0 0 auto;color:#63748b}
.team-form-section{padding:22px 24px}
.team-form-section .company-section-head{margin:0 0 20px}
.team-form-section .form-grid{padding:0;margin:0;gap:16px 18px}
.team-form-section .form-field{display:block;min-width:0}
.team-form-section .form-field>span{display:block;margin:0 0 8px;color:#425970;font-size:10.5px;font-weight:800}
.team-form-section .form-field>span b{color:#d24444;font-weight:900}
.team-form-section .form-field input{width:100%;height:46px;border:1px solid #d5dfeb;border-radius:11px;background:#fff;color:#0b1e39;padding:0 13px;outline:none;font-size:12px;font-family:inherit;box-shadow:0 1px 2px rgba(16,35,58,.02);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.team-form-section .form-field input:hover{border-color:#c2d0df}
.team-form-section .form-field input:focus{border-color:#6f9ee5;box-shadow:0 0 0 3px rgba(0,87,231,.08)}
.team-form-section .form-field input::placeholder{color:#a7b2bf}
.team-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.team-option-radio{width:21px;height:21px;border-radius:50%;border:1px solid #c9d5e3;background:#fff;display:grid;place-items:center;flex:0 0 auto;transition:.15s ease}
.team-option-radio:after{content:"";width:9px;height:9px;border-radius:50%;background:#fff;transform:scale(0);transition:transform .15s ease}
.team-role-option input:checked+.team-option-radio{background:#0968ed;border-color:#0968ed;box-shadow:0 0 0 3px rgba(9,104,237,.08)}
.team-role-option input:checked+.team-option-radio:after{transform:scale(1)}
.team-role-option:focus-within{border-color:#73a9ef;box-shadow:0 0 0 3px rgba(17,103,229,.08)}
.team-password-fields .form-field input{font-family:inherit}
@media(max-width:760px){.team-role-grid{grid-template-columns:1fr}.team-form-section{padding:18px}.team-protected-account{width:100%}}
