@font-face {
  font-family: "Manrope";
  src: url("/manrope-variable.woff2?v=20260725-1") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f4ede2;
  --bg-2: #efe4d4;
  --panel: rgba(255, 250, 242, 0.8);
  --panel-strong: rgba(255, 248, 238, 0.96);
  --line: rgba(74, 53, 36, 0.12);
  --text: #2d2118;
  --muted: #6f5946;
  --accent: #b85c2b;
  --accent-2: #2f5d50;
  --accent-3: #d9a441;
  --danger: #a43a2f;
  --shadow: 0 18px 45px rgba(71, 47, 28, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 272px;
  --heading-font: "Manrope", "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --body-font: "Manrope", "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  font-feature-settings: "kern" 1, "liga" 1;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.18), transparent 32%),
    radial-gradient(circle at right center, rgba(47, 93, 80, 0.15), transparent 30%),
    linear-gradient(180deg, #f7f1e7 0%, var(--bg) 46%, var(--bg-2) 100%);
}

.auth-page {
  min-height: 100vh;
  background: #f7f0e5;
}

.auth-page::before {
  opacity: 0.12;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.auth-story,
.auth-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 84px);
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  color: #fffaf1;
  background:
    radial-gradient(circle at 82% 16%, rgba(231, 172, 70, 0.3), transparent 27%),
    linear-gradient(145deg, #143b32 0%, #245447 56%, #17372f 100%);
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.auth-story::before {
  width: min(48vw, 620px);
  height: min(48vw, 620px);
  right: -24%;
  bottom: -24%;
  border: 1px solid rgba(255, 250, 241, 0.18);
  box-shadow:
    0 0 0 64px rgba(255, 250, 241, 0.035),
    0 0 0 128px rgba(255, 250, 241, 0.025);
}

.auth-story::after {
  width: 18px;
  height: 34px;
  right: 19%;
  top: 32%;
  background: #d9a441;
  transform: rotate(36deg);
  box-shadow: 0 18px 50px rgba(217, 164, 65, 0.45);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(7, 24, 19, 0.22);
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: auto 0;
  padding: 72px 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 700px;
  margin: 18px 0 24px;
  font-family: var(--heading-font);
  font-size: clamp(3.2rem, 6.7vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.auth-story-copy p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 250, 241, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.auth-story-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.82rem;
}

.auth-signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9a441;
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.14);
}

.auth-panel {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(47, 93, 80, 0.13);
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 30px 80px rgba(54, 40, 27, 0.13);
  backdrop-filter: blur(18px);
}

.auth-card h2 {
  margin: 14px 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-intro {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form .field {
  min-height: 52px;
  border-color: rgba(47, 93, 80, 0.2);
  background: #fffdf9;
}

.auth-form .field:focus {
  border-color: var(--accent-2);
  outline: 3px solid rgba(47, 93, 80, 0.13);
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-message.is-error {
  color: var(--danger);
}

.auth-legal {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.runtime-lock {
  margin-top: 8px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

body.is-public-view {
  background: #f4dec0;
}

body.is-public-view::before {
  opacity: 0.08;
}

body.is-public-view .app-shell {
  display: block;
  min-height: 100vh;
}

body.is-public-view .sidebar,
body.is-public-view .topbar {
  display: none;
}

body.is-public-view .main-panel {
  min-height: 100vh;
  padding: 0;
  gap: 0;
}

body.is-public-view .view {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  padding: 16px 12px;
  border-right: 1px solid rgba(74, 53, 36, 0.08);
  background: linear-gradient(180deg, rgba(50, 34, 24, 0.92), rgba(30, 21, 16, 0.96));
  color: #fff7ef;
}

.brand-card {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.32), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand-card h1 {
  margin: 12px 0 6px;
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.brand-card p {
  margin: 0;
  color: rgba(255, 247, 239, 0.76);
  font-size: 0.9rem;
  line-height: 1.42;
}

.runtime-pill {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.runtime-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.14);
}

.nav-groups {
  padding-right: 4px;
}

.mobile-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: #fff7ef;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.mobile-nav-toggle-label {
  color: rgba(255, 247, 239, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-group {
  margin-bottom: 12px;
}

.nav-group-title {
  margin: 0 0 10px;
  padding: 0 10px;
  color: rgba(255, 247, 239, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: inherit;
  background: transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-button:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
}

.nav-button.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.68rem;
}

.nav-label-wrap {
  min-width: 0;
  text-align: left;
}

.nav-label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
}

.nav-desc {
  display: block;
  color: rgba(255, 247, 239, 0.6);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-count {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 247, 239, 0.82);
  font-size: 0.7rem;
}

.nav-spoiler {
  margin: 8px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-spoiler summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  color: rgba(255, 247, 239, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  list-style: none;
}

.nav-spoiler summary::-webkit-details-marker {
  display: none;
}

.nav-spoiler summary::before {
  content: "+";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-spoiler[open] summary::before {
  content: "-";
}

.nav-spoiler summary b {
  color: rgba(255, 247, 239, 0.5);
  font-size: 0.68rem;
  font-weight: 650;
}

.nav-spoiler-body {
  padding: 0 6px 8px;
}

.nav-spoiler .nav-button {
  padding: 8px;
  border-radius: 13px;
}

.nav-spoiler .nav-label {
  font-size: 0.82rem;
}

.nav-spoiler .nav-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 9px;
  opacity: 0.8;
}

.main-panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
  gap: 18px;
}

.topbar,
.surface,
.hero-card,
.resource-list,
.detail-panel,
.dashboard-grid > *,
.dashboard-overview,
.dashboard-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar,
.surface,
.hero-card,
.resource-list,
.detail-panel,
.dashboard-grid > *,
.dashboard-overview,
.dashboard-card {
  border-radius: var(--radius-xl);
}

.topbar {
  position: relative;
  top: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  animation: rise 420ms ease both;
}

.topbar-title h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.topbar-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.endpoint-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.08);
  color: var(--accent-2);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fffaf3;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(71, 47, 28, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #cf7a45);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button-danger {
  background: rgba(164, 58, 47, 0.12);
  color: var(--danger);
}

.button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.marketing-site {
  --spot-x: 82%;
  --spot-y: 18%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 12% 8%, rgba(255, 246, 221, 0.95), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(217, 164, 65, 0.24), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(47, 93, 80, 0.2), transparent 26%),
    linear-gradient(145deg, #fff7ec 0%, #f2dfc3 52%, #dac09b 100%);
  border: 1px solid rgba(74, 53, 36, 0.12);
  box-shadow: var(--shadow);
  animation: rise 520ms ease both;
}

body.is-marketing-view .marketing-site {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 42px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.marketing-site::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(45, 33, 24, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 48%);
  background-size: 22px 22px, auto;
  opacity: 0.38;
  animation: marketing-drift 18s ease-in-out infinite alternate;
}

.marketing-site > * {
  position: relative;
  z-index: 1;
}

.marketing-hero,
.marketing-section,
.marketing-split,
.marketing-beanie {
  scroll-margin-top: clamp(18px, 3vw, 38px);
}

.marketing-nav,
.marketing-hero,
.marketing-split,
.marketing-beanie,
.marketing-cta {
  border-radius: 28px;
  border: 1px solid rgba(74, 53, 36, 0.1);
  background: rgba(255, 251, 244, 0.72);
  backdrop-filter: blur(18px);
}

.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.marketing-logo,
.marketing-nav-links,
.marketing-proof,
.marketing-actions,
.marketing-pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.marketing-logo {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.marketing-logo img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(45, 33, 24, 0.16);
}

.marketing-nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.marketing-nav-links a:hover {
  color: var(--accent);
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 28px;
  align-items: center;
  min-height: 560px;
  padding: clamp(28px, 5vw, 68px);
  overflow: hidden;
}

.marketing-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 8%;
  bottom: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 92, 43, 0.18), transparent 68%);
  animation: pulse-bean 4.8s ease-in-out infinite;
}

.marketing-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.marketing-hero h3,
.marketing-section-head h4,
.marketing-split h4,
.marketing-beanie h4,
.marketing-cta h4 {
  margin: 14px 0 12px;
  font-family: var(--heading-font);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.marketing-hero h3 {
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.4rem);
}

.marketing-hero-copy p,
.marketing-section-head p,
.marketing-split p,
.marketing-beanie p,
.marketing-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.marketing-hero-copy p {
  max-width: 680px;
}

.marketing-actions {
  margin-top: 24px;
}

.marketing-proof {
  margin-top: 28px;
}

.marketing-proof span {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(74, 53, 36, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.marketing-proof strong,
.marketing-proof small {
  display: block;
}

.marketing-proof strong {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.marketing-proof small {
  color: var(--muted);
  line-height: 1.25;
}

.marketing-hero-visual {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.bean-orbit {
  position: absolute;
  border-radius: 48% 52% 44% 56% / 58% 38% 62% 42%;
  background: linear-gradient(145deg, #2d2118, #5d3926);
  box-shadow: 0 28px 55px rgba(45, 33, 24, 0.22);
}

.bean-orbit::after {
  content: "";
  position: absolute;
  inset: 24% 34%;
  border-radius: 999px;
  border: 8px solid rgba(255, 247, 236, 0.76);
  transform: rotate(-24deg);
}

.bean-orbit-one {
  width: 160px;
  height: 230px;
  left: 4%;
  bottom: 8%;
  transform: rotate(-20deg);
  animation: bean-float-one 7s ease-in-out infinite;
}

.bean-orbit-two {
  width: 125px;
  height: 180px;
  right: 2%;
  top: 4%;
  transform: rotate(25deg);
  opacity: 0.92;
  animation: bean-float-two 8s ease-in-out infinite;
}

.phone-card {
  position: relative;
  z-index: 2;
  width: min(350px, 100%);
  padding: 20px;
  border-radius: 38px;
  background: linear-gradient(180deg, #fffaf0, #f6dfbd);
  border: 10px solid rgba(45, 33, 24, 0.94);
  box-shadow: 0 36px 80px rgba(45, 33, 24, 0.24);
  transform: rotate(2deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.phone-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 46px 90px rgba(45, 33, 24, 0.28);
}

.phone-top,
.brew-card,
.mini-feed span {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.phone-top small {
  color: var(--accent-2);
  font-weight: 900;
}

.brew-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.brew-mode-button {
  padding: 9px 10px;
  border: 1px solid rgba(74, 53, 36, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.brew-mode-button:hover {
  transform: translateY(-1px);
}

.brew-mode-button.is-active {
  background: #2d2118;
  color: #fff7ef;
}

.phone-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.18);
}

.cup-illustration {
  min-height: 190px;
  display: grid;
  place-items: center;
}

.cup-illustration span {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #2d2118 0 34%, transparent 35%),
    conic-gradient(from 20deg, #b85c2b, #d9a441, #2f5d50, #b85c2b);
  box-shadow: inset 0 0 0 18px rgba(255, 247, 236, 0.82), 0 24px 40px rgba(45, 33, 24, 0.18);
}

.brew-card {
  padding: 16px;
}

.brew-card strong,
.brew-card span,
.mini-feed span {
  display: block;
}

.brew-card span,
.brew-card small,
.mini-feed span {
  color: var(--muted);
  line-height: 1.35;
}

.brew-card small {
  display: block;
  margin-top: 8px;
}

.mini-feed {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-feed span {
  padding: 12px;
}

.marketing-marquee {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 2px 0;
}

.marketing-marquee span,
.marketing-pill-row span {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 33, 24, 0.9);
  color: #fff7ef;
  font-weight: 800;
}

.marketing-section {
  padding: clamp(24px, 4vw, 46px) 0 0;
}

.marketing-section-head {
  max-width: 880px;
  margin: 0 auto 20px;
  text-align: center;
}

.marketing-section-head h4,
.marketing-split h4,
.marketing-beanie h4,
.marketing-cta h4 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.marketing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.marketing-feature-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(74, 53, 36, 0.1);
  background: rgba(255, 251, 244, 0.74);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.marketing-feature-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(71, 47, 28, 0.12);
}

.marketing-feature-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(184, 92, 43, 0.12);
  color: var(--accent);
  font-weight: 900;
}

.marketing-feature-card h5 {
  margin: 34px 0 10px;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.marketing-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.marketing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.marketing-demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(74, 53, 36, 0.1);
  background: rgba(45, 33, 24, 0.9);
  color: #fff7ef;
}

.marketing-demo-panel p {
  margin: 0;
  color: rgba(255, 247, 239, 0.68);
  line-height: 1.55;
}

.marketing-demo-panel h4 {
  margin: 12px 0 10px;
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.feature-radar {
  position: relative;
  min-height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 247, 239, 0.16) 0 11%, transparent 12%),
    repeating-radial-gradient(circle at center, rgba(255, 247, 239, 0.1) 0 2px, transparent 2px 62px);
  border: 1px solid rgba(255, 247, 239, 0.14);
}

.feature-radar::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(217, 164, 65, 0.42);
  animation: radar-spin 18s linear infinite;
}

.feature-radar strong,
.feature-radar span {
  position: absolute;
  transform: translate(-50%, -50%);
}

.feature-radar strong {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 30px;
  background: #fff7ef;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.feature-radar span {
  left: var(--x);
  top: var(--y);
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.1);
  color: #fff7ef;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.espresso-timeline {
  display: grid;
  gap: 12px;
}

.espresso-timeline span {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.1);
  color: rgba(255, 247, 239, 0.76);
}

.espresso-timeline b {
  display: block;
  color: #fff7ef;
  font-size: 1.05rem;
}

.marketing-pill-row {
  margin-top: 20px;
}

.marketing-pill-row span {
  background: rgba(47, 93, 80, 0.12);
  color: var(--accent-2);
}

.community-stack {
  display: grid;
  gap: 12px;
}

.community-stack article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(74, 53, 36, 0.08);
}

.community-stack strong,
.community-stack span {
  display: block;
}

.community-stack span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.marketing-beanie {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.beanie-badge {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #2d2118;
  color: #fff7ef;
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.1em;
  box-shadow: 0 24px 48px rgba(45, 33, 24, 0.22);
}

.marketing-cta {
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.marketing-cta h4,
.marketing-cta p,
.marketing-cta .marketing-actions {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-cta .marketing-actions {
  justify-content: center;
}

.marketing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(230px, 0.6fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(74, 53, 36, 0.12);
  background: rgba(45, 33, 24, 0.92);
  color: #fff7ef;
}

.marketing-footer p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 247, 239, 0.68);
  line-height: 1.5;
}

.marketing-footer .marketing-logo img {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.marketing-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.marketing-footer-links a {
  color: rgba(255, 247, 239, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.marketing-footer-links a:hover {
  color: #fff7ef;
}

.marketing-login-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #fff7ef;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.marketing-login-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.marketing-login-link span,
.marketing-login-link strong {
  display: block;
}

.marketing-login-link span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marketing-login-link strong {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.login-gateway,
.legal-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 247, 239, 0.84), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(47, 93, 80, 0.22), transparent 26%),
    linear-gradient(135deg, #f7dfba, #d9b47d);
}

.login-shell {
  min-height: calc(100vh - clamp(36px, 8vw, 96px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.login-logo {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.login-card,
.legal-card {
  align-self: center;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 34px;
  border: 1px solid rgba(74, 53, 36, 0.12);
  background: rgba(255, 251, 244, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 80px rgba(71, 47, 28, 0.16);
}

.login-card h3,
.legal-card h3 {
  margin: 14px 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.login-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.login-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.login-status-grid span {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.login-status-grid strong {
  display: block;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.login-footer,
.legal-list {
  display: grid;
  gap: 12px;
}

.login-footer {
  grid-template-columns: repeat(4, auto);
  justify-content: center;
}

.login-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.legal-page .marketing-nav {
  margin-bottom: clamp(24px, 4vw, 46px);
}

.legal-list {
  margin-top: 24px;
}

.legal-list section {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.legal-list strong,
.legal-list span {
  display: block;
}

.legal-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.legal-note {
  margin-top: 22px !important;
  font-size: 0.92rem !important;
}

.hero-card {
  padding: 26px;
  overflow: hidden;
  position: relative;
  animation: rise 520ms ease both;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.22), transparent 70%);
}

.hero-card h3 {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-card p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stats-grid,
.dashboard-grid,
.resource-layout,
.form-grid,
.detail-meta,
.mini-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(74, 53, 36, 0.08);
  animation: rise 560ms ease both;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
}

.stat-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-grid {
  grid-template-columns: 1.5fr 1fr;
}

.dashboard-overview {
  display: grid;
  gap: 22px;
  padding: 26px;
  overflow: hidden;
  position: relative;
  animation: rise 520ms ease both;
}

.dashboard-overview::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 93, 80, 0.16), transparent 70%);
}

.dashboard-hero,
.dashboard-card-header,
.area-panel-top,
.activity-panel-head,
.integration-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-hero,
.overview-metrics {
  position: relative;
  z-index: 1;
}

.dashboard-hero h3 {
  margin: 12px 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.dashboard-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}

.status-stack {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 53, 36, 0.08);
  background: rgba(255, 255, 255, 0.64);
  font-weight: 700;
  font-size: 0.86rem;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status-chip.is-good {
  color: var(--accent-2);
}

.status-chip.is-warning {
  color: #8b691e;
}

.status-chip.is-danger {
  color: var(--danger);
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.overview-metric {
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(74, 53, 36, 0.09);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(250, 244, 235, 0.82));
}

.overview-metric span,
.overview-metric small {
  display: block;
  color: var(--muted);
}

.overview-metric strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--heading-font);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.overview-metric small {
  line-height: 1.35;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-card {
  padding: 22px;
  animation: rise 620ms ease both;
}

.dashboard-card h4,
.resource-list-header h4,
.detail-panel h4 {
  margin: 0 0 6px;
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.dashboard-card p,
.resource-list-header p,
.detail-panel p,
.empty-state p {
  color: var(--muted);
}

.dashboard-card-header {
  margin-bottom: 16px;
}

.dashboard-card h5,
.area-panel h5,
.activity-panel h5 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-card p {
  margin: 0;
  line-height: 1.45;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.area-panel,
.activity-panel {
  border: 1px solid rgba(74, 53, 36, 0.08);
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.7);
}

.area-panel {
  padding: 16px;
}

.area-panel .nav-icon {
  flex: 0 0 auto;
  background: rgba(184, 92, 43, 0.12);
  color: var(--accent);
}

.area-panel-top {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.area-panel-top p {
  margin-top: 4px;
  font-size: 0.86rem;
}

.area-table-list {
  display: grid;
  gap: 8px;
}

.area-table-list.is-compact {
  margin-top: 8px;
}

.area-spoiler {
  border: 1px dashed rgba(74, 53, 36, 0.16);
  border-radius: 14px;
  background: rgba(74, 53, 36, 0.035);
}

.area-spoiler summary {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.82rem;
  list-style: none;
}

.area-spoiler summary::-webkit-details-marker {
  display: none;
}

.area-spoiler summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--accent-2);
}

.area-spoiler[open] summary::before {
  content: "-";
}

.area-spoiler .area-table-list {
  padding: 0 8px 8px;
}

.area-spoiler .area-table-button {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.52);
}

.area-table-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(74, 53, 36, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.area-table-button:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 92, 43, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.area-table-button strong,
.area-table-button small {
  display: block;
}

.area-table-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.area-table-button b {
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--accent-2);
  text-align: center;
  font-size: 0.82rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.activity-panel {
  padding: 14px;
}

.activity-panel-head {
  align-items: center;
  margin-bottom: 10px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.recent-list.is-compact {
  gap: 8px;
}

.recent-list.is-compact .recent-row {
  padding: 12px;
  border-radius: 14px;
}

.recent-list.is-compact .empty-state {
  padding: 16px;
  border-radius: 14px;
}

.integration-list,
.quick-action-stack,
.attention-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.integration-row {
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 53, 36, 0.08);
}

.integration-row:last-child {
  border-bottom: 0;
}

.integration-row span {
  color: var(--muted);
}

.integration-row strong {
  text-align: right;
}

.integration-row strong.is-good {
  color: var(--accent-2);
}

.integration-row strong.is-warning {
  color: var(--danger);
}

.quick-action-stack .button {
  width: 100%;
}

.attention-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(217, 164, 65, 0.12);
  color: #6f4f12;
  line-height: 1.35;
}

.csv-export-grid.is-compact {
  grid-template-columns: 1fr;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.csv-export-grid.is-compact .csv-export-button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.86rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.csv-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.csv-export-button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.quick-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(74, 53, 36, 0.08);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(250, 244, 235, 0.84));
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.quick-count {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(184, 92, 43, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.recent-list,
.resource-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-row,
.resource-card,
.detail-readonly-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(74, 53, 36, 0.08);
  background: rgba(255, 251, 246, 0.88);
}

.recent-row strong,
.resource-card strong {
  display: block;
  margin-bottom: 4px;
}

.recent-row span,
.resource-card span,
.subtext {
  color: var(--muted);
  font-size: 0.92rem;
}

.resource-layout {
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.15fr);
  align-items: start;
}

.resource-list,
.detail-panel {
  padding: 22px;
  animation: rise 640ms ease both;
}

.roaster-bulk-panel {
  padding: 22px;
}

.roaster-bulk-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
}

.resource-list-header,
.detail-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.field,
.textarea,
.select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 53, 36, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.field:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(184, 92, 43, 0.46);
  box-shadow: 0 0 0 4px rgba(184, 92, 43, 0.12);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-block.is-wide {
  grid-column: 1 / -1;
}

.meta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 16px;
}

.meta-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 93, 80, 0.08);
  color: var(--accent-2);
  font-size: 0.9rem;
}

.resource-card {
  position: relative;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(71, 47, 28, 0.08);
}

.resource-card.is-active {
  border-color: rgba(184, 92, 43, 0.4);
  box-shadow: 0 12px 28px rgba(184, 92, 43, 0.12);
}

.card-topline,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-topline {
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.15);
  color: #7d5a17;
  font-size: 0.82rem;
}

.tag.is-soft {
  background: rgba(47, 93, 80, 0.1);
  color: var(--accent-2);
}

.tag.is-danger {
  background: rgba(164, 58, 47, 0.12);
  color: var(--danger);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.detail-actions.is-inline {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  margin-left: auto;
}

.catalog-merge-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(164, 58, 47, 0.18);
  border-radius: var(--radius-md);
  background: rgba(164, 58, 47, 0.055);
}

.catalog-merge-panel h5 {
  margin: 0 0 5px;
  color: var(--danger);
  font-size: 1rem;
}

.catalog-merge-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.catalog-merge-panel .button {
  justify-self: start;
}

.button-small {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.detail-readonly {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-readonly-item strong {
  display: block;
  margin-bottom: 6px;
}

.json-block {
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(30, 21, 16, 0.94);
  color: #fbf2e8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.image-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-preview-frame {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(74, 53, 36, 0.12);
  background: rgba(255, 252, 248, 0.92);
  overflow: hidden;
}

.image-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.image-preview-placeholder {
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.image-preview-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.image-textarea {
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(74, 53, 36, 0.18);
  background: rgba(255, 253, 250, 0.82);
}

.empty-state h4 {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(38, 27, 19, 0.94);
  color: #fff8f0;
  box-shadow: 0 16px 34px rgba(38, 27, 19, 0.26);
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  background: rgba(129, 39, 30, 0.96);
}

.toast-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes marketing-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 36px 22px, 0 0;
  }
}

@keyframes bean-float-one {
  0%,
  100% {
    transform: rotate(-20deg) translateY(0);
  }
  50% {
    transform: rotate(-13deg) translateY(-14px);
  }
}

@keyframes bean-float-two {
  0%,
  100% {
    transform: rotate(25deg) translateY(0);
  }
  50% {
    transform: rotate(31deg) translateY(12px);
  }
}

@keyframes pulse-bean {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1200px) {
  .dashboard-grid,
  .dashboard-layout,
  .resource-layout,
  .marketing-hero,
  .marketing-split,
  .marketing-demo-panel,
  .marketing-beanie {
    grid-template-columns: 1fr;
  }

  .dashboard-side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-beanie {
    text-align: left;
  }

  .marketing-footer {
    grid-template-columns: 1fr;
  }

  .marketing-footer-links {
    justify-content: flex-start;
  }

  .login-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 44vh;
  }

  .auth-story-copy {
    padding: 72px 0 44px;
  }

  .auth-story h1 {
    max-width: 760px;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .main-panel,
  .view {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    gap: 10px;
    padding: 12px;
  }

  .brand-card {
    padding: 14px 16px;
  }

  .brand-card h1 {
    margin: 8px 0 4px;
    font-size: 1.45rem;
  }

  .brand-card p {
    display: none;
  }

  .runtime-pill {
    margin-top: 8px;
    padding: 6px 9px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-groups {
    display: none;
    max-height: min(62vh, 560px);
    padding: 6px 4px 8px 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  body.mobile-nav-open .nav-groups {
    display: block;
  }

  .topbar {
    top: 0;
  }

  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .auth-story,
  .auth-panel {
    padding: 24px;
  }

  .auth-story {
    min-height: 430px;
  }

  .auth-story-copy {
    padding: 56px 0 34px;
  }

  .auth-story h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .auth-panel {
    min-height: 570px;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .main-panel {
    padding: 18px;
  }

  .topbar,
  .hero-card,
  .dashboard-overview,
  .marketing-site,
  .resource-list,
  .detail-panel,
  .dashboard-card {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .dashboard-hero,
  .resource-list-header,
  .detail-panel-header,
  .dashboard-card-header {
    flex-direction: column;
  }

  .status-stack {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .activity-grid,
  .dashboard-side-column,
  .marketing-feature-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero,
  .marketing-split,
  .marketing-demo-panel,
  .marketing-beanie,
  .marketing-cta {
    padding: 22px;
  }

  .marketing-hero {
    min-height: auto;
  }

  .marketing-hero-visual {
    min-height: 360px;
  }

  .marketing-hero h3 {
    font-size: clamp(2.8rem, 18vw, 4.6rem);
  }

  .marketing-beanie {
    text-align: left;
  }

  .login-card,
  .legal-card {
    padding: 24px;
  }

  .login-footer {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
}

/* --------------------------------------------------------------------------
   Interface fidelity layer
   Mirrors the approved light Bean News editor concept while preserving the
   shared components used by the dashboard and all dynamically discovered
   Supabase resources.
   -------------------------------------------------------------------------- */

:root {
  --bg: #f8f7f3;
  --bg-2: #f4f3ee;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e5e3dc;
  --text: #191a18;
  --muted: #6f706b;
  --accent: #2f654f;
  --accent-2: #2f654f;
  --accent-3: #c88745;
  --shadow: 0 12px 36px rgba(30, 34, 29, 0.06);
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --sidebar-width: 250px;
}

body:not(.auth-page):not(.is-public-view) {
  color: var(--text);
  background: var(--bg);
}

body:not(.auth-page):not(.is-public-view)::before {
  display: none;
}

.app-shell {
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 100vh;
  min-height: 0;
  gap: 0;
  padding: 0 14px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  color: var(--text);
  background: #fbfaf7;
}

.brand-card {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -14px 18px;
  padding: 20px 18px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(251, 250, 247, 0.96);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-card h1 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.brand-card p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.runtime-pill {
  width: 100%;
  margin-top: 14px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #dfe7e1;
  border-radius: 9px;
  color: #4d6156;
  background: #f2f6f2;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-pill::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #4c8b68;
  box-shadow: none;
}

.nav-groups {
  padding: 0;
}

.nav-group {
  margin-bottom: 16px;
}

.nav-group-title {
  margin: 0 0 7px;
  padding: 0 10px;
  color: #778078;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.nav-button {
  margin-bottom: 3px;
  padding: 8px 9px;
  border-radius: 9px;
  color: #62645f;
}

.nav-button:hover {
  transform: none;
  color: var(--text);
  background: #f1f2ed;
}

.nav-button.is-active {
  border-color: transparent;
  color: #264f3f;
  background: #e4ebe5;
}

.nav-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border: 1px solid #e4e3dd;
  border-radius: 7px;
  color: #545953;
  background: #ffffff;
  font-size: 0.62rem;
}

.nav-button.is-active .nav-icon {
  border-color: #c8d8cc;
  color: #2f654f;
  background: #f8fbf8;
}

.nav-label {
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-desc {
  margin-top: 2px;
  color: #92948f;
  font-size: 0.61rem;
}

.nav-count {
  min-width: 26px;
  padding: 3px 6px;
  color: #747670;
  background: #efefeb;
  font-size: 0.62rem;
}

.nav-spoiler {
  margin: 6px 0 10px;
  border-color: #e7e6e0;
  border-radius: 9px;
  background: #f6f5f1;
}

.nav-spoiler summary {
  padding: 8px 9px;
  color: #6d706b;
  font-size: 0.7rem;
}

.nav-spoiler summary::before {
  color: #66746a;
  background: #e8ece7;
}

.nav-spoiler summary b {
  color: #92948f;
}

.main-panel {
  min-width: 0;
  gap: 0;
  padding: 0;
  background: #ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  min-height: 86px;
  padding: 18px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px);
  animation: none;
}

.topbar-title h2 {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.topbar-title p {
  display: none;
}

.topbar-actions {
  gap: 10px;
}

.endpoint-chip {
  padding: 9px 12px;
  border: 1px solid #e4e6e0;
  border-radius: 8px;
  color: #59615b;
  background: #f8f8f5;
  font-size: 0.76rem;
}

.button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 650;
}

.button:hover {
  box-shadow: 0 7px 18px rgba(30, 34, 29, 0.09);
}

.button-primary {
  background: #356b54;
}

.button-secondary {
  border-color: #dedfd9;
  background: #ffffff;
}

.view {
  gap: 0;
}

.view > .hero-card {
  display: none;
}

.resource-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 86px);
  align-items: stretch;
}

.resource-list,
.detail-panel {
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.resource-list {
  border-right: 1px solid var(--line);
}

.detail-panel {
  min-width: 0;
  padding: 28px 30px 40px;
}

.resource-list-header,
.detail-panel-header {
  margin-bottom: 18px;
}

.resource-list-header {
  align-items: flex-start;
}

.resource-list-header h4,
.detail-panel h4 {
  font-size: 1.06rem;
  font-weight: 750;
}

.resource-list-header p,
.detail-panel p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.resource-list-header .detail-actions {
  gap: 6px;
}

.resource-list-header .button {
  padding: 7px 9px;
  font-size: 0.7rem;
}

.resource-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.field,
.textarea,
.select {
  padding: 11px 12px;
  border-color: #dcded8;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.82rem;
}

.field:focus,
.textarea:focus,
.select:focus {
  border-color: #5f8a73;
  box-shadow: 0 0 0 3px rgba(65, 112, 87, 0.1);
}

.field-label {
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 700;
}

.field-help {
  font-size: 0.72rem;
}

.textarea {
  min-height: 150px;
  line-height: 1.55;
}

.resource-cards {
  gap: 0;
  border-top: 1px solid var(--line);
}

.resource-card {
  padding: 15px 8px 15px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.resource-card:hover {
  transform: none;
  background: #fafaf7;
  box-shadow: none;
}

.resource-card.is-active {
  border-color: var(--line);
  background: linear-gradient(90deg, #edf3ee, #f8faf7);
  box-shadow: inset 3px 0 0 #4a7c61;
}

.resource-card strong {
  margin-bottom: 5px;
  font-size: 0.83rem;
  line-height: 1.35;
}

.resource-card span,
.resource-card .subtext {
  font-size: 0.69rem;
}

.resource-card .tag {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 0.63rem;
}

.card-topline {
  margin-bottom: 7px;
}

.card-meta {
  gap: 5px;
}

.form-grid {
  gap: 15px 16px;
}

.image-preview-frame {
  min-height: 180px;
  border-color: #dcded8;
  border-radius: 10px;
  background: #f8f8f5;
}

.image-preview {
  max-height: 300px;
  object-fit: cover;
}

.image-textarea {
  display: none;
}

.image-drop-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dcded8;
  border-style: dashed;
  border-radius: 8px;
  color: #365344;
  background: #f8faf8;
}

.image-drop-zone strong,
.image-drop-zone span {
  display: block;
}

.image-drop-zone strong {
  margin-bottom: 3px;
  font-size: 0.78rem;
}

.image-drop-zone span {
  color: #777c77;
  font-size: 0.7rem;
}

.image-file-button {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.image-file-button span {
  color: inherit;
  font-size: inherit;
}

.image-file-button input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.image-file-button:focus-within {
  outline: 3px solid rgba(61, 117, 82, 0.25);
  outline-offset: 2px;
}

.image-file-button:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.image-secondary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.image-url-input {
  min-width: 0;
}

.meta-pill,
.detail-readonly-item {
  border-radius: 8px;
}

.detail-actions {
  gap: 9px;
}

.toast {
  border: 1px solid #cdd8d0;
  border-radius: 10px;
  color: #203c2e;
  background: #edf4ee;
  box-shadow: 0 12px 30px rgba(30, 34, 29, 0.12);
}

.connection-chip {
  color: #426b55;
  background: #f2f7f3;
}

body[data-view="blog_posts"] .detail-panel .form-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}

body[data-view="blog_posts"] .detail-panel [data-field="author_id"] {
  grid-column: 1 / 4;
  grid-row: 1;
}

body[data-view="blog_posts"] .detail-panel [data-field="title"] {
  grid-column: 4 / 7;
  grid-row: 1;
}

body[data-view="blog_posts"] .detail-panel [data-field="subtitle"] {
  grid-column: 1 / 7;
  grid-row: 2;
}

body[data-view="blog_posts"] .detail-panel [data-field="language_code"] {
  grid-column: 1 / 3;
  grid-row: 3;
}

body[data-view="blog_posts"] .detail-panel [data-field="cover_image_path"] {
  grid-column: 3 / 7;
  grid-row: 3 / 6;
}

body[data-view="blog_posts"] .detail-panel [data-field="visibility"] {
  grid-column: 1 / 3;
  grid-row: 4;
}

body[data-view="blog_posts"] .detail-panel [data-field="moderation_status"] {
  grid-column: 1 / 3;
  grid-row: 5;
}

body[data-view="blog_posts"] .detail-panel [data-field="body"] {
  grid-column: 1 / 7;
  grid-row: 6;
}

body[data-view="blog_posts"] .detail-panel [data-field="upvotes_count"] {
  grid-column: 1 / 3;
  grid-row: 7;
}

body[data-view="blog_posts"] .image-preview-frame {
  min-height: 220px;
}

body[data-view="blog_posts"] .image-preview {
  height: 240px;
  max-height: 240px;
}

body[data-view="blog_posts"] [data-field="cover_image_path"] .field-help {
  display: none;
}

@media (max-width: 1200px) {
  .resource-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .topbar-actions .endpoint-chip:first-child {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 14px 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-card {
    position: relative;
    margin-bottom: 10px;
  }

  .mobile-nav-toggle {
    display: flex;
    padding: 10px 12px;
    border-color: #dfe0da;
    border-radius: 8px;
    color: var(--text);
    background: #ffffff;
  }

  .mobile-nav-toggle-label {
    color: var(--muted);
  }

  .nav-groups {
    display: none;
  }

  body.mobile-nav-open .nav-groups {
    display: block;
  }

  .main-panel {
    width: 100%;
  }

  .topbar {
    position: relative;
  }

  .resource-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-view="blog_posts"] .detail-panel .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="blog_posts"] .detail-panel .field-block {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-view="blog_posts"] .detail-panel .field-block.is-wide,
  body[data-view="blog_posts"] .detail-panel [data-field="cover_image_path"],
  body[data-view="blog_posts"] .detail-panel [data-field="body"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    min-height: 0;
    padding: 16px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .topbar-actions .endpoint-chip {
    display: none;
  }

  .resource-list,
  .detail-panel {
    padding: 18px 16px 24px;
  }

  .resource-list-header,
  .detail-panel-header {
    flex-direction: row;
  }

  .resource-toolbar,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="blog_posts"] .detail-panel .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="blog_posts"] .detail-panel .field-block {
    grid-column: 1;
  }

  .resource-toolbar .button {
    width: 100%;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-actions .button {
    width: 100%;
  }

  .image-drop-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .image-drop-zone .button {
    width: 100%;
  }
}

/* Community Audit -------------------------------------------------------- */

body[data-view="community_audit"] .view {
  min-height: calc(100vh - 86px);
  background: #f5f6f2;
}

.community-audit {
  min-width: 0;
  padding: 24px;
}

.community-audit-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid #d6e1d8;
  border-radius: 14px;
  color: #f8fff9;
  background:
    radial-gradient(circle at 82% 16%, rgba(224, 177, 75, 0.24), transparent 32%),
    linear-gradient(135deg, #264e3e, #386a54);
  box-shadow: 0 18px 40px rgba(33, 67, 52, 0.12);
}

.audit-kicker {
  display: block;
  margin-bottom: 8px;
  color: #e8c978;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.community-audit-hero h3 {
  max-width: 680px;
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.community-audit-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(248, 255, 249, 0.74);
  font-size: 0.88rem;
  line-height: 1.55;
}

.community-audit-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-audit-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fff9;
  background: rgba(255, 255, 255, 0.1);
}

.community-audit-hero .button-primary {
  color: #284534;
  background: #f3d98a;
}

.community-audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.community-audit-metric {
  position: relative;
  min-width: 0;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid #e0e3dc;
  border-radius: 11px;
  background: #ffffff;
}

.community-audit-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: #9ba59e;
}

.community-audit-metric.is-good::before {
  background: #4b8064;
}

.community-audit-metric.is-warning::before {
  background: #c5902e;
}

.community-audit-metric.is-danger::before {
  background: #bd594f;
}

.community-audit-metric span,
.community-audit-metric small {
  display: block;
  color: #707670;
}

.community-audit-metric span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.community-audit-metric strong {
  display: block;
  margin: 5px 0 2px;
  color: #252d27;
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 780;
  line-height: 1;
}

.community-audit-metric small {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-audit-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #e0e3dc;
  border-radius: 11px;
  background: #ffffff;
}

.audit-search {
  min-width: 0;
}

.audit-search .field {
  min-height: 40px;
  padding-left: 14px;
  background: #f9faf7;
}

.audit-segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e2e4de;
  border-radius: 9px;
  background: #f4f5f1;
}

.audit-segmented button {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #6a706b;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.audit-segmented button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #98443d;
  background: #fae5e2;
}

.audit-segmented button.is-active {
  color: #2f5f4a;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(32, 43, 35, 0.1);
}

.audit-load-state {
  color: #7b817b;
  font-size: 0.68rem;
  white-space: nowrap;
}

.audit-notice {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #ead5d2;
  border-radius: 10px;
  color: #8d3f39;
  background: #fff3f1;
  font-size: 0.76rem;
}

.community-audit-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(280px, 0.85fr) minmax(420px, 1.6fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid #dfe2dc;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(37, 48, 40, 0.06);
}

.audit-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #e4e6e0;
  background: #ffffff;
}

.audit-topics {
  background: #fafbf8;
}

.audit-column-header,
.audit-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 15px 16px;
  border-bottom: 1px solid #e5e7e1;
}

.audit-column-header > div,
.audit-comments-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.audit-column-header span,
.audit-comments-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: #35664f;
  background: #e7efe9;
  font-size: 0.62rem;
  font-weight: 800;
}

.audit-column-header h4,
.audit-comments-header h4 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.audit-column-header b,
.audit-comments-header b {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #69706a;
  background: #eff1ec;
  font-size: 0.67rem;
  text-align: center;
}

.audit-context-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #e6e8e2;
  color: #6c736d;
  background: #f3f6f2;
  font-size: 0.67rem;
}

.audit-context-line strong {
  overflow: hidden;
  color: #365443;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-column-scroll {
  min-height: 0;
  max-height: calc(100vh - 370px);
  overflow: auto;
  overscroll-behavior: contain;
}

.audit-nav-card {
  display: block;
  width: 100%;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid #e7e9e3;
  color: #293129;
  background: transparent;
  text-align: left;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.audit-nav-card:hover {
  background: #f5f8f4;
}

.audit-nav-card.is-active {
  background: #edf4ee;
  box-shadow: inset 3px 0 0 #477b5f;
}

.audit-nav-card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(60, 116, 83, 0.22);
  outline-offset: -3px;
}

.audit-nav-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.audit-nav-card-top strong {
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.audit-card-copy {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #727872;
  font-size: 0.68rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.audit-card-meta,
.audit-topic-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 9px;
}

.audit-card-meta span {
  color: #858a85;
  font-size: 0.61rem;
}

.audit-alert-line {
  display: block;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #9b433c;
  background: #fbebe8;
  font-size: 0.65rem;
  font-weight: 750;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #e0e3dd;
  border-radius: 999px;
  color: #697069;
  background: #f5f6f3;
  font-size: 0.59rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.audit-badge.is-good {
  border-color: #cfe0d4;
  color: #32674c;
  background: #edf6ef;
}

.audit-badge.is-warning {
  border-color: #ead9af;
  color: #8a651a;
  background: #fff7df;
}

.audit-badge.is-danger {
  border-color: #eccac5;
  color: #9f4038;
  background: #fcede9;
}

.audit-thread {
  min-width: 0;
  max-height: calc(100vh - 322px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

.audit-thread-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
  border-bottom: 1px solid #e4e7e0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.audit-thread-breadcrumb span,
.audit-thread-breadcrumb strong {
  display: block;
}

.audit-thread-breadcrumb span {
  margin-bottom: 3px;
  color: #758078;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.audit-thread-breadcrumb strong {
  font-size: 0.76rem;
}

.audit-thread-actions {
  display: flex;
  gap: 6px;
}

.audit-thread-actions .button {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 0.68rem;
}

.audit-topic-detail {
  padding: 26px 26px 22px;
  border-bottom: 8px solid #f3f5f1;
}

.audit-detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-topic-detail h3 {
  max-width: 780px;
  margin: 14px 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.audit-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-bottom: 20px;
  color: #787e79;
  font-size: 0.68rem;
}

.audit-byline strong {
  color: #3d5145;
}

.audit-body {
  color: #323a34;
  font-size: 0.86rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.audit-body.is-comment {
  margin-top: 13px;
  font-size: 0.8rem;
  line-height: 1.58;
}

.audit-comments-header {
  min-height: 58px;
  padding-inline: 22px;
}

.audit-comment-list {
  padding: 0 22px 28px;
}

.audit-comment {
  padding: 18px 0;
  border-bottom: 1px solid #e7e9e3;
}

.audit-comment.is-reply {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid #d7e2d9;
}

.audit-comment-head,
.audit-comment-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.audit-comment-head > div:first-child strong,
.audit-comment-head > div:first-child span {
  display: block;
}

.audit-comment-head > div:first-child strong {
  margin-bottom: 3px;
  font-size: 0.74rem;
}

.audit-comment-head > div:first-child span,
.audit-comment-footer {
  color: #858a85;
  font-size: 0.63rem;
}

.audit-comment-footer {
  align-items: center;
  margin-top: 12px;
}

.audit-comment-footer .text-button,
.audit-report .text-button {
  flex: 0 0 auto;
  font-size: 0.66rem;
}

.audit-report-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.audit-report {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid #e5e6e1;
  border-radius: 9px;
  background: #f7f8f5;
}

.audit-report.is-open {
  border-color: #eccbc7;
  background: #fff4f2;
}

.audit-report strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 0.73rem;
}

.audit-report p {
  margin: 0 0 5px;
  color: #666d67;
  font-size: 0.68rem;
  line-height: 1.45;
}

.audit-report small {
  color: #888d88;
  font-size: 0.6rem;
}

.audit-empty,
.audit-thread-empty {
  display: grid;
  gap: 6px;
  place-content: center;
  min-height: 180px;
  padding: 24px;
  color: #7a817b;
  text-align: center;
}

.audit-empty strong {
  color: #424a44;
  font-size: 0.78rem;
}

.audit-empty span,
.audit-thread-empty p {
  margin: 0;
  font-size: 0.69rem;
  line-height: 1.5;
}

.audit-thread-empty {
  min-height: 560px;
}

.audit-thread-empty > span {
  color: #44725a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-thread-empty h3 {
  margin: 8px 0 0;
  color: #29312b;
  font-family: var(--heading-font);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.audit-thread-empty p {
  max-width: 430px;
}

@media (max-width: 1380px) {
  .community-audit-workspace {
    grid-template-columns: minmax(220px, 0.7fr) minmax(270px, 0.85fr);
  }

  .audit-thread {
    grid-column: 1 / -1;
    max-height: none;
    border-top: 1px solid #e4e6e0;
  }

  .audit-column-scroll {
    max-height: 420px;
  }
}

@media (max-width: 1080px) {
  .community-audit-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-audit-actions {
    justify-content: flex-start;
  }

  .community-audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-audit-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .audit-load-state {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .community-audit {
    padding: 14px;
  }

  .community-audit-hero {
    padding: 21px 18px;
  }

  .community-audit-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .community-audit-metrics,
  .community-audit-toolbar,
  .community-audit-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-audit-toolbar {
    align-items: stretch;
  }

  .audit-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .audit-column {
    border-right: 0;
    border-bottom: 1px solid #e4e6e0;
  }

  .audit-column-scroll {
    max-height: 360px;
  }

  .audit-thread {
    grid-column: 1;
  }

  .audit-thread-header,
  .audit-comment-head,
  .audit-comment-footer,
  .audit-report {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-thread-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audit-topic-detail {
    padding: 22px 18px;
  }

  .audit-comment-list {
    padding-inline: 18px;
  }
}

.duplicate-merge-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 24%, rgba(217, 164, 65, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(231, 239, 228, 0.96));
}

.duplicate-merge-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.duplicate-merge-principles span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 93, 80, 0.14);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 750;
}

.duplicate-merge-principles b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: var(--accent-2);
  font-size: 0.68rem;
}

.duplicate-merge-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 18px;
}

.duplicate-merge-builder,
.duplicate-impact-panel,
.duplicate-suggestions {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.duplicate-merge-builder,
.duplicate-impact-panel {
  padding: clamp(22px, 3vw, 34px);
}

.duplicate-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.duplicate-section-header h4,
.duplicate-impact-panel h4 {
  margin: 5px 0 6px;
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.duplicate-section-header p,
.duplicate-impact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.duplicate-kind-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0;
  padding: 4px;
  border: 1px solid rgba(47, 93, 80, 0.12);
  border-radius: 14px;
  background: rgba(47, 93, 80, 0.06);
}

.duplicate-kind-switch button {
  appearance: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.duplicate-kind-switch button.is-active {
  color: #fffdf8;
  background: var(--accent-2);
  box-shadow: 0 8px 22px rgba(47, 93, 80, 0.18);
}

.duplicate-load-state {
  margin: -8px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(47, 93, 80, 0.08);
  font-size: 0.74rem;
  font-weight: 750;
}

.duplicate-load-state.is-error {
  color: var(--danger);
  background: rgba(164, 58, 47, 0.08);
}

.duplicate-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.duplicate-select-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  gap: 10px;
  padding: 19px;
  border: 1px solid rgba(74, 53, 36, 0.12);
  border-radius: 18px;
  background: #fffdf9;
}

.duplicate-select-card.is-source {
  box-shadow: inset 4px 0 0 rgba(164, 58, 47, 0.62);
}

.duplicate-select-card.is-target {
  box-shadow: inset 4px 0 0 rgba(47, 93, 80, 0.72);
}

.duplicate-card-kicker {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.duplicate-select-card > strong {
  font-family: var(--heading-font);
  font-size: 1.1rem;
}

.duplicate-select-card .select {
  width: 100%;
}

.duplicate-select-card small {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.duplicate-transfer-mark {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 54px;
  color: var(--accent-2);
}

.duplicate-transfer-mark span {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.duplicate-transfer-mark b {
  font-size: 1.65rem;
}

.duplicate-swap-button {
  display: block;
  margin: 14px auto 0;
  padding: 7px 12px;
  border: 0;
  color: var(--accent-2);
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.duplicate-swap-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.duplicate-impact-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.14), transparent 30%),
    #fffaf2;
}

.duplicate-impact-route {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(47, 93, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.duplicate-impact-route span {
  color: var(--danger);
  text-decoration: line-through;
}

.duplicate-impact-route b {
  color: var(--accent-3);
}

.duplicate-impact-route strong {
  color: var(--accent-2);
}

.duplicate-impact-list {
  display: grid;
  margin-bottom: 13px;
  border-top: 1px solid var(--line);
}

.duplicate-impact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.duplicate-impact-list strong {
  color: var(--text);
  font-size: 0.85rem;
}

.duplicate-impact-note,
.duplicate-impact-empty {
  margin-bottom: 18px !important;
}

.duplicate-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(47, 93, 80, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(47, 93, 80, 0.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.duplicate-confirmation:disabled {
  opacity: 0.55;
  cursor: default;
}

.duplicate-confirmation > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid rgba(47, 93, 80, 0.35);
  border-radius: 6px;
  color: #fff;
  background: #fff;
  font-size: 0.7rem;
}

.duplicate-confirmation.is-confirmed {
  border-color: rgba(47, 93, 80, 0.4);
  background: rgba(47, 93, 80, 0.12);
}

.duplicate-confirmation.is-confirmed > b {
  background: var(--accent-2);
}

.duplicate-confirmation span,
.duplicate-confirmation strong,
.duplicate-confirmation small {
  display: block;
}

.duplicate-confirmation strong {
  font-size: 0.75rem;
}

.duplicate-confirmation small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.duplicate-merge-submit {
  width: 100%;
  margin-top: 12px;
}

.duplicate-merge-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.duplicate-suggestions {
  padding: clamp(22px, 3vw, 32px);
}

.duplicate-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.duplicate-suggestion-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fffdf9;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.duplicate-suggestion-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 93, 80, 0.28);
  box-shadow: 0 12px 28px rgba(71, 47, 28, 0.09);
}

.duplicate-confidence {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(47, 93, 80, 0.09);
  font-size: 0.6rem;
  font-weight: 850;
}

.duplicate-suggestion-card strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-suggestion-arrow,
.duplicate-suggestion-card small {
  color: var(--muted);
  font-size: 0.64rem;
}

.duplicate-no-suggestions {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  padding: 22px;
  border: 1px dashed rgba(47, 93, 80, 0.2);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(47, 93, 80, 0.035);
  font-size: 0.75rem;
  text-align: center;
}

.duplicate-no-suggestions strong {
  color: var(--text);
}

@media (max-width: 1180px) {
  .duplicate-merge-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .duplicate-suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .duplicate-section-header,
  .duplicate-pair-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .duplicate-transfer-mark {
    display: flex;
    min-width: 0;
    justify-content: center;
  }

  .duplicate-transfer-mark span {
    writing-mode: initial;
  }

  .duplicate-transfer-mark b {
    transform: rotate(90deg);
  }

  .duplicate-suggestion-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
