@charset "UTF-8";
:root{--bg:#f6f5f0;--surface:#fff;--ink:#1c2d36;--muted:#778184;--line:#e7e9e4;--navy:#142f39;--teal:#17665b;--teal-dark:#104f47;--teal-soft:#e7f1ec;--amber:#a96e21;--amber-soft:#fff4df;--red:#b34845;--red-soft:#fbeeed;--shadow:0 16px 60px #172e3910;--radius:14px;--font:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #69b5a4;outline-offset:3px}a{color:var(--teal);text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:650;line-height:1.35}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}input,select,textarea{min-width:0;border:1px solid #dce2dc;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#529585;box-shadow:0 0 0 3px #17665b12}input::placeholder,textarea::placeholder{color:#a0a7a3}textarea{resize:vertical;min-height:88px;line-height:1.7}input[type=checkbox],input[type=radio]{accent-color:var(--teal);height:16px;width:16px;min-width:16px;padding:0;box-shadow:none;cursor:pointer}input[type=file]{max-width:100%;padding:8px;background:#fafbf9}input[type=file]::file-selector-button{border:0;border-radius:5px;padding:5px 10px;background:var(--teal-soft);color:var(--teal);margin-right:10px;cursor:pointer}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:12px;letter-spacing:.04em;color:#75817e;font-weight:500;background:#f9faf7;padding:13px 18px;border-bottom:1px solid var(--line)}td{padding:15px 18px;border-bottom:1px solid var(--line);font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}.skip-link{position:fixed;z-index:300;top:8px;left:8px;padding:10px 16px;background:var(--navy);color:#fff;transform:translateY(-200%)}.skip-link:focus{transform:none}.boot{display:flex;min-height:100vh;flex-direction:column;align-items:center;justify-content:center;gap:24px;color:var(--muted)}.brand-word{font-size:28px;letter-spacing:.14em;font-weight:750;color:var(--navy)}.brand-word span{font-size:12px;display:block;letter-spacing:.26em;font-weight:400;margin-top:4px}.spinner{height:23px;width:23px;border:2px solid #e1e8e1;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);position:fixed;inset:0 auto 0 0;width:228px;z-index:30;color:#a9bbc0;display:flex;flex-direction:column;padding:30px 18px 18px}.sidebar-brand{padding:0 16px 28px}.sidebar-brand .brand-word{color:#fff;font-size:26px}.sidebar-brand .brand-word span{color:#afc4c6;font-size:10px;letter-spacing:.3em;margin-top:6px}.sidebar-divider{height:1px;background:#ffffff13;margin:0 14px 23px}.nav-section-label{font-size:10px;letter-spacing:.17em;color:#789298;margin:0 17px 10px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-item{border:0;background:none;color:inherit;display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:9px;width:100%;text-align:left;position:relative;transition:.15s}.nav-item svg{width:19px;height:19px;color:#94adb3}.nav-item:hover{background:#ffffff08;color:#fff}.nav-item.active{background:#ffffff10;color:#fff}.nav-item.active:before{content:"";position:absolute;left:-18px;top:13px;bottom:13px;width:3px;background:#78bfa7;border-radius:3px}.nav-item.active svg{color:#9fd4c0}.nav-secondary{margin-top:27px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0}.sidebar-status{font-size:11px;color:#8ca4a9;display:flex;gap:7px;align-items:center;padding-bottom:20px}.status-dot{height:6px;width:6px;background:#78bfa7;border-radius:50%}.sidebar-user{display:flex;gap:10px;align-items:center;border-top:1px solid #ffffff12;padding-top:18px}.avatar{height:34px;width:34px;border-radius:50%;background:#31515b;color:#d7e7e6;display:grid;place-items:center;font-weight:600;flex-shrink:0}.user-name{font-size:12px;color:#e7eeee;line-height:1.5}.user-role{font-size:10px;color:#8ca4a9}.logout{margin-left:auto;border:0;background:none;color:#91a8ae;padding:6px;border-radius:5px}.logout:hover{background:#ffffff10;color:white}.main-shell{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fdfdfac9;gap:15px;position:relative}.breadcrumb{font-size:12px;color:#89918f;display:flex;align-items:center;gap:10px}.breadcrumb strong{font-weight:500;color:#45534f}.topbar-right{display:flex;gap:18px;align-items:center;color:#7b8581;font-size:11px}.topbar-right .domain{letter-spacing:.03em}.mobile-toggle{display:none}.icon-button{border:1px solid var(--line);background:white;display:inline-flex;align-items:center;justify-content:center;height:35px;width:35px;border-radius:8px;color:#6a7874}.icon-button:hover{background:var(--teal-soft);color:var(--teal)}.icon-button svg{height:17px;width:17px}.page{max-width:1600px;margin:auto;padding:35px 40px 36px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:29px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:650;letter-spacing:.18em;color:var(--teal);margin-bottom:9px}.page-heading h1{font-size:27px;letter-spacing:-.045em}.page-description{margin-top:9px;font-size:12px;color:var(--muted)}.heading-actions{display:flex;align-items:center;gap:9px;padding-top:8px}.btn{border:1px solid #dfe4dd;background:white;border-radius:8px;min-height:38px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#46534e;font-size:12px;font-weight:500;white-space:nowrap;transition:.15s}.btn svg{height:16px;width:16px}.btn:hover{border-color:#a9c5b9;background:#f9fcf9}.btn.primary{background:var(--teal);color:#fff;border-color:var(--teal);box-shadow:0 3px 8px #17665b12}.btn.primary:hover{background:var(--teal-dark)}.btn.subtle{border-color:transparent;background:transparent;color:var(--muted)}.btn.subtle:hover{background:#e9eee7;color:var(--ink)}.btn.danger{color:var(--red);background:#fff;border-color:#eed8d5}.btn.danger:hover{background:var(--red-soft)}.btn.small{min-height:30px;padding:5px 10px;font-size:11px}.btn.wide{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:27px}.stat-card{padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-height:122px;position:relative}.stat-icon{position:absolute;right:22px;top:24px;background:#f1f5ee;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:#6d8779}.stat-icon svg{width:17px;height:17px}.stat-label{font-size:11px;color:#7d8880;letter-spacing:.03em;margin-bottom:11px}.stat-value{font-size:31px;font-weight:600;letter-spacing:-.04em;line-height:1.2;color:#213e3a;font-variant-numeric:tabular-nums}.stat-note{font-size:10px;color:#99a198;margin-top:9px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-heading{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:15px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:5px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px}.table-wrap{overflow:auto}.sample-mini{display:flex;align-items:center;gap:12px}.mini-image{height:46px;width:46px;object-fit:cover;border:1px solid var(--line);border-radius:7px;background:#f6f7f2}.image-placeholder{display:grid;place-items:center;background:#f4f5f0;color:#b7beb1;overflow:hidden}.image-placeholder svg{width:28px;height:28px;stroke-width:1.2}.sample-mini .image-placeholder{width:46px;height:46px;border-radius:7px;flex-shrink:0}.sample-mini strong{font-size:12px;font-weight:550;display:block}.sample-mini small{display:block;font-size:10px;color:#939b93;margin-top:3px}.category-overview{padding:7px 24px 20px}.category-item{padding:16px 0 2px}.category-item-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.category-item-head span:last-child{color:#768679;font-size:11px}.bar-track{height:5px;background:#f0f3ed;border-radius:5px}.bar-fill{height:5px;background:#639b86;border-radius:5px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}.quick-action{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;color:#3b5146;font-size:12px;text-align:left}.quick-action:hover{border-color:#8eb6a3;background:#fbfdf9}.quick-action svg{color:#7b9a86;width:22px;height:22px}.quick-action small{color:#9ba298;font-size:10px}.toolbar{background:#fff;border:1px solid var(--line);border-radius:12px 12px 0 0;padding:18px 20px 16px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.search-input{position:relative;flex:1;min-width:220px}.search-input svg{position:absolute;left:12px;top:12px;height:16px;width:16px;color:#88968a}.search-input input{width:100%;padding-left:37px;font-size:12px;height:41px}.filters select{max-width:180px;min-width:130px;font-size:12px;padding:10px 28px 10px 11px;height:41px}.filter-extra{display:none;margin-top:12px}.filter-extra.open{display:flex}.filter-extra input{width:180px;height:38px;font-size:12px}.filter-divider{height:1px;background:#edf0e9;margin-top:17px}.list-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px}.result-count{font-size:11px;color:#8e988e}.result-count strong{font-size:12px;color:#344e40;font-weight:600;margin:0 4px}.list-controls-left{display:flex;align-items:center;gap:15px}.select-all-label{display:flex;align-items:center;gap:8px;color:#697969;font-size:11px;cursor:pointer}.view-switch{display:flex;gap:2px;border:1px solid #e2e7dd;background:#f6f8f3;border-radius:6px;padding:3px}.view-switch button{height:27px;width:32px;border:0;border-radius:4px;background:transparent;color:#98a08f;display:grid;place-items:center}.view-switch button.active{background:white;color:var(--teal);box-shadow:0 1px 4px #263e2410}.view-switch svg{width:15px;height:15px}.sort-control{display:flex;gap:7px;align-items:center;color:#84907e;font-size:11px}.sort-control select{padding:5px 21px 5px 7px;max-width:125px;height:30px;border-color:transparent;background:transparent;font-size:11px}.sample-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:23px 0}.sample-card{background:#fff;border:1px solid #e2e7dc;border-radius:11px;overflow:hidden;transition:box-shadow .15s,transform .15s;position:relative}.sample-card:hover{box-shadow:0 10px 24px #203d2410;transform:translateY(-2px)}.sample-card.selected{border-color:#4f9a7d;box-shadow:0 0 0 1px #4f9a7d}.sample-image{height:188px;display:block;position:relative;background:#eeefe8;width:100%;border:0;padding:0;overflow:hidden}.sample-image>img{height:100%;width:100%;object-fit:cover;transition:transform .3s}.sample-image:hover>img{transform:scale(1.025)}.sample-image.image-placeholder svg{height:42px;width:42px}.card-check{position:absolute;z-index:2;top:12px;left:12px;border:1px solid #e3e7df;background:#ffffffee;border-radius:5px;height:24px;width:24px;display:grid;place-items:center;box-shadow:0 2px 8px #00000008;cursor:pointer}.card-check input{width:14px;height:14px;min-width:14px}.image-count{position:absolute;right:11px;bottom:11px;background:#ffffffdc;backdrop-filter:blur(6px);padding:3px 6px;border-radius:4px;font-size:9px;color:#667362;display:flex;align-items:center;gap:4px}.image-count svg{height:10px;width:10px}.card-body{padding:16px 16px 13px}.card-category{font-size:9px;color:#79927b;letter-spacing:.05em;margin-bottom:7px}.card-title{font-size:13px;font-weight:600;line-height:1.5;color:#2c4132;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:20px}.title-link{border:0;background:transparent;padding:0;text-align:left}.title-link:hover{color:var(--teal)}.card-code{font-size:10px;color:#9ca393;letter-spacing:.03em;margin-top:5px}.card-meta{margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:10px;color:#8a9584}.card-meta>span:first-child{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock{display:inline-flex;align-items:center;gap:4px;color:#4f7a59;white-space:nowrap;font-size:10px}.stock:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor}.stock.low{color:#b58535}.stock.negative{color:var(--red)}.card-footer{padding:11px 15px;border-top:1px solid #f0f2ec;display:flex;justify-content:space-between;align-items:center;background:#fdfefa}.card-footer .btn{font-size:10px;padding:0;min-height:21px;border:0;background:none;color:#7b8a75}.card-footer .btn:hover{color:var(--teal)}.card-footer .btn svg{height:13px;width:13px}.card-footer .action-group{display:flex;gap:12px}.samples-table{border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:#fff;overflow:auto;margin-bottom:22px}.samples-table td:first-child,.samples-table th:first-child{width:35px;padding-right:0}.samples-table .sample-mini{min-width:220px}.samples-table .action-group{display:flex;gap:3px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 2px;margin-top:4px;font-size:11px;color:#8a9484}.pagination-size{display:flex;align-items:center;gap:9px}.pagination-size select{padding:5px 22px 5px 9px;font-size:11px;height:31px}.pagination-pages{display:flex;align-items:center;gap:5px}.page-button{min-width:30px;height:30px;border:1px solid transparent;background:transparent;color:#7e8a76;border-radius:6px;font-size:11px;display:grid;place-items:center}.page-button.active{color:#fff;background:var(--teal)}.page-button:hover:not(.active):not(:disabled){background:#e7ece1;border-color:#e0e6db}.page-button svg{height:14px;width:14px}.batch-bar{position:sticky;bottom:20px;max-width:700px;margin:0 auto;background:var(--navy);border-radius:10px;box-shadow:0 12px 38px #17373330;color:#fff;padding:12px 17px;z-index:15;display:flex;align-items:center;gap:10px;font-size:12px}.batch-bar>span{margin-right:auto}.batch-bar .btn{min-height:31px;padding:6px 10px;background:#ffffff10;border-color:#ffffff20;color:#e8f3eb}.batch-bar .btn:hover{background:#ffffff20}.batch-bar .btn.subtle{border:0}.empty-state{padding:60px 24px;text-align:center;color:#9ba594;background:white;border:1px solid var(--line);border-radius:12px;margin:20px 0}.empty-state svg{width:38px;height:38px;stroke-width:1.2;color:#b9c4ad;margin-bottom:12px}.empty-state h3{font-size:15px;color:#66755d;font-weight:500}.empty-state p{font-size:12px;line-height:1.8;margin-top:8px}.empty-state .btn{margin-top:18px}.error-state{border-color:#ecd9d4;color:#a57d72}.error-state h3{color:#a55e51}.loading-state{display:flex;justify-content:center;padding:80px;gap:12px;align-items:center;color:#88937e;font-size:12px}.subtabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.subtab{background:none;border:0;padding:12px 17px;font-size:12px;color:#8c9684;white-space:nowrap;border-bottom:2px solid transparent}.subtab.active{color:var(--teal);border-bottom-color:var(--teal);font-weight:600}.dictionary-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px}.dictionary-nav{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px;height:max-content}.dictionary-nav button{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border:0;border-radius:7px;background:none;color:#7b8974;font-size:12px;text-align:left}.dictionary-nav button svg{width:16px;height:16px}.dictionary-nav button.active{background:var(--teal-soft);color:var(--teal);font-weight:550}.dictionary-nav button:hover{background:#f4f7f0}.table-empty{padding:35px;text-align:center;color:#99a18f}.pill{display:inline-flex;padding:3px 8px;border-radius:5px;font-size:10px;background:#f0f4eb;color:#7c8e6a;white-space:nowrap}.pill.teal{background:var(--teal-soft);color:var(--teal)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.pill.red{background:var(--red-soft);color:var(--red)}.muted{color:#96a08c}.money{font-variant-numeric:tabular-nums;letter-spacing:.02em}.text-right{text-align:right}.link-button{border:0;background:none;color:var(--teal);padding:0;font-size:inherit}.link-button:hover{text-decoration:underline}.small-note{font-size:11px;color:#98a18e;line-height:1.8}.section-pad{padding:24px}.inline-actions{display:flex;align-items:center;gap:8px}.warning-note{background:#fff8e9;border:1px solid #f0e5c8;border-radius:9px;color:#9c804b;padding:13px 16px;font-size:11px;line-height:1.8;margin-bottom:20px}.info-note{background:#f1f6ee;border:1px solid #e3ebdc;border-radius:9px;color:#7a8f6a;padding:13px 16px;font-size:11px;line-height:1.8;margin-bottom:20px}.overlay{position:fixed;inset:0;background:#142e3655;backdrop-filter:blur(3px);z-index:70;display:flex;align-items:center;justify-content:center;padding:28px}.overlay.drawer-overlay{justify-content:flex-end;padding:0}.modal{background:var(--bg);border:1px solid #ffffff80;border-radius:17px;box-shadow:0 30px 100px #102d3b25;width:660px;max-width:100%;max-height:calc(100vh - 56px);display:flex;flex-direction:column;animation:modal-in .16s ease}.modal.large{width:1040px}.modal.small{width:460px}.drawer{height:100%;width:820px;max-width:100%;background:var(--bg);box-shadow:-20px 0 80px #102d3b1c;display:flex;flex-direction:column;animation:drawer-in .18s ease}.modal-head,.drawer-head{padding:23px 27px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid var(--line);background:#fff;border-radius:17px 17px 0 0}.drawer-head{border-radius:0;padding:26px 30px 22px}.modal-head h2,.drawer-head h2{font-size:20px;letter-spacing:-.03em}.modal-head .small-note,.drawer-head .small-note{margin-top:7px}.close-button{border:0;background:#f4f6ef;color:#85917c;border-radius:6px;height:30px;width:30px;display:grid;place-items:center}.close-button:hover{background:#e7ece0;color:#4e6740}.close-button svg{width:16px;height:16px}.modal-body{padding:24px 27px;overflow:auto;min-height:0}.drawer-body{padding:24px 30px;overflow:auto;min-height:0;flex:1}.modal-footer,.drawer-footer{border-top:1px solid var(--line);padding:17px 27px;background:#fff;display:flex;justify-content:flex-end;align-items:center;gap:10px;border-radius:0 0 17px 17px}.drawer-footer{padding:18px 30px;border-radius:0}.drawer-footer .save-hint{margin-right:auto;color:#9aa28f;font-size:10px}.drawer-tabs{display:flex;gap:3px;padding:0 25px;background:#fff;border-bottom:1px solid var(--line);overflow:auto;flex-shrink:0}.drawer-tab{padding:14px 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#8a9581;white-space:nowrap;font-size:12px}.drawer-tab.active{border-bottom-color:var(--teal);color:var(--teal);font-weight:600}.form-section{border:1px solid var(--line);background:#fff;border-radius:12px;padding:21px 22px;margin-bottom:18px}.form-section h3{font-size:13px;display:flex;gap:8px;align-items:center;margin-bottom:18px}.form-section h3 svg{width:16px;height:16px;color:#89a17b}.form-section:last-child{margin-bottom:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#79866e;min-width:0}.field>span{display:flex;gap:4px;align-items:center}.field input,.field select,.field textarea{width:100%;font-size:12px;min-height:40px}.field.full{grid-column:1/-1}.required{color:#bc7860}.field-hint{font-size:10px;color:#a0a792;line-height:1.7}.field-row{display:flex;align-items:center;gap:10px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#6e7f60;cursor:pointer}.error-box{display:none;background:var(--red-soft);color:var(--red);border:1px solid #f0d6d2;padding:11px 14px;border-radius:8px;font-size:12px;line-height:1.7;margin-bottom:18px}.error-box.visible{display:block}.treatment-row{display:grid;grid-template-columns:36px 1fr 130px;align-items:center;gap:12px;margin-top:11px}.treatment-row>span{font-size:11px;color:#a0aa91}.treatment-row input{font-size:12px;width:100%}.treatment-labels{display:grid;grid-template-columns:36px 1fr 130px;gap:12px;color:#8d9a7d;font-size:10px}.color-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px 30px;gap:9px;align-items:end;padding:10px 0;border-bottom:1px solid #edf0e6}.color-row select,.color-row input{font-size:12px;width:100%;height:37px}.color-row:last-child{border-bottom:0}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.gallery-item{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}.gallery-image{height:132px;width:100%;border:0;padding:0;background:#eef0e7;display:block}.gallery-image img{width:100%;height:100%;object-fit:cover}.gallery-item-controls{padding:10px}.gallery-item input{width:100%;font-size:11px;padding:7px;margin-bottom:8px}.gallery-actions{display:flex;justify-content:space-between;gap:6px}.upload-zone{border:1.5px dashed #c9d9bc;border-radius:10px;padding:23px;background:#f8fbf3;text-align:center}.upload-zone>svg{width:27px;height:27px;color:#8fa47b;margin-bottom:9px}.upload-zone h4{font-size:12px;color:#69805a;margin-bottom:5px;font-weight:500}.upload-zone input{margin-top:14px;font-size:11px}.upload-previews{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}.upload-preview{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;padding:8px;border-radius:8px;max-width:100%}.upload-preview img{height:42px;width:42px;object-fit:cover;border-radius:4px}.upload-preview input{min-width:0;font-size:11px;max-width:160px;padding:7px}.lightbox{position:fixed;inset:0;z-index:100;background:#0c2028ed;display:flex;align-items:center;justify-content:center;padding:70px 75px}.lightbox img{max-width:100%;max-height:calc(100vh - 140px);object-fit:contain;border-radius:4px}.lightbox .close-button{position:absolute;top:22px;right:25px;background:#ffffff12;color:#e0e9dd;height:36px;width:36px}.lightbox-caption{position:absolute;bottom:25px;text-align:center;color:#ccd9c3;font-size:12px;left:15%;right:15%}.lightbox-nav{position:absolute;top:50%;border:1px solid #ffffff20;border-radius:50%;height:40px;width:40px;display:grid;place-items:center;background:#ffffff08;color:#d9e5d0}.lightbox-nav.prev{left:22px}.lightbox-nav.next{right:22px}.toast-stack{position:fixed;right:25px;bottom:25px;z-index:200;display:flex;flex-direction:column;gap:10px;max-width:min(420px,calc(100vw - 30px))}.toast{display:flex;gap:10px;align-items:flex-start;padding:15px 18px;background:#fff;border:1px solid #dce8d6;border-radius:10px;box-shadow:0 12px 40px #102d3218;color:#557648;font-size:12px;animation:modal-in .18s ease}.toast.error{border-color:#efdad4;color:#ad6252}.toast svg{height:17px;width:17px;margin-top:1px}.import-text{width:100%;font:11px/1.7 ui-monospace,SFMono-Regular,monospace;min-height:180px;white-space:pre}.import-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:14px}.import-preview{max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff;margin-top:18px}.import-preview td,.import-preview th{font-size:10px;padding:9px 12px}.import-error{color:var(--red);font-size:11px;line-height:1.8;margin-top:10px}.export-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:16px}.export-scope{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.choice-card{display:flex;align-items:center;gap:9px;border:1px solid #dfe7d8;border-radius:9px;background:#fff;padding:13px 11px;font-size:11px;color:#768a65}.choice-card:has(input:checked){border-color:#73a88b;background:#f0f7ed;color:var(--teal)}.form-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:20px}.ship-lines{overflow:auto}.ship-lines table{min-width:860px}.shipment-color-fields{display:grid;gap:6px}.ship-total{flex-wrap:wrap}.ship-total>span{white-space:normal}.ship-lines th,.ship-lines td{padding:9px 8px}.ship-lines td input,.ship-lines td select{width:100%;font-size:11px;padding:7px;min-width:65px}.ship-lines .line-sample{min-width:180px}.ship-total{display:flex;justify-content:flex-end;gap:26px;padding:18px 5px;color:#849472;font-size:11px}.ship-total strong{color:var(--teal);font-size:16px;margin-left:8px;font-weight:600}.sample-picker-list{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:9px;margin-top:16px}.picker-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;border-bottom:1px solid var(--line)}.picker-row:last-child{border:0}.picker-row small{color:#96a589}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f7f8f2}.login-brand-panel{background:var(--navy);color:#d1dfd3;position:relative;padding:54px 60px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.login-brand-panel:after{content:"";height:520px;width:520px;position:absolute;border:1px solid #ffffff0c;border-radius:50%;right:-180px;bottom:-120px;box-shadow:0 0 0 70px #ffffff02,0 0 0 140px #ffffff02}.login-brand-panel .brand-word{color:#f1f7ed;font-size:32px}.login-brand-panel .brand-word span{color:#91aca7;font-size:10px}.login-message{position:relative;z-index:1;max-width:400px;margin:auto 0}.login-message .eyebrow{color:#80af9b;margin-bottom:22px}.login-message h1{font-size:42px;font-weight:500;letter-spacing:-.06em;line-height:1.45;margin-bottom:22px}.login-message p{color:#90aaa7;font-size:13px;line-height:2;max-width:320px}.login-foot{color:#6f8d8e;font-size:10px;letter-spacing:.06em}.login-form-panel{display:flex;align-items:center;justify-content:center;padding:40px}.login-form{width:335px;max-width:100%}.login-form h2{font-size:24px;margin-bottom:11px}.login-form .intro{font-size:12px;color:#93a087;margin-bottom:33px}.login-form .field{margin-bottom:21px;gap:9px}.login-form .field input{height:46px}.login-form .btn.primary{height:45px;margin-top:8px}.login-help{font-size:10px;color:#a3ac97;text-align:center;margin-top:23px;line-height:1.9}.login-mobile-brand{display:none}.permissions-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.permission-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:13px}.permission-card h4{font-size:11px;margin-bottom:12px;color:#637c51}.permission-card .checkbox-label{font-size:10px;margin-bottom:8px}.settings-layout{max-width:900px}.settings-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.log-detail{white-space:pre-wrap;word-break:break-word;font-size:11px;max-width:430px;max-height:70px;overflow:auto;color:#8a967c}.screen-footer{margin-top:32px;border-top:1px solid #e9ece2;padding-top:17px;font-size:9px;color:#a1aa95;display:flex;justify-content:space-between;gap:10px;letter-spacing:.02em}.desktop-only{display:inline}.section-action{margin-left:auto}.form-inline-note{padding:9px 0;font-size:11px;color:#91a37e}.hidden,[hidden]{display:none!important}@keyframes modal-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes drawer-in{from{opacity:.4;transform:translateX(30px)}to{opacity:1;transform:none}}@media(min-width:1550px){.sample-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.sample-image{height:205px}}@media(max-width:1230px){.app-shell{grid-template-columns:202px minmax(0,1fr)}.sidebar{width:202px;padding-left:14px;padding-right:14px}.nav-item.active:before{left:-14px}.page{padding:30px 28px}.topbar{padding:0 28px}.sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-grid{gap:12px}.stat-card{padding:20px}.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr)}.stat-icon{right:17px;top:20px}.filters select{max-width:140px;min-width:110px}.sidebar-brand{padding-left:13px}}@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.category-overview{display:grid;grid-template-columns:repeat(2,1fr);gap:0 22px}.sample-grid{gap:13px}.sample-image{height:160px}.page-heading h1{font-size:25px}.heading-actions{gap:6px}.heading-actions .btn{padding:9px 11px}.topbar-right .domain{display:none}.dictionary-layout{grid-template-columns:150px minmax(0,1fr)}.login-brand-panel{padding:40px}.login-message h1{font-size:35px}}@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:transform .2s;width:228px;box-shadow:15px 0 60px #142e3620}.sidebar.open{transform:none}.sidebar-scrim{position:fixed;inset:0;background:#152f3950;z-index:25}.main-shell{grid-column:1}.mobile-toggle{display:grid}.topbar{height:63px;padding:0 20px;justify-content:flex-start;gap:13px}.topbar-right{margin-left:auto}.breadcrumb{font-size:11px}.topbar-right .today{display:none}.page{padding:25px 20px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card{min-height:112px}.page-heading{margin-bottom:23px;gap:12px}.page-heading h1{font-size:24px}.page-description{font-size:11px;max-width:300px}.heading-actions{flex-wrap:wrap;justify-content:flex-end;padding-top:5px}.heading-actions .btn{min-height:34px;padding:7px 10px;font-size:11px}.toolbar{padding:15px}.search-input{min-width:100%;flex-basis:100%}.filters select{max-width:100%;flex:1;min-width:100px}.filters .btn{padding:9px}.list-controls-left{gap:12px}.sample-image{height:178px}.sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card-body{padding:13px 12px}.card-meta{flex-direction:column;align-items:flex-start;gap:7px;margin-top:11px}.card-meta>span:first-child{max-width:100%}.card-footer{padding:10px 12px}.card-footer .action-group{gap:8px}.card-footer .btn{font-size:9px}.dictionary-layout{grid-template-columns:1fr;gap:15px}.dictionary-nav{display:flex;overflow:auto;padding:6px}.dictionary-nav button{width:auto;flex-shrink:0;padding:10px 12px}.dictionary-nav svg{display:none}.drawer{width:min(760px,100vw)}.overlay{padding:15px}.modal{max-height:calc(100vh - 30px)}.drawer-head{padding:21px 23px}.drawer-body{padding:20px 23px}.drawer-footer{padding:16px 23px}.drawer-tabs{padding:0 16px}.login-page{grid-template-columns:1fr}.login-brand-panel{display:none}.login-form-panel{min-height:100vh;padding:35px}.login-mobile-brand{display:block;margin-bottom:55px}.login-mobile-brand .brand-word{font-size:26px}.login-mobile-brand .brand-word span{font-size:9px}.screen-footer{margin-top:28px}.desktop-only{display:none}}@media(max-width:560px){.page{padding:24px 15px}.topbar{padding:0 15px}.page-heading{flex-wrap:wrap;gap:16px}.page-heading .heading-actions{width:100%;justify-content:flex-start;padding:0}.page-heading h1{font-size:24px}.page-description{max-width:100%}.eyebrow{font-size:9px;margin-bottom:7px}.stats-grid{gap:10px;margin-bottom:20px}.stat-card{padding:17px;min-height:112px}.stat-value{font-size:27px}.stat-icon{height:26px;width:26px;right:16px;top:16px}.stat-icon svg{height:14px;width:14px}.stat-label{font-size:10px}.stat-note{font-size:9px}.sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding-top:17px}.sample-image{height:158px}.card-title{font-size:12px}.card-category{font-size:8px}.card-code{font-size:9px}.card-footer .action-group .btn:first-child{display:none}.card-footer .btn{font-size:9px}.card-check{top:9px;left:9px;height:22px;width:22px}.image-count{right:8px;bottom:8px}.pagination{flex-wrap:wrap;justify-content:center;margin-top:9px;gap:12px}.pagination-size{width:100%;justify-content:center;font-size:10px}.list-controls{gap:9px}.list-controls-left{gap:10px}.result-count{font-size:10px}.sort-control{gap:3px;font-size:10px}.sort-control select{max-width:99px;font-size:10px;padding-right:12px}.view-switch button{height:25px;width:27px}.filters{gap:8px}.filters select{font-size:11px;min-width:90px}.filter-extra.open{display:grid;grid-template-columns:1fr 1fr}.filter-extra input{width:100%}.filters .filter-toggle{flex-basis:100%}.filter-divider{margin-top:14px}.batch-bar{bottom:12px;padding:10px;gap:6px;flex-wrap:wrap;font-size:11px}.batch-bar>span{margin-right:10px}.batch-bar .btn{font-size:10px;padding:5px 8px}.panel-heading{padding:17px 18px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.category-overview{padding:0 18px 19px}.category-item-head{font-size:11px}.quick-actions{gap:8px;margin-top:16px}.quick-action{padding:15px 12px;font-size:11px;gap:9px}.quick-action small{font-size:9px}.quick-action svg{width:19px;height:19px}.modal-head,.drawer-head{padding:20px 18px}.modal-head h2,.drawer-head h2{font-size:18px}.modal-body,.drawer-body{padding:19px 17px}.modal-footer,.drawer-footer{padding:14px 17px}.drawer-footer .save-hint{display:none}.form-section{padding:17px 15px;margin-bottom:14px}.form-grid{gap:14px}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.field input,.field select,.field textarea{font-size:12px;padding:9px 10px}.treatment-row{grid-template-columns:25px 1fr 95px;gap:7px}.treatment-labels{grid-template-columns:25px 1fr 95px;gap:7px}.color-row{grid-template-columns:minmax(0,1fr) 65px 70px 25px;gap:6px}.color-row input,.color-row select{padding:7px 5px}.gallery-grid{grid-template-columns:repeat(2,1fr)}.gallery-image{height:135px}.export-fields{grid-template-columns:repeat(2,1fr);gap:12px}.export-scope{grid-template-columns:1fr;gap:8px}.choice-card{padding:11px}.permissions-grid{grid-template-columns:1fr}.settings-form .form-grid{grid-template-columns:1fr}.screen-footer{font-size:8px}.lightbox{padding:65px 45px}.lightbox-nav{height:30px;width:30px}.lightbox-nav.prev{left:7px}.lightbox-nav.next{right:7px}.lightbox-caption{bottom:20px;font-size:10px}.toast-stack{right:15px;bottom:15px}.import-actions{flex-wrap:wrap}.import-actions input{font-size:10px;width:100%}.ship-total{gap:16px}.ship-total strong{font-size:14px}.table-wrap td,.table-wrap th{padding:12px}.heading-actions .btn.primary{margin-left:auto}.login-form-panel{padding:28px}.drawer-tabs{padding:0 8px}.drawer-tab{padding:13px 11px;font-size:11px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Navigation toggle is available only when the sidebar collapses. */
.icon-button.mobile-toggle{display:none}@media(max-width:800px){.icon-button.mobile-toggle{display:grid}}
@media(max-width:560px){.card-footer .action-group .btn:first-child{display:inline-flex}}
.select-all-label,.result-count{white-space:nowrap}@media(max-width:560px){.list-controls-left{gap:9px}.sort-control select{max-width:90px}.list-controls .inline-actions{gap:5px}}

.migration-banner{position:sticky;top:0;z-index:24;display:flex;align-items:center;gap:10px;padding:12px 40px;background:#fff1d5;border-bottom:1px solid #ead8ad;color:#775323;font-size:13px;line-height:1.65;font-weight:550}.migration-banner svg{width:17px;height:17px}.login-migration{position:static;margin-bottom:24px;padding:12px 14px;border:1px solid #ead8ad;border-radius:8px;font-size:12px}@media(max-width:1230px){.migration-banner{padding-left:28px;padding-right:28px}}@media(max-width:800px){.migration-banner{padding:11px 20px;font-size:12px}}@media(max-width:560px){.migration-banner{padding:10px 15px}.login-migration{padding:12px 14px}}

/* A continuous sample form keeps the essential fields and gallery together. */
.sample-editor{width:1180px}.sample-editor .drawer-head,.sample-editor .drawer-footer{border-radius:0}.sample-editor-head-actions{display:flex;align-items:center;gap:13px;flex-shrink:0}.sample-editor .drawer-head h2{overflow-wrap:anywhere}.sample-editor .drawer-body{padding:23px 26px;scroll-padding-top:23px}.sample-editor-form{display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-areas:"basic images" "pricing images" "specs images" "attributes attributes" "colors process" "notes notes";gap:18px;align-items:start}.sample-section{min-width:0;scroll-margin-top:23px}.sample-section>.form-section{margin:0}.sample-section-basic{grid-area:basic}.sample-section-pricing{grid-area:pricing}.sample-section-specs{grid-area:specs}.sample-section-images{grid-area:images}.sample-section-attributes{grid-area:attributes}.sample-section-colors{grid-area:colors}.sample-section-process{grid-area:process}.sample-section-notes{grid-area:notes}.sample-editor .form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.sample-section-basic .field:first-child{grid-column:span 2}.sample-section-images .form-section{padding:21px 18px}.sample-section-images .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sample-section-images .gallery-image{height:122px}.sample-section-images .gallery-item-controls{padding:8px}.sample-section-images .gallery-actions{gap:4px;flex-wrap:wrap}.sample-section-images .upload-zone{padding:20px 12px}.sample-section-images .upload-zone input{max-width:100%}.sample-section-images .upload-preview{width:100%}.sample-section-images .upload-preview input{width:100%;max-width:none}.gallery-summary{margin-bottom:15px}.label-workflow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:22px;color:#637866;font-size:12px}.label-workflow span{display:flex;align-items:center;gap:7px}.label-workflow b{display:grid;place-items:center;background:#eaf3e8;color:var(--teal);border-radius:50%;width:24px;height:24px;font-weight:600}.label-range{border:0;margin:0 0 22px;padding:0;min-width:0}.label-range legend{font-size:12px;font-weight:600;margin-bottom:12px;color:var(--navy)}.label-range .export-scope{margin-bottom:10px}.label-template-select{margin-bottom:20px}.label-template-select select{width:100%}.label-template-note{color:#718066;font-size:11px;line-height:1.8;margin-top:10px}.label-print-help{margin:15px 0 20px;line-height:1.9}.sample-editor .save-hint{margin-right:auto}.sample-editor .field-hint{line-height:1.65}
@media(max-width:1000px){.sample-editor{width:100vw}.sample-editor-form{grid-template-columns:minmax(0,1fr) 290px}.sample-editor .form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-section-basic .field:first-child{grid-column:auto}.sample-editor .form-section{padding:19px 18px}.sample-editor .drawer-body{padding:20px}.sample-section-process .treatment-row,.sample-section-process .treatment-labels{grid-template-columns:24px minmax(0,1fr) 78px;gap:6px}}
@media(max-width:800px){.sample-editor-form{grid-template-columns:1fr;grid-template-areas:"basic" "pricing" "specs" "images" "attributes" "colors" "process" "notes";gap:16px}.sample-editor .drawer-body{padding:18px 20px}.sample-section-images .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sample-section-images .gallery-image{height:145px}.sample-editor-head-actions .btn{padding:8px 10px;font-size:11px}.sample-editor .drawer-head{gap:12px}.sample-editor-head-actions{gap:8px}}
@media(max-width:560px){.sample-editor .drawer-body{padding:16px}.sample-editor .form-grid,.sample-editor .form-grid.three{grid-template-columns:1fr}.sample-editor .form-section{padding:18px 16px}.sample-editor .drawer-head{padding:18px 16px;flex-wrap:wrap}.sample-editor-head-actions{margin-left:auto}.sample-editor .drawer-head>div:first-child{flex:1;min-width:140px}.sample-editor .drawer-head h2{font-size:17px}.sample-section-images .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-section-images .gallery-image{height:145px}.sample-editor .drawer-footer{padding:14px 16px}.label-workflow{font-size:10px;gap:8px}.label-workflow span{gap:5px}.label-workflow b{width:21px;height:21px;flex-shrink:0}.label-range .choice-card{font-size:12px}.sample-section-process .treatment-row,.sample-section-process .treatment-labels{grid-template-columns:24px minmax(0,1fr) 80px}}

/* Keep source composition and free-text prices readable without squeezing mobile columns. */
.samples-table{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.samples-table table{min-width:980px}.samples-table.with-prices table{min-width:1180px}.samples-table .sample-composition{min-width:180px;max-width:270px;white-space:normal;overflow-wrap:anywhere;line-height:1.7}.samples-table th.sample-composition{white-space:nowrap}.samples-table .sample-price{min-width:100px;max-width:180px;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.7}.samples-table th.sample-price{white-space:nowrap}.samples-table:focus-visible{outline:3px solid #69b5a4;outline-offset:3px}.table-scroll-hint{display:none}
@media(max-width:800px){.table-scroll-hint{display:block;font-size:11px;color:var(--muted);padding:10px 3px}.samples-table .sample-composition{min-width:180px}.samples-table .sample-price{min-width:100px}}
