:root{--green:#173e36;--green-2:#24584b;--green-pale:#edf3ee;--ink:#233c34;--muted:#77827a;--paper:#f7f8f4;--white:#fff;--line:#e4e9e1;--amber:#a26622;--red:#aa433f;--radius:14px;--shadow:0 8px 30px #18372b0b;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #85ad8f}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:27px;letter-spacing:-.5px;line-height:1.4;margin-bottom:7px}h2{font-size:17px;line-height:1.45;margin-bottom:6px}h3{font-size:15px;line-height:1.5;margin-bottom:6px}p{margin-bottom:14px}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:Consolas,"SFMono-Regular",monospace;overflow-wrap:anywhere}.nowrap{white-space:nowrap}.empty-dash{color:#b2b9b2}.hidden{display:none!important}.initial-loading{min-height:100vh;display:grid;place-content:center;text-align:center;gap:18px}.brand-word{font-size:29px;letter-spacing:4px;font-weight:750;line-height:1}.noscript{padding:30px;text-align:center}.app-shell{min-height:100vh;display:grid;grid-template-columns:226px 1fr}.sidebar{position:fixed;top:0;bottom:0;left:0;width:226px;background:var(--green);color:#eaf1eb;padding:34px 20px 20px;display:flex;flex-direction:column;z-index:10}.brand{padding:0 17px 33px;border-bottom:1px solid #ffffff18}.brand-subtitle{font-size:11px;letter-spacing:2px;margin:12px 0 0;color:#afc4b7}.nav-label{font-size:10px;letter-spacing:2px;color:#a5b9ab;padding:27px 17px 12px}.nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:0;background:transparent;color:#c9d8cd;border-radius:9px;padding:12px 17px;transition:background .15s,color .15s}.nav-item:hover{background:#ffffff0d;color:white}.nav-item.active{background:#eaf1df;color:#173e36;font-weight:650}.nav-icon{width:20px;height:20px;flex:0 0 20px}.nav-icon svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{margin-top:auto;padding-top:24px}.sidebar-note{margin:14px 14px 20px;color:#9eb4a7;font-size:11px;line-height:1.8}.user-panel{border-top:1px solid #ffffff18;padding:20px 12px 0;display:flex;gap:11px;align-items:center}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#ffffff14;border:1px solid #ffffff20;border-radius:50%;font-size:12px;font-weight:600}.user-copy{min-width:0;flex:1}.user-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:10px;color:#9fb5a7}.logout-button{background:none;border:0;color:#bbcec0;padding:6px}.workspace{grid-column:2;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--line);background:#ffffffa8}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:500;margin-left:10px}.topbar-status{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;background:#5c8e67}.main-content{padding:35px 40px 48px;max-width:1700px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.eyebrow{color:#87917f;letter-spacing:2px;font-size:10px;font-weight:600;margin-bottom:9px}.page-subtitle{color:var(--muted);font-size:13px;margin-bottom:0}.heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.button{border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:9px 15px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}.button:hover{border-color:#aebdaf;background:#f5f7f2}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:var(--green-2)}.button.danger{background:var(--red);border-color:var(--red);color:white}.button.subtle{border-color:transparent;background:transparent;color:var(--muted)}.button.subtle:hover{background:var(--green-pale);color:var(--green)}.button.text{padding:5px 8px;border-color:transparent;background:none;color:var(--green-2)}.button.text:hover{background:var(--green-pale)}.button.compact{font-size:11px;padding:6px 10px}.icon-button{padding:9px;line-height:1}.section-card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-heading{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.card-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}.card-body{padding:0 24px 24px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat-card{padding:22px 23px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-icon{width:31px;height:31px;padding:7px;background:var(--green-pale);color:#5f8066;border-radius:9px}.stat-value{font-size:37px;line-height:1.3;letter-spacing:-1px;margin:13px 0 4px;font-weight:600;color:var(--green)}.stat-caption{font-size:11px;color:#8b9389}.stat-card.warn .stat-value{color:var(--amber)}.stat-card.warn .stat-icon{background:#fcf4e7;color:var(--amber)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;margin-bottom:24px}.product-overview{display:grid;gap:0}.product-overview-row{display:flex;align-items:center;gap:14px;padding:17px 24px;border-top:1px solid #eef1eb}.product-logo{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:10px;background:#edf3ed;color:#4b785c;font-size:18px;font-weight:650}.product-copy{flex:1;min-width:0}.product-copy strong{font-size:13px;font-weight:600;display:block}.product-copy span{font-size:11px;color:var(--muted)}.product-count{font-size:13px;font-weight:600;text-align:right}.product-count small{display:block;font-size:10px;color:var(--muted);font-weight:400}.welcome-card{background:#f0f4e9;border:1px solid #e0e8d7;border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;align-items:flex-start}.welcome-card h2{font-size:19px;color:#294834;margin:0 0 9px}.welcome-card p{font-size:12px;color:#6d7c66}.welcome-mark{font-size:10px;letter-spacing:2px;color:#7e9275;margin-bottom:18px}.welcome-card .button{margin-top:auto}.steps{padding-left:19px;font-size:12px;color:#4e6148;line-height:2.1;margin-top:0;margin-bottom:20px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 23px;border-bottom:1px solid var(--line)}.toolbar-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search-box{position:relative;min-width:240px;max-width:380px}.search-box input{padding-left:35px;background:#f9faf7}.search-icon{position:absolute;left:12px;top:11px;color:#8a968a;width:15px;height:15px}.search-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7}.filter-select{width:auto;min-width:120px;font-size:12px;padding:8px 30px 8px 11px}.row-count{font-size:11px;color:var(--muted);white-space:nowrap}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{background:#fafbf8;font-size:11px;font-weight:500;color:#818c7d;padding:12px 20px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #eff2eb;font-size:12px;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}.cell-primary{font-weight:600;color:#304736}.cell-secondary{display:block;font-size:10px;color:#8a9386;margin-top:3px;max-width:260px;overflow-wrap:anywhere}.table-actions{display:flex;align-items:center;gap:2px;white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:5px;background:#edf4ec;color:#54734a;font-size:10px;line-height:1.5;padding:4px 8px;white-space:nowrap}.badge:before{content:"";width:4px;height:4px;display:block;border-radius:50%;background:currentColor}.badge.warning{background:#fcf3e5;color:#ad7b35}.badge.danger{background:#faedeb;color:#ad5c52}.badge.neutral{background:#f1f3ee;color:#8b9385}.tag{display:inline-flex;border-radius:5px;background:#f2f5ef;padding:3px 7px;font-size:10px;color:#63725a;margin:2px 4px 2px 0}.empty-state{text-align:center;padding:56px 24px 60px;max-width:560px;margin:auto}.empty-icon{width:50px;height:50px;padding:13px;background:var(--green-pale);color:#7e9b7b;margin:0 auto 15px;border-radius:14px}.empty-state h3{margin-bottom:7px;font-size:15px;font-weight:550}.empty-state p{font-size:12px;color:var(--muted);margin-bottom:20px}.pagination{padding:14px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.pagination-controls{display:flex;align-items:center;gap:10px}.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.product-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.product-card h2{font-size:18px}.product-card .mono{font-size:10px;color:#899080}.product-card-numbers{display:flex;gap:36px;margin:22px 0;border-top:1px solid var(--line);padding-top:17px}.product-card-numbers strong{font-size:23px;display:block;font-weight:550}.product-card-numbers span{font-size:10px;color:var(--muted)}.product-card-footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.help-note{margin-top:20px;border:1px solid #e5eadf;border-radius:10px;padding:14px 17px;background:#f2f5ed;color:#738069;font-size:12px}.help-note p:last-child{margin:0}.note-warning{background:#fff8eb;color:#896b39;border-color:#eee0c6}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-form{padding:0 24px 24px}.public-key{width:100%;min-height:160px;font-size:11px;background:#f8faf5;resize:vertical}.settings-help{font-size:12px;color:var(--muted);margin-bottom:20px}.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.audit-action{font-weight:550}.audit-detail{max-width:500px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:11px;color:var(--muted)}.notice-list{display:grid;gap:12px;padding:0 24px 24px}.notice-row{padding:12px 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:flex-start}.notice-line{width:7px;height:7px;background:#9eb58d;border-radius:50%;margin-top:7px;flex-shrink:0}.notice-row p{font-size:12px;margin:0}.notice-row small{font-size:10px;color:var(--muted)}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(350px,1fr) minmax(450px,1.04fr)}.auth-brand-panel{background:var(--green);color:white;display:flex;flex-direction:column;padding:56px max(48px,9vw)}.auth-brand-panel .brand-word{margin-bottom:auto}.auth-brand-content{margin:70px 0}.auth-brand-content .eyebrow{color:#afc6a6;letter-spacing:3px;margin-bottom:24px}.auth-brand-content h1{font-size:42px;font-weight:500;line-height:1.55;letter-spacing:1px;margin-bottom:23px}.auth-brand-content>p{font-size:13px;color:#b8cdbd;line-height:2;max-width:350px}.auth-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:35px}.auth-pill{font-size:10px;letter-spacing:1px;border:1px solid #ffffff28;padding:6px 11px;border-radius:5px;color:#c1d2bd}.auth-brand-footer{font-size:10px;letter-spacing:2px;color:#9eb5a5;margin-top:auto}.auth-form-panel{display:flex;align-items:center;justify-content:center;padding:55px}.auth-card{width:100%;max-width:360px}.auth-card h2{font-size:27px;margin-bottom:10px;font-weight:600}.auth-card>p{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:30px}.auth-card .button.primary{width:100%;margin-top:8px;padding:12px}.auth-footer{font-size:10px;color:#929b8b;line-height:1.9;margin-top:26px}.field{display:block;margin-bottom:19px}.field-label{font-size:12px;font-weight:550;display:block;margin-bottom:7px;color:#43543d}.field-hint{font-size:10px;font-weight:400;color:#8b9484;display:block;margin-top:5px;line-height:1.7}.required-mark{color:#b18855;margin-left:3px}input,select,textarea{display:block;width:100%;border:1px solid #dfe5d8;border-radius:7px;padding:10px 12px;background:white;color:var(--ink);font-size:12px;min-width:0;line-height:1.5}input:hover,select:hover,textarea:hover{border-color:#aeba9e}input:focus,select:focus,textarea:focus{outline:2px solid #c1d5b3;outline-offset:1px;border-color:#8ca97c}textarea{resize:vertical;min-height:84px}input::placeholder,textarea::placeholder{color:#a2aa9c}input:read-only,textarea:read-only{background:#f6f8f2}input[type=checkbox]{width:16px;height:16px;padding:0;accent-color:var(--green)}.checkbox-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin:15px 0}.checkbox-label input{margin-top:3px;flex-shrink:0}.form-error{border:1px solid #edcfc7;color:#a45448;background:#fff4f0;border-radius:7px;padding:10px 12px;font-size:12px;margin-bottom:17px}.form-success{border:1px solid #cfdec5;color:#547049;background:#f3f8ee;border-radius:7px;padding:10px 12px;font-size:12px;margin-bottom:17px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.field-grid.three{grid-template-columns:1fr 1fr 1fr}.field-wide{grid-column:1/-1}.form-section-title{font-size:12px;font-weight:650;color:#5b6b50;margin:3px 0 19px;padding-top:16px;border-top:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:17px;width:min(640px,calc(100vw - 32px));padding:0;color:var(--ink);box-shadow:0 24px 90px #162f3340;max-height:calc(100dvh - 60px)}dialog.wide{width:min(760px,calc(100vw - 32px))}dialog.narrow{width:min(470px,calc(100vw - 32px))}dialog::backdrop{background:#1c302775;backdrop-filter:blur(3px)}.dialog-heading{padding:24px 27px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:19px;margin:0}.dialog-heading p{font-size:11px;color:var(--muted);margin:5px 0 0}.close-button{border:0;background:transparent;font-size:23px;line-height:1;color:#8b9682;padding:2px 5px;border-radius:5px}.close-button:hover{background:#edf2e7}.dialog-body{padding:23px 27px}.dialog-footer{padding:18px 27px;background:#fafbf7;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}.dialog-body .field:last-child{margin-bottom:0}.dialog-body>p{font-size:12px;color:#78856e;line-height:1.9}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:4px 0 22px}.detail-label{font-size:10px;color:#8c9682;display:block;margin-bottom:4px}.detail-value{font-size:12px;color:#3e5338;overflow-wrap:anywhere}.detail-grid .full{grid-column:1/-1}.key-box{font-family:Consolas,monospace;line-height:1.9;letter-spacing:.5px;min-height:90px;background:#f5f8ee;font-size:14px;resize:none}.secret-label{font-size:10px;letter-spacing:1px;color:#a17c3b;font-weight:650;margin-bottom:9px}.confirm-message{font-size:13px!important;color:#56654a!important}.dialog-action-grid{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}.toast-root{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:1000;pointer-events:none;display:grid;gap:8px;max-width:calc(100vw - 32px)}.toast{background:#244934;color:white;padding:12px 20px;border:1px solid #ffffff18;border-radius:9px;font-size:12px;box-shadow:0 6px 24px #17392f30;animation:toast-in .2s ease-out}.toast.error{background:#945044}.toast.copy-fallback{pointer-events:auto;max-width:500px}.toast textarea{margin-top:8px}.auth-setup-note{font-size:12px;background:#eef4e8;padding:15px;border-radius:8px;margin-bottom:20px;color:#607553}.page-error{padding:35px;text-align:center}.page-error p{color:var(--muted);font-size:12px}.mobile-nav-label{display:none}@keyframes toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.section-gap{height:24px}.key-actions{margin-top:14px}.nav-icon{display:inline-flex;align-items:center;justify-content:center}.stat-icon{flex-basis:31px}.avatar{flex-shrink:0}.logout-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px}.logout-button .nav-icon{width:18px;height:18px;flex-basis:18px}.mobile-access-control{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 12px;border:1px solid #dfe5d8;border-radius:7px;font-size:12px;background:#f8faf5;cursor:pointer}.mobile-access-control input{flex:0 0 16px;margin:0}
@media(min-width:1500px){.main-content{padding:40px 52px 55px}.topbar{padding:0 52px}.stats-grid{gap:22px}.stat-card{padding:24px 27px}}
@media(max-width:1150px){.app-shell{grid-template-columns:195px 1fr}.sidebar{width:195px;padding-left:14px;padding-right:14px}.main-content{padding:28px 25px}.topbar{padding:0 25px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.auth-brand-panel{padding:50px}.auth-brand-content h1{font-size:34px}.auth-form-panel{padding:40px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;width:auto;min-height:auto;padding:20px 18px 12px}.brand{display:flex;gap:15px;align-items:center;padding:0 2px 18px;border:0}.brand-word{font-size:23px}.brand-subtitle{margin:0;font-size:10px;letter-spacing:1px}.nav-label{display:none}.nav{display:flex;overflow-x:auto;gap:5px;padding-bottom:4px}.nav-item{width:auto;padding:9px 11px;gap:6px;white-space:nowrap;font-size:11px}.nav-icon{width:16px;height:16px;flex-basis:16px}.sidebar-bottom{padding:0;margin:0}.sidebar-note{display:none}.user-panel{position:absolute;right:18px;top:15px;border:0;padding:0}.user-copy{display:none}.avatar{width:29px;height:29px;font-size:10px}.logout-button{display:none}.workspace{display:block}.topbar{height:49px;padding:0 20px}.topbar-status{font-size:10px}.main-content{padding:25px 18px 36px}.page-heading{align-items:flex-start;margin-bottom:21px;gap:10px}h1{font-size:24px}.page-subtitle{font-size:11px}.heading-actions{gap:6px;padding-top:4px}.heading-actions .button{padding:8px 10px;font-size:11px}.heading-actions .refresh-label{display:none}.eyebrow{font-size:9px;margin-bottom:7px}.stats-grid{gap:11px;margin-bottom:18px}.stat-card{padding:17px}.stat-value{font-size:30px;margin-top:10px}.stat-top{font-size:11px}.stat-caption{font-size:10px}.stat-icon{width:27px;height:27px;padding:6px}.dashboard-grid{gap:18px;margin-bottom:18px}.card-heading{padding:18px}.product-overview-row{padding:15px 18px}.table-toolbar{padding:15px;flex-wrap:wrap}.toolbar-group{width:100%}.search-box{min-width:0;flex:1;max-width:none}.filter-select{min-width:100px;width:110px}th,td{padding-left:15px;padding-right:15px}.products-grid{grid-template-columns:1fr}.product-card{padding:20px}.auth-page{display:flex;flex-direction:column;min-height:100vh}.auth-brand-panel{padding:26px 28px}.auth-brand-content{margin:28px 0 5px}.auth-brand-content .eyebrow{margin-bottom:12px}.auth-brand-content h1{font-size:27px;line-height:1.5;margin-bottom:15px}.auth-brand-content h1 br{display:none}.auth-brand-content>p{font-size:11px;max-width:none;margin-bottom:5px}.auth-pills,.auth-brand-footer{display:none}.auth-form-panel{padding:35px 28px;flex:1}.auth-card{max-width:420px}.auth-card h2{font-size:23px}.auth-card>p{margin-bottom:22px}.dialog-heading{padding:21px}.dialog-body{padding:21px}.dialog-footer{padding:16px 21px}.field-grid.three{grid-template-columns:1fr}.field-grid{gap:0 13px}.detail-grid{gap:17px 15px}.settings-form,.card-body{padding-left:18px;padding-right:18px}.page-heading .heading-actions>.button.primary{max-width:120px}.notice-list{padding:0 18px 18px}.topbar-status .today-label{display:none}}
@media(max-width:400px){.brand-subtitle{display:none}.field-grid{grid-template-columns:1fr}.stats-grid{gap:8px}.stat-card{padding:14px}.heading-actions .button.primary{padding:8px}.nav-item{padding:9px}.page-heading h1{font-size:22px}.detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){.stat-icon{flex-basis:27px}.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
