@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#e8f0f8;background:#0b1424}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:10px;background:#3a86ff;color:white;padding:11px 16px;font-weight:650}button:hover{filter:brightness(1.12)}button:disabled{opacity:.4;cursor:default}.shell{display:flex;min-height:100vh}.sidebar{width:245px;background:#101d30;border-right:1px solid #26364b;padding:25px 15px;display:flex;flex-direction:column;gap:40px}.brand{display:flex;align-items:center;gap:12px;font-size:15px}.brand span{color:#4fdbb9}.brand small{display:block;color:#8c9bb0;font-size:11px;margin-top:4px}.mark{background:#126c64;padding:11px;border-radius:13px;font-size:23px}nav{display:grid;gap:8px}.nav{background:transparent;text-align:left;color:#aebdd0}.nav.active{background:#1e3950;color:#fff}.sidebar-bottom{margin-top:auto;color:#8b9bb1;font-size:12px}.sidebar-bottom small{display:block;margin-top:6px}.dot{display:inline-block;background:#32c69e;width:8px;height:8px;border-radius:50%;margin-right:6px}main{flex:1;padding:35px 38px;min-width:0;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:35px}.eyebrow{font-size:11px;letter-spacing:.15em;color:#47cbb1;font-weight:800}h1{font-size:29px;margin:9px 0}header p,.section-head p{color:#91a3b9;margin:0}.header-actions{display:flex;align-items:center;gap:18px}.pill{border:1px solid #237a65;color:#59d8b2;border-radius:30px;padding:8px 12px;font-size:12px}.avatar{background:#275d79;padding:12px;border-radius:50%;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat,.company,.module,.panel{background:#14243a;border:1px solid #263a53;border-radius:16px;padding:20px}.stat small{display:block;color:#9baec4}.stat b{display:block;font-size:32px;margin-top:15px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:32px 0 17px}.section-head h2{margin:0;font-size:19px}.companies{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.company-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}.company-head h3{margin:0 0 5px}.company-head small{color:#9aacc0}.company-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:23px;font-weight:800}.kv{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #2a3b52;padding:12px 0;font-size:13px}.kv span{color:#a0afc1}.company-actions{display:flex;gap:9px;margin-top:14px}.secondary{background:#293c54}.modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px}.module h3{margin:12px 0 7px}.module p{color:#a3b3c6;font-size:13px;min-height:36px}.module-icon{font-size:24px;color:#55d9b9}.tag{color:#6bdbba;background:#193f42;border-radius:20px;padding:5px 9px;font-size:11px}.panel{margin:15px 0}.panel p{color:#a6b5c6;line-height:1.6}.notice{background:#172a3f;border:1px solid #2b4d68;border-radius:12px;padding:14px 17px;color:#a8bed1;font-size:13px;margin-top:25px}footer{color:#71849a;font-size:12px;margin-top:35px}dialog{background:#17263a;color:white;border:1px solid #39516a;border-radius:18px;width:min(460px,92vw);padding:25px}dialog::backdrop{background:#000a}.modal-head{display:flex;justify-content:space-between;align-items:center}.x{background:transparent;font-size:24px}label{display:block;margin:17px 0;color:#afc2d6;font-size:13px}input{display:block;width:100%;background:#0c1828;color:white;border:1px solid #3b526a;padding:12px;border-radius:9px;margin-top:7px}input[type=color]{height:48px}.hint{color:#9db0c5;font-size:12px}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}@media(max-width:800px){.shell{display:block}.sidebar{width:100%;padding:12px;gap:10px}.sidebar-bottom{display:none}.brand{justify-content:center}nav{display:flex;overflow:auto}nav button{flex-shrink:0;font-size:12px;padding:10px}main{padding:20px 15px}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:23px}.header-actions{display:none}.modules{grid-template-columns:repeat(2,minmax(0,1fr))}.module{padding:13px}.section-head{flex-wrap:wrap}}
/* LJ Studio branding: based on JAStede/LJStudio assets/style.css */

:root{font-family:'DM Sans',Arial,sans-serif;color:#f7f4ef;background:#090909;--lj-gold:#d8aa5c;--lj-gold-light:#f5d48a;--lj-panel:#191919}
body{background:#090909;color:#f7f4ef}h1,h2,h3,.brand{font-family:'Manrope',Arial,sans-serif}
.sidebar{background:#101010;border-color:#ffffff20}.brand span{color:#d8aa5c}.brand small,.sidebar-bottom{color:#aaa6a0}.mark{background:linear-gradient(135deg,#f3d38c,#c99748);color:#18130a}.nav{color:#bbb5ab}.nav.active{background:#30271b;color:#f5d48a}.dot{background:#d8aa5c}
.eyebrow{color:#d8aa5c}.pill{border-color:#9e7438;color:#f5d48a}.avatar{background:#332716;color:#f5d48a}
.stat,.company,.module,.panel{background:#191919;border-color:#ffffff22}.stat small,.company-head small,.kv span,.module p,.panel p{color:#aaa6a0}.kv{border-color:#ffffff1b}
button{background:linear-gradient(135deg,#f3d38c,#c99748);color:#18130a}button:hover{filter:brightness(1.08)}.secondary,.nav{background:transparent;color:#e2d7c7}.secondary{border:1px solid #9e7438}.company-icon{color:#fff}.module-icon{color:#d8aa5c}.tag{color:#f5d48a;background:#342719}.notice{background:#1c1812;border-color:#6c512d;color:#d7c5a5}footer{color:#8f8c84}
dialog{background:#191919;border-color:#9e7438;color:#f7f4ef}label,.hint{color:#c5bfb3}input{background:#0c0c0c;color:#fff;border-color:#6d5a40}
:focus-visible{outline:3px solid #f5d48a;outline-offset:3px}

/* Refined app layout */
.ui-icon{display:inline-block;flex-shrink:0;vertical-align:middle}
.nav{display:flex;align-items:center;gap:12px;min-height:46px;border-radius:12px;font-size:13px;font-weight:650}
.nav-icon{width:23px;display:inline-flex;justify-content:center}
.nav.active{box-shadow:inset 3px 0 0 #d8aa5c}
.mark{font-family:Georgia,serif;font-size:23px;font-weight:700;letter-spacing:-.12em;min-width:48px;text-align:center;padding:11px 10px}
.mark .mark-dot{color:#17120b}
.stat,.company,.module,.panel{transition:border-color .2s,transform .2s}
.company:hover,.module:hover{border-color:#b88d4b88}
.module-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#332817}
.company-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.welcome-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px;border:1px solid #9e74385c;border-radius:18px;background:radial-gradient(circle at 95% 10%,#7b57253b,transparent 45%),linear-gradient(135deg,#211a13,#121212);margin-bottom:20px}
.welcome-panel h2{font-size:clamp(21px,3vw,30px);margin:8px 0}.welcome-panel p{color:#c4b7a4;line-height:1.6;margin:0;max-width:550px}.welcome-kicker{font-size:10px;letter-spacing:.15em;font-weight:800;color:#d8aa5c}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.quick-action{display:flex;align-items:center;gap:12px;text-align:left;padding:18px;background:#191919;border:1px solid #ffffff22;color:#f7f4ef}
.quick-action svg{color:#d8aa5c}.quick-action small{display:block;color:#aaa6a0;font-size:11px;font-weight:400;margin-top:5px}
.roadmap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.roadmap>div{padding:18px;border:1px solid #ffffff20;border-radius:14px;background:#191919}.roadmap strong{display:block;font-size:13px}.roadmap small{display:block;margin-top:8px;color:#aaa6a0;line-height:1.5}
@media(max-width:800px){
body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.shell{display:block}
.sidebar{position:static;padding:12px 16px;background:#0f0f0f;border-bottom:1px solid #ffffff1c;gap:0}
.brand{justify-content:flex-start;font-size:13px}.brand small{font-size:10px}
.sidebar nav{position:fixed;bottom:0;left:0;right:0;z-index:100;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible;padding:7px 4px calc(7px + env(safe-area-inset-bottom));background:#101010f5;border-top:1px solid #d8aa5c33;backdrop-filter:blur(18px);box-shadow:0 -8px 30px #0008}
.sidebar .nav{min-width:0;min-height:55px;flex-direction:column;justify-content:center;gap:5px;padding:7px 1px;border-radius:10px;font-size:9px;line-height:1.1;text-align:center}
.nav-icon{width:auto}.nav-icon svg{width:20px;height:20px}.nav-label{white-space:nowrap;font-size:clamp(8px,2.3vw,10px)}
.nav.active{box-shadow:none;background:#342818;color:#f5d48a}
main{padding:24px 16px}header{margin-bottom:24px}
.stats{gap:10px}.stat{padding:15px}.stat b{font-size:27px;margin-top:10px}
.welcome-panel{padding:20px;align-items:flex-start;flex-direction:column}
.quick-grid{grid-template-columns:1fr;gap:9px}.quick-action{padding:14px}
.roadmap{grid-template-columns:1fr}
.modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.module{min-width:0}.module h3{font-size:14px;overflow-wrap:anywhere}
.company-actions{flex-wrap:wrap}.company-actions button{flex:1}
.section-head h2{font-size:17px}
}

/* LJ Studio Platform — premium application refinement */
:root{--gold:#d8aa5c;--gold-light:#f5d48a;--cream:#f7f4ef;--muted:#aaa6a0;--panel:#191919;--stroke:#ffffff22}
body{font-family:'DM Sans',Arial,sans-serif;line-height:1.45}
h1,h2,h3{font-family:'Manrope',Arial,sans-serif;letter-spacing:-.035em}
.brand-logo{display:block;width:43px;height:43px;object-fit:contain;border-radius:11px}
.mark{display:grid;place-items:center;padding:2px;background:none;min-width:46px}
.avatar{width:44px;height:44px;padding:2px;display:grid;place-items:center;background:#252019;border:1px solid #a6814d66}
.avatar-logo{width:38px;height:38px;object-fit:contain;border-radius:50%}
.sidebar{gap:34px}
.nav{transition:background .2s,color .2s}
.nav:hover{background:#292219}
.nav-icon{display:flex;align-items:center;justify-content:center}
.nav-label{white-space:nowrap}
.ui-icon{vertical-align:middle;flex-shrink:0}
header{padding-bottom:22px;border-bottom:1px solid #ffffff15}
header h1{font-size:clamp(25px,3vw,34px)}
.header-actions{display:flex;align-items:center}
.pill{display:inline-flex;align-items:center;gap:6px}
.pill .dot{margin:0}
.stat{min-height:122px;background:linear-gradient(145deg,#1c1c1c,#151515)}
.stat-top{display:flex;align-items:center;gap:9px;color:var(--gold)}
.stat-top small{color:#b8b1a7}
.stat b{color:#fff;font-size:31px}
.welcome-panel{position:relative;overflow:hidden;min-height:180px;margin-bottom:22px}
.welcome-panel h2{font-size:clamp(25px,3.3vw,37px);letter-spacing:-.05em}
.welcome-logo{width:112px;height:112px;object-fit:contain;opacity:.95;border-radius:24px}
.welcome-panel p{max-width:490px}
.quick-grid{margin-bottom:10px}
.quick-action{border-radius:14px;transition:transform .2s,border-color .2s}
.quick-action:hover{transform:translateY(-2px);border-color:#d8aa5c88}
.quick-action>svg:first-child{width:24px;height:24px}
.quick-action>svg:last-child{margin-left:auto;width:18px;height:18px}
.quick-action span{flex:1;font-size:13px;font-weight:700}
.company{display:flex;flex-direction:column;min-width:0}
.company-title{min-width:0;flex:1}
.company-head h3{overflow-wrap:anywhere;font-size:17px}
.status-dot{width:9px;height:9px;border:2px solid #d8aa5c;border-radius:50%;flex-shrink:0}
.company-module-line{display:flex;align-items:center;gap:8px;font-size:12px;color:#d6c5a9;margin:-3px 0 12px}
.company-module-line svg{width:16px;height:16px;color:var(--gold)}
.mini-modules{display:flex;gap:6px;flex-wrap:wrap;min-height:40px;margin-bottom:13px;align-content:flex-start}
.mini-modules span{padding:5px 8px;border:1px solid #8e6d3b55;border-radius:6px;background:#2b241a;color:#e9d4b2;font-size:10px}
.mini-modules em{color:var(--muted);font-size:12px}
.company-actions{margin-top:auto;padding-top:12px;flex-wrap:wrap}
.company-actions button{flex:1;min-width:130px;font-size:12px;padding:11px}
.action-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;min-height:42px;transition:transform .2s,background .2s}
.action-button:hover:not(:disabled){transform:translateY(-1px)}
.action-button svg{width:17px;height:17px}
.secondary.action-button{border:1px solid #9e7438;color:#f5d48a;background:#211b14}
.secondary.action-button:hover{background:#302416}
.module-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:15px}
.module-bottom small{color:#aaa6a0;font-size:10px}
.module p{min-height:0;line-height:1.6}
.module h3{font-size:16px}
.module-icon svg{width:23px;height:23px}
.notice{display:flex;align-items:flex-start;gap:10px;line-height:1.6}
.notice svg{width:18px;height:18px;flex-shrink:0}
.detail-top{margin-bottom:18px}
.detail-hero{display:flex;align-items:center;gap:17px;padding:23px;border-radius:16px;border:1px solid #9e743866;background:linear-gradient(130deg,#211b14,#151515)}
.company-icon.big{width:67px;height:67px;font-size:32px;flex-shrink:0}
.detail-hero h2{margin:5px 0;font-size:25px}
.detail-hero p{margin:0;color:#aaa6a0;font-size:12px}
.detail-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-module{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #ffffff1c;border-radius:13px;background:#151515;min-width:0}
.detail-module.enabled{background:#211c15;border-color:#a27c4166}
.detail-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#302719;color:var(--gold);flex-shrink:0}
.detail-module>div{min-width:0;flex:1}
.detail-module strong{display:block;font-size:12px}
.detail-module small{display:block;font-size:11px;color:#aaa6a0;margin-top:4px}
.detail-state{font-size:10px;color:#aaa6a0;white-space:nowrap}
.detail-module.enabled .detail-state{color:#f5d48a}
.detail-state svg{width:13px;height:13px}
.detail-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #ffffff1b;font-size:13px}
.detail-row span{display:flex;align-items:center;gap:9px;color:#c8beb0}
.detail-row span svg{color:var(--gold)}
.detail-row strong{font-size:12px;text-align:right}
.detail-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}
.search-wrap{display:flex;align-items:center;gap:10px;max-width:470px;padding:0 12px;margin-bottom:18px;background:#191919;border:1px solid #ffffff2b;border-radius:11px;color:var(--gold)}
.search-wrap input{margin:0;border:0;background:transparent;padding:14px 0;outline:0}
.empty-state{padding:38px;text-align:center;border:1px dashed #8e6d3b66;border-radius:14px;color:#aaa6a0}
.empty-state svg{color:var(--gold);width:30px;height:30px}
.empty-state h3{color:#fff}
.more-row{display:flex;justify-content:center;margin-top:15px}
.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.integration-card{margin:0}
.integration-card h2{font-size:18px}
.settings-title{display:flex;align-items:center;gap:10px;color:var(--gold)}
.settings-title h2{color:#fff;margin:0;font-size:17px}
.module-note{margin-top:22px}
.step-num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#3a2c18;color:var(--gold-light);font-weight:800;font-size:12px;margin-bottom:12px}
.roadmap>div{min-height:125px}
.module-picker{margin-top:20px;padding-top:16px;border-top:1px solid #ffffff24}
.picker-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}
.picker-heading strong{font-size:14px}
.picker-heading small{font-size:11px;color:#aaa6a0}
.module-option{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:7px 0;border:1px solid #ffffff22;border-radius:10px;background:#121212;cursor:pointer}
.module-option:has(input:checked){border-color:#b58b4c88;background:#251e15}
.module-option input[type=checkbox]{appearance:none;-webkit-appearance:none;display:grid;place-items:center;flex-shrink:0;width:20px;height:20px;border:1px solid #9e7438;border-radius:5px;background:#0d0d0d;padding:0;margin:0}
.module-option input[type=checkbox]:checked{background:#d8aa5c;border-color:#d8aa5c}
.module-option input[type=checkbox]:checked:after{content:"";width:10px;height:6px;border:solid #18130a;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.option-icon{color:var(--gold);display:flex}
.option-icon svg{width:19px;height:19px}
.option-copy{flex:1}
.option-copy strong{display:block;font-size:12px;color:#f7f4ef}
.option-copy small{display:block;color:#aaa6a0;font-size:10px;margin-top:3px}
dialog{max-height:min(88vh,860px);overflow:auto}
.modal-head h2{font-size:20px}
#companyForm .actions{position:sticky;bottom:-25px;background:#191919;padding:14px 0 5px;z-index:1}
@media(max-width:1000px){.detail-modules{grid-template-columns:1fr}.integration-grid{grid-template-columns:1fr}}
@media(max-width:800px){
 .sidebar{position:relative}
 .brand-logo{width:38px;height:38px}
 .header-actions{display:flex;gap:8px}.avatar{width:36px;height:36px}.avatar-logo{width:30px;height:30px}.pill{font-size:10px;padding:6px 9px}
 header{align-items:flex-start}
 header h1{font-size:24px}
 .welcome-panel{flex-direction:row;align-items:center;min-height:0;gap:12px}
 .welcome-panel h2{font-size:23px}
 .welcome-logo{width:66px;height:66px;flex-shrink:0}
 .welcome-panel p{font-size:12px}
 .quick-grid{grid-template-columns:1fr}
 .quick-action{min-height:60px}
 .stat{min-height:104px;padding:14px}
 .stat-top{align-items:flex-start;gap:6px}.stat-top small{font-size:10px}
 .stat b{font-size:26px}
 .company-actions button{min-width:110px}
 .detail-module{padding:12px;gap:9px}
 .detail-state{font-size:9px}
 .detail-actions{flex-direction:column}
 .detail-actions button{width:100%}
 .module-option{min-height:58px}
 dialog{width:min(100%,480px);max-height:88dvh;padding:18px}
 #companyForm .actions{bottom:-18px}
 .section-head{align-items:center}
 .section-head .action-button{font-size:11px;padding:10px}
}
@media(max-width:370px){.welcome-logo{width:48px;height:48px}.welcome-panel{padding:14px}.nav-label{font-size:8px}.company-actions{flex-direction:column}.company-actions button{width:100%}}
