:root {
  --ink: #1a1210;
  --ink-soft: #6b5e57;
  --chalk: #f6f1ec;
  --parchment: #efe6de;
  --line: #e5d9cf;
  --oxblood: #e11d48;
  --madder: #be123c;
  --brass: #ca8a04;
  --sage: #0f766e;
  --indigo: #134e4a;
  --indigo-deep: #115e59;
  --teal: #0f766e;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(26, 18, 16, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", system-ui, sans-serif;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(225, 29, 72, 0.07), transparent 50%),
    radial-gradient(ellipse 55% 40% at 100% 5%, rgba(15, 118, 110, 0.08), transparent 48%),
    linear-gradient(180deg, #faf7f4 0%, var(--chalk) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 217, 207, 0.9);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand span {
  color: var(--rose);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  position: relative;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--white);
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oxblood);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--indigo);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.account-menu {
  position: relative;
}

.account-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border-radius: 999px;
  color: var(--ink-soft);
}

.account-menu__toggle:hover,
.account-menu.is-open .account-menu__toggle {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 80;
}

.account-menu__label {
  padding: 0.65rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.account-menu__label strong {
  display: block;
  font-size: 0.92rem;
}

.account-menu__label span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.account-menu__panel a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.account-menu__panel a:hover {
  background: var(--chalk);
}

.account-menu__logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--oxblood) !important;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, #fb7185 55%, #f43f5e 100%);
  color: var(--white);
  border: 0;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: #f0fdfa;
}

.btn-accent {
  background: var(--teal);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--indigo-deep);
}

.btn-sm {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.7rem;
}

/* Hero — editorial split, not SaaS */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--nav-h));
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(15, 28, 44, 0.03), transparent 40%),
    var(--chalk);
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  max-width: 11ch;
  color: var(--indigo-deep);
  margin-bottom: 1.25rem;
}

.hero__lead {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--indigo-deep);
  min-height: 420px;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.hero:hover .hero__visual img {
  transform: scale(1.06);
}

.hero__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: rgba(255, 252, 248, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

/* Editorial mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 0.85rem;
}

.mosaic__item {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
}

.mosaic__item:first-child {
  grid-row: span 2;
}

.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mosaic__item:hover img {
  transform: scale(1.05);
}

.mosaic__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(15, 28, 44, 0.72));
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
}

.mosaic__item:hover .mosaic__meta {
  opacity: 1;
  transform: translateY(0);
}

/* Explore grid — polaroid prints */
.explore-grid {
  columns: 4 220px;
  column-gap: 0.9rem;
}

.explore-grid--polaroid {
  columns: unset;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem 1.35rem;
  align-items: start;
  padding: 0.35rem 0.15rem 1rem;
}

.explore-card {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  position: relative;
  overflow: hidden;
  background: var(--parchment);
}

.explore-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.explore-card:hover img {
  transform: scale(1.03);
}

.explore-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(15, 28, 44, 0.7));
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.explore-card:hover .explore-card__overlay {
  opacity: 1;
}

.explore-card--polaroid {
  margin: 0;
  overflow: visible;
  background: transparent;
  display: block;
  color: inherit;
}

.explore-card__frame {
  display: block;
  background: #fffef9;
  padding: 0.7rem 0.7rem 0;
  border: 1px solid rgba(26, 18, 16, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 28px rgba(26, 18, 16, 0.12),
    0 3px 8px rgba(26, 18, 16, 0.06);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.explore-card--polaroid:hover .explore-card__frame {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 40px rgba(26, 18, 16, 0.16),
    0 6px 14px rgba(26, 18, 16, 0.08);
}

.explore-card__photo {
  display: block;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ebe3da, #d9cfc4);
}

.explore-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.96);
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}

.explore-card--polaroid:hover .explore-card__photo img {
  transform: scale(1.04);
  filter: contrast(1.06) saturate(1);
}

.explore-card__caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.6rem;
  padding: 0.7rem 0.35rem 0.95rem;
  font-family: var(--font-display);
}

.explore-card__caption strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-card__caption em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Feed — social stream */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(240px, 300px);
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 0 4rem;
}

.feed-layout--social .feed-main {
  max-width: 640px;
}

.feed-filters {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}

.feed-filters a {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  border-bottom: 0;
  margin-bottom: 0;
}

.feed-filters a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), #f43f5e);
  border-color: transparent;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 18, 16, 0.04);
}

.post-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.post-card__media {
  position: relative;
  background: #1a1210;
  aspect-ratio: 1 / 1;
}

.post-card__media img,
.post-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 0.9rem 1rem 1.15rem;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.post-actions button,
.post-actions a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s, transform 0.2s;
}

.post-actions button:hover,
.post-actions a:hover {
  color: var(--rose);
  transform: scale(1.05);
}

.post-actions .is-active { color: var(--rose); }

/* Tag markers */
.taggable {
  position: relative;
  overflow: hidden;
}

.tag-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 252, 248, 0.95);
  border-radius: 50%;
  background: rgba(15, 28, 44, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(15, 28, 44, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.tag-marker:hover,
.tag-marker.is-open {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 6px rgba(166, 139, 85, 0.25);
}

.tag-marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--white);
}

.tag-pop {
  position: absolute;
  z-index: 5;
  width: min(260px, 70vw);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem;
  transform: translate(-50%, 12px);
}

.tag-pop__cat {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.tag-pop h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tag-pop p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* Dictionary archive */
.dict-hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.dict-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 14ch;
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.5rem 0;
}

.alpha-nav a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.alpha-nav a.has-entries { color: var(--ink); background: var(--white); }
.alpha-nav a.is-active {
  background: var(--indigo-deep);
  color: var(--white);
  border-color: var(--indigo-deep);
}

.dict-list {
  display: grid;
  gap: 0;
}

.dict-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.dict-row:hover { background: rgba(255, 252, 248, 0.65); }
.dict-row h3 { font-size: 1.45rem; }
.dict-row p { margin: 0; color: var(--ink-soft); }
.dict-row .meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Profile portfolio */
.profile-cover {
  height: 220px;
  background:
    linear-gradient(120deg, var(--indigo-deep), var(--oxblood) 70%, var(--brass));
  position: relative;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-panel {
  margin-top: -64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--chalk);
  object-fit: cover;
  background: var(--indigo);
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.profile-stats strong {
  color: var(--ink);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.portfolio-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--parchment);
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-grid a:hover img { transform: scale(1.04); }

/* Studio */
.studio-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.studio-nav a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.studio-nav a.is-active,
.studio-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

/* Collage editor */
.editor-frame {
  height: 100vh;
  display: grid;
  grid-template-rows: 56px 1fr;
  background: #1a1f26;
  color: #f4efe6;
}

.editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #12161c;
}

.editor-body {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  min-height: 0;
}

.editor-panel {
  background: #161b22;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: auto;
  padding: 1rem;
}

.editor-panel--right {
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.editor-canvas-wrap {
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    linear-gradient(45deg, #1e242c 25%, transparent 25%),
    linear-gradient(-45deg, #1e242c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e242c 75%),
    linear-gradient(-45deg, transparent 75%, #1e242c 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #252b34;
  padding: 2rem;
}

.asset-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.5rem;
  cursor: grab;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Forms — polished social UI */
.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--nav-h) - 80px);
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.auth-shell__visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(225,29,72,.55), rgba(15,118,110,.55)),
    #1a1210;
  min-height: 320px;
}

.auth-shell__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  mix-blend-mode: luminosity;
}

.auth-shell__visual-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(26,18,16,.75));
}

.auth-shell__visual-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  color: #fff;
}

.auth-shell__visual-copy p {
  margin: 0;
  opacity: 0.88;
  max-width: 28ch;
}

.auth-shell__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(225,29,72,.06), transparent 55%),
    #fff;
}

.form-card,
.form-wide {
  width: min(440px, 100%);
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.form-wide {
  width: min(820px, 100%);
  margin: 2rem auto 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(26, 18, 16, 0.06);
}

.form-card .section-kicker,
.form-wide .section-kicker {
  color: var(--rose);
  font-weight: 600;
}

.form-card h1,
.form-wide h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.form-card .lead,
.form-wide .lead {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 550;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.form-group .field {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fbf8f5;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5e57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a89a90;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: #d2c4b8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.form-group input[type="file"] {
  padding: 0.75rem;
  background: #fff;
  border-style: dashed;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.form-actions .btn,
.form-card .btn[type="submit"] {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.92rem;
}

.form-card .btn[type="submit"] {
  width: 100%;
  margin-top: 0.35rem;
}

.form-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: center;
}

.form-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.form-footer a:hover {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1.5px solid var(--line);
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  background: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  font-weight: 500;
}

.chip:hover {
  border-color: #fb7185;
  background: var(--rose-soft);
}

.chip input { display: none; }
.chip:has(input:checked) {
  background: linear-gradient(135deg, var(--rose), #f43f5e);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
}

/* Toast / flash */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 100;
  max-width: 360px;
  padding: 0.9rem 1rem;
  background: var(--indigo-deep);
  color: var(--white);
  box-shadow: var(--shadow);
  animation: slideIn 0.35s var(--ease);
}

.flash--error { background: var(--oxblood); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty */
.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line);
  background: rgba(255, 252, 248, 0.5);
}

.empty h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.empty p { color: var(--ink-soft); margin: 0 0 1.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 2.25rem;
  margin-top: 2.5rem;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(225, 29, 72, 0.12);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  margin: -3.25rem 0 2.5rem;
  background: linear-gradient(90deg, var(--rose) 0%, #fb7185 40%, var(--teal) 100%);
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--rose); }

.site-footer strong {
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}

.footer-brand span { color: var(--rose); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 245, 241, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 60;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
}

.mobile-nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem;
}

.mobile-nav a.is-active { color: var(--oxblood); }

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: var(--indigo-deep);
  color: rgba(255,252,248,0.8);
  padding: 1.5rem 1rem;
}

.admin-side a {
  display: block;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.25rem;
  color: inherit;
  font-size: 0.85rem;
}

.admin-side a:hover,
.admin-side a.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.admin-main { padding: 1.5rem; background: var(--chalk); }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.table th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.tabs a {
  padding: 0.75rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a.is-active {
  color: var(--ink);
  border-color: var(--oxblood);
}

.tech-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tech-card {
  padding: 1.25rem;
  border-top: 2px solid var(--brass);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-height: 160px;
}

.tech-card h3 { font-size: 1.35rem; }
.tech-card p { color: var(--ink-soft); font-size: 0.9rem; }

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.split-feature__media { min-height: 420px; background: var(--indigo); }
.split-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature__copy {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.creator-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.creator-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 90vw);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: none;
}

.search-panel.is-open { display: block; }

.sr-group { margin-bottom: 0.75rem; }
.sr-group h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.35rem;
}

.sr-group a {
  display: block;
  padding: 0.4rem 0.25rem;
  font-size: 0.9rem;
}

.page-post {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.muted { color: var(--ink-soft); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.75rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { min-height: 360px; order: -1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .mosaic__item:first-child { grid-row: span 1; grid-column: span 2; }
  .feed-layout, .studio-shell, .page-post, .split-feature, .admin-layout, .editor-body {
    grid-template-columns: 1fr;
  }
  .editor-body { grid-template-rows: 180px 1fr 200px; }
  .tech-rail, .creator-row, .stat-strip, .footer-grid, .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dict-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .profile-panel { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 900px) {
  .explore-grid--polaroid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.35rem 1rem;
  }
}

@media (max-width: 640px) {
  .explore-grid { columns: 2 140px; }
  .explore-grid--polaroid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }
  .explore-card__caption {
    min-height: 3.2rem;
    padding: 0.55rem 0.2rem 0.75rem;
  }
  .explore-card__caption strong { font-size: 0.85rem; }
  .tech-rail, .creator-row, .stat-strip, .footer-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: none; }
}

/* =========================================================
   Extended page styles (feed, dictionary, post, studio, admin)
   ========================================================= */
.page-wrap { padding: 2rem 0 4rem; }
.page-head {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-head p { max-width: 58ch; color: var(--ink-soft); margin: 0; }
.narrow { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }
.inline-form { display: inline; margin: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.btn-danger { background: transparent; border-color: var(--oxblood); color: var(--oxblood); }
.btn-danger:hover { background: var(--oxblood); color: var(--white); }
.link-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link-underline:hover { text-decoration-color: var(--oxblood); }

.pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
}
.pill--ok { border-color: var(--sage); color: #4f5a47; }
.pill--warn { border-color: var(--brass); color: #7b6532; }
.pill--bad { border-color: var(--oxblood); color: var(--oxblood); }

/* Filters & pagination */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.5rem; }
.filter-row a {
  border: 1px solid rgba(229, 217, 207, 0.95);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(26, 18, 16, 0.04);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.filter-row a:hover {
  border-color: rgba(225, 29, 72, 0.35);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(26, 18, 16, 0.08);
}
.filter-row a.is-active {
  background: linear-gradient(135deg, var(--rose), #f43f5e);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 0.35rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 0.7rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  background: var(--white);
  color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current { background: var(--indigo-deep); border-color: var(--indigo-deep); color: var(--white); }
.pagination .is-disabled { opacity: 0.4; }

/* Sidebar cards */
.side-card { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; margin-bottom: 1.25rem; }
.side-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.side-list a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.side-list a:last-child { border-bottom: 0; }
.side-list small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.feed-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }

/* Forms */
.form-group input[type="range"] { padding: 0; }
.form-wide--soft {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(225,29,72,.05), transparent 55%),
    var(--white);
}
.search-bar { display: flex; gap: 0.5rem; }
.search-bar input {
  flex: 1; border: 1px solid var(--line); background: var(--white);
  padding: 0.8rem 1rem; border-radius: var(--radius);
}
.search-bar input:focus { outline: 1px solid var(--indigo); border-color: var(--indigo); }

/* Generic card grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.media-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.media-card__img { aspect-ratio: 4 / 3; background: var(--parchment); overflow: hidden; display: block; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-card:hover .media-card__img img { transform: scale(1.04); }
.media-card__ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); color: var(--ink-soft); font-size: 1.4rem;
  background: linear-gradient(135deg, var(--parchment), #e4ddd0);
}
.media-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.media-card__body h3 { font-size: 1.2rem; margin: 0; }
.media-card__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; }

/* Search */
.search-section { margin-bottom: 3rem; }
.search-section > h2 { font-size: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 1.25rem; }

/* Dictionary detail */
.dict-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding: 3rem 0 4rem; }
.dict-article__head { padding-top: 3rem; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.dict-article__head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--indigo-deep); margin-bottom: 0.75rem; }
.dict-article__lead { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; max-width: 46ch; color: var(--ink-soft); margin: 0; }
.dict-article section { margin-bottom: 2.25rem; }
.dict-article section h2 { font-size: 1.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 0.85rem; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.fact-sheet { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--brass); padding: 1.25rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
.fact-sheet dl { margin: 0; }
.fact-sheet dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-top: 1rem; }
.fact-sheet dt:first-child { margin-top: 0; }
.fact-sheet dd { margin: 0.2rem 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tag-list li, .tag-list a {
  display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--line);
  background: var(--white); font-size: 0.8rem;
}
.tag-list a:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* Post detail */
.post-media-stack { display: grid; gap: 1rem; align-content: start; }
.post-media { position: relative; background: var(--indigo-deep); }
.post-media img, .post-media video { width: 100%; height: auto; display: block; }
.post-side h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.post-meta { margin: 1.25rem 0; border-top: 1px solid var(--line); }
.post-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.post-meta dt, .post-meta .k { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); padding-top: 0.15rem; }
.comments { margin-top: 2.5rem; }
.comment { display: flex; gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment__body { flex: 1; }
.comment__body p { margin: 0.25rem 0 0; white-space: pre-line; }
.comment-form textarea {
  width: 100%; min-height: 90px; border: 1px solid var(--line); background: var(--white);
  padding: 0.75rem 0.85rem; resize: vertical; margin-bottom: 0.6rem;
}
.post-actions--lg { margin: 1.25rem 0; gap: 1.25rem; }
.post-actions--lg button, .post-actions--lg a { font-size: 0.9rem; }
details.report { margin-top: 1.5rem; font-size: 0.85rem; }
details.report summary { cursor: pointer; color: var(--ink-soft); }

/* Tagger (create / edit post) */
.tagger {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}
.tagger__drop {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  border: 1.5px dashed #d4c4b8;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(225,29,72,.06), transparent 70%),
    #fbf8f5;
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tagger__drop:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
  box-shadow: 0 0 0 4px rgba(225,29,72,.08);
}
.tagger__drop strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}
.tagger__drop input { display: none; }
.tagger__stage {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  background: #1a1210;
  user-select: none;
  border-radius: 12px;
  overflow: hidden;
}
.tagger__canvas { position: relative; line-height: 0; cursor: crosshair; max-width: 100%; }
.tagger__canvas img { max-width: 100%; max-height: 640px; width: auto; height: auto; display: block; }
.tagger__canvas .tag-marker { cursor: pointer; }
.tagger__thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.85rem; }
.tagger__thumbs button {
  width: 68px; height: 68px; padding: 0; border: 2px solid transparent; background: var(--parchment);
  overflow: hidden; border-radius: 10px; cursor: pointer;
}
.tagger__thumbs button.is-active { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(225,29,72,.15); }
.tagger__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tagger__picker {
  position: absolute; z-index: 6; width: min(300px, 82vw); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.85rem; transform: translate(-50%, 14px);
  cursor: default; line-height: 1.5; color: var(--ink); border-radius: 12px;
}
.tagger__picker input {
  width: 100%; border: 1.5px solid var(--line); padding: 0.7rem 0.85rem; background: #fbf8f5; border-radius: 10px;
}
.tagger__picker input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225,29,72,.12); }
.tagger__results { max-height: 220px; overflow: auto; margin-top: 0.5rem; }
.tagger__results button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--line); border-radius: 8px;
}
.tagger__results button:hover { background: var(--rose-soft); }
.tagger__results small { display: block; color: var(--ink-soft); }
.tagger__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.tagger__list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.tagger__list button {
  background: var(--rose-soft); border: 0; color: var(--rose); font-size: 0.75rem;
  font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 999px;
}
.tagger__hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }

.form-group label.chip {
  display: inline-flex; align-items: center; margin: 0; text-transform: none;
  letter-spacing: normal; font-size: 0.86rem; color: var(--ink); font-weight: 500;
}
.form-group label.chip:has(input:checked) { color: var(--white); }

.comment-form textarea {
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fbf8f5 !important;
  padding: 0.9rem 1rem !important;
}
.comment-form textarea:focus {
  outline: none !important;
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 4px rgba(225,29,72,.12);
  background: #fff !important;
}

/* Notifications */
.notif { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.notif.is-unread { background: rgba(255, 252, 248, 0.8); box-shadow: inset 3px 0 0 var(--oxblood); padding-left: 1rem; }
.notif__body { flex: 1; }

/* Profile */
.profile-bio { max-width: 60ch; margin: 0.5rem 0 0.75rem; }
.profile-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); }
.profile-links a { text-decoration: underline; text-underline-offset: 3px; }
.profile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Static / editorial */
.editorial { padding: 4rem 0; }
.editorial h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; color: var(--indigo-deep); }
.editorial h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.editorial .lead { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.editorial ul { padding-left: 1.2rem; }
.editorial li { margin-bottom: 0.5rem; }
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--oxblood); opacity: 0.85; }

/* Studio extras */
.studio-main { min-width: 0; }
.studio-main > h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.studio-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.add-to summary { cursor: pointer; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.add-to form { margin-top: 0.4rem; }
.collage-public { background: var(--white); border: 1px solid var(--line); padding: 1rem; box-shadow: var(--shadow); }
.collage-public img, .collage-public canvas { margin-inline: auto; max-height: 78vh; width: auto; max-width: 100%; }

/* Dark collage editor */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 34px; padding: 0.35rem 0.8rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06); color: #f4efe6; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius);
}
.ed-btn:hover { background: rgba(255, 255, 255, 0.14); }
.ed-btn--primary { background: var(--oxblood); border-color: var(--oxblood); }
.ed-btn--primary:hover { background: var(--madder); }
.ed-btn--block { width: 100%; margin-bottom: 0.5rem; }
.editor-top input[type="text"] {
  background: transparent; border: 1px solid transparent; color: #f4efe6; padding: 0.4rem 0.6rem;
  font-family: var(--font-display); font-size: 1.1rem; min-width: 220px;
}
.editor-top input[type="text"]:hover, .editor-top input[type="text"]:focus { border-color: rgba(255, 255, 255, 0.2); outline: 0; }
.editor-top__group { display: flex; align-items: center; gap: 0.5rem; }
.editor-status { font-size: 0.75rem; color: rgba(244, 239, 230, 0.6); min-width: 110px; }
.editor-section { margin-bottom: 1.5rem; }
.editor-section h4 {
  font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55); margin-bottom: 0.65rem;
}
.editor-section label { display: block; font-size: 0.72rem; color: rgba(244, 239, 230, 0.7); margin: 0.6rem 0 0.2rem; }
.editor-section input[type="range"] { width: 100%; }
.editor-section input[type="color"] { width: 100%; height: 36px; background: none; border: 1px solid rgba(255, 255, 255, 0.12); padding: 0; }
.editor-section select, .editor-section input[type="file"] {
  width: 100%; background: #0f1319; color: #f4efe6; border: 1px solid rgba(255, 255, 255, 0.12); padding: 0.5rem; font-size: 0.8rem;
}
.editor-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.editor-assets .asset-thumb { margin-bottom: 0; }
.editor-assets .asset-thumb:hover { border-color: var(--brass); }
.editor-empty { font-size: 0.8rem; color: rgba(244, 239, 230, 0.55); }
.editor-panel a { color: #f4efe6; }
.editor-canvas-wrap > div { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }

/* Admin extras */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.85rem; margin-bottom: 2rem; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-panel { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; margin-bottom: 1.5rem; }
.admin-panel h2 { font-size: 1.3rem; }
.admin-form { max-width: 860px; }
.admin-form textarea { min-height: 110px; }
.table-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table td .muted { font-size: 0.8rem; }

@media (max-width: 980px) {
  .dict-article { grid-template-columns: 1fr; gap: 1.5rem; }
  .fact-sheet, .feed-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Social platform home & feed chrome ===== */
.social-home { padding-bottom: 2rem; }

.social-intro {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.9), transparent);
}

.social-intro__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-intro__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.social-intro h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  max-width: 18ch;
  margin: 0 0 0.55rem;
}

.social-intro__lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 0.98rem;
}

.social-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stories-strip { padding: 1.25rem 0 0.5rem; }
.stories-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.stories-strip__head h2 { font-size: 1.15rem; margin: 0; font-family: var(--font-body); font-weight: 600; }
.stories-strip__head a { font-size: 0.85rem; color: var(--teal); font-weight: 500; }

.stories-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.85rem;
  scrollbar-width: thin;
}

.stories-track--feed {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.story-chip {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
}

.story-chip__ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--rose), #fb7185 40%, var(--teal));
  display: grid;
  place-items: center;
}

.story-chip__ring img,
.story-chip__fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  background: var(--parchment);
}

.story-chip__fallback {
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--ink);
}

.story-chip__name {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-chips { padding: 0.35rem 0 1rem; }
.trend-chips__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.trend-chips__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 0.25rem;
  font-weight: 600;
}
.trend-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}
.trend-chip:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-soft);
}
.trend-chip--more {
  border-color: var(--teal);
  color: var(--teal);
}

.social-wall-section { padding: 0.5rem 0 2rem; }
.social-wall-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social-wall-head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.social-wall-head p { margin: 0; font-size: 0.9rem; }

.social-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.social-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1a1210;
}

.social-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.social-tile:hover img { transform: scale(1.05); }

.social-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26,18,16,.78));
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  transition: opacity 0.25s;
}

.social-tile:hover .social-tile__shade { opacity: 1; }

.social-tile__user,
.social-tile__stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.social-tile__stats { gap: 0.75rem; }

.avatar--xs { width: 22px; height: 22px; font-size: 0.6rem; }
.avatar--sm { width: 36px; height: 36px; font-size: 0.75rem; }

.join-banner {
  margin: 1rem 0 2rem;
}
.join-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(225,29,72,.12), rgba(15,118,110,.12)),
    var(--white);
  border: 1px solid var(--line);
}
.join-banner h2 {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.join-banner p { margin: 0; color: var(--ink-soft); }

.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.side-card__title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.side-card--profile {
  display: grid;
  gap: 0.85rem;
}
.side-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.suggest-list { display: grid; gap: 0.65rem; }
.suggest-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.suggest-row strong { display: block; font-size: 0.88rem; }
.suggest-row small { color: var(--ink-soft); font-size: 0.75rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.mobile-nav {
  background: rgba(255,255,255,0.94) !important;
}
.mobile-nav a.is-active { color: var(--rose); }

@media (max-width: 980px) {
  .social-wall { grid-template-columns: repeat(3, 1fr); }
  .feed-layout--social { grid-template-columns: 1fr; }
  .feed-aside { display: none; }
}
@media (max-width: 640px) {
  .social-wall { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
  .social-intro__inner { align-items: start; }
  .post-card__media { aspect-ratio: 4 / 5; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__visual { min-height: 220px; max-height: 260px; }
  .auth-shell__panel { padding: 1.75rem 1.25rem 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Collage editor ===== */
.moodboard {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 58px auto auto 1fr;
  background: #f6f1ec;
  color: var(--ink);
}

.draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 58px;
  z-index: 18;
}

.draw-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fbf8f5;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.draw-tool__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: none;
}

.draw-tool:hover { border-color: var(--rose); color: var(--rose); }

.draw-tool.is-active {
  background: linear-gradient(135deg, var(--rose), #f43f5e);
  border-color: transparent;
  color: #fff;
}

.draw-color,
.draw-size {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.draw-color input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.draw-size input[type="range"] {
  width: 88px;
  accent-color: var(--rose);
}

.sticker-panel {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 1rem 0.85rem;
}

.sticker-panel.hidden { display: none; }

.sticker-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.sticker-import {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--rose);
  border: 1px dashed #e8b4bc;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: var(--rose-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.sticker-import:hover {
  border-color: var(--rose);
  background: #fff;
}

.sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sticker-grid--builtin {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.sticker-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf8f5;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.sticker-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}

.sticker-btn--custom {
  width: 52px;
  height: 52px;
}

.sticker-btn__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 18, 16, 0.72);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  padding: 0;
}

.sticker-btn--custom:hover .sticker-btn__remove {
  display: grid;
}

.sticker-btn:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.sticker-empty {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin: 0 0 0.25rem;
}

.moodboard__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.moodboard__title {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.45rem 0.25rem;
}

.moodboard__title:focus { outline: none; }

.moodboard__status {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.moodboard__bar-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mood-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.mood-btn:hover { border-color: var(--rose); color: var(--rose); }

.mood-btn--primary {
  background: linear-gradient(135deg, var(--rose), #f43f5e);
  border-color: transparent;
  color: #fff;
}

.mood-btn--ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.moodboard__workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 0;
  height: calc(100vh - 110px);
}

.moodboard__tray {
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.moodboard__tray-head strong {
  display: block;
  font-size: 0.95rem;
}

.moodboard__tray-head span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.moodboard__upload {
  display: grid;
  place-items: center;
  border: 1.5px dashed #d4c4b8;
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);
  background: #fbf8f5;
}

.moodboard__upload:hover {
  background: var(--rose-soft);
  border-color: var(--rose);
}

.moodboard__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.moodboard__thumb {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--parchment);
  box-shadow: 0 2px 8px rgba(26,18,16,.06);
}

.moodboard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.moodboard__thumb:hover img { transform: scale(1.06); }

.moodboard__empty {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

.moodboard__bg {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.moodboard__bg label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.moodboard__bg input[type="color"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.2rem;
}

.moodboard__bg select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fbf8f5;
}

.moodboard__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
  background:
    linear-gradient(45deg, #efe6de 25%, transparent 25%),
    linear-gradient(-45deg, #efe6de 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #efe6de 75%),
    linear-gradient(-45deg, transparent 75%, #efe6de 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-color: #f6f1ec;
}

.moodboard__hint {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(26,18,16,.08);
}

.moodboard__canvas-frame {
  box-shadow: 0 18px 50px rgba(26,18,16,.14);
  background: #fff;
  line-height: 0;
}

.studio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .moodboard__workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 160px 1fr;
    height: calc(100vh - 150px);
  }
  .moodboard__tray {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .moodboard__thumbs {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 72px;
  }
  .moodboard__bg { display: none; }
  .moodboard__hint { font-size: 0.72rem; white-space: normal; text-align: center; max-width: 90%; }
  .moodboard__bar-actions .mood-btn:not(.mood-btn--primary) { padding: 0.4rem 0.65rem; }
}

/* Collage tools: icons only on phones, tablets & iPads */
@media (max-width: 1024px) {
  .draw-toolbar {
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .draw-tool {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .draw-tool__icon { display: block; }
  .draw-tool__label { display: none; }
  .draw-color,
  .draw-size {
    margin-left: 0;
    flex-shrink: 0;
  }
  .draw-color .draw-tool__label,
  .draw-size .draw-tool__label { display: none; }
  .draw-size input[type="range"] { width: 72px; }
}

.add-to--moodboard { position: relative; }
.add-to--moodboard > summary {
  list-style: none;
  cursor: pointer;
}
.add-to--moodboard > summary::-webkit-details-marker { display: none; }
.add-to__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.65rem;
  min-width: 180px;
}
.moodboard__empty a { color: var(--rose); font-weight: 600; }
