.login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.18fr) minmax(420px,.82fr);background:#f3f0e6;color:#17241e}.login-story{position:relative;overflow:hidden;background:#10251b;color:#fff;padding:42px clamp(38px,5vw,78px);display:flex;flex-direction:column;min-height:100vh}.login-story:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}.login-story:after{content:"";position:absolute;width:430px;height:430px;border:1px solid #f6c84c26;border-radius:50%;right:-180px;top:18%;box-shadow:0 0 0 70px #f6c84c09,0 0 0 140px #f6c84c06}.login-wordmark,.mobile-wordmark{position:relative;z-index:2;display:flex;align-items:center;gap:13px;font:800 13px Manrope;letter-spacing:.11em}.wordmark-tile{width:45px;height:45px;border-radius:12px;display:grid;place-items:center;background:#f6c84c;color:#10251b;letter-spacing:-.06em;font-size:17px}.login-wordmark small{display:block;font:600 9px 'DM Sans';letter-spacing:.2em;color:#9db3a9;margin-top:4px}.story-copy{position:relative;z-index:2;margin:auto 0;width:min(670px,95%)}.login-kicker{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.2em;font-weight:800;color:#f6c84c}.login-kicker span{width:25px;height:2px;background:#f6c84c}.story-copy h1{font:800 clamp(45px,5.1vw,76px)/.98 Manrope;letter-spacing:-.06em;margin:23px 0}.story-copy h1 em{color:#f6c84c;font-style:normal}.story-copy>p:not(.login-kicker){max-width:520px;color:#b7c5bf;font-size:16px;line-height:1.65}.product-rail{display:flex;gap:40px;margin-top:52px;padding-top:23px;border-top:1px solid #ffffff22}.product-rail>div{display:flex;gap:13px;align-items:center}.product-rail b,.product-rail small{display:block}.product-rail small{color:#91a69c;margin-top:3px;font-size:11px}.product-number{width:33px;height:33px;border-radius:8px;background:#f6c84c;color:#10251b;display:grid;place-items:center;font-weight:800;font-size:10px}.tiger-number{background:#e98554}.route-line{position:absolute;right:9%;bottom:18%;display:flex;gap:43px;align-items:center}.route-line:before{content:"";position:absolute;left:0;right:0;height:1px;background:#f6c84c55}.route-line i{position:relative;width:9px;height:9px;border:2px solid #f6c84c;background:#10251b;border-radius:50%}.route-line i:last-child{width:15px;height:15px;background:#f6c84c}.story-foot{position:relative;z-index:2;margin:0;font-size:9px!important;letter-spacing:.17em;color:#718a7e!important}.story-foot span{color:#f6c84c;margin:0 7px}.login-panel{display:grid;place-content:center;padding:45px clamp(32px,6vw,100px);position:relative}.login-panel:before{content:"";position:absolute;right:32px;top:28px;width:70px;height:70px;border-top:1px solid #c9c5b8;border-right:1px solid #c9c5b8}.login-card{width:min(430px,100%)}.mobile-wordmark{display:none}.secure-label{font-size:9px;font-weight:800;letter-spacing:.17em;color:#5d7469;display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;background:#3c9569;border-radius:50%;box-shadow:0 0 0 4px #3c956916}.login-card h2{font:800 39px/1.05 Manrope;letter-spacing:-.05em;margin:22px 0 7px}.login-intro{color:#718078;margin:0 0 35px}.login-card form>label,.password-label label{font-size:11px;font-weight:800;letter-spacing:.04em}.password-label{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.password-label a{font-size:11px;color:#496b5b;font-weight:700}.login-input{position:relative;margin-top:8px}.login-input>svg{position:absolute;width:18px;left:14px;top:50%;transform:translateY(-50%);fill:none;stroke:#74847c;stroke-width:1.7}.login-input input{width:100%;height:51px;border:1px solid #d2cfc4;background:#fffefb;border-radius:10px;padding:0 53px 0 44px;color:#17241e;transition:.2s}.login-input input:focus{border-color:#315b47;box-shadow:0 0 0 4px #315b4710;outline:0}.show-password{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#62746b;font-size:9px;font-weight:800;letter-spacing:.08em}.remember-row{display:flex;align-items:center;gap:9px;margin:18px 0 22px;font-size:11px!important;color:#66766e}.remember-row input{accent-color:#1d4d37}.login-submit{width:100%;border:0;border-radius:10px;background:#142f22;color:#fff;height:53px;padding:0 8px 0 20px;display:flex;align-items:center;justify-content:space-between;font-weight:800;box-shadow:0 12px 26px #16332624;transition:.2s}.login-submit b{width:38px;height:38px;border-radius:8px;background:#f6c84c;color:#142f22;display:grid;place-items:center;font-size:19px}.login-submit:hover{transform:translateY(-2px);box-shadow:0 16px 30px #1633262e}.login-error{background:#f7ded8;color:#9a3f30;border-radius:7px;padding:9px 11px;font-size:11px}.login-security{display:flex;gap:12px;padding:18px 0;margin-top:26px;border-top:1px solid #d9d6cc;border-bottom:1px solid #d9d6cc}.login-security svg{width:26px;flex:none;fill:none;stroke:#466858;stroke-width:1.6}.login-security p{font-size:10px;color:#78857e;line-height:1.45;margin:0}.login-security b{color:#384b42}.install-hint{font-size:10px;color:#78857e;line-height:1.55;margin-top:18px}.login-help{position:absolute;bottom:25px;color:#87928c;font-size:10px}.logout-link{border:0;background:transparent;color:#617269;font-size:11px;font-weight:700}.login-screen.exit{animation:loginExit .55s ease forwards}.crm-enter{animation:crmEnter .5s ease both}@keyframes loginExit{to{opacity:0;transform:scale(1.015)}}@keyframes crmEnter{from{opacity:0;transform:translateY(10px)}}
@media(max-width:860px){.login-screen{display:block;background:#10251b;padding:18px;min-height:100dvh}.login-story{display:none}.login-panel{min-height:calc(100dvh - 36px);display:flex;flex-direction:column;padding:24px 20px;background:#f3f0e6;border-radius:24px;overflow:hidden}.login-panel:before{right:18px;top:18px}.mobile-wordmark{display:flex;margin-bottom:auto}.login-card{margin:45px auto 30px}.login-card h2{font-size:34px}.login-help{position:static;text-align:center;margin-top:auto}.install-hint{padding-bottom:env(safe-area-inset-bottom)}}

/* Team access — restrained security-console aesthetic */
.access-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}.access-head h2{font:800 34px/1 Manrope;margin:4px 0 8px;letter-spacing:-.045em}.access-head p{margin:0;color:#718078}.access-panel{padding:0;overflow:hidden}.access-summary{min-height:116px;padding:23px 26px;display:flex;align-items:center;gap:34px;background:#14251d;color:#fff}.access-summary>div{display:flex;flex-direction:column;border-right:1px solid #ffffff24;padding-right:34px}.access-summary strong{font:800 37px Manrope;color:#f6c84c}.access-summary span{font-size:9px;letter-spacing:.16em;color:#aebdb6;font-weight:800}.access-summary p{max-width:520px;color:#aebdb6;font-size:12px;line-height:1.55;margin:0}.user-row{display:grid;grid-template-columns:42px minmax(180px,1.6fr) 108px 110px 84px minmax(170px,auto);align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid #ebe9e2}.user-row:last-child{border-bottom:0}.user-row.is-disabled{opacity:.55;background:#f7f5ef}.user-avatar{width:40px;height:40px;border-radius:12px;background:#dde8e2;color:#244c39;display:grid;place-items:center;font-weight:800;font-size:12px}.user-identity b,.user-identity span,.user-login small,.user-login span{display:block}.user-identity span,.user-login small{color:#7b8780;font-size:10px;margin-top:3px}.role-chip{justify-self:start;border-radius:99px;background:#e9ecea;color:#50635a;padding:6px 8px;font-size:8px;letter-spacing:.08em;font-weight:800}.role-chip.admin{background:#fae8ae;color:#725815}.user-login span{font-size:11px;margin-top:4px}.user-state{font-size:10px;font-weight:800;text-transform:uppercase;display:flex;align-items:center;gap:6px}.user-state i{width:7px;height:7px;border-radius:50%;background:#3c9569}.is-disabled .user-state i{background:#c05b4d}.user-actions{display:flex;justify-content:flex-end;gap:6px}.user-actions button,.quiet-button{border:1px solid #d6d4cb;background:#fff;color:#365746;border-radius:8px;padding:8px 9px;font-size:10px;font-weight:800}.user-actions button:last-child{color:#934739}.empty-state{padding:36px;text-align:center;color:#7b8780}.error-state{color:#9a3f30}.team-card{cursor:pointer}.access-modal .form-note{font-size:11px;color:#718078;line-height:1.5;margin:0;padding:11px 12px;background:#f0eee6;border-radius:9px}.credential-card{text-align:center;max-width:430px}.credential-card h2{font:800 29px Manrope;margin:10px 0}.credential-card>p{color:#718078;font-size:12px;line-height:1.55}.credential-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#dcebe3;color:#27704d;font-size:23px}.credential-block{text-align:left;background:#14251d;border-radius:13px;color:#fff;padding:18px;margin:22px 0 14px;display:grid;gap:6px}.credential-block small{color:#91a69c;font-size:8px;letter-spacing:.16em;margin-top:7px}.credential-block code{font:700 14px 'DM Sans';word-break:break-all;color:#f6c84c}.credential-card .quiet-button{display:block;margin:11px auto 0;border:0;background:transparent}.modal>p#passwordRequirement{font-size:11px;line-height:1.5;color:#718078;margin-top:-10px}.modal form label{font-size:12px;font-weight:700}.modal form label input{display:block;width:100%;border:1px solid #d9d7ce;border-radius:9px;background:#fff;padding:12px;margin-top:6px}
@media(max-width:1150px){.user-row{grid-template-columns:42px 1fr 105px 80px minmax(150px,auto)}.user-login{display:none}}
@media(max-width:720px){.access-head{align-items:flex-start}.access-head h2{font-size:28px}.access-head .add{font-size:11px}.access-summary{padding:18px;gap:18px}.access-summary>div{padding-right:18px}.access-summary p{font-size:10px}.user-row{grid-template-columns:40px 1fr auto;gap:10px;padding:15px 13px}.role-chip,.user-state{display:none}.user-actions{grid-column:2/4;justify-content:flex-start}.header-actions{gap:4px}.header-actions .logout-link{font-size:9px}}
.field-hint{display:block;color:#7b8780;font-size:10px;font-weight:500;line-height:1.45;margin-top:6px}
.contact-main small{display:block;color:#60766b;font-size:10px;margin-top:3px}.theme-trigger{border:1px solid var(--line);background:var(--panel,#fff);color:var(--ink);border-radius:9px;padding:8px 10px;font-size:10px;font-weight:800}.theme-popover{position:fixed;z-index:30;right:4vw;top:64px;width:min(390px,calc(100vw - 28px));padding:20px;background:var(--panel,#fff);color:var(--ink);border:1px solid var(--line);border-radius:17px;box-shadow:0 24px 70px #07110c38}.theme-popover h3{font:800 20px Manrope;margin:3px 0 16px}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-grid button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);background:transparent;color:inherit;border-radius:11px;padding:10px}.theme-grid button:hover,.theme-grid button.selected{border-color:var(--accent,#315b47);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#315b47) 16%,transparent)}.theme-grid i{width:30px;height:30px;flex:none;border-radius:9px;background:linear-gradient(135deg,#f3f1e9 50%,#f6c84c 50%);border:1px solid #0002}.theme-grid button:nth-child(2) i{background:linear-gradient(135deg,#111a22 50%,#61a6d8 50%)}.theme-grid button:nth-child(3) i{background:linear-gradient(135deg,#eaf3fa 50%,#2776b7 50%)}.theme-grid button:nth-child(4) i{background:linear-gradient(135deg,#e7f0e8 50%,#2f7655 50%)}.theme-grid button:nth-child(5) i{background:linear-gradient(135deg,#f6e9db 50%,#c86f3d 50%)}.theme-grid span,.theme-grid small{display:block}.theme-grid span{font-size:11px;font-weight:800}.theme-grid small{font-size:9px;color:var(--muted);font-weight:500;margin-top:2px}
:root[data-theme="light"]{--cream:#f3f1e9;--ink:#14251d;--line:#d9d7ce;--muted:#718078;--panel:#fff;--accent:#315b47}
:root[data-theme="green"]{--cream:#e8efe8;--ink:#123024;--line:#c8d7cd;--muted:#62796c;--panel:#f8fcf8;--accent:#2f7655}
:root[data-theme="blue"]{--cream:#eaf1f6;--ink:#132c40;--line:#cad7e1;--muted:#607586;--panel:#f8fbfd;--accent:#2776b7}
:root[data-theme="warm"]{--cream:#f4ebe1;--ink:#3b261c;--line:#dfd0c2;--muted:#806d60;--panel:#fffaf4;--accent:#b65d31}
:root[data-theme="dark"]{--cream:#111922;--ink:#e9f0ed;--line:#2d3b43;--muted:#92a3ab;--panel:#18232c;--accent:#61a6d8}
:root[data-theme] #crmApp{background:var(--cream);color:var(--ink);min-height:100vh}:root[data-theme] #crmApp main,:root[data-theme] #crmApp header{background:var(--cream);color:var(--ink)}:root[data-theme] #crmApp header{border-color:var(--line)}:root[data-theme] #crmApp .panel,:root[data-theme] #crmApp .contact-row,:root[data-theme] #crmApp .metric:not(.featured),:root[data-theme] #crmApp .modal,:root[data-theme] #crmApp .bottom-nav{background:var(--panel);color:var(--ink);border-color:var(--line)}:root[data-theme] #crmApp .brand-filter{background:color-mix(in srgb,var(--cream) 78%,var(--ink) 8%);border-color:var(--line)}:root[data-theme] #crmApp .brand-filter button.selected{background:var(--panel);color:var(--ink)}:root[data-theme="dark"] #crmApp aside{background:#0c141b}:root[data-theme="blue"] #crmApp aside{background:#132c40}:root[data-theme="green"] #crmApp aside{background:#123024}:root[data-theme="warm"] #crmApp aside{background:#3b261c}:root[data-theme] #crmApp input,:root[data-theme] #crmApp select{background:var(--panel);color:var(--ink);border-color:var(--line)}
@media(max-width:720px){.theme-popover{right:14px;top:56px}.theme-trigger{font-size:0}.theme-trigger:first-letter{font-size:15px}.theme-grid{grid-template-columns:1fr 1fr}}
.theme-grid button:nth-child(6) i{background:linear-gradient(135deg,#edf7ff 48%,#0878ff 48% 70%,#50d5ff 70%)}.theme-grid button:nth-child(7) i{background:linear-gradient(135deg,#effcf5 48%,#00a86b 48% 70%,#8ee8bd 70%)}.theme-grid button:nth-child(8) i{background:linear-gradient(135deg,#17191e 48%,#383e49 48% 70%,#a8b1bf 70%)}.theme-grid button:nth-child(9) i{background:linear-gradient(135deg,#2b1b13 45%,#80512f 45% 68%,#d1a46f 68%)}
.theme-popover{max-height:calc(100vh - 82px);overflow:auto}
:root[data-theme="modern-blue"]{--cream:#eef6fc;--ink:#10283d;--line:#c9dceb;--muted:#5f7890;--panel:#fbfdff;--accent:#0878ff}:root[data-theme="modern-green"]{--cream:#eef8f2;--ink:#143328;--line:#c8dfd1;--muted:#5e796b;--panel:#fbfefc;--accent:#00a86b}:root[data-theme="modern-dark"]{--cream:#121419;--ink:#edf1f5;--line:#30343d;--muted:#929aa7;--panel:#1b1e24;--accent:#8fa8ff}:root[data-theme="leather"]{--cream:#e9ddcc;--ink:#2b1b13;--line:#cab69d;--muted:#756151;--panel:#f7f0e5;--accent:#8b5733}
:root[data-theme="modern-blue"] #crmApp aside{background:linear-gradient(180deg,#071c31,#0d3e68)}:root[data-theme="modern-green"] #crmApp aside{background:linear-gradient(180deg,#0b2b20,#116243)}:root[data-theme="modern-dark"] #crmApp aside{background:linear-gradient(180deg,#090a0d,#191c22)}:root[data-theme="leather"] #crmApp aside{background:linear-gradient(145deg,#26170f,#4c2f1e)}:root[data-theme="leather"] #crmApp aside:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background-image:repeating-radial-gradient(circle at 20% 30%,#fff 0 1px,transparent 1px 5px)}
