:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25271f;background:#f4f3ef;font-synthesis:none;text-rendering:optimizeLegibility;--muted:#74766f;--line:#deded7;--green:#315d49;--green-dark:#244737;--paper:#fffefa;--orange:#c46745}*{box-sizing:border-box}body{margin:0;min-width:320px}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:#f8f7f3}.brand{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none;font-weight:700;letter-spacing:-.02em}.brand-mark{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:var(--green);color:white;font-size:15px}.topbar-note{font-size:13px;color:var(--muted)}.shell{width:min(1160px,calc(100% - 48px));margin:0 auto}.intro{padding:64px 0 58px;display:grid;grid-template-columns:1fr 420px;gap:60px;align-items:center}.eyebrow{margin:0 0 9px;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.15em}.intro h1{font-family:Georgia,serif;font-size:clamp(40px,5.2vw,64px);line-height:1.03;letter-spacing:-.045em;margin:0 0 15px;font-weight:500}.lede{max-width:420px;color:#65675f;font-size:16px;line-height:1.6;margin:0}.upload-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 10px 32px #2d35230b}.drop-area{min-height:146px;border:1px dashed #babdb2;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:.15s ease}.drop-area:hover,.drop-area:focus-within{border-color:var(--green);background:#f6f8f3}.camera-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9eee7;color:var(--green);font-size:23px;font-weight:300}.drop-title{font-size:14px;font-weight:650}.drop-hint{font-size:11px;color:var(--muted)}#photo{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-row{display:flex;gap:8px;margin-top:10px}.upload-row input{min-width:0;flex:1}.button,input,textarea{font:inherit}.upload-row input,.search-box input,.fields input,.fields textarea{border:1px solid var(--line);border-radius:8px;background:#fffefa;color:#25271f;outline:none}.upload-row input{height:40px;padding:0 11px;font-size:13px}.upload-row input:focus,.search-box:focus-within,.fields input:focus,.fields textarea:focus{border-color:#7b9a85;box-shadow:0 0 0 3px #315d4912}.button{border:0;border-radius:8px;padding:0 15px;min-height:39px;font-size:12px;font-weight:700;cursor:pointer;transition:.15s ease}.button:disabled{opacity:.55;cursor:wait}.button-primary{color:white;background:var(--green)}.button-primary:hover{background:var(--green-dark)}.button-danger{color:#a3432d;background:#f8eae5}.button-danger:hover{background:#f1d9d1}.button-quiet{color:#565950;background:#efeee9}.catalog-section{padding:0 0 66px}.section-heading{display:flex;align-items:end;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:17px}.section-heading h2{font-family:Georgia,serif;font-size:31px;line-height:1;margin:0;font-weight:500;letter-spacing:-.025em}.search-box{height:39px;min-width:240px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted)}.search-box span{font-size:20px}.search-box input{border:0;box-shadow:none!important;background:transparent;width:100%;height:100%;font-size:12px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding-top:20px}.item-card{min-width:0;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:transform .17s ease,box-shadow .17s ease}.item-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px #1f27170d}.item-card:focus-visible{outline:3px solid #749582;outline-offset:2px}.item-photo{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#e7e5df}.item-info{padding:12px}.item-title{font-size:13px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 0 5px}.item-subtitle{font-size:11px;color:var(--muted);min-height:15px;margin:0}.item-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.badge{font-size:9px;line-height:1;padding:6px 7px;border-radius:99px;background:#edf2ec;color:#48624e;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.badge.pending{background:#f5eee1;color:#966c2a}.item-date{font-size:10px;color:#8c8d85}.notice{min-height:20px;margin:12px 0 0;font-size:12px;color:var(--muted)}.notice.error{color:#a3432d}.empty-state{padding:58px 20px;text-align:center;color:var(--muted)}.empty-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e8e7e0;color:var(--green);font-size:23px}.empty-state h3{margin:12px 0 5px;color:#34362f;font-family:Georgia,serif;font-size:23px;font-weight:500}.empty-state p{font-size:13px;margin:0}.item-dialog{width:min(680px,calc(100% - 28px));max-height:calc(100% - 32px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:#25271f;box-shadow:0 24px 80px #17221c38}.item-dialog::backdrop{background:#18221ccc;backdrop-filter:blur(3px)}.item-dialog form{display:flex;flex-direction:column;max-height:calc(100vh - 32px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;padding:21px 24px 16px;border-bottom:1px solid var(--line)}.dialog-head h2{font:500 26px/1.1 Georgia,serif;letter-spacing:-.03em;margin:0}.icon-button{width:31px;height:31px;border:0;border-radius:50%;background:#efeee9;font-size:22px;line-height:1;cursor:pointer;color:#55574e}.dialog-body{overflow:auto;padding:18px 24px;display:grid;grid-template-columns:190px 1fr;gap:20px}.dialog-image{width:190px;height:190px;border-radius:10px;object-fit:cover;background:#e7e5df;position:sticky;top:0}.fields{display:grid;gap:12px}.fields label{display:grid;gap:5px;color:#61635b;font-size:10px;font-weight:700;letter-spacing:.03em}.fields input,.fields textarea{width:100%;padding:9px 10px;font-size:12px;font-weight:400;letter-spacing:0;resize:vertical}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialog-actions{display:flex;align-items:center;gap:10px;padding:14px 24px;border-top:1px solid var(--line)}.confidence{font-size:10px;color:var(--muted)}.action-end{display:flex;gap:8px;margin-left:auto}.confidence:empty{display:none}footer{height:56px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));color:#85867e;font-size:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.intro{grid-template-columns:1fr 360px;gap:28px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.topbar{height:58px;padding:0 18px}.shell{width:calc(100% - 36px)}.intro{padding:42px 0 40px;grid-template-columns:1fr;gap:24px}.intro h1{font-size:48px}.upload-card{max-width:none}.section-heading{align-items:flex-start;gap:18px;flex-direction:column}.search-box{width:100%}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.item-info{padding:10px}.dialog-body{grid-template-columns:1fr;padding:16px 18px}.dialog-image{width:100%;height:auto;max-height:260px;aspect-ratio:1.4;position:static}.dialog-head{padding:18px}.dialog-actions{padding:12px 18px;flex-wrap:wrap}.confidence{order:3;width:100%}footer{height:auto;min-height:56px;padding:12px 18px;gap:8px;flex-direction:column;align-items:flex-start}}@media(max-width:380px){.grid{grid-template-columns:1fr}.field-pair{grid-template-columns:1fr}.upload-row{flex-wrap:wrap}.upload-row input{flex-basis:100%}}

/* Topbar navigation */
.topbar-nav{display:flex;align-items:center;gap:16px}
.topbar-nav a{font-size:13px;font-weight:700;color:var(--green);text-decoration:none}
.topbar-nav a:hover{text-decoration:underline}
/* AI panel in the item dialog */
.ai-panel{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.draft-by{margin:0;font-size:11px;color:var(--muted)}
.draft-by:empty{display:none}
.rerun{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}
.fields select{width:100%;padding:8px;font:inherit;font-size:12px;font-weight:400;letter-spacing:0;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:inherit}
.other-models summary{cursor:pointer;font-size:11px;font-weight:700;color:var(--green)}
.runs-hint{font-size:11px;color:var(--muted);margin:8px 0}
.runs{display:grid;gap:8px;font-size:11px}
.run{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fbfaf6}
.run-error{background:#f8eae5;color:#7d3423}
.run p{margin:4px 0 0}
.run dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:6px 0 0}
.run dt{color:var(--muted);font-weight:700}
.run dd{margin:0;overflow-wrap:anywhere}
.run-meta{color:var(--muted);font-weight:400;font-size:10px}
/* Models page */
.models-page{padding:34px 0 48px}
.models-title{font:500 34px/1.1 Georgia,serif;letter-spacing:-.03em;margin:0 0 10px}
.defaults{font-size:12px;color:#565950;margin:14px 0 0}
.table-wrap{overflow-x:auto;margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.stats-table{width:100%;border-collapse:collapse;font-size:12px}
.stats-table th,.stats-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.stats-table thead th{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.stats-table tbody tr:last-child th,.stats-table tbody tr:last-child td{border-bottom:0}
.stats-table th[scope=row] .run-meta{display:block}
.field-scores{min-width:220px}
.field-score{display:inline-block;margin:0 10px 4px 0;white-space:nowrap}
@media(max-width:680px){.rerun{grid-template-columns:1fr 1fr}.rerun .button{grid-column:1/-1}.models-title{font-size:28px}.topbar-note{display:none}}
