:root{color-scheme:dark;--bg:#111614;--surface:#191f1c;--soft:#222b26;--ink:#e4ebe5;--muted:#a5b3a9;--green:#a4d0b2;--on-accent:#14231a;--green-hover:#b9dfc4;--line:#354239;--field-border:#65786b;--placeholder:#95a79b;--nav-hover:#29352e;--nav-active-bg:#304638;--nav-active-ink:#c1e5ca;--listed-bg:#2a3b2f;--listed-ink:#b7ddc2;--ready-bg:#3b3323;--ready-ink:#e5ca91;--sold-bg:#27383b;--sold-ink:#b0d3db;--archived-bg:#303630;--archived-ink:#c2ccc4;--badge-ink:#c4d2c8;--warning-bg:#352e21;--warning-ink:#e8cc98;--danger:#f1a49e;--danger-line:#76504c;--error-bg:#321f20;--selection:#365a43;--toast-bg:#d9e5dc;--toast-ink:#17211b;--scrim:#050907c9;--radius:6px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a{transition:background .15s,color .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:3px}::selection{background:var(--selection)}input,textarea{caret-color:var(--green)}a{color:var(--green);text-underline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.025em;line-height:1.2;font-weight:650}h2{font-size:20px;font-weight:630;letter-spacing:-.015em}h3{font-size:16px;font-weight:620}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.tabular,.money{font-variant-numeric:tabular-nums}.money{white-space:nowrap}.loading{padding:48px}.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--soft);border-right:1px solid var(--line);padding:28px 16px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;font-size:20px;font-weight:660;letter-spacing:-.025em}.brand-mark{width:29px;height:29px;background:var(--green);color:var(--on-accent);display:grid;place-items:center;border-radius:7px}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.nav{display:flex;flex-direction:column;gap:5px}.nav button{border:0;background:none;color:var(--muted);border-radius:var(--radius);padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left;font-weight:550}.nav button:hover{background:var(--nav-hover);color:var(--ink)}.nav button.active{background:var(--nav-active-bg);color:var(--nav-active-ink)}.nav .nav-count{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums}.sidebar-foot{margin-top:auto;padding:0 12px}.sidebar-foot p{font-size:12px;color:var(--muted);margin-top:8px}.local-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.main{min-width:0}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);font-size:12px;background:var(--surface);gap:12px}.topbar-actions{display:flex;gap:12px;align-items:center;margin-left:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:var(--radius);padding:9px 13px;background:var(--surface);color:var(--ink);font-weight:560;line-height:1.3;text-decoration:none;white-space:nowrap}.btn:hover{background:var(--soft)}.btn.primary{background:var(--green);border-color:var(--green);color:var(--on-accent)}.btn.primary:hover{background:var(--green-hover)}.btn.quiet{background:transparent;border-color:transparent;padding:7px 9px;color:var(--muted)}.btn.quiet:hover{background:var(--soft);color:var(--ink)}.btn.danger{color:var(--danger);border-color:var(--danger-line)}.btn.small{padding:6px 10px;font-size:12px}.page{max-width:1460px;margin:0 auto;padding:36px}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);margin-top:9px}.heading-actions{display:flex;gap:8px}.summary{display:flex;flex-wrap:wrap;gap:0;margin:0 0 32px;padding:20px 0;border-block:1px solid var(--line)}.summary>div{padding:0 30px;border-right:1px solid var(--line);display:flex;gap:12px;align-items:baseline}.summary>div:first-child{padding-left:0}.summary>div:last-child{border:0}.summary strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.015em}.summary span{font-size:12px;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:24px 0 18px;flex-wrap:wrap}.search{position:relative;min-width:260px;flex:1;max-width:440px}.search .icon{position:absolute;left:12px;top:11px;color:var(--muted);width:17px}.search input{padding-left:38px}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filter-control{width:auto;max-width:200px}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);overflow-x:auto}.tabs button{padding:0 0 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);white-space:nowrap}.tabs button:hover{color:var(--ink)}.tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.tabs span{font-size:11px;margin-left:5px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;font-weight:600;color:var(--muted);background:var(--soft);padding:13px 16px;white-space:nowrap}td{padding:16px;border-top:1px solid var(--line);font-size:13px}tbody tr.item-row{cursor:pointer}tbody tr.item-row:hover{background:var(--soft)}.item-cell{display:flex;align-items:center;gap:12px;min-width:240px}.thumb{width:44px;height:48px;background:var(--soft);border-radius:4px;display:grid;place-items:center;flex:none;color:var(--muted);overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.item-name{display:block;font-weight:600;color:var(--ink);text-align:left;background:none;border:0;padding:0;line-height:1.45;max-width:280px}.item-meta{color:var(--muted);font-size:11px;margin-top:4px;display:flex;gap:7px}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:4px;font-size:11px;white-space:nowrap;background:var(--soft);color:var(--badge-ink)}.badge.listed{background:var(--listed-bg);color:var(--listed-ink)}.badge.ready{background:var(--ready-bg);color:var(--ready-ink)}.badge.sold,.badge.shipped{background:var(--sold-bg);color:var(--sold-ink)}.badge.archived{background:var(--archived-bg);color:var(--archived-ink)}.status-dot{width:4px;height:4px;border-radius:50%;background:currentColor}.subline{display:block;font-size:11px;color:var(--muted);margin-top:5px}.positive{color:var(--green)}.negative{color:var(--danger)}.empty{padding:64px 24px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.empty .empty-icon{width:56px;height:56px;border-radius:12px;background:var(--soft);display:grid;place-items:center;margin:0 auto 20px;color:var(--green)}.empty .empty-icon .icon{width:26px;height:26px}.empty h2{margin-bottom:9px}.empty p{max-width:420px;margin:0 auto 22px;color:var(--muted)}.empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.footnote{font-size:12px;color:var(--muted);margin-top:16px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.notice{background:var(--soft);padding:14px 16px;border-radius:var(--radius);display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;font-size:13px}.notice.warning{background:var(--warning-bg);color:var(--warning-ink)}.demo-banner{padding:9px 36px;display:flex;justify-content:space-between;align-items:center;background:var(--warning-bg);color:var(--warning-ink);font-size:12px}.editor{max-width:1080px}.back{margin-bottom:22px;margin-left:-9px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:32px}.form-section{padding:26px 0;border-top:1px solid var(--line)}.form-section:first-child{padding-top:0;border:0}.form-section h2{font-size:17px;margin-bottom:5px}.section-help{color:var(--muted);font-size:12px;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:570}.field small{font-size:11px;line-height:1.5;color:var(--muted)}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid var(--field-border);border-radius:var(--radius);padding:10px 11px;color:var(--ink);background:var(--surface);min-height:39px}input::placeholder,textarea::placeholder{color:var(--placeholder)}input[readonly]{background:var(--soft);color:var(--muted)}textarea{resize:vertical;min-height:90px;line-height:1.5}input[type=file]{font-size:12px;max-width:100%}.editor-aside{align-self:start;position:sticky;top:24px;min-width:0}.photo-preview{height:200px;background:var(--soft);border-radius:var(--radius);display:grid;place-items:center;overflow:hidden;color:var(--muted)}.photo-preview>.icon{width:48px;height:48px;stroke-width:1}.photo-preview img{width:100%;height:100%;object-fit:contain}.photo-tools{display:flex;flex-direction:column;gap:12px;margin-top:14px}.aside-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.aside-section h3{font-size:13px;margin-bottom:12px}.preview-title{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.ledger{margin:0}.ledger>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;font-size:12px}.ledger dt{color:var(--muted)}.ledger dd{margin:0;font-variant-numeric:tabular-nums}.ledger .total{border-top:1px solid var(--line);margin-top:5px;padding-top:12px;font-weight:600}.list-editor{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:16px;margin-top:14px}.list-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.list-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-actions{border-top:1px solid var(--line);padding-top:22px;display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:10px}.form-actions .delete{margin-right:auto}.validation{padding:12px 15px;border:1px solid var(--danger-line);background:var(--error-bg);border-radius:var(--radius);color:var(--danger);margin:18px 0;line-height:1.5}.guidance{max-width:900px}.guidance section{padding:28px 0;border-top:1px solid var(--line)}.guidance h2{margin-bottom:12px}.guidance p{color:var(--muted);max-width:70ch}.sku-example{display:flex;gap:8px;align-items:baseline;margin:22px 0;flex-wrap:wrap}.sku-example code{background:var(--soft);font-size:24px;padding:14px 18px;border:1px solid var(--line);border-radius:var(--radius);color:var(--green)}.sku-explanation{display:flex;gap:24px;flex-wrap:wrap}.sku-explanation>div{min-width:130px}.sku-explanation strong{display:block;font-size:13px;margin-bottom:5px}.sku-explanation span{color:var(--muted);font-size:12px}.rule-list{padding-left:20px;max-width:70ch;line-height:1.75;color:var(--muted)}.rule-list li{margin:8px 0}.example-name{border:1px solid var(--line);background:var(--surface);padding:16px;border-radius:var(--radius);margin:16px 0;font-size:14px}.settings{max-width:740px}.settings-section{padding:26px 0;border-top:1px solid var(--line)}.settings-section h2{margin-bottom:8px}.settings-section p{color:var(--muted);margin-bottom:18px;font-size:13px}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.hidden{display:none!important}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--toast-bg);color:var(--toast-ink);padding:12px 18px;border-radius:var(--radius);font-size:13px;z-index:100;max-width:calc(100% - 32px);box-shadow:0 5px 18px #00000040;display:none}#toast.show{display:block}.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}.sort{border:0;background:none;padding:0;color:inherit;font-size:inherit;font-weight:inherit}.narrow-table{min-width:650px}.filter-control{width:auto!important}.check{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}.save-state{color:var(--muted);font-size:11px}.table-title{margin-bottom:16px}.activity{padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line)}.activity p{font-size:13px}.dot-separator{color:var(--muted)}
@media(min-width:1450px){.page{padding:42px 48px}.topbar{padding:0 48px}}
@media(max-width:1100px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.page{padding:28px 24px}.topbar{padding:0 24px}.summary>div{padding:0 18px}.editor-layout{grid-template-columns:minmax(0,1fr) 220px;gap:24px}.inventory-table th:nth-child(6),.inventory-table td:nth-child(6){display:none}.topbar .today{display:none}}
@media(max-width:800px){.app-shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px 0;gap:20px}.brand{padding:0}.nav{flex-direction:row;gap:18px;overflow-x:auto}.nav button{border-radius:0;padding:0 0 13px;border-bottom:2px solid transparent;gap:6px}.nav button.active{background:transparent;border-bottom-color:var(--green)}.nav .icon{width:16px}.nav-count,.sidebar-foot{display:none}.topbar{height:50px;padding:0 20px}.page{padding:28px 20px}.demo-banner{padding:8px 20px}.editor-layout{grid-template-columns:minmax(0,1fr) 200px;gap:20px}.summary>div{padding:0 15px}.summary strong{font-size:18px}.summary span{font-size:11px}.summary{margin-bottom:24px}.page-heading{margin-bottom:24px}}
@media(max-width:600px){h1{font-size:26px}.page{padding:24px 16px}.topbar{padding:0 16px}.topbar-actions{gap:4px}.topbar .btn{font-size:11px;padding:7px}.nav{gap:20px}.nav button{font-size:12px}.nav .icon{display:none}.nav button:hover{background:none}.page-heading{gap:12px;align-items:center}.page-heading p{font-size:12px;max-width:260px}.page-heading .btn{font-size:12px;padding:9px 11px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.summary{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:18px 0}.summary>div{border:0;padding:0!important;gap:9px}.summary strong{font-size:19px}.summary span{font-size:12px}.tabs{gap:22px}.toolbar{margin-top:18px;gap:10px;align-items:stretch}.search{max-width:none;min-width:0;flex-basis:100%}.filters{width:100%}.filters select{flex:1;max-width:none;min-width:0;font-size:12px}.filters .check{margin-top:2px}.inventory-table thead{display:none}.inventory-table,.inventory-table tbody,.inventory-table tr{display:block}.inventory-table tr{padding:16px;position:relative}.inventory-table tr+tr{border-top:1px solid var(--line)}.inventory-table td{display:inline-block;padding:10px 0 0;border:0;font-size:12px;vertical-align:top}.inventory-table td:first-child{display:block;padding:0;margin-bottom:2px}.inventory-table td:nth-child(2){margin-right:16px}.inventory-table td:nth-child(3){margin-right:16px}.inventory-table td:nth-child(4){margin-right:16px}.inventory-table td:nth-child(6){display:none}.inventory-table td:last-child{position:absolute;right:11px;top:17px;padding:0}.item-cell{min-width:0;padding-right:28px}.item-name{font-size:13px}.inventory-table .subline{font-size:10px}.thumb{width:42px;height:46px}.inventory-table td[data-label="Price"]:before{content:'Ask ';color:var(--muted)}.inventory-table td[data-label="Cost"]:before{content:'Cost ';color:var(--muted)}.editor-layout{display:flex;flex-direction:column-reverse;gap:28px}.editor-aside{position:static}.photo-preview{height:140px;width:140px;float:left;margin-right:18px}.photo-tools{min-height:140px;padding-top:10px}.editor-aside .aside-section{display:none}.form-grid{gap:14px}.form-actions{position:sticky;bottom:0;padding:16px 0;background:var(--bg);z-index:5;flex-wrap:wrap}.form-actions .save-state{display:none}.empty{padding:44px 20px}.empty h2{font-size:18px}.empty p{font-size:13px}.notice{align-items:flex-start;font-size:12px;flex-wrap:wrap}.footnote{font-size:11px}.form-section{padding:24px 0}.sku-example code{font-size:20px}.settings-actions .btn{flex-grow:1}.demo-banner{padding:8px 16px}.save-state{display:none}.form-section input,.form-section select,.form-section textarea,.settings input,.settings textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.form-section>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none}.form-section>summary::-webkit-details-marker{display:none}.form-section>summary:after{content:"+";font-size:18px;color:var(--muted)}.form-section[open]>summary:after{content:"−"}.form-section>summary h2{margin:0;flex:1}.form-section[open]>summary{margin-bottom:14px}.form-section>summary:focus-visible{outline:2px solid var(--green);outline-offset:6px;border-radius:4px}

.search #inventory-search{padding-left:38px}
@media(max-width:600px){.sidebar{gap:10px}.nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;overflow:visible}.nav button{justify-content:center;white-space:nowrap;min-height:40px;padding:12px 0}.topbar>span{display:none}.topbar-actions{width:100%;justify-content:space-between}.topbar .btn{font-size:12px}.demo-banner{align-items:flex-start}.form-actions .btn{font-size:12px}}

@media(max-width:600px){.editor-aside .aside-section{display:block;clear:both;margin-top:20px;padding-top:18px}.editor-aside .ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.editor-aside .ledger .total{grid-column:1/-1}.editor-aside .ledger>div{gap:8px}.editor-aside .preview-title{font-size:12px}}

.photo-preview>a{display:block;width:100%;height:100%}.photo-gallery{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;clear:both}.photo-thumb{padding:2px;border:1px solid var(--line);border-radius:4px;background:var(--surface);width:51px;height:55px;overflow:hidden}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-thumb.selected{border:2px solid var(--green);padding:1px}.photo-caption{font-size:11px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.photo-actions{display:flex;gap:5px;flex-wrap:wrap}.photo-gallery+ .photo-caption{margin-bottom:8px}@media(max-width:600px){.photo-preview{float:none;height:220px;width:100%;margin-right:0}.photo-tools{min-height:0;padding-top:0}.photo-gallery{margin-top:10px}.photo-thumb{width:55px;height:58px}}

.photo-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.photo-open{display:block;width:100%;height:100%;min-width:0;min-height:0;background:transparent;border:0;padding:0;cursor:zoom-in}.photo-open img{display:block;object-fit:contain;object-position:center}.photo-dialog{max-width:min(1000px,94vw);width:fit-content;max-height:94vh;border:1px solid var(--line);border-radius:8px;padding:16px;color:var(--ink)}.photo-dialog::backdrop{background:var(--scrim)}.photo-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:12px}.photo-dialog>img{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto}.photo-dialog>a{margin-top:12px}
.research-summary{margin:0 0 20px;max-width:70ch;line-height:1.6}.research-heading{font-size:14px;margin:24px 0 12px}.market-research{margin-bottom:24px}.research-table table{min-width:0;table-layout:fixed;width:100%}.research-table th,.research-table td{padding:12px 10px;overflow-wrap:anywhere;vertical-align:top}.research-table th:first-child{width:31%}.research-table th:nth-child(2){width:19%}.research-table th:nth-child(3){width:18%}.research-table .money{white-space:normal}.research-table .subline{line-height:1.5}.research-table a{text-underline-offset:3px}.research-table a:hover{text-decoration-thickness:2px}
@media(max-width:600px){.research-table table,.research-table tbody,.research-table tr,.research-table td{display:block}.research-table thead{display:none}.research-table tr{padding:14px}.research-table tr+tr{border-top:1px solid var(--line)}.research-table td{border:0;padding:4px 0}.research-table td:nth-child(2):before{content:'Date: ';color:var(--muted)}.research-table td:nth-child(3):before{content:'Price: ';color:var(--muted)}.research-table td:nth-child(4){margin-top:8px}.research-table .subline{font-size:12px}}
.item-shell .main{padding-top:56px}.item-shell .topbar{display:none}.item-navigation{position:fixed;top:0;left:216px;right:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px)}.item-navigation-inner{max-width:1080px;margin:auto;min-height:56px;padding:8px 36px;display:flex;align-items:center;gap:16px}.item-navigation .btn{min-height:40px}.item-navigation .btn:disabled{cursor:default}.item-navigation-context{display:flex;align-items:center;justify-content:center;gap:12px;flex:1;min-width:0;color:var(--muted);font-size:12px}.item-navigation-position{white-space:nowrap;font-variant-numeric:tabular-nums}.item-navigation-controls{display:flex;gap:8px}.item-shell .editor-aside{top:80px}.item-shell .editor{scroll-margin-top:80px}.item-shell #page-title,.item-shell .form-section,.item-shell input,.item-shell select,.item-shell textarea{scroll-margin-top:80px}
@media(min-width:1450px){.item-navigation-inner{padding-inline:48px}}
@media(max-width:1100px){.item-navigation{left:185px}.item-navigation-inner{padding-inline:24px}}
@media(max-width:800px){.item-navigation{left:0}.item-navigation-inner{padding-inline:20px}.item-shell{padding-top:calc(56px + env(safe-area-inset-top,0px))}.item-shell .main{padding-top:0}}
@media(max-width:600px){.item-navigation-inner{padding-inline:12px;gap:8px}.item-navigation-controls{gap:4px}.item-navigation .btn{padding-inline:8px}.item-navigation-context{gap:6px}.item-navigation .icon{width:16px;height:16px}}


/* Category jump menu stays independent of list-based Previous / Next. */
.item-category-picker{position:relative;min-width:0}.item-category-picker>summary{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;list-style:none;border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;color:var(--ink);background:var(--surface)}.item-category-picker>summary::-webkit-details-marker{display:none}.item-category-picker>summary:hover,.item-category-picker[open]>summary{background:var(--soft)}.item-category-picker>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.item-category-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-category-count{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.item-category-picker .icon{width:16px;height:16px}.item-category-menu{position:absolute;top:calc(100% + 8px);left:0;width:360px;max-width:calc(100vw - 24px);max-height:min(60vh,440px);overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--field-border);border-radius:var(--radius)}.item-category-menu ul{list-style:none;margin:0;padding:0}.item-category-menu .btn{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}.item-category-menu .btn small{font-size:11px;color:var(--muted)}.item-category-menu .btn[aria-current=true]{background:var(--nav-active-bg);color:var(--nav-active-ink)}.item-navigation-position{font-size:11px}.photo-dialog{background:var(--surface)}:root{scrollbar-color:var(--field-border) var(--bg)}input[type=file]::file-selector-button{font:inherit;color:var(--ink);background:var(--soft);border:1px solid var(--field-border);border-radius:var(--radius);padding:8px;margin-right:8px;cursor:pointer}
@media(max-width:600px){.item-navigation-context{justify-content:flex-start}.item-navigation-position,.item-navigation-button-label{display:none}.item-navigation-controls .btn{min-width:40px}.item-category-picker{flex:1}.item-category-picker>summary{padding-inline:8px;gap:6px}.item-category-menu{position:fixed;top:calc(56px + env(safe-area-inset-top,0px));left:12px;right:12px;width:auto;max-width:none}}

.photo-current-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.photo-current-actions .btn{min-height:40px;flex:1}.photo-dialog .photo-current-actions{justify-content:flex-end}.photo-dialog .photo-current-actions .btn{flex:none}.photo-dialog-heading strong{min-width:0;overflow-wrap:anywhere}.photo-dialog-heading .btn{flex:none}.photo-dialog>img{max-height:calc(94vh - 160px)}

.photo-site-links{display:flex;gap:8px;margin-bottom:10px}.photo-site-link.btn{width:40px;height:40px;min-width:40px;padding:9px;display:inline-flex;align-items:center;justify-content:center}.photo-site-link svg{display:block;width:22px;height:22px;flex:none}.photo-site-link:nth-child(2) svg{width:30px}.photo-dialog .photo-site-links{justify-content:flex-end}.photo-dialog>img{max-height:calc(94vh - 210px)}

/* Item actions remain available while the form scrolls. */
.item-footer{position:fixed;bottom:0;left:216px;right:0;z-index:20;background:var(--bg);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
.item-footer .form-actions{max-width:1080px;margin:0 auto;padding:16px 36px;border:0;position:static;flex-wrap:wrap}
.item-footer .btn{min-height:40px}
.item-shell .main{padding-bottom:var(--item-footer-height,80px)}
html:has(.item-shell){scroll-padding-bottom:calc(var(--item-footer-height,80px) + 16px)}
body:has(.item-shell) #toast{bottom:calc(var(--item-footer-height,80px) + 16px)}
@media(min-width:1450px){.item-footer .form-actions{padding-inline:48px}}
@media(max-width:1100px){.item-footer{left:185px}.item-footer .form-actions{padding-inline:24px}}
@media(max-width:800px){.item-footer{left:0}.item-footer .form-actions{padding-inline:20px}}
@media(max-width:600px){.item-footer .form-actions{padding-inline:16px;gap:8px}.item-footer .delete{margin-right:0}.item-footer #save-item{margin-left:auto}}

/* Selling copy belongs above the internal item details. */
.field .selling-post-label{font-size:17px;font-weight:630;letter-spacing:-.015em}.selling-post-section .section-help{margin-bottom:12px}#sellingDescription{line-height:1.65;min-height:240px}

.selling-post-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.selling-post-header .btn{min-height:40px}#save-item[data-saved="true"]{opacity:1;cursor:default}

.found-listings{margin:20px 0 28px}.found-listings>.list-editor-head{margin-bottom:16px;gap:12px}.found-listing-link{display:inline-block;margin-top:8px}.found-listing-link.hidden{display:none}

/* Six inventory totals retain reading order at each viewport width. */
.summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}.summary>div{min-width:0;padding:0!important;border:0;flex-direction:column;align-items:flex-start;gap:6px}.summary strong{overflow-wrap:anywhere}.summary span{line-height:1.5}
@media(max-width:1100px){.summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Good Dill$ keeps the ledger typography; the dollar uses a lowercase s. */
.brand-mark{flex:none}.brand-name{white-space:nowrap}.brand-dollar{position:relative;display:inline-block}.brand-dollar::after{content:"";position:absolute;left:50%;top:21%;height:77%;width:1px;background:currentColor;transform:translateX(-50%)}

.inventory-name-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.inventory-name-line .item-name{min-width:0;overflow-wrap:anywhere}.inventory-title-line{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:start;gap:4px}.inventory-title-line .inventory-rename-trigger{width:28px;min-height:28px;padding:6px;margin-top:-4px}.inventory-rename-trigger .icon{width:15px;height:15px}.inventory-rename{margin:0;min-width:0}.inventory-name-input{width:240px;max-width:100%;min-width:120px;flex:1;padding:7px 9px}.rename-error{color:var(--danger);font-size:12px;max-width:40ch;margin-top:6px}.rename-error:empty{display:none}.item-cell>div:last-child{min-width:0}.inventory-rename .btn:disabled{cursor:wait}
@media(max-width:600px){.inventory-name-input{font-size:16px;flex-basis:100%;width:100%}.inventory-name-line .btn{min-height:36px}}

.item-page-heading>div{width:100%;min-width:0}.item-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.item-title-line h1{overflow-wrap:anywhere;min-width:0}#item-name-input{font-size:24px;font-weight:650;letter-spacing:-.025em;line-height:1.2;width:420px;max-width:100%;min-width:0;padding:8px 10px}.item-page-heading #item-name-error{margin-top:8px;max-width:65ch}
@media(max-width:600px){.item-title-line{gap:8px}#item-name-input{font-size:20px;flex-basis:100%;width:100%}.item-title-line .btn{min-height:36px}}

button.brand{border:0;background:transparent;color:var(--ink);text-align:left;border-radius:var(--radius)}
button.brand:hover{color:var(--green)}

/* Saved comparisons use two quiet ledger lines. */
.found-listing-actions{display:flex;align-items:center;gap:4px;flex:none}
.found-listings .list-editor-head{flex-wrap:wrap;gap:8px}
.found-listing-row{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.found-listing-main{display:flex;align-items:center;gap:8px;min-width:0;min-height:32px}
.found-listing-site{width:28px;height:20px;display:flex;align-items:center;justify-content:center;flex:none}
.found-listing-site svg,.found-listing-site img{max-width:28px;width:100%;height:20px;object-fit:contain}
.found-listing-site img+.icon{display:none}.found-listing-site img.hidden+.icon{display:block}
.found-listing-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-underline-offset:3px}
.found-listing-price{font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:4px}
.found-listing-notes{margin:0 0 0 36px;color:var(--muted);font-size:12px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.found-listing-row .btn{padding:5px 6px;font-size:11px;min-height:32px}
@media(max-width:600px){.found-listing-main{gap:6px}.found-listing-site{width:24px}.found-listing-notes{margin-left:30px}.found-listing-row .found-listing-actions{gap:0}.found-listings .list-editor-head>.found-listing-actions{margin-left:auto}}

.item-header-listings{max-width:1080px;margin:auto;padding:0 36px 8px;display:flex;align-items:center;gap:12px}.item-header-listings[hidden]{display:none}.item-listing-links{display:flex;gap:8px;overflow-x:auto;min-width:0;padding:3px}.item-listing-link{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:var(--radius);font-size:12px;color:var(--ink);text-decoration:none;background:var(--surface)}a.item-listing-link:hover{background:var(--soft)}.item-header-listings>span{flex:none}.item-shell .main{padding-top:var(--item-header-height,57px)}.item-shell .editor-aside{top:calc(var(--item-header-height,57px) + 24px)}.item-shell .editor,.item-shell #page-title,.item-shell .form-section,.item-shell input,.item-shell select,.item-shell textarea{scroll-margin-top:calc(var(--item-header-height,57px) + 24px)}
@media(min-width:1450px){.item-header-listings{padding-inline:48px}}
@media(max-width:1100px){.item-header-listings{padding-inline:24px}}
@media(max-width:800px){.item-header-listings{padding-inline:20px}.item-shell{padding-top:var(--item-header-height,57px)}.item-shell .main{padding-top:0}}
@media(max-width:600px){.item-header-listings{padding-inline:12px;gap:8px}.item-category-menu{top:calc(var(--item-header-height,57px) + 8px)}}

/* The second header row keeps item prices and the Listings shortcut on the right. */
.item-header-listings{flex-wrap:wrap;gap:8px 16px;min-height:48px}
.item-header-platforms{min-width:0;max-width:100%;flex:0 1 auto}
.item-header-platforms[hidden]{display:none}
.item-header-pricing{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-left:auto;min-width:0}
.item-header-prices{display:flex;align-items:center;gap:16px;margin:0;font-size:12px}
.item-header-prices>div{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.item-header-prices dt{color:var(--muted)}
.item-header-prices dd{margin:0;font-variant-numeric:tabular-nums;font-weight:570}
.item-header-pricing>.btn{min-height:36px;flex:none}
.ledger .profit-low{font-weight:650;color:var(--ink)}
.platform-listings-toolbar{gap:12px;flex-wrap:wrap}
.platform-listings-toolbar .section-help{flex:1;margin:0;min-width:180px}
.platform-listings-toolbar>.btn{flex:none;min-height:36px}
.platform-listings-table table{width:100%;min-width:0}
.platform-listings-table th,.platform-listings-table td{padding:10px;font-size:12px;vertical-align:middle}
.platform-listings-table th:first-child{width:33%}
.platform-listings-table td:last-child{width:1%;white-space:nowrap}
.platform-listing-link{display:inline-flex;align-items:center;gap:8px;max-width:100%;text-underline-offset:3px}
.platform-listing-label{overflow-wrap:anywhere}
.platform-listings-table .list-editor{margin:0;padding:16px}
.platform-listings-table .list-editor-head{gap:8px;flex-wrap:wrap}
.platform-listings-table .found-listing-actions .btn{min-height:32px;padding:5px 6px;font-size:11px}
.platform-listings-table .list-editor .found-listing-actions .btn{min-height:36px;padding:6px 10px;font-size:12px}
.platform-listings-table tr:has(.list-editor)>td{padding:12px 0;width:auto;white-space:normal}
@media(max-width:1100px){.item-header-prices{gap:12px}.item-header-pricing{gap:12px}}
@media(max-width:600px){
 .item-header-platforms{flex-basis:100%}
 .item-header-pricing{flex:1;gap:8px;align-items:center}
 .item-header-prices{flex:1;gap:4px 10px;flex-wrap:wrap;justify-content:flex-end;font-size:11px}
 .item-header-prices>div{gap:4px}
 .editor-aside .ledger .profit-low{grid-column:1/-1}
 .platform-listings-table thead{display:none}
 .platform-listings-table table,.platform-listings-table tbody,.platform-listings-table tr{display:block}
 .platform-listings-table tr{padding:12px}
 .platform-listings-table tr+tr{border-top:1px solid var(--line)}
 .platform-listings-table td{display:inline-block;padding:4px 10px 4px 0;border:0;width:auto!important;font-size:12px}
 .platform-listings-table td:first-child{display:block;padding-right:0}
 .platform-listings-table td[data-label]:before{content:attr(data-label) ': ';color:var(--muted)}
 .platform-listings-table td:last-child{display:block;padding:4px 0 0;white-space:normal}
 .platform-listings-table tr:has(.list-editor){padding:0}
 .platform-listings-table tr:has(.list-editor)>td{display:block;padding:12px 0}
 .platform-listings-table .list-editor{padding:12px}
}

/* Inline inventory controls share the ledger's existing status and amount styling. */
.inventory-table select.inventory-status{width:auto;min-width:100px;min-height:36px;padding:6px 24px 6px 8px;border:1px solid transparent;font-size:12px;cursor:pointer}.inventory-table select.inventory-status:hover{border-color:var(--field-border)}.inventory-status option{background:var(--surface);color:var(--ink)}
.inventory-value.btn{padding:7px 8px;margin-left:-8px;border-color:transparent;background:transparent;color:var(--ink);font-size:inherit;font-variant-numeric:tabular-nums;min-height:36px}.inventory-value.btn:hover{background:var(--soft);border-color:var(--line)}
.inventory-amount-editor{width:170px;max-width:100%;white-space:normal}.inventory-amount-fields{display:grid;gap:8px}.inventory-amount-fields label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.inventory-amount-fields input{font-variant-numeric:tabular-nums;padding:7px 9px!important;min-height:36px!important}.inventory-amount-actions{display:flex;gap:6px;margin-top:8px}.inventory-amount-editor .rename-error{max-width:170px;white-space:normal}.inventory-amount-actions .btn{min-height:36px}
@media(max-width:600px){.inventory-amount-editor{width:148px;margin-top:6px}.inventory-amount-fields input{font-size:16px}.inventory-table td:has(.inventory-amount-editor){display:block;margin-right:0}.inventory-table select.inventory-status{min-height:40px}.inventory-value.btn{min-height:40px}}

/* Platform fee reference follows the ledger table; phone rows retain labels. */
.fees-scope{color:var(--muted);margin:0 0 20px;line-height:1.6;max-width:75ch}
.fees-table{table-layout:fixed;width:100%;min-width:0}
.fees-table th:nth-child(1){width:20%}.fees-table th:nth-child(2){width:22%}.fees-table th:nth-child(3){width:40%}.fees-table th:nth-child(4){width:18%}
.fees-table tbody th,.fees-table td{padding:18px 16px;vertical-align:top;line-height:1.6;text-align:left;overflow-wrap:anywhere}
.fees-table tbody th{font-size:14px;color:var(--ink);font-weight:630;background:transparent;letter-spacing:normal;text-transform:none}
.fees-rate{font-weight:600;font-variant-numeric:tabular-nums}.fees-links a{display:block;margin-bottom:8px;text-decoration:underline;text-underline-offset:3px}.fees-links a:last-child{margin-bottom:0}
.fees-note{color:var(--muted);line-height:1.6;max-width:75ch;margin:20px 0 0}
@media(max-width:700px){.fees-table,.fees-table tbody,.fees-table tr,.fees-table tbody th,.fees-table td{display:block;width:100%}.fees-table thead{display:none}.fees-table tr{padding:18px 16px}.fees-table tr+tr{border-top:1px solid var(--line)}.fees-table tbody th,.fees-table td{border:0;padding:0;background:transparent}.fees-table tbody th{font-size:16px;margin-bottom:12px;width:100%}.fees-table td+td{margin-top:12px}.fees-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:570;color:var(--muted);margin-bottom:4px}.fees-links a{display:inline-block;margin:0 16px 8px 0}.fees-table-wrap{overflow:visible}}

.fees-platform-link{display:flex;align-items:flex-start;gap:8px;text-decoration:none;white-space:normal;min-width:0;width:100%}.fees-platform-link>span:last-child{text-decoration:underline;text-underline-offset:3px;min-width:0}.fees-platform-link .found-listing-site{width:24px;height:24px;margin-top:1px}.fees-platform-link .found-listing-site img,.fees-platform-link .found-listing-site svg{height:24px;max-width:24px}

@media(max-width:700px){.fees-table tbody th:nth-child(1){width:100%}}

.inventory-platform-link.btn{margin-left:-9px;font-size:inherit;min-height:36px;text-align:left}.inventory-platform-link.btn:hover{color:var(--green)}

@media (hover:hover) and (pointer:fine){.inventory-name-line [data-action="rename"]{opacity:0;pointer-events:none}.item-cell>div:last-child:hover .inventory-name-line [data-action="rename"],.item-cell>div:last-child:focus-within .inventory-name-line [data-action="rename"]{opacity:1;pointer-events:auto}}

/* Acquisition locations inherit the compact listing editor. */
.location-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}
.location-row h2{font-size:17px;margin:0 0 6px}.location-row p{margin:6px 0;line-height:1.6}.location-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:10px}.location-notes{white-space:pre-wrap;max-width:72ch}.personal-rating{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-size:13px}.personal-rating svg{fill:currentColor;width:16px;height:16px}.empty-locations{color:var(--muted);padding:24px 0}.location-editor{margin:12px 0 24px}.location-editor h3{margin:0;font-size:17px}.location-editor #location-error{color:var(--danger);margin:8px 0 0}.location-visited{display:flex!important;align-items:center;gap:8px}.location-visited input{width:auto;min-height:18px}.location-rating{border:0;padding:0;margin:18px 0 0;min-width:0}.location-rating legend{font-size:12px;font-weight:570;margin-bottom:8px}.rating-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rating-choice{position:relative;cursor:pointer}.rating-choice input{position:absolute;opacity:0;width:1px;height:1px}.rating-choice>span{display:flex;gap:5px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}.rating-choice input:checked+span{border-color:var(--green);color:var(--green);background:var(--soft)}.rating-choice input:checked+span svg{fill:currentColor}.rating-choice input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}.rating-choice input:disabled+span{opacity:.5;cursor:default}.location-rating small{display:block;margin-top:8px;color:var(--muted)}.source-field{position:relative}.source-options{position:absolute;left:0;right:0;top:100%;z-index:20;background:var(--surface);border:1px solid var(--field-border);border-radius:6px;max-height:280px;overflow:auto}.source-options button{display:block;width:100%;padding:10px 12px;text-align:left;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer}.source-options button:hover,.source-options button:focus{background:var(--soft);outline:2px solid var(--green);outline-offset:-2px}.source-options .icon{vertical-align:middle}.source-options .subline{white-space:normal}
@media(max-width:600px){.location-editor .list-editor-head{flex-wrap:wrap;gap:12px}.location-row{gap:12px}.location-meta{gap:10px}.rating-options{gap:5px}}
@media(max-width:600px){.location-editor .form-grid{grid-template-columns:minmax(0,1fr)}}

.locations-layout.has-location-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:32px;align-items:start}.location-row{padding:0}.location-summary{display:flex;flex-direction:column;gap:8px;width:100%;padding:22px 12px;text-align:left;background:transparent;border:0;border-radius:6px;color:var(--ink);font:inherit}.location-summary:hover{background:var(--soft)}.location-summary[aria-pressed=true]{background:var(--nav-active-bg)}.location-name{font-size:17px;font-weight:630;overflow-wrap:anywhere}.location-summary-address{line-height:1.5;color:var(--muted)}.location-summary .location-meta{margin:0}.location-stars{display:inline-flex;gap:2px}.location-stars>span{display:inline-flex}.location-stars .icon{fill:none;width:15px;height:15px}.location-stars .filled .icon{fill:currentColor}.location-unvisited{font-size:11px;color:var(--muted)}.google-location-rating{font-size:12px;color:var(--muted);line-height:1.6}.location-detail{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:20px}.location-detail h2{font-size:20px;overflow-wrap:anywhere}.location-detail .list-editor-head{align-items:flex-start;gap:12px;margin-bottom:12px}.location-detail .list-editor-head .btn{flex:none}.location-detail-ratings{display:flex;flex-direction:column;gap:10px;margin:16px 0 8px}.location-address{color:var(--muted);line-height:1.6}.location-detail-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.location-detail-section h3{font-size:14px;margin-bottom:10px}.location-detail-section select{width:100%;min-width:0}.location-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}#location-panel{position:sticky;top:20px}.location-map-layout{display:grid;grid-template-columns:minmax(160px,200px) minmax(240px,1fr) minmax(230px,290px);gap:16px;align-items:start}#locations-map{height:620px;min-height:360px;width:100%;border:1px solid var(--line);border-radius:6px;background:var(--soft);z-index:0}.location-map-stage>p{margin-top:10px;line-height:1.6}.location-map-sidebar,.location-map-stage{min-width:0}.location-map-sidebar{position:sticky;top:20px}.location-map-layout>#location-panel{min-width:0;max-height:620px;overflow:auto}.location-detail-empty p{margin-top:12px;line-height:1.6}.map-index-heading{font-size:17px;margin-bottom:10px}.map-location-index{max-height:620px;overflow:auto}.location-summary.compact{padding:16px 12px;border-bottom:1px solid var(--line);border-radius:0}.location-map-pin svg{width:28px;height:36px;fill:var(--green);stroke:var(--on-accent);stroke-width:1.5}.location-map-pin circle{fill:var(--on-accent)}.leaflet-tooltip.location-map-label{background:var(--surface);color:var(--ink);border:1px solid var(--field-border);box-shadow:none;font:600 12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.leaflet-tooltip-top.location-map-label:before{border-top-color:var(--field-border)}.leaflet-container .leaflet-control-attribution{background:var(--surface);color:var(--muted);font-size:11px}.leaflet-container .leaflet-control-attribution a{color:var(--green)}.leaflet-container .leaflet-control-zoom a{background:var(--surface);color:var(--ink);border-color:var(--line)}.leaflet-container .leaflet-control-zoom a:hover{background:var(--soft)}.leaflet-container .leaflet-control-zoom a.leaflet-disabled{color:var(--muted)}.leaflet-bar{border:1px solid var(--line)!important;box-shadow:none}.leaflet-container:focus-visible,.leaflet-marker-icon:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:900px){.location-map-layout{grid-template-columns:minmax(0,1fr)}.location-map-stage{order:-1}#locations-map{height:480px}.map-location-index{max-height:260px}.location-map-sidebar{position:static}.location-map-layout>#location-panel{position:static;max-height:none;overflow:visible}}
@media(max-width:900px){.locations-layout.has-location-panel{display:flex;flex-direction:column}.locations-layout #location-panel{order:-1;position:static;width:100%}.locations-layout #location-list{width:100%}.location-detail{padding:16px}}
@media(max-width:600px){#locations-map{height:420px}.location-detail-actions .btn{min-height:40px}.location-summary{padding:18px 8px}.location-detail-section select{font-size:16px}}

/* Dark map tiles retain the workspace palette for pins, labels and controls. */
.location-map-dark .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.78) contrast(.92) saturate(.5)}
.location-map-dark.leaflet-container{background:var(--bg)}

/* Good Dill$ v1.1 workflow styles. Deliberately scoped away from Locations/map. */
.workflow-shell .workflow-more-nav{margin-top:20px;border-top:1px solid var(--line);padding-top:12px}
.workflow-shell .workflow-more-nav>summary{display:none}
.workflow-shell .workflow-more-menu{display:grid;gap:4px}
.workflow-shell .workflow-more-nav:not([open])>.workflow-more-menu{display:grid}
.workflow-shell .workflow-export,.item-shell .item-more-actions{position:relative}
.workflow-shell .workflow-export>summary,.item-shell .item-more-actions>summary{list-style:none;cursor:pointer}
.workflow-shell .workflow-export>summary::-webkit-details-marker,.item-shell .item-more-actions>summary::-webkit-details-marker{display:none}
.workflow-shell .workflow-export>div,.item-shell .item-more-actions>div{position:absolute;right:0;top:calc(100% + 6px);z-index:30;background:var(--surface);border:1px solid var(--field-border);border-radius:6px;padding:8px;min-width:190px;display:grid;gap:6px}
.item-shell .item-more-actions>div{top:auto;bottom:calc(100% + 8px);left:0;right:auto}
.workflow-shell .workflow-queue{display:flex;align-items:flex-end;gap:12px;margin:14px 0}
.workflow-shell .workflow-queue .field{max-width:300px}
.workflow-shell .summary small{color:var(--muted);font-size:12px;line-height:1.5}
.workflow-shell .summary-link{padding:0;text-align:left;white-space:normal;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.workflow-shell .sales-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.workflow-shell .batch-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:16px 0 12px}
.workflow-shell .batch-select{width:20px;height:20px;flex:none;accent-color:var(--green);margin-right:4px}
.workflow-shell .batch-field{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr);gap:16px;align-items:center;margin:14px 0}
.workflow-shell .task-picker{border:1px solid var(--field-border);padding:20px;margin-bottom:24px;border-radius:6px}
.workflow-shell #task-item-results{display:grid;max-height:360px;overflow:auto;gap:4px;margin-top:12px}
.workflow-shell .task-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;min-height:56px}
.workflow-shell .task-item span{font-size:12px;color:var(--muted)}
.workflow-shell .next-step{font-size:12px;line-height:1.5;color:var(--muted)}
.workflow-shell .phone-listing-shortcut{display:none}
.workflow-shell .inventory-awaiting td{background:#302b1d}
.workflow-shell .inventory-awaiting .next-step{color:#ecd597;font-weight:650}
.workflow-shell .inventory-awaiting .inventory-status,.workflow-shell .badge.sold{background:#44391f;color:#f5dfa6;border-color:#8b7440}
.workflow-shell .inventory-shipped td{background:#1c2e22}
.workflow-shell .inventory-shipped .next-step{color:#b9dfc4}
.workflow-shell .inventory-shipped .inventory-status,.workflow-shell .badge.shipped{background:#294332;color:#c3ecd0;border-color:#577e61}
.workflow-shell .inventory-awaiting:hover td{background:#3a3321}
.workflow-shell .inventory-shipped:hover td{background:#243a2b}
.workflow-shell .workflow-table td{overflow-wrap:anywhere}
.workflow-shell .workflow-toolbar .filters{align-items:flex-end;flex-wrap:wrap}
.workflow-shell .workflow-toolbar .field{min-width:140px}
.workflow-shell .workflow-toolbar .check{white-space:nowrap}
.workflow-shell .recovery-list,.item-shell .recovery-list{border:1px solid var(--line);border-radius:6px;padding:12px;margin:12px 0}
.workflow-shell .recovery-list>summary,.item-shell .recovery-list>summary{cursor:pointer;color:var(--green)}
.workflow-shell .recovery-list>div,.item-shell .recovery-list>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.workflow-shell .recovery-list>div>span{flex:1;min-width:160px;font-size:12px}
.item-shell .editor-task-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.item-shell .editor-task-strip nav{display:flex;flex-wrap:wrap;gap:4px}
.item-shell .editor-task-strip .btn{min-height:40px}
.item-shell .offer-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.item-shell .offer-add{margin-top:16px}
.item-shell .row-save-state{font-size:11px;color:var(--muted);margin-top:6px}
.item-shell .row-error,.workflow-shell .row-error{color:var(--danger);font-size:13px;margin-top:8px}
.item-shell .row-error:empty,.workflow-shell .row-error:empty{display:none}
.item-shell .removal-notice{margin:12px 0}
.item-shell .form-actions .save-state{display:block;font-size:12px;flex:1;min-width:110px}
.item-shell .header-listings-label{flex:none}
.item-shell .item-header-platforms{display:flex;align-items:center;gap:8px;min-width:0}
.item-shell .item-header-platforms .item-listing-links{min-width:0}
.item-shell .item-header-pricing{margin-left:auto;display:flex;align-items:center;gap:12px}
.item-shell .quick-capture .form-section{display:none}
.item-shell .quick-capture .form-section.quick-section{display:block}
.item-shell .quick-capture .quick-section .field:not(.quick-field){display:none}
.item-shell .quick-capture .aside-section{display:none}
.workflow-shell .fee-explainer>summary{display:none}
.workflow-shell .fee-explainer:not([open])>p{display:block;margin:0}
.workflow-shell .fee-explainer>p{margin:0}
@media(max-width:1100px){.workflow-shell .phone-listing-shortcut{display:inline-block}}
@media(max-width:800px){
 .workflow-shell .workflow-more-nav{position:relative;margin:0;padding:0;border:0}
 .workflow-shell .workflow-more-nav>summary{display:flex;align-items:center;justify-content:center;min-height:44px;color:var(--muted);cursor:pointer;padding:8px}
 .workflow-shell .workflow-more-nav:not([open])>.workflow-more-menu{display:none}
 .workflow-shell .workflow-more-menu{position:absolute;right:0;top:100%;width:220px;background:var(--surface);border:1px solid var(--field-border);padding:8px;z-index:25}
 .workflow-shell .workflow-more-menu button{justify-content:flex-start;text-align:left;width:100%}
}
@media(max-width:700px){
 .workflow-shell .workflow-table,.workflow-shell .workflow-table tbody,.workflow-shell .workflow-table tr,.workflow-shell .workflow-table td{display:block;min-width:0;width:100%}
 .workflow-shell .workflow-table thead{display:none}
 .workflow-shell .workflow-table tr{padding:16px}
 .workflow-shell .workflow-table tr+tr{border-top:1px solid var(--line)}
 .workflow-shell .workflow-table td{border:0;padding:6px 0;white-space:normal}
 .workflow-shell .workflow-table td[data-label]::before{content:attr(data-label) ': ';color:var(--muted);font-size:12px}
 .workflow-shell .workflow-table td:first-child{padding:0 0 8px}
 .workflow-shell .workflow-table td .btn{min-height:44px}
 .workflow-shell .fee-explainer>summary{display:block;cursor:pointer;color:var(--green)}
 .workflow-shell .fee-explainer:not([open])>p{display:none}
 .workflow-shell .fee-explainer[open]>p{display:block;margin-top:8px}
}
@media(max-width:600px){
 .workflow-shell .nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
 .workflow-shell .nav>button{font-size:11px;min-height:44px}
 .workflow-shell .workflow-more-nav>summary{font-size:11px}
 .workflow-shell .workflow-more-menu .icon{display:none}
 .workflow-shell .sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workflow-shell .batch-field{grid-template-columns:1fr;gap:6px}
 .workflow-shell .batch-select{width:24px;height:24px}
 .workflow-shell .inventory-awaiting,.workflow-shell .inventory-awaiting td{background:#302b1d}
 .workflow-shell .inventory-shipped,.workflow-shell .inventory-shipped td{background:#1c2e22}
 .workflow-shell .task-picker{padding:16px}
 .workflow-shell #task-item-search,.workflow-shell #workspace-search{font-size:16px}
 .workflow-shell .workflow-toolbar .filters{width:100%}
 .workflow-shell .workflow-toolbar .filters .field{flex:1}
 .item-shell .item-footer .form-actions{gap:8px;padding-block:10px}
 .item-shell .form-actions .save-state{font-size:11px;order:-1;flex-basis:100%}
 .item-shell .form-actions .btn{min-height:44px;padding-inline:10px}
 .item-shell .offer-row{align-items:flex-start;flex-direction:column}
 .item-shell .offer-row .found-listing-actions{flex-wrap:wrap}
 .item-shell .found-listing-actions .btn{min-height:44px;font-size:12px}
 .item-shell .item-header-listings{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .item-shell .item-header-platforms{width:100%;overflow:auto;flex-wrap:nowrap}
 .item-shell .item-header-pricing{width:100%;justify-content:space-between;margin:0;gap:8px}
 .item-shell .item-header-prices{gap:8px}
 .item-shell .item-header-prices dt,.item-shell .item-header-prices dd{font-size:11px}
 .item-shell .editor-task-strip nav{width:100%}
 .item-shell .quick-capture .editor-layout{flex-direction:column}
 .item-shell .quick-capture .editor-aside{order:2}
}
.locations-transfer-help{margin:-12px 0 24px;line-height:1.6}.location-map-pin svg{width:100%;height:100%}.leaflet-tooltip.location-map-label-unvisited{font-size:12px}.location-evidence{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px}

.location-map-pin-unvisited svg{fill:var(--ready-ink)}
.leaflet-tooltip.location-map-label-unvisited{color:var(--ready-ink);border-color:var(--ready-ink)}

/* Sage, turquoise and muted blue lift the primary listing action. */
.item-shell .btn[data-action="header-add-listing"]{
 background:linear-gradient(115deg,#345e49 0%,#32625d 52%,#3a5e70 100%);
 border-color:#71988e;
 color:#f0faf5;
 font-weight:630;
}
.item-shell .btn[data-action="header-add-listing"]:hover{
 background:linear-gradient(115deg,#3b6c54 0%,#396f69 52%,#426c80 100%);
 border-color:#91b7ac;
}
.item-shell .btn[data-action="header-add-listing"]:active{
 background:linear-gradient(115deg,#2b503e 0%,#29544f 52%,#304f60 100%);
}
.item-shell .section-menu-emoji{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:none;
 font-size:14px;
 line-height:1;
}

/* Primary navigation always exposes Locations; More holds reference sections only. */
@media(max-width:800px){.workflow-shell .nav{overflow:visible;flex-wrap:wrap}}
@media(max-width:600px){.workflow-shell .nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px}}
.workflow-shell .fees-table tr[hidden]{display:none}

/* Keep the desktop navigation divider below Locations on its own pages too. */
@media(min-width:801px){
 .app-shell:not(.workflow-shell) .nav>[data-view="standards"]{position:relative;margin-top:32px}
 .app-shell:not(.workflow-shell) .nav>[data-view="standards"]::before{content:"";position:absolute;top:-13px;left:0;right:0;border-top:1px solid var(--line)}
}

@media(max-width:600px){.topbar{height:auto;min-height:50px;padding-block:8px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}}

.comparisons-table .comparison-notes{white-space:pre-wrap;overflow-wrap:anywhere}.comparisons-table .platform-listing-link{overflow-wrap:anywhere}

.packaged-control{min-height:36px;white-space:nowrap}.packaged-control input{width:18px;height:18px;flex:none;accent-color:var(--accent);cursor:pointer}.header-packaged{flex:none}.packaged-field .packaged-control{align-self:flex-start}.packaged-cell .packaged-control{width:fit-content}
.status-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius)}.status-dialog::backdrop{background:var(--scrim)}.status-dialog h2{margin:0 0 16px;font-size:18px}.status-dialog p{margin:0 0 16px;line-height:1.5}.status-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:24px}.status-dialog-actions .btn{min-height:44px}
.inventory-actions-panel{position:fixed;inset:auto;margin:0;width:208px;max-width:calc(100vw - 16px);padding:8px;background:var(--surface);color:var(--ink);border:1px solid var(--field-border);border-radius:var(--radius);box-shadow:0 8px 24px var(--scrim)}.inventory-actions-panel:popover-open{display:grid;gap:4px}.inventory-actions-panel .btn{width:100%;min-height:44px;justify-content:flex-start;text-align:left}.inventory-actions-panel::backdrop{background:transparent}
@media(max-width:600px){.inventory-table .packaged-cell{margin-right:16px}.packaged-cell .packaged-control>span.sr-only{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}.packaged-control{min-height:40px}}

/* Password gate inherits the workspace palette and controls. */
[hidden]{display:none!important}
.login-gate{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:24px}
.login-frame{width:100%;max-width:390px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.login-frame h1{color:var(--green);font-size:28px}
.login-intro{margin-top:10px;color:var(--muted)}
.login-frame form{margin-top:30px}
.login-frame label{display:block;margin-bottom:8px;font-weight:550}
.login-frame input{width:100%;min-height:46px;font-size:16px}
.login-status{min-height:44px;padding-top:8px;font-size:13px;color:var(--muted)}
.login-status.login-error{color:var(--danger)}
.login-frame .btn{width:100%;min-height:44px;margin-top:4px}
.login-remember{margin-top:14px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:420px){.login-frame{padding:26px 22px}.login-gate{padding:20px}}

/* Listings are grouped by inventory item, with platform rows revealed on demand. */
.listing-item-groups{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.listing-item-group+ .listing-item-group{border-top:1px solid var(--line)}
.listing-item-group>summary{display:flex;align-items:center;gap:16px;padding:16px;cursor:pointer;list-style:none;min-height:64px}
.listing-item-group>summary::-webkit-details-marker{display:none}
.listing-item-group>summary:hover{background:var(--soft)}
.listing-item-group>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.listing-group-item{flex:1;min-width:0;overflow-wrap:anywhere}
.listing-group-item>strong{font-weight:600}
.listing-item-group[open] .listing-group-item>strong{color:color-mix(in srgb,var(--ink) 55%,var(--green));font-weight:650}
.listing-item-group[open] .listing-group-item>.subline{color:color-mix(in srgb,var(--muted) 78%,var(--green))}
.listing-item-group[open] .listing-group-count{color:color-mix(in srgb,var(--muted) 45%,var(--green))}
.listing-item-group[open]>summary>.icon{color:var(--green)}
.listing-group-count{color:var(--muted);font-size:12px;white-space:nowrap}
.listing-item-group>summary>.icon{width:18px;height:18px;flex:none;transform:rotate(-90deg)}
.listing-item-group[open]>summary>.icon{transform:rotate(0)}
.listing-item-group[open]>summary{background:color-mix(in srgb,var(--bg) 85%,black)}
.listing-item-group[open]>summary:hover{background:var(--bg)}
.listing-item-group[open]>.table-wrap{background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 70%,var(--bg)),color-mix(in srgb,var(--bg) 92%,black))}
.listing-item-group[open] th{background:color-mix(in srgb,var(--surface) 65%,var(--bg))}
.listing-item-group[open]{background:color-mix(in srgb,var(--bg) 85%,black)}
.listing-item-group>.table-wrap{border:0;border-top:1px solid var(--line);border-radius:0;margin:0 16px 16px 28px}
.listing-item-group .platform-listing-link{vertical-align:middle}
@media(max-width:800px){.listing-item-group>summary{gap:10px;padding:14px}.listing-item-group>.table-wrap{margin:0 12px 12px 14px}.workflow-shell .listing-item-group .workflow-table td:first-child{padding:0 0 8px}.workflow-shell .listing-item-group .workflow-table td:first-child::before{content:none}}

.listing-group-add{display:flex;align-items:center;justify-content:space-between;gap:16px}
.listing-group-add .btn{color:var(--green);white-space:nowrap}
.group-listing-dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.group-listing-dialog::backdrop{background:var(--scrim)}
.group-listing-dialog h2{font-size:20px}
.group-listing-dialog .list-editor-head{align-items:flex-start}
.group-listing-dialog .section-help{margin:8px 0 16px}
.group-listing-actions{display:flex;justify-content:flex-end;margin-top:20px}
@media(max-width:800px){.workflow-shell .listing-item-group thead{display:block}.workflow-shell .listing-item-group thead tr{padding:8px 16px}.listing-item-group thead th{display:none}.listing-item-group thead th:last-child{display:block;padding:0;background:transparent}.listing-group-add{justify-content:flex-end}.listing-group-add>span{display:none}}
@media(max-width:600px){.group-listing-dialog{padding:20px}.group-listing-dialog input,.group-listing-dialog select{font-size:16px}}

.source-options .source-location-option{display:flex;align-items:flex-start;gap:8px}
.source-location-option>.icon{width:14px;height:14px;flex:none;margin-top:3px;color:var(--green)}
.source-location-text{min-width:0}

.visit-dates{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;padding:0;margin:0;font-size:13px;font-variant-numeric:tabular-nums}.location-visits .list-editor-head{align-items:center}.location-visits h3{margin:0}.visit-date-editor label{display:block;font-size:13px;margin-bottom:8px}.visit-date-editor input{width:100%;min-width:0}.visit-date-editor .found-listing-actions{margin-top:12px}.visit-date-editor .row-error{margin-top:8px}

.location-visited-pin{display:inline-flex;vertical-align:middle;color:var(--green);margin-right:6px}.location-visited-pin .icon{width:14px;height:14px}

.location-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0;flex:1}.location-title h2{flex:1 1 140px}#location-name-form{width:100%}.location-rename-button{opacity:0;transition:opacity .15s ease}.location-title:hover .location-rename-button,.location-title:focus-within .location-rename-button{opacity:1}#location-name-form input{width:100%;min-width:0}#location-name-form .found-listing-actions{margin-top:10px}#location-name-error{margin-top:8px}@media(hover:none){.location-rename-button{opacity:1}}@media(prefers-reduced-motion:reduce){.location-rename-button{transition:none}}

.photo-download-all{margin-bottom:10px}.photo-tools .photo-actions{margin-bottom:10px}
