/* The client pages and the reading pages: the app's paper and ink (see static/web/ink.css for tokens).
   Each area may add its own rules below its heading; keep them scoped to .you. */
.you-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.you-top { border-bottom: 1px solid var(--hairline); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.you-top .you-wrap { min-height: 64px; flex-wrap: wrap; }
.you-top .wordmark { font: 700 26px/1 'Caveat', cursive; color: var(--fg); text-decoration: none; margin-right: 8px; }
.you-top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.you-top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.you-top nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.you-top .you-mine { margin-left: auto; }
.you-top a.cta { color: var(--on-cta, #fff); background: var(--cta); padding: 8px 16px; border-radius: 6px; font: 600 20px/1 'Caveat', cursive; }
.you-top a.signin { color: var(--fg); border: 1.5px solid var(--fg); border-radius: 6px; padding: 6px 12px; }
.you-top .dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--fg); color: #fff; font-size: 11px; text-align: center; }
.you-main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 72px; }
.you-foot { border-top: 1px solid var(--hairline); padding: 20px 0; font-size: 13px; }
.you-foot a { color: var(--muted); margin-right: 16px; }
@media (max-width: 720px) { .you-top .you-mine { margin-left: 0; width: 100%; padding-bottom: 10px; } .you-top .you-read { order: 3; } }

/* ===== Reading pages (Archive, collections, symbols, Body Guide, Field Guide, Stories, diaries): .rd- ===== */
.you .rd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.you .rd-rule { border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: 18px; }
.you .rd-lede { font-size: 22px; font-style: italic; margin: 4px 0 20px; }
.you .rd-search { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.you .rd-search input[type=search] { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); font: inherit; }
.you .rd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px; scrollbar-width: thin; }
.you .rd-chip { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--bg); color: var(--fg); font-size: 13px; text-decoration: none; white-space: nowrap; }
.you .rd-chip.on { background: var(--surface); border: 1.4px solid var(--fg); font-weight: 600; }
.you .rd-circles { display: flex; gap: 16px; overflow-x: auto; padding: 6px 0 14px; }
.you .rd-circle { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; text-align: center; }
.you .rd-circle > span:last-child { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you .rd-ring { width: 68px; height: 68px; border-radius: 50%; border: 1.5px solid var(--fg); padding: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg); box-sizing: border-box; }
.you .rd-ring .art { width: 100%; height: 100%; }
.you .rd-explore { font: 400 30px/1 var(--sans); border-style: dashed; }
.you .rd-shelves { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 24px; }
.you .rd-letter { font: 500 64px/1 var(--serif); color: var(--muted); }
.you .rd-phrase { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px; }
.you .rd-phrase > span { font: italic 500 clamp(26px, 4vw, 38px)/1.15 var(--serif); }
.you .rd-phrase small { font-size: 13px; color: var(--muted); }
.you .rd-badge { position: absolute; top: 12px; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.92); border: 1px solid var(--hairline); font-size: 11px; font-weight: 500; }
.you .rd-left { left: 12px; } .you .rd-right { right: 12px; }
/* The feed: one post at a time, as the app. */
.you .rd-feed { max-width: 560px; margin: 0 auto; }
.you .rd-post { margin-bottom: 36px; }
.you .rd-post-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; color: var(--fg); }
.you .rd-post-art > .art { width: 78%; height: 78%; }
.you .rd-post-bar { display: flex; align-items: center; gap: 4px; padding: 6px 0; }
.you .rd-pin { margin: 0; display: inline; }
.you .rd-icon { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--fg); font: 500 13px/1 var(--sans); text-decoration: none; cursor: pointer; border-radius: 6px; }
.you .rd-icon:hover { background: var(--surface); color: var(--fg); }
.you .rd-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.you .rd-icon.on svg { fill: currentColor; }
.you .rd-post-bar .rd-icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.you .rd-get { margin-left: auto; font: 600 23px/1 var(--hand); color: var(--fg); text-decoration: none; padding: 4px 8px; }
.you .rd-get:hover { text-decoration: underline; color: var(--fg); }
.you .rd-post-cap { margin: 0 4px 2px; font-size: 14.5px; }
.you .rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.you .rd-tags a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 3px 8px; border: 1px solid var(--hairline); border-radius: 14px; }
.you .rd-tags a:hover { color: var(--fg); border-color: var(--fg); }
/* The grid: squares, three across. */
.you .rd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.you .rd-grid.rd-small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.you .rd-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.you .rd-tile-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.you .rd-tile-art > .art { width: 72%; height: 72%; }
.you .rd-tile-art .rd-phrase > span { font-size: clamp(16px, 2.2vw, 24px); }
.you .rd-tile:hover .rd-tile-art { border-color: var(--fg); }
.you .rd-tile-name { font-size: 13px; font-weight: 500; }
.you .rd-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
/* Collections. */
.you .rd-mosaic { display: grid; aspect-ratio: 1; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg); overflow: hidden; gap: 1.5px; place-items: center; }
.you .rd-mosaic.n2, .you .rd-mosaic.n3, .you .rd-mosaic.n4 { grid-template-columns: 1fr 1fr; }
.you .rd-mosaic.n3 > span:first-child { grid-row: span 2; }
.you .rd-mosaic > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 12%; box-sizing: border-box; }
.you .rd-mosaic .art { width: 100%; height: 100%; }
.you .rd-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.you .rd-cover { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.you .rd-cover .rd-mosaic { margin-bottom: 6px; }
.you .rd-cover:hover .rd-mosaic { border-color: var(--fg); }
.you .rd-cover-name { font: 600 19px/1.2 var(--serif); }
.you .rd-cover-tag { font-size: 12.5px; color: var(--muted); }
.you .rd-cover-count { font-size: 12px; font-weight: 600; }
.you .rd-profile { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 14px; }
.you .rd-profile > .rd-mosaic { width: 132px; flex: none; }
.you .rd-tagline { font-size: 19px; font-style: italic; margin: 4px 0 6px; }
/* A symbol. */
.you .rd-symbol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.you .rd-hero { position: sticky; top: 88px; border: 1px solid var(--hairline); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.you .rd-hero > .art { width: 80%; height: 80%; }
.you .rd-phrase-hero { text-align: center; padding: 24px; }
.you .rd-phrase-hero p { font-size: clamp(34px, 5vw, 48px); font-style: italic; line-height: 1.1; margin: 0 0 10px; }
.you .rd-phrase-hero small { color: var(--muted); font-size: 13px; }
.you .rd-summary { font-size: 21px; font-style: italic; margin: 6px 0 14px; }
.you .rd-note { border: 1px solid var(--fg); border-radius: 12px; padding: 14px; margin: 14px 0; line-height: 1.5; }
.you .rd-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 8px; }
.you .rd-actions .rd-icon { border: 1px solid var(--hairline); }
.you .rd-prose { max-width: 68ch; line-height: 1.65; margin-top: 10px; }
.you .section > .subtitle { margin-bottom: 8px; }
.you .rd-meanings { margin: 0; }
.you .rd-meanings dt { color: var(--muted); font-size: 13px; margin-top: 12px; }
.you .rd-meanings dd { margin: 2px 0 0; font-size: 15px; }
.you .rd-places { display: flex; flex-direction: column; gap: 18px; }
.you .rd-place { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.you .rd-place > div:only-child { grid-column: 1 / -1; }
.you .rd-place h3 { font: 600 18px/1.3 var(--serif); margin-bottom: 4px; }
.you .rd-place p { margin: 0 0 4px; }
.you .rd-scene { position: relative; width: 100%; background: #FBFAF8; border-radius: var(--radius); overflow: hidden; }
.you .rd-scene-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.you .rd-scene-mark { position: absolute; transform-origin: 50% 50%; }
.you .rd-scene-spot { position: absolute; border: 1.5px dashed var(--muted); border-radius: 50%; box-sizing: border-box; }
.you .rd-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.you .rd-example { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface); }
.you .rd-example img { width: 100%; height: 100%; object-fit: cover; }
.you .rd-example .rd-badge { top: 6px; left: 6px; background: var(--fg); color: #fff; border: 0; font-weight: 700; font-size: 10px; }
.you .rd-sources ul { padding-left: 18px; margin: 6px 0; }
.you .rd-sources li { margin: 4px 0; }
/* The Body Guide. */
.you .rd-bodyguide { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 16px; }
.you .rd-map { position: sticky; top: 88px; margin: 0; }
.you .rd-map svg { width: 100%; height: auto; display: block; }
.you .rd-map rect { fill: var(--surface); stroke: rgba(92,87,81,.5); stroke-width: .35; }
.you .rd-map .dot { fill: var(--fg); stroke: #fff; stroke-width: .7; }
.you .rd-map .hit { fill: transparent; }
.you .rd-map a:hover .dot, .you .rd-map a:focus .dot { r: 2.8; }
.you .rd-region { margin-bottom: 22px; }
.you .rd-list { list-style: none; margin: 8px 0 0; padding: 0; }
.you .rd-list li { border-bottom: 1px solid var(--hairline); }
.you .rd-list li > a { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px; text-decoration: none; }
.you .rd-list li > a.rd-row { flex-direction: row; align-items: center; gap: 14px; }
.you .rd-list li > a:hover { background: #FBFAF8; }
.you .rd-mini { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: 6px; }
.you .rd-mini .art { width: 80%; height: 80%; }
.you .rd-mini .rd-letter { font-size: 28px; }
.you .rd-mini .rd-phrase { padding: 2px; } .you .rd-mini .rd-phrase > span { font-size: 11px; }
.you .rd-part { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; margin-top: 8px; }
.you .rd-center { text-align: center; margin-top: 8px; }
.you .rd-gap { margin-top: 24px; }
.you .rd-facts { margin-top: 16px; }
.you .rd-pain { display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.you .rd-pain i { display: block; height: 100%; background: var(--fg); }
/* The Field Guide, Stories, diaries. */
.you .rd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 14px 0 16px; overflow-x: auto; }
.you .rd-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.you .rd-tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
.you .rd-guide { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0 16px; }
.you .rd-guide summary { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; list-style: none; }
.you .rd-guide summary::-webkit-details-marker { display: none; }
.you .rd-guide[open] { border-color: var(--fg); padding-bottom: 12px; }
.you .rd-kind { flex: none; min-width: 48px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.you .rd-kind.k-do { color: var(--ok); } .you .rd-kind.k-dont { color: var(--danger); } .you .rd-kind.k-know { color: var(--fg); }
.you .rd-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.you .rd-story { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; }
.you .rd-story:hover { border-color: var(--fg); }
.you .rd-story img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.you .rd-article { max-width: 720px; }
.you .rd-figure { margin: 18px 0; }
.you .rd-figure img { border-radius: var(--radius); }
.you .rd-thumb { flex: none; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.you .rd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.you .rd-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.you .rd-timeline figure { margin: 0; }
.you .rd-timeline img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; margin-bottom: 6px; }
@media (max-width: 820px) {
  .you .rd-symbol, .you .rd-part, .you .rd-bodyguide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .you .rd-hero, .you .rd-map { position: static; }
  .you .rd-map { max-width: 300px; margin: 0 auto; }
  .you .rd-grid { gap: 6px; }
  .you .rd-place { grid-template-columns: 96px minmax(0, 1fr); }
}
/* ===== end reading pages ===== */

/* ===== Account pages (stacks and builder, designs, diaries, inbox, account): .acct-, .stackpv, .brow ===== */
.you .acct-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--hairline); margin-bottom: 22px; flex-wrap: wrap; }
.you .acct-tabs a { padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.you .acct-tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.you .acct-toggle { display: inline-flex; border: 1px solid var(--fg); border-radius: var(--radius); overflow: hidden; }
.you .acct-toggle a { padding: 10px 14px; text-decoration: none; font-size: 14px; }
.you .acct-toggle a[aria-current="page"] { background: var(--fg); color: #fff; }
.you .acct-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.you .acct-side { position: sticky; top: 88px; }
.you .acct-narrow { max-width: 480px; }
.you .acct-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.you .acct-links a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; }
.you .acct-links a:hover { border-color: var(--fg); color: var(--fg); }
.you .acct-links .hand { font-size: 24px; line-height: 1.1; }
.you .acct-legal a { color: var(--muted); margin-right: 14px; }
.you .acct-danger { border-color: #EBCFCF; }
.you .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.you .sr-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* A stack on paper, as the app's StackPreview. Sizes S, M, L. */
.you .stackpv { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px 16px; min-height: 200px;
  display: flex; align-items: center; justify-content: center; }
.you .stackpv.compact { min-height: 120px; padding: 14px 10px; }
.you .pv-item { display: flex; align-items: center; }
.you .pv-art { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; }
.you .pv-item.s2 .pv-art { width: 80px; height: 80px; }
.you .pv-item.s3 .pv-art { width: 104px; height: 104px; }
.you .compact .pv-art { width: 30px; height: 30px; }
.you .compact .pv-item.s2 .pv-art { width: 42px; height: 42px; }
.you .compact .pv-item.s3 .pv-art { width: 54px; height: 54px; }
.you .pv-art .art, .you .pv-art img { width: 100%; height: 100%; }
.you .pv-art img { object-fit: contain; border-radius: 4px; }
.you .pv-label { font-size: 13px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.you .pv-empty { color: var(--muted); font-size: 13px; margin: 0; }
.you .stackpv.vertical { flex-direction: column; gap: 10px; }
.you .stackpv.vertical .pv-item { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; gap: 14px; }
.you .stackpv.vertical .pv-art { grid-column: 2; }
.you .stackpv.vertical .pv-label { grid-column: 3; }
.you .stackpv.compact.vertical { gap: 4px; }
.you .stackpv.horizontal { flex-direction: row; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.you .stackpv.horizontal .pv-item { flex-direction: column; gap: 6px; }
.you .stackpv.horizontal .pv-label { max-width: 96px; text-align: center; }
.you .stackpv.compact.horizontal { gap: 10px; }
.you .stackpv.cluster { flex-wrap: wrap; gap: 12px 20px; max-width: 100%; }
.you .stackpv.cluster .pv-label { display: none; }

/* Stack lists. */
.you .stack-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.you .stack-card-link { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); }
.you .stack-card-link:hover .stackpv { border-color: var(--fg); }

/* The builder: paper on the left, the items and the picker on the right. */
.you .builder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.you .sticky-pv { position: sticky; top: 88px; }
.you .pv-title { font: 600 26px/1.1 var(--hand); text-align: center; min-height: 29px; margin: 0 0 10px; }
.you .layouts, .you .sizes { display: inline-flex; border: 1px solid var(--fg); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.you .layouts label, .you .sizes label { cursor: pointer; }
.you .layouts input, .you .sizes input { position: absolute; opacity: 0; pointer-events: none; }
.you .layouts span { display: block; padding: 9px 18px; font-size: 14px; }
.you .sizes { margin: 6px 0 0; align-self: flex-start; }
.you .sizes span { display: block; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.you .layouts label + label span, .you .sizes label + label span { border-left: 1px solid var(--fg); }
.you .layouts input:checked + span, .you .sizes input:checked + span { background: var(--fg); color: #fff; }
.you .layouts input:focus-visible + span, .you .sizes input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: -4px; }
.you .rows { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.you .brow { display: flex; gap: 12px; align-items: center; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px; background: var(--bg); }
.you .row-art { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 4px; padding: 4px; }
.you .row-art .art, .you .row-art img { width: 100%; height: 100%; object-fit: contain; }
.you .row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.you .row-body input[type=text] { padding: 8px 10px; }
.you .row-tools { display: flex; flex-direction: column; gap: 4px; }
.you .row-tools .btn.sm { min-height: 28px; padding: 0 9px; }
.you .picker { border: 1px solid var(--fg); border-radius: var(--radius); padding: 12px 14px; }
.you .picker summary { cursor: pointer; list-style: none; }
.you .picker summary::-webkit-details-marker { display: none; }
.you .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; }
.you .tiles.mine { max-height: none; }
.you .tile { display: flex; flex-direction: column; gap: 4px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--fg); }
.you .tile[hidden] { display: none; }
.you .tile-art { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px; }
.you .tile:hover .tile-art, .you .tile:focus-visible .tile-art { border-color: var(--fg); }
.you .tile-art .art, .you .tile-art img { width: 100%; height: 100%; object-fit: contain; }
.you .tile-name { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you .upload-own { margin-top: 12px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.you .upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.you .upload-fields input[type=file] { grid-column: 1 / -1; font-size: 13px; }
.you .upload-fields .btn { justify-self: start; }
.you .builder-delete { margin-top: 28px; }

/* Designs and diaries. */
.you .design-grid, .you .diary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.you .design-img { display: flex; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px; align-items: center; justify-content: center; }
.you .design-img img { max-height: 100%; object-fit: contain; }
.you .design-big { max-height: 520px; border-radius: var(--radius); background: var(--surface); }
.you .diary-row { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; }
.you .diary-row:hover { border-color: var(--fg); color: var(--fg); }
.you .diary-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 4px; background: var(--surface); overflow: hidden; }
.you .diary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.you .diary-shot { margin: 0; }
.you .diary-shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.you .diary-shot figcaption { margin-top: 6px; }

/* The inbox. */
.you .inbox { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.you .inbox li { border-bottom: 1px solid var(--hairline); }
.you .inbox a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 6px; text-decoration: none; color: var(--muted); }
.you .inbox a:hover { background: var(--surface); }
.you .inbox li.unread a { color: var(--fg); }
.you .inbox li.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); margin-right: 8px; vertical-align: middle; }
.you .inbox-kind { flex-shrink: 0; min-width: 84px; justify-content: center; }

@media (max-width: 860px) {
  .you .acct-split, .you .builder { grid-template-columns: 1fr; }
  .you .acct-side, .you .sticky-pv { position: static; }
  .you .acct-links { grid-template-columns: 1fr; }
}
/* ===== end account pages ===== */

/* ----- market: home, sketchbook, briefs, artist, bookings (templates/you/market, you/market_views.py) ----- */
.you .mk-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.you .mk-narrow { max-width: 640px; }
.you .mk-narrow .display { margin-bottom: 12px; }
.you .mk-headline { max-width: 26ch; margin-top: 8px; }
.you .mk-hello { margin-bottom: 22px; }
.you .mk-card { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.you .mk-card .cap { margin-bottom: 0; }
.you .mk-wet { border-width: 1.5px; }
.you .mk-art { width: 140px; flex-shrink: 0; }
.you .mk-art.sm { width: 72px; }
.you .mk-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.you .mk-note { margin-bottom: 20px; font-size: 14px; }
.you .mk-note.bad { border-color: #EBCFCF; color: var(--danger); }
.you .mk-quote { font: italic 500 18px/1.3 var(--serif); margin: 4px 0 8px; }
.you .mk-price { font: 600 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.you .mk-errors { margin-bottom: 18px; }

/* The seven steps, inked up to where this tattoo is. */
.you .mk-thread ol { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 0 8px; padding: 0; position: relative; }
.you .mk-thread li { position: relative; padding-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.you .mk-thread li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--hairline); }
.you .mk-thread li.done::before, .you .mk-thread li.here::before { background: var(--fg); }
.you .mk-thread li::after { content: ""; position: absolute; top: 1px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--hairline); }
.you .mk-thread li.done::after { background: var(--fg); border-color: var(--fg); }
.you .mk-thread li.here { color: var(--fg); font-weight: 600; }
.you .mk-thread li.here::after { background: var(--bg); border-color: var(--fg); width: 14px; height: 14px; margin-left: -7px; top: -1px; }

.you .mk-money { width: 100%; border-collapse: collapse; font-size: 14px; }
.you .mk-money td { padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.you .mk-money td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.you .mk-money tr.strong td { font-weight: 600; }

/* Offers: a row of cards that scrolls sideways, as the app's carousel does. */
.you .mk-offers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 440px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.you .mk-offer { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.you .mk-offer-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; min-height: 60px; margin-bottom: 6px; }
.you .mk-offer-work img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }
.you .mk-offer .btn-row form { margin: 0; }
.you .mk-response.counter { border-color: var(--fg); }
.you .mk-response .btn-row form { margin: 0; }

.you .mk-pins, .you .mk-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.you .mk-pin { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; padding: 14px 10px; text-align: center; font-size: 13px; }
.you .mk-pin-card { display: flex; flex-direction: column; gap: 8px; }
.you .mk-pin-card .mk-art { width: 110px; }
.you .mk-pin-card form { margin: 0; }
.you .mk-heal { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.you .mk-start { display: flex; flex-direction: column; gap: 10px; }
.you .mk-fig { margin: 0; max-width: 240px; }
.you .mk-fig img { border-radius: 4px; max-height: 240px; object-fit: cover; }

/* The brief builder: numbered steps down one page. */
.you .mk-builder { max-width: 720px; }
.you .mk-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.you .mk-steps[start="2"] { counter-reset: step 1; }
.you .mk-step { counter-increment: step; position: relative; padding: 0 0 30px 46px; border-left: 1px solid var(--hairline); margin-left: 14px; }
.you .mk-step::before { content: counter(step); position: absolute; left: -15px; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  border: 1.5px solid var(--fg); display: grid; place-items: center; font: 600 20px/1 var(--hand); }
.you .mk-step.mk-sub { counter-increment: none; margin-top: -16px; }
.you .mk-step.mk-sub::before { display: none; }
.you .mk-ask { font: 500 30px/1.08 var(--serif); margin-bottom: 6px; }
.you .mk-step > .muted { margin-bottom: 12px; }
.you .mk-chosen { display: flex; gap: 16px; align-items: center; }
.you .mk-picks { margin-bottom: 8px; }
.you .mk-upload input[type=file] { font-size: 14px; }
.you .mk-starters { margin-bottom: 10px; }
.you .mk-price-field { display: flex; align-items: baseline; gap: 6px; font: 600 44px/1 var(--serif); }
.you .mk-price-field input { font: 600 44px/1 var(--serif); max-width: 220px; padding: 6px 10px; }
.you .mk-toggle { margin-top: 12px; }
.you .mk-next { margin: 10px 0 14px; padding-left: 22px; font-size: 14px; }
.you .mk-next li { margin-bottom: 8px; }
.you .mk-next li::marker { font: 600 20px/1 var(--hand); }

/* The artist, where the client met them. */
.you .mk-artist-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.you .mk-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.you .mk-avatar.blank { display: grid; place-items: center; background: var(--surface); font: 600 40px/1 var(--serif); }
.you .mk-split { margin-top: 24px; }
.you .mk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.you .mk-gallery figure { margin: 0; }
.you .mk-gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }
.you .mk-review { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
.you .mk-review-photo { max-height: 200px; border-radius: 4px; }
.you .mk-stars-read span { color: var(--hairline); }
.you .mk-stars-read span.on { color: var(--fg); }
.you .mk-offer-bar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 84px; }
.you .mk-offer-bar form { margin: 0; }
.you .mk-place { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.you .mk-place:last-child { border-bottom: 0; }
.you .mk-place p { margin: 2px 0; }

/* Stars to give: radios in reverse so the chosen one and those before it fill. */
.you .mk-stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.you .mk-stars legend { width: 100%; margin-bottom: 4px; }
.you .mk-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.you .mk-stars label { font-size: 30px; line-height: 1; color: var(--hairline); cursor: pointer; }
.you .mk-stars input:checked ~ label, .you .mk-stars label:hover, .you .mk-stars label:hover ~ label { color: var(--fg); }
.you .mk-stars input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 2px; }
.you .mk-slots label { border-radius: var(--radius); }
.you .mk-details summary { cursor: pointer; font-weight: 600; }

@media (max-width: 860px) {
  .you .mk-split { grid-template-columns: 1fr; }
  .you .mk-offer-bar { position: static; }
  .you .mk-thread li span { font-size: 10px; }
  .you .mk-art { width: 96px; }
}

/* Worn on skin (home): paper, the quill's tracing, then the bleed into the skin photo. */
.you .mk-worn-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain; }
.you .mk-worn-card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.you .mk-worn-pic { position: relative; display: block; width: 100%; aspect-ratio: 5 / 6; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: #F4EFE7; cursor: pointer; font: inherit; color: inherit; }
.you .mk-worn-paper { position: absolute; inset: 0; display: grid; place-items: center; }
.you .mk-worn-paper .art { width: 72%; height: 72%; }
.you .mk-worn-note { position: absolute; left: 14px; top: 10px; font-size: 22px; color: var(--muted); transition: opacity .4s; }
.you .mk-worn-skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s cubic-bezier(.55, 0, .7, .2); }
.you .mk-worn-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left; display: flex; flex-direction: column;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7)); color: #fff; opacity: 0; transition: opacity .4s .8s; }
.you .mk-worn-label .cap { color: rgba(255, 255, 255, .87); }
.you .mk-worn-label .serif { font-size: 30px; font-weight: 600; line-height: 1.1; }
.you .mk-worn-card.skin .mk-worn-skin { clip-path: circle(75% at 50% 50%); }
.you .mk-worn-card.skin .mk-worn-label { opacity: 1; }
.you .mk-worn-card.skin .mk-worn-note { opacity: 0; }
.you .mk-worn-summary { font-size: 25px; line-height: 1.15; margin: 14px 0 12px; }
.you .mk-worn-means { margin: 6px 0 12px; padding: 0; list-style: none; }
.you .mk-worn-means li { position: relative; padding-left: 20px; margin-bottom: 4px; font-size: 14.5px; }
.you .mk-worn-means li::before { content: ''; position: absolute; left: 0; top: .75em; width: 10px; border-top: 1.2px solid var(--fg); }
.you .mk-worn-story { font-size: 19px; font-weight: 500; line-height: 1.35; margin: 6px 0 14px; }
.you .mk-worn-card .btn-row { margin-top: auto; align-items: center; }
@media (prefers-reduced-motion: reduce) { .you .mk-worn-skin, .you .mk-worn-label { transition: none; } }

/* The brief's kind: a tattoo, lettering, or removal. */
.you .mk-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.you .mk-lettering { font: 600 28px/1.2 var(--hand); width: 100%; }

/* The Archive, worn: a symbol page drawn then worn, and grid tiles that show the skin. */
.you .rd-worn { width: 100%; max-width: 420px; margin: 0 auto; }
.you .rd-tile-skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.you .rd-tile-mark { position: absolute; left: 6px; bottom: 6px; width: 30px; height: 30px; padding: 3px; border-radius: 3px; background: #F4EFE7; display: flex; }
.you .rd-tile-mark .art { width: 100%; height: 100%; }
.you .rd-hero:has(.rd-worn) { aspect-ratio: auto; border: 0; }

/* Symbol page: "Get this tattoo" stays in view while the page scrolls. */
.you .rd-getbar { position: sticky; bottom: 0; z-index: 5; margin-top: 32px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--hairline); }
.you .rd-getbar .cta { display: flex; width: 100%; }

/* A long story shows three lines; "Read more" opens the rest (market.js). */
.you .mk-worn-story.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.you .mk-more { background: none; border: 0; padding: 0 0 12px; color: var(--fg); font: 600 21px/1 var(--hand, 'Caveat', cursive); cursor: pointer; align-self: flex-start; }

/* Home, booked: the tattoo you're getting and your artist. */
.you .mk-yours-pic { position: relative; margin: 10px 0 14px; height: 260px; border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.you .mk-yours-pic img { width: 100%; height: 100%; object-fit: cover; }
.you .mk-yours-pic svg { width: 70%; height: 80%; }
.you .mk-yours-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(17,17,17,.8); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.you .mk-yours-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 18px; }
.you .mk-yours-money div { background: var(--surface); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.you .mk-yours-money b { font-size: 20px; }
.you .mk-yours-artist { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.you .mk-yours-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--hairline); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.you .mk-yours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.you .mk-yours-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
