:root{--page:#f5f3ee;--surface:#ffffff;--ink:#1d2924;--muted:#65716b;--line:#d9ded9;--brand:#285e49;--brand-strong:#1e4938;--danger:#a43c32;--radius:22px}*{box-sizing:border-box}body,html{text-size-adjust:100%!important}html{min-width:320px;font-size:16px}body,html{background:var(--page)}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}button,input,select,textarea{font:inherit}.button-link,button{min-height:52px;border:0;border-radius:14px;padding:0 22px;background:var(--brand);color:#fff;font-size:17px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.button-link:hover,button:hover{background:var(--brand-strong)}button:disabled{cursor:not-allowed;opacity:.48}.button-link.secondary,button.secondary{color:var(--ink);background:#eef1ee}button.danger{background:var(--danger)}input,select,textarea{width:100%;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-size:18px;outline:none}input,select{min-height:56px;padding:0 16px}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:46px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6l4.5 4 4.5-4' stroke='%2365716b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px 16px}textarea{padding:14px 16px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(40,94,73,.12)}.public-page{min-height:100dvh;display:grid;grid-template-rows:minmax(330px,48dvh) 1fr auto}.brand-design-slot{min-height:330px;padding:max(22px,env(safe-area-inset-top)) 18px 22px;display:flex}.design-placeholder{width:min(100%,720px);min-height:286px;margin:auto;border:2px dashed #b7c0bb;border-radius:28px;color:#728078;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:30px;background:linear-gradient(135deg,rgba(255,255,255,.64),rgba(232,235,230,.52))}.design-placeholder span{font-size:20px;font-weight:700}.design-placeholder small{font-size:15px;line-height:1.6}.query-section{padding:0 16px calc(24px + env(safe-area-inset-bottom))}.query-card{width:min(100%,560px);margin:0 auto;padding:26px 20px 18px;border-radius:var(--radius);background:var(--surface);box-shadow:0 16px 44px rgba(27,45,36,.1)}.query-form{display:grid;grid-gap:14px;gap:14px}.query-form label{font-size:20px;line-height:1.4;font-weight:750}.query-form input{font-size:19px;letter-spacing:.02em}.query-form button{width:100%;min-height:58px;font-size:18px}.query-message{min-height:24px;margin:0;color:var(--muted);font-size:16px;line-height:1.5}.query-message.visible{color:var(--danger)}.public-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 16px;padding:0 18px calc(20px + env(safe-area-inset-bottom));color:var(--muted);font-size:12px;line-height:1.6;text-align:center}.public-footer a{color:inherit;text-decoration:none}.public-footer a:hover{text-decoration:underline}.admin-shell{width:min(1280px,calc(100% - 32px));min-height:100dvh;margin:0 auto;padding:32px 0 60px}.admin-shell.centered{display:grid;place-items:center}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.admin-header p{margin:0 0 5px;color:var(--brand);font-weight:700}.admin-card h1,.admin-card h2,.admin-header h1{margin:0}.admin-tabs{display:flex;gap:8px;margin:0 0 22px;padding:6px;border:1px solid var(--line);border-radius:16px;background:#e9ece9;overflow-x:auto}.admin-tabs a{min-width:132px;padding:13px 18px;border-radius:11px;color:var(--muted);font-size:16px;font-weight:750;text-align:center;text-decoration:none;white-space:nowrap}.admin-tabs a.active{color:#fff;background:var(--brand);box-shadow:0 5px 14px rgba(40,94,73,.18)}.admin-card{padding:26px;margin-bottom:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(27,45,36,.06)}.login-card{width:min(100%,440px)}.admin-help,.login-card>p{color:var(--muted);font-size:16px;line-height:1.7}.login-divider{display:flex;align-items:center;gap:12px;margin:22px 0 0;color:var(--muted);font-size:13px}.login-divider:after,.login-divider:before{content:"";height:1px;flex:1 1;background:var(--line)}.admin-form{display:grid;grid-gap:18px;gap:18px;margin-top:22px}.admin-form label{display:grid;grid-gap:8px;gap:8px;font-size:16px;font-weight:700}.report-content-fields{display:grid;grid-gap:16px;gap:16px}.admin-form .testing-toggle{display:flex;gap:10px;align-items:center;width:-moz-fit-content;width:fit-content;cursor:pointer}.testing-toggle input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;width:18px;height:18px;min-height:0;padding:0;margin:0;border-radius:3px;box-shadow:none;accent-color:var(--brand);flex:none}.field-help{margin:-6px 0 0;color:var(--muted);font-size:14px;line-height:1.7}.testing-label{color:#9b5b2a}.admin-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:18px;gap:18px}.product-combobox{position:relative}.product-options{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:340px;overflow:auto;padding:7px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 38px rgba(27,45,36,.16)}.product-options button{width:100%;min-height:0;display:grid;justify-content:stretch;justify-items:start;align-content:start;grid-gap:4px;gap:4px;padding:12px;border-radius:9px;color:var(--ink);background:transparent;text-align:left}.product-options button:hover{background:#edf2ef}.product-options button span,.product-options button strong{width:100%;text-align:left}.product-options button strong{font-size:15px}.product-options button span,.product-options p{color:var(--muted);font-size:13px;font-weight:500}.product-options p{margin:0;padding:14px}.admin-alert{margin:0 0 20px;padding:14px 16px;border-radius:12px;font-size:16px}.admin-alert.error{color:#7e2b24;background:#fbe9e7}.admin-alert.success{color:#1e5c3e;background:#e8f5ec}.report-list{display:grid;grid-gap:14px;gap:14px;margin-top:20px}.report-row{display:flex;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:16px}.report-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:19px}.report-main p{margin:8px 0;word-break:break-word}.report-main p,.report-main small{color:var(--muted)}.status{padding:4px 9px;border-radius:999px;font-size:13px;font-weight:700;background:#edf0ed}.status.published{color:#16663e;background:#e4f5e9}.status.withdrawn{color:#7e2b24;background:#fbe9e7}.internal-note{margin-top:12px;padding:10px 12px;border-radius:10px;color:#505d56;background:#f5f6f4;white-space:pre-wrap}.report-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}.report-actions .button-link,.report-actions button{min-height:42px;padding:0 14px;font-size:14px}.empty-state{padding:28px 0 10px;color:var(--muted);text-align:center}.filter-form{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));grid-gap:14px;gap:14px;margin-top:20px}.filter-form label,.product-create-grid label{display:grid;grid-gap:7px;gap:7px;color:var(--muted);font-size:14px;font-weight:700}.filter-form input,.filter-form select,.product-create-grid input,.product-create-grid select{min-height:46px;font-size:15px}.filter-wide{grid-column:1/-1}.filter-actions{display:flex;align-items:flex-end;gap:8px}.filter-actions .button-link,.filter-actions button{min-height:46px;flex:1 1;font-size:15px}.table-card{overflow:hidden}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-title-row>span{color:var(--muted);font-size:14px}.data-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px}.data-table{width:100%;min-width:1120px;border-collapse:collapse;background:#fff}.data-table td,.data-table th{padding:12px;border-bottom:1px solid var(--line);color:var(--ink);font-size:14px;text-align:left;vertical-align:middle;white-space:nowrap}.data-table th{position:-webkit-sticky;position:sticky;top:0;z-index:1;color:var(--muted);background:#f4f6f4;font-weight:750}.data-table tr:last-child td{border-bottom:0}.data-table td small{display:block;margin-top:5px;color:var(--muted)}.file-cell{max-width:240px;overflow:hidden;text-overflow:ellipsis}.table-actions{display:flex;gap:6px}.table-actions .button-link,.table-actions button{min-height:36px;padding:0 11px;border-radius:9px;font-size:13px}.report-table td:last-child,.report-table th:last-child{position:-webkit-sticky;position:sticky;right:0;z-index:2;background:#fff;box-shadow:-8px 0 14px rgba(27,45,36,.07)}.report-table th:last-child{z-index:3;background:#f4f6f4}.product-create-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));grid-gap:14px;gap:14px;margin-top:20px;align-items:flex-end}.product-create-grid button{min-height:46px;font-size:15px}.bulk-import-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-end;grid-gap:14px;gap:14px}.bulk-import-form label{display:grid;grid-gap:8px;gap:8px;color:var(--muted);font-size:14px;font-weight:700}.bulk-import-form button{min-width:160px}.import-title-row{align-items:flex-start}.import-title-row .admin-help{margin:8px 0 0}.file-input{min-height:56px;padding:7px 10px;line-height:40px}.file-input::-webkit-file-upload-button{min-height:40px;margin-right:12px;border:0;border-radius:10px;padding:0 15px;color:var(--ink);background:#eef1ee;font-weight:700;cursor:pointer}.file-input::file-selector-button{min-height:40px;margin-right:12px;border:0;border-radius:10px;padding:0 15px;color:var(--ink);background:#eef1ee;font-weight:700;cursor:pointer}.file-input::-webkit-file-upload-button:hover{background:#e3e8e4}.file-input::file-selector-button:hover{background:#e3e8e4}.product-table input,.product-table select{min-width:130px;min-height:40px;padding:0 10px;border-radius:9px;font-size:14px}.product-table select{padding-right:38px;background-position:right 12px center}.product-table td:nth-child(5) input{min-width:220px}.product-table button{min-height:38px;padding:0 14px;font-size:14px}.inline-file-link{min-height:50px;display:flex;align-items:center;padding:0 16px;border:1.5px solid var(--line);border-radius:14px;color:var(--brand);background:#f7f9f7;font-weight:600;text-decoration:none;word-break:break-all}.edit-title-row{align-items:flex-start}.edit-title-row .admin-help{margin:8px 0 0}@media (min-width:820px){.public-page{grid-template-rows:minmax(380px,58dvh) 1fr auto}.brand-design-slot{padding:34px}.query-section{padding-bottom:42px}.query-card{padding:32px}}@media (max-width:680px){.public-page{grid-template-rows:minmax(310px,46dvh) 1fr auto}.brand-design-slot{min-height:310px;padding-left:14px;padding-right:14px}.design-placeholder{min-height:270px}.query-card{border-radius:20px;padding:24px 18px 16px}.query-form label{font-size:19px}.admin-shell{width:min(100% - 24px,1280px);padding-top:18px}.admin-card{padding:20px 16px}.admin-grid{grid-template-columns:1fr}.admin-tabs{margin-left:-2px;margin-right:-2px}.admin-tabs a{min-width:112px;padding-left:12px;padding-right:12px}.bulk-import-form,.filter-form,.product-create-grid{grid-template-columns:1fr}.bulk-import-form button,.import-title-row .button-link{width:100%}.import-title-row{align-items:stretch;flex-direction:column}.filter-wide{grid-column:auto}.table-card{padding-left:12px;padding-right:12px}.report-row{flex-direction:column}.report-actions{width:100%}.report-actions .button-link,.report-actions button,.report-actions form{flex:1 1}}.upload-form{gap:14px;margin-top:18px}.upload-form label{gap:6px}.product-options em{margin-left:12px;color:var(--muted);font-size:12px;font-style:normal;font-weight:500}.spec-picker{min-width:0;margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:12px;background:#fafbf9}.spec-picker legend{padding:0 6px;font-size:15px;font-weight:700}.spec-picker-row{display:flex;align-items:center;gap:10px}.spec-picker-row>button{flex:none;margin-left:auto}button.text-button{min-height:34px;padding:0 10px;color:var(--brand);background:#eaf1ed;font-size:13px;white-space:nowrap}button.text-button:hover{background:#dce9e1}.spec-options{display:flex;flex-wrap:wrap;gap:8px}.admin-form label.spec-option{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 14px;border:1.5px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.admin-form label.spec-option.checked{border-color:var(--brand);background:#f0f6f2}.spec-option input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;width:18px;height:18px;min-height:0;margin:0;padding:0;border-radius:3px;box-shadow:none;flex:none;accent-color:var(--brand)}.spec-option strong{display:block;font-size:16px}.report-review{display:flex;align-items:baseline;gap:10px;padding:11px 14px;border-radius:10px;border:1px solid #d9e6dd;background:#f3f7f3;font-size:13px;line-height:1.7}.report-review>strong{flex:none;color:var(--brand);font-size:13px}.report-review span{color:var(--muted)}.form-error{margin:0;color:var(--danger);font-size:14px}.editor-actions{display:flex;gap:12px}.editor-actions button{flex:1 1}.records-search-card .section-title-row{margin-bottom:0;align-items:flex-start}.records-search-card .admin-help{margin:8px 0 0;font-size:14px}.records-search-form{margin-top:20px}.records-search-row{display:flex;align-items:center;gap:10px}.records-search-row label{flex:1 1;min-width:0}.records-search-row input{min-height:48px;font-size:16px}.records-search-row .button-link,.records-search-row button{min-height:48px;font-size:15px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.advanced-filters{margin-top:15px}.advanced-filters>summary{width:-moz-fit-content;width:fit-content;color:var(--muted);font-size:14px;cursor:pointer}.advanced-filters .filter-form{padding-top:4px}.records-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.record-focus-tabs,.records-view-switch{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.record-focus-tabs a,.records-view-switch a{padding:9px 13px;border-radius:9px;color:var(--muted);font-size:14px;text-decoration:none}.record-focus-tabs a.active{color:var(--brand);background:#e3ece6;font-weight:700}.record-focus-tabs a:hover{background:#eaf0eb}.records-view-switch{background:#e8ece7;padding:4px;border-radius:11px}.records-view-switch a{padding:7px 14px}.records-view-switch a.active{background:#fff;color:var(--ink);box-shadow:0 2px 5px #1c332010;font-weight:700}.records-count{margin:17px 0;color:var(--muted);font-size:14px}.report-product-group{padding:0;overflow:hidden}.report-product-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;cursor:pointer}.report-product-group>summary::-webkit-details-marker{display:none}.group-product-title h3{margin:0;font-size:19px}.group-product-title p{margin:7px 0 0;color:var(--muted);font-size:13px}.group-record-summary{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:13px}.group-chevron{display:inline-block;font-size:22px;transition:transform .15s}.report-product-group[open] .group-chevron{transform:rotate(180deg)}.report-product-group>.data-table-wrap{width:calc(100% - 40px);margin:0 20px 20px}.batch-record-table{min-width:820px;table-layout:auto}.batch-record-table.with-product{min-width:1020px}.batch-record-table td,.batch-record-table th{padding:15px 14px}.batch-record-table td:first-child{min-width:115px}.batch-record-table .spec-cell{min-width:175px;max-width:260px;white-space:normal}.spec-details>summary{cursor:pointer;list-style:none}.spec-details>summary::-webkit-details-marker{display:none}.spec-details>summary>small{color:var(--brand);font-size:12px}.spec-tags{display:flex;flex-wrap:wrap;gap:5px}.spec-tags>span{display:inline-block;padding:4px 8px;border-radius:6px;background:#eef2ee;color:#3b5142;font-size:13px;white-space:nowrap}.spec-barcodes{display:grid;grid-gap:9px;gap:9px;padding-top:12px}.spec-barcodes div{display:grid;grid-gap:3px;gap:3px}.spec-barcodes strong{font-size:12px}.spec-barcodes span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.report-content-cell{min-width:220px;max-width:280px}.report-file-name{display:block;max-width:240px;margin-top:6px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-ready-label{color:var(--brand)}.overdue-label{display:inline-block;width:-moz-fit-content;width:fit-content;margin-top:5px;padding:3px 7px;border-radius:5px;color:#a43c32;background:#fbe9e7;font-size:12px}.record-note{margin-top:8px;color:var(--muted);font-size:12px}.record-note>summary{cursor:pointer}.record-note p{max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:6px 0 0}.product-name-cell{max-width:230px;white-space:normal!important}.batch-record-table .table-actions{flex-wrap:wrap;min-width:150px;max-width:250px}@media(max-width:680px){.spec-picker-row{flex-wrap:wrap}.report-review{flex-wrap:wrap;gap:4px}.editor-actions{flex-direction:column}.records-search-row{flex-wrap:wrap}.records-search-row label{flex-basis:100%}.records-search-row .button-link,.records-search-row button{flex:1 1}.records-search-card .section-title-row{flex-wrap:wrap}.report-product-group>summary{align-items:flex-start;flex-direction:column;padding:18px;gap:10px}.group-record-summary{justify-content:flex-start;gap:10px}.report-product-group>.data-table-wrap{width:calc(100% - 24px);margin:0 12px 12px}}.batch-year-label{display:block;margin-top:5px;color:#285e49;font-size:14px;font-weight:650;white-space:nowrap}.report-year-editor{margin-top:7px;font-size:12px}.report-year-editor summary{color:#65756b;cursor:pointer}.report-year-editor form{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-width:150px}.report-year-editor input{width:100px;min-height:34px;padding:5px 8px;font-size:14px}.report-year-editor button{min-height:34px;padding:5px 9px;font-size:12px}.record-created-at{min-width:125px;white-space:nowrap;font-size:13px;line-height:1.7;color:#65756b;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}