:root {
  --bg:        #0e1116;
  --bg-2:      #161b22;
  --panel:     #1c232d;
  --panel-2:   #232c38;
  --border:    #303a47;
  --text:      #e6edf3;
  --muted:     #8b97a7;
  --accent:    #e8a23d;   /* warm amber, echoes the book covers */
  --accent-2:  #f0b860;
  --danger:    #e5534b;
  --success:   #3fb950;
  --radius:    10px;
  --shadow:    0 8px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: url('/static/img/texture.svg'),
    radial-gradient(1100px 460px at 50% -160px, rgba(232,162,61,.10), transparent 70%);
  background-repeat: repeat, no-repeat;
  background-attachment: fixed, scroll;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1 0 auto; padding-top: 32px; padding-bottom: 64px; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .3px; line-height: 1.15; }
h1 { font-size: 2.1rem; margin: 0 0 .4em; }
h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; }

/* Header */
.site-header { background: linear-gradient(180deg,#11161d, #0e1116); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 40px; display: block; }
.brand { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 18px; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: .82rem; letter-spacing: .5px; }
.main-nav a { color: var(--text); }
.nav-user { color: var(--muted); text-transform: none; font-family: 'Inter'; }

/* Footer */
.site-footer { background: #0b0e12; border-top: 1px solid var(--border); padding: 28px 0; margin-top: auto; }
.site-footer p { margin: 4px 0; font-size: .9rem; }

/* Flash */
.flash { padding: 12px 0; font-weight: 500; }
.flash-error   { background: rgba(229,83,75,.15);  border-bottom: 1px solid var(--danger); color: #ffb3ae; }
.flash-success { background: rgba(63,185,80,.13);  border-bottom: 1px solid var(--success); color: #9be8a6; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #1a1206; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; padding: 11px 22px; border: 0; border-radius: var(--radius); cursor: pointer; font-size: .95rem; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--panel-2); }
.btn-danger { background: transparent; color: #ff9a94; border: 1px solid rgba(229,83,75,.4); }
.btn-danger:hover { background: rgba(229,83,75,.15); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Panels & cards */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 22px; }
.card-narrow { max-width: 460px; margin: 24px auto; }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .92rem; }
label .req { color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 13px; font-size: 1rem; font-family: inherit;
}
input[type=search]::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,162,61,.15); }
textarea { resize: vertical; min-height: 90px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.code-input { font-size: 2rem; letter-spacing: .5em; text-align: center; font-family: 'Oswald'; }

/* Hero / landing */
.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-size: 2.7rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-family: 'Oswald'; font-size: .85rem; }

/* Volume cards */
.vol-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; margin-top: 18px; }
.vol-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vol-card .cover { aspect-ratio: 3/4; background: var(--bg-2) center/cover no-repeat; }
.vol-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.vol-card h3 { margin: 0 0 4px; }
.vol-card .theme { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.vol-card .spacer { flex: 1; }
.badge { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 20px; font-family: 'Oswald'; }
.badge-open { background: rgba(63,185,80,.16); color: #79e08b; }
.badge-closed { background: rgba(139,151,167,.16); color: var(--muted); }
.badge-draft { background: rgba(232,162,61,.16); color: var(--accent-2); }
.badge-submitted { background: rgba(63,185,80,.16); color: #79e08b; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin: 26px 0; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--accent-2); }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 44px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 30px; height: 30px; background: var(--accent); color: #1a1206; border-radius: 50%; display: grid; place-items: center; font-family: 'Oswald'; font-weight: 700; }
.steps li strong { color: var(--text); }

/* Image grid (submission) */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .del { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.65); color: #fff; border: 0; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.thumb .del:hover { background: var(--danger); }
.thumb img { cursor: zoom-in; }
.img-badge { position: absolute; left: 5px; bottom: 5px; font-size: .64rem; font-family: 'Oswald', sans-serif; letter-spacing: .3px; padding: 2px 6px; border-radius: 4px; color: #fff; }
.img-badge.ok { background: rgba(0,0,0,.6); }
.img-badge.warn { background: rgba(229,83,75,.92); }

/* Text counters */
.counter-tag { float: right; font-weight: 500; font-size: .8rem; color: var(--muted); font-family: 'Inter', sans-serif; }
.counter-tag.ok { color: var(--success); }
.counter-tag.bad { color: #ff9a94; }

/* Dropzone */
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(232,162,61,.06); color: var(--text); }
.dropzone strong { color: var(--accent-2); }

/* Image counter */
.counter { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.counter .bar { flex: 1; height: 8px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.counter .bar span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.counter .num { font-family: 'Oswald'; font-size: 1.05rem; white-space: nowrap; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { font-family: 'Oswald'; text-transform: uppercase; letter-spacing: .5px; font-size: .78rem; color: var(--muted); }
tr:hover td { background: var(--panel-2); }

.row-split { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.inline-form { display: inline; }
.stack-sm > * + * { margin-top: 10px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 50; padding: 20px; }
.modal-backdrop.show { display: grid; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.modal h3 { margin-top: 0; }

.main-nav a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Footer (full) */
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; }
.footer-logo { height: 30px; margin-bottom: 8px; }
.footer-inner p { margin: 4px 0; font-size: .88rem; max-width: 280px; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 8px; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: .82rem; letter-spacing: .5px; }
.footer-nav a, .footer-social a { color: var(--text); }
.copyright { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }

/* Home hero */
.submit-notice { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #1a1206; text-align: center; padding: 9px 16px; font-size: .95rem; font-weight: 500; }
.submit-notice strong { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .4px; }
.submit-notice a { color: #1a1206; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.home-hero {
  background:
    linear-gradient(180deg, rgba(14,17,22,.55), rgba(14,17,22,.88) 85%),
    radial-gradient(1100px 460px at 72% -10%, rgba(232,162,61,.18), transparent 60%),
    url('/static/img/FB-cover.png') center/cover no-repeat,
    #0e1116;
  border-bottom: 1px solid var(--border);
}
.home-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0; }
.home-hero-text h1 { font-size: 3rem; margin: .1em 0 .25em; }
.home-hero-text .lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.home-hero-cover { display: flex; justify-content: center; }
.home-hero-cover img { width: 100%; max-width: 320px; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--border); }

.section-title { font-size: 1.8rem; margin: 44px 0 4px; }
.cta-band { text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 24px; margin: 48px 0; }
.cta-band h2 { margin: 0 0 8px; }

/* Page head (interior pages) */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: 2.4rem; margin: .1em 0; }
.page-head .muted { max-width: 640px; }

/* Prose */
.prose { max-width: 820px; margin: 0 auto; }
.about-hero { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; margin: 0 0 22px; }
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 18px; }
.about-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.about-covers { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 12px 0 18px; }
.about-covers img { height: 130px; border-radius: 6px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 540px) { .about-gallery { grid-template-columns: repeat(2, 1fr); } .about-covers img { height: 96px; } }
.prose p { margin: 0 0 16px; color: #c8d2de; }
.prose h2 { color: var(--accent-2); }
.prose-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Books grid */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 22px; margin-top: 20px; }
.book-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.book-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.book-cover { aspect-ratio: 3/4; background: var(--bg-2); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-body { padding: 16px; display: flex; flex-direction: column; }
.book-body h3 { margin: 6px 0 2px; }
.book-title { font-family: 'Oswald', sans-serif; color: var(--accent-2); font-size: 1.15rem; margin: 0 0 8px; }

/* Amazon region links */
.amazon-regions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; font-size: .85rem; }
.amazon-regions a { color: var(--text); white-space: nowrap; }
.amazon-regions a:hover { color: var(--accent); }
.amazon-regions .fi { vertical-align: -0.15em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.amazon-regions-card { margin-top: 10px; gap: 6px 9px; font-size: .8rem; }

/* Homepage collection cover strip */
.collection-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,.15); }
.cover-strip { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.cover-thumb { position: relative; flex: 0 0 auto; width: 116px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .15s; display: block; }
.cover-thumb:hover { transform: translateY(-5px); text-decoration: none; }
.cover-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.cover-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px; text-align: center; font-family: 'Oswald', sans-serif; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); }

/* Inside the Books — sample spreads */
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 20px; }
.sample-card { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sample-open { position: relative; display: block; background: #000; }
.sample-open img { width: 100%; height: auto; display: block; transition: transform .25s; }
.sample-open:hover img { transform: scale(1.02); }
.sample-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.sample-open:hover .sample-zoom { opacity: 1; }
.sample-card figcaption { padding: 12px 14px; color: var(--muted); font-size: .9rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2.6rem; width: 56px; height: 72px; cursor: pointer; border-radius: 8px; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 56px; font-size: 2rem; } }

/* Prose image */
.prose-img { width: 100%; border-radius: 10px; border: 1px solid var(--border); margin: 20px 0 4px; display: block; }
.prose-figure { margin: 0 0 6px; }
.prose-figure figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 6px; }

/* Artist list */
.artist-count { font-size: 1.1rem; color: var(--accent-2); margin: 0 0 16px; }
.artist-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 2px 28px; }
.artist-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border); color: #c8d2de; font-size: .95rem; }
.artist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.artist-name { font-weight: 500; line-height: 1.2; }
.tick { color: #3fb950; margin-left: 6px; font-size: .92em; }
.tick-link { text-decoration: none; }
.tick-link:hover .tick { filter: brightness(1.25); }
.artist-vols { display: flex; gap: 4px; flex-wrap: wrap; }
.vol-pill { font-family: 'Oswald', sans-serif; font-size: .68rem; letter-spacing: .3px; background: rgba(232,162,61,.16); color: var(--accent-2); padding: 2px 7px; border-radius: 20px; }
.artist-socials { margin-left: auto; display: flex; gap: 10px; }
.artist-socials a { font-size: 1.1rem; line-height: 1; transition: transform .12s, filter .12s; }
.artist-socials a:hover { transform: translateY(-2px); filter: brightness(1.15); text-decoration: none; }
/* Brand colours */
.soc-facebook   { color: #4c93ff; }
.soc-youtube    { color: #ff3d3d; }
.soc-twitter    { color: #e8eef6; }
.soc-tiktok     { color: #4fe0d6; }
.soc-pinterest  { color: #ff4b59; }
.soc-tumblr     { color: #7ea3d8; }
.soc-artstation { color: #2db8ff; }
.soc-deviantart { color: #25e07a; }
.soc-flickr     { color: #ff5fa6; }
.soc-website    { color: var(--accent-2); }
.soc-instagram i {
  background: linear-gradient(45deg, #ffd266, #ff7a3d, #e0457a, #a32fbf);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Volume filter buttons (Contributing Artists) */
.vol-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vf { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .5px; font-size: .78rem; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.vf:hover { border-color: var(--accent); }
.vf.active { background: var(--accent); color: #1a1206; border-color: var(--accent); }

/* Pending-approval badge + review page */
.badge-pending { background: rgba(232,162,61,.16); color: #e8a23d; border: 1px solid rgba(232,162,61,.45); }
.missing-list { margin: 0; padding-left: 20px; }
.missing-list li { color: #e5534b; margin: 3px 0; }
.review-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.review-thumb { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); display: block; }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-thumb.is-pending { border-color: #e8a23d; box-shadow: 0 0 0 2px rgba(232,162,61,.3); }
.review-entry + .review-entry { margin-top: 18px; }

/* "New look" layout credit */
.layout-credit { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.layout-credit i { color: #e5534b; margin-right: 4px; }
.layout-credit a { color: var(--accent-2); font-weight: 600; }

/* Email template preview */
.email-frame { width: 100%; height: 620px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: block; }

/* Staff roles page */
.staff-add { display: grid; grid-template-columns: 1fr 1.4fr 170px auto; gap: 12px; align-items: end; }
@media (max-width: 720px) { .staff-add { grid-template-columns: 1fr; } }
.role-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.role-checks .check { margin: 0; white-space: nowrap; }
.role-list { margin: 0; padding-left: 18px; }
.role-list li { margin: 6px 0; line-height: 1.5; }

/* Cover-image row (admin volume details) */
.cover-row { display: flex; align-items: center; gap: 10px; }
.cover-row input { flex: 1; min-width: 0; }
.cover-thumb { flex: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--border); background: #0b0e13 center/cover no-repeat; }

/* Invite link field (admin closed-volume access) */
.invite-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; background: var(--bg-2); width: 100%; min-width: 200px; }

/* Selected-volume title on the Contributing Artists page */
.vol-title { font-family: 'Oswald', sans-serif; font-size: 1.05rem; color: var(--accent-2); letter-spacing: .3px; }
.vol-closed { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 12px; background: rgba(229,83,75,.16); color: #e5534b; border: 1px solid rgba(229,83,75,.4); font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; vertical-align: middle; }

/* Impersonation banner */
.impersonate-bar { background: linear-gradient(90deg, #7a3b00, #9c5a12); color: #fff; border-bottom: 1px solid rgba(0,0,0,.3); }
.impersonate-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 9px 0; font-size: .9rem; }
.impersonate-bar strong { color: #ffe1b0; }
.impersonate-bar .btn { background: #fff; color: #7a3b00; border-color: #fff; }
.impersonate-bar .btn:hover { background: #ffe1b0; }

/* Completeness chips (T/D/Q/Img) in the submissions table */
.chips { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 3px; border-radius: 6px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .74rem; }
.chip.on  { background: rgba(63,185,80,.16);  color: #3fb950; border: 1px solid rgba(63,185,80,.45); }
.chip.off { background: rgba(229,83,75,.13);  color: #e5534b; border: 1px solid rgba(229,83,75,.4); }

/* Part filter pills (admin volume submissions) */
.part-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.part-filter { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .5px; font-size: .76rem; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.part-filter:hover { border-color: var(--accent); }
.part-filter.active { background: var(--accent); color: #1a1206; border-color: var(--accent); }
.part-filter .cnt { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 10px; background: rgba(0,0,0,.18); font-size: .72rem; }
.part-filter.active .cnt { background: rgba(0,0,0,.22); }

/* Artist search toolbar */
.artist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.artist-search { position: relative; }
.artist-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.artist-search input { padding-left: 36px; min-width: 270px; background: var(--bg-2); }

/* Admin link in nav */
.admin-link { color: var(--accent) !important; }

/* Floating Save button */
.fab-save { position: fixed; right: 22px; bottom: 22px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,.45); padding: 13px 22px; }
.fab-save i { margin-right: 2px; }
@media (max-width: 560px) { .fab-save { right: 14px; bottom: 14px; left: 14px; text-align: center; } }

/* Read-only field */
input[readonly], input:disabled { opacity: .7; cursor: not-allowed; background: #11161d; }

/* Admin member social editor (one link per row) */
.social-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.social-ico { width: 30px; text-align: center; color: var(--accent-2); font-size: 1.1rem; flex: 0 0 auto; }
.social-row .social-plat { width: 175px; flex: 0 0 auto; }
.social-row input[type=text] { flex: 1; min-width: 0; }
.social-row .social-del { flex: 0 0 auto; }
.vis-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; cursor: pointer; }
.vis-toggle input { width: auto; }
@media (max-width: 600px) { .social-row { flex-wrap: wrap; } .social-row .social-plat { width: 130px; } }

/* Large modal (member edit) */
.modal-lg { max-width: 780px; width: 100%; max-height: 88vh; padding: 0; display: flex; flex-direction: column; text-align: left; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-body { padding: 16px 22px; overflow: auto; flex: 1 1 auto; }
.modal-body .panel { box-shadow: none; }
.modal-foot { padding: 13px 22px; border-top: 1px solid var(--border); text-align: right; flex: 0 0 auto; }

/* Admin sub-nav */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; color: var(--text); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: .82rem; letter-spacing: .4px; }
.admin-nav a:hover { background: var(--panel-2); text-decoration: none; }
.admin-nav a.active { background: var(--accent); color: #1a1206; }
.admin-nav a i { font-size: .9em; }

/* Members volume matrix */
.members-table { margin: 0; }
.members-table th.vol-col, .members-table td.vol-col { text-align: center; width: 48px; padding: 10px 6px; }
.members-table td.vol-col input { width: 18px; height: 18px; cursor: pointer; }
.members-table th.vol-col { color: var(--accent-2); }
.members-table th.vol-filter { cursor: pointer; user-select: none; }
.members-table th.vol-filter:hover { color: var(--accent); }
.members-table th.vol-filter.active { background: var(--accent); color: #1a1206; border-radius: 6px 6px 0 0; }
/* Scroll the rows; keep the header row pinned */
.members-scroll { max-height: calc(100vh - 250px); overflow: auto; }
.members-scroll thead th { position: sticky; top: 0; z-index: 3; background: var(--panel-2); box-shadow: inset 0 -1px 0 var(--border); }
.members-scroll thead th:first-child { z-index: 4; }

/* Part chips in the volumes list */
.vol-parts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.part-chip { font-size: .72rem; background: var(--bg-2); border: 1px solid var(--border); color: var(--accent-2); padding: 2px 8px; border-radius: 20px; }

/* Parts list */
.part-list { list-style: none; padding: 0; margin: 0; }
.part-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.media-card { margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.media-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: .76rem; color: var(--muted); }
.media-card figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Media multi-select pick cards (Inside page admin) */
.pick-card { position: relative; display: block; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; }
.pick-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pick-card span { display: block; padding: 5px 7px; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-card input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; }
.pick-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,162,61,.35); }

/* Inside-page admin rows */
.inside-admin-list { display: flex; flex-direction: column; gap: 12px; }
.inside-admin-row { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.inside-admin-row > img { width: 130px; height: 90px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.inside-admin-fields { flex: 1; min-width: 0; }
.inside-admin-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 560px) { .inside-admin-row { flex-wrap: wrap; } .inside-admin-row > img { width: 100%; height: 140px; } }

/* Media picker (social compose) */
.media-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.media-pick { width: 70px; height: 70px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-2); cursor: pointer; padding: 0; color: var(--muted); font-size: .72rem; }
.media-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-pick.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,162,61,.3); }

/* Social layout + Facebook preview card */
.social-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.fb-card { background: #fff; color: #050505; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); font-family: Helvetica, Arial, sans-serif; }
.fb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.fb-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #0e1116; flex: 0 0 auto; }
.fb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fb-name { font-weight: 700; font-size: .95rem; color: #050505; }
.fb-meta { font-size: .78rem; color: #65676b; }
.fb-text { padding: 6px 14px 12px; font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
.fb-image img { width: 100%; display: block; }
.fb-actions { display: flex; justify-content: space-around; padding: 8px 6px; border-top: 1px solid #dadde1; color: #65676b; font-size: .85rem; font-weight: 600; }
@media (max-width: 760px) { .social-layout { grid-template-columns: 1fr; } }

/* Side-by-side panels (e.g. Visibility + Agreement) */
.panel-row { display: flex; gap: 22px; margin: 22px 0; align-items: stretch; }
.panel-row > .panel { flex: 1; min-width: 0; margin: 0; }
@media (max-width: 760px) { .panel-row { flex-direction: column; gap: 22px; } }

/* Terms list (agreement modal) */
.terms-list { padding-left: 20px; margin: 0; }
.terms-list li { margin-bottom: 10px; color: #c8d2de; font-size: .9rem; line-height: 1.5; }

/* Member ↔ admin messages */
.msg-thread { border-bottom: 1px solid var(--border); padding: 12px 0; }
.msg-thread:last-child { border-bottom: 0; }
.msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.msg-body { white-space: pre-wrap; margin: 6px 0; color: #c8d2de; }
.msg-reply { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-top: 8px; }
.accept-row { align-items: flex-start; gap: 10px; font-weight: 400; margin: 10px 0; }
.accept-row span { font-size: .9rem; color: #c8d2de; }
.accept-row input { margin-top: 3px; flex: 0 0 auto; }

/* Drive status banner */
.drive-status { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; color: var(--muted); }
.drive-status i { color: var(--accent-2); margin-right: 4px; }
.drive-status code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; color: var(--accent-2); font-size: .85em; }

/* Profile form controls */
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 10px 0; }
.check input { width: auto; }
.vol-checks { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 4px 18px; }
label i { color: var(--accent-2); }

@media (max-width: 820px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .home-hero-cover { order: -1; }
  .hero-actions { justify-content: center; }
  .artist-list { columns: 2; }
}
@media (max-width: 560px) {
  .hero h1, .home-hero-text h1 { font-size: 2rem; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #11161d; border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .brand-logo { height: 32px; }
  .artist-list { columns: 1; }
  .footer-inner { flex-direction: column; }
}
