
:root{--red:#a12c36;--red-dark:#86222b;--ink:#28272b;--muted:#929093;--border:#eeebea;--bg:#f8f9fb;--radius:14px}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #cf9e80;outline-offset:3px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0}a{text-decoration:none;color:inherit}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle}button.primary{background:var(--red);color:white;border:1px solid var(--red);border-radius:8px;padding:12px 20px;font-weight:600;min-height:44px}button.primary:hover{background:var(--red-dark)}button.secondary{background:white;border:1px solid #ddd8d6;border-radius:8px;min-height:44px;padding:10px 20px;color:#5c5654}.icon-button{background:transparent;width:40px;height:40px;border-radius:7px;color:#878487}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:36px 20px 20px}.brand{display:flex;gap:12px;align-items:center;padding:0 13px;font-size:26px;font-weight:750;letter-spacing:3px}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:4px}.brand-icon{font-family:Georgia,serif;position:relative;border-radius:12px;background:var(--red);color:white;font-size:50px;line-height:49px;width:47px;height:51px;letter-spacing:-5px;padding-left:7px}.brand-icon span{font-size:12px;position:absolute;top:-13px;right:9px;color:#fff;transform:rotate(-30deg)}.workspace-label{font-size:11px;color:#aba5a3;letter-spacing:2px;margin:51px 15px 18px}.nav-item{display:flex;align-items:center;gap:12px;padding:14px;background:#f8eded;color:var(--red);border-radius:8px;font-weight:600}.nav-count{margin-left:auto;background:#efdadd;padding:3px 7px;font-size:11px;border-radius:5px}.sidebar-note{margin:auto 0 23px;background:#faf8f5;border:1px solid #f2ede6;border-radius:10px;padding:18px 15px;color:#85705d}.sidebar-note>span{display:block;margin-bottom:12px}.sidebar-note strong{font-size:12px}.sidebar-note p{font-size:11px;line-height:1.9;color:#a59789;margin-bottom:0}.sidebar-footer{border-top:1px solid var(--border);padding:20px 3px 0;display:flex;gap:10px;align-items:center;font-size:12px}.avatar{background:#f3eeeb;color:#9d7973;border-radius:50%;display:grid;place-items:center;width:33px;height:33px}.sidebar-footer small{display:block;color:#a5a0a0;font-size:10px;margin-top:5px}.main-wrap{margin-left:226px}.topbar{height:73px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px}.breadcrumb{color:#a29b9a}.breadcrumb span{padding:0 14px;color:#d2cbca}.breadcrumb strong{font-weight:500;color:#4d4543}.top-brand{font-size:10px;letter-spacing:2px;color:#8f8582}.top-brand i{display:inline-block;width:3px;height:3px;background:#b39188;vertical-align:middle;margin:0 10px}.mobile-brand{display:none}main{max-width:1500px;margin:auto;padding:35px 42px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.eyebrow{font-size:9px;letter-spacing:2px;color:#a5a0a1;font-weight:600}h1{font-size:29px;letter-spacing:1px;margin:9px 0 10px;font-weight:650}.heading-dot{display:inline-block;background:var(--red);width:7px;height:7px;border-radius:50%;margin-left:9px}.page-heading p{color:#989194;margin:0;font-size:12px}.intro-banner{height:202px;overflow:hidden;border:1px solid #ede4da;border-radius:12px;background:#f3eee6;position:relative;padding:27px 32px;display:flex;justify-content:space-between}.banner-label{font-size:10px;letter-spacing:2px;color:#9a8370}.intro-banner h2{font-size:23px;font-weight:550;color:#53473e;margin:14px 0 10px}.intro-banner p{font-size:12px;color:#a19184;margin:0}.banner-chip{display:inline-flex;gap:6px;align-items:center;margin-top:19px;border:1px solid #dfd3c4;border-radius:5px;padding:5px 9px;color:#937b69;font-size:10px}.banner-chip svg{width:14px;height:14px}.room-art{position:relative;width:320px;min-width:260px;height:202px;top:-27px;right:-12px;overflow:hidden;background:linear-gradient(0deg,#e8dfd1 0%,#eee6db 26%,transparent 26%)}.art-window{position:absolute;width:105px;height:140px;right:27px;top:0;background:linear-gradient(90deg,#f9f4eb 48%,#ded1be 49%,#ded1be 51%,#f9f4eb 52%);box-shadow:-10px 0 0 #e8ddcd,10px 0 0 #e8ddcd}.art-cabinet{position:absolute;left:8px;top:18px;width:80px;height:148px;background:#bea386;display:flex;border:4px solid #c9b297;box-shadow:9px 5px 10px #83705b16}.art-cabinet i{flex:1;border-right:1px solid #a78a6d}.art-cabinet i:after{content:'';display:block;width:2px;height:12px;background:#826d55;margin:70px 0 0 15px}.art-frame{position:absolute;left:111px;top:35px;border:4px solid #d6c3a9;background:#e4d8c5;width:48px;height:62px}.art-frame:after{content:'';position:absolute;background:#b8a78e;border-radius:50% 50% 0 0;width:26px;height:36px;bottom:0;left:7px}.art-sofa{position:absolute;width:160px;height:48px;right:35px;bottom:32px;background:linear-gradient(90deg,#d1baa0 49%,#c6ad92 50%,#d1baa0 51%);border-radius:12px 12px 4px 4px;border-bottom:10px solid #c4aa8d;box-shadow:0 9px 10px #82756420}.art-sofa:before,.art-sofa:after{content:'';position:absolute;width:17px;height:32px;background:#c8b296;bottom:0;border-radius:5px}.art-sofa:before{left:-9px}.art-sofa:after{right:-9px}.art-table{width:65px;height:12px;border-radius:50%;background:#947657;position:absolute;bottom:27px;left:129px;box-shadow:0 13px 0 -3px #b39472}.art-lamp{position:absolute;right:9px;top:76px;width:2px;height:95px;background:#9e876e}.art-lamp:before{content:'';position:absolute;width:37px;height:24px;background:#f8f1e6;left:-18px;border-radius:25px 25px 3px 3px}.art-vase{position:absolute;bottom:38px;left:156px;width:10px;height:15px;background:#e9dfce;border-radius:3px 3px 6px 6px}.room-art>span{position:absolute;font-size:5px;letter-spacing:2px;bottom:9px;right:30px;color:#ad987e}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0 29px}.stat{padding:20px 24px;display:flex;gap:16px;align-items:center;background:white;border:1px solid var(--border);border-radius:10px}.stat-icon{width:43px;height:43px;border-radius:11px;background:#f8eeee;display:grid;place-items:center;color:#ad6a70}.stat-icon.beige{color:#b39a78;background:#f7f3ec}.stat-icon.green{color:#7d9a8b;background:#eef5f0}.stat>div>span{font-size:11px;color:#9a9493}.stat strong{display:block;font-size:26px;font-weight:600;margin-top:3px;font-variant-numeric:tabular-nums}.stat small{font-size:10px;color:#b2aaa5;font-weight:400;margin-left:8px}.library{border:1px solid var(--border);border-radius:12px;background:#fff;padding:22px}.library-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.library-heading h2{font-size:16px;margin:0;font-weight:600}.library-heading h2>span{font-size:10px;background:#f4f3f2;color:#99908c;padding:3px 7px;border-radius:5px;margin-left:8px}.text-button{background:none;color:#9d9693;font-size:11px;padding:8px}.text-button svg{width:15px}.tools{display:flex;justify-content:space-between;gap:18px}.search{display:flex;align-items:center;gap:10px;border:1px solid #eae7e5;background:#fcfcfc;padding:0 12px;border-radius:7px;max-width:425px;flex:1;color:#aaa3a0}.search input{border:0;background:transparent;outline:none;min-width:0;flex:1;height:40px;font-size:12px}.search:focus-within{border-color:#c18588}.search kbd{font-size:9px;font-family:inherit;background:#f2f0ee;padding:3px 5px;white-space:nowrap}.sort-view{display:flex;align-items:center;gap:14px}select{border:1px solid #e9e5e2;border-radius:7px;background:white;color:#736b68;padding:0 12px;min-height:42px;font-size:12px}.view-buttons{display:flex;background:#f5f4f3;border:1px solid #efebe8;border-radius:6px;padding:3px}.view-buttons .icon-button{width:32px;height:32px}.view-buttons .selected{background:white;color:var(--red);box-shadow:0 1px 4px #0000000d}.category-tabs{display:flex;gap:7px;overflow-x:auto;padding:20px 0 18px;scrollbar-width:none}.category-tabs button{white-space:nowrap;padding:8px 14px;font-size:12px;color:#978e89;background:transparent;border-radius:6px;min-height:35px}.category-tabs button.active{background:#f7ecec;color:var(--red);font-weight:600}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{border:1px solid #eee9e5;border-radius:9px;overflow:hidden;background:white;cursor:pointer;transition:box-shadow .18s,transform .18s}.product-card:hover{transform:translateY(-2px);box-shadow:0 7px 20px #312a2510}.product-photo{height:190px;background:#f5f3f0;position:relative}.product-photo img{width:100%;height:100%;object-fit:cover}.category-badge{position:absolute;top:12px;left:12px;font-size:10px;padding:5px 8px;background:#fffffff0;border-radius:4px;color:#827061}.product-info{padding:15px}.product-info h3{font-size:14px;margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model{font-size:11px;color:#aaa19b;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-info-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:17px;gap:4px}.price{font-size:21px;color:var(--red);font-weight:600;font-variant-numeric:tabular-nums}.price small{font-size:10px;color:#aaa19b;font-weight:400;margin-left:4px}.price .currency{font-size:12px;margin-right:3px}.card-edit{padding:6px;background:transparent;color:#9a918b;font-size:10px}.card-edit svg{width:13px}.empty-state{padding:37px 10px 44px;text-align:center;min-height:300px}.empty-illustration{width:76px;height:76px;border-radius:22px;background:#f8f2ef;display:grid;place-items:center;position:relative;margin:0 auto 20px;color:#b99885;transform:rotate(-5deg)}.empty-illustration svg{width:36px;height:36px}.empty-plus{position:absolute;right:-5px;bottom:0;background:var(--red);color:#fff;width:25px;height:25px;border:3px solid white;border-radius:50%;font-size:18px;line-height:18px}.empty-state h3{font-size:17px;font-weight:500;margin:0 0 10px}.empty-state p{font-size:12px;color:#a49b94;margin:0 0 23px}.empty-state .primary{font-size:12px}.library-footer{display:flex;justify-content:space-between;padding-top:18px;margin-top:20px;border-top:1px solid #f1eeec;color:#b4aaa4;font-size:10px}.library-footer svg{width:12px;height:12px;margin-right:4px}.page-footer{text-align:center;color:#b9b2ae;font-size:9px;letter-spacing:1px;margin-top:25px}.page-footer span{padding:0 10px}.mobile-bottom{display:none}.error-state{text-align:center;padding:40px;color:#a12c36}.product-grid.list{grid-template-columns:1fr}.list .product-card{display:flex;align-items:center}.list .product-photo{height:100px;width:130px;flex-shrink:0}.list .product-info{flex:1;min-width:0}.list .product-info-bottom{margin-top:5px}.list .category-badge{top:6px;left:6px}dialog{border:0;border-radius:16px;padding:0;width:560px;max-width:calc(100% - 32px);max-height:90dvh;box-shadow:0 24px 100px #0003}dialog::backdrop{background:#24202066;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}#product-form{display:flex;flex-direction:column;max-height:90dvh}.dialog-header{padding:22px 25px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.dialog-header h2{margin:7px 0 0;font-size:21px}.form-body{padding:0 25px 22px;overflow-y:auto;overscroll-behavior:contain}.form-hint{font-size:12px;color:#9d9390;margin:20px 0}.form-hint span{float:right;font-size:10px}.field-label,.form-field{font-weight:500;font-size:12px}em{font-style:normal;color:var(--red);margin-left:3px}.photo-box{height:170px;display:grid;place-items:center;border:1px dashed #d8c7bb;background:#fbf8f5;border-radius:9px;overflow:hidden;margin-top:9px}.photo-box img{width:100%;height:100%;object-fit:contain}.photo-box #photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;color:#b1a198;font-size:10px}.photo-box strong{font-size:12px;font-weight:500;color:#938072}.photo-box svg{width:28px;height:28px}.photo-actions{display:flex;gap:10px;margin:10px 0 23px}.photo-actions button{flex:1;font-size:12px}.form-field{display:block;margin-top:17px}.form-field>input,.form-field>select,.form-field>textarea{display:block;width:100%;margin-top:8px;border:1px solid #e2dcd8;border-radius:7px;background:white;padding:12px;color:#49403c;outline:none;min-height:45px}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#a95b62;box-shadow:0 0 0 3px #a12c3608}.form-field input::placeholder,.form-field textarea::placeholder{color:#b5aba5;font-weight:400}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.price-input{display:flex;align-items:center;border:1px solid #e2dcd8;border-radius:7px;margin-top:8px;padding:0 13px;color:#b0a399}.price-input input{width:100%;border:0;outline:none;padding:12px;background:transparent;font-size:16px}.price-input:focus-within{border-color:#a95b62}.optional{font-size:10px;color:#aaa;margin-left:5px;font-weight:400}textarea{resize:vertical}.dialog-footer{display:flex;gap:12px;justify-content:flex-end;padding:16px 25px;border-top:1px solid var(--border);background:white}.dialog-footer .primary{min-width:140px}.form-error{color:var(--red);padding:12px;background:#fcf0f0;border-radius:6px;font-size:12px}.detail-image{width:100%;max-height:320px;object-fit:contain;background:#f4f0eb;display:block}.detail-body{padding:25px}.detail-body h2{font-size:22px;margin:0 0 10px;overflow-wrap:anywhere}.detail-body .price{margin:20px 0}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--border);padding-top:20px;font-size:13px;overflow-wrap:anywhere}.detail-meta span{display:block;color:#aaa;font-size:11px;margin-bottom:8px}.detail-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.detail-actions{display:flex;justify-content:space-between;gap:10px;padding:18px 25px;border-top:1px solid var(--border)}.detail-top{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;font-size:14px;font-weight:600}.delete-button{color:#a25a5a;background:none}.confirm-dialog{width:380px}.confirm-content{padding:28px}.confirm-content h2{font-size:19px}.confirm-content p{color:#978b83;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.confirm-content>div{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.delete-icon{color:var(--red)}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#35302e;color:white;padding:13px 24px;border-radius:10px;box-shadow:0 5px 30px #0002;z-index:1000;max-width:90%;font-size:13px}[hidden]{display:none!important}
@media(min-width:1500px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:190px;padding:30px 14px 20px}.brand{font-size:23px;padding:0 7px}.main-wrap{margin-left:190px}main{padding:28px 26px}.topbar{padding:0 26px}.intro-banner{padding-left:23px}.intro-banner h2{font-size:20px}.room-art{min-width:220px;width:220px;right:-30px}.stat{padding:17px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:59px;padding:0 20px}.breadcrumb,.top-brand{display:none}.mobile-brand{display:block;font-size:20px;font-weight:750;letter-spacing:2px;color:var(--red)}.mobile-brand small{font-size:10px;font-weight:400;color:#9c918b;letter-spacing:1px;border-left:1px solid #ded4cf;margin-left:9px;padding-left:12px}main{padding:24px 16px calc(105px + env(safe-area-inset-bottom))}.page-heading{margin:0 4px 22px}.page-heading h1{font-size:27px;margin:7px 0 9px}.eyebrow{font-size:8px;letter-spacing:2px}.page-heading p{font-size:11px}.desktop-add{display:none!important}.intro-banner{height:164px;padding:21px 19px;border-radius:11px}.banner-label{font-size:9px;letter-spacing:1px}.intro-banner h2{font-size:18px;max-width:195px;line-height:1.55;margin:10px 0 7px}.intro-banner p{font-size:10px;max-width:180px;line-height:1.7}.banner-chip{display:none}.intro-banner>div:first-child{position:relative;z-index:1}.room-art{position:absolute;right:-49px;top:0;transform:scale(.77);transform-origin:right bottom;width:250px;height:202px;opacity:.68}.stats{gap:8px;margin:15px 0 22px}.stat{padding:15px 11px;gap:9px;align-items:flex-start}.stat-icon{width:28px;height:28px;border-radius:7px}.stat-icon svg{width:15px;height:15px}.stat>div>span{font-size:10px;white-space:nowrap}.stat strong{font-size:23px;margin-top:8px}.stat small{font-size:9px;margin-left:5px}.library{padding:16px 12px;border-radius:11px}.library-heading{margin-bottom:17px}.library-heading h2{font-size:15px}.text-button{font-size:10px;padding:5px 0}.tools{gap:9px;flex-wrap:wrap}.search{max-width:none;flex-basis:100%;height:44px}.search input{font-size:13px}.search kbd{display:none}.sort-view{width:100%;justify-content:space-between}.sort-view select{font-size:11px;min-height:36px;max-width:160px;padding:0 9px}.view-buttons{padding:2px}.view-buttons .icon-button{width:35px;height:32px}.category-tabs{padding:15px 0;gap:3px}.category-tabs button{padding:9px 12px;font-size:11px;min-height:38px}.product-grid{gap:10px}.product-photo{height:150px}.product-info{padding:11px 10px}.product-info h3{font-size:13px}.model{font-size:10px}.product-info-bottom{margin-top:13px;flex-wrap:wrap}.price{font-size:18px}.price small{font-size:9px}.card-edit{font-size:10px;min-height:32px;padding:5px 0}.category-badge{top:8px;left:8px;font-size:9px}.empty-state{padding:29px 0 32px;min-height:280px}.empty-state h3{font-size:16px}.empty-state p{font-size:11px}.library-footer{font-size:9px;gap:12px;line-height:1.6}.library-footer>span:last-child{max-width:130px}.mobile-bottom{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;gap:25px;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid #eee8e4;padding:11px 22px calc(11px + env(safe-area-inset-bottom));z-index:20}.mobile-home{display:flex;flex-direction:column;gap:3px;min-width:60px;font-size:10px;color:var(--red);background:none}.mobile-home svg{width:22px;height:22px}.mobile-bottom .primary{flex:1;min-height:46px;font-size:14px}.page-footer{font-size:8px}.product-grid.list .product-photo{width:100px;height:105px}.list .product-info-bottom{flex-wrap:nowrap}.list .card-edit{padding:5px}dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#product-form{height:100%;max-height:100dvh}.dialog-header{padding:18px 20px 16px;flex-shrink:0}.dialog-header h2{font-size:21px}.form-body{padding:0 20px 20px;flex:1}.form-hint{font-size:11px}.form-field{font-size:13px}.form-field>input,.form-field>select,.form-field>textarea{font-size:16px;min-height:48px}.photo-actions button{min-height:46px}.photo-box{height:190px}.dialog-footer{padding:13px 20px calc(13px + env(safe-area-inset-bottom));flex-shrink:0}.dialog-footer .primary{flex:1}.detail-actions{position:sticky;bottom:0;background:white;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.confirm-dialog{height:auto;max-width:calc(100% - 36px);border-radius:14px;margin:auto}.detail-image{max-height:42dvh}#toast{bottom:calc(91px + env(safe-area-inset-bottom));width:max-content;max-width:90%}}
@media(max-width:360px){.stat{padding:13px 8px;gap:6px}.stat-icon{display:none}.product-photo{height:125px}.intro-banner h2{font-size:16px}.room-art{right:-70px}.product-info h3{font-size:12px}.price{font-size:16px}}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at top right,#eedfd1,transparent 60%),#f7f6f3}.auth-card{width:420px;max-width:100%;padding:36px;border:1px solid #e8dfd8;border-radius:18px;background:white;box-shadow:0 20px 80px #6945330a}.auth-brand{font-size:26px;font-weight:700;color:var(--red);margin-bottom:36px;letter-spacing:2px}.auth-brand small{font-size:12px;color:#968a82;font-weight:400;letter-spacing:1px}.auth-card h1{font-size:25px;margin:12px 0}.auth-card p{font-size:12px;color:#95867e;line-height:1.8}.auth-card .form-field>input{font-size:16px}.auth-card .primary{width:100%;margin-top:25px}.auth-card .auth-footnote{text-align:center;font-size:10px;margin:25px 0 0}.account-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:12px;font-size:12px;color:#8d7c72}.account-bar>div{display:flex;gap:12px}.account-bar .secondary{font-size:12px;min-height:36px;padding:7px 12px}.permission-notice{padding:12px 15px;background:#f4ede5;color:#90765e;font-size:12px;line-height:1.8;border-radius:8px;margin-bottom:24px}.record-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border);margin-bottom:17px}.record-tabs button{background:none;padding:0 2px 12px;font-size:12px;color:#9b8f88;border-bottom:2px solid transparent}.record-tabs button.active{color:var(--red);border-color:var(--red);font-weight:600}.creator{font-size:10px;color:#a5968a;margin:8px 0 0}.readonly-hint{font-size:12px;color:#9d8e82;padding:8px 0}.audit-section{border-top:1px solid var(--border);margin-top:25px;padding-top:10px}.audit-section h3{font-size:15px;margin-bottom:7px}.audit-hint{font-size:11px;color:#ab9b8e}.audit-entry{border-left:2px solid #eadbd3;padding:0 0 18px 15px;margin-top:20px;font-size:12px}.audit-heading{display:flex;gap:9px;align-items:center}.audit-heading strong{font-weight:600}.audit-heading span{font-size:10px;background:#f6eeea;color:#a87564;padding:3px 7px;border-radius:4px}.audit-entry time{display:block;font-size:10px;color:#b2a59b;margin:8px 0 12px}.audit-entry p{color:#9f9085;font-size:11px;line-height:1.8}.audit-change{margin-top:10px}.audit-change b{font-size:11px;font-weight:500;color:#948276}.audit-change>div{margin-top:6px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.audit-change del{color:#ad8c83;text-decoration:none;background:#fbefeb;padding:2px 4px}.audit-change ins{color:#6c8b72;text-decoration:none;background:#eef6ee;padding:2px 4px}.audit-arrow{padding:0 9px;color:#baafa6}.audit-images{display:flex;gap:12px;align-items:center}.audit-images figure{margin:0;flex:1;min-width:0}.audit-images img{width:100%;height:95px;object-fit:contain;background:#f9f6f2;border-radius:6px}.audit-images figcaption{font-size:10px;color:#9d8c80;text-align:center}.staff-dialog{width:880px}.staff-body{padding:0 26px 28px}.permission-explainer{font-size:12px;line-height:1.9;color:#9b8674;margin:20px 0}.staff-create{padding:18px;background:#faf7f4;border-radius:10px;border:1px solid #eee5dc}.staff-create h3,.staff-list-heading h3{margin:0;font-size:14px;font-weight:600}.staff-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.staff-create-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px}.staff-create-footer span{font-size:10px;color:#a5978d}.staff-create-footer .primary{font-size:12px}.staff-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:27px}.staff-list-heading button{font-size:11px;min-height:38px;padding:8px 12px;color:var(--red)}#staff-action-status{font-size:12px;color:#8f7564;line-height:1.7}.staff-member{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--border)}.staff-identity{min-width:100px;max-width:150px;overflow-wrap:anywhere;flex:1}.staff-identity strong{font-size:13px;display:block}.staff-identity span{display:block;font-size:10px;color:#a18d7f;margin-top:5px}.staff-identity small{font-size:9px;color:#b39988}.staff-switches{display:flex;gap:18px}.permission-switch{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:#958276;cursor:pointer}.permission-switch input{appearance:none;margin:0;width:35px;height:21px;border-radius:20px;background:#d6ceca;position:relative;cursor:pointer}.permission-switch input:before{content:'';position:absolute;width:15px;height:15px;left:3px;top:3px;background:white;border-radius:50%;transition:transform .15s}.permission-switch input:checked{background:var(--red)}.permission-switch input:checked:before{transform:translateX(14px)}.permission-switch input:focus-visible{outline:3px solid #d1ab8c;outline-offset:3px}.permission-switch input:disabled{opacity:.5}.staff-empty{padding:25px;text-align:center;font-size:12px;color:#a99a8e}.password-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
@media(max-width:760px){.auth-screen{padding:18px}.auth-card{padding:28px 23px}.account-bar{margin-bottom:19px;font-size:11px}.account-bar>div{gap:7px}.account-bar .secondary{font-size:11px;padding:7px 10px}.permission-notice{font-size:11px;margin-bottom:20px}.staff-body{padding:0 18px 25px}.staff-fields{grid-template-columns:1fr;gap:0}.staff-fields input{font-size:16px}.staff-create-footer{align-items:flex-start}.staff-create-footer span{max-width:170px;line-height:1.8}.staff-create-footer button{white-space:nowrap}.staff-member{flex-wrap:wrap;gap:15px}.staff-identity{max-width:none;flex:1;min-width:60%}.staff-switches{order:3;width:100%;justify-content:space-between;gap:8px}.permission-switch{font-size:11px;min-height:53px}.staff-member>.text-button{margin-left:auto}.staff-list-heading{align-items:center}.staff-list-heading h3{white-space:nowrap;font-size:13px}.staff-list-heading button{font-size:10px;padding:6px 9px}.audit-images img{height:80px}}
.recorded-at{font-size:10px;color:#a5968a;line-height:1.7;margin:5px 0 0}.recorded-at time{white-space:nowrap}@media(max-width:760px){.recorded-at{font-size:9px}.product-grid:not(.list) .recorded-at time{display:block}}
.photos-hint{font-size:11px;line-height:1.7;color:#a08d7f;margin:9px 0 12px}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-tile{position:relative;border:1px solid #e5dad2;border-radius:9px;overflow:hidden;background:#faf7f4}.photo-tile>img{display:block;width:100%;height:145px;object-fit:contain}.photo-label{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:4px;background:#ffffffec;color:#987e6c;font-size:10px}.photo-tile-actions{display:flex;flex-wrap:wrap;justify-content:space-around;gap:3px;padding:4px;background:white}.photo-tile-actions button{background:none;color:var(--red);font-size:11px;min-height:36px;padding:5px 6px}.photo-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:155px;border:1px dashed #d8c7bb;border-radius:9px;background:#fbf8f5;color:#a08b7c}.photo-empty span{font-size:11px}.photo-empty strong{font-size:13px;font-weight:500}#photo-progress{font-size:11px;color:var(--red)}.gallery-thumbs{display:flex;gap:8px;padding:12px 20px;overflow-x:auto}.gallery-thumbs button{padding:2px;border:2px solid transparent;border-radius:6px;background:#f7f3ee;flex:0 0 65px;height:65px}.gallery-thumbs button.active{border-color:var(--red)}.gallery-thumbs img{width:100%;height:100%;object-fit:contain}.image-count{position:absolute;bottom:8px;right:8px;background:#37302bc9;color:#fff;font-size:10px;border-radius:4px;padding:4px 7px}.audit-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.audit-photo-grid img{height:70px!important}@media(max-width:760px){.photo-tile>img{height:130px}.photo-tile-actions button{min-height:40px;font-size:10px}.photo-empty span{font-size:10px}.gallery-thumbs{padding:10px 16px}.gallery-thumbs button{height:58px;flex-basis:58px}}
/* Keep the detail close action reachable while its dialog scrolls. */
#detail .detail-top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 3px 12px #30252208}
#detail #close-detail{min-width:44px;min-height:44px;background:#f7f3f0;color:#78695f;flex-shrink:0}
#detail #close-detail:hover{background:#f1e6e2;color:var(--red)}
/* Product workspace refinement */
:root{--bg:#f7f7f8;--ink:#302c2b;--muted:#827771}.page-heading p{color:#8e817b}.library{box-shadow:0 4px 20px #4b302704}.product-card{border-color:#eae3dd;box-shadow:0 2px 8px #51332204}.product-card:hover{box-shadow:0 9px 25px #51332212;border-color:#d7c4b6}.product-info{padding:17px}.product-info h3{font-size:15px;font-weight:600;line-height:1.5}.product-info .model{color:#9d8b7d;line-height:1.6}.product-spec{margin-top:6px!important;color:#887869!important}.product-info-bottom{border-top:1px solid #f3eeea;padding-top:12px;margin-top:13px}.creator{color:#9b8a7d}.recorded-at{color:#b0a298}.card-edit{border:1px solid #e9ded7;padding:6px 10px;border-radius:6px;background:#fffdfa}.needs-processing{border-color:#ddba82}.processing-badge{position:absolute;top:10px;right:10px;background:#fff2d8;color:#95620d;border:1px solid #e8cd9c;border-radius:5px;font-size:10px;font-weight:600;padding:5px 8px}.record-tabs{align-items:center;flex-wrap:wrap;gap:18px}.processing-filter{margin-left:auto;display:flex;align-items:center;gap:7px;cursor:pointer;color:#9c7c54;font-size:11px;padding:0 0 12px}.processing-filter input{accent-color:#ad792b;width:16px;height:16px;margin:0}.processing-filter span{font-size:10px;padding:2px 6px;border-radius:4px;background:#faf1df}.processing-field{margin:23px 0 0;border:1px solid #ede3d8;border-radius:10px;padding:15px;background:#fcfaf7}.processing-field legend{font-size:12px;font-weight:600;padding:0 5px;color:#756251}.processing-field>p{font-size:10px;color:#a39381;margin:0 0 13px;line-height:1.7}.processing-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.processing-options label{display:flex;align-items:center;gap:9px;border:1px solid #e8e0d8;border-radius:8px;background:white;padding:13px 11px;cursor:pointer}.processing-options label:has(input:checked){border-color:#b9906e;background:#fff9f0;box-shadow:0 0 0 1px #b9906e16}.processing-options input{accent-color:var(--red);width:16px;height:16px;margin:0;flex-shrink:0}.processing-options strong{font-size:12px;font-weight:550;display:block}.processing-options small{font-size:10px;color:#a28e7b;display:block;margin-top:5px}.status-attention{color:#a5741d;font-size:12px}.status-normal{color:#758a70;font-size:12px}.form-section-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;margin:26px 0 16px;color:#65594e}.form-section-title>span{font-size:10px;letter-spacing:1px;color:#a88b74;border-radius:5px;background:#f6eee6;padding:4px 6px}.form-section-title small{font-size:10px;font-weight:400;color:#b1a192;margin-left:auto}.form-section-title:first-of-type{margin-top:10px}#editor{width:600px}.photo-tile{box-shadow:0 3px 10px #60432c06}.photo-tile-actions{border-top:1px solid #eee5dc}.form-field>input,.form-field>select,.form-field>textarea,.price-input{transition:border-color .15s,box-shadow .15s}.dialog-footer{box-shadow:0 -4px 18px #42312404}.dialog-header h2{letter-spacing:.5px}.photo-actions button{border-color:#e2d5c9;background:#fffdfa}.photos-hint{color:#ac9886}#photo-grid{margin-bottom:4px}
@media(max-width:760px){#editor{width:100%}.product-info{padding:12px 10px}.product-info h3{font-size:13px}.product-info-bottom{padding-top:9px;gap:6px}.card-edit{padding:4px 8px;min-height:32px}.processing-options label{padding:12px 8px;gap:7px}.processing-options strong{font-size:11px}.processing-options small{font-size:9px}.processing-filter{font-size:10px;gap:5px}.record-tabs{gap:12px}.record-tabs>button{font-size:11px}.processing-badge{font-size:9px;padding:4px 6px;top:8px;right:8px}.form-section-title{margin-top:24px}.form-section-title small{font-size:9px}.category-badge{max-width:calc(100% - 78px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

#unsaved-dialog{width:460px;max-width:calc(100vw - 32px);height:fit-content;min-height:0;max-height:calc(100dvh - 32px);margin:auto;border-radius:18px}#unsaved-dialog .unsaved-actions{display:flex;flex-wrap:wrap;gap:10px}#unsaved-dialog .unsaved-actions button{flex:1;white-space:nowrap;min-height:44px}

.gallery-open{display:block;position:relative;width:100%;padding:0;background:#f8f5f2;cursor:zoom-in}.gallery-open .detail-image{display:block}.gallery-open>span{position:absolute;bottom:12px;right:16px;background:#292323b8;color:#fff;border-radius:20px;padding:7px 12px;font-size:11px;pointer-events:none}.photo-preview{display:block;width:100%;padding:0;background:transparent;cursor:zoom-in}.photo-preview img{display:block;width:100%;height:145px;object-fit:contain}.photo-label{pointer-events:none}
#image-viewer{width:calc(100vw - 40px);max-width:1400px;height:calc(100dvh - 40px);max-height:1100px;margin:auto;padding:0;border:1px solid #ffffff22;border-radius:16px;background:#191919;color:white;overflow:hidden}#image-viewer[open]{display:flex;flex-direction:column}#image-viewer::backdrop{background:#000b}.viewer-header{display:flex;align-items:center;gap:14px;padding:12px 18px;flex-shrink:0;border-bottom:1px solid #ffffff1c}.viewer-header strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}#image-viewer button{min-width:44px;min-height:44px;border-radius:9px;background:#ffffff18;color:white;padding:8px 12px}#image-viewer button:hover{background:#ffffff30}#image-viewer button:disabled{opacity:.3;cursor:default}#viewer-close{font-size:26px}#viewer-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;cursor:grab}.viewer-canvas{width:max-content;min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:12px;position:relative}#viewer-image{max-width:none;max-height:none;height:auto;flex-shrink:0;user-select:none}#viewer-image[hidden]{display:none}#viewer-message{color:#ddd;font-size:13px}.viewer-footer{flex-shrink:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #ffffff1c}.viewer-controls{display:flex;align-items:center;justify-content:center;gap:8px}#viewer-zoom-label{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}.viewer-footer p{font-size:11px;color:#aaa;text-align:center;margin:8px 0 0}@media(max-width:760px){#image-viewer{width:100%;height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:0}.viewer-header{padding:10px 12px}.viewer-controls{gap:5px}#image-viewer button{padding:8px}.photo-preview img{height:130px}}

.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.backup-result{font:inherit;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f2ee;border-radius:8px;padding:14px}#settings-dialog .dialog-header{position:sticky;top:0;background:white;z-index:2}#settings-dialog .dialog-footer{position:sticky;bottom:0;z-index:2}#baidu-authorization-link{color:var(--red);text-decoration:underline}#settings-message{color:#537853;font-size:12px}@media(max-width:760px){.settings-fields{grid-template-columns:1fr}.account-bar>div{flex-wrap:wrap;justify-content:flex-end}#settings-dialog input{font-size:16px}}
/* Administrator-only financial summary, inserted only after role verification. */
.purchase-panel{background:#fff;border:1px solid #eadfd9;border-radius:18px;padding:24px;margin:0 0 24px}
.purchase-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-heading h2{font-size:19px;margin:6px 0 18px}
.purchase-totals{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0 20px}.purchase-totals>div{padding:18px;background:#faf5f2;border-radius:12px}.purchase-totals span{display:block;color:#77665d;font-size:13px}.purchase-totals strong{display:block;font-size:25px;color:#a62a36;margin-top:8px;overflow-wrap:anywhere}
#purchase-form{display:flex;align-items:end;gap:12px;max-width:650px}#purchase-form .form-field{flex:1;margin:0}#purchase-form button{margin-bottom:0}
.purchase-panel details summary{cursor:pointer;padding:12px 0;font-weight:600}.purchase-table-wrap{overflow-x:auto}.purchase-panel table{width:100%;border-collapse:collapse;white-space:nowrap}.purchase-panel td,.purchase-panel th{padding:12px;text-align:left;border-bottom:1px solid #eee;font-size:13px}.purchase-panel td small{display:block;color:#888;margin-top:4px}
@media(max-width:600px){.purchase-panel{padding:16px}.purchase-totals{grid-template-columns:1fr}.purchase-totals strong{font-size:23px}#purchase-form{align-items:stretch;flex-direction:column}.purchase-heading{align-items:flex-start}}
.pagination{position:sticky;top:0;z-index:15;background:#fff;border:1px solid #eee5e1;border-radius:10px;box-shadow:0 4px 12px #3025220d;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px;scroll-margin-top:8px}
.page-actions,#page-jump{display:flex;gap:8px;align-items:center}.pagination .secondary{padding:8px 10px;min-height:38px}.pagination input{width:64px;min-height:38px;border:1px solid #ddd;border-radius:7px;text-align:center}.pagination span,.pagination label{font-size:12px;white-space:nowrap}#page-jump{margin:0}#page-jump label{display:flex;align-items:center;gap:6px}
.brand-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.brand-library-item{padding:16px;border:1px solid #eee5e1;border-radius:10px;background:#faf6f3;overflow-wrap:anywhere}#brand-library .dialog-header{position:sticky;top:0;background:white;z-index:2}#brand-library-form input{min-height:44px}
@media(max-width:760px){.pagination{gap:8px;padding:10px}.page-actions{width:100%;justify-content:space-between;gap:4px}.pagination .secondary{padding:8px;min-height:42px;font-size:12px}#page-jump{justify-content:flex-end;width:100%}.pagination input{font-size:16px}.brand-library-list{gap:8px}}
.module-tabs{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.module-tabs button{padding:12px 22px;border-radius:10px;background:#fff;border:1px solid #e9ded9;color:#665851}.module-tabs button.selected{background:var(--red);color:#fff;border-color:var(--red)}
#brand-library{width:100%;max-width:none;background:#fff;border:1px solid var(--border);border-radius:16px}#brand-library .staff-body{padding:24px}#brand-library-form{max-width:500px}#purchase-detail{background:#fff;border:1px solid var(--border);border-radius:16px;margin-top:20px;scroll-margin-top:12px}.purchase-detail-body{padding:24px}.purchase-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}.purchase-image-main{width:100%;padding:0;border-radius:12px;overflow:hidden;background:#f7f3f0}.purchase-image-main img{width:100%;height:380px;object-fit:contain}.purchase-image-thumbs{display:flex;gap:8px;overflow:auto;margin-top:12px}.purchase-image-thumbs button{padding:0;flex-shrink:0}.purchase-image-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:6px}.purchase-price-focus{background:#faf0eb;padding:20px;border-radius:12px;margin:20px 0}.purchase-price-focus span,.purchase-price-focus small{display:block}.purchase-price-focus strong{display:block;color:var(--red);font-size:32px;margin:10px 0}.purchase-product-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.purchase-product-card{text-align:left;padding:12px;background:white;border:1px solid var(--border);border-radius:12px;justify-content:flex-start}.purchase-product-card img{width:85px;height:110px;object-fit:cover;border-radius:8px}.purchase-product-card span{min-width:0}.purchase-product-card strong,.purchase-product-card small,.purchase-product-card b{display:block;overflow-wrap:anywhere;margin:6px 0}.purchase-product-card b{color:var(--red)}#view-product-purchase{margin-top:10px}
@media(max-width:900px){.purchase-product-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.module-tabs button{flex:1;padding:12px 8px}.purchase-detail-layout{grid-template-columns:1fr}.purchase-detail-body{padding:16px}.purchase-image-main img{height:280px}.purchase-product-list{grid-template-columns:1fr}#purchase-detail .dialog-header{padding:16px}}
.sidebar button.nav-item{width:100%;text-align:left;justify-content:flex-start;background:transparent}.sidebar button.nav-item.selected{color:var(--red);background:#f8eceb}
