/* Vicki's Studio — high-desert palette, quiet interface, paintings first. */
:root {
  --sand: #F3E9D7;
  --parchment: #FBF6EC;
  --paper-edge: #E8DAC0;
  --leather: #3E2A1C;        /* main text — 12:1 on sand */
  --leather-soft: #5E4532;   /* secondary text — 7:1 */
  --line: #D8C6A8;
  --sage: #56694E;           /* accent text/buttons — 5.4:1 on parchment */
  --sage-light: #DCE3D3;
  --terracotta: #A44A2E;     /* urgent — 5.6:1 on parchment */
  --terracotta-light: #F4DDD2;
  --gold: #9A7428;
  /* Chart colors with meaning (checked for color-blind readers): turquoise = doing better than usual,
     clay = doing worse than usual, warm gray = about usual. Always shown with words, never color alone. */
  --up: #00909C;
  --down: #B4572E;
  --even: #9A8C77;
  /* Where a painting is (checked for color-blind readers, any two side by side): */
  --place-out: #00909C;      /* turquoise: out at a show or gallery */
  --place-transit: #C0612B;  /* burnt orange: on the way */
  /* Time out, one hue deepening: 30, 60, 90+ days */
  --age-1: #D49A7E; --age-2: #C27050; --age-3: #A9481F;
  --shadow: 0 1px 2px rgba(62,42,28,.08), 0 6px 18px rgba(62,42,28,.08);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", system-ui, sans-serif;
  --tap: 56px;
  --nav-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.5; color: var(--leather);
  background-color: var(--sand);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
h1, h2, h3, .stat .n, .task .when b { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: .005em; }
h1 { font-size: 40px; }
h2 { font-size: 30px; margin: 34px 0 12px; }
h3 { font-size: 24px; }
p { margin: .4em 0; }
.muted { color: var(--leather-soft); }
.small { font-size: 17px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }

/* hand-tooled / stitched divider */
.stitch {
  height: 14px; margin: 26px 0; border: 0;
  background:
    linear-gradient(var(--line), var(--line)) top/100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom/100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(94,69,50,.55) 0 9px, transparent 9px 16px) center/100% 2px no-repeat;
}

/* ---------- navigation: always visible, never hidden ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(251,246,236,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; max-width: 140px; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--leather-soft); text-decoration: none; font-size: 16px; font-weight: 700; border-radius: 12px;
}
.nav a svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.on { color: var(--leather); background: var(--sage-light); }
.nav .brand { display: none; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--leather); align-items: center; position: absolute; left: 24px; top: 0; bottom: 0; }
@media (min-width: 900px) {
  body { padding-bottom: 40px; padding-top: 84px; }
  .nav { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); justify-content: center; gap: 8px; padding: 8px; }
  .nav a { flex-direction: row; gap: 10px; font-size: 18px; max-width: none; flex: 0 0 auto; padding: 0 22px; }

}

/* ---------- page header ---------- */
.page-head { padding: 26px 0 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.greet { font-size: 44px; }
.date-line { font-size: 19px; color: var(--leather-soft); margin-top: 4px; }

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-weight: 700; min-height: var(--tap); padding: 0 22px; border-radius: 999px; border: 2px solid var(--leather);
  background: var(--parchment); color: var(--leather); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; transition: transform .12s ease, background .2s ease; touch-action: manipulation; white-space: nowrap;
}
button:active, .btn:active { transform: scale(.97); }
.btn-primary { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-warm { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-quiet { border-color: var(--line); }
.btn-big { min-height: 64px; font-size: 21px; padding: 0 30px; }
.btn-block { width: 100%; }
button svg, .btn svg { width: 24px; flex: 0 0 auto; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.btn-row > * { flex: 1 1 200px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- cards & lists ---------- */
.card { background: var(--parchment); border: 1px solid var(--paper-edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 12px; }
.board { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  /* Left: things to act on (Next up, then Galleries / Stay in touch / Your studio). Right: the whiteboard. */
  .board { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "a b" "c b"; align-items: start; column-gap: 20px; row-gap: 0; }
  .board .col-a { grid-area: a; } .board .col-b { grid-area: b; } .board .col-c { grid-area: c; }
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.section-title h2 { margin: 0; }
.count { font-family: var(--sans); font-size: 17px; color: var(--leather-soft); font-weight: 700; }

.task { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .35s ease, transform .35s ease, max-height .35s ease; max-height: 200px; }
.task:last-child { border-bottom: 0; }
.task.leaving { opacity: 0; transform: translateX(40px); max-height: 0; padding: 0; overflow: hidden; }
.task .when { flex: 0 0 auto; min-width: 82px; text-align: center; border-radius: 10px; padding: 6px 8px; background: var(--sand); font-weight: 700; font-size: 16px; line-height: 1.2; }
.task .when b { display: block; font-size: 22px; font-family: var(--serif); }
.task.overdue .when { background: var(--terracotta-light); color: var(--terracotta); }
.task.today .when { background: var(--sage-light); color: var(--sage); }
.task .what { flex: 1; min-width: 0; }
.task .what .t { font-weight: 700; font-size: 20px; }
.task .what a { font-size: 17px; }
.done-btn { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 2.5px solid var(--sage); background: #fff; color: var(--sage); }
.done-btn svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 3; fill: none; }
.done-btn:hover { background: var(--sage-light); }
.done-btn.ticked { background: var(--sage); color: #fff; }
.group-label { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--leather-soft); margin: 18px 0 2px; }
.group-label.urgent { color: var(--terracotta); }

.place { display: flex; flex-direction: column; gap: 10px; }
.place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.place-head h3 { font-size: 23px; }
.thumb-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb-row a { flex: 0 0 auto; width: 104px; text-decoration: none; color: var(--leather); font-size: 16px; }
.thumb-row .ph { width: 104px; height: 104px; border-radius: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 16px; font-weight: 700; background: var(--sand); color: var(--leather-soft); white-space: nowrap; }
.pill.sage { background: var(--sage-light); color: var(--sage); }
.pill.warm { background: var(--terracotta-light); color: var(--terracotta); }
.pill.gold { background: #F1E4C3; color: #6E5214; }

/* ---------- images: blurred placeholder, then fade in ---------- */
.ph { position: relative; overflow: hidden; background: var(--paper-edge) center/cover no-repeat; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.ph img.in { opacity: 1; }
.ph.contain img { object-fit: contain; }

/* ---------- art grid ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chip { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--parchment); font-weight: 700; font-size: 18px; }
.chip.on { background: var(--leather); border-color: var(--leather); color: var(--parchment); }
.search { width: 100%; font: inherit; font-size: 20px; min-height: 58px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--leather); }
.grid { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { text-decoration: none; color: var(--leather); display: block; background: var(--parchment); }
@media (min-width: 640px) { .tile { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); } }
.tile .ph { aspect-ratio: 1 / 1; }
.tile .cap { padding: 10px 12px 14px; }
.tile .cap .t { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.tile .cap .l { font-size: 17px; color: var(--leather-soft); margin-top: 3px; }
.tile .tag { position: absolute; top: 10px; left: 10px; }

/* ---------- art detail ---------- */
.hero { margin: 0 -18px; background: #2a1d14; }
@media (min-width: 900px) { .hero { margin: 0; border-radius: var(--radius); overflow: hidden; } }
.hero .ph { width: 100%; max-height: 78vh; aspect-ratio: var(--ar, 4/3); background-color: #2a1d14; }
.hero .ph img { object-fit: contain; }
.art-title { font-size: 44px; margin-top: 20px; }
.facts { font-size: 20px; color: var(--leather-soft); margin-top: 6px; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--sage-light); }
.where svg { width: 32px; height: 32px; flex: 0 0 auto; stroke: var(--sage); fill: none; stroke-width: 1.8; }
.where .big { font-size: 22px; font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: -8px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--parchment); border: 2.5px solid var(--sage); }
.timeline .d { font-size: 16px; color: var(--leather-soft); font-weight: 700; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row:last-child { border-bottom: 0; }
.row .amt { font-weight: 700; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.kv dt { color: var(--leather-soft); }
.kv dd { margin: 0; font-weight: 700; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--parchment); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .n { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; }
.stat .k { font-size: 17px; color: var(--leather-soft); margin-top: 6px; font-weight: 700; }
.stat.warm .n { color: var(--terracotta); }

/* ---------- sheets (forms) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(40,28,18,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { background: var(--parchment); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h2 { margin: 0 0 14px; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 16px; color: var(--leather-soft); margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=tel], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 20px; min-height: 58px; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--leather);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices button { flex: 1 1 130px; white-space: normal; border-color: var(--line); }
.choices button.on { background: var(--leather); color: var(--parchment); border-color: var(--leather); }
.picker { position: relative; }
.picker .list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 2px solid var(--sage); border-radius: 12px; margin-top: 4px; max-height: 280px; overflow-y: auto; box-shadow: var(--shadow); }
.picker .list button { width: 100%; border: 0; border-radius: 0; justify-content: flex-start; min-height: 54px; background: #fff; font-weight: 400; border-bottom: 1px solid var(--line); text-align: left; }
.picker .list button:hover, .picker .list button:focus { background: var(--sage-light); }
.picker .list button b { font-weight: 700; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-grid label { position: relative; cursor: pointer; }
.pick-grid input { position: absolute; opacity: 0; }
.pick-grid .ph { aspect-ratio: 1; border-radius: 8px; border: 4px solid transparent; }
.pick-grid input:checked + .ph { border-color: var(--sage); }
.pick-grid input:checked + .ph::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pick-grid .t { font-size: 16px; line-height: 1.2; margin-top: 3px; }
.error { color: var(--terracotta); font-weight: 700; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--leather); color: var(--parchment); border-radius: 999px; padding: 12px 14px 12px 24px; z-index: 200; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); animation: up .25s ease; max-width: calc(100% - 32px); }
.toast button { min-height: 44px; background: transparent; color: #fff; border-color: rgba(255,255,255,.5); padding: 0 16px; }
@media (min-width: 900px) { .toast { bottom: 30px; } }

/* ---------- welcome letter & highlights ---------- */
.letter-bg { position: fixed; inset: 0; z-index: 300; background: rgba(40,28,18,.6); display: grid; place-items: center; padding: 18px; animation: fade .6s ease; }
.letter { background: var(--parchment); max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 6px; padding: 38px 32px; box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: rise .9s cubic-bezier(.2,.8,.2,1); position: relative; }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; border-radius: 3px; }
.letter .body { font-family: var(--serif); font-size: 25px; line-height: 1.5; white-space: pre-wrap; }
.letter .sig { font-family: var(--serif); font-style: italic; font-size: 26px; margin-top: 18px; text-align: right; }
.hl-hero { text-align: center; padding: 30px 0 10px; }
.hl-hero h1 { font-size: 50px; }
.hl-nums { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 26px 0; }
.hl-nums .stat { text-align: center; }
.hl-nums .n { font-size: 64px; }
.mosaic { columns: 2 160px; column-gap: 8px; }
.mosaic .ph { margin-bottom: 8px; border-radius: 6px; break-inside: avoid; }

.banner { display: flex; gap: 14px; align-items: center; background: #F1E4C3; border-radius: var(--radius); padding: 14px 18px; margin: 14px 0; }
.empty { text-align: center; padding: 26px 10px; color: var(--leather-soft); }
.empty .big { font-family: var(--serif); font-size: 26px; color: var(--leather); }
table.report { width: 100%; border-collapse: collapse; font-size: 17px; }
table.report th, table.report td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.report th { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--leather-soft); }
table.report .ph { width: 64px; height: 64px; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.progress { height: 14px; border-radius: 999px; background: var(--paper-edge); overflow: hidden; }
.progress div { height: 100%; background: var(--sage); transition: width .4s ease; }
.fade-in { animation: fade .35s ease; }
.loading { text-align: center; padding: 60px 0; color: var(--leather-soft); font-family: var(--serif); font-size: 24px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(40px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1250px) { .nav .brand { display: flex; } }

.subject-line { margin-top: 10px; font-size: 19px; }
.subject-line .banner { flex-wrap: wrap; }
.subject-line .banner > div { flex: 1 1 100%; }

/* share button on each painting in the grid: in the title block, dark with a light icon */
.tile .cap { display: flex; align-items: center; gap: 10px; padding-right: 16px; }
.tile .cap-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tile-share { flex: 0 0 auto; width: 50px; height: 50px; min-height: 50px; padding: 0; border-radius: 50%;
  border: 0; background: var(--leather); color: var(--parchment); }
.tile-share:hover { background: #2C1D13; }
.tile-share svg { width: 24px; height: 24px; stroke: var(--parchment); }

/* awards */
.rosette { flex: 0 0 auto; vertical-align: middle; }
.award-row { justify-content: flex-start; gap: 14px; }
.award-choices button { justify-content: flex-start; gap: 8px; flex: 1 1 200px; }
.tile-award { position: absolute; top: 8px; right: 10px; filter: drop-shadow(0 1px 3px rgba(40,28,18,.35)); }
.task.ask { flex-wrap: wrap; max-height: none; }
.award-ask { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 100%; padding-left: 96px; }
.award-ask button { flex: 1 1 140px; }
@media (max-width: 420px) { .award-ask { padding-left: 0; } }
.award-ask button { min-height: 52px; }
.pick-grid input[type=radio]:checked + .ph { border-color: var(--sage); }

/* home: the whiteboard of shows */
.board-list { padding: 6px 20px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.board-row:last-child { border-bottom: 0; }
.b-name { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.b-date { text-align: right; line-height: 1.2; min-width: 72px; }
.b-status { min-width: 0; text-align: right; }

/* relationships */
.collectors-btn { margin-top: 4px; border-color: var(--sage); color: var(--sage); }
.gallery-home { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: inherit; flex-wrap: wrap; }
.gallery-card h3 { font-family: var(--serif); }
.gal-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gal-row:last-child { border-bottom: 0; }
.gal-top a { color: inherit; text-decoration: none; font-size: 20px; }
.gal-act { margin-top: 8px; }
.progress .indeterminate { width: 40%; height: 100%; background: var(--sage); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* insights: what sells */
.findings p { font-size: 20px; margin: 6px 0; }
.sell-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 8.5em; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sell-row:last-of-type { border-bottom: 0; }
.sell-label { font-weight: 700; overflow-wrap: anywhere; }
.sell-bar { position: relative; height: 16px; border-radius: 999px; background: #F1E7D4; box-shadow: inset 0 0 0 1px var(--paper-edge); }
.sell-bar div { height: 100%; background: var(--even); border-radius: 999px; }
.sell-bar::after { content: ""; position: absolute; left: var(--avg); top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--leather); border-radius: 1px; }
.sell-row.up .sell-bar div { background: var(--up); }
.sell-row.down .sell-bar div { background: var(--down); }
.sell-tag { font-size: 15px; font-weight: 600; color: var(--leather-soft); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sell-tag .dot, .sell-legend .sw { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.sell-row.up .dot, .sw.up { background: var(--up); }
.sell-row.down .dot, .sw.down { background: var(--down); }
.sw.even { background: var(--even); }
.sell-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 4px; font-size: 15px; color: var(--leather-soft); }
.sell-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sell-legend .avg-mark { width: 2px; height: 16px; background: var(--leather); border-radius: 1px; display: inline-block; }
.stat[class*="edge-"] { border-top-width: 5px; }
.stat.edge-up { border-top-color: var(--up); }
.stat.edge-down { border-top-color: var(--down); }
.stat.edge-even { border-top-color: var(--even); }
.stat.edge-gold { border-top-color: var(--gold); }
.sell-num { font-size: 17px; color: var(--leather-soft); white-space: nowrap; text-align: right; }
.sell-row.small-n { opacity: .55; }
@media (max-width: 520px) { .sell-row { grid-template-columns: 1fr auto; } .sell-bar { grid-column: 1 / -1; grid-row: 2; } }

/* reading show documents */
.read-btn { margin: 4px 0 18px; border-color: var(--sage); color: var(--sage); }
.field.unsure input { border-color: var(--gold); background: #FFF8E6; }
.field.unsure label::after { content: '  · please check'; color: #6E5214; font-weight: 400; font-size: 16px; }

.pricing-explain p { margin: 10px 0; }

.portfolio-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--sand); }
.portfolio-line .pl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.portfolio-line .btn, .portfolio-line button { min-height: 44px; padding: 0 14px; font-size: 17px; }

.lookup-box { margin: -4px 0 18px; }
.lookup-box #lookup-out p { margin: 10px 0 0; }
.lookup-box .lookup-pick { justify-content: flex-start; text-align: left; margin-top: 8px; height: auto; padding: 10px 16px; line-height: 1.35; }
.lookup-box .lookup-pick .muted { font-weight: 400; }

/* Remove buttons: quiet, but big enough to tap */
.rm-btn { min-height: 44px; padding: 0 14px; font-size: 16px; color: var(--leather-soft); }
.row-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.task-edit { all: unset; cursor: pointer; display: block; text-decoration: underline; text-decoration-color: rgba(94,69,50,.3); text-underline-offset: 4px; }
.task-edit:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* Where each painting is: a dot beside the words */
.place-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 2px var(--parchment); }
.place-dot.out { background: var(--place-out); }
.place-dot.transit { background: var(--place-transit); }
.place-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.place-legend span { display: inline-flex; align-items: center; }
/* How long it's been out */
.age-meter { height: 5px; border-radius: 999px; background: #EFE4D0; margin-top: 5px; overflow: hidden; }
.age-meter i { display: block; height: 100%; border-radius: 999px; background: var(--even); }
.age-meter.a1 i { background: var(--age-1); }
.age-meter.a2 i { background: var(--age-2); }
.age-meter.a3 i { background: var(--age-3); }

/* The guide */
.help-link { text-align: center; margin: 34px 0 10px; }
.help-link a { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); font-weight: 700; min-height: 48px; }
.help-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.guide ul, .guide ol { padding-left: 24px; margin: 0; }
.guide li { margin: 8px 0; }
.guide .card p { margin: 0 0 10px; }
.guide .card p:last-child { margin-bottom: 0; }
.howto details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.howto details:last-child { border-bottom: 0; }
.howto summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; list-style: none; }
.howto summary::before { content: "＋"; color: var(--sage); margin-right: 10px; font-weight: 700; }
.howto details[open] summary::before { content: "－"; }
.howto summary::-webkit-details-marker { display: none; }
.howto details p { margin: 0 0 10px 30px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guide-toc a { min-height: 44px; display: inline-flex; align-items: center; color: var(--sage); font-weight: 700; }
.guide-sec { scroll-margin-top: 90px; }
.guide-shot { margin: 0 0 14px; text-align: center; }
.guide-shot img { max-width: 360px; width: 100%; border-radius: 12px; border: 1px solid var(--paper-edge); box-shadow: var(--shadow); }
@media print {
  .nav, .help-link, #guide-print, .guide .btn-quiet, .guide-sec > p.small, .guide-toc { display: none !important; }
  body { background: #fff; }
  .guide .card { box-shadow: none; break-inside: avoid-page; }
  .guide-shot img { max-width: 260px; box-shadow: none; }
  .guide-sec { break-before: page; }
}
