:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;--paper:#f3f6f4;--surface:#fff;--surface-muted:#e9eeeb;--ink:#17221d;--muted:#5f6b64;--line:#d5ddd8;--line-strong:#7f8d85;--green:#145f46;--green-deep:#0d4634;--green-soft:#e0eee7;--amber:#8a4d08;--amber-soft:#fff1d8;--danger:#a52a24;--danger-soft:#fbe9e7;--focus:#0978c7;--shadow:0 14px 34px #17221d1a;--shadow-small:0 7px 20px #17221d17;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--paper);scrollbar-color:var(--line-strong) var(--paper);scrollbar-width:thin}body{background:var(--paper);min-width:320px;min-height:100vh;color:var(--ink);margin:0}body::-webkit-scrollbar{width:11px}body::-webkit-scrollbar-track{background:var(--paper)}body::-webkit-scrollbar-thumb{border:3px solid var(--paper);background:var(--line-strong);border-radius:999px}::selection{color:var(--green-deep);background:#b8dccb}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}input,textarea,select{border:1px solid var(--line-strong);background:var(--surface);width:100%;min-height:50px;color:var(--ink);caret-color:var(--green);border-radius:12px;padding:0 14px;transition:border-color .18s ease-out,box-shadow .18s ease-out,background .18s ease-out}textarea{resize:vertical;min-height:118px;padding-block:13px;line-height:1.5}select{cursor:pointer}input::placeholder,textarea::placeholder{color:#65716a;opacity:1}input:hover,textarea:hover,select:hover{border-color:#819087}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 4px #145f461a}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.03em}h2{letter-spacing:-.02em}.visually-hidden{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.button{cursor:pointer;border:0;border-radius:13px;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:0 16px;font-weight:720;text-decoration:none;transition:background .18s ease-out,color .18s ease-out,transform .18s ease-out,box-shadow .18s ease-out;display:inline-flex}.button svg{stroke-width:2.2px;width:18px;height:18px}.button:hover:not(:disabled){transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(0)}.button:disabled{cursor:not-allowed;opacity:.55}.button-primary{background:var(--green);color:#fff;box-shadow:0 6px 16px #145f4633}.button-primary:hover:not(:disabled){background:var(--green-deep);box-shadow:0 8px 20px #145f4640}.button-secondary{background:var(--green-soft);color:var(--green-deep)}.button-secondary:hover:not(:disabled){background:#cee4d9}.button-quiet{color:var(--ink);background:0 0}.button-quiet:hover:not(:disabled){background:var(--surface-muted)}.button-danger{background:var(--danger);color:#fff}.button-danger-quiet{color:var(--danger);background:0 0}.button-danger-quiet:hover:not(:disabled){background:var(--danger-soft)}.icon-button{cursor:pointer;border:0;border-radius:12px;place-items:center;width:42px;height:42px;display:inline-grid}.icon-button svg{width:18px}.app-shell{min-height:100vh}.sidebar{display:none}.sidebar-brand{align-items:center;gap:11px;display:flex}.sidebar-brand>div:last-child{flex-direction:column;gap:2px;min-width:0;display:flex}.sidebar-brand strong{letter-spacing:-.02em;font-size:1rem}.sidebar-brand span{color:var(--muted);font-size:.75rem}.brand-mark{background:var(--green);color:#fff;border-radius:10px 10px 14px;flex:none;place-items:center;width:40px;height:44px;display:grid;position:relative}.brand-mark:before{content:"";border:3px solid var(--paper);border-bottom:0;border-radius:6px 6px 0 0;width:10px;height:10px;position:absolute;top:-5px;right:8px}.brand-mark svg{width:21px}.brand-mark-large{border-radius:14px 14px 19px;width:60px;height:66px}.brand-mark-large svg{width:28px}.main-workspace{min-width:0}.mobile-header{z-index:30;min-height:66px;padding:max(12px, env(safe-area-inset-top)) 16px 10px;border-bottom:1px solid var(--line);background:#f3f6f4f5;justify-content:space-between;align-items:center;display:flex;position:static;top:0;box-shadow:0 5px 18px #17221d0f}.mobile-sync-dot{background:var(--amber);width:10px;height:10px;box-shadow:0 0 0 4px var(--amber-soft);border-radius:999px}.mobile-sync-dot.cloud{background:var(--green);box-shadow:0 0 0 4px var(--green-soft)}.mobile-nav{z-index:50;min-height:calc(66px + env(safe-area-inset-bottom));padding:7px 12px max(7px, env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff5;grid-template-columns:1fr 1fr;gap:4px;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #17221d14}.mobile-nav button{min-height:52px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:13px;justify-content:center;align-items:center;gap:8px;font-weight:680;display:flex;position:relative}.mobile-nav button.active{background:var(--green-soft);color:var(--green-deep)}.mobile-nav svg{width:20px}.mobile-nav b{background:var(--green);color:#fff;font-variant-numeric:tabular-nums;border-radius:999px;place-items:center;min-width:20px;height:20px;font-size:.68rem;display:grid}.capture-form,.archive-page,.entry-detail{width:min(100%,1180px);margin:0 auto;padding:16px 16px 156px}.capture-form section,.capture-form input,.capture-form textarea,.capture-form select{scroll-margin-top:78px}.capture-context{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-small);border-radius:18px;margin-bottom:26px;padding:16px}.context-fields{gap:12px;max-width:560px;display:grid}.context-fields .field-group{margin-bottom:0}#context-heading{align-items:center;gap:6px;display:inline-flex}#context-heading svg{width:18px;height:18px;color:var(--green-deep)}.context-options{border-top:1px solid var(--line)}.context-options>summary{cursor:pointer;min-height:44px;color:var(--green-deep);padding:12px 0 0;font-size:.9rem;font-weight:650}.context-options>summary:focus-visible{outline:2px solid var(--green-deep);outline-offset:3px;border-radius:4px}.context-options-fields{gap:16px;padding-top:12px;display:grid}.capture-context .optional-flag{background:var(--surface-muted);color:var(--muted);padding:5px 8px}.article-dock{z-index:35;color:#fff;width:100%;min-height:58px;box-shadow:var(--shadow-small);text-align:left;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0d4634f7;border:1px solid #ffffff1f;border-radius:15px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;margin:0 0 12px;padding:9px 11px;display:grid;position:sticky;top:0}.article-dock-icon{background:#ffffff1f;border-radius:11px;place-items:center;width:40px;height:40px;display:grid}.article-dock-icon svg{width:19px}.article-dock>span:nth-child(2){flex-direction:column;gap:1px;min-width:0;display:flex}.article-dock small{text-overflow:ellipsis;white-space:nowrap;color:#cfe3d9;min-width:0;font-size:.68rem;font-weight:690;overflow:hidden}.article-dock strong{text-overflow:ellipsis;white-space:nowrap;letter-spacing:.025em;font-variant-numeric:tabular-nums;font-size:.9rem;overflow:hidden}.article-dock-action{color:#edf5f1;background:#ffffff1a;border-radius:9px;padding:6px 8px;font-size:.68rem;font-weight:730}.photo-mode-switch{border:1px solid var(--line);background:var(--surface-muted);border-radius:13px;grid-template-columns:1fr 1fr;gap:3px;margin:0 0 14px;padding:3px;display:grid}.photo-mode-switch label{color:#526058;text-align:center;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;min-width:0;min-height:48px;padding:7px 8px;font-size:.76rem;font-weight:740;line-height:1.2;display:flex}.photo-mode-switch label.selected{background:var(--surface);color:var(--green-deep);box-shadow:0 4px 12px #17221d14}.photo-mode-switch input{opacity:0;pointer-events:none;width:1px;min-height:1px;margin:-1px;padding:0;position:absolute}.photo-mode-switch label:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.photo-mode-switch label>span{overflow-wrap:anywhere;min-width:0}.optional-flag,.recommended-flag,.count-badge,.source-badge{white-space:nowrap;border-radius:999px;font-size:.7rem;font-weight:760}.optional-flag{color:#e9f2ed;background:#ffffff1a;padding:6px 8px}.save-receipt{background:var(--green-soft);color:var(--green-deep);border:1px solid #0000;border-radius:14px;align-items:center;gap:12px;margin-bottom:20px;padding:10px;animation:.24s cubic-bezier(.16,1,.3,1) stamp-in;display:flex}.save-receipt-status{flex:1;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 10px;min-width:0;padding-left:4px;display:grid}.save-receipt-status>svg{grid-row:1/-1;width:22px}.save-receipt-status span{font-size:.72rem}.save-receipt-status strong{text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:0;overflow:hidden}.save-receipt-status small{color:currentColor;opacity:.82;grid-column:2;font-size:.68rem;line-height:1.3}.save-receipt.pending,.save-receipt.failed{border-color:var(--amber);background:var(--amber-soft);color:var(--amber)}.save-receipt-edit{background:var(--surface);border:1px solid #145f4629;flex:none;min-height:42px}.batch-tray{border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--shadow-small);border-radius:16px;margin-bottom:20px;padding:14px}.batch-tray-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px;display:grid}.batch-tray-heading h2{margin:0 0 2px;font-size:1rem}.batch-tray-heading p{color:var(--muted);margin:0;font-size:.72rem;line-height:1.35}.batch-tray-icon{background:var(--green-soft);width:38px;height:38px;color:var(--green-deep);border-radius:11px;place-items:center;display:grid}.batch-tray-icon svg{width:19px}.batch-list{gap:7px;display:grid}.batch-item{border:1px solid var(--line);background:var(--surface-muted);border-radius:12px;min-width:0;overflow:hidden}.batch-item.editing{border-color:var(--green);background:var(--green-soft)}.batch-item-toggle{width:100%;min-height:64px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;display:grid}.batch-item-toggle:hover:not(:disabled){background:#ffffff8c}.batch-item-toggle:disabled{cursor:not-allowed;opacity:.55}.batch-item-toggle:focus-visible{outline-offset:-4px}.batch-item-number{background:var(--green-deep);color:#fff;font-variant-numeric:tabular-nums;border-radius:9px;place-items:center;width:30px;height:30px;font-size:.68rem;font-weight:760;display:grid}.batch-item-main{flex-direction:column;gap:2px;min-width:0;display:flex}.batch-item-main strong,.batch-item-main span,.batch-item-main small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.batch-item-main strong{font-size:.8rem}.batch-item-main span,.batch-item-main small{color:var(--muted);font-size:.68rem}.batch-item-chevron{width:20px;color:var(--muted);transition:transform .18s ease-out}.batch-item.expanded .batch-item-chevron{transform:rotate(180deg)}.batch-item-details{border-top:1px solid var(--line);background:var(--surface);gap:14px;padding:12px;display:grid}.batch-item-photos{scrollbar-width:thin;gap:7px;padding-bottom:2px;display:flex;overflow-x:auto}.batch-item-photos img,.batch-item-photos .photo-fallback{border:1px solid var(--line);object-fit:cover;border-radius:10px;width:72px;min-width:72px;height:72px;display:block}.batch-item-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0;display:grid}.batch-item-facts>div{gap:2px;min-width:0;display:grid}.batch-item-facts dt{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.64rem;font-weight:700}.batch-item-facts dd{overflow-wrap:anywhere;min-width:0;margin:0;font-size:.76rem;font-weight:690}.batch-item-colors,.batch-item-notes{border-top:1px solid var(--line);gap:7px;padding-top:12px;display:grid}.batch-item-colors>strong,.batch-item-notes>strong{font-size:.76rem}.batch-item-colors ul{gap:7px;margin:0;padding:0;list-style:none;display:grid}.batch-item-colors li{grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;min-width:0;display:grid}.batch-item-colors li>span{overflow-wrap:anywhere;min-width:0;font-size:.75rem;font-weight:690}.batch-item-colors li>small{color:var(--muted);overflow-wrap:anywhere;grid-column:1;font-size:.65rem}.batch-item-colors li>strong{font-variant-numeric:tabular-nums;grid-area:1/2/span 2;align-self:center;font-size:.72rem}.batch-item-colors>p,.batch-item-notes p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:.72rem;line-height:1.45}.batch-item-actions{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding-top:2px;display:grid}.batch-item-actions .button{min-width:0;min-height:44px;padding-inline:12px;font-size:.72rem}.batch-item-actions .remove-batch-item{color:var(--danger)}@keyframes stamp-in{0%{clip-path:inset(0 100% 0 0);filter:blur(2px)}to{clip-path:inset(0);filter:blur()}}.capture-layout{gap:24px;display:grid}.photo-section,.capture-data-column,.details-section{min-width:0}.capture-data-column{border-top:1px solid var(--line);padding-top:22px}.capture-data-column>.supplier-field{margin-bottom:0}.section-heading-row{justify-content:space-between;align-items:flex-start;gap:16px;min-height:48px;margin:0 2px 14px;display:flex}.section-heading-row h2,.section-heading-row h3{letter-spacing:-.02em;margin-bottom:4px}.section-heading-row h2{font-size:1.22rem}.section-heading-row h3{font-size:1rem}.section-heading-row p{color:var(--muted);margin-bottom:0;font-size:.86rem;line-height:1.4}.count-badge{background:var(--green-soft);min-width:28px;height:28px;color:var(--green-deep);font-variant-numeric:tabular-nums;place-items:center;padding-inline:8px;display:grid}.camera-well{background:var(--surface);width:100%;min-height:205px;color:var(--ink);cursor:pointer;border:1px dashed #87968e;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:28px;transition:border-color .18s ease-out,background .18s ease-out,transform .18s ease-out;display:flex}.camera-well:hover:not(:disabled){border-color:var(--green);background:#fbfdfc;transform:translateY(-1px)}.camera-well strong{font-size:1.05rem}.camera-well>span:last-child{max-width:30ch;color:var(--muted);font-size:.82rem;line-height:1.45}.camera-lens{background:var(--green-soft);width:66px;height:66px;color:var(--green-deep);border-radius:50%;place-items:center;margin-bottom:5px;display:grid}.camera-lens svg{width:27px}.photo-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;display:grid}.photo-contact-sheet{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.photo-tile{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;min-height:0;margin:0;display:flex;overflow:hidden}.photo-tile-image{background:var(--surface-muted);min-height:150px;position:relative;overflow:hidden}.photo-tile-image img,.photo-tile-image .photo-fallback{object-fit:cover;width:100%;height:100%;min-height:150px;display:block}.photo-tile figcaption{color:#fff;font-variant-numeric:tabular-nums;background:#0d4634e6;border-radius:8px;min-width:30px;padding:5px 7px;font-size:.7rem;font-weight:780;position:absolute;bottom:8px;left:8px}.photo-remove{color:var(--danger);box-shadow:var(--shadow-small);background:#fffffff0;position:absolute;top:8px;right:8px}.photo-collective-label{border-top:1px solid var(--line);min-height:44px;color:var(--green-deep);justify-content:center;align-items:center;gap:7px;padding:8px 10px;font-size:.72rem;font-weight:720;display:flex}.photo-collective-label svg{width:16px}.photo-color-status{border-top:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--green-deep);text-align:center;overflow-wrap:anywhere;justify-content:center;align-items:center;padding:8px 10px;font-size:.72rem;font-weight:720;line-height:1.25;display:flex}.photo-color-status.unassigned{background:var(--amber-soft);color:var(--amber)}.assignment-notice{background:var(--amber-soft);color:var(--amber);border-radius:11px;margin:10px 0 0;padding:10px 12px;font-size:.74rem;font-weight:650;line-height:1.4}.photo-fallback{background:var(--surface-muted);color:#738078;place-items:center;display:grid}.photo-fallback svg{width:28px}.details-section{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.details-colors,.details-photo-links,.details-status{border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:22px}.details-colors .section-heading-row,.details-photo-links .section-heading-row{min-height:0;margin-bottom:12px}.details-status .section-heading-row{min-height:0;margin-bottom:10px}.article-status-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.article-status-buttons button{border:1px solid var(--line-strong);background:var(--surface);min-width:0;min-height:54px;color:var(--ink);text-align:left;cursor:pointer;border-radius:13px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.article-status-buttons button:hover:not(:disabled){border-color:var(--green)}.article-status-buttons button.selected{border-color:var(--green);background:var(--green-soft);color:var(--green-deep)}.article-status-buttons button>svg{width:19px;color:var(--muted)}.article-status-buttons button.selected>svg{color:var(--green)}.article-status-buttons button>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.76rem;font-weight:710;overflow:hidden}.article-status-buttons button>strong{background:var(--surface-muted);min-width:30px;color:var(--muted);text-align:center;border-radius:999px;padding:4px 6px;font-size:.68rem}.article-status-buttons button.selected>strong{background:var(--green-deep);color:#fff}.article-status-buttons.compact button{border-radius:11px;min-height:44px;padding:6px 8px}.article-status-buttons.compact button>svg{width:16px}.article-status-buttons.compact button>span{font-size:.7rem}.details-colors .color-row-fields{grid-template-columns:minmax(0,1fr) 86px 44px}.details-colors .color-row-fields label:first-child{grid-column:1/-1}.color-editor{gap:12px;display:grid}.colors-empty{border:1px dashed var(--line-strong);background:var(--surface);min-height:92px;color:var(--muted);border-radius:14px;align-items:center;gap:12px;padding:15px;display:flex}.colors-empty>svg{width:25px;color:var(--green);flex:none}.colors-empty>div{flex-direction:column;gap:4px;display:flex}.colors-empty strong{color:var(--ink);font-size:.84rem}.colors-empty span{font-size:.74rem;line-height:1.4}.color-rows{gap:10px;display:grid}.color-row{border:1px solid var(--line);background:var(--surface);border-radius:15px;min-width:0;margin:0;padding:11px}.color-row legend{color:var(--green-deep);padding:0 6px;font-size:.74rem;font-weight:760}.color-row-fields{grid-template-columns:minmax(0,1fr) 86px 44px;align-items:end;gap:9px;display:grid}.color-row-fields label{flex-direction:column;gap:6px;min-width:0;display:flex}.color-row-fields label:first-child{grid-column:1/-1}.color-row-fields label>span{color:var(--muted);font-size:.69rem;font-weight:690}.color-row-fields input{min-width:0;min-height:46px;padding-inline:11px}.remove-color{background:var(--danger-soft);width:44px;height:46px;color:var(--danger);border:1px solid #ebc9c6}.add-color{justify-self:start}.field-group{margin-bottom:18px}.field-group>label,.label-line label{margin:0 0 7px 2px;font-size:.84rem;font-weight:720;display:inline-block}.label-line{justify-content:space-between;align-items:center;gap:12px;display:flex}.recommended-flag{background:var(--amber-soft);color:var(--amber);padding:5px 8px}.field-help,.field-error{color:var(--muted);margin:7px 2px 0;font-size:.76rem;line-height:1.4}.field-error{color:var(--danger);font-weight:650}.supplier-field input{background:#fffdfa;border-color:#b98448}.price-row{grid-template-columns:minmax(0,1fr) 104px;gap:10px;display:grid}.currency-field select{font-weight:720}.save-dock{border:1px solid var(--line);box-shadow:var(--shadow-small);background:#fffffff7;border-radius:16px;justify-content:flex-end;align-items:center;gap:16px;margin-top:26px;padding:10px;display:flex;position:static}.save-summary{display:none}.save-button{width:100%;min-height:52px}.save-actions{gap:8px;width:100%;display:grid}.add-to-batch{min-height:50px}.archive-header{flex-direction:column;gap:16px;margin:10px 0 20px;display:flex}.archive-header h1{margin-bottom:4px;font-size:1.85rem}.archive-header p{color:var(--muted);margin-bottom:0}.archive-sync-strip,.entry-sync-strip{border:1px solid var(--amber);background:var(--amber-soft);color:var(--amber);border-radius:13px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;padding:10px 12px;display:grid}.archive-sync-strip{margin:-6px 0 16px}.entry-sync-strip{margin:12px 0 0}.archive-sync-strip>svg,.entry-sync-strip>svg{flex:none;width:19px;height:19px;margin-top:1px}.archive-sync-strip>div,.entry-sync-strip>div{flex-direction:column;gap:2px;min-width:0;display:flex}.archive-sync-strip strong,.entry-sync-strip strong{font-size:.78rem}.archive-sync-strip span,.entry-sync-strip span{color:var(--amber);font-size:.72rem;line-height:1.4}.archive-sync-strip.failed,.entry-sync-strip.failed{border-color:var(--amber)}.archive-export-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.archive-toolbar{gap:12px;margin-bottom:14px;display:grid}.archive-period-switch{gap:8px;margin:20px 0 8px;display:flex}.archive-period-switch button{border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:10px 20px;font-weight:700;display:flex}.archive-period-switch button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--surface)}.archive-period-switch button:hover{border-color:var(--green-deep)}.archive-period-switch span{font-variant-numeric:tabular-nums}.archive-period-help{color:var(--muted);margin:0 0 20px;font-size:.875rem;line-height:1.5}@media (width<=619px){.archive-period-switch button{flex:1}}.archive-filter-toggle{border:1px solid #145f462e;justify-content:flex-start;width:100%}.archive-filter-count{background:var(--surface);font-variant-numeric:tabular-nums;border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:760}.archive-filter-toggle>.archive-filter-chevron{margin-left:auto;transition:transform .18s ease-out}.archive-filter-toggle>.archive-filter-chevron.expanded{transform:rotate(180deg)}.archive-search-field>label,.archive-filter-field>span{color:var(--ink);margin:0 0 6px 2px;font-size:.74rem;font-weight:720;display:block}.search-control,.filter-control{border:1px solid var(--line-strong);background:var(--surface);border-radius:13px;align-items:center;gap:9px;min-height:50px;padding:0 12px;display:flex}.search-control:focus-within,.filter-control:focus-within{border-color:var(--green);box-shadow:0 0 0 4px #145f461a}.search-control>svg,.filter-control>svg{width:19px;color:var(--muted);flex:none}.search-control input,.filter-control select{min-height:46px;box-shadow:none;border:0;padding:0}.archive-filter-panel{border:1px solid var(--line);background:var(--surface);border-radius:15px;min-width:0;margin:0;padding:12px}.archive-filter-panel[hidden]{display:none}.archive-filter-panel legend{color:var(--green-deep);padding:0 6px;font-size:.78rem;font-weight:760}.archive-filter-grid{gap:10px;display:grid}.archive-filter-field{min-width:0}.archive-filter-field select,.archive-filter-field input{background:var(--surface);border-radius:11px;width:100%;min-height:48px;padding:9px 11px}.archive-filter-field input[aria-invalid=true]{border-color:var(--danger)}.filter-error{color:var(--danger);margin:10px 2px 0;font-size:.74rem;font-weight:650}.reset-filters{min-height:42px;margin-top:10px;padding-inline:8px}.archive-summary{background:var(--green-soft);color:var(--green-deep);border:1px solid #145f4633;border-radius:16px;margin-bottom:18px;padding:15px}.archive-summary-heading{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:13px;display:flex}.archive-summary-heading h2{margin:2px 0 0;font-size:1.05rem}.summary-statuses{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.summary-statuses span{background:#ffffffa8;border-radius:999px;padding:4px 7px;font-size:.66rem;font-weight:720}.archive-summary-values{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:8px;display:grid}.archive-summary-values>div{background:#ffffffc7;border-radius:12px;flex-direction:column;gap:4px;min-width:0;padding:11px;display:flex}.archive-summary-values span{color:var(--muted);font-size:.7rem;font-weight:680}.archive-summary-values strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-size:1rem}.summary-money strong{font-size:.88rem;line-height:1.35}.summary-warning{color:var(--muted);margin:10px 2px 0;font-size:.7rem;line-height:1.4}.search-control button{cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.search-control button:hover{background:var(--surface-muted)}.search-control button svg{width:17px}.archive-order-list{gap:12px;display:grid}.archive-order-group{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;overflow:hidden}.archive-order-toggle{background:var(--surface-muted);width:100%;min-height:82px;color:var(--ink);text-align:left;cursor:pointer;border:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 12px;padding:13px 14px;display:grid}.archive-order-toggle:hover{background:var(--green-soft)}.archive-order-toggle>svg{width:21px;color:var(--green-deep);grid-area:1/2/3;transition:transform .18s ease-out}.archive-order-toggle>svg.expanded{transform:rotate(180deg)}.archive-order-title,.archive-order-facts{flex-direction:column;gap:3px;min-width:0;display:flex}.archive-order-title strong{font-variant-numeric:tabular-nums;font-size:.9rem}.archive-order-title span,.archive-order-facts span,.archive-order-facts small{overflow-wrap:anywhere;color:var(--muted);font-size:.7rem;line-height:1.35}.archive-order-facts strong{color:var(--green-deep);font-variant-numeric:tabular-nums;font-size:.78rem}.archive-order-facts b{color:var(--ink);font-weight:720}.archive-order-body{border-top:1px solid var(--line)}.archive-row-card{border-bottom:1px solid var(--line);padding-bottom:10px}.archive-order-body .archive-row-card:last-child{border-bottom:0}.archive-row{text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:92px minmax(0,1fr);gap:13px;width:100%;min-height:116px;padding:12px 4px;transition:background .18s ease-out;display:grid}.archive-row-card>.article-status-buttons{margin:-2px 4px 0 109px}.archive-row:hover{background:var(--surface)}.archive-thumbnail{background:var(--surface-muted);border-radius:13px;width:92px;height:92px;position:relative;overflow:hidden}.archive-thumbnail img,.archive-thumbnail .photo-fallback{object-fit:cover;width:100%;height:100%}.archive-thumbnail>span{color:#fff;text-align:center;background:#0d4634e6;border-radius:8px;min-width:26px;padding:4px 6px;font-size:.68rem;font-weight:760;position:absolute;bottom:6px;right:6px}.archive-row-main{flex-direction:column;justify-content:center;gap:5px;min-width:0;display:flex}.archive-tags{flex-wrap:wrap;gap:5px;display:flex}.archive-tags span,.detail-category{background:var(--green-soft);width:fit-content;color:var(--green-deep);border-radius:999px;padding:4px 7px;font-size:.66rem;font-weight:720}.archive-tags .sync-badge{border:1px solid var(--amber);background:var(--amber-soft);color:var(--amber)}.archive-tags .sync-badge.sending{border-color:var(--line-strong);background:var(--surface-muted);color:var(--muted)}.archive-tags .sync-badge.failed{border-color:var(--amber);font-weight:780}.article-code{overflow-wrap:anywhere;letter-spacing:.015em;font-variant-numeric:tabular-nums;font-size:.96rem}.supplier-name{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;overflow:hidden}.archive-meta{color:var(--muted);flex-direction:column;gap:3px;font-size:.72rem;display:flex}.archive-meta span{align-items:center;gap:5px;display:flex}.archive-meta svg{width:13px;height:13px}.archive-row-price{grid-column:2;justify-content:space-between;align-items:center;gap:8px;display:flex}.archive-row-price strong{color:var(--green-deep);font-variant-numeric:tabular-nums;font-size:.78rem}.archive-row-price span{background:var(--surface-muted);color:var(--muted);border-radius:999px;padding:4px 7px;font-size:.64rem;font-weight:720}.archive-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:390px;padding:48px 24px;display:flex}.archive-empty.compact{min-height:300px}.archive-empty h2{max-width:22ch;margin:22px 0 8px;font-size:1.2rem}.archive-empty p{max-width:46ch;color:var(--muted);margin-bottom:0;line-height:1.55}.archive-empty>svg{width:34px;height:34px;color:var(--green)}.empty-contact-sheet{grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;gap:6px;width:176px;height:118px;display:grid;transform:rotate(-2deg)}.empty-contact-sheet span{border:1px solid var(--line-strong);background:var(--surface);border-radius:10px;box-shadow:0 6px 16px #17221d12}.empty-contact-sheet span:first-child{grid-row:1/3}.detail-header{flex-direction:column;gap:10px;margin-bottom:18px;display:flex}.detail-actions{grid-template-columns:auto 1fr;gap:8px;display:grid}.detail-title-strip{border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 0;display:flex}.metadata-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px;font-size:.7rem;font-weight:760;display:block}.detail-title-strip h1{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:0;font-size:1.55rem}.detail-category{margin-top:8px;display:inline-flex}.source-badge{background:var(--green-soft);color:var(--green-deep);padding:6px 9px}.source-badge.manual{background:var(--surface-muted);color:var(--muted)}.detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0 26px;display:grid}.detail-gallery figure{border:1px solid var(--line);background:var(--surface);border-radius:14px;min-width:0;margin:0;overflow:hidden}.detail-gallery figure img,.detail-gallery figure .photo-fallback{border-radius:0}.detail-gallery figure figcaption{border-top:1px solid var(--line);min-height:42px;color:var(--green-deep);align-items:center;gap:7px;padding:8px 10px;font-size:.7rem;font-weight:690;display:flex}.detail-gallery figure figcaption svg{flex:none;width:15px}.detail-gallery img,.detail-gallery .photo-fallback{aspect-ratio:4/3;object-fit:cover;border-radius:14px;place-items:center;width:100%;display:grid}.detail-gallery[data-empty=true]{grid-template-columns:1fr}.detail-gallery[data-empty=true] .photo-fallback{aspect-ratio:auto;border:1px dashed var(--line-strong);min-height:96px;color:var(--muted);justify-content:center;align-items:center;gap:9px;font-size:.82rem;font-weight:650;display:flex}.detail-facts{border-top:1px solid var(--line);margin:0;display:grid}.detail-facts>div{border-bottom:1px solid var(--line);grid-template-columns:minmax(100px,.4fr) 1fr;gap:18px;padding:16px 2px;display:grid}.detail-facts dt{color:var(--muted);font-size:.8rem}.detail-facts dd{overflow-wrap:anywhere;margin:0;font-weight:640}.notes-fact dd{white-space:pre-wrap;line-height:1.55}.detail-edit-form{margin-top:24px}.detail-edit-section,.saved-colors{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.photo-assignment-list{gap:8px;display:grid}.photo-assignment-list label{border:1px solid var(--line);background:var(--surface);border-radius:13px;grid-template-columns:54px minmax(64px,auto) minmax(0,1fr);align-items:center;gap:10px;padding:8px;display:grid}.photo-assignment-list img,.photo-assignment-list .photo-fallback{object-fit:cover;border-radius:9px;width:54px;height:54px}.photo-assignment-list label>span{font-size:.76rem;font-weight:720}.photo-assignment-list select{min-width:0;min-height:44px}.saved-color-list{border-top:1px solid var(--line)}.saved-color-row{border-bottom:1px solid var(--line);grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 2px;display:grid}.saved-color-index{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.72rem;font-weight:760}.saved-color-row>div{flex-direction:column;gap:3px;min-width:0;display:flex}.saved-color-row>div:last-child{text-align:right;align-items:flex-end}.saved-color-row strong{overflow-wrap:anywhere;font-size:.82rem}.saved-color-row span:not(.saved-color-index),.saved-colors-empty{color:var(--muted);font-size:.72rem}.saved-colors-empty{border:1px dashed var(--line-strong);background:var(--surface);border-radius:13px;margin-bottom:0;padding:16px}.input-action-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.danger-zone{border-top:1px solid #e3bbb8;margin-top:40px;padding-top:18px}.delete-confirmation{background:var(--danger-soft);color:#6f1f1a;border-radius:14px;flex-direction:column;gap:14px;padding:14px;font-size:.84rem;font-weight:650;display:flex}.delete-confirmation>div{justify-content:flex-end;gap:8px;display:flex}.toast{z-index:100;left:14px;right:14px;bottom:calc(148px + env(safe-area-inset-bottom));background:var(--green-deep);color:#fff;min-height:54px;box-shadow:var(--shadow);border-radius:14px;justify-content:space-between;align-items:center;gap:14px;padding:11px 12px 11px 15px;font-size:.84rem;font-weight:650;animation:.22s cubic-bezier(.16,1,.3,1) toast-in;display:flex;position:fixed}.toast.error{background:#7f211c}.toast button{color:#fff;cursor:pointer;background:#ffffff1f;border:0;border-radius:11px;flex:none;place-items:center;width:38px;height:38px;display:grid}.toast svg{width:17px}@keyframes toast-in{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.load-error{background:var(--danger-soft);color:#6f1f1a;border-radius:14px;flex-direction:column;align-items:stretch;gap:10px;margin:16px;padding:14px;display:flex}.background-upload-banner{background:var(--green-soft);width:min(100% - 32px,1148px);color:var(--green-deep);border:1px solid #bdd8ca;border-radius:14px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 12px;margin:16px auto 0;padding:13px 14px;display:grid}.background-upload-banner>svg{grid-row:1;width:22px;height:22px}.background-upload-banner>div{flex-direction:column;gap:2px;min-width:0;display:flex}.background-upload-banner strong{font-size:.84rem}.background-upload-banner span{color:var(--muted);font-size:.76rem;line-height:1.35}.background-upload-banner>.button{background:var(--surface);grid-column:1/-1;width:100%;margin-top:4px}.background-upload-banner.offline,.background-upload-banner.failed{background:var(--amber-soft);color:var(--amber);border-color:#e9c789}.background-upload-banner.offline span,.background-upload-banner.failed span{color:var(--amber)}.archive-skeleton{gap:12px;padding:28px 16px;display:grid}.archive-skeleton span{background:linear-gradient(90deg, var(--surface-muted), #f8faf9, var(--surface-muted));background-size:200% 100%;border-radius:14px;height:116px;animation:1.4s ease-in-out infinite skeleton}@keyframes skeleton{0%{background-position:100% 0}to{background-position:-100% 0}}.loading-screen{background:var(--paper);flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:100vh;display:flex}.loading-screen strong{margin-top:10px;font-size:1.2rem}.loading-screen span{color:var(--muted);font-size:.84rem}.login-shell{background:var(--paper);place-items:center;min-height:100vh;padding:24px;display:grid}.login-ticket{background:var(--surface);width:min(100%,540px);box-shadow:var(--shadow);border-radius:16px;padding:30px}.login-ticket h1{margin:22px 0 8px;font-size:2rem}.login-lead{max-width:36ch;color:var(--muted);line-height:1.55}.login-proof{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:11px;margin:26px 0;padding:20px 0;list-style:none;display:grid}.login-proof li{align-items:center;gap:10px;font-size:.88rem;font-weight:630;display:flex}.login-proof svg{width:19px;color:var(--green)}.login-form label{margin:0 0 8px 2px;font-size:.84rem;font-weight:720;display:block}.login-form-stack,.login-message-stack{gap:16px;display:grid}.login-field{min-width:0}.login-full-button{width:100%}.password-input-wrap{position:relative}.password-input-wrap input{padding-right:54px}.password-visibility-button{width:42px;height:42px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;display:grid;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.password-visibility-button:hover{background:var(--surface-muted);color:var(--green-deep)}.password-visibility-button svg{width:19px}.login-password-help{text-align:center;margin-top:-7px}.login-alternatives{border-top:1px solid var(--line);gap:6px;padding-top:2px;display:grid}.login-text-button{min-height:42px;color:var(--green-deep);cursor:pointer;background:0 0;border:0;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:7px 10px;font-size:.8rem;font-weight:700;display:flex}.login-text-button:hover:not(:disabled){background:var(--green-soft)}.login-text-button:disabled{cursor:not-allowed;opacity:.55}.login-text-button svg{flex:none;width:17px}.login-back-button{justify-content:flex-start;width:fit-content;margin:-7px 0 16px -10px}.login-mode h2{margin-bottom:7px;font-size:1.25rem}.login-mode-help{margin:0 0 18px}.recovery-ticket h1{margin-bottom:8px}.recovery-form{margin-top:24px}.success-panel{background:var(--green-soft);color:var(--green-deep);border-radius:14px;align-items:flex-start;gap:12px;padding:16px;display:flex}.success-panel>svg{flex:none;width:22px}.success-panel>div{flex-direction:column;gap:4px;display:flex}.success-panel span{font-size:.8rem;line-height:1.4}@media (width<=430px){.login-shell{padding:14px}.login-ticket{padding:22px}.login-ticket h1{margin-top:18px}.archive-summary-values{grid-template-columns:1fr}.summary-statuses{max-width:126px}.archive-row-card>.article-status-buttons{margin-left:4px}}@media (width>=620px){.background-upload-banner{grid-template-columns:auto minmax(0,1fr) auto}.background-upload-banner>.button{grid-column:auto;width:auto;margin-top:0}.context-fields .field-group{margin-bottom:0}.color-row-fields{grid-template-columns:minmax(160px,1.2fr) minmax(150px,1fr) 110px 44px}.color-row-fields label:first-child{grid-column:auto}.archive-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-order-toggle{grid-template-columns:minmax(0,1fr) minmax(210px,auto) auto;gap:16px;padding-inline:16px}.archive-order-toggle>svg{grid-area:1/3}.archive-order-facts{text-align:right;grid-area:1/2;align-items:flex-end}.archive-header,.detail-header{flex-direction:row;justify-content:space-between;align-items:center}.archive-export-actions{display:flex}.archive-row{grid-template-columns:112px minmax(0,1fr) auto}.archive-thumbnail{width:112px;height:92px}.archive-row-price{flex-direction:column;grid-column:auto;justify-content:center;align-items:flex-end;min-width:128px}.archive-row-card>.article-status-buttons{max-width:340px;margin-left:129px}.detail-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid-two{grid-template-columns:1fr 1fr;gap:12px;display:grid}.delete-confirmation{flex-direction:row;justify-content:space-between;align-items:center}}@media (width>=900px){.app-shell{grid-template-columns:244px minmax(0,1fr);display:grid}.sidebar{border-right:1px solid var(--line);background:#edf1ee;flex-direction:column;height:100vh;padding:24px 18px;display:flex;position:sticky;top:0}.desktop-nav{gap:6px;margin-top:42px;display:grid}.desktop-nav button{min-height:48px;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:13px;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:0 12px;font-weight:690;display:grid}.desktop-nav button:hover{color:var(--ink);background:#ffffffb3}.desktop-nav button.active{background:var(--surface);color:var(--green-deep);box-shadow:var(--shadow-small)}.desktop-nav svg{width:20px}.desktop-nav b{background:var(--surface-muted);min-width:25px;height:22px;color:var(--muted);font-variant-numeric:tabular-nums;border-radius:999px;place-items:center;font-size:.68rem;display:grid}.desktop-nav button.active b{background:var(--green-soft);color:var(--green-deep)}.sidebar-status{gap:8px;margin-top:auto;display:grid}.sync-status{background:var(--amber-soft);color:var(--amber);border-radius:13px;align-items:flex-start;gap:9px;padding:12px;display:flex}.sync-status.cloud{background:var(--green-soft);color:var(--green-deep)}.sync-status>svg{flex:none;width:18px}.sync-status>div{flex-direction:column;gap:2px;display:flex}.sync-status strong{font-size:.78rem}.sync-status span{font-size:.68rem}.sign-out-button{min-height:42px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:8px;padding:0 12px;display:flex}.sign-out-button:hover{background:var(--surface);color:var(--ink)}.sign-out-button svg{width:17px}.mobile-header,.mobile-nav{display:none}.main-workspace{min-height:100vh}.capture-form,.archive-page,.entry-detail{padding:28px 30px 130px}.capture-context{padding:20px}.article-dock{max-width:720px;min-height:62px;margin-bottom:16px;top:20px}.archive-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.capture-layout{grid-template-columns:minmax(0,1.04fr) minmax(360px,.96fr);align-items:start;gap:42px}.capture-data-column{border-top:0;border-left:1px solid var(--line);padding:0 0 0 34px}.camera-well{min-height:390px}.photo-contact-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-tile,.photo-tile-image,.photo-tile-image img,.photo-tile-image .photo-fallback{min-height:205px}.save-dock{max-width:none;margin-top:32px;padding:10px 10px 10px 15px;position:static}.save-summary{color:var(--muted);align-items:center;gap:8px;margin-right:auto;font-size:.76rem;display:flex}.save-summary svg{width:17px;color:var(--green)}.save-button{width:auto;min-width:190px}.save-actions{align-items:center;width:auto;display:flex}.add-to-batch{min-width:210px}.detail-title-strip h1{font-size:2.15rem}.archive-page,.entry-detail{max-width:1060px}.archive-header{margin-top:2px}.archive-row{padding-block:14px}.detail-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.toast{width:min(420px,100vw - 60px);bottom:28px;left:auto;right:30px}.load-error{flex-direction:row;justify-content:space-between;align-items:center;max-width:900px;margin:28px auto}}@media (width>=1220px){.photo-contact-sheet{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-tile,.photo-tile-image,.photo-tile-image img,.photo-tile-image .photo-fallback{min-height:155px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.article-status-buttons>button:first-child{grid-column:1/-1}.new-photo-preview{align-items:center;gap:12px;display:flex}.new-photo-preview>img{object-fit:cover;border-radius:12px;width:96px;height:96px}.photo-mode-switch label>span{flex-direction:column;gap:3px;display:flex}.photo-mode-switch label small{display:block}
