:root {
  color-scheme: dark;
  --paper: #101411;
  --surface: #191f1b;
  --surface-raised: #212923;
  --surface-hover: #29342b;
  --sidebar: #141a16;
  --ink: #e7ede3;
  --muted: #a9b5a2;
  --faint: #95a68b;
  --line: #303b31;
  --line-strong: #52634a;
  --green: #afc990;
  --green-dark: #d2e5b7;
  --green-soft: #273724;
  --on-green: #17220f;
  --danger: #efb1a4;
  --danger-soft: #3b2623;
  --shadow: #00000045;
  --topbar: #101411f2;
  --badge: #182019ed;
  --art-device: #25332a;
  --art-cable: #2c3028;
  --art-component: #2a3225;
  --art-tool: #332f24;
  --art-other: #282e29;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--green); color: var(--on-green); padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 34px 20px 22px; display: flex; flex-direction: column; z-index: 25; }
.brand { display: flex; align-items: center; font-weight: 730; font-size: 34px; letter-spacing: -1.7px; line-height: 1; padding: 0 10px; width: fit-content; }
.brand-mark { width: 37px; height: 40px; color: var(--green); margin-right: 9px; display: grid; place-items: center; }
.brand-mark .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.brand-period { color: var(--green); }
.space-label { color: var(--muted); font-size: 11px; margin: 15px 10px 40px; letter-spacing: -.1px; }
.primary-nav { display: grid; gap: 7px; }
.primary-nav > a { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 9px; font-weight: 560; color: var(--muted); transition: background .15s; }
.primary-nav > a:hover { background: var(--surface-hover); }
.primary-nav > a.active { color: var(--green-dark); background: var(--green-soft); }
.primary-nav > a > span { margin-left: auto; font-size: 11px; border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 5px; font-weight: 500; }
.sidebar-section-label { font-size: 9px; letter-spacing: 1.7px; font-weight: 650; color: var(--faint); margin: 38px 14px 12px; }
.quick-places { display: grid; gap: 3px; }
.quick-places > a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--muted); }
.quick-places > a:hover { background: var(--surface-hover); }
.quick-places > a > span { flex: 1; font-size: 12px; }
.quick-places small { display: block; font-size: 10px; color: var(--faint); margin-top: 4px; }
.quick-places .icon { width: 17px; height: 17px; }
.quick-places > a > .icon:last-child { width: 12px; opacity: .55; }
.sidebar-bottom { margin-top: auto; padding: 35px 9px 0; }
.demo-note { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 550; }
.demo-note strong { font-weight: 550; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; flex: 0 0 auto; }
.sidebar-bottom p { font-size: 10px; color: var(--faint); line-height: 1.7; margin: 9px 0 14px; }
.sidebar-bottom .text-button { font-size: 10px; color: var(--muted); }
.sidebar-bottom .icon { width: 13px; height: 13px; }
.workspace { margin-left: 218px; min-height: 100vh; }
.mobile-demo-notice { display: none; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 86px; display: flex; align-items: center; gap: 22px; padding: 20px 38px; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.search-field { display: flex; align-items: center; flex: 1; max-width: 540px; gap: 10px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); min-width: 0; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.search-field > .icon { width: 18px; height: 18px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: none; background: none; color: var(--ink); font-size: 12px; padding: 0; line-height: 22px; width: 100%; }
.search-field input::placeholder { color: var(--faint); }
.search-field kbd { font-size: 9px; font-family: inherit; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--faint); padding: 2px 4px; white-space: nowrap; }
.collection-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; min-height: 41px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 550; line-height: 1.4; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--green); color: var(--on-green); box-shadow: 0 2px 6px var(--shadow); }
.primary:hover { background: var(--green-dark); }
.secondary { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); }
.secondary:hover { background: var(--surface-hover); border-color: var(--green); }
.ghost { background: transparent; color: var(--muted); }
.ghost:hover { background: var(--surface-hover); }
.danger { background: #a24f43; color: #fff2ed; }
.danger-text { color: var(--danger); }
.text-button { padding: 0; border: 0; background: none; color: var(--green); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.6; text-align: left; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; }
.text-button .icon { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border-radius: 7px; border: 0; background: none; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { color: var(--green); background: var(--surface-hover); }
#main { padding: 38px 38px 46px; outline: none; max-width: 1600px; margin: 0 auto; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; min-height: 96px; }
.eyebrow { color: var(--faint); letter-spacing: 1.9px; font-size: 9px; font-weight: 650; display: inline-block; }
h1 { font-size: clamp(30px, 2.7vw, 42px); font-weight: 560; line-height: 1.18; letter-spacing: -1.9px; margin: 11px 0 12px; }
h1 span { color: var(--green); }
.page-intro p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.intro-illustration { width: 166px; height: 100px; position: relative; margin-right: 12px; opacity: .8; }
.tiny-box { position: absolute; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 15px; }
.tiny-box .icon { width: 34px; height: 34px; stroke-width: 1.2; }
.box-one { color: var(--green); background: var(--green-soft); left: 20px; top: 25px; transform: rotate(-13deg); }
.box-two { color: #c0b685; background: var(--art-tool); left: 78px; top: 6px; transform: rotate(15deg); }
.tiny-spark { position: absolute; top: 1px; left: 23px; color: var(--green); font-size: 25px; }
.category-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { position: relative; background: none; border: 0; padding: 13px 0 16px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.category-tab.active { color: var(--green-dark); }
.category-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--green); }
.collection-toolbar { min-height: 67px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.results-count { color: var(--muted); font-size: 11px; line-height: 1.6; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.select-label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.select-label > .icon { width: 14px; height: 14px; }
.select-label select { border: none; background: none; color: var(--muted); padding: 7px 4px; font-size: 10px; max-width: 142px; cursor: pointer; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 7px; padding: 2px; background: var(--surface); gap: 2px; }
.view-switch .icon-button { width: 29px; height: 27px; border-radius: 5px; }
.view-switch .icon { width: 15px; height: 15px; }
.view-switch .selected { background: var(--green-soft); color: var(--green); }
.item-collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 19px; }
.item-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s; }
.item-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px var(--shadow); transform: translateY(-2px); }
.item-open { border: 0; background: none; padding: 0; text-align: left; display: block; color: inherit; width: 100%; min-width: 0; }
.item-open:focus-visible { outline-offset: -4px; border-radius: 12px; }
.item-art { height: 174px; margin: 7px 7px 0; border-radius: 7px; background: var(--surface-raised); position: relative; overflow: hidden; display: grid; place-items: center; }
.art-0 { background: var(--art-device); }
.art-1 { background: var(--art-cable); }
.art-2 { background: var(--art-component); }
.art-3 { background: var(--art-tool); }
.art-4 { background: var(--art-other); }
.item-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.item-card:hover .item-art img { transform: scale(1.045); }
.image-placeholder { display: grid; place-items: center; color: var(--green); width: 100%; height: 100%; }
.image-placeholder .icon { width: 52px; height: 52px; stroke-width: 1; }
.quantity-badge { position: absolute; right: 9px; top: 9px; background: var(--badge); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--green-dark); font-size: 10px; padding: 4px 7px; backdrop-filter: blur(6px); }
.item-copy { padding: 17px 15px 13px; }
.item-category { color: var(--faint); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.item-copy h3 { margin: 6px 0 0; font-size: 14px; font-weight: 560; line-height: 1.5; letter-spacing: -.15px; }
.item-location { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 8px 9px 9px 14px; border-top: 1px solid var(--line); margin-top: auto; min-height: 59px; }
.item-location > a { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.6; min-width: 0; }
.item-location > a:hover { color: var(--green-dark); }
.item-location > a > .icon { width: 12px; height: 12px; margin-top: 1px; }
.item-location > a > span { overflow-wrap: anywhere; }
.card-move { width: 29px; height: 29px; }
.card-move .icon { width: 16px; height: 16px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; padding: 0 38px 26px; font-size: 9px; color: var(--faint); }
.list-view { grid-template-columns: 1fr; gap: 9px; }
.list-view .item-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 34%); align-items: center; }
.list-view .item-open { display: flex; align-items: center; }
.list-view .item-art { margin: 7px; width: 98px; height: 77px; flex-shrink: 0; }
.list-view .quantity-badge { top: 4px; right: 4px; font-size: 8px; padding: 2px 4px; }
.list-view .item-location { border: 0; margin: 0; padding: 13px 15px; }
.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px 20px; color: var(--muted); }
.empty-symbol { display: grid; place-items: center; width: 66px; height: 66px; background: var(--green-soft); border-radius: 50%; margin-bottom: 18px; }
.empty-symbol .icon { width: 27px; height: 27px; stroke-width: 1.4; }
.empty-state h2 { font-size: 21px; letter-spacing: -.5px; color: var(--ink); font-weight: 500; margin: 0 0 9px; }
.empty-state p { font-size: 12px; line-height: 1.7; max-width: 400px; margin: 0 0 20px; }
.places-intro { margin-bottom: 32px; }
.places-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.place-tree { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 7px; }
.tree-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 18px; color: var(--faint); font-size: 8px; font-weight: 650; letter-spacing: 1.5px; }
.tree-heading span { font-size: 9px; letter-spacing: 0; font-weight: 500; background: var(--surface-raised); border-radius: 4px; padding: 2px 5px; }
.tree-node { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 12px 10px; border-radius: 6px; color: var(--muted); min-width: 0; }
.tree-node:hover { background: var(--surface-hover); }
.tree-node.active { background: var(--green-soft); color: var(--green-dark); }
.tree-node .icon { width: 15px; height: 15px; }
.tree-node small { margin-left: auto; font-size: 8px; color: var(--faint); }
.tree-node span { overflow-wrap: anywhere; }
.depth-1 { padding-left: 19px; }.depth-2 { padding-left: 28px; }.depth-3 { padding-left: 37px; }.depth-4 { padding-left: 46px; }.depth-5 { padding-left: 55px; }
.tree-add { border: 0; background: none; color: var(--green); font-size: 10px; display: flex; align-items: center; gap: 7px; padding: 17px 10px 4px; }
.tree-add .icon { width: 14px; height: 14px; }
.place-content { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.breadcrumbs .icon { width: 10px; height: 10px; color: var(--faint); }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.place-heading { display: flex; align-items: center; gap: 13px; margin: 21px 0 25px; }
.place-emblem { width: 53px; height: 53px; background: var(--green-soft); border: 1px solid var(--line-strong); border-radius: 12px; display: grid; place-items: center; color: var(--green); flex: 0 0 auto; }
.place-emblem .icon { width: 27px; height: 27px; stroke-width: 1.3; }
.place-heading h2 { font-size: 24px; font-weight: 550; margin: 0 0 6px; letter-spacing: -.7px; overflow-wrap: anywhere; }
.place-heading p { font-size: 10px; color: var(--muted); margin: 0; }
.move-place-button { margin-left: auto; }
.child-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 30px; }
.place-tile { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 15px 12px; }
.place-tile:hover { border-color: var(--line-strong); }
.place-tile > span:nth-child(2) { flex: 1; min-width: 0; }
.place-tile strong { display: block; font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
.place-tile small { display: block; font-size: 9px; color: var(--faint); margin-top: 5px; }
.place-tile > .icon { width: 13px; height: 13px; color: var(--faint); }
.place-tile-icon { color: var(--green); }
.place-tile-icon .icon { width: 22px; height: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.section-heading h3 { font-size: 12px; font-weight: 550; margin: 0; color: var(--muted); }
.place-content .item-collection { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
.place-content .list-view { grid-template-columns: 1fr; }
.place-content .item-art { height: 151px; }
.place-content .list-view .item-art { height: 77px; }

/* Focused native dialogs: quick intake, a destination, then back to your stuff. */
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 60px); border: 1px solid var(--line-strong); border-radius: 19px; padding: 27px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 120px #00000099; overscroll-behavior: contain; }
dialog::backdrop { background: #050906b3; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 25px; letter-spacing: -.9px; font-weight: 550; margin: 9px 0 8px; line-height: 1.3; overflow-wrap: anywhere; }
.dialog-heading p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; }
.dialog-heading > .icon-button { margin: -7px -9px 0 0; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 19px; line-height: 1.5; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 11px 12px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 7px; font-size: 13px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; }
.form-row { display: flex; gap: 13px; }
.grow { flex: 1; }.quantity-field { width: 90px; }
.photo-field { display: flex; gap: 15px; align-items: center; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 14px; margin: 4px 0 20px; background: var(--surface-raised); }
.photo-preview { width: 66px; height: 66px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.photo-preview > img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview > .icon { width: 26px; height: 26px; }
.photo-label { cursor: pointer; font-size: 10px; padding: 8px 11px; min-height: 34px; }
.photo-label input { width: 1px; height: 1px; opacity: 0; position: absolute; }
.photo-label:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.photo-field p { font-size: 9px; color: var(--faint); margin: 7px 0 0; }
.photo-field .text-button { margin-top: 5px; font-size: 9px; }
.extra-details { border-top: 1px solid var(--line); }
.extra-details summary { font-size: 11px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 7px; padding: 16px 0; cursor: pointer; }
.extra-details summary::-webkit-details-marker { display: none; }
.extra-details summary > span { color: var(--faint); font-size: 10px; }
.extra-details summary > .icon { width: 13px; height: 13px; margin-left: auto; }
.extra-details[open] summary > .icon { transform: rotate(90deg); }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 9px; }
.form-error { font-size: 12px; color: var(--danger); line-height: 1.6; background: var(--danger-soft); padding: 11px 13px; border-radius: 7px; margin: 13px 0; }
.detail-art { height: 208px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.detail-art img { width: 100%; height: 100%; object-fit: contain; }
.detail-facts { display: flex; gap: 28px; margin: 23px 0; }
.detail-facts > div:first-child { min-width: 70px; flex: 0 0 auto; }
.detail-facts > div > span { display: block; font-size: 8px; color: var(--faint); letter-spacing: 1px; margin-bottom: 9px; }
.detail-facts strong { font-size: 20px; font-weight: 500; color: var(--green-dark); }
.detail-facts .breadcrumbs { font-size: 11px; }
.detail-notes, .dialog-note { white-space: pre-wrap; font-size: 12px; color: var(--muted); line-height: 1.9; margin: 0 0 24px; overflow-wrap: anywhere; }
.muted { color: var(--faint); }
.move-origin { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); margin-bottom: 22px; }
.move-origin > span { color: var(--green); }
.move-origin small, .move-preview small { color: var(--faint); letter-spacing: 1.2px; font-size: 8px; display: block; margin-bottom: 7px; }
.move-origin strong, .move-preview strong { font-size: 11px; font-weight: 500; color: var(--green-dark); line-height: 1.8; }
.move-preview { min-height: 65px; padding: 13px 15px; background: var(--green-soft); border: 1px solid var(--line-strong); border-radius: 8px; margin: 0 0 18px; }
.move-preview > span { font-size: 11px; color: var(--muted); }
.move-explanation { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; color: var(--muted); }
.move-explanation > .icon { width: 17px; height: 17px; margin-top: 2px; }
.move-explanation p { margin: 0; font-size: 10px; line-height: 1.9; }
.move-explanation strong { font-weight: 500; color: var(--green); }
.toast { position: fixed; bottom: 27px; left: calc(50% + 109px); transform: translateX(-50%); max-width: min(660px, calc(100vw - 250px)); display: flex; align-items: center; gap: 11px; z-index: 100; color: var(--ink); background: var(--green-soft); border: 1px solid var(--line-strong); box-shadow: 0 7px 35px var(--shadow); border-radius: 10px; padding: 12px 14px; font-size: 11px; line-height: 1.6; }
.toast > .icon { width: 17px; height: 17px; }
.toast > span { flex: 1; }
.toast > button { border: 0; background: none; color: var(--green-dark); display: inline-flex; gap: 5px; align-items: center; font-size: 11px; white-space: nowrap; }
.toast > .icon-button { width: 24px; height: 24px; padding: 3px; color: var(--muted); }
.toast button .icon { width: 14px; height: 14px; }
.history-list { padding: 0; margin: 0 0 20px; list-style: none; max-height: 390px; overflow-y: auto; }
.history-list li { display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.history-icon { width: 30px; height: 30px; display: grid; place-items: center; background: var(--green-soft); border-radius: 7px; color: var(--green); flex-shrink: 0; }
.history-icon .icon { width: 15px; height: 15px; }
.history-list strong { font-weight: 550; font-size: 12px; }
.history-list p { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 8px 0; }
.history-list p .icon { width: 11px; height: 11px; vertical-align: middle; }
.history-list time { font-size: 9px; color: var(--faint); }
.demo-label { font-size: 9px; letter-spacing: 1px; color: #d7c793; padding: 6px 9px; background: var(--art-tool); border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.demo-explanation p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.demo-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 1650px) { #main { padding-top: 47px; } .item-art { height: 200px; } }
@media (max-width: 1150px) {
  .sidebar { width: 192px; padding-inline: 13px; }
  .workspace { margin-left: 192px; }
  .topbar { padding-inline: 26px; gap: 15px; }
  #main { padding-inline: 26px; }
  .collection-badge { display: none; }
  .search-field { max-width: none; }
  .item-collection { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 15px; }
  .places-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .tree-node { font-size: 10px; gap: 5px; }
  .place-content .item-collection { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
  .place-content .list-view { grid-template-columns: 1fr; }
  .toast { left: calc(50% + 96px); }
}
@media (max-width: 800px) {
  .sidebar { width: 170px; }
  .workspace { margin-left: 170px; }
  .space-label { font-size: 9px; }
  .sidebar-bottom { padding-inline: 3px; }
  .sidebar-bottom strong { font-size: 9px; }
  .sidebar-bottom p { font-size: 9px; }
  .topbar { padding-inline: 20px; }
  #main { padding: 28px 20px; }
  .intro-illustration { display: none; }
  .category-tabs { gap: 18px; }
  .sort-label { display: none; }
  .places-layout { grid-template-columns: 1fr; }
  .place-tree { display: flex; gap: 4px; overflow-x: auto; padding: 8px; align-items: center; }
  .tree-heading { display: none; }
  .tree-node { padding: 10px; flex-shrink: 0; white-space: nowrap; }
  .tree-node small { display: none; }
  .tree-add { padding: 10px; white-space: nowrap; }
  .place-content .item-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-content .list-view { grid-template-columns: 1fr; }
  .workspace-footer { padding-inline: 20px; }
  .workspace-footer > span:last-child { display: none; }
  .toast { left: calc(50% + 85px); max-width: calc(100vw - 200px); }
}
@media (max-width: 600px) {
  .sidebar { inset: auto 0 0; height: 68px; width: 100%; padding: 7px 20px max(7px, env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: var(--topbar); backdrop-filter: blur(10px); }
  .brand, .space-label, .sidebar-section-label, .quick-places, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; justify-content: center; gap: 14px; }
  .primary-nav > a { min-width: 130px; padding: 9px 15px; justify-content: center; font-size: 12px; }
  .primary-nav > a > span { display: none; }
  .primary-nav .icon { width: 18px; height: 18px; }
  .workspace { margin-left: 0; padding-bottom: 75px; }
  .topbar { padding: 14px 18px; gap: 10px; min-height: 73px; }
  .search-field { padding: 9px 11px; }
  .search-field input { font-size: 13px; }
  .search-field kbd { display: none; }
  .add-button { width: 43px; height: 43px; min-width: 43px; padding: 0; font-size: 0; gap: 0; }
  .add-button .icon { width: 20px; height: 20px; }
  .mobile-demo-notice { display: flex; align-items: center; gap: 7px; padding: 9px 18px; font-size: 9px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--green-soft); }
  .mobile-demo-notice > button { margin-left: auto; font-size: 9px; }
  #main { padding: 27px 18px 35px; }
  .page-intro { margin-bottom: 17px; min-height: 90px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  h1 { font-size: 32px; letter-spacing: -1.4px; margin: 10px 0; }
  .page-intro p { font-size: 11px; }
  .category-tabs { margin-right: -18px; padding-right: 18px; }
  .category-tab { font-size: 11px; padding-bottom: 14px; }
  .collection-toolbar { min-height: 66px; gap: 8px; }
  .results-count { font-size: 9px; max-width: 145px; }
  .toolbar-actions { gap: 7px; }
  .select-label select { max-width: 100px; font-size: 9px; }
  .view-switch .icon-button { width: 25px; height: 26px; }
  .item-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item-art, .place-content .item-art { height: 123px; margin: 5px 5px 0; }
  .quantity-badge { font-size: 10px; padding: 3px 5px; top: 7px; right: 7px; }
  .item-copy { padding: 12px 11px 10px; }
  .item-category { font-size: 9px; letter-spacing: .3px; }
  .item-copy h3 { font-size: 13px; line-height: 1.55; margin-top: 5px; }
  .item-location { padding: 7px 5px 7px 10px; gap: 0; min-height: 65px; }
  .item-location > a { font-size: 10px; gap: 4px; line-height: 1.6; }
  .item-location > a > .icon { width: 10px; height: 10px; }
  .card-move { width: 34px; height: 44px; }
  .card-move .icon { width: 15px; height: 15px; }
  .item-card { border-radius: 10px; }
  .list-view { grid-template-columns: 1fr; }
  .list-view .item-card { grid-template-columns: minmax(0, 1fr) 36%; }
  .list-view .item-art, .place-content .list-view .item-art { width: 65px; height: 73px; }
  .list-view .item-copy { padding: 8px 5px; }
  .list-view .item-copy h3 { font-size: 11px; }
  .list-view .item-location { padding: 6px; }
  .list-view .card-move { width: 26px; }
  .workspace-footer { padding: 0 18px 14px; font-size: 8px; }
  .places-intro { align-items: flex-start; gap: 7px; }
  .places-intro .button { font-size: 0; width: 38px; height: 38px; padding: 0; margin-top: 26px; }
  .places-intro .button .icon { width: 17px; height: 17px; }
  .places-layout { gap: 22px; }
  .place-heading { margin: 16px 0 20px; gap: 10px; }
  .place-heading h2 { font-size: 21px; }
  .place-emblem { width: 42px; height: 42px; border-radius: 10px; }
  .place-emblem .icon { width: 23px; height: 23px; }
  .place-heading p { font-size: 9px; }
  .move-place-button { font-size: 10px; padding: 9px; min-height: 36px; gap: 5px; }
  .move-place-button .icon { width: 14px; height: 14px; }
  .child-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 24px; }
  .place-tile { padding: 13px 10px; gap: 8px; }
  .place-tile strong { font-size: 10px; }
  .section-heading h3 { font-size: 11px; }
  .section-heading .text-button { font-size: 10px; }
  dialog { padding: 23px 20px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: auto auto 10px; border-radius: 17px; }
  .dialog-heading { margin-bottom: 22px; gap: 8px; }
  .dialog-heading h2 { font-size: 25px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field { font-size: 12px; }
  .photo-label { font-size: 11px; }
  .extra-details summary { font-size: 12px; }
  .dialog-actions .button { min-height: 44px; }
  .detail-art { height: 180px; }
  .detail-facts { gap: 17px; }
  .toast { bottom: 82px; left: 50%; max-width: calc(100vw - 24px); width: max-content; font-size: 10px; padding: 11px; gap: 7px; }
  .toast > button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
