:root{font-family:"DM Sans",sans-serif;color:#1b2926;background:#f6f7f5;font-synthesis:none;text-rendering:optimizeLegibility;--green:#153e35;--mint:#e7f2eb;--muted:#75817d;--line:#e8ece8;--paper:#fff;--lime:#c8f083;--shadow:0 12px 40px rgba(19,54,46,.055)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.rail{background:#153e35;color:#eaf3ec;padding:29px 18px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:244px}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font:800 21px Manrope,sans-serif;letter-spacing:-.7px;padding:0 10px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--lime);color:#163d34;font:800 24px Manrope,sans-serif}.brand-dot{color:var(--lime)}.rail-label,.section-kicker,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.55px}.rail-label{color:#9cb7a9;margin:55px 11px 15px}.mode-nav{display:grid;gap:7px}.mode-button{border:0;background:transparent;color:#bfd0c5;text-align:left;border-radius:10px;padding:12px 11px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;transition:.18s}.mode-button:hover{background:#1b4b3f;color:#fff}.mode-button.active{background:#2b5749;color:#fff;box-shadow:inset 3px 0 var(--lime)}.nav-icon{width:18px;text-align:center;font-size:17px;color:#a8c5a9}.rail-foot{margin-top:auto;border-top:1px solid #ffffff20;padding:18px 8px 0;font-size:11px;color:#d4e4d9}.rail-foot small{display:block;color:#a5bcae;margin:7px 0 0 17px;font-size:10px}.status-dot{width:7px;height:7px;background:#aee87d;border-radius:50%;display:inline-block;margin-right:8px;box-shadow:0 0 0 3px #aee87d20}.main{grid-column:2;max-width:1600px;width:100%;margin:auto;padding:0 48px;display:flex;flex-direction:column;min-height:100vh}.topbar{height:105px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.topbar h1{font:700 22px Manrope,sans-serif;letter-spacing:-.65px;margin:5px 0 0}.eyebrow{color:#83908b;margin:0}.top-actions{display:flex;align-items:center;gap:15px}.environment-pill{background:#eff6ee;color:#4b6b4c;border:1px solid #dfeadd;padding:9px 12px;border-radius:30px;font-size:11px;font-weight:600}.environment-pill .status-dot{width:6px;height:6px;margin-right:5px}.login-layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:8vw;align-items:center;min-height:calc(100vh - 200px);padding:10px 4vw 45px}.login-copy{max-width:520px}.login-copy h2{font:700 clamp(38px,5vw,62px)/1.07 Manrope,sans-serif;letter-spacing:-3px;margin:16px 0}.login-copy h2 em{font-style:normal;color:#6c9b73}.login-copy>p:not(.eyebrow){font-size:15px;line-height:1.7;color:#78837f;max-width:370px}.login-note{display:flex;gap:13px;align-items:flex-start;color:#74817b;font-size:12px;line-height:1.6;border-top:1px solid var(--line);padding-top:18px;margin-top:38px;max-width:365px}.note-icon{width:20px;height:20px;flex:none;border:1px solid #dbe5d9;color:#659269;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700}.panel{background:var(--paper);border:1px solid #edf0ed;border-radius:16px;box-shadow:var(--shadow)}.login-card{padding:30px 32px}.panel-heading{margin-bottom:24px}.section-kicker{color:#819187}.panel h3{font:700 17px Manrope,sans-serif;letter-spacing:-.3px;margin:7px 0 0}.login-card label,.form-panel label,.template-panel label{display:grid;gap:8px;color:#4e5e56;font-size:12px;font-weight:600;margin:0 0 17px}.login-card input,.form-panel input,.form-panel textarea,.form-panel select,.template-panel input,.template-panel textarea{border:1px solid #e3e9e4;background:#fcfdfc;padding:11px 12px;border-radius:8px;outline:none;color:#24342d;font-size:12px;transition:.15s;width:100%}.login-card input:focus,.form-panel input:focus,.form-panel textarea:focus,.form-panel select:focus,.template-panel input:focus,.template-panel textarea:focus{border-color:#86aa87;box-shadow:0 0 0 3px #e9f4e7}.form-panel textarea,.template-panel textarea{resize:vertical;line-height:1.55}.button{border:0;border-radius:8px;padding:11px 15px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:17px;transition:.18s}.button-primary{background:var(--green);color:white}.button-primary:hover{background:#235849;transform:translateY(-1px)}.button-primary span,.button-dark span{font-size:16px;font-weight:400}.button-dark{background:#20352c;color:#fff}.button-secondary{background:#edf5ed;color:#365b3c}.button-secondary:hover{background:#dfeedd}.button-quiet{background:transparent;color:#52655b;border:1px solid var(--line)}.full-width{width:100%;margin-top:5px}.small-muted{color:#9aa39f;font-size:10px;text-align:center;line-height:1.55;margin:15px 0 0}.workspace{padding-bottom:25px}.section-tabs{display:flex;gap:29px;border-bottom:1px solid var(--line);margin:-4px 0 31px}.section-tab{position:relative;background:transparent;border:0;padding:0 0 14px;color:#89948e;font-size:12px;font-weight:600}.section-tab.active{color:var(--green)}.section-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#709c70;border-radius:2px}.welcome-row,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome-row h2,.section-heading h2{font:700 24px Manrope,sans-serif;letter-spacing:-.8px;margin:6px 0}.muted{color:#8a9590;font-size:12px;line-height:1.6;margin:6px 0 0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:27px 0}.stat-card{padding:20px 21px}.stat-label{color:#8c9792;font-size:11px}.stat-value{font:700 29px Manrope,sans-serif;color:#214a3b;letter-spacing:-1px;margin:12px 0 5px}.stat-caption{color:#abb4af;font-size:10px}.welcome-panel{display:flex;align-items:center;gap:25px;padding:23px 26px}.welcome-art{width:62px;height:62px;border-radius:15px;background:#eff6e8;color:#58875d;display:grid;place-items:center;font-size:29px;flex:none}.welcome-panel p{max-width:640px}.admin-section{animation:appear .24s ease}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.section-heading{margin:5px 0 21px}.two-column{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr);gap:17px;align-items:start}.form-panel,.table-panel{padding:22px}.form-panel h3{margin:6px 0 21px}.form-panel .button{margin-top:2px}.optional{font-size:9px;color:#a3ada7;font-weight:600;letter-spacing:.5px;margin-left:4px}.table-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.count-pill{background:#f1f5f0;color:#6d8570;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:700}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:430px}.data-table th{text-align:left;color:#99a29d;font-size:9px;letter-spacing:.8px;font-weight:700;padding:10px 9px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:12px 9px;border-bottom:1px solid #f0f2f0;color:#44544c;font-size:11px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.primary-cell{font-weight:700;color:#2c4035!important}.sub-cell{color:#929d97!important;font-size:10px!important}.empty-state{padding:35px 10px;text-align:center;color:#99a49e;font-size:12px}.product-list{display:grid;gap:10px}.product-card{border:1px solid #eef1ed;border-radius:10px;padding:14px}.product-card-head{display:flex;align-items:center;gap:12px}.product-logo{width:34px;height:34px;border-radius:9px;background:#edf5e9;color:#66936a;display:grid;place-items:center;font:700 14px Manrope,sans-serif;overflow:hidden}.product-logo img{width:100%;height:100%;object-fit:cover}.product-title{font-size:12px;font-weight:700;color:#35473d}.product-description{font-size:10px;color:#95a09a;margin-top:3px}.product-actions{margin-left:auto;display:flex;gap:7px}.small-button,.icon-button{border:1px solid #e9eeea;background:#fff;color:#6b7b71;border-radius:7px;font-size:10px;font-weight:600;padding:7px 9px}.small-button:hover,.icon-button:hover{background:#f2f7f1;color:#346044}.feature-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}.tag{background:#f1f5ef;color:#718470;border-radius:5px;padding:4px 6px;font-size:9px}.tag.property{background:#f2effa;color:#8275a2}.template-panel{margin-top:16px;padding:22px}.template-panel form{max-width:760px;margin-top:19px}.template-panel .icon-button{font-size:17px;padding:2px 9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.feature-picks{border:1px dashed #dfe6df;padding:11px;border-radius:9px;font-size:11px;margin:0 0 16px}.feature-group{margin-bottom:9px}.feature-group:last-child{margin:0}.feature-group strong{display:block;color:#6b7b71;font-size:9px;text-transform:uppercase;letter-spacing:.6px;margin:2px 0 7px}.feature-option{display:inline-flex!important;align-items:center;gap:6px!important;margin:0 10px 5px 0!important;font-size:10px!important;font-weight:500!important}.feature-option input{width:auto}.issued-key{margin-top:17px;background:#f4faed;border:1px solid #deebd5;border-radius:11px;padding:16px 19px;color:#425a41;font-size:11px;line-height:1.6}.issued-key code{display:inline-block;background:#fff;border:1px solid #e3e9dd;border-radius:5px;padding:7px 9px;margin:7px 5px;font-size:12px;letter-spacing:.6px;user-select:all;word-break:break-all}.issued-key a{color:#477448;font-weight:700}.login-copy.portal-copy h2 em{color:#7d93bc}.otp-step{border-top:1px solid var(--line);padding-top:18px;margin-top:21px}.portal-license-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:25px}.portal-card{padding:21px}.portal-card-head{display:flex;align-items:center;gap:12px}.portal-card h3{margin:0}.portal-kind{margin-left:auto;font-size:9px;text-transform:uppercase;letter-spacing:.6px;background:#eff5e9;color:#688064;padding:6px 8px;border-radius:20px}.portal-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.detail-label{display:block;color:#98a29c;font-size:9px;text-transform:uppercase;letter-spacing:.5px}.detail-value{display:block;color:#405047;font-size:12px;font-weight:700;margin-top:5px}.device-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;color:#526158;margin:15px 0 9px}.device-row{display:flex;align-items:center;gap:9px;border-top:1px solid #f1f3f1;padding:10px 0}.device-symbol{width:26px;height:26px;border-radius:7px;background:#f1f5f0;display:grid;place-items:center;color:#728873}.device-info{font-size:10px;color:#526158}.device-info small{display:block;color:#a2aba5;margin-top:3px;font-size:9px}.release-button{margin-left:auto;border:0;background:transparent;color:#9c716d;font-size:10px;padding:6px}.feature-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.feature-list span{font-size:9px;background:#f2f5f1;color:#728170;padding:5px 7px;border-radius:5px}.feature-list span.property{background:#f1eff7;color:#867ba1}.notice{padding:11px 14px;border:1px solid #dfebd5;background:#f2f8ec;color:#4c6a48;border-radius:9px;font-size:12px;margin:0 0 17px}.notice.error{border-color:#f0d7d2;background:#fff4f1;color:#9d5148}.footer{margin-top:auto;border-top:1px solid var(--line);padding:17px 0 21px;display:flex;justify-content:space-between;color:#a3ada7;font-size:10px}.hidden{display:none!important}
.activation-panel{margin-top:24px;padding:20px 22px}.activation-intro{display:flex;align-items:center;gap:14px}.activation-intro .welcome-art{width:46px;height:46px;font-size:22px;border-radius:12px}.activation-intro h3{margin-top:4px}.activation-fields{display:grid;grid-template-columns:1fr 1fr auto;gap:13px;align-items:end;margin-top:18px}.activation-fields label{margin:0}.activation-fields .button{height:39px;white-space:nowrap}.activation-hint{text-align:left;margin-top:12px}
@media(max-width:1050px){.main{padding:0 28px}.login-layout{grid-template-columns:minmax(0,1fr) 390px;gap:4vw}.two-column{grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.app-shell{display:block}.rail{position:sticky;z-index:5;top:0;width:100%;height:auto;padding:12px 16px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:18px}.brand-mark{width:30px;height:30px}.rail-label,.rail-foot{display:none}.mode-nav{display:flex;gap:4px}.mode-button{padding:9px;font-size:0;gap:0}.mode-button .nav-icon{font-size:16px}.main{padding:0 19px}.topbar{height:83px;margin-bottom:21px}.topbar h1{font-size:19px}.environment-pill{font-size:0;padding:9px}.environment-pill .status-dot{margin:0}.login-layout{grid-template-columns:1fr;gap:24px;min-height:auto;padding:25px 0 42px}.login-copy h2{font-size:43px;letter-spacing:-2px}.login-copy>p:not(.eyebrow){font-size:13px}.login-note{margin-top:20px}.login-card{padding:24px}.workspace .section-tabs{gap:20px;overflow:auto}.section-tab{white-space:nowrap}.welcome-row{align-items:flex-start}.welcome-row h2,.section-heading h2{font-size:21px}.two-column{grid-template-columns:1fr}.form-panel,.table-panel{padding:18px}.portal-license-grid{grid-template-columns:1fr}.footer{font-size:9px}.top-actions{gap:6px}.button{gap:9px}.welcome-panel{padding:18px}.welcome-art{width:48px;height:48px}.portal-card{padding:17px}}
@media(max-width:780px){.activation-fields{grid-template-columns:1fr}.activation-fields .button{width:100%}.activation-panel{padding:17px}.activation-intro{align-items:flex-start}}
@media(max-width:430px){.main{padding:0 14px}.mode-button{padding:8px}.topbar{height:73px}.environment-pill{display:none}.stats-grid{gap:8px}.stat-card{padding:14px}.stat-value{font-size:24px}.stat-label{font-size:10px}.section-tabs{gap:17px}.section-tab{font-size:11px}.welcome-row .button{font-size:10px;padding:9px}.login-copy h2{font-size:39px}.form-grid{grid-template-columns:1fr}.footer span:last-child{display:none}}
 .brand-logo{width:36px;height:36px;flex:none}.brand small{display:block;color:#a8c5a9;font:600 8px "DM Sans",sans-serif;letter-spacing:1px;margin-top:3px}.admin-nav{display:grid;gap:6px;margin-top:46px}.admin-nav .rail-label{margin:0 10px 8px;color:#9cb7a9}.admin-nav-button{border:0;background:transparent;color:#bfd0c5;text-align:left;border-radius:9px;padding:11px 12px;display:flex;align-items:center;gap:11px;font-size:12px;font-weight:600}.admin-nav-button span{width:17px;text-align:center;color:#a8c5a9;font-size:15px}.admin-nav-button:hover,.admin-nav-button.active{background:#2b5749;color:#fff}.admin-nav-button.active{box-shadow:inset 3px 0 var(--lime)}.form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.logo-preview{display:flex;align-items:center;gap:12px;color:#718470;font-size:11px;margin:-5px 0 15px}.logo-preview img{width:54px;height:54px;object-fit:contain;background:#f3f6f1;border-radius:9px;padding:4px}.table-actions{white-space:nowrap}#email-test-controls{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.admin-nav-button:focus-visible,.button:focus-visible{outline:2px solid #c8f083;outline-offset:2px}

 .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .feature-editor{min-width:0;margin:0 0 17px;padding:12px;border:1px solid var(--line);border-radius:10px}
 .feature-editor legend{padding:0 5px;color:#4e5e56;font-size:12px;font-weight:700}
 .feature-editor>.small-muted{text-align:left;margin:0 0 9px}
 .feature-edit-table{width:100%;table-layout:fixed;border-collapse:collapse}
 .feature-edit-table th{padding:5px 5px 8px;text-align:left;color:#89958e;font-size:11px;font-weight:700}
 .feature-edit-table th:first-child{width:20%}
 .feature-edit-table th:last-child{width:138px}
 .feature-edit-table td{padding:4px}
 .feature-edit-table td:last-child{white-space:nowrap}
 .feature-edit-table td:last-child .small-button{margin:2px}
 .feature-edit-table input{width:100%;min-width:0;padding:9px 8px;border:1px solid #e3e9e4;border-radius:7px;background:#fcfdfc;color:#24342d;font-size:12px}
 .feature-edit-table input:focus{outline:none;border-color:#86aa87;box-shadow:0 0 0 3px #e9f4e7}
 .feature-edit-table button{white-space:nowrap}
 .add-feature-button{margin-top:7px}
 .small-muted{font-size:11px}
@media(max-width:1050px){.login-layout{grid-template-columns:minmax(0,1fr);gap:20px;padding:10px 0 40px;align-items:start}.login-copy{max-width:680px}}
 .optional,.product-description,.sub-cell,.tag,.stat-caption,.detail-label,.device-info,.device-info small,.feature-list span,.data-table th{font-size:11px}
 .rail-foot small,.brand small{font-size:10px}

 :root[data-theme="dark"]{color-scheme:dark;--green:#9ac8a7;--mint:#263b32;--muted:#b1beb6;--line:#36443d;--paper:#202a25;--lime:#c8f083;--shadow:0 12px 40px rgba(0,0,0,.2);background:#151c18;color:#e5ece7}
 :root[data-theme="dark"] body{background:#151c18;color:#e5ece7}
 :root[data-theme="dark"] .rail{background:#102e28}
 :root[data-theme="dark"] .topbar,:root[data-theme="dark"] .footer{border-color:var(--line)}
 :root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .small-muted,:root[data-theme="dark"] .section-kicker{color:#aab8af}
 :root[data-theme="dark"] .panel,:root[data-theme="dark"] .product-card,:root[data-theme="dark"] .feature-editor{background:var(--paper);border-color:#34423a;color:#e5ece7}
 :root[data-theme="dark"] .panel h3,:root[data-theme="dark"] .welcome-row h2,:root[data-theme="dark"] .section-heading h2,:root[data-theme="dark"] .product-title,:root[data-theme="dark"] .feature-editor legend{color:#e5ece7}
 :root[data-theme="dark"] .login-card label,:root[data-theme="dark"] .form-panel label,:root[data-theme="dark"] .template-panel label{color:#d0dbd3}
 :root[data-theme="dark"] .login-card input,:root[data-theme="dark"] .form-panel input,:root[data-theme="dark"] .form-panel textarea,:root[data-theme="dark"] .form-panel select,:root[data-theme="dark"] .template-panel input,:root[data-theme="dark"] .template-panel textarea,:root[data-theme="dark"] .feature-edit-table input{background:#17211b;border-color:#46564b;color:#edf3ee}
 :root[data-theme="dark"] .login-card input:focus,:root[data-theme="dark"] .form-panel input:focus,:root[data-theme="dark"] .form-panel textarea:focus,:root[data-theme="dark"] .form-panel select:focus,:root[data-theme="dark"] .template-panel input:focus,:root[data-theme="dark"] .template-panel textarea:focus,:root[data-theme="dark"] .feature-edit-table input:focus{border-color:#91bf91;box-shadow:0 0 0 3px #31513a}
 :root[data-theme="dark"] .environment-pill,:root[data-theme="dark"] .count-pill,:root[data-theme="dark"] .button-secondary{background:#29392e;border-color:#3a5140;color:#d4e5d3}
 :root[data-theme="dark"] .button-quiet,:root[data-theme="dark"] .small-button,:root[data-theme="dark"] .icon-button{background:#222e27;border-color:#405047;color:#d1ddd4}
 :root[data-theme="dark"] .button-quiet:hover,:root[data-theme="dark"] .small-button:hover,:root[data-theme="dark"] .icon-button:hover{background:#2c3d32;color:#fff}
 :root[data-theme="dark"] .button-primary{background:#467956;color:#fff}
 :root[data-theme="dark"] .button-primary:hover{background:#548d64}
 :root[data-theme="dark"] .login-copy h2 em,:root[data-theme="dark"] .stat-value{color:#b4ddb6}
 :root[data-theme="dark"] .welcome-art,:root[data-theme="dark"] .product-logo,:root[data-theme="dark"] .device-symbol{background:#29392e;color:#b8d5ae}
 :root[data-theme="dark"] .portal-kind{background:#29392e;color:#c8dfbf}
 :root[data-theme="dark"] .release-button{color:#e0aaa1}
 :root[data-theme="dark"] .feature-group strong,:root[data-theme="dark"] .device-heading{color:#c6d2c9}
 :root[data-theme="dark"] .form-panel input::placeholder,:root[data-theme="dark"] .form-panel textarea::placeholder{color:#8e9c92}
 :root[data-theme="dark"] .data-table th{color:#b4c0b8;border-color:var(--line)}
 :root[data-theme="dark"] .data-table td{color:#d0dad3;border-color:#303b34}
 :root[data-theme="dark"] .primary-cell,:root[data-theme="dark"] .detail-value,:root[data-theme="dark"] .device-info{color:#e1e9e3!important}
 :root[data-theme="dark"] .sub-cell,:root[data-theme="dark"] .product-description,:root[data-theme="dark"] .device-info small{color:#aab8af!important}
 :root[data-theme="dark"] .tag,:root[data-theme="dark"] .feature-list span{background:#303d32;color:#d2dfd2}
 :root[data-theme="dark"] .tag.property,:root[data-theme="dark"] .feature-list span.property{background:#383345;color:#ddd2f3}
 :root[data-theme="dark"] .feature-picks{border-color:#46534a;color:#c5d0c8}
 :root[data-theme="dark"] .notice{background:#26382a;border-color:#405b3f;color:#c8e3bc}
 :root[data-theme="dark"] .notice.error{background:#3a2925;border-color:#70453c;color:#f0b9ad}
 :root[data-theme="dark"] .issued-key{background:#26352a;border-color:#40583f;color:#d4e5cc}
 :root[data-theme="dark"] .issued-key code{background:#17211b;border-color:#405047;color:#edf3ee}
 :root[data-theme="dark"] .empty-state{color:#b0bcb4}
 :root[data-theme="dark"] .footer{color:#aab8af}

 @media(max-width:780px){.feature-editor{padding:10px}.feature-edit-table{min-width:520px}.add-feature-button{width:100%}}
 @media(max-width:430px){.feature-edit-table{min-width:500px}.feature-editor legend{font-size:12px}.feature-edit-table input{font-size:12px}}

 html,body{height:100%;overflow:hidden}
 .app-shell{height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .main{height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .topbar,.footer{flex:none}
 .main>#customer-login,.main>#admin-login,.main>#admin-view,.main>#portal-view{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .main>#customer-login:focus-visible,.main>#admin-login:focus-visible,.main>#admin-view:focus-visible,.main>#portal-view:focus-visible{outline:2px solid #6d9d70;outline-offset:-2px}
 @media(max-width:780px){
   .app-shell{display:flex;flex-direction:column}
   .rail{position:relative;inset:auto;flex:none;width:100%}
   .main{display:flex;flex:1 1 auto;width:100%;height:auto;min-height:0;grid-column:auto}
   .topbar{flex:none}
   .main>#customer-login,.main>#admin-login,.main>#admin-view,.main>#portal-view{flex:1 1 0;min-height:0}
   .login-layout{min-height:0}
 }

/* Product editing uses a full-width focused view so feature tables keep readable columns. */
.product-editor{width:100%;margin:0 0 18px;gap:0}
.product-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.product-editor-heading h3{margin-top:6px}
.product-section{min-width:0;margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:11px}
.product-section>legend{padding:0 7px;color:#4e5e56;font-size:13px;font-weight:700}
.product-basics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.product-basics>label{min-width:0}
.product-logo-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.6fr);gap:18px;align-items:start}
.product-logo-preview-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:22px}
.product-logo-preview-wrap .logo-preview{margin:0}
.product-section .table-wrap{max-width:100%;overscroll-behavior-x:contain}
.feature-edit-table{table-layout:fixed;min-width:800px}
.feature-edit-table th:first-child{width:18%}
.feature-edit-table th:nth-child(2){width:23%}
.feature-edit-table th:last-child{width:150px}
.feature-edit-table td{vertical-align:middle}
.feature-edit-table td:last-child{white-space:nowrap}
.feature-edit-table td:last-child .small-button{margin:2px}
.product-form-actions{justify-content:flex-end;padding-top:2px}
.product-catalog{width:100%;margin-bottom:18px}
.product-card-head{min-width:0;flex-wrap:wrap}
.product-card-head>div:not(.product-actions){min-width:0;flex:1}
.product-title,.product-description{overflow-wrap:anywhere}
.product-actions{flex-wrap:wrap;justify-content:flex-end}
:root[data-theme="dark"] .product-section>legend{color:#e5ece7}

@media(max-width:780px){
  .product-basics{grid-template-columns:1fr}
  .product-basics>label,.product-logo-fields{grid-column:1}
  .product-logo-fields{grid-template-columns:1fr}
  .product-logo-preview-wrap{padding-top:0}
  .product-editor,.product-catalog{padding:16px}
  .product-section{padding:12px}
  .feature-edit-table{min-width:760px}
  .product-editor-heading{align-items:flex-start}
  .product-editor-heading .button{flex:none}
  .product-actions{width:100%;margin-left:46px;justify-content:flex-start}
}
@media(max-width:430px){
  .product-heading{align-items:flex-start}
  .section-heading #product-new{white-space:nowrap;padding:9px 10px;font-size:11px}
  .feature-edit-table{min-width:740px}
  .product-actions{margin-left:0}
}
.entity-editor,.entity-catalog{width:100%;margin:0 0 18px}
.entity-editor{gap:0}
.entity-editor .product-basics>label{min-width:0}
.license-editor .product-basics>.feature-picks{grid-column:1/-1}
.license-editor .license-key-note{text-align:left;margin:0 0 12px}
.license-data-table{min-width:1040px}
.license-actions-cell{display:flex;align-items:flex-start;gap:7px;min-width:170px}
.license-actions{position:relative}
.license-actions summary{list-style:none;cursor:pointer;white-space:nowrap}
.license-actions summary::-webkit-details-marker{display:none}
.license-action-menu{display:grid;gap:5px;min-width:210px;padding:8px;margin-top:5px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:var(--shadow)}
.license-action-menu .small-button{text-align:left;white-space:normal;line-height:1.35}
.device-admin-table{min-width:760px}
.app-dialog{width:min(560px,calc(100vw - 32px));max-height:min(85dvh,760px);overflow:auto;margin:auto;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:inherit;box-shadow:0 24px 80px #0003}
.app-dialog::backdrop{background:#101b17a6;backdrop-filter:blur(2px)}
.app-dialog-wide{width:min(1000px,calc(100vw - 32px))}
.app-dialog form{display:grid;gap:14px}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.dialog-heading h2{margin:5px 0;font:700 21px Manrope,sans-serif}
.dialog-heading .icon-button{flex:none;font-size:18px}
.app-dialog label{display:grid;gap:7px;font-size:13px;font-weight:600}
.app-dialog input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:inherit}
.app-dialog .form-actions{justify-content:flex-end}
:root[data-theme="dark"] .license-action-menu{border-color:var(--line)}
:root[data-theme="dark"] .app-dialog{border-color:var(--line);background:var(--paper);color:#e5ece7}
:root[data-theme="dark"] .app-dialog input{border-color:#46564b;background:#17211b;color:#edf3ee}
@media(max-width:780px){
  .entity-editor,.entity-catalog{padding:16px}
  .license-data-table{min-width:980px}
  .app-dialog-wide{width:calc(100vw - 20px);padding:16px}
  .app-dialog-wide .device-admin-table{min-width:720px}
}
.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start}
.settings-tree{padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.settings-tree-list{display:grid;gap:5px;list-style:none;padding:0;margin:0}
.settings-tree-button{border:0;border-radius:8px;padding:11px 12px;background:transparent;color:var(--muted);text-align:left;font-size:13px;font-weight:650}
.settings-tree-button:hover{background:var(--mint);color:var(--green)}
.settings-tree-button.active{background:var(--mint);color:var(--green);box-shadow:inset 3px 0 #709c70}
.settings-panel{min-width:0}
.settings-panel .two-column{grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr)}
.settings-placeholder{min-height:180px}
:root[data-theme="dark"] .settings-tree{background:var(--paper);border-color:var(--line)}
:root[data-theme="dark"] .settings-tree-button{color:#bac7bf}
:root[data-theme="dark"] .settings-tree-button.active,:root[data-theme="dark"] .settings-tree-button:hover{color:#e5ece7}
@media(max-width:780px){
  .settings-layout{grid-template-columns:1fr}
  .settings-tree-list{display:flex;overflow-x:auto;gap:4px;padding:0}
  .settings-tree-button{flex:none}
  .settings-panel .two-column{grid-template-columns:1fr}
}

/* Quiet neutral surfaces with a restrained slate-blue accent in both themes. */
:root{
  --green:#45627f;
  --mint:#e9eef3;
  --muted:#697582;
  --line:#dce2e8;
  --paper:#ffffff;
  --lime:#d9e3ed;
  --shadow:0 12px 40px rgba(34,48,62,.07);
  background:#f3f5f7;
  color:#26323d;
}
:root[data-theme="dark"]{
  --green:#a9bfd5;
  --mint:#2d3946;
  --muted:#a9b4c0;
  --line:#394550;
  --paper:#232b34;
  --lime:#d9e3ed;
  --shadow:0 12px 40px rgba(0,0,0,.24);
  background:#171c22;
  color:#e4e9ef;
}
:root[data-theme="dark"] body{background:#171c22;color:#e4e9ef}
.rail{background:#344a60}
:root[data-theme="dark"] .rail{background:#202b36}
.brand-mark{background:#d9e3ed;color:#30465b}
.admin-nav-button:hover,.admin-nav-button.active{background:#506a83;color:#fff}
:root[data-theme="dark"] .admin-nav-button:hover,:root[data-theme="dark"] .admin-nav-button.active{background:#354657;color:#f0f3f7}
.button-primary{background:#45627f;color:#fff}
.button-primary:hover{background:#344f6b}
:root[data-theme="dark"] .button-primary{background:#506a83;color:#fff}
:root[data-theme="dark"] .button-primary:hover{background:#617e9b}
.environment-pill,.count-pill{background:#e8edf2;border-color:#dbe2e8;color:#52677b}
:root[data-theme="dark"] .environment-pill,:root[data-theme="dark"] .count-pill{background:#2c3946;border-color:#3e4b58;color:#c5d3df}
.stat-value{color:#405a73}
:root[data-theme="dark"] .stat-value{color:#b4c7d9}
.welcome-art,.product-logo,.device-symbol{background:#e9eef3;color:#526b84}
:root[data-theme="dark"] .welcome-art,:root[data-theme="dark"] .product-logo,:root[data-theme="dark"] .device-symbol{background:#2c3946;color:#b5c8da}
.tag,.feature-list span{background:#e9eef2;color:#596e82}
.tag.property,.feature-list span.property{background:#edeaf3;color:#706b84}
:root[data-theme="dark"] .tag,:root[data-theme="dark"] .feature-list span{background:#34414d;color:#c0cfdb}
:root[data-theme="dark"] .tag.property,:root[data-theme="dark"] .feature-list span.property{background:#3a3746;color:#d1c9df}
.notice{border-color:#d7e1eb;background:#edf3f8;color:#415a72}
.notice.error{border-color:#e9d8d5;background:#fff4f1;color:#9d5148}
:root[data-theme="dark"] .notice{border-color:#3d5267;background:#283744;color:#c5d6e5}
:root[data-theme="dark"] .notice.error{border-color:#67433f;background:#3a2927;color:#efb8b0}
.section-tab.active{color:var(--green)}
:root[data-theme="dark"] .login-copy h2 em{color:#a9bfd5}
:root[data-theme="dark"] .small-button,:root[data-theme="dark"] .icon-button{background:#28323c;border-color:#43505c;color:#c1ccd6}
:root[data-theme="dark"] .small-button:hover,:root[data-theme="dark"] .icon-button:hover{background:#344250;color:#f0f3f7}
:root[data-theme="dark"] .data-table td{border-color:#34404a;color:#c8d0d8}
:root[data-theme="dark"] .primary-cell{color:#edf1f5!important}
:root[data-theme="dark"] .form-panel input,:root[data-theme="dark"] .form-panel textarea,:root[data-theme="dark"] .form-panel select,:root[data-theme="dark"] .feature-edit-table input{background:#1b2229;border-color:#46535f;color:#e7edf2}
.muted,.small-muted,.sub-cell,.product-description,.eyebrow,.section-kicker,.data-table th,.stat-caption,.detail-label,.device-info small,.optional,.empty-state,.footer{color:#5d6975}
:root[data-theme="dark"] .muted,:root[data-theme="dark"] .small-muted,:root[data-theme="dark"] .sub-cell,:root[data-theme="dark"] .product-description,:root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .section-kicker,:root[data-theme="dark"] .data-table th,:root[data-theme="dark"] .stat-caption,:root[data-theme="dark"] .detail-label,:root[data-theme="dark"] .device-info small,:root[data-theme="dark"] .optional,:root[data-theme="dark"] .empty-state,:root[data-theme="dark"] .footer{color:#aab6c2}
.button-secondary{background:#e8edf2;color:#435c74}
.button-secondary:hover{background:#dce4ec}
:root[data-theme="dark"] .button-secondary{background:#2c3946;color:#d4e0ea}
:root[data-theme="dark"] .button-secondary:hover{background:#384958}
.admin-nav-button:focus-visible,.button:focus-visible,.settings-tree-button:focus-visible,.license-actions summary:focus-visible{outline:2px solid #718da8;outline-offset:2px}
:root[data-theme="dark"] .admin-nav-button:focus-visible,:root[data-theme="dark"] .button:focus-visible,:root[data-theme="dark"] .settings-tree-button:focus-visible,:root[data-theme="dark"] .license-actions summary:focus-visible{outline-color:#b4c7d9}

/* Improve legibility without changing the existing neutral theme palette. */
.admin-nav-button{font-size:14px}
.section-kicker,.eyebrow,.rail-label{font-size:12px}
.muted,.small-muted{font-size:14px}
.data-table th{font-size:12px;padding:12px 10px}
.data-table td{font-size:14px;padding:14px 10px;line-height:1.45}
.sub-cell{font-size:12px!important}
.tag,.count-pill{font-size:12px;padding:5px 8px}
.button{font-size:14px;min-height:42px}
.small-button,.icon-button{font-size:13px;min-height:38px;padding:8px 11px}
.form-panel label,.login-card label,.template-panel label,.app-dialog label{font-size:14px}
.form-panel input,.form-panel textarea,.form-panel select,.login-card input,.template-panel input,.template-panel textarea,.app-dialog input{font-size:15px;min-height:42px}
.license-data-table{min-width:1000px}
.license-data-table td:first-child,.license-data-table th:first-child{width:88px;text-align:center}
.license-select{width:20px;height:20px;accent-color:var(--green);cursor:pointer}
.license-row-selected td{background:var(--mint)}
:root[data-theme="dark"] .license-row-selected td{background:#2d3946}
.license-action-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;margin:0 0 12px;border:1px solid var(--line);border-radius:11px;background:var(--mint)}
.license-toolbar-context{display:grid;gap:3px;min-width:180px;color:var(--green);font-size:14px}
.license-toolbar-context span{color:inherit;opacity:.85}
.license-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.license-toolbar-actions .button{padding:9px 12px}
.license-toolbar-actions .button-secondary{border:1px solid #cbd6e0}
:root[data-theme="dark"] .license-toolbar-actions .button-secondary{border-color:#506070}
.button-danger{border:1px solid #e6d1cf;background:#f7eeed;color:#8f4e49;border-radius:8px;font-size:14px;font-weight:700;min-height:42px;padding:9px 12px}
.button-danger:hover{background:#f0dfdd}
:root[data-theme="dark"] .button-danger{border-color:#67433f;background:#3a2927;color:#efb8b0}
:root[data-theme="dark"] .button-danger:hover{background:#4a302d}
.license-select:focus-visible,.license-toolbar-actions button:focus-visible{outline:2px solid #718da8;outline-offset:3px}
.license-note-preview{display:-webkit-box;max-width:560px;margin-top:5px;overflow:hidden;color:var(--muted);font-size:13px;font-weight:400;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.license-note-preview strong{color:var(--green)}
:root[data-theme="dark"] .license-note-preview strong{color:#c6d6e5}
.product-card.license-row-selected{background:var(--mint);border-color:#9eb2c7}
:root[data-theme="dark"] .product-card.license-row-selected{background:#2d3946;border-color:#60758a}
.product-select{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}
.entity-select-table{min-width:680px}
.feature-option{
  display:inline-flex!important;align-items:center;gap:11px!important;
  min-height:46px;padding:8px 12px;margin:0 10px 8px 0!important;
  border:1px solid var(--line);border-radius:9px;background:var(--paper);
  color:#34495e;font-size:15px!important;font-weight:600!important;line-height:1.4;
  cursor:pointer;vertical-align:top
}
.feature-option:hover{background:var(--mint);border-color:#aabaca}
.feature-option input[type="checkbox"]{
  appearance:auto;flex:none;width:24px!important;height:24px;min-height:24px;
  margin:0;accent-color:#45627f;cursor:pointer
}
:root[data-theme="dark"] .feature-option{
  background:#232b34;border-color:#506070;color:#e4e9ef
}
:root[data-theme="dark"] .feature-option:hover{background:#2d3946;border-color:#758ba0}
.feature-option:focus-within{outline:3px solid #718da8;outline-offset:2px}
:root[data-theme="dark"] .feature-option:focus-within{outline-color:#b4c7d9}
.feature-group strong{font-size:13px!important}
@media(max-width:780px){
  .feature-option{min-height:48px;max-width:100%;margin-right:6px!important}
}
@media(max-width:780px){
  .license-action-toolbar{align-items:stretch;flex-direction:column}
  .license-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .license-toolbar-actions .button{white-space:normal}
  .data-table td{font-size:13px}
}
@media(max-width:430px){
  .muted,.small-muted{font-size:13px}
  .license-toolbar-actions{grid-template-columns:1fr}
}
.feature-edit-table{width:100%;min-width:0;table-layout:fixed}
.feature-edit-table th:first-child{width:15%}
.feature-edit-table th:nth-child(2){width:21%}
.feature-edit-table th:nth-child(3){width:44%}
.feature-edit-table th:last-child{width:20%;min-width:160px}
.feature-edit-table th{font-size:12px}
.feature-edit-table td{overflow-wrap:anywhere}
.feature-edit-table td:nth-child(3){white-space:normal}
.feature-edit-table td:last-child{text-align:right;white-space:nowrap}
.feature-edit-table td:last-child .small-button{font-size:12px;min-height:34px;padding:6px 7px;margin:2px}
@media(max-width:780px){
  .feature-edit-table{min-width:560px}
  .feature-edit-table th:last-child{width:160px;min-width:160px}
}
@media(max-width:430px){
  .feature-edit-table{min-width:540px}
}
.settings-smtp-note{align-items:flex-start;width:100%;padding:16px 20px;margin:0 0 16px}
.settings-smtp-note .welcome-art{width:44px;height:44px;flex:none;font-size:21px}
.settings-smtp-note h3{margin:2px 0 5px}
.settings-smtp-note p{margin:4px 0}
.settings-panel #email-settings-form{width:100%;max-width:none}
.customer-contacts-editor>p{margin:0 0 12px;text-align:left}
.customer-contact-rows{display:grid;gap:12px}
.customer-contact-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(170px,1fr) minmax(220px,1.1fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.customer-contact-row>label{min-width:0}
.customer-contact-row .customer-contact-license{margin:0 0 17px!important;white-space:normal}
.customer-contact-remove{min-height:42px;margin-bottom:17px!important}
.customer-contacts-editor>#customer-contact-add{margin-top:12px}
@media(max-width:950px){.customer-contact-row{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-contact-license{grid-column:1/-1}.customer-contact-remove{justify-self:start}}
@media(max-width:560px){.customer-contact-row{grid-template-columns:minmax(0,1fr)}.customer-contact-license{grid-column:auto}}
