:root{--wine:#651a28;--wine-2:#8f2b3d;--gold:#d5ae4f;--paper:#f5f6f3;--ink:#292824;--muted:#817b72;--green:#26835c;--rose:#b43a4d;--line:#e8e5df;--white:#fff;--shadow:0 14px 40px rgba(45,35,27,.08)}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.hidden{display:none!important}button,input,select,textarea{font:inherit}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.login-visual{position:relative;overflow:hidden;padding:54px 7vw;color:#fff;background:linear-gradient(145deg,#4c121d,#7c2030 70%,#9b3747)}.brand,.side-brand{display:flex;align-items:center;gap:14px}.brand-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;color:var(--wine);background:var(--gold);font-weight:900}.brand strong,.brand small,.side-brand strong,.side-brand small{display:block}.brand strong{font-size:28px}.brand small{margin-top:3px;color:#e8d1d5}.visual-copy{position:relative;z-index:2;margin-top:24vh}.visual-copy>span{color:#e9c964;font-weight:700}.visual-copy h1{font-size:46px;line-height:1.28;margin:20px 0}.visual-copy p{max-width:590px;color:#ead8db;line-height:1.8}.visual-gifts{position:absolute;right:-5vw;bottom:-10vh;display:flex;align-items:end;gap:18px;transform:rotate(-8deg);opacity:.5}.visual-gifts span{display:block;width:170px;height:230px;border-radius:22px;background:linear-gradient(90deg,#d9b656 43%,#752131 43%,#752131 57%,#d9b656 57%);box-shadow:0 20px 60px rgba(0,0,0,.25)}.visual-gifts span:nth-child(2){height:290px;background:linear-gradient(90deg,#ecd9bd 43%,#8a2636 43%,#8a2636 57%,#ecd9bd 57%)}.visual-gifts span:nth-child(3){height:190px}.login-card{align-self:center;width:min(440px,80%);margin:auto}.eyebrow{color:var(--wine-2);font-weight:800}.login-card h2{margin:12px 0 6px;font-size:40px}.login-card>p{margin:0 0 34px;color:var(--muted)}label{display:block;margin:18px 0;color:#514d47;font-size:14px;font-weight:700}input,select,textarea{width:100%;margin-top:9px;padding:13px 14px;border:1px solid #dcd8d1;border-radius:12px;outline:none;background:#fff}input:focus,select:focus,textarea:focus{border-color:var(--wine);box-shadow:0 0 0 3px rgba(101,26,40,.09)}.input-wrap{display:flex;align-items:center;margin-top:9px;border:1px solid #dcd8d1;border-radius:12px}.input-wrap span{padding-left:14px;color:var(--wine)}.input-wrap input{margin:0;border:0;box-shadow:none}.button{border:0;border-radius:12px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:800}.button.primary{width:100%;margin-top:10px;color:#fff;background:var(--wine)}.button.wine{color:#fff;background:var(--wine)}.button.outline{color:var(--wine);background:#fff;border:1px solid #d7c6c9}.button.small{padding:10px 14px;font-size:13px}.icon{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;color:var(--wine);background:var(--gold);font-size:12px}.error{min-height:24px;padding-top:10px;color:var(--rose);font-size:13px}.demo-tip{display:block;text-align:center;color:#999}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;display:flex;flex-direction:column;padding:28px 16px;color:#fff;background:#5b1825}.side-brand{padding:0 12px 25px}.side-brand strong{font-size:22px}.side-brand small{margin-top:4px;color:#dcbfc4;font-size:11px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav button{border:0;padding:12px 13px;border-radius:10px;display:flex;align-items:center;gap:13px;color:#f0dde0;background:transparent;text-align:left;cursor:pointer}.sidebar nav button span{display:grid;place-items:center;width:23px;height:23px;font-weight:900}.sidebar nav button.active,.sidebar nav button:hover{color:#fff;background:#922e41}.sidebar nav button.active span{color:#5b1825;border-radius:7px;background:var(--gold)}.account{margin-top:auto;padding:18px 12px 4px;border-top:1px solid rgba(255,255,255,.12)}.account small,.account strong,.account>span{display:block}.account small{color:#d9af57}.account strong{margin:7px 0}.account>span{color:#d7bdc2;font-size:12px}.account button{margin-top:14px;border:0;padding:0;color:#e7cfd4;background:transparent;cursor:pointer}.account button b{margin-right:8px;color:var(--gold)}main{grid-column:2;min-width:0}.topbar{height:76px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #ece9e3}.topbar>div:first-child{display:flex;align-items:center;gap:16px}.topbar h1{margin:0;font-size:23px}.pill,.tag{display:inline-flex;align-items:center;border-radius:999px;padding:7px 13px;font-size:12px;font-style:normal}.rose{color:#a63043;background:#f8e1e5}.gold{color:#6b4c0b;background:#f8e9ba}.green{color:#17704b;background:#ddf1e8}.purple{color:#735288;background:#eee5f4}.health{color:var(--green);font-size:12px}.health i{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--green)}.icon-button{border:0;padding:9px 12px;border-radius:10px;color:var(--wine);background:#f6e9ec;cursor:pointer}.icon-button span{margin-right:6px;font-weight:900}.view{display:none;padding:30px}.view.active{display:block}.notice{margin:18px 30px 0;padding:12px 16px;border-radius:10px;color:#176747;background:#dff3e8}.notice.error-notice{color:#972f40;background:#f8e1e5}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:16px}.metric{position:relative;overflow:hidden;padding:21px;border-radius:16px;background:#fff;box-shadow:var(--shadow)}.metric:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--wine)}.metric.green-line:after{background:var(--green)}.metric.gold-line:after{background:var(--gold)}.metric.rose-line:after{background:var(--rose)}.metric .metric-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.metric .metric-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--wine);background:#f6e6e9;font-weight:900}.metric strong{display:block;margin-top:14px;font-size:27px}.metric small{display:block;margin-top:9px;color:var(--green)}.content-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,.8fr);gap:16px;margin-top:18px}.panel{padding:24px;border-radius:17px;background:#fff;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.panel h2{margin:0;font-size:20px}.panel-head p{margin:7px 0 0;color:var(--muted);font-size:12px}.permission-table{display:grid;gap:4px}.tr{display:grid;grid-template-columns:1.1fr repeat(5,.8fr) 1.4fr;align-items:center;min-width:800px;padding:14px 16px;border-radius:8px;font-size:12px}.tr:nth-child(odd){background:#faf9f6}.tr.header{color:#736d64;background:#f0eee9}.permission-table{overflow:auto}.ops-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:14px;padding:17px;border-radius:12px}.gold-bg{background:#f8e9bd}.rose-bg{background:#f7e0e4}.ops-card span{color:#625b50;font-size:12px}.split-grid{display:grid;grid-template-columns:minmax(420px,1.15fr) minmax(380px,.85fr);gap:18px}.activity-list{display:grid;gap:12px}.activity-card{padding:16px;border:1px solid var(--line);border-radius:13px}.activity-card .row,.product-card .row{display:flex;align-items:center;justify-content:space-between;gap:14px}.activity-card h3{margin:0;font-size:15px}.activity-card p{margin:8px 0;color:var(--muted);font-size:12px}.activity-card small{color:#8c8378}.activity-actions{margin-top:12px;display:flex;gap:8px}.form-panel label small{margin-left:5px;color:#9a938b;font-weight:400}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.alert{display:flex;gap:12px;padding:14px;border-radius:11px;color:#6c551c;background:#fbefc9;font-size:12px;line-height:1.6}.alert b{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;color:#fff;background:var(--wine)}.switch-line{display:flex;align-items:center;justify-content:space-between;padding:14px;border-radius:11px;background:#f7f5f0}.switch-line span strong,.switch-line span small{display:block}.switch-line span small{margin-top:5px;color:var(--muted);font-weight:400}.switch-line input{width:20px;height:20px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{color:#746d64;background:#f4f2ed}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px}.product-card{padding:16px;border:1px solid var(--line);border-radius:13px}.product-card h3{margin:0;font-size:15px}.stock-number{margin:15px 0;font-size:26px;font-weight:900}.stock-number small{color:var(--muted);font-size:12px;font-weight:400}.stock-edit{display:flex;gap:8px}.stock-edit input{margin:0}.stock-edit button{flex:0 0 auto}.role-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.role-cards article{padding:20px;border:1px solid var(--line);border-radius:14px}.role-cards article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:var(--wine);font-weight:900}.role-cards h3{margin:15px 0 7px}.role-cards p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.data-note{margin-top:18px;padding:18px;border-radius:12px;background:#f8e9bd}.data-note strong{color:var(--wine)}.data-note p{margin:7px 0 0;color:#695f50;font-size:12px;line-height:1.7}@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(3,1fr)}.content-grid,.split-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.role-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.login-shell{grid-template-columns:1fr}.login-visual{display:none}.login-card{padding:40px 0}.app-shell{display:block}.sidebar{position:static;width:100%;height:auto}.sidebar nav{flex-direction:row;overflow:auto}.account{display:none}main{display:block}.topbar{padding:0 16px}.health{display:none}.view{padding:16px}.metric-grid{grid-template-columns:1fr 1fr}.product-grid,.form-row,.role-cards{grid-template-columns:1fr}.topbar h1{font-size:18px}}
