/* PosterDatabase Artist Hub
 * Palette: ink #1d2433, slate #4a5263, paper #fff, wall #f2f3f0, rule #dde0da, print blue #2643d0.
 * Type: Archivo throughout; expanded width (wdth 115-125) for headings, normal width for text.
 * Artwork is shown "mounted": a white mat with a hairline, like a print on a gallery wall.
 */
:root {
	--ink: #1d2433;
	--slate: #4a5263;
	--muted: #6b7280;
	--paper: #ffffff;
	--wall: #f2f3f0;
	--rule: #dde0da;
	--blue: #2643d0;
	--blue-dark: #1b2f9b;
	--blue-tint: #e8ecfb;
	--green: #2e7d4f;
	--green-tint: #e5f2ea;
	--amber: #9a5b0b;
	--amber-tint: #fbf0dc;
	--red: #b3261e;
	--red-tint: #fbe7e5;
	--focus: 0 0 0 3px rgba(38, 67, 208, .35);
	--side: 248px;
	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.pdm-hub-body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--wall);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-stretch: 118%; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- loading / gate ---------- */
.hub-loading { min-height: 100vh; display: grid; place-content: center; gap: 12px; justify-items: center; color: var(--slate); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--rule); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-gate { max-width: 420px; margin: 10vh auto; padding: 32px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.hub-gate__brand { display: inline-block; font-stretch: 125%; font-weight: 800; color: var(--ink); text-decoration: none; margin-bottom: 24px; }
.hub-gate label { display: block; font-weight: 600; margin-bottom: 4px; }
.hub-gate input[type=text], .hub-gate input[type=password] { width: 100%; }
.hub-gate .button, .hub-gate input[type=submit] { background: var(--blue); color: #fff; border: 0; padding: 12px 20px; border-radius: 6px; font: 600 1rem var(--font); cursor: pointer; width: 100%; }
.hub-gate__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }

/* ---------- layout ---------- */
.hub { min-height: 100vh; }
.hub-side {
	position: fixed; inset: 0 auto 0 0; width: var(--side);
	background: var(--ink); color: #e6e8ee; display: flex; flex-direction: column; padding: 20px 14px; z-index: 20;
}
.hub-brand { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.05rem; padding: 4px 10px 18px; display: block; }
.hub-shop { display: flex; gap: 10px; align-items: center; padding: 10px; margin-bottom: 12px; border-radius: 8px; background: rgba(255,255,255,.06); }
.hub-shop img, .hub-shop .initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.hub-shop .initial { background: var(--blue); color: #fff; display: grid; place-content: center; font-weight: 700; }
.hub-shop strong { display: block; color: #fff; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.hub-shop a { color: #b9c3ff; font-size: .8rem; text-decoration: none; }
.hub-nav { display: flex; flex-direction: column; gap: 2px; }
.hub-nav a { color: #cfd4df; text-decoration: none; padding: 9px 12px; border-radius: 6px; display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.hub-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.hub-nav a[aria-current=page] { background: #fff; color: var(--ink); font-weight: 600; }
.hub-nav svg { width: 18px; height: 18px; flex: none; }
.hub-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.hub-side__foot a { color: #9aa3b5; text-decoration: none; padding: 6px 12px; }
.hub-side__foot a:hover { color: #fff; }

.hub-main { margin-left: var(--side); padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: calc(1180px + var(--side)); }
.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hub-head h1 { margin: 0; }
.hub-head p { margin: 4px 0 0; color: var(--slate); }

.hub-tabbar { display: none; }

@media (max-width: 900px) {
	.hub-side { display: none; }
	.hub-main { margin-left: 0; padding: 18px 16px 96px; }
	.hub-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
	.hub-top a { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 125%; }
	.hub-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
		background: var(--paper); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
	}
	.hub-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .7rem; color: var(--slate); text-decoration: none; }
	.hub-tabbar a[aria-current=page] { color: var(--blue); font-weight: 600; }
	.hub-tabbar svg { width: 22px; height: 22px; }
	.hub-tabbar .tab-upload svg { color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; width: 30px; height: 30px; margin-top: -4px; }
}
@media (min-width: 901px) { .hub-top { display: none; } }

/* ---------- surfaces ---------- */
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 .95rem var(--font); padding: 10px 18px; border-radius: 6px; border: 1px solid var(--rule);
	background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; min-height: 42px; white-space: nowrap;
}
.btn:hover { border-color: var(--slate); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--big { padding: 14px 24px; font-size: 1.05rem; min-height: 52px; }
.btn--danger { color: var(--red); }
.btn--danger:hover { border-color: var(--red); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.stat { background: var(--paper); padding: 18px 20px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.stat b { display: block; font-size: 1.6rem; font-stretch: 112%; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--slate); font-size: .9rem; }

/* ---------- setup checklist ---------- */
.setup { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.setup li { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); }
.setup li:first-child { border-top: 0; }
.setup li::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-content: center; font-weight: 700; color: var(--slate); }
.setup li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.setup li.done .setup__title { color: var(--slate); }
.setup__title { font-weight: 600; }
.setup p { margin: 0; color: var(--slate); font-size: .9rem; }

/* ---------- notices ---------- */
.notice { border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid; }
.notice p { margin: 0; }
.notice--info { background: var(--blue-tint); border-color: #c6d0f6; }
.notice--ok { background: var(--green-tint); border-color: #bfdcc9; }
.notice--warn { background: var(--amber-tint); border-color: #eed3a3; }
.notice--error { background: var(--red-tint); border-color: #f0c2bd; }
.notice .btn { margin-left: auto; }

.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wall); color: var(--slate); border: 1px solid var(--rule); }
.pill--publish { background: var(--green-tint); color: var(--green); border-color: #bfdcc9; }
.pill--draft { background: var(--wall); }
.pill--pending { background: var(--amber-tint); color: var(--amber); border-color: #eed3a3; }
.pill--pdm_suspended { background: var(--red-tint); color: var(--red); border-color: #f0c2bd; }

/* ---------- lists ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 0; }
.rows img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--wall); flex: none; }
.rows .grow { flex: 1; min-width: 0; }
.rows .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .amount { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--slate); }
.empty .btn { margin-top: 8px; }

/* ---------- artwork grid (mounted prints) ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input[type=search] { flex: 1 1 220px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.art { position: relative; display: flex; flex-direction: column; }
.art__mount { background: var(--paper); border: 1px solid var(--rule); padding: 12px; aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 2px; }
.art__mount img { max-height: 100%; object-fit: contain; box-shadow: 0 1px 0 var(--rule); }
.art__mount .noimg { color: var(--muted); font-size: .85rem; }
.art__meta { padding: 10px 2px 0; }
.art__title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art__line { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--slate); font-size: .88rem; margin-top: 4px; }
.art__actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.art__actions .btn { min-height: 34px; padding: 6px 10px; font-size: .85rem; }
.art__select { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; accent-color: var(--blue); }
.bulkbar { position: sticky; bottom: 16px; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; margin-top: 18px; flex-wrap: wrap; }
.bulkbar .btn { min-height: 36px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field small, .hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=password], select, textarea {
	width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--paper);
	border: 1px solid #c9cdc5; border-radius: 6px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: var(--focus); outline: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .error { color: var(--red); font-size: .88rem; margin-top: 4px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid #c9cdc5; background: var(--paper); font-size: .9rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.tags-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid #c9cdc5; border-radius: 6px; background: var(--paper); min-height: 44px; }
.tags-input:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.tags-input .tag { background: var(--wall); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 4px 3px 9px; font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }
.tags-input .tag button { border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--slate); padding: 0 4px; line-height: 1; }
.tags-input input { border: 0; flex: 1 1 120px; min-height: 30px; padding: 4px; box-shadow: none !important; }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #c9cdc5; border-radius: 6px; cursor: pointer; background: var(--paper); font-weight: 400; }
.radio-cards label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.radio-cards input { margin-top: 4px; accent-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }

/* ---------- uploader ---------- */
.studio { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } }
.studio__wall { position: sticky; top: 24px; }
@media (max-width: 980px) { .studio__wall { position: static; } }
.drop {
	background: var(--paper); border: 2px dashed #b9beb4; border-radius: 8px; min-height: 340px;
	display: grid; place-items: center; text-align: center; padding: 28px; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-tint); }
.drop h2 { font-size: 1.25rem; margin-bottom: 6px; }
.drop svg { width: 44px; height: 44px; color: var(--blue); margin: 0 auto 12px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hung { background: var(--paper); border: 1px solid var(--rule); padding: clamp(14px, 3vw, 26px); border-radius: 2px; }
.hung img { margin: 0 auto; max-height: 60vh; object-fit: contain; }
.hung__placeholder { aspect-ratio: 4/5; background: repeating-linear-gradient(45deg, var(--wall), var(--wall) 10px, #eceee9 10px, #eceee9 20px); display: grid; place-content: center; color: var(--slate); text-align: center; padding: 16px; font-size: .9rem; overflow-wrap: anywhere; }
.progress { margin-top: 14px; }
.progress__bar { height: 8px; background: var(--wall); border-radius: 999px; overflow: hidden; border: 1px solid var(--rule); }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.progress__label { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; color: var(--slate); margin-top: 6px; font-variant-numeric: tabular-nums; }
.file-facts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--slate); font-size: .88rem; margin-top: 10px; }
.ai-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: var(--blue-tint); border: 1px solid #c6d0f6; border-radius: 8px; margin-bottom: 20px; }
.ai-bar p { margin: 0; flex: 1 1 200px; }
.split { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.split div { display: flex; justify-content: space-between; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.split div + div { border-top: 1px solid var(--rule); }
.split .you { background: var(--green-tint); font-weight: 700; }
.price-input { position: relative; max-width: 220px; }
.price-input span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); }
.price-input input { padding-left: 28px; font-size: 1.15rem; font-weight: 600; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--wall) 30%); padding: 18px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .sticky-actions { bottom: 58px; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); }
@media (max-width: 900px) { .toasts { bottom: 76px; left: 16px; right: 16px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
.toast--error { background: var(--red); }

/* ---------- shop preview ---------- */
.shop-banner { aspect-ratio: 3 / 1; background: var(--wall) center/cover; border-radius: 6px; border: 1px solid var(--rule); display: grid; place-content: center; color: var(--muted); }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar-edit img, .avatar-edit .initial { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-content: center; font-size: 2rem; font-weight: 700; }
.copy-url { display: flex; gap: 8px; }
.copy-url input { font-size: .9rem; }

/* ---------- help ---------- */
details.faq { border-top: 1px solid var(--rule); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- membership & credits ---------- */
.credits { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--blue); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.credits strong { display: block; }
.credits span { color: var(--slate); font-size: .9rem; }
.credits--out { border-left-color: var(--amber); }
.plan-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
.plan--current { border: 2px solid var(--blue); }
.plan h2 { margin: 0; }
.plan__price { font-size: 2rem; font-weight: 700; font-stretch: 112%; margin: 6px 0 10px; }
.plan__price span { font-size: 1rem; font-weight: 400; color: var(--slate); }
.plan ul { padding-left: 1.1em; margin: 0 0 16px; }
.plan li { margin-bottom: 6px; }
.quote { text-align: right; color: var(--slate); margin: 0; }
.quote--warn { color: var(--amber); text-align: left; background: var(--amber-tint); border: 1px solid #eed3a3; border-radius: 8px; padding: 10px 14px; }
.quote--warn .btn { margin-left: 8px; }

/* ---------- messages ---------- */
.badge { margin-left: auto; background: var(--blue); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; font-style: normal; }
.hub-nav a[aria-current=page] .badge { background: var(--blue); }
.hub-tabbar a { position: relative; }
.hub-tabbar .badge { position: absolute; top: 4px; left: 54%; margin: 0; font-size: .65rem; padding: 0 5px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 3px; margin-bottom: 16px; }
.seg a { padding: 6px 14px; border-radius: 6px; text-decoration: none; color: var(--slate); font-size: .92rem; }
.seg a[aria-current=page] { background: var(--ink); color: #fff; }
.inbox { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--rule); }
.inbox a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; }
.inbox a:hover { background: #fafaf8; }
.inbox img, .inbox__avatar { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: var(--wall); }
.inbox__avatar { display: grid; place-content: center; font-weight: 700; color: var(--slate); border-radius: 50%; }
.inbox .grow { flex: 1; min-width: 0; }
.inbox__top { display: flex; justify-content: space-between; gap: 8px; }
.inbox__top time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.inbox__about { font-size: .85rem; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__preview { color: var(--slate); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox li.is-unread strong, .inbox li.is-unread .inbox__preview { color: var(--ink); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.thread-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.thread-head .grow { flex: 1; min-width: 160px; }
.about-card { display: inline-flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--ink); margin-bottom: 16px; max-width: 100%; }
.about-card img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.about-card small { display: block; color: var(--muted); }
.bubbles { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: min(78%, 620px); }
.bubble--me { align-self: flex-end; }
.bubble__who { display: block; font-size: .78rem; color: var(--muted); margin: 0 4px 3px; }
.bubble--me .bubble__who { text-align: right; }
.bubble__body { background: var(--paper); border: 1px solid var(--rule); padding: 10px 14px; border-radius: 16px 16px 16px 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bubble--me .bubble__body { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.composer { position: sticky; bottom: 0; background: var(--wall); padding: 10px 0 6px; }
.composer textarea { min-height: 90px; }
.composer__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .composer { bottom: 58px; } .bubble { max-width: 88%; } }

/* ---------- v1.2 one-upload listing ---------- */
.lst { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .lst { grid-template-columns: 1fr; } }
.lst__media { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) { .lst__media { position: static; } }
.lst__stage { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px; min-height: 160px; display: grid; place-items: center; }
.lst__stage img { max-height: 58vh; width: auto; margin: 0 auto; border-radius: 3px; }
.lst__stage img:not([src]) { display: none; }
.steps { list-style: none; margin: 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; display: grid; gap: 8px; font-size: .92rem; }
.steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.steps li svg { width: 18px; height: 18px; flex: none; }
.steps .spinner { width: 16px; height: 16px; border-width: 2px; }
.steps .is-done { color: var(--green); }
.steps .is-done span { color: var(--ink); }
.steps em { color: var(--muted); font-style: normal; font-size: .82rem; }
.steps .is-fail { color: var(--red); }
.steps .is-skip { color: var(--slate); }
.steps .is-ready { color: var(--green); font-size: 1rem; padding-top: 4px; border-top: 1px solid var(--rule); }
.steps .btn { margin-left: auto; }
.gal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gal-head h2 { margin: 0; font-size: 1.05rem; }
.gal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gal__item { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px; }
.gal__item.is-off { opacity: .55; }
.gal__thumb { position: relative; width: 84px; height: 68px; flex: none; padding: 0; border: 0; background: var(--wall); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__wait { display: grid; place-content: center; height: 100%; font-size: .8rem; color: var(--slate); }
.gal__main { position: absolute; left: 4px; top: 4px; background: var(--ink); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 3px; }
.gal__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gal__meta strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal__tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn--small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; cursor: pointer; font-size: .95rem; color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.room-picker { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; }
.room-picker__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.room-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.room-picker__grid button { border: 1px solid var(--rule); border-radius: 6px; background: var(--wall); padding: 0 0 6px; cursor: pointer; text-align: left; font-size: .78rem; color: var(--ink); overflow: hidden; }
.room-picker__grid button:hover { border-color: var(--blue); }
.room-picker__grid button.is-busy { opacity: .6; cursor: progress; }
.room-picker__grid img { aspect-ratio: 5/4; object-fit: cover; width: 100%; margin-bottom: 4px; }
.room-picker__grid span { padding: 0 6px; display: block; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.label-row > label, .label-row > .label { font-weight: 600; margin: 0; }
.regen { display: inline-flex; gap: 5px; align-items: center; border: 0; background: none; color: var(--blue); font: 500 .82rem var(--font); cursor: pointer; padding: 4px 6px; border-radius: 5px; }
.regen:hover { background: var(--blue-tint); }
.regen svg { width: 15px; height: 15px; }
.regen.is-busy svg { animation: spin .8s linear infinite; }
.regen:disabled { cursor: progress; }
input.is-ai, textarea.is-ai { box-shadow: 0 0 0 3px rgba(46, 125, 79, .28); transition: box-shadow .4s; }
details.fold { padding: 0; }
details.fold > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; font-size: 1.05rem; }
details.fold > summary::after { content: "+"; font-size: 1.2rem; color: var(--slate); margin-left: auto; }
details.fold[open] > summary::after { content: "–"; }
details.fold > :not(summary) { margin-left: 20px; margin-right: 20px; }
details.fold[open] { padding-bottom: 4px; }
.snippet { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 2px; font-family: Arial, sans-serif; }
.snippet__url { font-size: .8rem; color: #4d5156; }
.snippet__title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snippet__desc { color: #4d5156; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-cards--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sticky-actions .quote { margin: 0 auto 0 0; align-self: center; max-width: 520px; }
.next-steps { margin: 0 0 12px 1.2em; padding: 0; display: grid; gap: 6px; }
.published { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: 28px; align-items: start; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(18px, 3vw, 32px); }
@media (max-width: 700px) { .published { grid-template-columns: 1fr; } }
.published__art img { border-radius: 6px; width: 100%; }
.published h1 { margin: 10px 0 6px; }
.published .copy-url { margin: 12px 0 16px; }
.published .notice { margin-top: 16px; }

/* ---------- v1.2 social ---------- */
.soc-net { align-items: flex-start !important; }
.soc-acct { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 6px; }
.soc-acct select { padding: 4px 8px; }
.soc-post { align-items: flex-start !important; }
.soc-post img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.soc-post textarea { width: 100%; margin-top: 6px; }
.soc-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--slate); }
.soc-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 640px) { .soc-post { flex-wrap: wrap; } .soc-actions { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; } }
.kit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kit__item { border: 1px solid var(--rule); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.kit__item h3 { margin: 0; }
.kit__item img { border-radius: 4px; max-height: 240px; object-fit: contain; background: var(--wall); }
.kit__item textarea { width: 100%; font-size: .85rem; }
.faq-edit { display: grid; gap: 10px; }
.faq-edit__row { display: grid; gap: 6px; border: 1px solid var(--rule); border-radius: 8px; padding: 10px; }

/* Dashboard quick actions (v1.2) */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; position: relative; }
.quick a:hover { border-color: var(--blue); }
.quick svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.quick .badge { position: static; margin-left: auto; }

/* ---------- v1.2.2: upload options, preview protection, rights, multi-upload ---------- */
.seg--modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; width: fit-content; max-width: 100%; }
.seg--modes a { padding: 9px 14px; border-radius: 7px; text-decoration: none; color: var(--slate); font-weight: 600; font-size: .92rem; }
.seg--modes a[aria-current="page"] { background: var(--ink); color: #fff; }
.radio-cards--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .radio-cards--row { grid-template-columns: 1fr; } }
.protect-pre { margin-bottom: 16px; }
.protect-pre summary h2 { display: inline; }
.rights p { color: var(--slate); font-size: .95rem; }
.rights .check { padding: 12px 14px; background: var(--wall); border-radius: 8px; border: 1px solid var(--rule); }
.fold-inline summary { cursor: pointer; color: var(--blue); margin: 8px 0; }
.drop--multi { margin-top: 18px; min-height: 180px; }
.mu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mu-items { list-style: none; margin: 0; padding: 0; }
.mu-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.mu-item:first-child { border-top: 0; }
.mu-thumb { width: 64px; height: 64px; background: var(--wall); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.mu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mu-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-meta .small { display: block; }
.mu-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mu-bar { display: block; height: 4px; background: var(--wall); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.mu-bar i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.mu-item.is-fail .mu-meta .small { color: var(--red); }
.mu-item.is-done .mu-meta .small { color: var(--green); }
.mu-items--compact .mu-item { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 8px 0; }
.mu-items--compact .mu-thumb { width: 44px; height: 44px; }
.mu-tabs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.mu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.mu-tab { display: flex; align-items: center; gap: 8px; min-width: 180px; max-width: 260px; padding: 6px 10px 6px 6px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); cursor: pointer; text-align: left; font: inherit; font-size: .88rem; color: var(--ink); }
.mu-tab img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.mu-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mu-tab.is-on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-tint); }
.mu-tab em { font-style: normal; }
.bk-progress { margin: 4px 0 14px; }
.bk-counts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); margin-bottom: 14px; }
.bk-counts b { color: var(--ink); font-size: 1.15rem; }
.art__flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.flag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--amber-tint); color: var(--amber); }
.flag--bad { background: var(--red-tint); color: var(--red); }
.bulk-rights { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; font-size: .85rem; line-height: 1.4; }
.bulk-rights input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: #fff; }
.bulk-rights a { color: #c9d3ff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
