:root {
  color-scheme: light;
  --background: #f5f6f3;
  --surface: #ffffff;
  --ink: #20231d;
  --muted: #8b9085;
  --muted-dark: #6d7367;
  --line: #edf0e9;
  --lime: #a8ed10;
  --lime-soft: #f0f8e1;
  --accent-glow: #c4f76d;
  --accent-ink: #5e7d31;
  --danger: #db514b;
  --radius: 26px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; background: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-user-select: none; user-select: none; }
input, select, textarea { min-width: 0; color: var(--ink); }
input, textarea { caret-color: #70a600; }
input::placeholder, textarea::placeholder { color: #a6ab9e; }
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: #83bd10; cursor: pointer; }
input[type="file"] { max-width: 100%; }
textarea { resize: vertical; min-height: 92px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { object-fit: contain; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { color: #213000; background: #d6f796; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 3px solid #92c92b; outline-offset: 4px; }
.icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 250; top: -60px; left: 18px; padding: 10px 18px; border-radius: 10px; color: #fff; background: #26351d; }
.skip-link:focus { top: 15px; }
html[data-appearance="mint"] { --lime: #82d9b2; --lime-soft: #e6f6ef; --accent-glow: #91e9c8; --accent-ink: #3d806a; }
html[data-appearance="lavender"] { --lime: #c5adf7; --lime-soft: #f0eafa; --accent-glow: #d6bcff; --accent-ink: #8264a8; }
.subtle { color: var(--muted); font-size: 12px; }
.error, .item-warning { color: #c74641; }
.success { color: #5c8e1b; }
.divider { height: 1px; margin: 22px 0; background: var(--line); border: 0; }
.full { width: 100%; }

/* The quiet permanent rail leaves the collection as the main event. */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 230px; padding: 35px 22px 24px; background: #fff; border-right: 1px solid #edf0e8; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; padding: 0 11px; color: #1b2118; font-size: 21px; font-weight: 750; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #26350d; background: var(--lime); border-radius: 11px; box-shadow: inset 0 0 0 1px #00000003; }
.brand-mark .icon { width: 21px; height: 21px; }
.brand > span:last-child { line-height: 1.15; }
.brand small { display: block; margin-top: 6px; color: #a0a895; font-size: 8px; font-weight: 400; letter-spacing: 0; }
.sidebar-caption { margin: 46px 0 13px; padding: 0 15px; color: #a1a799; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.desktop-nav { display: grid; gap: 9px; }
.nav-button { display: flex; align-items: center; gap: 13px; min-height: 48px; width: 100%; padding: 13px 16px; border-radius: 14px; color: #838a7b; text-align: left; font-size: 13px; font-weight: 550; transition: background .2s, color .2s; }
.nav-button .icon { width: 20px; height: 20px; }
.nav-button:hover { color: #29351f; background: #f5f7f1; }
.nav-button.active { color: #213000; background: #eefaD2; font-weight: 650; }
.nav-button.active .icon { color: #46640b; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; padding-top: 30px; }
.space-switch { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 11px; border: 1px solid #edf0e6; border-radius: 15px; text-align: left; background: #fbfcf9; }
.space-switch > :last-child { margin-left: auto; }
.space-switch span { font-size: 12px; font-weight: 550; }
.space-switch small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.space-switch .icon { width: 16px; height: 16px; color: #9ba38f; }
.avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #eaf0df; color: #7c905c; font-size: 15px; font-weight: 600; }
.avatar.small { flex-basis: 33px; width: 33px; height: 33px; font-size: 12px; }
.sidebar-bottom > .subtle { padding: 0 12px; font-size: 10px; color: #abb0a4; }
.sidebar-bottom > p { display: flex; align-items: center; gap: 6px; padding-left: 13px; color: #acb59f; font-size: 9px; }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.nav-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #8cb746; }
.desktop-kicker > span { margin: 0 8px; color: #c2cab6; }
.workspace { position: relative; min-height: 100vh; margin-left: 230px; padding: 0 44px 30px; isolation: isolate; }
.workspace::before { position: absolute; z-index: -1; inset: 0 0 auto; height: 360px; content: ""; pointer-events: none; background: radial-gradient(ellipse at 72% 0%, #e6f4c955, transparent 65%); }
.workspace > main, .workspace > .page, .workspace > section, .topbar, .desktop-footer, .banner { max-width: 1280px; margin-right: auto; margin-left: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 93px; }
.desktop-kicker { color: #8c9581; font-size: 11px; letter-spacing: 2px; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; color: var(--muted-dark); font-size: 12px; border-radius: 10px; }
.quiet-button:hover { color: var(--ink); background: #e9eee2; }
.quiet-button .icon { width: 17px; height: 17px; }
.mobile-brand, .mobile-nav, .floating-add, .mobile-page-title { display: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 21px 0 28px; }
.page-heading h1 { display: flex; align-items: center; gap: 11px; font-size: 33px; line-height: 1.25; letter-spacing: -1.6px; font-weight: 650; }
.eyebrow { margin-bottom: 9px; color: #929a87; font-size: 10px; letter-spacing: 2.1px; font-weight: 550; text-transform: uppercase; }
.page-subtitle { margin-top: 9px; color: #92988b; font-size: 12px; letter-spacing: .25px; }
.title-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; flex: 0 0 8px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 11px 19px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.35; transition: background .2s, transform .2s, box-shadow .2s; }
.primary { background: #24291f; color: #fff; }
.primary:hover { background: #3b4331; box-shadow: 0 5px 15px #26341b10; }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary .icon, .secondary .icon { width: 18px; height: 18px; }
.primary.lime { color: #293b09; background: var(--lime); }
.primary.lime:hover { background: #b7f239; }
.primary.danger { background: #df554d; color: #fff; }
.primary.danger:hover { background: #c94740; }
.secondary { color: #626d55; background: #eef1e8; }
.secondary:hover { background: #e3e9da; }
.desktop-add { min-height: 44px; padding: 12px 20px; border-radius: 13px; }

/* A single overview card, with large numerals and a little object vignette. */
.summary-card { position: relative; overflow: hidden; padding: 28px 30px 0; border: 1px solid #fff; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px #36472003; }
.summary-main { position: relative; display: grid; grid-template-columns: 1fr 1fr 180px; align-items: end; gap: 26px; min-height: 119px; padding-bottom: 27px; }
.summary-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: #8d9582; font-size: 11px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 33px; min-height: 20px; padding: 2px 7px; border-radius: 6px; color: #7c8c68; background: #f1f5e9; font-size: 10px; line-height: 1.4; font-weight: 550; }
.metric-label { color: #8a9380; font-size: 11px; }
.metric-value { display: flex; align-items: baseline; gap: 4px; margin-top: 7px; color: #272d21; font-size: clamp(28px, 2.8vw, 41px); line-height: 1.14; font-weight: 650; letter-spacing: -1.7px; font-variant-numeric: tabular-nums; }
.metric-value small, .metric-value .currency { color: #5e6853; font-size: .45em; font-weight: 500; letter-spacing: 0; }
.metric-value .subtle { margin-left: 4px; font-size: 11px; font-weight: 400; }
.summary-decoration { align-self: center; justify-self: end; width: 174px; height: 123px; margin: -10px 0 -16px; object-fit: contain; filter: saturate(.8); }
.summary-decoration img { width: 100%; height: 100%; }
.summary-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 57px; border-top: 1px solid #f1f3ec; color: #959d8d; font-size: 10px; }
.summary-bottom > span, .summary-bottom > p { display: flex; align-items: center; gap: 7px; }
.summary-bottom .icon { width: 15px; height: 15px; color: #a8b398; }
.status-meter { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.status-meter strong { color: #617343; font-size: 11px; font-weight: 600; }
.meter-track { overflow: hidden; width: 70px; height: 4px; border-radius: 9px; background: #edf2e5; }
.meter-track > span, .meter-track > i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; padding: 12px 17px; border-radius: 13px; background: #eaf2dd; color: #76875d; font-size: 11px; }
.banner button { flex: 0 0 auto; color: #5c712f; font-size: 11px; font-weight: 600; }
.demo-banner { border: 1px dashed #dce6cc; background: #f3f7eb; }

/* Collection tools collapse without giving up search or selection. */
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 31px 0 17px; }
.tabs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 8px 13px; min-height: 36px; border-radius: 11px; color: #969d8c; font-size: 12px; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.pill:hover { color: #49563a; background: #edf1e5; }
.pill.active { background: #272d21; color: white; }
.pill span, .pill small { opacity: .6; font-size: 10px; }
.tools { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 7px; width: 180px; height: 37px; padding: 0 11px; border: 1px solid #e8ede1; border-radius: 10px; background: #fff; color: #a0a995; }
.search-box .icon { width: 16px; height: 16px; flex-basis: 16px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-box:focus-within { border-color: #b5d481; box-shadow: 0 0 0 3px #a8ed1010; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; padding: 0; border: 1px solid #e8ede1; border-radius: 10px; background: #fff; color: #8c9780; transition: background .2s, color .2s, border-color .2s; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { border-color: #ccd9bc; color: #586e3a; }
.icon-button.active { border-color: #cde7a5; color: #648827; background: #f0f8e1; }
.sort-select { max-width: 139px; height: 37px; padding: 0 27px 0 12px; border: 1px solid #e8ede1; border-radius: 10px; color: #8c9780; background: #fff; font-size: 11px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; margin: -2px 0 17px; border: 1px solid #e8ede1; border-radius: 14px; background: #fff; }
.filters label { display: flex; align-items: center; gap: 7px; color: #8b967d; font-size: 11px; }
.filters select, .filters input { height: 32px; max-width: 170px; padding: 5px 8px; border: 1px solid #e9ede2; border-radius: 7px; background: #fafbf8; font-size: 11px; }
.filters .quiet-button { margin-left: auto; }
.clear-button { margin-left: auto; padding: 6px 8px; color: #85966e; font-size: 10px; white-space: nowrap; }
.collection-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 1px 15px; color: #a2aa98; font-size: 10px; }
.collection-caption strong { color: #818d73; font-weight: 500; }
.collection-caption button { color: #83936d; font-size: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.asset-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 5px 18px #34431f02; transition: transform .22s, box-shadow .22s, border-color .2s; }
.asset-card:hover { transform: translateY(-4px); border-color: #e3eccf; box-shadow: 0 13px 30px #34431f0a; }
.asset-card.selected { border-color: #a8d963; box-shadow: 0 0 0 2px #b8e77950; }
.asset-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 17px 18px 16px; text-align: left; }
.asset-art { position: relative; display: grid; place-items: center; width: 100%; height: 157px; margin-bottom: 12px; border-radius: 15px; background: radial-gradient(ellipse at 50% 60%, #f5f7ef99, #ffffff00 68%); }
.asset-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.asset-card:hover .asset-art img { transform: translateY(-2px) rotate(-1deg); }
.asset-art.photo { overflow: hidden; background: #f7f8f4; }
.asset-art.photo img { width: 100%; height: 100%; object-fit: cover; }
.asset-art img.uploaded { border-radius: 12px; object-fit: contain; }
.asset-badge { position: absolute; top: 15px; left: 15px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #e4eed9; border-radius: 6px; color: #8b9d70; background: #f4f8ed; font-size: 9px; line-height: 1.5; font-weight: 500; }
.asset-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #9ac256; }
.asset-badge.retired { color: #9c9d94; background: #f4f4ef; border-color: #eaece3; }
.asset-badge.retired::before { background: #b0b4a6; }
.asset-badge.sold { color: #a79571; background: #f7f4eb; border-color: #efeadc; }
.asset-badge.sold::before { background: #c3aa7e; }
.card-pin { position: absolute; top: 15px; right: 15px; z-index: 3; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #a8b69a; background: #ffffffb3; }
.card-pin .icon { width: 13px; height: 13px; }
.card-pin.active, .card-pin[aria-pressed="true"] { color: #72a23b; background: #eef6e2; }
.asset-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.asset-secondary { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-top: 3px; color: #a2aa97; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-secondary span + span::before { content: "·"; margin-right: 6px; color: #bbc3b1; }
.card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; width: 100%; padding-top: 14px; margin-top: auto; }
.daily-cost { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; color: #2b3322; font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.daily-cost small, .daily-cost span { color: #9da790; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.daily-cost .currency { color: #4f5e3e; font-size: 10px; }
.location-label { display: inline-flex; align-items: center; gap: 3px; max-width: 46%; overflow: hidden; color: #a1ad92; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.location-label .icon { width: 11px; height: 11px; flex-basis: 11px; }
.asset-select { position: absolute; z-index: 5; inset: 13px 13px auto auto; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #dce5cf; border-radius: 50%; color: #638835; background: #fff; }
.asset-select input { margin: 0; }
.asset-select.selected { background: var(--lime); border-color: var(--lime); }
.batch-bar { position: sticky; bottom: 24px; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: fit-content; min-width: 440px; max-width: 100%; margin: 22px auto 0; padding: 12px 16px; border: 1px solid #e0e8d4; border-radius: 17px; background: #fff; box-shadow: 0 10px 45px #3444211a; font-size: 12px; }
.batch-bar > div { display: flex; align-items: center; gap: 7px; }
.batch-bar button { padding: 7px 10px; border-radius: 8px; font-size: 11px; }
.batch-bar .danger { color: var(--danger); background: #fff0ed; }
.batch-bar > [data-action="batch-delete"] { color: #cc6b5c; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 330px; padding: 40px 25px; border: 1px solid #edf1e6; border-radius: var(--radius); text-align: center; background: #fff; }
.empty-state > img { width: 160px; height: 120px; margin-bottom: 13px; }
.empty-state > .icon { width: 43px; height: 43px; margin-bottom: 20px; color: #b9c6a5; stroke-width: 1.2; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; font-size: 18px; font-weight: 550; }
.empty-state p { max-width: 330px; color: #98a18c; font-size: 12px; }
.empty-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.desktop-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 35px; padding: 14px 2px 0; color: #b1b8a6; font-size: 9px; letter-spacing: .3px; }
.toast { position: fixed; z-index: 200; left: calc(50% + 115px); bottom: 35px; display: flex; align-items: center; gap: 9px; max-width: min(90vw, 440px); padding: 13px 21px; border-radius: 14px; color: #fff; background: #293322; box-shadow: 0 8px 30px #26331d26; font-size: 12px; transform: translateX(-50%); }
.toast .icon { width: 17px; height: 17px; color: var(--lime); }

/* Wishlist keeps the same soft material language as the inventory. */
.wish-summary { display: block; padding: 27px 30px; margin-bottom: 26px; border-radius: var(--radius); background: #fff; }
.wish-summary .summary-main { grid-template-columns: minmax(0, 1fr) 150px; align-items: center; min-height: 110px; padding-bottom: 0; }
.wish-summary .summary-decoration { width: 150px; height: 110px; margin: 0; }
.wish-summary > div { min-width: 0; }
.wish-summary .metric-value { margin-top: 8px; font-size: 33px; }
.wish-summary img { width: 100%; height: 100%; margin: 0; }
.wish-list { display: grid; gap: 13px; }
.wish-card { display: flex; align-items: center; gap: 24px; padding: 18px 24px 18px 18px; border: 1px solid #fff; border-radius: 23px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.wish-card:hover { border-color: #e0eacd; box-shadow: 0 5px 20px #31411f05; }
.wish-photo { display: grid; place-items: center; flex: 0 0 102px; width: 102px; height: 88px; overflow: hidden; border-radius: 15px; background: #f7f9f3; }
.wish-photo img { width: 100%; height: 100%; object-fit: contain; }
.wish-info { flex: 1; min-width: 0; }
.wish-info h3 { margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.wish-info p { color: #98a08b; font-size: 11px; }
.wish-info .tag-chip { margin-top: 10px; }
.wish-price { flex: 0 0 auto; min-width: 110px; color: #3b472f; font-size: 21px; font-weight: 650; letter-spacing: -.7px; }
.wish-price small { display: block; margin-bottom: 4px; color: #9ca68e; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.wish-actions { display: flex; align-items: center; gap: 7px; }
.wish-actions .primary, .wish-actions .secondary { min-height: 35px; padding: 9px 12px; font-size: 11px; border-radius: 10px; }
.wish-info > .wish-price { margin: 8px 0 11px; color: #415530; font-size: 20px; font-weight: 600; }
.wish-actions > button:not(.primary):not(.secondary) { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 6px 11px; border-radius: 8px; color: #8ba46c; background: #f1f7e8; font-size: 10px; }
.wish-actions > button:first-child:not(.primary):not(.secondary) { color: #516f2f; background: #eaf5d9; }
.wish-actions .icon { width: 13px; height: 13px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 2px 15px; color: #778469; font-size: 12px; font-weight: 550; }
.section-label small { color: #a5ad9a; font-size: 10px; font-weight: 400; }

/* Charts are cards, never an administrative dashboard grid. */
.chart-tabs { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 3px 0 23px; }
.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.panel { min-width: 0; padding: 25px; border: 1px solid #fff; border-radius: var(--radius); background: #fff; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.panel-header h2, .panel-header h3 { font-size: 14px; font-weight: 600; }
.panel-header p { margin-top: 5px; color: #9ba590; font-size: 10px; }
.panel-header .subtle { font-size: 10px; }
.segmented { display: flex; align-items: center; gap: 3px; width: fit-content; padding: 4px; border-radius: 10px; background: #f3f6ed; }
.segmented button { min-height: 28px; padding: 5px 11px; border-radius: 7px; color: #97a087; font-size: 10px; white-space: nowrap; }
.segmented button.active, .segmented button[aria-selected="true"] { color: #5b713d; background: #fff; box-shadow: 0 2px 6px #42532708; }
.chart-metrics { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.chart-metrics strong { color: #2c3923; font-size: 28px; font-weight: 600; letter-spacing: -1px; }
.chart-metrics span { color: #9ba78c; font-size: 10px; }
.chart { position: relative; width: 100%; min-height: 210px; }
.chart > svg { width: 100%; height: auto; overflow: visible; }
.chart canvas { max-width: 100%; }
.chart text { fill: #a3ae96; font-family: var(--font); font-size: 10px; }
.chart-legend { display: grid; gap: 13px; margin-top: 17px; }
.legend-row { display: flex; align-items: center; gap: 8px; color: #8c997c; font-size: 11px; }
.legend-row > i, .legend-row > .dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; }
.legend-row strong { margin-left: auto; color: #5f7250; font-size: 11px; font-weight: 550; }
.legend-row small { min-width: 36px; color: #a3ae96; text-align: right; font-size: 10px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 20px; }
.insight-card { padding: 22px; border: 1px solid #e8eddf; border-radius: 20px; background: #f1f5e9; }
.insight-card > .icon { margin-bottom: 17px; color: #87a25d; }
.insight-card h3 { margin-bottom: 8px; color: #5b7045; font-size: 12px; font-weight: 550; }
.insight-card p { color: #98a38a; font-size: 10px; }
.insight-card strong { display: block; margin-bottom: 6px; color: #394d29; font-size: 23px; line-height: 1.2; font-weight: 600; }
.rank-list { display: grid; gap: 17px; }
.rank-list li, .rank-list > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-list img { flex: 0 0 48px; width: 48px; height: 40px; border-radius: 8px; background: #f7f9f2; }
.rank-list h3, .rank-list h4 { margin: 0; color: #5c6d4e; font-size: 11px; font-weight: 550; }
.rank-list p { color: #a3ad96; font-size: 9px; }
.rank-list strong { margin-left: auto; color: #5f7547; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rank-number { flex: 0 0 17px; color: #bdc9ac; font-size: 11px; font-weight: 650; }
.empty-chart { display: grid; place-items: center; min-height: 225px; padding: 25px; color: #a1ad92; font-size: 11px; text-align: center; }

/* Personal space and small management surfaces. */
.setting-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-hero { display: flex; align-items: center; gap: 16px; padding: 27px 29px; margin-bottom: 22px; border: 1px solid #edf1e6; border-radius: var(--radius); background: linear-gradient(110deg, #fff 30%, #f0f7e2); }
.settings-hero .avatar { width: 54px; height: 54px; flex-basis: 54px; color: #738959; background: #e7f0d8; font-size: 20px; }
.settings-hero h2 { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.settings-hero p { color: #97a38b; font-size: 11px; }
.settings-hero > img { width: 145px; height: 108px; margin-left: auto; }
.settings-hero .free-badge { margin: 0 0 12px; font-size: 8px; letter-spacing: 1px; }
.free-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 9px; border: 1px solid #d5e8b8; border-radius: 7px; color: #7f9c50; background: #f7fcef; font-size: 10px; white-space: nowrap; }
.setting-group { overflow: hidden; border: 1px solid #fff; border-radius: 23px; background: #fff; }
.setting-group > h2, .setting-group > h3 { padding: 21px 23px 11px; color: #99a58d; font-size: 10px; letter-spacing: 1px; font-weight: 500; }
.setting-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 16px 23px; text-align: left; border-bottom: 1px solid #f4f6f0; }
.setting-row:last-child { border-bottom: 0; }
button.setting-row:hover { background: #fbfcf8; }
.setting-row > div:not(.setting-icon) { flex: 1; min-width: 0; }
.setting-row h3, .setting-row strong { display: block; color: #566747; font-size: 12px; font-weight: 500; }
.setting-row p, .setting-row small { display: block; margin-top: 2px; color: #a0aa95; font-size: 10px; }
.setting-row > span:not(.setting-icon):not(.chevron) { color: #9ca98c; font-size: 11px; }
.setting-row > span:nth-child(2) { flex: 1; color: #5b6c4c; }
.setting-row > small { margin-top: 0; text-align: right; }
.setting-row > .chevron { margin-left: 0; font-size: 19px; line-height: 1; font-weight: 400; }
.setting-icon { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 10px; color: #91a676; background: #f3f7eb; }
.setting-icon .icon { width: 18px; height: 18px; }
.chevron { margin-left: auto; color: #bdc6b2; }
.chevron.icon, .chevron .icon { width: 15px; height: 15px; }
.setting-note { display: flex; align-items: flex-start; gap: 8px; margin: 21px 4px 0; color: #a3ad96; font-size: 10px; line-height: 1.8; }
.setting-note .icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 2px; }
.setting-form { display: grid; gap: 18px; }
.setting-form label { display: grid; gap: 7px; color: #82936f; font-size: 11px; }
.setting-form input:not([type="checkbox"]):not([type="radio"]), .setting-form select, .setting-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #e7eddd; border-radius: 10px; background: #fbfcf9; color: #4b5e3d; font-size: 13px; }
.setting-form input:focus, .setting-form textarea:focus { outline: 0; border-color: #b7d68b; box-shadow: 0 0 0 3px #a8ed1010; }
.setting-form label.field-line { display: flex; flex-direction: row; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.gallery-grid > button, .gallery-grid > div { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid #e5ecda; border-radius: 13px; background: #f5f8ef; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; border: 1px solid #e2ead6; border-radius: 7px; color: #91a47a; background: #f7faf1; font-size: 10px; line-height: 1.4; }
.tag-chip button { display: grid; place-items: center; width: 14px; height: 14px; padding: 0; color: #98ab7f; font-size: 13px; }
.tag-chip .icon { width: 12px; height: 12px; }
.tag-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 0; }
.tag-editor input { flex: 1; min-width: 95px; max-width: 160px; height: 30px; padding: 5px 8px; border: 1px solid #e6edda; border-radius: 7px; font-size: 12px; }
.manager-add { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.manager-add input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #e5ecd9; border-radius: 10px; background: #fafcf6; font-size: 12px; }
.manager-add .primary { flex: 0 0 auto; }
.inline-help { padding: 11px 13px; border-radius: 10px; color: #98a687; background: #f5f8ef; font-size: 11px; line-height: 1.8; }
.sync-status { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 9px; color: #7b925f; background: #f2f7e9; font-size: 11px; }
.sync-status::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #a0ca68; }
.sync-status + .setting-form { margin-top: 20px; }
.member { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eff3e8; }
.member > div { flex: 1; }
.member strong { display: block; color: #61764d; font-size: 12px; font-weight: 500; }
.member span, .member small { color: #a0ad92; font-size: 10px; }
.invite-code { padding: 14px; border: 1px dashed #c9dcb2; border-radius: 11px; color: #6c844f; background: #f6faef; text-align: center; font-size: 21px; letter-spacing: 5px; font-variant-numeric: tabular-nums; }
.lock-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 25px; background: radial-gradient(ellipse at top, #e8f3d3, transparent 70%), #f4f6ef; }
.lock-card { width: min(100%, 380px); padding: 38px; border: 1px solid #fff; border-radius: 30px; background: #ffffffdd; box-shadow: 0 25px 80px #41582a0b; text-align: center; }
.lock-card > .brand-mark { margin: 0 auto 22px; }
.lock-card h1 { margin-bottom: 9px; font-size: 24px; letter-spacing: -.6px; }
.lock-card p { margin-bottom: 24px; color: #9caa8c; font-size: 12px; }
.lock-card input { width: 100%; padding: 13px 15px; margin-bottom: 13px; border: 1px solid #dde8cf; border-radius: 12px; color: #657e4a; background: white; text-align: center; letter-spacing: 4px; }
.lock-card form .primary { width: 100%; }
.lock-card > small { display: block; margin-top: 20px; color: #a4b197; font-size: 9px; line-height: 1.8; }
.asset-tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; color: #92a67a; background: #f2f7e9; font-size: 9px; }

/* Dialogs share one polished header, a scrollable body, and a stable footer. */
dialog { color: var(--ink); font-family: var(--font); }
dialog::backdrop { background: #1c281f55; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.editor-dialog, .utility-dialog, .confirm-dialog, .detail-dialog, .image-dialog { position: fixed; inset: 0; width: min(900px, calc(100% - 48px)); max-width: none; max-height: min(860px, calc(100dvh - 64px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #ffffffaa; border-radius: 27px; background: #fff; box-shadow: 0 30px 110px #1b2a2040; }
.editor-dialog[open], .utility-dialog[open], .confirm-dialog[open], .detail-dialog[open] { display: flex; flex-direction: column; }
.editor-dialog > form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; max-height: min(860px, calc(100dvh - 64px)); }
.detail-dialog > #detail-content { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; min-height: 77px; padding: 22px 29px; border-bottom: 1px solid #f0f3ea; }
.modal-header h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.modal-header p { margin-top: 4px; color: #9ca68f; font-size: 10px; }
.circle-button { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%; color: #99a58b; background: #f3f6ec; }
.circle-button .icon { width: 17px; height: 17px; }
.circle-button:hover { color: #61794b; background: #eaf0df; }
.circle-button.dark { background: #293322; color: #fff; }
.editor-content { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 29px; flex: 1 1 auto; min-height: 0; padding: 28px 29px 25px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9e1cf transparent; }
.editor-content > :not(.editor-art) { grid-column: 2; }
.editor-art { position: sticky; top: 0; grid-column: 1; grid-row: 1 / span 7; align-self: start; min-width: 0; }
.editor-main-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.08; overflow: hidden; border: 1px solid #eaf0e1; border-radius: 22px; background: #f6f9f1; }
.editor-main-image img { width: 100%; height: 100%; object-fit: contain; }
.editor-main-image .circle-button { position: absolute; top: 10px; right: 10px; z-index: 2; background: #ffffffcc; }
.editor-art > .secondary, .editor-art > .quiet-button { width: 100%; margin-top: 11px; font-size: 11px; }
.image-strip { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.image-strip::-webkit-scrollbar { display: none; }
.image-thumb { position: relative; flex: 0 0 52px; width: 52px; height: 52px; padding: 2px; overflow: hidden; border: 1px solid #e3ecd6; border-radius: 10px; background: #f6f9ef; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.image-thumb.cover { border-color: #a2cd66; box-shadow: 0 0 0 1px #a2cd66; }
.image-thumb.cover::after { position: absolute; bottom: 1px; left: 1px; right: 1px; content: "封面"; padding: 1px 0; border-radius: 0 0 7px 7px; color: #fff; background: #607a3ec9; font-size: 8px; text-align: center; }
.image-thumb > button { position: absolute; z-index: 3; top: 1px; right: 1px; display: grid; place-items: center; width: 15px; height: 15px; padding: 0; border-radius: 50%; color: #fff; background: #50693aa6; font-size: 12px; line-height: 1; }
.image-thumb > small { display: none; }
.icon-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.icon-options button { display: grid; place-items: center; aspect-ratio: 1.2; padding: 2px; border: 1px solid #eaf0e2; border-radius: 8px; background: #fafcf7; }
.icon-options img { width: 100%; height: 100%; object-fit: contain; }
.icon-options button.selected { border-color: #b3d77c; background: #eff7e1; }
.form-section { margin-bottom: 24px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; color: #81966a; font-size: 10px; font-weight: 500; letter-spacing: 1px; }
.form-section-title button { display: flex; align-items: center; gap: 4px; color: #97aa80; font-size: 10px; letter-spacing: 0; }
.form-section-title .icon { width: 13px; height: 13px; }
.form-section-title > .icon { margin-right: 3px; }
.form-section-title:has(> .icon) { justify-content: flex-start; }
.field-line { display: flex; align-items: center; gap: 15px; min-height: 50px; padding: 9px 0; border-bottom: 1px solid #eff3e8; }
.field-label { flex: 0 0 83px; color: #8d9e7d; font-size: 11px; font-weight: 400; }
.field-label small { margin-left: 3px; color: #bed1a6; font-size: 10px; }
.field-line > label { display: flex; align-items: center; gap: 9px; flex: 0 0 108px; color: #859777; font-size: 11px; }
.field-line > label .icon { width: 17px; height: 17px; flex-basis: 17px; color: #a3b68d; }
.field-line > input:not([type="checkbox"]):not([type="radio"]), .field-line > select, .field-line > textarea, .field-line > .field-control { flex: 1; width: 0; min-width: 0; padding: 5px 0; border: 0; outline: 0; color: #4d663c; background: transparent; font-size: 12px; }
.field-line:focus-within { border-bottom-color: #b7d78c; }
.field-line input[type="date"] { max-width: 100%; }
.field-line > input[type="checkbox"] { margin-left: auto; }
.field-line > .icon { width: 16px; height: 16px; color: #b1c29a; }
.field-line.stacked { display: flex; align-items: stretch; flex-direction: column; gap: 8px; }
.field-line.stacked .field-label { flex-basis: auto; }
.field-line.stacked > label { flex-basis: auto; }
.field-line.stacked > input, .field-line.stacked > select, .field-line.stacked > textarea, .field-line.stacked > .field-control { flex: auto; width: 100%; }
.field-line textarea { min-height: 68px; }
.advanced-fields { padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px solid #edf3e4; }
.advanced-fields > summary { display: flex; align-items: center; justify-content: space-between; min-height: 30px; color: #80966a; font-size: 11px; font-weight: 500; cursor: pointer; list-style: none; }
.advanced-fields > summary::-webkit-details-marker { display: none; }
.advanced-fields > summary::after { content: "+"; color: #a7b993; font-size: 18px; font-weight: 400; }
.advanced-fields[open] > summary { margin-bottom: 12px; }
.advanced-fields[open] > summary::after { content: "−"; }
.advanced-fields .record-add + .form-section-title { margin-top: 20px; }
.cost-note { display: flex; align-items: flex-start; gap: 7px; padding: 11px 13px; margin-top: 13px; border: 1px solid #e7efd9; border-radius: 10px; color: #92a67a; background: #f6faef; font-size: 10px; line-height: 1.7; }
.cost-note .icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 1px; }
.record-editor { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 7px; border: 1px solid #e8efdd; border-radius: 9px; background: #fafcf7; }
.record-editor input { flex: 1; }
.record-editor input[type="date"] { flex: 0 1 110px; }
.record-editor > button { flex: 0 0 23px; width: 23px; height: 23px; padding: 0; border-radius: 50%; color: #a4b590; background: #edf3e4; font-size: 16px; line-height: 1; }
.record-editor > div { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px; border: 1px solid #e8efdd; border-radius: 9px; background: #fafcf7; }
.record-editor input, .record-editor select { min-width: 0; width: 100%; padding: 6px 5px; border: 0; outline: 0; color: #6f8658; background: transparent; font-size: 11px; }
.record-editor input[type="number"] { max-width: 90px; }
.record-editor .circle-button { flex-basis: 24px; width: 24px; height: 24px; }
.record-add { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; width: 100%; margin-top: 9px; border: 1px dashed #d6e4c3; border-radius: 9px; color: #93aa78; background: #fcfdf9; font-size: 10px; }
.record-add .icon { width: 13px; height: 13px; }
.attachment-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f1f5ea; color: #8fa477; font-size: 10px; }
.attachment-list { display: grid; gap: 1px; margin-top: 10px; }
.attachment-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row .icon { width: 15px; height: 15px; }
.attachment-row > button:last-child { margin-left: auto; }
.attachment-row > span { display: flex; align-items: center; gap: 6px; }
.editor-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; padding: 17px 29px; border-top: 1px solid #edf2e5; background: #fff; }
.editor-footer > .subtle, .editor-footer > .currency-note, .editor-footer > .item-warning { margin-right: auto; font-size: 10px; }
.editor-footer .primary { min-width: 113px; }
.editor-footer .error:empty { display: none; }
.editor-footer .error { flex: 1; margin-right: auto; font-size: 10px; }
.editor-footer .primary.full { width: 155px; flex: 0 0 155px; }
.utility-dialog { width: min(510px, calc(100% - 40px)); }
.utility-content { flex: 1 1 auto; min-height: 0; padding: 25px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }
.utility-content > p { margin-bottom: 20px; color: #95a484; font-size: 12px; }
.utility-content > h3 { margin-bottom: 14px; color: #6a8054; font-size: 13px; }
.confirm-dialog { width: min(395px, calc(100% - 40px)); padding: 28px; }
.confirm-dialog h2 { margin-bottom: 12px; font-size: 19px; }
.confirm-dialog p { color: #95a184; font-size: 12px; line-height: 1.85; }
.confirm-dialog .dialog-actions { justify-content: stretch; }
.confirm-dialog .dialog-actions > button { flex: 1; }
.detail-dialog { width: min(720px, calc(100% - 48px)); }
.detail-content { flex: 1 1 auto; min-height: 0; padding: 25px 29px 29px; overflow-y: auto; overscroll-behavior: contain; }
.detail-hero { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 0 24px; margin-bottom: 24px; }
.detail-hero > img, .detail-hero > button { flex: 0 0 190px; width: 190px; height: 159px; border-radius: 20px; background: #f7f9f1; object-fit: contain; }
.detail-hero > img, .detail-hero > button { grid-column: 1; grid-row: 1 / span 2; cursor: zoom-in; }
.detail-hero > h2 { grid-column: 2; align-self: end; }
.detail-hero > p { grid-column: 2; align-self: start; }
.detail-hero > button img { width: 100%; height: 100%; }
.detail-hero h2 { margin-bottom: 9px; font-size: 24px; letter-spacing: -.7px; }
.detail-hero p { margin-bottom: 12px; color: #9aaa88; font-size: 11px; }
.detail-hero .asset-badge { position: static; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 25px; padding: 22px 19px; border: 1px solid #e8efdd; border-radius: 17px; background: #f8fbf3; }
.detail-metrics > div { min-width: 0; }
.detail-metrics small, .detail-metrics span { display: block; color: #98a984; font-size: 10px; }
.detail-metrics label { display: block; color: #98a984; font-size: 10px; }
.detail-metrics strong small { display: inline; font-weight: 400; }
.detail-metrics strong { display: block; margin-top: 7px; color: #4f663b; font-size: 23px; font-weight: 600; letter-spacing: -.7px; }
.detail-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 25px; padding-bottom: 20px; }
.detail-info > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f0f4e9; font-size: 11px; }
.detail-info > p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f0f4e9; font-size: 11px; }
.detail-info > p label { color: #9aaa88; }
.detail-info > p span { color: #6f8459; text-align: right; }
.detail-info span, .detail-info dt { color: #9aaa88; }
.detail-info strong, .detail-info dd { margin: 0; color: #6f8459; text-align: right; font-weight: 400; }
.detail-note { padding: 15px 17px; margin-top: 4px; border-radius: 13px; color: #91a57b; background: #f7faf1; font-size: 11px; line-height: 1.85; white-space: pre-wrap; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 25px; }
.detail-actions .danger { margin-right: auto; color: #d47b6b; background: #fff4ef; }
.image-dialog { width: min(960px, calc(100% - 40px)); padding: 0; background: #f5f8ef; }
.image-dialog img { width: 100%; max-height: calc(100dvh - 84px); object-fit: contain; }
.image-dialog > .circle-button { position: absolute; z-index: 2; top: 14px; right: 14px; }
.currency-note { color: #a3af95; font-size: 10px; }
.item-warning { margin-top: 7px; font-size: 11px; line-height: 1.7; }

@media (min-width: 1650px) {
  .workspace { padding-right: 65px; padding-left: 65px; }
  .asset-grid { gap: 22px; }
  .asset-art { height: 178px; }
}

@media (max-width: 1200px) and (min-width: 761px) {
  .sidebar { width: 210px; padding-right: 18px; padding-left: 18px; }
  .workspace { margin-left: 210px; padding-right: 28px; padding-left: 28px; }
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .asset-art { height: 145px; }
  .summary-main { grid-template-columns: 1fr 1fr 130px; gap: 18px; }
  .summary-decoration { width: 139px; height: 110px; }
  .summary-card { padding-right: 25px; padding-left: 25px; }
  .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; }
  .tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .chart-grid { grid-template-columns: 1fr; }
  .insight-grid { gap: 12px; }
  .insight-card { padding: 18px; }
  .wish-card { gap: 15px; padding-right: 18px; }
  .wish-price { min-width: 85px; font-size: 18px; }
  .wish-actions { flex-direction: column; }
  .wish-actions .primary, .wish-actions .secondary { width: 100%; }
  .toast { left: calc(50% + 105px); }
}

@media (max-width: 760px) {
  :root { --radius: 23px; }
  body { font-size: 13px; }
  .sidebar, .desktop-kicker, .desktop-add, .desktop-footer { display: none; }
  .workspace { margin: 0; padding: 0 19px; min-height: 100dvh; }
  .workspace::before { height: 310px; background: radial-gradient(ellipse at 95% 0%, #e8f5cd80, transparent 62%); }
  .workspace > main, main.workspace, .workspace > .page, .workspace > section { padding-bottom: 120px; }
  .topbar { min-height: 76px; gap: 12px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: #1f2819; font-size: 18px; font-weight: 750; letter-spacing: -.8px; }
  .mobile-brand { align-items: flex-start; flex-direction: column; gap: 1px; line-height: 1.4; }
  .mobile-brand > span { color: #a0ad90; font-size: 8px; font-weight: 400; letter-spacing: .3px; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; }
  .mobile-brand .brand-mark .icon { width: 19px; height: 19px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .quiet-button { width: 33px; height: 33px; padding: 0; border: 1px solid #e6edda; border-radius: 10px; background: #ffffff80; }
  .topbar-actions .quiet-button .icon { width: 17px; height: 17px; }
  .topbar-actions .quiet-button span { display: none; }
  .topbar-actions .quiet-button:not(:has(.icon)) { width: auto; padding: 5px 9px; color: #8d9f79; font-size: 9px; }
  .topbar-actions .avatar { flex-basis: 29px; width: 29px; height: 29px; font-size: 10px; }
  .page-heading { margin: 12px 1px 22px; gap: 12px; }
  .page-heading h1 { gap: 8px; font-size: 28px; letter-spacing: -1.3px; }
  .eyebrow { margin-bottom: 7px; font-size: 8px; letter-spacing: 2px; }
  .page-subtitle { margin-top: 7px; font-size: 10px; letter-spacing: .15px; }
  .title-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .mobile-page-title { display: none; }
  .summary-card { padding: 22px 20px 0; border-radius: 23px; }
  .summary-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; min-height: 121px; padding-bottom: 24px; }
  .summary-heading { margin-bottom: 18px; font-size: 9px; gap: 7px; }
  .count-pill { min-width: 29px; min-height: 18px; padding: 2px 6px; font-size: 8px; }
  .metric-label { font-size: 9px; }
  .metric-value { margin-top: 8px; font-size: clamp(27px, 6.6vw, 36px); letter-spacing: -1.3px; }
  .metric-value small, .metric-value .currency { font-size: 12px; }
  .summary-decoration { position: absolute; right: -9px; top: -16px; width: 75px; height: 57px; margin: 0; opacity: .94; }
  .summary-bottom { min-height: 48px; gap: 8px; font-size: 8px; }
  .summary-bottom > span, .summary-bottom > p { gap: 4px; }
  .summary-bottom .icon { width: 12px; height: 12px; }
  .status-meter { gap: 5px; font-size: 8px; }
  .status-meter strong { font-size: 9px; }
  .meter-track { width: 40px; height: 3px; }
  .banner { margin-top: 10px; padding: 10px 11px; gap: 8px; border-radius: 11px; font-size: 9px; line-height: 1.6; }
  .banner button { font-size: 9px; white-space: nowrap; }
  .collection-toolbar { display: grid; grid-template-columns: 1fr; gap: 13px; margin: 25px 0 14px; }
  .tabs { gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .pill { min-height: 33px; padding: 7px 12px; border-radius: 10px; font-size: 11px; }
  .pill span, .pill small { font-size: 9px; }
  .tools { width: 100%; gap: 7px; }
  .search-box { flex: 1; width: auto; height: 36px; border-radius: 10px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 10px; }
  .icon-button { width: 36px; height: 36px; flex-basis: 36px; }
  .sort-select { max-width: 105px; height: 36px; padding-right: 16px; padding-left: 9px; font-size: 10px; }
  .filters { padding: 12px; gap: 10px; border-radius: 12px; }
  .filters label { flex: 1 1 42%; min-width: 0; font-size: 10px; }
  .filters select, .filters input { max-width: 100%; width: 100%; min-width: 0; }
  .collection-caption { margin-bottom: 12px; font-size: 9px; }
  .collection-caption button { font-size: 9px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .asset-card { border-radius: 21px; }
  .asset-card:hover { transform: none; box-shadow: none; }
  .asset-open { padding: 13px 13px 14px; }
  .asset-art { height: clamp(112px, 34vw, 170px); margin-bottom: 10px; border-radius: 12px; }
  .asset-card:hover .asset-art img { transform: none; }
  .asset-badge { top: 12px; left: 12px; padding: 3px 6px; border-radius: 5px; font-size: 8px; gap: 3px; }
  .asset-badge::before { width: 3px; height: 3px; }
  .card-pin { top: 11px; right: 10px; width: 23px; height: 23px; }
  .card-pin .icon { width: 12px; height: 12px; }
  .asset-name { font-size: 12px; letter-spacing: -.15px; }
  .asset-secondary { margin-top: 3px; font-size: 8px; gap: 4px; min-height: 17px; }
  .asset-secondary span + span::before { margin-right: 4px; }
  .card-bottom { padding-top: 11px; gap: 4px; }
  .daily-cost { font-size: 17px; gap: 2px; letter-spacing: -.65px; }
  .daily-cost small, .daily-cost span { font-size: 8px; }
  .daily-cost .currency { font-size: 9px; }
  .location-label { max-width: 43%; font-size: 8px; gap: 2px; }
  .location-label .icon { width: 10px; height: 10px; flex-basis: 10px; }
  .asset-select { width: 24px; height: 24px; top: 10px; right: 10px; }
  .empty-state { min-height: 310px; border-radius: 22px; padding: 35px 20px; }
  .empty-state h2, .empty-state h3 { font-size: 17px; }
  .empty-state p { font-size: 11px; }
  .empty-state > img { width: 143px; height: 110px; }
  .empty-actions { gap: 8px; }
  .empty-actions .primary, .empty-actions .secondary { min-height: 39px; padding: 10px 13px; font-size: 11px; }
  .mobile-nav { position: fixed; z-index: 40; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; width: min(326px, calc(100% - 100px)); min-height: 65px; padding: 5px 10px; border: 1px solid #ffffffcc; border-radius: 23px; background: #fffffff2; box-shadow: 0 5px 30px #354d2020; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translateX(calc(-50% - 34px)); }
  .mobile-nav .nav-button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 53px; padding: 5px 4px; border-radius: 14px; color: #a9b29b; font-size: 8px; line-height: 1.4; }
  .mobile-nav .nav-button .icon { width: 20px; height: 20px; }
  .mobile-nav .nav-button.active { color: #354720; background: #eef6df; }
  .mobile-nav .nav-button.active .icon { color: #6d982c; }
  .mobile-nav .nav-dot { display: none; }
  .floating-add { position: fixed; z-index: 45; right: max(16px, calc((100vw - 410px) / 2)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 5px); display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid #39432d; border-radius: 50%; color: #fff; background: #262e20; box-shadow: 0 6px 20px #35452428; }
  .floating-add .icon { width: 25px; height: 25px; stroke-width: 1.6; }
  .floating-add > span { font-size: 28px; line-height: 1; font-weight: 300; margin-top: -2px; }
  .floating-add:active { transform: scale(.96); }
  .batch-bar { position: fixed; right: 16px; left: 16px; bottom: 97px; min-width: 0; width: auto; max-width: none; flex-wrap: wrap; margin: 0; padding: 10px 12px; gap: 4px; border-radius: 14px; font-size: 11px; }
  .batch-bar button { padding: 6px 8px; font-size: 10px; }
  .toast { left: 50%; bottom: 102px; padding: 12px 17px; border-radius: 12px; font-size: 11px; }
  .wish-summary { gap: 13px; margin-bottom: 21px; padding: 23px 21px; border-radius: 23px; }
  .wish-summary .metric-value { font-size: 27px; }
  .wish-summary .summary-main { grid-template-columns: minmax(0, 1fr) 84px; min-height: 100px; gap: 10px; }
  .wish-summary .summary-decoration { position: relative; top: auto; right: auto; width: 84px; height: 85px; }
  .wish-summary img { width: 100%; height: 100%; margin: 0; }
  .wish-list { gap: 12px; }
  .wish-card { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 15px; padding: 15px; border-radius: 20px; }
  .wish-card > button { width: 85px; height: 88px; padding: 0; }
  .wish-photo { grid-row: span 2; width: 77px; height: 82px; border-radius: 12px; }
  .wish-info h3 { margin-bottom: 4px; font-size: 12px; }
  .wish-info p { font-size: 9px; }
  .wish-info .tag-chip { margin-top: 7px; font-size: 8px; }
  .wish-info > .wish-price { margin: 6px 0 9px; text-align: left; font-size: 18px; }
  .wish-price { min-width: 0; align-self: start; padding-top: 1px; text-align: right; font-size: 17px; }
  .wish-price small { font-size: 8px; }
  .wish-actions { grid-column: 2 / 4; justify-content: flex-end; gap: 6px; margin-top: 0; }
  .wish-info .wish-actions { justify-content: flex-start; }
  .wish-actions > button:not(.primary):not(.secondary) { min-height: 28px; padding: 5px 8px; font-size: 9px; }
  .wish-actions .primary, .wish-actions .secondary { min-height: 29px; padding: 7px 9px; border-radius: 8px; font-size: 9px; }
  .section-label { margin-top: 23px; font-size: 11px; }
  .section-label small { font-size: 9px; }
  .chart-tabs { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .chart-grid { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 22px 20px; border-radius: 23px; }
  .panel-header { margin-bottom: 20px; }
  .panel-header h2, .panel-header h3 { font-size: 13px; }
  .panel-header p, .panel-header .subtle { font-size: 9px; }
  .segmented button { min-height: 26px; padding: 5px 9px; font-size: 9px; }
  .chart-metrics strong { font-size: 25px; }
  .chart { min-height: 180px; }
  .chart-legend { gap: 12px; }
  .legend-row { font-size: 10px; }
  .legend-row strong { font-size: 10px; }
  .insight-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 16px; }
  .insight-card { position: relative; padding: 19px 20px; border-radius: 18px; }
  .insight-card > .icon { position: absolute; top: 21px; left: 20px; width: 21px; height: 21px; margin: 0; }
  .insight-card strong { font-size: 21px; }
  .insight-card h3 { font-size: 11px; }
  .insight-card p { font-size: 10px; }
  .setting-grid { grid-template-columns: 1fr; gap: 16px; }
  .settings-hero { gap: 13px; margin-bottom: 19px; padding: 23px 20px; border-radius: 23px; }
  .settings-hero .avatar { width: 47px; height: 47px; flex-basis: 47px; font-size: 17px; }
  .settings-hero h2 { font-size: 15px; }
  .settings-hero p { font-size: 10px; }
  .settings-hero > img { flex: 0 0 90px; width: 90px; height: 85px; margin-right: -9px; }
  .settings-hero .free-badge { margin-bottom: 10px; font-size: 7px; letter-spacing: .5px; }
  .free-badge { padding: 4px 7px; font-size: 8px; }
  .setting-group { border-radius: 21px; }
  .setting-group > h2, .setting-group > h3 { padding: 20px 20px 9px; font-size: 9px; }
  .setting-row { min-height: 66px; padding: 15px 20px; gap: 12px; }
  .setting-row h3, .setting-row strong { font-size: 12px; }
  .setting-row p, .setting-row small { font-size: 9px; }
  .setting-row > span:not(.setting-icon):not(.chevron) { font-size: 10px; }
  .setting-note { font-size: 9px; }
  .editor-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .editor-dialog > form { height: 100%; max-height: 100dvh; }
  .modal-header { min-height: 70px; padding: max(20px, env(safe-area-inset-top)) 21px 19px; gap: 12px; }
  .modal-header h2 { font-size: 18px; }
  .modal-header p { font-size: 9px; }
  .circle-button { width: 31px; height: 31px; flex-basis: 31px; }
  .editor-content { grid-template-columns: 1fr; align-content: start; gap: 26px; padding: 23px 22px 27px; }
  .editor-content > :not(.editor-art) { grid-column: 1; margin-bottom: 0; }
  .editor-art { position: static; grid-row: auto; grid-column: 1; display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: start; gap: 0 15px; }
  .editor-main-image { grid-column: 1; grid-row: 1 / 4; width: 115px; aspect-ratio: 1; border-radius: 19px; }
  .editor-art > .secondary, .editor-art > .quiet-button { grid-column: 2; width: fit-content; min-height: 32px; padding: 8px 11px; margin-top: 0; font-size: 10px; }
  .image-strip { grid-column: 2; padding-top: 8px; }
  .image-thumb { flex-basis: 39px; width: 39px; height: 39px; border-radius: 8px; }
  .image-thumb img { border-radius: 5px; }
  .image-thumb.cover::after { font-size: 7px; }
  .icon-options { grid-column: 2; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
  .icon-options button { aspect-ratio: 1.2; border-radius: 6px; }
  .form-section { margin-bottom: 25px; }
  .form-section-title { margin-bottom: 8px; font-size: 10px; }
  .field-line { min-height: 53px; gap: 13px; }
  .field-label { flex-basis: 78px; font-size: 11px; }
  .field-line > label { flex-basis: 105px; gap: 9px; font-size: 11px; }
  .field-line > input:not([type="checkbox"]):not([type="radio"]), .field-line > select, .field-line > textarea, .field-line > .field-control { font-size: 16px; }
  .field-line input::placeholder, .field-line textarea::placeholder { font-size: 12px; }
  .field-line textarea { min-height: 74px; }
  .cost-note { padding: 10px 11px; font-size: 9px; }
  .record-editor > div { flex-wrap: wrap; gap: 5px; padding: 8px; }
  .record-editor { display: grid; grid-template-columns: minmax(0, 1fr) 84px 24px; gap: 5px; }
  .record-editor > input:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
  .record-editor > button { grid-column: 3; grid-row: 1 / span 2; }
  .record-editor input, .record-editor select { flex: 1 1 38%; width: auto; font-size: 16px; }
  .record-editor input[type="number"] { max-width: none; }
  .record-editor input::placeholder { font-size: 11px; }
  .record-editor .circle-button { margin-left: auto; }
  .editor-footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); gap: 9px; box-shadow: 0 -5px 18px #42552304; }
  .editor-footer .primary { min-width: 108px; min-height: 44px; }
  .editor-footer .primary.full { width: auto; flex: 1; }
  .editor-footer .secondary { min-height: 44px; }
  .editor-footer > .subtle, .editor-footer > .currency-note, .editor-footer > .item-warning { max-width: 37%; font-size: 9px; line-height: 1.6; }
  .utility-dialog { width: calc(100% - 30px); max-height: calc(100dvh - 42px); border-radius: 23px; }
  .utility-content { padding: 22px; }
  .utility-content > p { font-size: 11px; }
  .setting-form input:not([type="checkbox"]):not([type="radio"]), .setting-form select, .setting-form textarea, .manager-add input, .tag-editor input, .lock-card input { font-size: 16px; }
  .setting-form input::placeholder, .setting-form textarea::placeholder, .manager-add input::placeholder, .tag-editor input::placeholder { font-size: 12px; }
  .form-row { gap: 12px; }
  .confirm-dialog { width: calc(100% - 40px); max-width: 370px; padding: 25px; border-radius: 23px; }
  .confirm-dialog h2 { font-size: 18px; }
  .confirm-dialog p { font-size: 11px; }
  .detail-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 38px); border-radius: 24px; }
  .detail-content { padding: 21px; }
  .detail-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 0 17px; margin-bottom: 21px; }
  .detail-hero > img, .detail-hero > button { flex-basis: 112px; width: 112px; height: 112px; border-radius: 17px; }
  .detail-hero h2 { margin-bottom: 8px; font-size: 19px; }
  .detail-hero p { font-size: 10px; }
  .detail-metrics { padding: 17px 12px; gap: 8px; border-radius: 14px; }
  .detail-metrics small, .detail-metrics span { font-size: 8px; }
  .detail-metrics label { font-size: 8px; }
  .detail-metrics strong { font-size: 18px; }
  .detail-info { grid-template-columns: 1fr; gap: 10px; }
  .detail-info > div { font-size: 11px; }
  .detail-note { font-size: 10px; }
  .detail-actions { gap: 7px; }
  .detail-actions .primary, .detail-actions .secondary { min-height: 36px; padding: 9px 11px; font-size: 10px; }
  .image-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 35px); border-radius: 20px; }
  .image-dialog img { max-height: calc(100dvh - 55px); }
  .lock-card { padding: 30px; border-radius: 26px; }
}

@media (max-width: 365px) {
  .workspace { padding-right: 14px; padding-left: 14px; }
  .page-heading h1 { font-size: 26px; }
  .summary-card { padding-right: 16px; padding-left: 16px; }
  .summary-main { gap: 10px; }
  .metric-value { font-size: 26px; }
  .summary-bottom { font-size: 7px; }
  .status-meter { font-size: 7px; }
  .meter-track { width: 28px; }
  .asset-grid { gap: 10px; }
  .asset-open { padding-right: 11px; padding-left: 11px; }
  .asset-art { height: 113px; }
  .asset-name { font-size: 11px; }
  .daily-cost { font-size: 16px; }
  .location-label { font-size: 7px; }
  .pill { padding-right: 10px; padding-left: 10px; font-size: 10px; }
  .sort-select { max-width: 87px; padding-left: 7px; font-size: 9px; }
  .mobile-nav { width: calc(100% - 90px); min-height: 61px; padding-right: 6px; padding-left: 6px; transform: translateX(calc(-50% - 30px)); }
  .mobile-nav .nav-button { min-height: 49px; }
  .floating-add { right: 13px; width: 51px; height: 51px; }
  .wish-card { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .wish-card > button { width: 68px; }
  .wish-photo { width: 61px; height: 74px; }
  .wish-price { font-size: 15px; }
  .editor-content { padding-right: 18px; padding-left: 18px; }
  .editor-art { grid-template-columns: 100px minmax(0, 1fr); gap: 0 12px; }
  .editor-main-image { width: 100px; }
  .field-label { flex-basis: 70px; }
}

/* Visual QA pass: readable object cards and a genuinely mobile editing surface. */
.workspace::before { background: radial-gradient(ellipse at 76% -14%, color-mix(in srgb, var(--accent-glow) 42%, transparent), transparent 73%); }
.desktop-nav .nav-button.active { color: var(--accent-ink); background: var(--lime-soft); }
.desktop-nav .nav-button.active .icon { color: var(--accent-ink); }
.desktop-nav .nav-dot { background: var(--lime); }
.icon-button.active, .icon-options button.selected { color: var(--accent-ink); border-color: color-mix(in srgb, var(--lime) 45%, #dbe3d1); background: var(--lime-soft); }
.count-pill { color: var(--accent-ink); background: var(--lime-soft); }
.demo-banner { border-color: color-mix(in srgb, var(--lime) 28%, #e1e6d8); background: color-mix(in srgb, var(--lime-soft) 62%, #fff); }
.free-badge { color: var(--accent-ink); background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime) 30%, #e1e6d8); }
.asset-name { font-size: 15px; }
.asset-secondary { min-height: 22px; font-size: 11px; color: #959d8c; }
.asset-badge { font-size: 10px; padding: 3px 8px; }
.daily-cost { font-size: 22px; }
.daily-cost small, .daily-cost span { font-size: 10px; }
.location-label { font-size: 11px; }
.metric-label, .summary-heading { font-size: 12px; }
.count-pill { min-height: 21px; font-size: 10px; }
.summary-bottom, .status-meter { font-size: 11px; }
.status-meter strong { font-size: 12px; }
.collection-caption, .collection-caption button { font-size: 11px; }
.search-box input, .sort-select { font-size: 12px; }
.desktop-footer { font-size: 10px; }
.sidebar-bottom > p { font-size: 10px; }
.setting-row > span:nth-child(2) { font-size: 13px; }
.setting-row > small { font-size: 11px; }
.setting-note, .currency-note { font-size: 11px; }
.panel-header p, .panel-header .subtle { font-size: 11px; }
.asset-tag { font-size: 10px; }

@media (max-width: 760px) {
  .workspace::before { height: 335px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-glow) 70%, #f5f6f3) 0%, color-mix(in srgb, var(--accent-glow) 18%, transparent) 58%, transparent 100%); }
  .topbar { min-height: 82px; }
  .mobile-brand { font-size: 23px; letter-spacing: -.9px; }
  .mobile-brand > span { color: #899574; font-size: 10px; }
  .topbar-actions .quiet-button:not(:has(.icon)) { height: 33px; padding-right: 11px; padding-left: 11px; color: #75865e; font-size: 11px; background: #ffffff75; }
  .page-heading { display: none; }
  .mobile-page-title { display: block; margin: 13px 1px 21px; color: #22271e; font-size: 28px; font-weight: 650; letter-spacing: -1px; }
  main > .banner { margin-top: 0; margin-bottom: 18px; font-size: 10px; }
  main > .banner button { font-size: 10px; }
  .summary-card { padding-top: 23px; }
  .summary-main { min-height: 129px; gap: 14px; padding-bottom: 26px; }
  .summary-heading { gap: 6px; margin-bottom: 19px; font-size: 12px; }
  .count-pill { min-height: 20px; padding: 2px 6px; font-size: 9px; }
  .metric-label { color: #8a947c; font-size: 12px; }
  .metric-value { font-size: clamp(26px, 6.9vw, 34px); }
  .metric-value .currency, .metric-value small { font-size: 12px; }
  .summary-decoration { right: -8px; top: -18px; width: 77px; height: 58px; }
  .summary-bottom { min-height: 51px; gap: 5px; }
  .status-meter { gap: 5px; color: #98a38a; font-size: 10px; }
  .status-meter strong { font-size: 10px; }
  .meter-track { width: 27px; }
  .collection-toolbar { margin-top: 25px; }
  .pill { min-height: 37px; padding: 8px 13px; font-size: 12px; }
  .search-box { height: 39px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 11px; }
  .sort-select { height: 39px; font-size: 11px; }
  .icon-button { height: 39px; }
  .collection-caption, .collection-caption button { font-size: 10px; }
  .collection-caption > span:last-child { font-size: 9px; letter-spacing: .35px; }
  .asset-open { padding: 14px 13px 17px; }
  .asset-art { height: clamp(122px, 34vw, 170px); margin-bottom: 13px; }
  .asset-badge { top: 12px; left: 12px; padding: 3px 7px; font-size: 10px; }
  .asset-name { font-size: 15px; line-height: 1.45; letter-spacing: -.25px; }
  .asset-secondary { min-height: 22px; margin-top: 3px; font-size: 11px; line-height: 1.55; }
  .asset-secondary span + span::before { margin-right: 3px; }
  .card-bottom { gap: 5px; flex-wrap: wrap; padding-top: 14px; }
  .daily-cost { font-size: 22px; line-height: 1.2; letter-spacing: -.65px; }
  .daily-cost small, .daily-cost span { font-size: 10px; }
  .daily-cost .currency { font-size: 11px; }
  .location-label { max-width: 45%; margin-left: auto; font-size: 10px; }
  .mobile-nav { min-height: 67px; }
  .mobile-nav .nav-button { min-height: 55px; gap: 3px; color: #a0a59a; font-size: 11px; }
  .mobile-nav .nav-button .icon { width: 21px; height: 21px; }
  .mobile-nav .nav-button.active { color: #252a21; background: #f0f1ed; }
  .mobile-nav .nav-button.active .icon { color: #252a21; }
  .floating-add { color: #fff; background: #242920; border-color: #30362a; }
  .wish-info h3 { font-size: 15px; }
  .wish-info > .wish-price { font-size: 22px; }
  .wish-actions > button:not(.primary):not(.secondary) { font-size: 11px; }
  .wish-summary .metric-label { font-size: 11px; }
  .setting-row > span:nth-child(2) { font-size: 14px; }
  .setting-row > small { font-size: 11px; }
  .setting-note { font-size: 11px; }
  .panel-header h2, .panel-header h3 { font-size: 15px; }
  .legend-row, .legend-row strong { font-size: 12px; }
  .legend-row small { font-size: 11px; }

  .editor-dialog, .editor-dialog > form { background: #f3f4f0; }
  .editor-dialog .modal-header { min-height: 75px; padding: max(20px, env(safe-area-inset-top)) 21px 19px; border-bottom: 0; background: #f3f4f0; }
  .editor-dialog .modal-header h2 { font-size: 19px; font-weight: 600; }
  .editor-dialog .modal-header .circle-button { width: 34px; height: 34px; flex-basis: 34px; color: #8b9580; background: #fff; font-size: 22px; }
  .editor-dialog .modal-header .circle-button.dark { color: #fff; background: #282e23; font-size: 20px; }
  .editor-content { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px 24px; scroll-padding-bottom: 24px; }
  .editor-art { display: flex; align-items: center; flex-direction: column; gap: 12px; width: 100%; min-width: 0; padding: 2px 2px 7px; }
  .editor-main-image { display: block; flex: 0 0 145px; width: 145px; height: 145px; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
  .editor-art > .secondary, .editor-art > .quiet-button { min-height: 37px; margin: 0; padding: 9px 15px; border-radius: 11px; color: #7d8c6d; background: #fff; font-size: 12px; }
  .editor-art > .secondary .icon { width: 17px; height: 17px; }
  .image-strip { justify-content: center; width: 100%; padding: 1px 0 3px; }
  .image-strip:empty { display: none; }
  .icon-options { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; margin: 0; padding: 3px 2px 6px; overflow-x: auto; scrollbar-width: none; }
  .icon-options::-webkit-scrollbar { display: none; }
  .icon-options button { flex: 0 0 44px; width: 44px; height: 40px; aspect-ratio: auto; border: 1px solid #e5eadc; border-radius: 9px; background: #fff; }
  .icon-options button.selected { border-color: color-mix(in srgb, var(--lime) 65%, #d5dfc6); background: var(--lime-soft); }
  .editor-content > .form-section { padding: 3px 17px; border: 0; border-radius: 22px; background: #fff; }
  .editor-content > .form-section:last-child { padding-top: 3px; padding-bottom: 3px; }
  .editor-content > .advanced-fields { padding: 12px 17px; border: 0; border-radius: 22px; background: #fff; }
  .field-line { min-height: 57px; padding: 11px 0; gap: 13px; border-bottom-color: #f0f2eb; }
  .form-section > .field-line:last-child { border-bottom: 0; }
  .field-line > label { flex: 0 0 116px; gap: 9px; color: #7f8873; font-size: 14px; }
  .field-line > label .icon { width: 18px; height: 18px; flex-basis: 18px; color: #9ba58e; }
  .field-line > input:not([type="checkbox"]):not([type="radio"]), .field-line > select, .field-line > textarea, .field-line > .field-control { padding: 5px 0; color: #3e4834; font-size: 16px; }
  .field-line input::placeholder, .field-line textarea::placeholder { color: #b0b7a8; font-size: 14px; }
  .field-line.stacked { padding-top: 17px; padding-bottom: 17px; }
  .field-line.stacked > label { flex-basis: auto; }
  .field-line textarea { min-height: 86px; }
  .form-section-title { gap: 7px; padding-top: 15px; margin-bottom: 3px; color: #899778; font-size: 12px; line-height: 1.6; }
  .form-section-title > .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .advanced-fields > summary { min-height: 32px; color: #7b896c; font-size: 13px; }
  .advanced-fields[open] > summary { margin-bottom: 8px; }
  .advanced-fields > .form-section-title { padding-top: 4px; padding-bottom: 5px; }
  .cost-note { margin-top: 9px; margin-bottom: 13px; padding: 10px 11px; color: #96a386; font-size: 11px; line-height: 1.8; }
  .record-add { min-height: 36px; font-size: 12px; }
  .attachment-row { font-size: 12px; }
  .editor-footer { flex-wrap: wrap; gap: 7px; padding: 13px 19px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #eaeee2; background: #fff; box-shadow: 0 -4px 18px #35421d03; }
  .editor-footer .primary.full { flex: 1 0 100%; width: 100%; min-height: 47px; border-radius: 14px; font-size: 14px; }
  .editor-footer .error { flex: 1 0 100%; max-width: none; margin: 0; font-size: 12px; }
}

@media (max-width: 365px) {
  .summary-card { padding-right: 16px; padding-left: 16px; }
  .summary-main { gap: 10px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 25px; }
  .status-meter { gap: 4px; font-size: 9px; }
  .meter-track { width: 19px; }
  .asset-open { padding-right: 11px; padding-left: 11px; }
  .asset-art { height: 119px; }
  .asset-name { font-size: 14px; }
  .asset-secondary { font-size: 10px; }
  .location-label { max-width: 100%; font-size: 10px; }
  .field-line > label { flex-basis: 106px; font-size: 13px; gap: 7px; }
  .editor-content > .form-section, .editor-content > .advanced-fields { padding-right: 15px; padding-left: 15px; }
  .pill { padding-right: 11px; padding-left: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep secondary information readable at the small sizes used by an inventory app. */
.asset-secondary, .metric-label, .summary-heading, .status-meter, .location-label,
.setting-note, .subtle, .currency-note { color: #6d7763; }
.asset-badge { color: #5b6f3d; }
.secondary:focus-within, .record-add:focus-within { outline: 3px solid #7da832; outline-offset: 3px; }

@media (max-width: 760px) {
  .setting-row > span:not(.setting-icon):not(.chevron) { color: #252a21; font-size: 14px; }
  .section-label { font-size: 12px; }
  .settings-hero h2 { font-size: 20px; }
  .chart-metrics { align-items: flex-end; justify-content: space-between; gap: 24px; }
  .chart-metrics > div:first-child { flex: 0 0 auto; }
  .chart-metrics > div:last-child { flex: 0 0 auto; margin-left: auto; text-align: right; }
  .chart-metrics .metric-value { font-size: 26px; }
  .chart-metrics > div:last-child .metric-value { justify-content: flex-end; }
}

.chart { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 360 / 200; }
.chart text { font-size: 12px; }

/* User-provided identity artwork, kept intact. */
.brand-logo { display: block; flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; border-radius: 13px; }
.brand { padding-left: 4px; gap: 10px; }
.lock-card > .lock-logo { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 22px; }
@media (max-width:760px) {
  .topbar .mobile-brand { flex-direction: row; align-items: center; gap: 9px; min-width: 0; }
  .mobile-brand .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
  .mobile-brand .mobile-brand-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
  .mobile-brand-copy strong { color: #25282e; font-size: 24px; line-height: 1.2; }
  .mobile-brand-copy small { color: #5c636e; font-size: 11px; white-space: nowrap; }
}
@media (max-width:365px) {
  .mobile-brand-copy small { display: none; }
  .mobile-brand-copy strong { font-size: 22px; }
  .mobile-brand .brand-logo { width: 39px; height: 39px; }
}

/* Cover source picker: browsing a source never deletes the other saved images. */
.cover-editor .cover-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; color: #25282e; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.cover-heading > span { color: #5c636e; font-size: 13px; font-weight: 400; }
.cover-preview { width: 100%; padding: 12px; border: 1px solid #dfe3e8; border-radius: 24px; background: #f3f4f6; }
.cover-preview .editor-main-image { width: 100%; height: 172px; border: 0; background: transparent; object-fit: contain; aspect-ratio: auto; }
.cover-picker { width: 100%; min-width: 0; margin-top: 16px; }
.cover-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; width: 100%; padding: 4px; border-radius: 13px; background: #e9ecf0; }
.cover-tabs > button { min-width: 0; min-height: 40px; border-radius: 10px; padding: 8px 3px; color: #505863; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cover-tabs > button[aria-selected="true"] { color: #25282e; background: #fff; box-shadow: 0 2px 6px #1a253012; font-weight: 650; }
.cover-tabs > button:disabled { opacity: .55; }
.cover-panel { padding-top: 16px; }
.cover-help { display: block; color: #5c636e; font-size: 14px; font-weight: 400; line-height: 1.65; margin-bottom: 12px; }
.cover-upload { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-bottom: 12px; border-radius: 13px; background: #30353d; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.cover-upload .icon { width: 20px; height: 20px; }
.cover-upload:focus-within { outline: 3px solid #4b657c; outline-offset: 3px; }
.cover-empty { display: flex; align-items: center; flex-direction: column; gap: 6px; border: 1px dashed #cbd2dc; border-radius: 15px; padding: 24px 12px; color: #5c636e; text-align: center; }
.cover-empty .icon { width: 30px; height: 30px; margin-bottom: 7px; }
.cover-empty p { font-size: 15px; }
.cover-empty > span { font-size: 13px; }
.cover-photo-grid.image-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-height: 260px; overflow-y: auto; padding: 3px; margin-bottom: 8px; }
.cover-photo-tile.image-thumb { flex: none; width: auto; height: auto; padding: 0; overflow: hidden; border: 2px solid #dfe3e8; border-radius: 13px; background: white; }
.cover-photo-tile.image-thumb.cover { border-color: #627e54; box-shadow: none; }
.cover-photo-tile.image-thumb.cover::after { display: none; }
.cover-photo-tile.image-thumb > .photo-cover-button { position: static; display: block; width: 100%; height: auto; border-radius: 0; padding: 0; background: transparent; color: #4d5662; }
.cover-photo-tile .photo-cover-button > img { width: 100%; height: 86px; object-fit: contain; border-radius: 0; background: #f5f6f8; }
.cover-photo-tile .photo-cover-button > span { display: block; padding: 7px 3px; font-size: 13px; line-height: 1.4; }
.cover-photo-tile.image-thumb > .cover-remove { top: 5px; right: 5px; width: 25px; height: 25px; color: white; background: #30353ddd; font-size: 19px; }
.cover-search { display: flex; align-items: center; gap: 7px; border: 1px solid #d2d8e0; background: white; padding: 10px; border-radius: 11px; margin-bottom: 12px; }
.cover-search .icon { width: 17px; height: 17px; flex-basis: 17px; color: #606977; }
.cover-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 15px; color: #25282e; outline: none; }
.cover-search:focus-within { outline: 3px solid #4b657c; outline-offset: 2px; }
.cover-search input::placeholder { color: #68717e; font-size: 13px; }
.emoji-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; max-height: 230px; padding: 3px; margin-bottom: 15px; overflow-y: auto; scrollbar-width: thin; }
.emoji-option { display: grid; place-items: center; min-height: 49px; border: 2px solid transparent; border-radius: 13px; background: #f3f4f6; }
.emoji-option > span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 32px; line-height: 1.2; }
.emoji-option:hover, .cover-object-grid > button:hover { background: #edf1f4; }
.emoji-option.selected, .cover-object-grid > button.selected { border-color: #627e54; background: #eef3e9; }
.custom-emoji-row { display: flex; gap: 8px; }
.custom-emoji-row > input { flex: 1; width: 0; min-width: 0; border: 1px solid #d2d8e0; background: white; color: #25282e; padding: 9px 11px; border-radius: 11px; font-family: "Apple Color Emoji", "Segoe UI Emoji", var(--font); font-size: 20px; }
.custom-emoji-row > button { min-width: 58px; padding: 9px 12px; border-radius: 11px; font-size: 15px; background: #e9ecf0; color: #25282e; }
.cover-empty-result { grid-column: 1 / -1; padding: 18px 6px; color: #5c636e; font-size: 14px; line-height: 1.6; }
.cover-object-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; max-height: 300px; overflow-y: auto; padding: 3px; scrollbar-width: thin; }
.cover-object-grid > button { position: relative; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 8px 6px; min-height: 102px; border: 2px solid transparent; border-radius: 15px; background: #f3f4f6; }
.cover-object-grid > button > img { width: 94px; height: 70px; object-fit: contain; }
.cover-object-grid > button > span { display: block; padding-top: 3px; color: #38414d; font-size: 14px; line-height: 1.4; }
.cover-object-grid > button > i { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #627e54; color: white; font-size: 12px; font-style: normal; }
#cover-error { margin-top: 9px; font-size: 14px; }
#cover-error:empty { display: none; }
@media (max-width: 760px) {
  .cover-editor.editor-art { gap: 0; padding: 10px 0 0; }
  .cover-editor .cover-heading { font-size: 16px; padding: 0 4px; }
  .cover-preview { display: grid; place-items: center; width: 100%; padding: 10px; border-radius: 22px; }
  .cover-preview .editor-main-image { width: 145px; height: 130px; flex: none; }
  .cover-picker { margin-top: 15px; }
  .cover-tabs > button { font-size: 15px; min-height: 43px; }
  .cover-panel { width: 100%; }
  .cover-search input { font-size: 16px; }
  .cover-search input::placeholder { font-size: 14px; }
  .emoji-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; max-height: 222px; }
  .emoji-option { min-height: 47px; }
  .emoji-option > span { font-size: 31px; }
  .cover-object-grid { grid-template-columns: repeat(3, minmax(0,1fr)); max-height: 240px; gap: 8px; }
  .cover-object-grid > button { min-height: 102px; }
  .cover-object-grid > button > img { height: 65px; }
  .cover-photo-grid.image-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cover-photo-tile .photo-cover-button > img { height: 88px; }
}
@media (max-width: 365px) {
  .emoji-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .cover-photo-grid.image-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Reading comfort: neutral surfaces, strong text contrast and usable type sizes.
   Keep this layer after responsive styling so small-screen rules cannot shrink labels again. */
:root {
  --background: #f1f2f4;
  --surface: #fcfcfd;
  --ink: #25282e;
  --muted: #5c636e;
  --muted-dark: #474e59;
  --line: #dfe3e8;
  --lime: #829775;
  --lime-soft: #edf1e9;
  --accent-glow: #edf0eb;
  --accent-ink: #405539;
  --danger: #ad3035;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[data-appearance="mint"] { --lime: #769b91; --lime-soft: #edf2f0; --accent-glow: #edf2f0; --accent-ink: #355a4f; }
html[data-appearance="lavender"] { --lime: #9786ac; --lime-soft: #f0edf4; --accent-glow: #f0edf4; --accent-ink: #574269; }
body { font-size: 17px; line-height: 1.65; }
.workspace::before { background: none; }
.sidebar { border-color: var(--line); background: var(--surface); }
.summary-card, .asset-card, .wish-card, .panel, .setting-group { background: var(--surface); }
.settings-hero { background: #f8f9fa; border-color: var(--line); }
.settings-hero h2 { color: var(--ink); font-size: 24px; }
.settings-hero p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.settings-hero .free-badge { font-size: 12px; letter-spacing: .5px; }
.free-badge, .count-pill, .asset-tag, .tag-chip { color: var(--accent-ink); background: var(--lime-soft); border-color: #d2dacf; font-size: 14px; }
.brand { font-size: 25px; }
.brand-mark { background: #dbe5d5; color: #33462d; }
.brand small, .sidebar-caption, .sidebar-bottom > p, .desktop-kicker, .desktop-footer, .eyebrow { color: var(--muted); font-size: 12px; }
.sidebar-caption { letter-spacing: 1px; }
.nav-button { color: var(--muted-dark); font-size: 17px; }
.desktop-nav .nav-button.active { color: var(--ink); background: #e7ece3; }
.desktop-nav .nav-button.active .icon { color: #405539; }
.space-switch { background: #f5f6f7; border-color: var(--line); }
.space-switch span { color: var(--ink); font-size: 15px; }
.space-switch small { color: var(--muted); font-size: 13px; }
.avatar, .avatar.small { color: var(--muted-dark); background: #e9ecef; font-size: 15px; }
.page-subtitle { color: var(--muted); font-size: 16px; }
.primary, .secondary, .desktop-add { min-height: 46px; padding: 12px 20px; font-size: 16px; }
.primary, .circle-button.dark, .floating-add { background: #30353d; color: #fff; }
.primary:hover { background: #454c57; }
.secondary { background: #e9ecef; color: var(--ink); }
.secondary:hover { background: #dee2e7; }
.primary.danger { background: #ad3035; }
.primary.lime { background: #dbe5d5; color: #33462d; }
.quiet-button, .topbar-actions .quiet-button:not(:has(.icon)) { color: var(--muted-dark); font-size: 14px; }
.metric-label, .summary-heading { color: var(--muted-dark); font-size: 16px; line-height: 1.5; }
.metric-value, .daily-cost { color: var(--ink); }
.metric-value { font-size: clamp(30px, 2.8vw, 42px); letter-spacing: -1px; }
.metric-value .currency, .metric-value small { color: var(--muted-dark); font-size: 16px; }
.summary-bottom { gap: 20px; min-height: 70px; border-color: var(--line); }
.status-meter { flex: 1; display: block; color: var(--muted); font-size: 14px; }
.status-meter strong { color: var(--ink); font-size: 15px; margin-left: 5px; }
.meter-track { margin-top: 7px; width: 100%; height: 5px; background: #e5e8e3; }
.banner, main > .banner { color: #414b3c; background: #edf1e9; border-color: #cfd8c7; font-size: 14px; line-height: 1.7; }
.banner button, main > .banner button { color: #33462d; font-size: 14px; }
.pill, .chart-tabs .pill { color: var(--muted-dark); font-size: 16px; min-height: 43px; }
.pill.active { color: #fff; background: #30353d; }
.search-box { width: 235px; height: 45px; border-color: #cfd5dc; color: var(--muted); }
.search-box input, .sort-select { color: var(--ink); font-size: 16px; }
.sort-select { max-width: 170px; height: 45px; border-color: #cfd5dc; }
.icon-button { color: var(--muted-dark); width: 43px; height: 43px; flex-basis: 43px; border-color: #cfd5dc; }
.filters label, .filters select, .filters input { color: var(--ink); font-size: 15px; }
.filters select, .filters input { height: 40px; border-color: #cfd5dc; }
.clear-button, .collection-caption, .collection-caption button { color: var(--muted); font-size: 14px; }
.collection-caption > span:last-child { font-size: 12px; letter-spacing: .7px; }
.asset-name { color: var(--ink); font-size: 19px; line-height: 1.5; }
.asset-secondary { color: var(--muted); font-size: 14px; min-height: 24px; flex-wrap: wrap; white-space: normal; }
.asset-secondary span + span::before { color: #727984; }
.asset-badge { color: #405539; background: #edf1e9; border-color: #d8e0d2; font-size: 13px; }
.asset-badge.retired { color: #535962; background: #eff0f2; border-color: #dfe2e6; }
.asset-badge.sold { color: #745b28; background: #f5f0e5; border-color: #e8decb; }
.daily-cost { font-size: 26px; }
.daily-cost small, .daily-cost span, .daily-cost .currency { color: var(--muted); font-size: 14px; }
.location-label { color: var(--muted); font-size: 14px; max-width: 100%; }
.card-bottom { flex-wrap: wrap; gap: 8px; }
.card-pin { color: #64745a; }
.batch-bar { flex-wrap: wrap; font-size: 16px; }
.batch-bar button { font-size: 15px; }
.empty-state p { color: var(--muted); font-size: 16px; }
.empty-state h3 { color: var(--ink); font-size: 24px; }
.wish-info h3 { color: var(--ink); font-size: 19px; }
.wish-info > .wish-price { color: var(--ink); font-size: 26px; }
.wish-actions > button:not(.primary):not(.secondary) { font-size: 15px; min-height: 38px; color: var(--muted-dark); }
.section-label { color: var(--muted-dark); font-size: 17px; font-weight: 600; }
.panel-header h2, .panel-header h3 { color: var(--ink); font-size: 20px; }
.panel-header p, .panel-header .subtle, .currency-note, .subtle { color: var(--muted); font-size: 14px; line-height: 1.75; }
.segmented button { color: var(--muted-dark); font-size: 14px; min-height: 35px; }
.segmented button.active { color: var(--ink); }
.legend-row, .legend-row strong, .legend-row small { color: var(--muted-dark); font-size: 15px; }
.chart text { fill: #535c68; font-size: 14px; }
.chart path[stroke] { stroke: #658552; }
.chart rect[fill] { fill: #8da37c; }
.chart stop { stop-color: #8da37c; }
.insight-card { background: #f9fafb; border-color: var(--line); }
.insight-card p, .rank-list li { color: var(--muted); font-size: 15px; }
.rank-list strong { color: var(--ink); font-size: 16px; }
.mobile-page-title > span { color: var(--muted) !important; }
.setting-row { min-height: 76px; border-color: var(--line); }
.setting-row > span:not(.setting-icon):not(.chevron), .setting-row h3, .setting-row strong { color: var(--ink); font-size: 18px; font-weight: 500; min-width: 0; line-height: 1.5; }
.setting-row > small { flex: 0 1 46%; min-width: 0; color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.setting-row > small:empty { display: none; }
.setting-row .setting-icon { color: #53654b; background: #eef1eb; }
.setting-row > .chevron { color: #6b7280; }
.setting-note, .setting-row p { color: var(--muted); font-size: 15px; line-height: 1.8; }
button.setting-row:hover { background: #f2f4f6; }
.setting-form label { color: var(--ink); font-size: 16px; }
.setting-form input:not([type="checkbox"]):not([type="radio"]), .setting-form select, .setting-form textarea { color: var(--ink); background: #f7f8fa; border-color: #cdd3dc; font-size: 17px; }
.manager-add input, .tag-editor input { color: var(--ink); font-size: 16px; background: #f7f8fa; border-color: #cdd3dc; }
.inline-help, .sync-status, .member span, .member small { color: var(--muted-dark); font-size: 15px; background-color: #f0f2f4; }
.invite-code { color: var(--ink); background: #f4f6f8; border-color: #bdc6d1; }
.lock-screen { background: var(--background); }
.lock-card p, .lock-card > small { color: var(--muted); font-size: 14px; }
.lock-card input { color: var(--ink); font-size: 18px; border-color: #cdd3dc; }
dialog::backdrop { background: #24283055; }
.modal-header { border-color: var(--line); }
.modal-header h2, .editor-dialog .modal-header h2 { color: var(--ink); font-size: 23px; font-weight: 650; }
.circle-button, .editor-dialog .modal-header .circle-button { color: #49515d; background: #eef0f3; width: 40px; height: 40px; flex-basis: 40px; font-size: 26px; }
.circle-button.dark, .editor-dialog .modal-header .circle-button.dark { color: #fff; background: #30353d; }
.editor-main-image { background: #f3f4f6; border-color: var(--line); }
.editor-art > .secondary, .editor-art > .quiet-button { color: var(--ink); background: #e9ecef; font-size: 16px; min-height: 45px; }
.icon-options button { background: #f7f8fa; border-color: #dce1e7; }
.editor-content .form-section-title { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.form-section-title .icon { color: #626e7a; width: 19px; height: 19px; flex-basis: 19px; }
.field-line { min-height: 62px; border-color: var(--line); gap: 18px; }
.field-line > label, .field-label { color: var(--ink); font-size: 17px; font-weight: 500; flex-basis: 150px; }
.field-line > label .icon, .field-line > .icon { color: #65717e; }
.field-line > input:not([type="checkbox"]):not([type="radio"]), .field-line > select, .field-line > textarea, .field-line > .field-control { color: var(--ink); font-size: 17px; line-height: 1.6; }
.field-line:focus-within { border-color: #708592; }
.field-line.stacked > label { flex-basis: auto; }
.advanced-fields > summary { color: var(--ink); font-size: 17px; font-weight: 500; min-height: 42px; }
.advanced-fields > summary::after { color: #626c79; font-size: 24px; }
.advanced-fields { border-color: var(--line); }
.cost-note { color: #4c5561; background: #f0f3f6; border-color: #dce2e9; font-size: 14px; line-height: 1.8; }
.record-editor { background: #f6f7f9; border-color: #dce2e9; }
.record-editor input, .record-editor select { color: var(--ink); font-size: 16px; }
.record-editor input[type="date"] { flex-basis: 145px; }
.record-add { color: #465b3c; border-color: #b3c0aa; font-size: 15px; min-height: 43px; }
.attachment-row, .attachment-row a { color: var(--muted-dark); font-size: 15px; }
.editor-footer { border-color: var(--line); }
.editor-footer .primary.full { font-size: 17px; min-height: 48px; }
.editor-footer .error, .error { color: #ad3035; font-size: 15px; line-height: 1.7; }
.utility-content > p, .confirm-dialog p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.utility-content > h3 { color: var(--ink); font-size: 18px; }
.utility-dialog { width: min(590px, calc(100% - 40px)); }
.confirm-dialog h2 { color: var(--ink); font-size: 23px; }
.detail-hero p, .detail-metrics label, .detail-metrics small { color: var(--muted); font-size: 14px; }
.detail-metrics { background: #f3f5f7; border-color: var(--line); }
.detail-metrics strong { color: var(--ink); font-size: 25px; }
.detail-info > p { font-size: 16px; }
.detail-info > p label { color: var(--muted); }
.detail-info > p span { color: var(--ink); }
.detail-note { color: var(--muted-dark); background: #f2f4f6; font-size: 16px; }
.toast { color: #fff; background: #30353d; font-size: 16px; }
input::placeholder, textarea::placeholder,
.field-line input::placeholder, .field-line textarea::placeholder,
.search-box input::placeholder, .record-editor input::placeholder,
.setting-form input::placeholder, .setting-form textarea::placeholder,
.manager-add input::placeholder, .tag-editor input::placeholder { color: #68717e; opacity: 1; font-size: 15px; }
:focus-visible, .secondary:focus-within, .record-add:focus-within { outline-color: #4b657c; }
@media (min-width: 761px) {
  .editor-dialog { width: min(1040px, calc(100% - 48px)); }
  .editor-content { grid-template-columns: 240px minmax(0, 1fr); gap: 0 32px; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .collection-toolbar { flex-wrap: wrap; }
  .tools { flex: 1; justify-content: flex-end; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .workspace::before { background: none; }
  .mobile-brand { color: var(--ink); font-size: 26px; }
  .mobile-brand > span { color: var(--muted); font-size: 12px; }
  .topbar-actions .quiet-button:not(:has(.icon)) { color: var(--muted-dark); font-size: 13px; background: var(--surface); }
  .summary-heading { font-size: 16px; }
  .count-pill { font-size: 12px; }
  .metric-label { font-size: 14px; }
  .metric-value { font-size: clamp(25px, 6.7vw, 32px); }
  .metric-value .currency, .metric-value small { font-size: 13px; }
  .summary-main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
  .status-meter { color: var(--muted); font-size: 13px; }
  .status-meter strong { font-size: 14px; }
  .meter-track { width: 100%; }
  main > .banner, main > .banner button { font-size: 13px; }
  .pill, .chart-tabs .pill { font-size: 15px; padding: 8px 12px; }
  .search-box { width: auto; flex: 1; min-width: 0; height: 44px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 14px; }
  .sort-select { font-size: 14px; max-width: 124px; height: 44px; }
  .icon-button { width: 40px; height: 44px; flex-basis: 40px; }
  .collection-caption { font-size: 13px; }
  .collection-caption > span:last-child { display: none; }
  .asset-name { font-size: 17px; }
  .asset-secondary { font-size: 13px; gap: 3px 5px; }
  .asset-badge { font-size: 12px; }
  .daily-cost { font-size: 24px; }
  .daily-cost small, .daily-cost span { font-size: 13px; }
  .location-label { font-size: 13px; }
  .mobile-nav .nav-button { color: var(--muted); font-size: 13px; }
  .mobile-nav .nav-button.active, .mobile-nav .nav-button.active .icon { color: var(--ink); }
  .wish-info h3 { font-size: 18px; }
  .wish-info > .wish-price { font-size: 25px; }
  .wish-actions > button:not(.primary):not(.secondary) { font-size: 14px; }
  .section-label { font-size: 16px; }
  .settings-hero h2 { font-size: 22px; }
  .settings-hero > div { flex: 1; min-width: 0; }
  .settings-hero > img { flex: 0 0 66px; width: 66px; height: 70px; }
  .settings-hero p, .settings-hero .free-badge { font-size: 13px; }
  .setting-row { padding: 18px; gap: 10px; min-height: 73px; }
  .setting-row > span:not(.setting-icon):not(.chevron) { color: var(--ink); font-size: 17px; }
  .setting-row > small { color: var(--muted); font-size: 14px; max-width: 44%; }
  .setting-note { font-size: 14px; }
  .panel-header h2, .panel-header h3 { font-size: 19px; }
  .legend-row, .legend-row strong, .legend-row small { font-size: 14px; }
  .editor-dialog, .editor-dialog > form, .editor-dialog .modal-header { background: var(--background); }
  .editor-dialog .modal-header h2 { font-size: 22px; }
  .editor-art > .secondary, .editor-art > .quiet-button { color: var(--ink); background: #e9ecef; font-size: 16px; }
  .editor-main-image { background: transparent; }
  .editor-content .form-section-title { color: var(--ink); font-size: 16px; }
  .field-line { min-height: 61px; gap: 10px; }
  .field-line > label, .field-label { color: var(--ink); font-size: 16px; flex-basis: 116px; gap: 7px; }
  .field-line > label .icon { color: #65717e; }
  .field-line > input:not([type="checkbox"]):not([type="radio"]), .field-line > select, .field-line > textarea, .field-line > .field-control { color: var(--ink); font-size: 16px; }
  .field-line.stacked > label { flex-basis: auto; }
  .advanced-fields > summary { color: var(--ink); font-size: 16px; }
  .cost-note { color: #4c5561; font-size: 14px; }
  .record-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, .7fr) 26px; gap: 8px; }
  .record-editor input[type="number"] { max-width: none; }
  .record-editor input[data-key="note"] { grid-column: 1 / 3; grid-row: 2; }
  .record-editor > button { grid-column: 3; grid-row: 1 / 3; }
  .record-add, .attachment-row { font-size: 15px; }
  .editor-footer .primary.full { font-size: 17px; }
  .editor-footer .error { font-size: 14px; }
  .detail-metrics strong { font-size: 21px; }
  .detail-metrics label, .detail-metrics small { font-size: 13px; }
  .detail-info > p { font-size: 15px; }
  .detail-note { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .manager-add { flex-wrap: wrap; }
  .manager-add input { min-width: 150px; }
}
@media (max-width: 365px) {
  .workspace { padding-inline: 14px; }
  .summary-main { gap: 8px; }
  .summary-card { padding-inline: 16px; }
  .metric-label { font-size: 13px; }
  .metric-value { font-size: 25px; letter-spacing: -1px; }
  .summary-heading { font-size: 15px; }
  .count-pill { font-size: 12px; }
  .pill { padding-inline: 10px; font-size: 14px; }
  .sort-select { max-width: 109px; }
  .field-line > label { flex-basis: 106px; font-size: 16px; }
  .setting-row { padding-inline: 14px; }
  .settings-hero > img { display: none; }
  .setting-row > span:not(.setting-icon):not(.chevron) { font-size: 16px; }
  .setting-row > small { max-width: 40%; font-size: 14px; }
  .mobile-nav .nav-button { font-size: 12px; }
}
