/* Approved presentation only. Keep existing business states and menu behavior. */
.app .sidebar{padding-top:12px}
.app .sidebar .brand{display:flex;flex-direction:column;gap:10px;padding:16px 4px 20px;flex-shrink:0;text-align:center;background:transparent;border-bottom:1px solid #36414b}
.app .brand-logo{width:132px;height:110px;object-fit:contain;background:transparent;border:0;border-radius:0;box-shadow:none}
.app .brand-copy{font-size:16px;line-height:1.5;color:#ebd298;font-family:'Microsoft YaHei',sans-serif;letter-spacing:-.25px;white-space:nowrap}
.app .brand-copy small{display:block;margin-top:6px;color:#b6bdc5;font-size:13px;font-weight:400}
.app .sidebar-tools{position:absolute;right:12px;top:12px;margin:0}
.app .sidebar-tools button{min-width:36px;min-height:36px;border-radius:50%;background:#202325b3;border:1px solid #44413a}
.app.sidebar-collapsed .sidebar .brand{padding:40px 0 14px}
.app.sidebar-collapsed .brand-logo{width:48px;height:48px}
.app .owner-welcome{position:relative;overflow:hidden;padding-right:80px}
.app .owner-welcome:after{content:'';position:absolute;right:18px;top:8px;width:60px;height:36px;background:url('/static/brand/cloud-line-v3.svg') center/contain no-repeat;opacity:.3;pointer-events:none}
html:not([data-erp-theme='light']) .app{background:#0e151d;color:#edf2f7}
html:not([data-erp-theme='light']) .app .sidebar,html:not([data-erp-theme='light']) .app .topbar{background:#161e26;border-color:#2c3b49}
html:not([data-erp-theme='light']) .app .cards article,html:not([data-erp-theme='light']) .app .grid article{background:#192530;border-color:#293b4b;box-shadow:none}
html:not([data-erp-theme='light']) .app .cards b{color:#fff!important;font-variant-numeric:tabular-nums}
.app .cards b{font-size:clamp(23px,1.8vw,32px);overflow-wrap:anywhere}
.app .cards article{padding:24px}
.app .cards span{line-height:1.6}
.app .grid>article{min-width:0}
.app .grid table{width:100%;border-collapse:collapse;text-align:left}
.app .grid th,.app .grid td{padding:12px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.app .grid td{font-variant-numeric:tabular-nums}
html[data-erp-theme='light'] .app .sidebar .brand{background:#f4f6f9;border-color:#d4dce6}
html[data-erp-theme='light'] .app .brand-copy small{color:#526277}
/* Login artwork is decorative; all controls remain real accessible HTML. */
html body.branded-login{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,1fr);gap:3vw;align-items:center;padding:6vh 4vw;min-height:100svh;background:linear-gradient(90deg,#101214a8 0%,#10121456 42%,#10121418 68%),#191b1c url('/static/brand/login-architecture-v4.png') left bottom/cover no-repeat;color:#f5efdf;color-scheme:dark}
.branded-login .login-identity{align-self:start;padding-top:5vh;min-width:0}
.branded-login .login-wordmark{display:flex;align-items:center;gap:22px}
.branded-login .login-wordmark img{width:clamp(76px,8vw,132px);height:auto;object-fit:contain;flex:none}
.branded-login .login-wordmark h1{font-size:clamp(23px,2.55vw,48px);line-height:1.4;color:#ead5a4;margin:0 0 8px;letter-spacing:.02em}
.branded-login .login-wordmark p{text-align:center;color:#ddc898;font-size:clamp(18px,1.8vw,30px);margin:0;letter-spacing:.12em}
.branded-login .login-motto{margin:32px 0 0 20%;font-size:clamp(16px,1.4vw,24px);letter-spacing:.3em;color:#d9bf86}
html .branded-login main.login-card{width:100%;max-width:580px;justify-self:end;padding:clamp(28px,4vw,64px);border:1px solid #c0a778;border-radius:24px;background:linear-gradient(145deg,#373632e8,#181b1eea);box-shadow:0 18px 60px #0004;position:relative}
.branded-login .login-card:before,.branded-login .login-card:after{content:'';position:absolute;width:90px;height:48px;background:url('/static/brand/cloud-line-v3.svg') center/contain no-repeat;opacity:.75;pointer-events:none}
.branded-login .login-card:before{right:10px;top:10px}.branded-login .login-card:after{left:10px;bottom:10px;transform:rotate(180deg)}
.branded-login .erp-theme-switch{display:none!important}
.branded-login .login-card h2{text-align:center;font-size:clamp(30px,3vw,48px);color:#f2e5c5;margin:12px 0}
.branded-login .login-caption{text-align:center;color:#c5bfaf;letter-spacing:.2em;margin-bottom:36px}
.branded-login label{color:#f0eee7;font-size:16px;font-weight:500;margin-top:24px}
html .branded-login input:not([type='hidden']){background:#161b1dcc;color:#fff;border:1px solid #8b8c84;border-radius:8px;min-height:54px;padding:14px 16px;font-size:16px}
html .branded-login input::placeholder{color:#a6aaa8}
.branded-login .password-control{position:relative}
.branded-login .password-control input{padding-right:72px!important}
.branded-login button.password-toggle{position:absolute;right:4px;top:4px;width:auto;min-width:56px;min-height:46px;margin:0;padding:8px;background:transparent;color:#d9d6cc;box-shadow:none}
.branded-login .account-help{font-size:13px;line-height:1.6;margin:18px 0 0;color:#bfc4c5}
html .branded-login .login-submit{width:100%;margin-top:24px;min-height:58px;background:linear-gradient(120deg,#efd99f,#c4a568);color:#191710;border:1px solid #edd9a5;font-size:22px;font-weight:700;box-shadow:none}
.branded-login .account-links{display:flex;justify-content:space-between;gap:12px;margin:28px 0 4px}
.branded-login .account-links a{color:#ead29a;text-decoration:underline;text-underline-offset:5px}
.branded-login .login-error{color:#ffb9b9;margin-top:16px;line-height:1.6}
.branded-login :focus-visible{outline:3px solid #f0d395;outline-offset:3px}
@media(min-width:1700px){html body.branded-login{grid-template-columns:minmax(0,1.5fr) minmax(400px,1fr);padding:7vh 5vw}.branded-login main.login-card{max-width:680px}}
/* Super-wide desktop: retain the approved two-panel composition instead of leaving a small form at the far edge. */
@media(min-width:2200px){html body.branded-login{grid-template-columns:minmax(0,1.5fr) minmax(760px,1fr);gap:4vw;padding:7vh 6vw;background-position:center -320px}.branded-login .login-identity{position:absolute;left:6vw;top:5vh;padding:0;margin:0;width:auto}.branded-login .login-wordmark img{width:150px}.branded-login .login-wordmark h1{font-size:52px}.branded-login .login-wordmark p{font-size:30px}.branded-login .login-motto{font-size:24px;margin-left:174px}html .branded-login main.login-card{grid-column:2;display:flex;flex-direction:column;min-height:84svh;max-width:920px;justify-self:center;padding:clamp(58px,3.4vw,92px)}.branded-login .login-card h2{font-size:58px}.branded-login .login-caption{font-size:18px;margin-bottom:42px}.branded-login .login-card form{margin-top:42px}.branded-login label{font-size:18px}.branded-login input:not([type='hidden']){min-height:64px;font-size:18px}.branded-login button.password-toggle{min-height:56px;top:4px}.branded-login .account-help{font-size:15px}.branded-login .login-submit{min-height:68px;font-size:26px}.branded-login .account-links{font-size:17px;margin-top:auto;margin-bottom:0}}
@media(max-width:900px){html body.branded-login{grid-template-columns:1fr;gap:28px;padding:28px 20px;background-position:30% bottom}.branded-login .login-identity{padding-top:0}.branded-login .login-wordmark{justify-content:center}.branded-login .login-motto{display:none}html .branded-login main.login-card{justify-self:center;max-width:520px}.branded-login .login-caption{margin-bottom:20px}}
@media(max-width:700px){.app .sidebar .brand{padding-top:26px}.app.sidebar-collapsed .sidebar .brand{padding-top:26px}.app.sidebar-collapsed .brand-logo{width:110px;height:92px}.app .cards article{padding:20px}.branded-login .login-wordmark{gap:12px}.branded-login .login-wordmark h1{font-size:20px}.branded-login .login-wordmark p{font-size:14px}.branded-login .login-wordmark img{width:66px}}
