/* Fieldsheet — base styles */

:root {
  --bg: #f3efe4;
  --bg-raised: #fbf9f3;
  --ink: #201d18;
  --ink-soft: #565148;
  --ink-faint: #837c6d;
  --line: #d6cfba;
  --line-strong: #b7ad91;
  --accent: #a8431a;
  --accent-dark: #832f0f;
  --accent-soft: #f0dccb;
  --navy: #263640;
  --ok: #3f6b3f;
  --ok-soft: #dde8dc;
  --radius: 2px;
  --shadow-flat: 4px 4px 0 rgba(32, 29, 24, 0.14);
  --shadow-flat-sm: 3px 3px 0 rgba(32, 29, 24, 0.12);
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #1c1a15;
  --bg-raised: #262319;
  --ink: #ece6d8;
  --ink-soft: #b6ad9c;
  --ink-faint: #857c6c;
  --line: #3a3527;
  --line-strong: #4d4636;
  --accent: #e2703a;
  --accent-dark: #c85f2c;
  --accent-soft: #3d2415;
  --navy: #7fb0c2;
  --ok: #7ec27e;
  --ok-soft: #1e2c1e;
  --shadow-flat: 4px 4px 0 rgba(0, 0, 0, 0.5);
  --shadow-flat-sm: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] body {
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

:root[data-theme="dark"] .hero-photo:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .notice {
  color: #bfe6bf;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(32, 29, 24, 0.015) 1px, transparent 1px);
  background-size: 100% 32px;
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--bg-raised);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.brand .mark em {
  font-style: normal;
  color: var(--accent);
}

.brand .sub {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 15px;
}

@media (max-width: 480px) {
  .brand .sub {
    display: none;
  }

  .site-nav {
    gap: 10px 16px;
    font-size: 14px;
  }
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.site-nav a.cta {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg-raised);
}

.site-nav a.cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--ink-soft);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- buttons / forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-raised);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-flat-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--ink);
}

.btn.block {
  width: 100%;
  justify-content: center;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 18px;
}

.field .hint {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

fieldset {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 20px;
}

legend {
  font-family: var(--serif);
  font-weight: 700;
  padding: 0 8px;
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  position: relative;
  height: 320px;
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
}

.hero-photo {
  position: absolute;
  width: 46%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink);
  background: var(--bg-raised);
  box-shadow: var(--shadow-flat);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, z-index 0s;
}

.hero-photo:hover {
  transform: rotate(0deg) scale(1.06) !important;
  box-shadow: 6px 6px 0 rgba(32, 29, 24, 0.18);
  z-index: 5 !important;
}

.hero-photo .thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.hero-photo .cap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.hero-photo .cap svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.hero-photo .cap span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 42px;
  max-width: 720px;
}

.hero p.lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }
}

/* ---------- search / filters ---------- */

.search-panel {
  background: var(--bg-raised);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-flat);
  padding: 20px;
  margin-top: 28px;
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-row input[type="text"] {
  flex: 1;
  min-width: 220px;
}

.trade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
}

.chip svg {
  width: 14px;
  height: 14px;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-raised);
}

/* ---------- listing grid ---------- */

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0;
}

.result-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .pro-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pro-card {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--card-accent, var(--ink));
  background: var(--bg-raised);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  animation: card-in 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.pro-card:hover {
  box-shadow: var(--shadow-flat);
  transform: translate(-2px, -2px);
  color: var(--ink);
}

.pro-card:hover .thumb svg,
.pro-card:hover .thumb img {
  transform: scale(1.05);
}

.pro-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pro-card .thumb img,
.pro-card .thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pro-card,
  .pro-card .thumb svg,
  .pro-card .thumb img,
  .hero-photo {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.pro-card .body {
  padding: 16px;
}

.pro-card .trade-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.pro-card .trade-tag svg {
  width: 14px;
  height: 14px;
}

.pro-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.pro-card .loc {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.pro-card .tagline {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-faint);
}

/* ---------- avatar ---------- */

.avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  font-size: 28px;
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- placeholder scene illustration ---------- */

.scene-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- profile page ---------- */

.pro-header {
  display: flex;
  gap: 28px;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.pro-header .avatar-wrap {
  width: 128px;
  height: 128px;
  border: 1px solid var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}

.pro-header .avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-header .meta {
  flex: 1;
  min-width: 240px;
}

.pro-header .trade-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.pro-header .trade-tag svg {
  width: 16px;
  height: 16px;
}

.pro-header h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

.pro-header .tagline {
  font-size: 16px;
  color: var(--ink-soft);
}

.fact-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 14px;
}

.fact-row .fact {
  color: var(--ink-soft);
}

.fact-row .fact strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.pro-header .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
}

.two-pane {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 36px 0 60px;
}

@media (max-width: 860px) {
  .two-pane {
    grid-template-columns: 1fr;
  }

  .booking-box {
    position: static;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery figcaption {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.bio-block {
  margin-top: 28px;
}

.bio-block h2 {
  font-size: 18px;
}

.booking-box {
  border: 1px solid var(--ink);
  background: var(--bg-raised);
  box-shadow: var(--shadow-flat);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.booking-box h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.booking-box .sub {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: #234023;
  font-size: 14px;
  margin-bottom: 16px;
}

.notice.error {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid var(--bg-raised);
}

.lightbox .cap {
  color: var(--bg-raised);
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--bg-raised);
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
}

@media (max-width: 640px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox .close {
    top: 10px;
    right: 14px;
  }
}

/* ---------- join / dashboard forms ---------- */

.form-page {
  padding: 40px 0 70px;
  max-width: 720px;
  margin: 0 auto;
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .photo-row {
    grid-template-columns: 1fr;
  }

  .photo-row .remove-photo {
    justify-self: end;
    width: auto;
  }
}

.photo-row .remove-photo {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius);
}

.photo-row .remove-photo:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.add-photo-btn {
  background: none;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  padding: 12px;
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 24px;
}

.add-photo-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.confirm-card {
  border: 1px solid var(--ink);
  background: var(--bg-raised);
  box-shadow: var(--shadow-flat);
  padding: 28px;
}

.confirm-card .token-box {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 12px;
  word-break: break-all;
  margin: 14px 0;
}

/* ---------- dashboard ---------- */

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-row {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.booking-row .who {
  font-weight: 700;
}

.booking-row .job {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.status-pill {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  align-self: flex-start;
}

.status-pill.new {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.status-pill.contacted {
  border-color: var(--navy);
  color: var(--navy);
}

.status-pill.booked {
  border-color: var(--ok);
  color: var(--ok);
}

.status-pill.declined {
  color: var(--ink-faint);
}

.booking-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.booking-actions select {
  width: auto;
  padding: 6px 8px;
  font-size: 13px;
}

/* ---------- dashboard stats + charts ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 16px 18px;
}

.stat-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 8px;
}

.charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 760px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 18px 20px 16px;
}

.chart-card h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* status breakdown — horizontal bars, direct labels, no color-only identity */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 24px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-row-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bar-track {
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 3px;
}

.bar-row-value {
  font-family: var(--mono);
  text-align: right;
  color: var(--ink);
}

@media (max-width: 480px) {
  .chart-card {
    padding: 14px 14px 12px;
  }

  .bar-row {
    grid-template-columns: 74px 1fr 22px;
    gap: 8px;
    font-size: 12px;
  }
}

/* weekly trend — single-hue magnitude, one axis */

.trend-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  min-width: 420px;
}

.trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.trend-bar-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  min-height: 14px;
}

.trend-bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.trend-bar-fill {
  width: 100%;
  background: var(--accent-dark);
  border-radius: 3px 3px 1px 1px;
  min-height: 2px;
  transition: opacity 0.1s ease;
}

.trend-bar:hover .trend-bar-fill {
  opacity: 0.8;
}

.trend-bar-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
  margin: 24px 0 0;
}

.dash-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 4px;
  margin-right: 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
}

.dash-tab:hover {
  color: var(--ink);
}

.dash-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.dash-logout {
  background: none;
  border: none;
  padding: 12px 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
}

.dash-logout:hover {
  color: var(--ink);
}

.dash-panel {
  display: none;
  padding: 28px 0 60px;
}

.dash-panel.active {
  display: block;
}

.current-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.existing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.existing-photos:empty {
  display: none;
}

.existing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.existing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.existing-photo .remove-existing-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  line-height: 1;
  background: rgba(32, 29, 24, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.existing-photo .remove-existing-photo:hover {
  background: var(--accent-dark);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 32px 0;
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ink-faint);
}
