/* ==========================================================================
   Posts  (2026-11-17)
   --------------------------------------------------------------------------
   A post card, its comments, and the composer: everything /assets/posts.js
   draws. Used by /discover/ (front matter `pageCss: posts`). Ported from
   Kuma's Discover redesign preview (src/_preview/discover/), which reads
   the design canvas's gold.css tokens, so a page using this imports
   gold.css too.

     .dp      a post: head, text, photos / video / ship / Augur find,
              actions (counts on the buttons), comments
     .dc      the composer
     .dpx-*   the photo viewer, the report dialog, the toast
   ========================================================================== */

/* ---- Avatars and marks ---- */
.dp-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--card-hover); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.dp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-av.is-ver { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 2.5px rgba(var(--amber-rgb), .75); }
.dp-av.is-sm { width: 30px; height: 30px; font-size: 12px; }
.dp-av.is-xs { width: 34px; height: 34px; font-size: 13px; }
.dp-ver { width: 14px; height: 14px; flex: none; }

/* ---- Composer ---- */
.dc { position: relative; border: 1px solid var(--border); background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.dc-top { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px 14px; }
.dc-in { box-sizing: border-box; flex: 1; min-width: 0; min-height: 42px; margin: 0; padding: 10px 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 15px/1.5 var(--font-ui); resize: none; overflow: hidden; }
.dc-in::placeholder { color: var(--text-dim); }
.dc-in:focus { outline: 0; border-image: var(--gold-line) 1; }
.dc.is-writing .dc-in { min-height: 96px; }
.dc-att { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px 74px; }
.dc-att[hidden] { display: none; }
.dc-thumb { position: relative; width: 120px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-thumb.is-up img { opacity: .4; }
.dc-thumb.is-up::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-line);
  animation: dc-up 1.2s ease-in-out infinite; transform-origin: left; }
@keyframes dc-up { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.dc-thumb.is-bad { border-color: #e0574a; }
.dc-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0;
  background: rgba(var(--bg-rgb), .8); color: var(--text); font-size: 15px; line-height: 1; cursor: pointer; }
.dc-x:hover { color: var(--amber-bright); }
.dc-add { width: 68px; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed var(--border-strong);
  background: none; color: var(--text-muted); font: 600 11px/1 var(--font-ui); cursor: pointer; }
.dc-add b { font-size: 20px; font-weight: 400; line-height: 1; }
.dc-add:hover { border-color: var(--amber-deep); color: var(--amber-bright); }
/* the YouTube link and the ship, each a row of its own when its tool is on */
.dc-row { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px 74px; }
.dc-row[hidden] { display: none; }
.dc-row svg { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.dc-field { box-sizing: border-box; flex: 1; min-width: 0; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 14px/1.4 var(--font-ui); }
.dc-field::placeholder { color: var(--text-dim); }
.dc-field:focus { outline: 0; border-image: var(--gold-line) 1; }
.dc-row .dc-x { position: static; flex: none; background: none; }
/* an Augur find: link, kind and name, where, facts, picture */
.dc-aug { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 14px 74px; }
.dc-aug[hidden] { display: none; }
.dc-aug > .dc-field { flex: none; }   /* the row's flex: 1 would squash it in this column */
.dc-aug-h { display: flex; align-items: center; justify-content: space-between; }
.dc-aug-h .dc-x { position: static; background: none; }
.dc-aug-2 { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.dc-aug select.dc-field { padding-right: 8px; }
.dc-facts { display: flex; flex-direction: column; gap: 8px; }
.dc-facts:empty { display: none; }
.dc-fact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 26px; gap: 8px; align-items: center; }
.dc-fact .dc-x { position: static; background: none; }
.dc-addfact { align-self: flex-start; height: 30px; padding: 0 8px; margin-left: -8px; border: 0; background: none; color: var(--text-muted);
  font: 600 12.5px/1 var(--font-ui); cursor: pointer; }
.dc-addfact:hover { background: var(--card-hover); color: var(--text); }
.dc-addfact[hidden] { display: none; }
.dc-err { margin: 0; padding: 0 20px 12px 74px; font-size: 13px; line-height: 1.5; color: #f0a0a0; }
.dc-err[hidden] { display: none; }
.dc-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 20px 6px 14px; border-top: 1px solid var(--border); }
.dc-tool { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 0; background: none;
  color: var(--text-muted); font: 500 13.5px/1 var(--font-ui); cursor: pointer; transition: background .15s, color .15s; }
.dc-tool svg { width: 16px; height: 16px; flex: none; }
.dc-tool:hover { background: var(--card-hover); color: var(--text); }
.dc-tool.is-on { color: var(--amber-bright); }
.dc-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dc-audwrap { position: relative; }
.dc-aud { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 11px; border: 1px solid var(--border-strong); background: none;
  color: var(--text-muted); font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.dc-aud svg { width: 14px; height: 14px; flex: none; }
.dc-aud .dc-caret { width: 9px; height: 9px; margin-left: 2px; }
.dc-aud:hover, .dc-aud[aria-expanded="true"] { color: var(--text); border-color: var(--amber-deep); }
.dc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 280px; padding: 6px; border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.dc-menu[hidden] { display: none; }
.dc-opt { position: relative; width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 3px 12px; align-items: center; padding: 10px 12px; border: 0;
  background: none; text-align: left; cursor: pointer; font-family: var(--font-ui); }
.dc-opt svg { grid-row: 1 / 3; width: 16px; height: 16px; color: var(--text-muted); }
.dc-opt b { font-size: 14px; font-weight: 600; color: var(--text); }
.dc-opt i { font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
.dc-opt:hover { background: var(--card); }
.dc-opt.is-on { background: rgba(var(--amber-rgb), .08); }
.dc-opt.is-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--gold-line); }
.dc-opt.is-on svg { color: var(--amber-bright); }
.dc-post[disabled] { opacity: .4; pointer-events: none; }

/* ---- A post ---- */
.dp { position: relative; min-width: 0; border: 1px solid var(--border); background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.dp.is-gone { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.dp-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 12px 20px; }
.dp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dp-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; min-width: 0; line-height: 1.3; }
.dp-name { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.dp-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dp-did { font-size: 14px; color: var(--text-muted); }
.dp-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.dp-meta a { color: inherit; text-decoration: none; }
.dp-meta a:hover { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.dp-meta svg { width: 12px; height: 12px; flex: none; }
.dp-aud { display: inline-flex; align-items: center; gap: 5px; }
.dp-menuwrap { position: relative; align-self: flex-start; }
.dp-dots { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--text-dim); cursor: pointer; }
.dp-dots svg { width: 16px; height: 16px; }
.dp-dots:hover, .dp-dots[aria-expanded="true"] { background: var(--card-hover); color: var(--text); }
.dp-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; padding: 6px; border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.dp-menu[hidden] { display: none; }
.dp-menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 0; background: none;
  color: var(--text-muted); font: 500 13.5px/1 var(--font-ui); text-align: left; cursor: pointer; }
.dp-menu button svg { width: 15px; height: 15px; flex: none; }
.dp-menu button:hover { background: var(--card); color: var(--text); }
.dp-menu .is-danger:hover { color: #f3a4a4; }
.dp-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--border); }

.dp-text { padding: 0 20px 14px; font-size: 15px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.dp-text a { color: var(--amber-bright); text-decoration: none; }
.dp-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* editing a post in place */
.dp-edit { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 16px; }
.dp-edit textarea { box-sizing: border-box; width: 100%; min-height: 96px; margin: 0; padding: 10px 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 15px/1.5 var(--font-ui); resize: vertical; }
.dp-edit textarea:focus { outline: 0; border-image: var(--gold-line) 1; }
.dp-edit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-edit select { height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 13px var(--font-ui); }
.dp-edit-row .b:first-of-type { margin-left: auto; }
.dp-edit-err { margin: 0; font-size: 13px; color: #f0a0a0; }
.dp-edit-err:empty { display: none; }

/* photos: one to four, edge to edge */
.dp-gal { display: grid; gap: 2px; background: var(--bg); }
.dp-gal.n2, .dp-gal.n4 { grid-template-columns: 1fr 1fr; }
.dp-gal.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.dp-gal.n3 .dp-gi:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.dp-gi { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #05070c; cursor: zoom-in; }
.dp-gal.n1 .dp-gi { aspect-ratio: 16 / 9; }
.dp-gi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dp-gi:hover img { transform: scale(1.02); }

/* YouTube: the thumbnail and a play plate; the player loads on click */
.dp-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; background: #000; cursor: pointer; }
.dp-yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.dp-yt:hover img { opacity: 1; }
.dp-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(var(--amber-rgb), .8); background: rgba(var(--bg-rgb), .78); color: var(--amber-bright); transition: background .2s; }
.dp-yt-play svg { width: 20px; height: 20px; margin-left: 3px; }
.dp-yt:hover .dp-yt-play { background: rgba(var(--bg-rgb), .92); }
.dp-yt-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: rgba(var(--bg-rgb), .8); color: var(--text-muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dp-yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.dp-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }

/* a ship: its hero, then a plate */
.dp-ship { display: block; color: inherit; text-decoration: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dp-text + .dp-ship { border-top: 0; }
.dp-ship-pic { display: block; overflow: hidden; aspect-ratio: 2 / 1; background: #05070c; }
.dp-ship-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dp-ship:hover .dp-ship-pic img { transform: scale(1.02); }
.dp-ship-plate { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--surface); }
.dp-ship-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dp-ship-id b { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.dp-ship-sub { font-size: 13px; color: var(--text-muted); }
.dp-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--border-strong);
  color: var(--text); font-size: 13px; font-weight: 600; transition: color .15s, border-color .15s, background-color .15s; }
.dp-go svg { width: 12px; height: 12px; }
.dp-ship:hover .dp-go, .dp-aug-go:hover { color: var(--amber-bright); border-color: rgba(var(--amber-rgb), .6); background: rgba(var(--amber-rgb), .08); }

/* an Augur find: picture, then what it is and its facts */
.dp-aug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.dp-text + .dp-aug { border-top: 0; }
.dp-aug-pic { position: relative; min-height: 200px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #13203a, #070b14 72%); }
.dp-aug-pic img, .dp-aug-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-aug-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 20px 18px; min-width: 0; }
.dp-aug-k { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); }
.dp-aug-k svg { width: 13px; height: 13px; }
.dp-aug-b > b { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.dp-aug-w { font-size: 13px; color: var(--text-muted); }
.dp-facts { width: 100%; margin: 12px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.dp-fact { display: flex; flex-direction: column-reverse; gap: 3px; min-width: 0; }
.dp-fact dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.dp-fact dt { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.dp-aug-go { margin-top: auto; text-decoration: none; }

/* the row of actions: the counts are on the buttons */
.dp-acts { display: flex; align-items: center; gap: 2px; padding: 6px 10px; }
.dp-gal + .dp-acts, .dp-yt + .dp-acts, .dp-yt-frame + .dp-acts { border-top: 1px solid var(--border); }
.dp-text + .dp-acts { border-top: 1px solid var(--border); }
.dp-act { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; background: none;
  color: var(--text-muted); font: 500 13.5px/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.dp-act > svg, .dp-act .dp-ob svg { width: 17px; height: 17px; flex: none; display: block; }
.dp-act:hover { background: var(--card-hover); color: var(--text); }
.dp-act.is-share { margin-left: auto; }
.dp-ob .obol-fill { fill: transparent; transition: fill .2s; }
.dp-act.is-given { color: var(--amber-bright); }
.dp-act.is-given .obol-fill { fill: rgba(var(--amber-rgb), .3); }
.dp-act:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: -2px; }

/* comments: the newest two, the rest when asked; replies one step in */
.dp-cmts { display: flex; flex-direction: column; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid var(--border); }
.dp-cmts:empty { display: none; }
.dp-cmts + .dp-cmts { border-top: 0; padding-top: 0; }
.dp-cmt { display: flex; gap: 12px; min-width: 0; }
.dp-cmt.is-reply { margin-left: 42px; }
.dp-cmt-b { flex: 1; min-width: 0; }
.dp-cmt-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.dp-cmt-n { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dp-cmt-n.is-author { background: var(--gold-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-tag { padding: 1px 6px; border: 1px solid var(--border-strong); color: var(--text); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dp-when { font-size: 12.5px; color: var(--text-dim); }
.dp-cmt-t { margin: 3px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); overflow-wrap: anywhere; white-space: pre-line; }
.dp-cmt-t a { color: var(--amber-bright); text-decoration: none; }
.dp-cmt-a { margin: 2px 0 0 -8px; }
.dp-cmt-a button { height: 28px; padding: 0 8px; border: 0; background: none; color: var(--text-dim); font: 600 12.5px/1 var(--font-ui); cursor: pointer; }
.dp-cmt-a button:hover { background: var(--card-hover); color: var(--text); }
.dp-cmt-a button.is-danger:hover { color: #f3a4a4; }
.dp-all { align-self: flex-start; height: 30px; margin-left: -8px; padding: 0 8px; border: 0; background: none; color: var(--text); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.dp-all:hover { background: var(--card-hover); }
.dp-all:disabled { color: var(--text-dim); cursor: progress; }
.dp-say { display: flex; align-items: flex-start; gap: 12px; }
.dp-say-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-say textarea { box-sizing: border-box; width: 100%; min-height: 38px; margin: 0; padding: 8px 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 14px/1.45 var(--font-ui); resize: none; }
.dp-say textarea::placeholder { color: var(--text-dim); }
.dp-say textarea:focus { outline: 0; border-image: var(--gold-line) 1; }
.dp-say .b { flex: none; padding: 9px 14px; }
.dp-say-to { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.dp-say-to[hidden] { display: none; }
.dp-say-to b { font-weight: 600; color: var(--text-muted); }
.dp-say-to button { width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--text-dim); font-size: 15px; line-height: 1; cursor: pointer; }
.dp-say-to button:hover { color: var(--text); }
.dp-say-err { margin: 0; font-size: 12.5px; color: #f0a0a0; }
.dp-say-err:empty { display: none; }

/* ---- A list of posts: loading, empty, a note, more, the end ----
   (Discover and the Posts tab on a profile) */
.dv-feed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dv-end { margin: 8px 0 0; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.dv-end::before, .dv-end::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dv-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 20px; border: 1px solid var(--border); background: var(--card); text-align: center; }
.dv-empty b { font-size: 18px; color: var(--text); }
.dv-empty p { margin: 0; max-width: 400px; line-height: 1.55; color: var(--text-muted); }
.dv-more { display: flex; justify-content: center; padding: 6px 0; }
.dv-skel { height: 220px; border: 1px solid var(--border); background:
  linear-gradient(100deg, transparent 40%, rgba(228, 232, 239, .05) 50%, transparent 60%) 0 0 / 300% 100%, var(--card);
  animation: dv-sweep 1.6s linear infinite; }
@keyframes dv-sweep { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
.dv-note { margin: 0; padding: 12px 16px; border: 1px solid var(--border); border-left: 2px solid var(--border-strong); background: var(--surface);
  font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

/* ---- Photo viewer ---- */
.dpx-view { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 72px; box-sizing: border-box;
  background: rgba(3, 5, 9, .94); }
.dpx-view[hidden] { display: none; }
.dpx-view img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.dpx-btn { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border-strong);
  background: rgba(var(--bg-rgb), .7); color: var(--text); cursor: pointer; }
.dpx-btn:hover { border-color: var(--amber); color: var(--amber-bright); }
.dpx-btn svg { width: 16px; height: 16px; }
.dpx-btn[hidden] { display: none; }
.dpx-close { top: 16px; right: 16px; }
.dpx-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.dpx-next { right: 16px; top: 50%; transform: translateY(-50%); }
.dpx-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; color: var(--text-muted); }

/* ---- Report dialog ---- */
.dpx-dlg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 9, .8); }
.dpx-dlg[hidden] { display: none; }
.dpx-card { box-sizing: border-box; width: 100%; max-width: 440px; padding: 22px 24px 20px; border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.dpx-card h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--text); }
.dpx-card > p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.dpx-reasons { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 0; border: 0; }
.dpx-reasons label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.dpx-reasons label:hover { background: var(--card); }
.dpx-reasons input { accent-color: var(--amber); }
.dpx-card textarea { box-sizing: border-box; width: 100%; min-height: 76px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: 14px/1.45 var(--font-ui); resize: vertical; }
.dpx-card textarea:focus { outline: 0; border-image: var(--gold-line) 1; }
.dpx-acts { display: flex; justify-content: flex-end; gap: 10px; }
.dpx-err { margin: 0 0 10px; font-size: 13px; color: #f0a0a0; }
.dpx-err:empty { display: none; }

/* ---- Toast ---- */
.dpx-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1001; transform: translate(-50%, 12px); padding: 10px 16px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 13.5px; box-shadow: 0 12px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; }
.dpx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 599px) {
  .dp-head { padding: 14px 8px 10px 16px; }
  .dp-text { padding: 0 16px 12px; }
  .dp-edit { padding: 0 16px 14px; }
  .dp-ship-plate { padding: 12px 16px; }
  .dp-aug { grid-template-columns: minmax(0, 1fr); }
  .dp-aug-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .dp-aug-b { padding: 14px 16px 16px; }
  .dp-acts { padding: 4px 6px; }
  .dp-act { padding: 0 10px; }
  .dp-cmts { padding: 12px 16px 14px; }
  .dp-cmt.is-reply { margin-left: 26px; }
  .dc-top { padding: 14px 16px 12px; gap: 12px; }
  .dc-att, .dc-row, .dc-err, .dc-aug { padding-left: 16px; padding-right: 16px; }
  .dc-aug-2 { grid-template-columns: minmax(0, 1fr); }
  /* icons only, at a thumb-sized 44px (2026-11-18, Kuma: too small on phones) */
  .dc-tools { gap: 0; padding: 6px 10px 6px 4px; }
  .dc-tool { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .dc-tool svg { width: 20px; height: 20px; }
  .dc-tool span { display: none; }
  .dc-right { gap: 6px; }
  .dc-aud { height: 40px; padding: 0 8px 0 9px; }
  .dc-post { min-height: 40px; }
  .dc-menu { width: min(280px, calc(100vw - 32px)); }
  .dpx-view { padding: 56px 12px; }
  .dpx-prev, .dpx-next { top: auto; bottom: 12px; transform: none; }
}@media (prefers-reduced-motion: reduce) {
  .dp-gi img, .dp-ship-pic img { transition: none; }
  .dp-gi:hover img, .dp-ship:hover .dp-ship-pic img { transform: none; }
}

/* ================= Create post popup =================
   A native <dialog> holding the post box, on the Feed and on a profile's
   Posts tab. The drop area comes from CharonPosts.dropZone(form). */
.dv-pop { position: fixed; inset: 0; margin: auto; width: min(720px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px);
  padding: 0; box-sizing: border-box; overflow: auto; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.dv-pop::backdrop { background: rgba(4, 8, 16, .72); }
.dv-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.dv-pop-h h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.dv-pop-x { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; background: none; color: var(--text-muted); cursor: pointer; }
.dv-pop-x:hover { color: var(--amber-bright); border-color: var(--border-strong); }
.dv-pop-x svg { width: 14px; height: 14px; }
/* Photos lead (2026-11-18, Kuma: "images are main focus here"): a large
   drop area on top until a photo is added, then the photos as a gallery
   with the first one large; the text sits under them as the caption. */
.dv-pop .dc { display: flex; flex-direction: column; border: 0; box-shadow: none; background: none; }
.dv-drop { display: none; }
.dv-pop .dv-drop { order: -2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 20px 20px 4px;
  aspect-ratio: 16 / 8; border: 1px dashed var(--border-strong); background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(var(--amber-rgb), .07), transparent 70%), var(--bg);
  color: var(--text-muted); font: 500 13.5px/1.4 var(--font-ui); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dv-pop .dv-drop svg { width: 34px; height: 34px; color: var(--amber); margin-bottom: 4px; }
.dv-pop .dv-drop b { font-size: 16px; font-weight: 700; color: var(--text); }
.dv-pop .dv-drop:hover, .dv-pop .dv-drop.is-over { border-color: var(--amber); color: var(--text); background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(var(--amber-rgb), .14), transparent 70%), var(--bg); }
.dv-pop .dv-drop:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 2px; }
.dv-pop .dc:has(.dc-att:not([hidden])) .dv-drop { display: none; }
.dv-pop .dc-att { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 20px 20px 4px; }
.dv-pop .dc-att[hidden] { display: none; }
.dv-pop .dc-thumb { width: auto; aspect-ratio: 16 / 9; }
.dv-pop .dc-thumb:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.dv-pop .dc-thumb .dc-x { width: 28px; height: 28px; top: 8px; right: 8px; font-size: 16px; }
.dv-pop .dc-add { width: auto; aspect-ratio: 16 / 9; gap: 4px; }
.dv-pop .dc-top { padding: 16px 20px 14px; }
.dv-pop .dc-in { min-height: 72px; }
.dv-pop .dc.is-writing .dc-in { min-height: 72px; }
/* the popup scrolls, so the Public menu opens upward to stay in view */
.dv-pop .dc-menu { top: auto; bottom: calc(100% + 6px); }
