:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --input: #fafafa;
  --inverse: #ffffff;
  --ink: #171717;
  --muted: #6f6f69;
  --line: #e8e8e2;
  --soft: #f7f7f2;
  --soft-2: #f0f6f1;
  --accent: #1a7f48;
  --accent-dark: #0f5f34;
  --like: #e11d48;
  --blue: #dcecf8;
  --amber: #f7e4b8;
  --rose: #f3d7d7;
  --mint: #d9f0df;
  --header-bg: rgba(255, 255, 255, 0.92);
  --media-tag-bg: rgba(255, 255, 255, 0.82);
  --media-glow: rgba(255, 255, 255, 0.85);
  --ad-bg: #fbfbf8;
  --ad-line: #c9c9c1;
  --rank: #b1b1aa;
  --toggle-off: #d7d7cf;
  --modal-scrim: rgba(17, 17, 17, 0.34);
  --business-cta-start: #10281d;
  --business-cta-end: #176b48;
  --business-cta-text: #ffffff;
  --shadow: 0 18px 50px rgba(22, 22, 18, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: var(--ink);
  --font-display: var(--serif);
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #10120f;
  --surface: #171a16;
  --input: #1d211c;
  --inverse: #10120f;
  --ink: #f4f2ea;
  --muted: #aaa79c;
  --line: #30352d;
  --soft: #1d211c;
  --soft-2: #13291d;
  --accent: #35a86a;
  --accent-dark: #6fd99b;
  --like: #fb7185;
  --blue: #263a47;
  --amber: #4a3c1e;
  --rose: #4a2d31;
  --mint: #213d2c;
  --header-bg: rgba(16, 18, 15, 0.92);
  --media-tag-bg: rgba(16, 18, 15, 0.78);
  --media-glow: rgba(244, 242, 234, 0.12);
  --ad-bg: #151914;
  --ad-line: #3d4639;
  --rank: #757166;
  --toggle-off: #4a4d44;
  --modal-scrim: rgba(0, 0, 0, 0.58);
  --business-cta-start: #0c2117;
  --business-cta-end: #14583a;
  --business-cta-text: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  transition: background 180ms ease, color 180ms ease;
}

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

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--muted));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, var(--input)) 0%, var(--input) 100%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--media-glow), 0 1px 2px rgba(20, 25, 22, 0.03);
  outline: 0;
  padding: 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea {
  min-height: 110px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.5;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, var(--input)) 0%, var(--input) 100%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 100% 100%;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 1px 0 var(--media-glow);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

input[type="file"] {
  min-height: auto;
  padding: 9px;
}

input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-box input,
.search-page-input input,
.reading-history-heading input,
.segment-builder input,
.number-affix input {
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.search-box input:focus,
.search-page-input input:focus,
.reading-history-heading input:focus,
.segment-builder input:focus,
.number-affix input:focus {
  border: 0 !important;
  box-shadow: none !important;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--inverse);
  font-size: 12px;
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--input);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.desktop-nav,
.header-actions,
.story-meta,
.article-actions,
.paywall-actions,
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
  background: var(--soft);
  color: var(--ink);
}

.icon-button,
.menu-button,
.close-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button {
  display: none;
}

.member-pill,
.primary-button,
.secondary-button,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.member-pill,
.primary-button,
.full-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover,
.full-button:hover,
.member-pill:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.full-button {
  width: 100%;
}

.mobile-panel {
  display: none;
}

.mobile-menu-scrim {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 44px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 24px 66px;
}

.feed-column {
  min-width: 0;
}

.feed-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 22px;
}

.feed-topline h1,
.page-heading h1,
.dashboard-header h1,
.article-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.category-intro {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.topic-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.topic-chip,
.role-chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
}

.topic-chip.active,
.role-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--inverse);
}

.personalized-feed-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.personalized-feed-icon,
.interest-manager-icon,
.onboarding-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--accent);
}

.personalized-feed-status div {
  display: grid;
  gap: 3px;
}

.personalized-feed-status strong {
  font-size: 13px;
}

.personalized-feed-status span:not(.personalized-feed-icon) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.personalized-feed-status button,
.article-recommendations-heading button {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.story-list {
  display: grid;
}

.story-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.thumbnail,
.article-visual {
  position: relative;
  display: grid;
  min-height: 124px;
  place-items: end start;
  overflow: hidden;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  isolation: isolate;
}

.thumbnail::before,
.article-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 25% 25%, var(--media-glow), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08));
  z-index: -1;
}

.thumbnail.has-image::before,
.article-visual.has-image::before {
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.thumbnail img,
.article-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.thumbnail span,
.article-visual span {
  position: relative;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--media-tag-bg);
  font-size: 12px;
  font-weight: 800;
}

.mint,
.dot.mint {
  background: var(--mint);
}

.blue,
.dot.blue {
  background: var(--blue);
}

.rose,
.dot.rose {
  background: var(--rose);
}

.amber,
.dot.amber {
  background: var(--amber);
}

.story-body {
  min-width: 0;
}

.author-row,
.article-author {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.recommendation-reason {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.avatar {
  display: grid;
  width: 25px;
  height: 25px;
  overflow: hidden;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--inverse);
  font-size: 12px;
}

.avatar.large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 17px;
}

.avatar img,
.admin-sidebar-avatar img,
.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-title {
  display: block;
  width: 100%;
  margin: 11px 0 8px;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.04;
  letter-spacing: 0;
}

.story-body p,
.rail-panel p,
.article-dek,
.page-heading p,
.dashboard-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-meta {
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.story-meta button,
.article-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 7px;
  color: var(--muted);
}

.story-meta button:hover,
.article-actions button:hover {
  background: var(--soft);
  color: var(--ink);
}

.premium-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-dark);
  font-weight: 800;
}

.recommendation-rail-topics {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.recommendation-rail-topics > span {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-rail-topics strong {
  color: var(--ink);
  font-size: 13px;
}

.recommendation-rail-topics i {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
}

.recommendation-rail-topics i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--interest-strength);
  border-radius: inherit;
  background: var(--accent);
  content: "";
}

.recommendation-rail-topics .recommendation-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  text-align: center;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-bottom: 10px;
}

.rail-panel,
.plan-card,
.metric-card,
.work-panel,
.studio-side,
.checkout-modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.rail-panel {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-title h2,
.rail-panel h2,
.studio-side h2,
.work-panel h2,
.plan-card h2,
.paywall-card h2,
.checkout-modal h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.panel-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--accent);
}

.subscribe-panel p,
.earn-panel p {
  margin: 8px 0 16px;
  font-size: 14px;
}

.role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip {
  padding: 7px 10px;
  text-transform: capitalize;
  font-size: 12px;
}

.role-panel ul,
.plan-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.role-panel li,
.plan-card li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trend-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.trend-row span {
  color: var(--rank);
  font-family: var(--serif);
  font-size: 23px;
}

.trend-row strong {
  line-height: 1.32;
}

.ad-block {
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--ad-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(26, 127, 72, 0.06), rgba(48, 108, 161, 0.06)),
    var(--ad-bg);
  color: var(--muted);
  text-align: center;
}

.ad-block span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-block strong {
  font-size: 13px;
}

.leaderboard {
  min-height: 90px;
  margin: 20px 0 0;
}

.square {
  min-height: 250px;
}

.native {
  min-height: 118px;
}

.earn-total {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 850;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 64px;
  margin-top: 14px;
}

.mini-bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--accent);
}

.article-shell,
.pricing-page,
.dashboard-page,
.studio-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 70px;
}

.article-page {
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-weight: 800;
}

.article-kicker {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-page h1 {
  font-size: clamp(45px, 7vw, 82px);
}

.article-dek {
  margin-top: 18px;
  font-size: 20px;
}

.article-author {
  margin-top: 24px;
}

.article-author div {
  display: grid;
  gap: 3px;
}

.article-author span {
  color: var(--muted);
  font-size: 13px;
}

.article-visual {
  min-height: 320px;
  margin: 34px 0 18px;
}

.article-actions {
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-panel {
  display: grid;
  gap: 12px;
  padding: 18px 0 4px;
  border-bottom: 1px solid var(--line);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.share-button:hover,
.share-button.copied {
  border-color: var(--accent);
  background: var(--soft-2);
  color: var(--accent-dark);
}

.share-button span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.article-content {
  padding-top: 24px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.78;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content.faded {
  max-height: 245px;
  overflow: hidden;
  mask-image: linear-gradient(#000 55%, transparent);
}

.paywall-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

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

.page-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-heading h1,
.dashboard-header h1 {
  font-size: clamp(42px, 6vw, 66px);
}

.page-heading p,
.dashboard-header p {
  margin-top: 12px;
  font-size: 18px;
}

.currency-control {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.currency-control label,
.gateway-fieldset label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.currency-control select,
.gateway-fieldset input,
.gateway-fieldset select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.currency-control div {
  display: grid;
  gap: 4px;
}

.currency-control strong {
  font-size: 14px;
}

.currency-control span,
.base-price {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.plan-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.plan-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan-price {
  font-size: 31px;
  font-weight: 880;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.gateway-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.gateway-strip div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gateway-strip span {
  color: var(--muted);
  font-size: 13px;
}

.studio-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 28px;
}

.studio-toolbar {
  justify-content: flex-end;
  padding-bottom: 24px;
}

.studio-main {
  min-width: 0;
}

.title-input,
.subtitle-input,
.body-editor {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
}

.title-input {
  min-height: 96px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
}

.subtitle-input {
  min-height: 70px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.body-editor {
  min-height: 360px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.78;
}

.studio-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.studio-side label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.studio-side select,
.role-select select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 700;
}

.toggle {
  width: 42px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: var(--toggle-off);
}

.toggle span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 160ms ease;
}

.toggle.on,
.toggle.active {
  background: var(--accent);
}

.toggle.on span,
.toggle.active span {
  transform: translateX(18px);
}

.earn-preview {
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft-2);
}

.earn-preview span {
  color: var(--muted);
  font-size: 13px;
}

.earn-preview strong {
  font-size: 24px;
}

.article-recommendations {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-recommendations-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.article-recommendations-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.article-recommendations-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.article-recommendation-list {
  display: grid;
}

.article-recommendation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.article-recommendation > span:last-child {
  display: grid;
  gap: 4px;
}

.article-recommendation small {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.article-recommendation strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.article-recommendation em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.role-select {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: capitalize;
}

.role-select svg {
  position: absolute;
  right: 11px;
  bottom: 12px;
  pointer-events: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--accent);
}

.metric-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metric-card strong {
  font-size: 25px;
}

.metric-card em {
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.dashboard-columns,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  margin-top: 16px;
}

.interest-manager {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.interest-manager-heading,
.interest-manager-heading > div,
.interest-manager-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.interest-manager-heading > div {
  justify-content: flex-start;
}

.interest-manager-heading h2 {
  margin: 0;
  font-size: 18px;
}

.interest-manager-heading p {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.interest-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.interest-option:hover {
  border-color: var(--accent);
}

.interest-option.selected {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: var(--soft-2);
}

.interest-option-swatch {
  width: 12px;
  height: 42px;
  border-radius: 5px;
}

.interest-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.interest-option small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.interest-option-check,
.onboarding-interest-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
}

.interest-option.selected .interest-option-check,
.onboarding-interest.selected .onboarding-interest-check {
  border-color: var(--accent);
  background: var(--accent);
}

.interest-manager-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.interest-manager-footer > span {
  color: var(--muted);
  font-size: 13px;
}

.reading-profile-panel {
  align-self: stretch;
}

.reading-profile-bars {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.reading-profile-bars > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.reading-profile-bars > div > span {
  display: grid;
  gap: 2px;
}

.reading-profile-bars small {
  color: var(--muted);
  font-size: 10px;
}

.reading-profile-bars i {
  height: 6px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--soft);
}

.reading-profile-bars i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.recent-signals {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.recent-signals > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.recent-signals i {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--soft-2);
  color: var(--accent);
}

.admin-app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 32px 24px 60px;
  overflow-x: clip;
}

.admin-sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
  display: flex;
  min-height: calc(100vh - 116px);
  padding: 14px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(20, 25, 22, 0.05);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
}

.admin-sidebar-brand strong,
.admin-sidebar-account strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.admin-sidebar-brand small,
.admin-sidebar-account small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.admin-sidebar-heading {
  margin: 18px 8px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--soft);
  color: inherit;
}

.admin-nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}

.admin-nav-item.active {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-strong);
}

.admin-nav-item.active .admin-nav-icon {
  background: var(--accent);
  color: #fff;
}

.admin-subnav {
  display: grid;
  gap: 4px;
  margin: -2px 0 5px 40px;
}

.admin-subnav button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.admin-subnav button.active,
.admin-subnav button:hover {
  background: var(--soft);
  color: var(--accent-strong);
}

.admin-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-sidebar-site-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-sidebar-site-link:hover {
  background: var(--soft);
  color: var(--ink);
}

.admin-sidebar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 9px 0;
  border-top: 1px solid var(--line);
}

.admin-sidebar-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  overflow: hidden;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.admin-main {
  min-width: 0;
  max-width: 100%;
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-page-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
}

.admin-page-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.admin-shortcut {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.admin-shortcut > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--accent);
}

.admin-shortcut strong {
  align-self: center;
}

.admin-shortcut p,
.admin-shortcut small {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-shortcut:hover {
  border-color: var(--accent);
}

.admin-shortcut small {
  align-self: end;
  font-weight: 750;
}

.admin-dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-settings-stack {
  display: grid;
  gap: 18px;
}

.admin-settings-stack .work-panel,
.user-management-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.work-panel {
  padding: 18px;
}

.read-later-panel {
  grid-column: 1 / -1;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-story,
.queue-row,
.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.dashboard-story > span:last-child,
.queue-row div {
  display: grid;
  gap: 4px;
}

.dashboard-story small,
.queue-row span,
.subscription-state span {
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.subscription-state {
  display: grid;
  gap: 5px;
  margin: 12px 0 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
}

.inventory-row strong {
  color: var(--accent-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: var(--modal-scrim);
}

.checkout-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  box-shadow: var(--shadow);
}

.checkout-modal .close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.checkout-modal p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.55;
}

.gateway-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.gateway-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.gateway-card.active {
  border-color: var(--accent);
  background: var(--soft-2);
}

.gateway-status,
.payment-message {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.gateway-status.ready {
  border-color: rgba(26, 127, 72, 0.42);
  background: var(--soft-2);
}

.gateway-status.needs-key strong {
  color: var(--accent-dark);
}

.gateway-status span,
.gateway-status small,
.payment-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gateway-settings-panel {
  grid-column: 1 / -1;
}

.subscription-manager-panel {
  grid-column: 1 / -1;
}

.user-management-panel {
  grid-column: 1 / -1;
}

.user-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.user-search-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-search-row input,
.user-controls select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.user-counts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  align-items: baseline;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.user-counts span {
  display: grid;
  gap: 2px;
}

.user-counts em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.user-admin-list {
  display: grid;
  gap: 10px;
}

.user-admin-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.user-identity,
.user-controls label {
  display: grid;
  gap: 5px;
}

.user-identity span,
.user-identity small,
.user-controls span,
.empty-users {
  color: var(--muted);
}

.user-identity small,
.user-controls span {
  font-size: 12px;
}

.status-pill {
  justify-self: start;
  min-width: 78px;
  padding: 6px 10px;
  border: 1px solid rgba(26, 127, 72, 0.25);
  border-radius: 999px;
  background: rgba(26, 127, 72, 0.1);
  color: #1a7f48;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-transform: capitalize;
}

.status-pill.suspended {
  border-color: rgba(168, 50, 50, 0.25);
  background: rgba(168, 50, 50, 0.1);
  color: #a83232;
}

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

.user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.empty-users {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blog-management-panel {
  grid-column: 1 / -1;
}

.blog-list-page {
  display: grid;
  gap: 16px;
}

.category-management-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.category-editor-panel,
.category-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-editor-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
  padding: 18px;
}

.category-editor-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-editor-panel input,
.category-editor-panel select,
.category-editor-panel textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.category-editor-panel textarea {
  min-height: 88px;
  padding: 11px;
  resize: vertical;
}

.category-seo-fields {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.category-list-panel {
  overflow: hidden;
}

.category-table-header,
.category-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 60px minmax(190px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
}

.category-table-header {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-row + .category-row {
  border-top: 1px solid var(--line);
}

.category-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.category-identity > div,
.category-search-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.category-identity small,
.category-identity p,
.category-search-preview span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.category-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.category-count {
  justify-self: center;
}

.category-search-preview strong {
  color: #2357a6;
  font-size: 13px;
  font-weight: 650;
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.list-summary {
  display: flex;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.list-summary span {
  display: grid;
  min-width: 120px;
  gap: 2px;
  padding: 13px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.list-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.post-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.post-editor-main,
.post-editor-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.post-editor-sidebar {
  position: sticky;
  top: 88px;
}

.editor-panel,
.rich-editor-shell,
.post-seo-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.editor-title-fields {
  display: grid;
  gap: 10px;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.post-title-input,
.post-excerpt-input {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--ink);
}

.post-title-input {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.08;
}

.post-excerpt-input {
  min-height: 70px;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
}

.slug-editor {
  display: flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  box-shadow: none;
}

.slug-editor span {
  padding: 0;
  white-space: nowrap;
}

.slug-editor input {
  width: min(360px, 46vw);
  min-width: 0;
  flex: 1;
  min-height: 24px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 0 0 2px;
  box-shadow: none;
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.rich-editor-toolbar button,
.rich-editor-toolbar select {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 9px;
  font-size: 13px;
}

.rich-editor-toolbar button {
  min-width: 34px;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar select:hover {
  border-color: var(--line);
  background: var(--surface);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 3px;
  background: var(--line);
}

.rich-blog-editor {
  min-height: 480px;
  padding: 28px;
  outline: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
}

.rich-blog-editor:empty::before {
  color: var(--muted);
  content: "Start writing your story...";
}

.rich-blog-editor h2,
.rich-blog-editor h3,
.rich-blog-editor h4,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.6em 0 0.55em;
  line-height: 1.22;
}

.rich-blog-editor blockquote,
.article-content blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.rich-blog-editor img,
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rich-blog-editor table,
.article-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.rich-blog-editor th,
.rich-blog-editor td,
.article-content th,
.article-content td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.editor-panel {
  padding: 18px;
}

.editor-panel label,
.seo-fieldset label,
.seo-settings-section label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-panel input,
.editor-panel select,
.seo-fieldset input,
.seo-fieldset select,
.seo-fieldset textarea,
.seo-settings-section input,
.seo-settings-section select,
.seo-settings-section textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.seo-fieldset textarea,
.seo-settings-section textarea {
  min-height: 96px;
  padding: 11px;
  resize: vertical;
}

.post-settings-panel {
  gap: 12px;
}

.post-settings-panel,
.publish-panel {
  display: grid;
}

.publish-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.publish-status strong {
  color: var(--ink);
}

.text-button {
  min-height: 38px;
  color: var(--muted);
  font-weight: 750;
}

.featured-image-controls {
  display: grid;
  gap: 12px;
}

.post-seo-panel {
  padding: 20px;
}

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

.seo-panel-header h2,
.seo-panel-header p {
  margin: 0;
}

.seo-panel-header p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.seo-score {
  display: grid;
  min-width: 76px;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-score strong {
  font-size: 22px;
}

.seo-score span {
  color: var(--muted);
  font-size: 11px;
}

.seo-score.good {
  border-color: rgba(26, 127, 72, 0.35);
  color: var(--accent-dark);
}

.seo-score.okay {
  border-color: rgba(126, 93, 16, 0.35);
  color: #7e5d10;
}

.seo-score.poor {
  border-color: rgba(168, 50, 50, 0.35);
  color: #a83232;
}

.search-preview {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.search-preview small {
  color: var(--accent-dark);
}

.search-preview strong {
  color: #2357a6;
  font-size: 19px;
  font-weight: 500;
}

.search-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.seo-fieldset,
.seo-settings-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-fieldset legend,
.seo-settings-section legend {
  padding: 0 6px;
  font-weight: 850;
}

.field-counters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.site-seo-form {
  display: grid;
  gap: 16px;
}

.seo-settings-section {
  background: var(--surface);
}

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

.credential-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sticky-settings-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sticky-settings-actions span {
  color: var(--muted);
  font-size: 13px;
}

.blog-manager-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.blog-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.blog-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-editor input,
.blog-editor select,
.blog-editor textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.blog-editor textarea {
  min-height: 84px;
  padding: 11px;
  resize: vertical;
}

.blog-body-input {
  min-height: 190px;
}

.checkbox-field {
  align-self: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 40px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.checkbox-field input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.file-field input {
  padding: 8px;
}

.blog-image-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blog-image-preview img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 7px;
}

.blog-admin-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.blog-admin-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blog-admin-media {
  position: relative;
  display: grid;
  min-height: 72px;
  place-items: end start;
  overflow: hidden;
  border-radius: 8px;
  padding: 9px;
  font-size: 11px;
  font-weight: 850;
}

.blog-admin-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-admin-media span {
  position: relative;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--media-tag-bg);
}

.blog-admin-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.blog-admin-copy span,
.blog-admin-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.blog-admin-copy strong,
.blog-admin-copy span,
.blog-admin-copy small {
  overflow-wrap: anywhere;
}

.status-pill.draft {
  border-color: rgba(126, 93, 16, 0.28);
  background: rgba(126, 93, 16, 0.1);
  color: #7e5d10;
}

.blog-admin-row .status-pill {
  grid-column: 1;
}

.blog-admin-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  justify-content: flex-start;
  gap: 8px;
}

.plan-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.plan-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.plan-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-editor input,
.plan-editor select,
.plan-editor textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  padding: 0 11px;
}

.plan-editor textarea {
  min-height: 110px;
  padding: 11px;
  resize: vertical;
}

.wide-field,
.plan-editor .settings-actions {
  grid-column: 1 / -1;
}

.plan-admin-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.plan-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.plan-admin-row > div:first-child {
  display: grid;
  gap: 5px;
}

.plan-admin-row span,
.plan-admin-row small {
  color: var(--muted);
  line-height: 1.4;
}

.plan-admin-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.danger-button {
  color: #a83232;
}

.settings-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

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

.gateway-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gateway-fieldset legend {
  padding: 0 6px;
  font-weight: 850;
}

.gateway-fieldset small {
  color: var(--muted);
  line-height: 1.45;
}

.provider-credential-fields { display: grid; gap: 10px; }
.provider-credential-fields label, .menu-editor label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.provider-credential-fields input, .menu-editor input, .menu-editor select, .menu-editor .settings-actions select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); }
.provider-card-actions, .menu-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-management-panel { grid-column: 1 / -1; }
.menu-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.menu-editor { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.menu-editor h3 { margin: 0 0 6px; }
.menu-editor-list { display: grid; gap: 10px; }
.menu-editor-list article { display: grid; grid-template-columns: 28px minmax(120px, .7fr) minmax(170px, 1fr) auto; align-items: end; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.menu-order { align-self: center; color: var(--muted); font-weight: 850; text-align: center; }

.settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.settings-actions span {
  color: var(--muted);
  font-size: 13px;
}

.gateway-card span {
  display: grid;
  gap: 2px;
}

.gateway-card small {
  color: var(--muted);
}

.auth-modal {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.onboarding-backdrop {
  z-index: 60;
}

.onboarding-modal {
  width: min(900px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.onboarding-progress span {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.onboarding-progress span:first-child {
  background: var(--accent);
}

.onboarding-progress.plans span:nth-child(-n + 2) {
  background: var(--accent);
}

.onboarding-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.onboarding-heading small {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.onboarding-heading h2 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.onboarding-heading p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.onboarding-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.onboarding-plans-modal {
  width: min(960px, 100%);
}

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

.onboarding-plan-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.onboarding-plan-card.free {
  background: var(--soft);
}

.onboarding-plan-card > div {
  display: grid;
  gap: 4px;
}

.onboarding-plan-card strong {
  font-family: var(--serif);
  font-size: 22px;
}

.onboarding-plan-card span,
.onboarding-plan-card li {
  color: var(--muted);
  font-size: 12px;
}

.onboarding-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-plan-card li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.onboarding-interest {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.onboarding-interest:hover,
.onboarding-interest.selected {
  border-color: var(--accent);
}

.onboarding-interest.selected {
  background: var(--soft-2);
}

.onboarding-interest-visual {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #172119;
  font-size: 13px;
  font-weight: 900;
}

.onboarding-interest > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.onboarding-interest small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.onboarding-footer > div {
  display: grid;
  gap: 3px;
}

.onboarding-footer span {
  color: var(--muted);
  font-size: 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.social-login-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.social-login-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  font-weight: 850;
}

.social-login-button:hover {
  border-color: var(--accent);
  background: var(--soft-2);
}

.social-login-button > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 950;
}

.social-login-button > span svg {
  display: block;
}

.notification-shell {
  position: relative;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: min(390px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notification-popover-head,
.notification-popover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.notification-popover-head {
  border-bottom: 1px solid var(--line);
}

.notification-popover-head > div {
  display: grid;
  gap: 2px;
}

.notification-popover-head span,
.notification-item small,
.notification-item time {
  color: var(--muted);
  font-size: 11px;
}

.notification-popover-list,
.notifications-list {
  display: grid;
}

.notification-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 8px;
  align-items: start;
  gap: 11px;
  width: 100%;
  min-height: 72px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.notification-item:hover,
.notification-item.unread {
  background: var(--soft-2);
}

.notification-item-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
}

.notification-item > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item small {
  line-height: 1.4;
}

.notification-item > i {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #e53935;
}

.notification-popover-foot {
  padding: 10px 16px;
}

.notification-popover-foot button {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.notification-empty {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
}

.notifications-page,
.submission-success-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 76px;
}

.notifications-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.notifications-page-head h1 {
  margin: 5px 0 8px;
  font-size: clamp(38px, 6vw, 60px);
}

.notifications-page-head p {
  color: var(--muted);
}

.notifications-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.submission-success-card {
  max-width: 680px;
  margin: 36px auto;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.submission-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--accent-dark);
}

.submission-success-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(32px, 5vw, 50px);
}

.submission-success-card p {
  margin: 10px auto;
  color: var(--muted);
  line-height: 1.65;
}

.submission-success-card > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.business-submission-list {
  display: grid;
  gap: 10px;
}

.business-submission-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.business-submission-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.business-submission-profile > span,
.business-submission-meta {
  display: grid;
  gap: 4px;
}

.business-submission-profile .status-pill {
  width: max-content;
}

.business-submission-profile small,
.business-submission-meta time {
  color: var(--muted);
  font-size: 11px;
}

.business-submission-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.social-login-button small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 650;
}

.account-card {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.account-card span,
.account-card small,
.auth-note {
  color: var(--muted);
  line-height: 1.45;
}

.auth-note {
  margin-top: 12px;
  font-size: 13px;
}

.auth-step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--accent-dark);
}

.checkout-modal .currency-control {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.checkout-modal .currency-control label {
  grid-column: 1 / -1;
}

.checkout-modal .currency-control .secondary-button {
  max-width: 100%;
  white-space: nowrap;
}

.discount-field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

.discount-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.discount-field > div {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.discount-field input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.discount-field button {
  min-width: 82px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.checkout-summary strong {
  color: var(--ink);
}

.wide-button {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer button:not(.brand) {
  color: var(--muted);
  font-weight: 700;
}

.footer-social {
  justify-content: flex-end;
  gap: 8px;
}

.footer-social a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.footer-social a:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

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

.social-profile-grid label,
.social-profile-panel > label {
  display: grid;
  gap: 6px;
}

.social-profile-grid label > span,
.social-profile-panel > label > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-admin-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 10px;
}

.contact-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  text-decoration: none;
}

.profile-settings-grid .profile-message {
  grid-column: 1 / -1;
}

.profile-settings-page {
  display: grid;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.profile-settings-page > .profile-message {
  width: 100%;
}

.profile-settings-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}

.profile-settings-heading h1 {
  max-width: 680px;
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.04;
}

.profile-settings-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.settings-eyebrow {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-settings-heading > button {
  flex: 0 0 auto;
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.profile-settings-sidebar,
.profile-settings-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-settings-sidebar {
  position: sticky;
  top: 84px;
}

.profile-identity-card {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.profile-avatar-ring {
  display: grid;
  margin-bottom: 2px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 50%;
  background: var(--surface);
}

.profile-identity-card .profile-avatar {
  width: 96px;
  height: 96px;
  flex-basis: 96px;
  font-size: 28px;
}

.profile-identity-card > strong {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.profile-identity-card > span {
  max-width: 210px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.profile-completeness {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 18px 0 4px;
  padding: 13px;
  border-radius: 9px;
  background: var(--soft);
  text-align: left;
}

.profile-completeness > div {
  display: grid;
  gap: 2px;
}

.profile-completeness strong {
  font-size: 11px;
}

.profile-completeness span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.profile-completeness > i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.profile-completeness > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 200ms ease;
}

.profile-photo-field {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.profile-photo-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--muted);
  font: inherit;
}

.profile-photo-field input::file-selector-button {
  min-height: 34px;
  margin-right: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: var(--soft-2);
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.profile-identity-card > .text-button {
  min-height: 40px;
  margin-top: 4px;
}

.profile-settings-nav {
  padding-top: 8px;
  padding-bottom: 8px;
}

.profile-settings-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.profile-settings-nav a:hover,
.profile-settings-nav a:focus-visible {
  background: var(--soft);
  color: var(--accent-dark);
}

.profile-form-section,
.profile-danger-zone {
  scroll-margin-top: 86px;
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.profile-section-heading > span,
.profile-danger-zone > div > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--soft-2);
  color: var(--accent-dark);
}

.profile-section-heading h2,
.profile-danger-zone h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.profile-section-heading p,
.profile-danger-zone p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.profile-form-grid,
.profile-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.profile-form-grid label,
.profile-social-grid label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.profile-form-grid label.wide,
.profile-social-grid label:last-child {
  grid-column: 1 / -1;
}

.connected-account-list,
.profile-preference-list,
.account-data-actions {
  display: grid;
  margin-top: 18px;
}

.connected-account-list article,
.account-data-actions article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.connected-account-list article:last-child,
.account-data-actions article:last-child {
  border-bottom: 0;
}

.connected-provider-icon,
.account-data-actions article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--accent-dark);
}

.connected-account-list article > div,
.account-data-actions article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.connected-account-list small,
.connected-account-list time,
.account-data-actions small,
.profile-section-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.connected-account-list time {
  font-size: 9px;
}

.profile-section-note {
  margin: 10px 0 0;
}

.profile-preference-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.profile-preference-list label:last-child {
  border-bottom: 0;
}

.profile-preference-list label > span {
  display: grid;
  gap: 3px;
}

.profile-preference-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.profile-preference-list input[type="checkbox"] {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toggle-off);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.profile-preference-list input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  content: "";
  transition: transform 180ms ease;
}

.profile-preference-list input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.profile-preference-list input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.profile-preference-list input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 2px;
}

.profile-form-grid label > span,
.profile-social-grid label > span {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.profile-form-grid input,
.profile-form-grid textarea,
.profile-social-grid input,
.prefixed-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.profile-form-grid textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.55;
}

.profile-form-grid input:focus,
.profile-form-grid textarea:focus,
.profile-social-grid input:focus,
.prefixed-input:focus-within {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}

.profile-form-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.prefixed-input {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
}

.prefixed-input input {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.profile-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-save-row > span {
  color: var(--muted);
  font-size: 10px;
}

.profile-save-row > button {
  flex: 0 0 auto;
}

.profile-settings-page .primary-button,
.profile-settings-page .secondary-button,
.profile-settings-page .text-button,
.profile-settings-page .dashboard-setting-link {
  min-height: 44px;
}

.password-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-save-row > .inline-setting-link {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  color: var(--accent-dark);
}

.profile-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-color: color-mix(in srgb, #b84949 35%, var(--line));
  background: color-mix(in srgb, #b84949 3%, var(--surface));
}

.profile-deletion-scheduled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.profile-deletion-scheduled > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-deletion-scheduled > div > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--soft-2);
  color: var(--accent-dark);
}

.profile-deletion-scheduled h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.profile-deletion-scheduled p {
  max-width: 580px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.profile-deletion-scheduled > button {
  flex: 0 0 auto;
}

.profile-danger-zone > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-danger-zone > div > span {
  background: color-mix(in srgb, #b84949 10%, var(--surface));
  color: #a43d3d;
}

.profile-danger-zone > button {
  flex: 0 0 auto;
}

.danger-text {
  color: #a43d3d;
}

.account-photo-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.account-photo-editor > div {
  display: grid;
  gap: 4px;
}

.account-photo-editor span:not(.profile-avatar),
.account-photo-editor small {
  color: var(--muted);
}

.admin-sidebar-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.search-shell { position: relative; min-width: 0; }
.search-autocomplete { position: absolute; top: calc(100% + 9px); left: 0; z-index: 35; display: grid; width: min(520px, calc(100vw - 32px)); padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.search-autocomplete > button { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 52px; padding: 7px 9px; border-radius: 7px; text-align: left; }
.search-autocomplete > button:hover { background: var(--soft); }
.search-autocomplete > button > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: var(--soft-2); color: var(--accent); }
.search-autocomplete > button > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.search-autocomplete small, .search-autocomplete-empty { color: var(--muted); font-size: 11px; }
.search-autocomplete-empty { padding: 14px; }
.search-autocomplete .search-all-result { grid-template-columns: auto 1fr; min-height: 40px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.author-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.author-link:hover, .article-author:hover { color: var(--accent-dark); }
.category-follow-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.category-follow-row > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.secondary-button.active, .compact-follow.active, .primary-button.following { border-color: var(--accent); background: var(--soft-2); color: var(--accent-dark); }
.primary-button.following { border: 1px solid var(--accent); }
.continue-reading { padding: 18px 0; border-bottom: 1px solid var(--line); }
.continue-reading.dashboard { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.continue-reading-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.continue-reading-heading button { color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.continue-reading-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.continue-reading.dashboard .continue-reading-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.continue-reading-list > button { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.continue-reading-art { display: grid; width: 48px; height: 58px; place-items: center; border-radius: 6px; color: #172119; font-size: 11px; font-weight: 900; }
.continue-reading-list > button > span:last-child { display: grid; gap: 5px; min-width: 0; }
.continue-reading-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.continue-reading-list small { color: var(--muted); font-size: 10px; }
.continue-reading-list i, .history-main i { height: 4px; overflow: hidden; border-radius: 4px; background: var(--soft); }
.continue-reading-list i span, .history-main i span { display: block; height: 100%; background: var(--accent); }
.article-progress-track { position: sticky; top: 68px; z-index: 11; height: 3px; margin-bottom: 20px; background: var(--line); }
.article-progress-track span { display: block; height: 100%; background: var(--accent); transition: width 100ms linear; }
.article-author-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.article-follow-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.article-tags button, .profile-expertise button, .follow-tag-cloud button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 750; }
.article-tags button.active, .profile-expertise button.active, .follow-tag-cloud button.active { border-color: var(--accent); background: var(--soft-2); color: var(--accent-dark); }
.interactive-blocks { display: grid; gap: 16px; margin-top: 34px; }
.interactive-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.interactive-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.interactive-card-heading span { color: var(--accent-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.interactive-card-heading small { color: var(--muted); }
.interactive-card h2 { margin: 10px 0 16px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.interactive-options { display: grid; gap: 8px; }
.interactive-options > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(70px, 0.5fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; text-align: left; }
.interactive-options > button:hover, .interactive-options > button.selected { border-color: var(--accent); background: var(--soft-2); }
.interactive-options > button.correct { border-color: var(--accent); }
.interactive-options > button.incorrect { border-color: #b84949; }
.interactive-options > button > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--soft); font-size: 11px; font-weight: 850; }
.interactive-options i { height: 5px; overflow: hidden; border-radius: 5px; background: var(--soft); }
.interactive-options i span { display: block; height: 100%; background: var(--accent); }
.interactive-options em { color: var(--muted); font-size: 11px; font-style: normal; }
.interactive-card > .primary-button, .interactive-card > .text-button { margin-top: 14px; }
.quiz-result { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 7px; background: var(--soft-2); }
.quiz-result.incorrect { background: color-mix(in srgb, #b84949 9%, var(--surface)); }
.quiz-result span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.comments-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-heading, .comments-heading > div, .comments-heading label, .comment-composer, .comment-composer > div > div, .comment-author-line, .comment-actions { display: flex; align-items: center; }
.comments-heading { justify-content: space-between; gap: 16px; }
.comments-heading > div { gap: 9px; }
.comments-heading h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.comments-heading span, .comments-heading label, .comment-context { color: var(--muted); font-size: 12px; }
.comments-heading label { gap: 7px; font-weight: 750; }
.comments-heading select { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
.comment-composer { align-items: flex-start; gap: 11px; margin: 20px 0; }
.comment-composer > div { display: grid; flex: 1; gap: 7px; }
.comment-composer textarea { width: 100%; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: var(--input); color: var(--ink); }
.comment-composer > div > div { justify-content: space-between; gap: 12px; }
.comment-composer small { color: var(--muted); }
.comment-context { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 7px; background: var(--soft); }
.comment-context button { color: var(--accent-dark); font-weight: 800; }
.comment-list { display: grid; }
.comment-thread { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-thread.pinned { padding-right: 12px; padding-left: 12px; border-left: 3px solid var(--accent); background: var(--soft-2); }
.comment-thread.reported { opacity: 0.7; }
.comment-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.comment-author-line { flex-wrap: wrap; gap: 7px; }
.comment-author-line > span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 5px; background: var(--soft); color: var(--accent-dark); font-size: 10px; font-weight: 800; }
.comment-author-line small { margin-left: auto; color: var(--muted); }
.comment-main p { margin: 9px 0; line-height: 1.55; }
.comment-main mark { background: transparent; color: var(--accent-dark); font-weight: 700; }
.comment-actions { flex-wrap: wrap; gap: 4px; }
.comment-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 7px; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.comment-actions button:hover, .comment-actions button.active { background: var(--soft); color: var(--accent-dark); }
.comment-actions .danger-text { color: #b84949; }
.comment-replies { margin: 14px 0 0 36px; padding-left: 14px; border-left: 1px solid var(--line); }
.comment-replies .comment-thread:last-child { padding-bottom: 0; }
.search-page, .profile-page, .curated-list-page { max-width: 1220px; margin: 0 auto; padding: 44px 24px 66px; }
.search-page-heading { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr); align-items: end; gap: 34px; }
.search-page-heading h1, .profile-hero h1, .curated-list-header h1 { margin: 0; font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.search-page-heading p, .curated-list-header p { color: var(--muted); line-height: 1.55; }
.search-page-input { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); }
.search-page-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-filter-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 9px; margin-top: 28px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.search-filter-bar label { display: grid; gap: 5px; }
.search-filter-bar label span { color: var(--muted); font-size: 10px; font-weight: 800; }
.search-filter-bar select { min-width: 0; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--input); color: var(--ink); font-size: 12px; }
.search-filter-bar > button { align-self: end; }
.search-results-summary { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 0; }
.search-results-summary strong { font-size: 22px; }
.search-results-summary span { color: var(--muted); }
.search-results-summary em { margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.search-results-layout, .profile-content-grid, .curated-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; }
.search-discovery-rail, .profile-sidebar { display: grid; align-content: start; gap: 14px; padding-top: 22px; }
.discovery-follow-row, .follow-manager-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.discovery-follow-row > button:first-child, .follow-manager-row > button:first-child, .follow-manager-row > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.discovery-follow-row > button:first-child > span:last-child, .follow-manager-row > button:first-child, .follow-manager-row > span:first-child { display: grid; gap: 2px; }
.discovery-follow-row small, .follow-manager-row small, .discovery-list-row span { color: var(--muted); font-size: 10px; }
.compact-follow { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.discovery-list-row { display: grid; gap: 4px; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; }
.profile-hero { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 28px; padding: 18px 0 34px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: grid; width: 118px; height: 118px; overflow: hidden; flex: 0 0 118px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--inverse); font-family: var(--serif); font-size: 34px; }
.profile-title-row, .profile-title-row > div, .profile-meta, .profile-links { display: flex; align-items: center; gap: 11px; }
.profile-title-row { justify-content: space-between; }
.profile-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.profile-intro > p { max-width: 720px; margin: 13px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.profile-meta, .profile-links { flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.profile-links { margin-top: 10px; }
.profile-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-dark); font-weight: 750; }
.profile-featured { padding-top: 24px; }

.become-author-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.author-program-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: stretch;
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
}

.author-program-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.author-program-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.author-program-actions,
.create-user-submit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.author-program-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.author-program-card > strong {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.08;
}

.author-program-card > span,
.author-program-card small,
.author-benefit-grid p,
.author-program-flow p,
.author-steps span {
  color: var(--muted);
  line-height: 1.55;
}

.author-program-card div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.author-program-card b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
}

.author-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 30px 0;
}

.author-benefit-grid article,
.author-program-flow,
.create-user-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.author-benefit-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
}

.author-benefit-grid h2,
.author-program-flow h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}

.author-program-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px;
}

.author-steps {
  display: grid;
  gap: 12px;
}

.author-steps article {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.auth-remember {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.auth-remember input {
  width: 16px;
  min-height: 16px;
}

.admin-create-user-page {
  display: grid;
  gap: 16px;
}

.create-user-message {
  margin: 0;
}

.create-user-panel {
  box-shadow: none;
}

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

.create-user-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.create-user-submit-bar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.profile-featured > span, .curated-list-header > div > span { color: var(--accent-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.section-heading p, .section-heading span { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.profile-stories { margin-top: 26px; }
.reader-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; }
.profile-expertise, .profile-activity { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.profile-expertise > span { padding: 7px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 750; }
.profile-activity { display: grid; }
.profile-activity span { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; }
.curated-list-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 16px 0 32px; border-bottom: 1px solid var(--line); }
.curated-list-header > div > div { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.following-manager, .reading-history { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.following-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.following-columns h3 { margin: 0 0 7px; font-size: 13px; }
.following-lists { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.following-lists h3 { grid-column: 1 / -1; }
.follow-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.reading-history-heading, .reading-history-heading > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reading-history-heading h2 { margin: 0; font-size: 18px; }
.reading-history-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.reading-history-heading label { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); }
.reading-history-heading input { width: 210px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.history-list { display: grid; margin-top: 14px; }
.history-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.history-main { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; text-align: left; }
.history-main > span:last-child { display: grid; gap: 4px; }
.history-main small, .history-status { color: var(--muted); font-size: 11px; }
.history-state { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 850; }
.history-state.complete { background: var(--soft-2); color: var(--accent); }
.interactive-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.interactive-add-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.interactive-add-actions .secondary-button { min-height: 40px; }
.interactive-editor-list { display: grid; gap: 12px; margin-top: 16px; }
.interactive-editor-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--soft));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.interactive-editor-card.survey { border-left-color: #6d7f3f; }
.interactive-editor-card.quiz { border-left-color: #b7791f; }
.interactive-editor-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.interactive-editor-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.interactive-editor-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: end; }
.interactive-editor-fields label { display: grid; gap: 6px; }
.interactive-editor-fields label span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.interactive-editor-fields input, .interactive-editor-fields textarea, .interactive-editor-fields select {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
}
.interactive-editor-fields textarea { min-height: 96px; resize: vertical; }
.interactive-editor-fields .wide-field { align-self: stretch; }
.interactive-check { min-height: 44px; align-self: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.editor-image-choice { display: grid; gap: 12px; margin: 12px 0; }
.inline-upload-card {
  min-height: 86px;
  justify-content: center;
  border: 1px dashed var(--accent);
  background: var(--soft-2);
  text-align: center;
  cursor: pointer;
}
.image-choice-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.image-choice-divider span { height: 1px; background: var(--line); }

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    width: min(82vw, 340px);
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: slideMenuIn 180ms ease-out;
  }

  .mobile-menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: var(--modal-scrim);
  }

  .mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-panel nav {
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .mobile-panel nav button {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 8px;
    text-align: left;
    font-weight: 750;
  }

  .mobile-panel nav button:hover,
  .mobile-panel nav button.active {
    background: var(--soft);
    color: var(--accent-dark);
  }

  .mobile-panel-actions {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .home-grid,
  .studio-page,
  .dashboard-columns,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-app {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-sidebar {
    position: sticky;
    top: 68px;
    z-index: 12;
    display: block;
    min-height: 0;
    padding: 6px;
    overflow-x: auto;
    border-color: var(--line);
    background: var(--header-bg);
    box-shadow: 0 8px 18px rgba(20, 25, 22, 0.06);
    backdrop-filter: blur(12px);
  }

  .admin-sidebar-brand,
  .admin-sidebar-heading,
  .admin-sidebar-footer {
    display: none;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 4px;
    min-width: max-content;
  }

  .admin-nav-item {
    width: auto;
    min-height: 40px;
    padding: 0 11px 0 7px;
  }

  .admin-nav-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

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

  .admin-dashboard-columns,
  .post-editor-layout,
  .category-management-layout {
    grid-template-columns: 1fr;
  }

  .post-editor-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-editor-panel {
    position: static;
  }

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

  .right-rail,
  .studio-side {
    position: static;
    max-height: none;
  }

  .pricing-grid,
  .gateway-strip,
  .dashboard-grid,
  .gateway-settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .currency-control {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .plan-manager-layout {
    grid-template-columns: 1fr;
  }

  .blog-manager-layout {
    grid-template-columns: 1fr;
  }

  .blog-admin-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .blog-admin-row .status-pill,
  .blog-admin-actions {
    grid-column: 2;
  }

  .user-admin-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .user-actions {
    justify-content: flex-start;
  }

  .search-page-heading,
  .search-results-layout,
  .profile-content-grid,
  .reader-profile-grid,
  .curated-list-layout {
    grid-template-columns: 1fr;
  }

  .search-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-discovery-rail,
  .profile-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .continue-reading.dashboard .continue-reading-list,
  .following-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .interactive-editor-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .business-submission-card {
    grid-template-columns: 1fr;
  }

  .business-submission-card .business-review-actions {
    justify-content: stretch;
  }

  .business-submission-card .business-review-actions button {
    flex: 1;
  }

  .notifications-page-head,
  .submission-success-card > div {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .checkout-modal .currency-control {
    grid-template-columns: 1fr;
  }

  .checkout-modal .currency-control .secondary-button {
    width: 100%;
  }

  .discount-field > div {
    gap: 6px;
  }

  .discount-field button {
    min-width: 72px;
    padding-inline: 12px;
  }
}

@keyframes slideMenuIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 680px) {
  html,
  body,
  .app-shell {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .member-pill {
    display: none;
  }

  .home-grid,
  .article-shell,
  .pricing-page,
  .dashboard-page,
  .studio-page {
    padding: 24px 16px 48px;
  }

  .admin-app {
    width: 100%;
    max-width: 100vw;
    padding: 20px 12px 48px;
    overflow-x: clip;
  }

  .admin-main,
  .admin-main > *,
  .work-panel,
  .production-panel,
  .gateway-settings-panel,
  .user-management-panel {
    min-width: 0;
    max-width: 100%;
  }

  .admin-sidebar {
    max-width: calc(100vw - 24px);
  }

  .admin-sidebar nav {
    max-width: 100%;
  }

  .admin-nav-item {
    flex: 0 0 auto;
    max-width: 74vw;
    white-space: nowrap;
  }

  .admin-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions {
    align-items: stretch;
  }

  .admin-header-actions button {
    flex: 1;
  }

  .admin-page-header h1 {
    font-size: 34px;
  }

  .admin-overview-grid,
  .post-editor-sidebar,
  .seo-section-grid,
  .settings-form-grid,
  .settings-toggle-grid,
  .social-profile-grid {
    grid-template-columns: 1fr;
  }

  .admin-shortcut {
    min-height: 145px;
  }

  .post-title-input {
    font-size: 28px;
  }

  .slug-editor {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .slug-editor span {
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slug-editor input {
    width: 100%;
    padding-left: 0;
  }

  .rich-blog-editor {
    min-height: 380px;
    padding: 20px;
    font-size: 17px;
  }

  .seo-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-score {
    align-self: flex-start;
  }

  .list-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .list-summary span {
    min-width: 0;
    padding: 11px;
  }

  .category-table-header {
    display: none;
  }

  .category-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .category-count {
    justify-self: start;
  }

  .category-count::after {
    color: var(--muted);
    content: " posts";
    font-size: 12px;
    font-weight: 500;
  }

  .category-actions {
    justify-content: flex-start;
  }

  .feed-topline {
    align-items: stretch;
    flex-direction: column;
    padding-top: 16px;
  }

  .personalized-feed-status {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .personalized-feed-status > button {
    grid-column: 2;
    justify-self: start;
  }

  .feed-topline h1,
  .page-heading h1,
  .dashboard-header h1,
  .article-page h1 {
    font-size: 38px;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .thumbnail {
    min-height: 168px;
  }

  .right-rail {
    gap: 12px;
  }

  .pricing-grid,
  .gateway-strip,
  .dashboard-grid,
  .gateway-settings-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-manager {
    padding: 16px;
  }

  .interest-manager-heading,
  .interest-manager-footer,
  .onboarding-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-manager-heading > .secondary-button,
  .interest-manager-footer > .primary-button,
  .onboarding-footer > .primary-button {
    width: 100%;
  }

  .interest-selector,
  .onboarding-interest-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-modal {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .onboarding-heading h2 {
    font-size: 30px;
  }

  .article-recommendations-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-editor {
    grid-template-columns: 1fr;
  }

  .blog-editor {
    grid-template-columns: 1fr;
  }

  .blog-image-preview,
  .blog-admin-row {
    grid-template-columns: 1fr;
  }

  .blog-admin-media {
    min-height: 160px;
  }

  .blog-admin-row .status-pill,
  .blog-admin-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .user-search-row,
  .user-controls {
    grid-template-columns: 1fr;
  }

  .user-admin-row,
  .blog-admin-row,
  .plan-admin-row,
  .category-row,
  .compact-list article,
  .promotion-list article,
  .queue-row,
  .inventory-row {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .user-actions,
  .settings-actions,
  .blog-admin-actions,
  .category-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .user-actions > button,
  .settings-actions > button,
  .blog-admin-actions > button,
  .category-actions > button,
  .export-grid > button {
    min-width: 0;
    max-width: 100%;
  }

  .user-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-admin-row {
    grid-template-columns: 1fr;
  }

  .ops-table {
    max-width: calc(100vw - 24px);
  }

  .ops-table-head,
  .ops-table-row {
    min-width: 620px;
    gap: 10px;
    padding: 11px 12px;
  }

  .compact-ops .ops-table-head,
  .compact-ops .ops-table-row {
    min-width: 520px;
  }

  .admin-form-modal {
    width: min(100%, calc(100vw - 24px));
  }

  .plan-admin-row > div:last-child {
    justify-content: flex-start;
  }

  .article-visual {
    min-height: 220px;
  }

  .article-actions {
    overflow-x: auto;
  }

  .paywall-actions,
  .studio-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .title-input {
    min-height: 130px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px 38px;
  }

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

  .search-shell {
    grid-column: 1 / -1;
    order: 3;
  }

  .search-autocomplete {
    width: 100%;
  }

  .search-page,
  .profile-page,
  .curated-list-page {
    padding: 28px 16px 48px;
  }

  .search-page-heading {
    gap: 18px;
  }

  .search-page-heading h1,
  .profile-hero h1,
  .curated-list-header h1 {
    font-size: 38px;
  }

  .search-filter-bar {
    grid-template-columns: 1fr;
  }

  .search-discovery-rail,
  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
  }

  .profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }

  .profile-title-row,
  .curated-list-header,
  .article-author-row,
  .reading-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-title-row {
    display: flex;
  }

  .curated-list-header,
  .article-author-row,
  .reading-history-heading {
    display: flex;
  }

  .continue-reading-list,
  .continue-reading.dashboard .continue-reading-list,
  .following-columns,
  .following-lists {
    grid-template-columns: 1fr;
  }

  .following-lists {
    display: grid;
  }

  .reading-history-heading > div:last-child {
    align-items: stretch;
    width: 100%;
    flex-direction: column;
  }

  .reading-history-heading label,
  .reading-history-heading input {
    width: 100%;
  }

  .history-list > article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .history-status {
    grid-column: 1;
    padding-left: 48px;
  }

  .interactive-options > button {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .interactive-options i {
    grid-column: 2;
  }

  .comments-heading,
  .comment-composer > div > div,
  .interactive-card-heading,
  .interactive-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-replies {
    margin-left: 14px;
    padding-left: 10px;
  }

  .interactive-add-actions { justify-content: flex-start; }
  .interactive-editor-card-header { align-items: stretch; flex-direction: column; }
  .interactive-editor-fields { grid-template-columns: 1fr; }
}

.workspace-tabs,
.workspace-commandbar,
.analytics-toolbar,
.segment-builder,
.ops-filterbar,
.ai-panel-header,
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.workspace-tabs button {
  padding: 13px 4px 11px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.workspace-tabs button.active {
  color: var(--text);
  border-color: var(--accent);
}

.creator-workspace {
  min-width: 0;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3px;
  border-radius: 7px;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.segmented-control button.active {
  background: var(--accent);
  color: #fff;
}

.segmented-control.compact button {
  min-height: 28px;
  padding: 0 8px;
}

.calendar-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.calendar-day-name {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.calendar-cell {
  min-height: 128px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-cell > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 12px;
  color: var(--muted);
}

.calendar-cell.today > span {
  border-radius: 50%;
  background: var(--accent);
  color: white;
}

.calendar-event {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 7px;
  border-left: 3px solid #237456;
  background: color-mix(in srgb, #237456 9%, var(--surface));
  text-align: left;
}

.calendar-event.newsletter { border-color: #3b6fc4; background: color-mix(in srgb, #3b6fc4 9%, var(--surface)); }
.calendar-event.campaign { border-color: #aa5b22; background: color-mix(in srgb, #aa5b22 9%, var(--surface)); }
.calendar-event small,
.calendar-event em,
.calendar-event strong { display: block; font-style: normal; }
.calendar-event small,
.calendar-event em { font-size: 9px; color: var(--muted); }
.calendar-event strong { margin: 3px 0; font-size: 11px; line-height: 1.3; }

.ops-table {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.ops-table-head,
.ops-table-row {
  display: grid;
  grid-template-columns: .7fr 1.5fr .8fr 1fr .8fr .8fr;
  gap: 14px;
  align-items: center;
  min-width: 760px;
  padding: 12px 14px;
}

.ops-table-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-table-row {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.ops-table-row:last-child { border-bottom: 0; }
.ops-table-row > button { color: var(--accent); text-align: left; }

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
}

.pipeline-board > section {
  min-height: 430px;
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.pipeline-board header,
.pipeline-board article > * { display: block; }
.pipeline-board header { display: flex; justify-content: space-between; padding: 5px 3px 12px; }
.pipeline-board header span { color: var(--muted); }
.pipeline-board article { margin-bottom: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.pipeline-board article strong { margin: 7px 0 12px; line-height: 1.35; }
.pipeline-board article small,
.pipeline-board article span,
.pipeline-board article time { color: var(--muted); font-size: 10px; }
.pipeline-board article button { margin-top: 12px; color: var(--accent); font-size: 11px; font-weight: 700; }
.pipeline-empty { padding: 22px 6px; color: var(--muted); font-size: 12px; }

.analytics-toolbar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.analytics-toolbar > div span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.analytics-toolbar select { margin-left: auto; }

.analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.analytics-metric-grid article {
  min-height: 95px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.analytics-metric-grid span,
.analytics-metric-grid small { display: block; color: var(--muted); font-size: 10px; }
.analytics-metric-grid strong { display: block; margin: 9px 0 5px; font-size: 21px; }
.analytics-metric-grid small { color: var(--accent); }

.analytics-split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr);
  gap: 16px;
}

.analytics-chart,
.analytics-breakdown,
.health-queue {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.analytics-chart header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.analytics-chart h2,
.analytics-breakdown h2,
.health-queue h2 { margin: 0; font-size: 16px; }
.analytics-chart p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.chart-legend { display: flex; gap: 12px; font-size: 10px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; background: var(--accent); }
.chart-legend span:last-child i { background: #d19b42; }

.line-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 230px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.line-chart > i {
  position: relative;
  flex: 1;
  min-width: 8px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border-top: 2px solid var(--accent);
}

.line-chart > i > span {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 0;
  background: #d19b42;
}

.line-chart em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 8px; color: var(--muted); font-style: normal; }

.analytics-breakdown > div:not(.device-row),
.health-queue > div { margin-top: 17px; }
.analytics-breakdown div > span,
.health-queue div > span { display: flex; justify-content: space-between; font-size: 11px; }
.analytics-breakdown i,
.health-queue i { display: block; height: 5px; margin-top: 7px; background: var(--soft); }
.analytics-breakdown i b,
.health-queue i b { display: block; height: 100%; background: var(--accent); }
.analytics-breakdown h2:nth-of-type(2) { margin-top: 26px; }
.device-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.device-row span { padding: 10px; background: var(--soft); font-size: 10px; }
.device-row strong { display: block; font-size: 17px; }

.article-analytics .ops-table-head,
.article-analytics .ops-table-row { grid-template-columns: 2fr repeat(5, .7fr); }
.geo-strip,
.health-usage { display: flex; gap: 8px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); overflow-x: auto; }
.geo-strip > * { white-space: nowrap; }
.geo-strip > span { padding-left: 12px; border-left: 1px solid var(--line); font-size: 11px; }
.geo-strip b { margin-left: 8px; }

.segment-builder { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.segment-builder h2,
.commerce-columns h2 { margin: 0; font-size: 19px; }
.segment-builder p,
.commerce-columns p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.segment-builder label { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 0 10px; border: 1px solid var(--line); }
.segment-builder input { width: 200px; border: 0; background: transparent; }
.rule-library { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0; }
.rule-library button { display: flex; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); font-size: 10px; }
.segment-list > article {
  display: grid;
  grid-template-columns: minmax(0, 2fr) .6fr .7fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.segment-list article > div:first-child { display: flex; align-items: center; gap: 10px; }
.segment-list article span small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.segment-icon { display: grid; place-items: center; width: 35px; height: 35px; background: var(--soft); }

.commerce-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 18px;
}
.commerce-columns > section { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.commerce-columns header { display: flex; justify-content: space-between; gap: 12px; }
.promotion-list { margin-top: 18px; }
.promotion-list article { display: grid; grid-template-columns: 1.5fr .6fr .6fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.publication-admin-list article { grid-template-columns: minmax(180px, 1fr) repeat(4, auto); }
.promotion-list small { display: block; color: var(--muted); }
.offers-panel { min-width: 0; }
.offers-panel header .primary-button { flex: 0 0 auto; }
.offer-list .offer-row {
  grid-template-columns: minmax(230px, 1.6fr) minmax(90px, .45fr) minmax(95px, .45fr) auto;
  min-height: 76px;
}
.offer-identity { min-width: 0; }
.offer-identity > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.offer-identity > span > strong {
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: .04em;
}
.offer-identity small {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.offer-status {
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
}
.offer-status.active { color: var(--accent-dark); background: var(--soft-2); }
.offer-status.inactive,
.offer-status.expired,
.offer-status.exhausted { color: var(--muted); background: var(--soft); }
.offer-status.scheduled { color: #8a5c14; background: var(--amber); }
.offer-value { font-size: 13px; }
.offer-usage strong,
.offer-usage small { display: block; }
.offer-usage small { margin-top: 3px; }
.offer-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
}
.offer-empty-state {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}
.offer-empty-state span { color: var(--muted); }
.gift-membership { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; background: var(--soft); }
.gift-membership button { margin-left: auto; }
.tip-settings label { display: block; margin-top: 18px; }
.tip-settings .checkbox-field { display: flex; }
.number-affix { display: flex; align-items: center; max-width: 150px; margin-top: 6px; border: 1px solid var(--line); }
.number-affix input { border: 0; }
.number-affix b { padding: 0 10px; }
.tip-example { margin: 18px 0; padding: 14px; background: var(--soft); }
.tip-example > * { display: block; }
.tip-example strong { margin: 6px 0; }
.tip-example small { color: var(--muted); }
.gateway-mini-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gateway-mini-list span { display: flex; gap: 5px; padding: 6px 8px; border: 1px solid var(--line); font-size: 9px; }

.operations-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.operations-summary article { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.operations-summary span { display: block; color: var(--muted); font-size: 10px; }
.operations-summary strong { display: block; margin-top: 7px; font-size: 22px; }
.ops-filterbar { justify-content: flex-start; }
.moderation-table .ops-table-head,
.moderation-table .ops-table-row { grid-template-columns: .6fr .9fr 2fr .6fr .8fr .9fr; }
.risk { font-weight: 800; }
.risk.high { color: #b23d3d; }
.risk.medium { color: #9b671f; }

.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}
.protection-grid > div,
.protection-grid article { background: var(--surface); padding: 16px; }
.protection-grid > div { grid-column: span 3; }
.protection-grid h2 { margin: 0; font-size: 17px; }
.protection-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.protection-grid article { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.protection-grid small { display: block; color: var(--muted); font-size: 9px; }
.protection-grid b { color: var(--accent); font-size: 9px; }

.copyright-workflow { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.copyright-workflow span { padding: 7px 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.copyright-workflow span.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.copyright-workflow i { width: 28px; height: 1px; background: var(--line); }
.copyright-table .ops-table-head,
.copyright-table .ops-table-row { grid-template-columns: .6fr 1.5fr 1fr .6fr .6fr .9fr; }
.match-score { color: #b23d3d; font-weight: 800; }
.evidence-panel { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 17px; border: 1px solid var(--line); }
.evidence-panel > div { margin-right: auto; }
.evidence-panel h2 { margin: 0; font-size: 16px; }
.evidence-panel p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.support-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.35fr) minmax(230px, .55fr); gap: 18px; }
.ticket-list,
.help-library,
.support-detail { border: 1px solid var(--line); background: var(--surface); }
.ticket-list header { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.ticket-list h2,
.help-library h2 { margin: 0; font-size: 17px; }
.ticket-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.ticket-row { display: flex; justify-content: space-between; width: 100%; padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.ticket-row > span:last-child { text-align: right; }
.ticket-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ticket-row.urgent { border-left: 3px solid #b23d3d; }
.ticket-row.active { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.support-compose,
.support-thread { display: grid; gap: 14px; padding: 18px; }
.support-compose header h2,
.support-thread header h2 { margin: 0; font-size: 18px; }
.support-compose header p,
.support-thread header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.support-compose label,
.support-reply-box label,
.support-staff-controls label { display: grid; gap: 6px; }
.support-compose label > span,
.support-reply-box label > span,
.support-staff-controls label > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.support-form-grid,
.support-staff-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.support-staff-controls { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; padding: 12px; background: var(--soft); }
.support-message-list { display: grid; gap: 10px; max-height: 480px; overflow: auto; padding-right: 4px; }
.support-message { padding: 12px; border: 1px solid var(--line); background: var(--soft); }
.support-message.internal { border-style: dashed; background: color-mix(in srgb, #d19b42 10%, var(--surface)); }
.support-message strong,
.support-message small { display: block; }
.support-message small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.support-message p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.support-attachments a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--accent-strong); font-size: 11px; font-weight: 800; text-decoration: none; }
.support-reply-box { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.help-library { padding: 18px; }
.help-library > button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.help-library small { display: block; color: var(--muted); font-size: 9px; }
.support-contact { margin-top: 18px; padding: 14px; background: var(--soft); }
.support-contact p { color: var(--muted); font-size: 11px; }

.health-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.health-banner > div { margin-right: auto; }
.health-banner p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.health-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.health-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.health-service-grid article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); background: var(--surface); }
.health-service-grid small { display: block; color: var(--accent); font-size: 9px; }
.health-service-grid article.degraded small,
.health-service-grid article.degraded > span { color: #a66a20; }
.health-chart { height: 210px; }
.health-usage { display: grid; grid-template-columns: repeat(6, 1fr); }
.health-usage span { min-width: 120px; padding: 8px 12px; border-right: 1px solid var(--line); }
.health-usage small { display: block; color: var(--muted); font-size: 9px; }
.health-usage strong { display: block; margin-top: 4px; font-size: 13px; }

.account-center { max-width: 1180px; margin: 0 auto; padding: 46px 24px 70px; }
.account-center > header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-center > header h1 { margin: 0; font-family: var(--serif); font-size: 44px; }
.account-center > header p { color: var(--muted); }
.account-center > .support-layout,
.account-center > .security-grid,
.account-center > .privacy-layout { margin-top: 20px; }

.security-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: 18px; }
.security-score { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.security-score > div { margin-right: auto; }
.security-score strong { display: block; margin-bottom: 4px; }
.security-score p { margin: 0; color: var(--muted); font-size: 11px; }
.security-controls { margin-top: 14px; border: 1px solid var(--line); }
.security-controls article,
.session-panel article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); background: var(--surface); }
.security-controls small,
.session-panel small { display: block; color: var(--muted); font-size: 9px; }
.session-panel { margin-top: 14px; border: 1px solid var(--line); }
.session-panel header { display: flex; justify-content: space-between; align-items: center; padding: 13px; }
.session-panel h2 { margin: 0; font-size: 15px; }
.audit-panel { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.audit-panel h2 { margin: 0 0 16px; font-size: 16px; }
.audit-panel article { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding-bottom: 18px; }
.audit-panel article > span { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.audit-panel small,
.audit-panel time { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.backup-state { margin-top: 14px; padding: 13px; background: var(--soft); }
.backup-state > * { display: block; }
.backup-state span,
.backup-state small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.privacy-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr); gap: 18px; }
.privacy-controls > section,
.privacy-actions { padding: 17px; border: 1px solid var(--line); background: var(--surface); }
.privacy-controls > section + section { margin-top: 10px; }
.privacy-controls label,
.privacy-controls article { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy-controls h2 { margin: 0; font-size: 16px; }
.privacy-controls p { color: var(--muted); font-size: 11px; }
.privacy-controls small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.privacy-controls section > label + label,
.privacy-controls section > article + article { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.privacy-controls article > span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--soft); }
.privacy-controls article > div { margin-right: auto; }
.privacy-actions { align-self: start; }
.privacy-actions h2 { margin-top: 0; font-size: 17px; }
.privacy-actions > button { display: flex; gap: 10px; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; }
.privacy-actions small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.privacy-actions .danger-zone { color: #a83d3d; }
.privacy-note { margin-top: 16px; padding: 11px; background: var(--soft); color: var(--muted); font-size: 9px; }

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 4px 38px 22px 0;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.auth-tabs button {
  min-height: 36px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.auth-form {
  display: grid;
  gap: 13px;
  margin: 20px 0;
}

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

.auth-form label > span {
  font-size: 11px;
  font-weight: 800;
}

.auth-form input {
  min-height: 44px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.password-toggle {
  min-width: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.auth-form > small {
  margin-top: -5px;
  color: var(--muted);
  font-size: 9px;
}

.text-button.auth-forgot {
  margin-top: -6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.access-denied {
  max-width: 520px;
  margin: 70px auto;
  padding: 34px;
  border: 1px solid var(--line);
  text-align: center;
}

.media-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.media-picker > strong {
  grid-column: 1 / -1;
  font-size: 11px;
}

.media-picker button {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  text-align: left;
}

.media-picker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.media-picker span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-denied h1 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 36px;
}

.access-denied p {
  margin: 0 0 20px;
  color: var(--muted);
}

.member-app .admin-sidebar-account {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
}

.member-main {
  min-width: 0;
}

.member-page-header {
  align-items: center;
}

.member-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-metrics {
  margin-bottom: 16px;
}

.member-overview-grid,
.member-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.member-overview-grid .work-panel,
.member-two-column .work-panel {
  min-width: 0;
}

.member-shortcuts > button,
.dashboard-setting-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.member-shortcuts > button:last-child,
.dashboard-setting-link:last-child {
  border-bottom: 0;
}

.compact-interest-list {
  display: grid;
  gap: 15px;
  margin: 16px 0 20px;
}

.compact-interest-list > div > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.compact-interest-list small {
  color: var(--muted);
  font-size: 9px;
}

.compact-interest-list i {
  display: block;
  height: 5px;
  background: var(--soft);
}

.compact-interest-list i b {
  display: block;
  height: 100%;
  background: var(--accent);
}

.member-app .continue-reading {
  margin-top: 0;
}

.member-app .interest-manager,
.member-app .following-manager,
.member-app .reading-history {
  margin-top: 0;
  background: var(--surface);
}

.member-benefit-list {
  display: grid;
  gap: 11px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.member-benefit-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.writer-story-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.writer-analytics-row,
.earnings-row,
.moderator-activity-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.writer-analytics-row {
  grid-template-columns: minmax(0, 1.6fr) repeat(3, .65fr);
  font-size: 11px;
}

.earnings-row,
.moderator-activity-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.earnings-row small,
.moderator-activity-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.earnings-row b {
  color: var(--accent);
}

.ai-creator-panel { padding: 0; overflow: hidden; }
.ai-panel-header { padding: 16px; border-bottom: 1px solid var(--line); }
.ai-panel-header .panel-title { margin: 0; }
.ai-panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ai-tools { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px; }
.ai-tools button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.quality-review-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quality-review-grid article { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quality-review-grid article.warn > span { color: #a66a20; }
.quality-review-grid small { display: block; color: var(--muted); font-size: 9px; }
.quality-review-grid button { grid-column: 2; color: var(--accent); font-size: 9px; text-align: left; }
.metadata-suggestions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.metadata-suggestions section { padding: 14px; background: var(--surface); }
.metadata-suggestions section > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.metadata-suggestions button { display: inline-flex; margin: 5px 5px 0 0; padding: 6px 8px; border: 1px solid var(--line); font-size: 9px; }
.metadata-suggestions > .primary-button { margin: 14px; }
.ai-result { margin: 0 16px 16px; padding: 14px; border-left: 3px solid var(--accent); background: var(--soft); }
.ai-result header { display: flex; justify-content: space-between; gap: 12px; }
.ai-result header span { color: var(--muted); font-size: 9px; }
.ai-result p { font-size: 12px; line-height: 1.55; }
.ai-result.loading { display: flex; align-items: center; gap: 9px; }
.ai-result.loading > span { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reader-toolbar {
  position: sticky;
  z-index: 5;
  top: 72px;
  margin: -8px 0 30px;
  padding: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.reader-toolbar > button { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 8px; font-size: 10px; }
.reader-toolbar > button.active { background: var(--ink); color: var(--surface); }
.reader-toolbar > button.exit-focus { border-color: var(--ink); font-weight: 800; }
.reader-toolbar select { max-width: 100px; }
.translation-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: -18px 0 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.translation-status .secondary-button { min-height: 36px; padding: 7px 10px; }
.remaining-time { margin-left: auto; color: var(--muted); font-size: 10px; }
.reader-toc { margin: -18px 0 24px; border-bottom: 1px solid var(--line); }
.reader-toc summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.reader-toc nav { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 12px; }
.reader-toc a { padding: 6px 8px; border: 1px solid var(--line); color: var(--text); font-size: 9px; text-decoration: none; }
.article-content { font-size: calc(1em * var(--reader-scale, 1)); }
.reader-sans .article-content,
.reader-sans .article-page h1 { font-family: var(--sans); }
.focus-reading .site-header,
.focus-reading .site-footer,
.focus-reading .article-follow-actions,
.focus-reading .article-visual,
.focus-reading .share-panel,
.focus-reading .article-recommendations,
.focus-reading .comments-section { display: none; }
.focus-reading .article-shell { padding-top: 18px; }
.focus-reading .reader-toolbar { top: 18px; }
.focus-exit-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  font-size: 11px;
  font-weight: 800;
}

.article-insights { margin: 26px 0; padding: 16px; border: 1px solid var(--line); background: var(--soft); }
.article-insights summary { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.article-insights p,
.article-insights li { font-size: 13px; line-height: 1.55; }
.article-insights > div { display: flex; gap: 8px; flex-wrap: wrap; }
.article-insights > div span { padding: 6px 8px; background: var(--surface); font-size: 9px; }
.recommendation-explainer { margin: 12px 0 24px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.recommendation-explainer header { display: flex; justify-content: space-between; gap: 12px; }
.recommendation-explainer h2 { margin: 0; font-size: 17px; }
.recommendation-explainer p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.recommendation-factors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.recommendation-factors span { padding: 10px; background: var(--soft); font-size: 9px; }
.recommendation-factors strong { display: block; margin-bottom: 3px; font-size: 11px; }
.recommendation-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.recommendation-controls button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); font-size: 9px; }
.writer-tip { margin: 32px 0; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.writer-tip > div:first-child { display: flex; gap: 11px; }
.writer-tip h2 { margin: 0; font-size: 18px; }
.writer-tip p { margin: 4px 0 12px; color: var(--muted); font-size: 11px; }
.tip-amounts { display: flex; gap: 7px; margin: 10px 0; }
.tip-amounts button { padding: 8px 10px; border: 1px solid var(--line); font-size: 10px; }
.tip-amounts button.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.writer-tip > span { display: block; margin-top: 10px; color: var(--accent); font-size: 10px; }

.production-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.production-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.production-panel.wide-panel {
  grid-column: 1 / -1;
}
.production-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.production-panel label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.production-panel input,
.production-panel select,
.production-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.production-cleanup-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.production-cleanup-toolbar .checkbox-field {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}
.production-log-list article {
  gap: 10px;
}
.production-record-check {
  width: auto;
  min-width: 22px;
}
.production-record-check input {
  width: 16px;
  min-height: 16px;
}
.seo-audit-page {
  display: grid;
  gap: 18px;
}
.seo-audit-table b {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.good-score {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-strong);
}
.okay-score {
  background: color-mix(in srgb, #d19b42 16%, var(--surface));
  color: #8a570e;
}
.poor-score {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}
.installer-grid,
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.installer-steps,
.feature-flag-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.installer-steps button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.installer-steps button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.installer-steps button.done {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.installer-guide {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.installer-guide strong,
.installer-guide p {
  display: block;
  margin: 0 0 8px;
}
.collaboration-panel textarea {
  min-height: 96px;
}
.admin-form-modal {
  max-width: 640px;
}
.discount-form-modal {
  width: min(760px, 100%);
  max-width: 760px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.discount-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.discount-form-grid > label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}
.discount-form-grid > label > span {
  font-size: 12px;
  font-weight: 800;
}
.discount-form-grid > label > small,
.discount-active-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.discount-code-field,
.discount-description-field,
.discount-active-field {
  grid-column: 1 / -1;
}
.discount-code-field input {
  text-transform: uppercase;
  letter-spacing: .06em;
}
.discount-value-input {
  display: flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--muted));
  border-radius: 8px;
  background: var(--input);
  overflow: hidden;
}
.discount-value-input b {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 44px;
  border-right: 1px solid var(--line);
}
.discount-value-input input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.discount-active-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.discount-active-field input {
  width: 20px;
  height: 20px;
}
.discount-active-field span {
  display: grid;
  gap: 2px;
}
.form-error {
  border-color: color-mix(in srgb, #a83232 45%, var(--line));
  color: #a83232;
}
.installer-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.installer-grid strong,
.installer-grid small {
  display: block;
}
.installer-grid small {
  margin-top: 4px;
  color: var(--muted);
}
.deployment-log {
  display: block;
  max-height: 8rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.compact-list {
  display: grid;
  gap: 8px;
}
.compact-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.compact-list strong,
.compact-list small {
  display: block;
}
.compact-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.compact-ops .ops-table-row {
  grid-template-columns: 1.2fr 2fr .4fr;
}
.invite-center .work-panel {
  max-width: 620px;
}

[dir="rtl"] .admin-sidebar { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .story-card,
[dir="rtl"] .article-page,
[dir="rtl"] .ticket-row { text-align: right; }

@media (max-width: 980px) {
  .profile-settings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .password-fields {
    grid-template-columns: 1fr;
  }

  .member-overview-grid,
  .member-two-column {
    grid-template-columns: 1fr;
  }

  .analytics-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .analytics-split,
  .commerce-columns,
  .production-grid,
  .support-layout,
  .security-grid,
  .privacy-layout,
  .author-program-hero,
  .author-program-flow { grid-template-columns: 1fr; }
  .author-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-review-grid { grid-template-columns: repeat(2, 1fr); }
  .health-service-grid { grid-template-columns: repeat(2, 1fr); }
  .health-usage { grid-template-columns: repeat(3, 1fr); }
  .protection-grid { grid-template-columns: repeat(2, 1fr); }
  .protection-grid > div { grid-column: span 2; }
  .reader-toolbar { top: 62px; overflow-x: auto; justify-content: flex-start; }
  .reader-toolbar > * { flex: 0 0 auto; }
  .remaining-time { margin-left: 0; }
}

@media (max-width: 820px) {
  .profile-settings-layout {
    grid-template-columns: 1fr;
  }

  .profile-settings-sidebar {
    position: static;
  }

  .profile-settings-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .profile-settings-heading,
  .profile-danger-zone,
  .profile-deletion-scheduled,
  .profile-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-settings-heading > button,
  .profile-danger-zone > button,
  .profile-deletion-scheduled > button,
  .profile-save-row > button {
    width: 100%;
  }

  .profile-settings-layout {
    grid-template-columns: 1fr;
  }

  .profile-settings-sidebar {
    position: static;
  }

  .profile-settings-nav {
    display: none;
  }

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

  .profile-form-grid label.wide,
  .profile-social-grid label:last-child {
    grid-column: auto;
  }

  .connected-account-list article,
  .account-data-actions article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .connected-account-list article > button,
  .account-data-actions article > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .focus-exit-floating {
    right: 12px;
    bottom: 12px;
  }

  .member-page-header,
  .member-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .member-header-actions > button {
    width: 100%;
  }

  .writer-analytics-row {
    grid-template-columns: 1fr 1fr;
  }

  .writer-analytics-row strong {
    grid-column: 1 / -1;
  }

  .workspace-commandbar,
  .analytics-toolbar,
  .segment-builder,
  .ai-panel-header,
  .health-banner,
  .evidence-panel { align-items: stretch; flex-direction: column; }
  .support-form-grid,
  .support-staff-controls,
  .author-benefit-grid,
  .create-user-profile-grid,
  .onboarding-plan-grid { grid-template-columns: 1fr; }
  .become-author-page { padding: 28px 16px 52px; }
  .author-program-hero h1 { font-size: 40px; }
  .create-user-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .create-user-submit-bar span {
    margin-right: 0;
  }
  .support-message-list { max-height: none; }
  .workspace-tabs { overflow-x: auto; }
  .workspace-tabs button { flex: 0 0 auto; }
  .calendar-range { justify-content: space-between; }
  .editorial-calendar { min-width: 760px; }
  .creator-workspace { overflow-x: auto; }
  .analytics-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .operations-summary { grid-template-columns: repeat(2, 1fr); }
  .quality-review-grid,
  .metadata-suggestions,
  .health-service-grid,
  .protection-grid { grid-template-columns: 1fr; }
  .protection-grid > div { grid-column: auto; }
  .segment-list > article,
  .promotion-list article { grid-template-columns: 1fr; }
  .segment-list article > div:last-child { display: flex; gap: 6px; }
  .offers-panel header,
  .gift-membership {
    align-items: stretch;
    flex-direction: column;
  }
  .offers-panel header .primary-button,
  .gift-membership button {
    width: 100%;
    margin-left: 0;
  }
  .offer-controls { justify-content: flex-start; }
  .discount-form-grid { grid-template-columns: 1fr; }
  .discount-code-field,
  .discount-description-field,
  .discount-active-field { grid-column: auto; }
  .recommendation-factors { grid-template-columns: 1fr; }
  .account-center { padding: 28px 16px 48px; }
  .account-center > header h1 { font-size: 34px; }
  .health-usage { grid-template-columns: repeat(2, 1fr); }
  .production-panel.wide-panel { grid-column: auto; }
  .production-grid,
  .production-panel,
  .installer-grid,
  .export-grid,
  .credential-preset-grid,
  .feature-flag-presets {
    min-width: 0;
    max-width: 100%;
  }
  .installer-grid,
  .export-grid { grid-template-columns: minmax(0, 1fr); }
  .credential-preset-grid,
  .feature-flag-presets,
  .installer-steps {
    align-items: stretch;
  }
  .credential-preset-grid > button,
  .feature-flag-presets > button,
  .installer-steps > button {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .compact-list article {
    align-items: stretch;
    flex-direction: column;
  }
  .copyright-workflow { justify-content: flex-start; overflow-x: auto; }
  .copyright-workflow > * { flex: 0 0 auto; }
  .reader-toolbar { margin-bottom: 18px; }
  .article-insights > div { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
  }

  .toggle span,
  .resource-card,
  .profile-completeness > i span,
  .profile-preference-list input[type="checkbox"],
  .profile-preference-list input[type="checkbox"]::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .menu-management-grid { grid-template-columns: 1fr; }
  .menu-editor-list article { grid-template-columns: 28px 1fr; align-items: center; }
  .menu-editor-list article label, .menu-editor-actions { grid-column: 2; }
}

/* Resources marketplace */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.resources-page, .resource-detail-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 90px; }
.resources-hero { max-width: 820px; padding: 30px 0 38px; }
.resources-hero h1 { margin: 10px 0 16px; font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.resources-hero > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.resources-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: .86rem; }
.resources-trust span { display: inline-flex; align-items: center; gap: 7px; }
.resource-filter-bar { position: sticky; top: 76px; z-index: 7; display: grid; grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(130px, auto)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 12px 40px rgba(20, 35, 27, .08); backdrop-filter: blur(18px); }
.resources-page .resource-filter-bar { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.resource-filter-bar select, .resource-search { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--input); color: var(--text); }
.resource-filter-bar select { padding: 0 34px 0 12px; }
.resource-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.resource-search input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; }
.resource-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 16px; }
.resource-results-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.resource-results-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.resource-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 46px rgba(20, 35, 27, .1); }
.resource-card-media { position: relative; display: grid; width: 100%; height: 205px; place-items: center; overflow: hidden; border: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), color-mix(in srgb, #dca15d 12%, var(--surface))); color: var(--accent); cursor: pointer; }
.resource-card-media img { width: 100%; height: 100%; object-fit: cover; }
.resource-card-media i { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(14, 25, 20, .76); color: #fff; font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.resource-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.resource-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .76rem; }
.resource-card-meta b { padding: 4px 8px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.resource-card-meta b.paid { color: #8a5421; background: rgba(220, 161, 93, .14); }
.resource-card h2 { margin: 12px 0 8px; font-size: 1.18rem; line-height: 1.25; }
.resource-card h2 button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.resource-card p { min-height: 3.2em; margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }
.resource-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.resource-card-foot small { max-width: 55%; color: var(--muted); line-height: 1.45; }
.resource-empty { grid-column: 1 / -1; display: grid; min-height: 260px; place-items: center; align-content: center; gap: 8px; padding: 38px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.resource-empty h1, .resource-empty h2, .resource-empty p { margin: 0; }
.resource-detail-page > .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; }
.resource-detail-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 56px; align-items: start; }
.resource-featured-image, .resource-featured-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; object-fit: cover; }
.resource-featured-placeholder { display: grid; place-items: center; align-content: center; gap: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), color-mix(in srgb, #dca15d 14%, var(--surface))); color: var(--accent); }
.resource-preview-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.resource-preview-strip img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; }
.resource-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.resource-badges span { padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.resource-detail-copy h1 { margin: 17px 0 14px; font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.resource-lead { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.resource-price { display: flex; align-items: baseline; gap: 10px; margin: 24px 0; }
.resource-price strong { font-size: 2rem; }
.resource-price del { color: var(--muted); }
.resource-price span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.resource-detail-cta { display: grid; gap: 9px; text-align: center; }
.resource-sample-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; text-decoration: none; }
.resource-owned-note { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.resource-security-note, .resource-private-callout { display: flex; gap: 11px; padding: 14px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--muted); font-size: .8rem; line-height: 1.5; }
.resource-security-note strong, .resource-private-callout strong { display: block; color: var(--text); }
.resource-detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 54px; margin-top: 64px; }
.resource-detail-content article h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.8rem; }
.resource-detail-content article h2:not(:first-child) { margin-top: 36px; }
.resource-description, .resource-detail-content article p { color: var(--muted); line-height: 1.8; }
.resource-detail-content aside { display: grid; gap: 14px; align-content: start; }
.resource-detail-content aside h2 { margin: 0 0 14px; }
.resource-detail-content aside ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.resource-detail-content aside li { display: flex; gap: 8px; color: var(--muted); }
.resource-facts { display: grid; gap: 12px; }
.resource-facts span { display: flex; justify-content: space-between; gap: 20px; }
.resource-facts span b { color: var(--muted); }
.resource-checkout-modal { position: relative; width: min(480px, calc(100% - 28px)); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .24); }
.resource-checkout-modal h2 { margin: 8px 36px 22px 0; font-size: 1.5rem; }
.resource-checkout-price { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-block: 1px solid var(--line); }
.resource-checkout-price strong { font-size: 1.45rem; }
.resource-checkout-modal fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 0; margin: 0; border: 0; }
.resource-checkout-modal legend { margin-bottom: 8px; font-size: .82rem; font-weight: 700; }
.gateway-choice { min-height: 58px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); text-align: left; cursor: pointer; }
.gateway-choice.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gateway-choice small { display: block; color: var(--muted); }
.resource-checkout-security { display: flex; justify-content: center; gap: 6px; margin-top: 12px; color: var(--muted); }
.resource-library-summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; margin-bottom: 18px; }
.resource-library-summary > div { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.resource-library-summary strong { font-size: 1.45rem; }
.resource-library-summary span { color: var(--muted); font-size: .78rem; }
.resource-library-summary > button { align-self: center; min-height: 48px; }
.library-filters { position: static; grid-template-columns: minmax(220px, 1fr) repeat(4, auto); box-shadow: none; }
.resource-library-grid { display: grid; gap: 12px; margin-top: 18px; }
.resource-library-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.resource-library-card > img, .resource-library-icon { width: 76px; height: 62px; border-radius: 10px; object-fit: cover; }
.resource-library-icon { display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.resource-library-card h2 { margin: 7px 0 3px; font-size: 1rem; }
.resource-library-card p, .resource-library-card small { margin: 0; color: var(--muted); font-size: .76rem; }
.resource-library-actions { display: flex; gap: 7px; }
.resource-update-badge { display: inline-block; margin: 4px 8px 3px 0; color: var(--accent); font-size: .72rem; font-weight: 700; }
.resource-orders-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.resource-orders-panel summary { padding: 16px; cursor: pointer; font-weight: 700; }
.resource-orders-table { padding: 0 16px 16px; }
.resource-orders-table article { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.resource-orders-table small { display: block; color: var(--muted); }
.admin-resources-panel { overflow-x: auto; }
.admin-resource-table { min-width: 0; }
.admin-resource-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(72px, .6fr) minmax(92px, .7fr) minmax(70px, .45fr) minmax(76px, .5fr) minmax(90px, .7fr) minmax(138px, .9fr); gap: 12px; align-items: center; min-height: 70px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.admin-resource-row.head { min-height: 40px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-resource-name { display: flex; align-items: center; gap: 11px; }
.admin-resource-name img, .admin-resource-name > i { width: 48px; height: 42px; border-radius: 8px; object-fit: cover; }
.admin-resource-name > i { display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.admin-resource-name small, .admin-resource-row > span > small { display: block; margin-top: 3px; color: var(--muted); }
.admin-resource-actions { display: flex; gap: 6px; }
.admin-resource-actions button { min-height: 44px; }
.admin-resource-owner-cell { min-height: 44px; display: grid; place-items: center start; border-radius: 8px; color: var(--accent); font-weight: 800; cursor: pointer; }
.admin-resource-owner-cell:hover, .admin-resource-owner-cell:focus-visible { background: color-mix(in srgb, var(--accent) 9%, transparent); outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.text-button.danger { color: #b1433f; }
.resource-owner-modal { position: relative; width: min(760px, calc(100% - 28px)); max-height: min(820px, calc(100dvh - 32px)); overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .26); }
.resource-owner-modal h2 { margin: 8px 36px 18px 0; font-size: 1.55rem; }
.resource-owner-modal h3 { margin: 24px 0 10px; font-size: .95rem; }
.resource-owner-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resource-owner-summary span { padding: 12px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: .75rem; }
.resource-owner-summary strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 1.2rem; }
.resource-owner-list { display: grid; gap: 8px; }
.resource-owner-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.resource-owner-list small { display: block; margin-top: 3px; color: var(--muted); }
.resource-owner-modal details { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; }
.resource-owner-modal summary { padding: 13px; cursor: pointer; font-weight: 700; }
.resource-security-list { display: grid; max-height: 230px; overflow-y: auto; padding: 0 13px 13px; }
.resource-security-list > span { padding: 9px 0; border-top: 1px solid var(--line); }
.resource-security-list small { display: block; margin-top: 3px; color: var(--muted); }
.resource-admin-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.resource-editor-main, .resource-editor-sidebar { display: grid; gap: 18px; }
.resource-editor-sidebar { position: sticky; top: 20px; }
.resource-admin-editor label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.resource-admin-editor input, .resource-admin-editor textarea, .resource-admin-editor select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--input); color: var(--text); font: inherit; }
.resource-admin-editor textarea { resize: vertical; line-height: 1.55; }
.resource-admin-editor .settings-form-grid .wide { grid-column: 1 / -1; }
.resource-thumbnail-upload small { color: var(--muted); font-weight: 400; }
.resource-thumbnail-preview { width: min(100%, 420px); aspect-ratio: 16 / 9; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; background: var(--soft); }
.resource-file-panel { display: grid; gap: 14px; }
.resource-private-callout { margin-top: 0; }

.resources-page .primary-button,
.resources-page .secondary-button,
.resource-detail-page .primary-button,
.resource-detail-page .secondary-button,
.resource-library-summary button,
.resource-library-card button,
.resource-orders-panel button,
.resource-admin-editor button {
  min-height: 44px;
}

@media (max-width: 1180px) {
  .library-filters {
    grid-template-columns: 1fr 1fr;
  }

  .library-filters .resource-search {
    grid-column: 1 / -1;
  }

  .resource-admin-editor {
    grid-template-columns: 1fr;
  }

  .resource-editor-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .admin-resources-panel {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-resource-table {
    display: grid;
    gap: 12px;
  }

  .admin-resource-row.head {
    display: none;
  }

  .admin-resource-row:not(.head) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }

  .admin-resource-row:not(.head) > .admin-resource-name,
  .admin-resource-row:not(.head) > .admin-resource-actions {
    grid-column: 1 / -1;
  }

  .admin-resource-row:not(.head) > .admin-resource-name {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .admin-resource-row:not(.head) > span:nth-child(n+2):nth-child(-n+6)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .admin-resource-row:not(.head) > span:nth-child(2)::before { content: "Price"; }
  .admin-resource-row:not(.head) > span:nth-child(3)::before { content: "Status"; }
  .admin-resource-row:not(.head) > span:nth-child(4)::before { content: "Owners"; }
  .admin-resource-row:not(.head) > span:nth-child(5)::before { content: "Accesses"; }
  .admin-resource-row:not(.head) > span:nth-child(6)::before { content: "Revenue"; }
  .admin-resource-actions { justify-content: flex-end; }
}

@media (max-width: 980px) {
  .resource-filter-bar { position: static; grid-template-columns: 1fr 1fr; }
  .resource-search { grid-column: 1 / -1; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-detail-hero, .resource-detail-content { grid-template-columns: 1fr; gap: 32px; }
  .resource-detail-copy { max-width: 680px; }
  .resource-detail-content aside { grid-template-columns: 1fr 1fr; }
  .resource-library-summary { grid-template-columns: repeat(3, 1fr); }
  .resource-library-summary > button { grid-column: 1 / -1; }
  .resource-library-card { grid-template-columns: 64px minmax(0, 1fr); }
  .resource-library-card > img, .resource-library-icon { width: 64px; }
  .resource-library-actions { grid-column: 2; }
  .resource-admin-editor { grid-template-columns: 1fr; }
  .resource-editor-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .resources-page, .resource-detail-page { width: min(100% - 28px, 1180px); padding-top: 30px; }
  .resources-hero h1 { font-size: 2.65rem; }
  .resource-filter-bar, .resource-grid, .resource-detail-content aside, .resource-editor-sidebar { grid-template-columns: 1fr; }
  .resource-filter-bar > * { grid-column: 1; width: 100%; }
  .resource-results-head { align-items: stretch; flex-direction: column; }
  .resource-card-media { height: 190px; }
  .resource-card-foot { align-items: stretch; flex-direction: column; }
  .resource-card-foot small { max-width: none; }
  .resource-card-foot button { width: 100%; }
  .resource-detail-copy h1 { font-size: 2.45rem; }
  .resource-library-summary { grid-template-columns: 1fr; }
  .resource-library-summary > button { grid-column: 1; }
  .resource-library-card { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
  .resource-library-card > img, .resource-library-icon { width: 56px; height: 52px; }
  .resource-library-actions { grid-column: 1 / -1; }
  .resource-library-actions button { flex: 1; }
  .resource-orders-table article { grid-template-columns: 1fr auto; }
  .resource-orders-table article button { grid-column: 1 / -1; }
  .resource-checkout-modal { padding: 24px 18px; }
  .resource-checkout-modal fieldset { grid-template-columns: 1fr; }
  .resource-owner-modal { padding: 22px 16px; }
  .resource-owner-summary { grid-template-columns: 1fr; }
  .resource-owner-list article { grid-template-columns: 1fr auto; }
  .resource-owner-list article button { grid-column: 1 / -1; }
  .admin-resource-row:not(.head) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-resource-actions { justify-content: stretch; }
  .admin-resource-actions button { flex: 1; }
}

/* Business Network */
.business-network-page,
.business-profile-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 24px 76px;
}

.business-network-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, var(--soft-2), var(--surface) 58%);
}

.business-network-hero::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 290px;
  height: 290px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.business-story-block > span,
.business-form-section-head > div > span,
.business-editor-head > div > span,
.business-linked-section .section-heading span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.business-network-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.business-network-hero > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.business-network-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 780px;
  margin-top: 30px;
  padding: 8px 8px 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-network-search input {
  min-height: 46px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.capsule-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.capsule-toggle button,
.business-admin-tabs button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.capsule-toggle button.active,
.business-admin-tabs button.active {
  background: var(--ink);
  color: var(--inverse);
}

.business-network-body {
  margin-top: 34px;
}

.business-results-head {
  scroll-margin-top: 88px;
}

.business-results-head,
.business-workspace-intro,
.business-form-actions,
.business-editor-head,
.business-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.business-results-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.business-results-head > div:first-child strong {
  font-family: var(--serif);
  font-size: 34px;
}

.business-results-head > div:first-child span,
.business-results-head label span {
  color: var(--muted);
  font-size: 13px;
}

.business-results-head label {
  display: grid;
  min-width: 210px;
  gap: 5px;
}

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

.business-card {
  display: grid;
  min-height: 278px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.business-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.business-card-top,
.business-card-foot,
.business-badges,
.business-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-card-top,
.business-card-foot {
  justify-content: space-between;
}

.business-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--soft-2), var(--soft));
  color: var(--accent-dark);
}

.business-avatar.person {
  border-radius: 50%;
}

.business-avatar.large {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  font-size: 30px;
}

.business-avatar.person.large {
  border-radius: 50%;
}

.business-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.business-badges i,
.claimed-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.business-badges .verified-badge,
.claimed-label {
  background: var(--soft-2);
  color: var(--accent-dark);
}

.business-card-copy {
  align-self: center;
}

.business-card-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.business-card-copy small {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-weight: 750;
}

.business-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.business-card-foot {
  align-self: end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.business-card-foot i,
.business-card-foot em {
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
}

.business-card-foot em {
  color: var(--accent-dark);
  font-weight: 800;
}

.business-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.business-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.business-pagination button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.business-pagination button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-2px);
}

.business-pagination button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--business-cta-text);
}

.business-pagination button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.business-page-ellipsis {
  display: grid;
  width: 36px;
  min-height: 44px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.business-listing-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  overflow: hidden;
  margin-top: 38px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .14), transparent 28%),
    linear-gradient(125deg, var(--business-cta-start), var(--business-cta-end));
  color: var(--business-cta-text);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 26%, transparent);
  isolation: isolate;
}

.business-cta-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
  backdrop-filter: blur(8px);
}

.business-cta-copy {
  position: relative;
  z-index: 1;
}

.business-cta-copy > span {
  display: block;
  color: color-mix(in srgb, var(--business-cta-text) 78%, transparent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.business-cta-copy h2 {
  max-width: 690px;
  margin: 8px 0 9px;
  color: var(--business-cta-text);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.business-cta-copy p {
  max-width: 720px;
  margin: 0;
  color: color-mix(in srgb, var(--business-cta-text) 78%, transparent);
  line-height: 1.55;
}

.business-cta-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

.business-cta-copy i {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: color-mix(in srgb, var(--business-cta-text) 90%, transparent);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.business-cta-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--business-cta-text);
  color: var(--business-cta-start);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.business-cta-button:hover {
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  transform: translateY(-3px);
}

.business-cta-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  pointer-events: none;
}

.business-cta-orbit.orbit-one {
  top: -130px;
  right: -55px;
  width: 320px;
  height: 320px;
}

.business-cta-orbit.orbit-two {
  right: 150px;
  bottom: -190px;
  width: 280px;
  height: 280px;
}

.business-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.business-empty h1,
.business-empty h2,
.business-empty p {
  margin: 0;
}

.business-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--soft-2), var(--surface) 66%);
}

.business-profile-identity h1 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.business-profile-identity > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.business-profile-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

.business-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
  gap: 26px;
  margin-top: 26px;
}

.business-profile-main,
.business-profile-rail {
  display: grid;
  align-content: start;
  gap: 18px;
}

.business-story-block,
.business-split-story,
.business-linked-section,
.business-detail-cloud,
.business-vitals,
.business-contact-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.business-story-block h2,
.business-linked-section h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 550;
}

.business-story-block p,
.business-split-story p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  white-space: pre-line;
}

.business-split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.business-split-story article + article {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.business-split-story span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.business-linked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.business-linked-grid > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.business-linked-grid > button span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.business-linked-grid small {
  color: var(--muted);
}

.business-detail-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.business-detail-cloud h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.business-detail-cloud p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.business-detail-cloud p span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.business-vitals .panel-title,
.business-contact-panel .panel-title {
  margin-bottom: 12px;
}

.business-vitals > div:not(.panel-title),
.business-contact-panel.unlocked > div:not(.panel-title) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.business-vitals > div:last-child,
.business-contact-panel.unlocked > div:last-child {
  border-bottom: 0;
}

.business-vitals span,
.business-contact-panel.unlocked span {
  color: var(--muted);
  font-size: 13px;
}

.business-vitals strong,
.business-contact-panel.unlocked strong {
  max-width: 180px;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 13px;
}

.business-contact-panel.locked {
  display: grid;
  place-items: center;
  gap: 10px;
  background: linear-gradient(150deg, var(--soft-2), var(--surface));
  text-align: center;
}

.business-contact-panel.locked h2,
.business-contact-panel.locked p {
  margin: 0;
}

.business-contact-panel.locked p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.suggest-change-link {
  padding-top: 26px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.suggest-change-link button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.business-workspace-intro {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--soft-2), var(--surface));
}

.business-workspace-intro h2,
.business-workspace-intro p {
  margin: 6px 0;
}

.business-workspace-intro p {
  max-width: 650px;
  color: var(--muted);
}

.business-workspace-intro > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.managed-business-list {
  display: grid;
  gap: 8px;
}

.managed-business-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}

.managed-business-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.managed-business-card small {
  color: var(--muted);
}

.business-profile-form {
  display: grid;
  gap: 16px;
}

.business-editor-head,
.business-form-section,
.business-form-actions {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.business-editor-head h2,
.business-editor-head p,
.business-form-section-head h3,
.business-form-section-head p {
  margin: 5px 0 0;
}

.business-editor-head p,
.business-form-section-head p,
.business-form-actions > span {
  color: var(--muted);
  font-size: 13px;
}

.business-form-section-head p {
  max-width: 420px;
  text-align: right;
}

.business-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.business-form-grid label,
.business-overlay-form label,
.business-selected-links label {
  display: grid;
  gap: 6px;
}

.business-form-grid label > span,
.business-overlay-form label > span,
.business-selected-links label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.business-form-grid .wide,
.business-overlay-form .wide {
  grid-column: 1 / -1;
}

.business-image-editor {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.business-image-preview {
  display: grid;
  width: 144px;
  height: 144px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 28px;
  background: var(--surface);
  color: var(--accent-dark);
}

.business-image-preview.person {
  border-radius: 50%;
}

.business-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-image-preview > span {
  display: grid;
  place-items: center;
  gap: 8px;
}

.business-image-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.business-image-controls {
  display: grid;
  gap: 13px;
}

.business-image-controls strong {
  display: block;
  margin-bottom: 4px;
}

.business-image-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.business-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-image-upload {
  position: relative;
  cursor: pointer;
}

.business-image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.business-image-upload.disabled {
  cursor: wait;
  opacity: .65;
}

.business-image-url {
  display: grid;
  gap: 6px;
}

.business-image-url > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.private-section {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: linear-gradient(135deg, var(--soft-2), var(--surface));
}

.business-link-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.business-link-suggestions {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.business-link-suggestions button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.business-link-suggestions button span {
  flex: 1;
  color: var(--muted);
}

.business-selected-links {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.business-selected-links > div:not(.empty-state) {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, .7fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.business-selected-links > div > span:first-child {
  display: grid;
  gap: 4px;
}

.business-selected-links small {
  color: var(--muted);
}

.business-selected-links .check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
}

.business-form-actions {
  position: sticky;
  z-index: 3;
  bottom: 12px;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.business-form-actions > span {
  margin-right: auto;
}

.business-overlay {
  position: relative;
  width: min(680px, calc(100vw - 30px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-overlay h2 {
  margin: 9px 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 550;
}

.business-overlay > p {
  color: var(--muted);
  line-height: 1.55;
}

.business-overlay-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.business-admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.business-admin-tabs button {
  border-radius: 10px;
}

.business-admin-tabs button span {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
}

.business-admin-directory {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(38, 27, 14, .05);
}

.business-admin-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.business-admin-directory-head span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.business-admin-directory-head h2 {
  margin: 5px 0 3px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.business-admin-directory-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.business-admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(135px, .72fr)) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.business-admin-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.business-admin-filters label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.business-admin-filters input,
.business-admin-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.business-admin-search > div {
  position: relative;
}

.business-admin-search > div svg {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.business-admin-search input {
  padding-left: 38px;
}

.business-admin-profile-table {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.business-admin-profile-header,
.business-admin-profile-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(105px, .72fr) minmax(100px, .65fr) minmax(110px, .7fr) minmax(120px, .75fr) 48px;
  align-items: center;
  gap: 12px;
}

.business-admin-profile-header {
  min-height: 46px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.business-admin-profile-row {
  min-height: 76px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  transition: background-color .16s ease;
}

.business-admin-profile-row:last-child {
  border-bottom: 0;
}

.business-admin-profile-row:hover {
  background: color-mix(in srgb, var(--soft) 62%, transparent);
}

.business-admin-profile-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.business-admin-profile-name .business-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.business-admin-profile-name > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-admin-profile-name strong,
.business-admin-profile-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-admin-profile-name strong {
  font-size: 14px;
}

.business-admin-profile-name small,
.business-admin-profile-row time {
  color: var(--muted);
  font-size: 11px;
}

.business-type-pill,
.business-owner-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.business-type-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
}

.business-type-pill.company {
  color: var(--accent-dark);
}

.business-type-pill.person {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.business-owner-state svg {
  color: #2f7957;
}

.business-admin-action-cell {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.business-row-action-menu {
  position: relative;
}

.business-row-action-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.business-row-action-menu summary::-webkit-details-marker {
  display: none;
}

.business-row-action-menu summary:hover,
.business-row-action-menu summary:focus-visible,
.business-row-action-menu[open] summary {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.business-row-action-menu > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(38, 27, 14, .16);
}

.business-row-action-menu.open-up > div {
  top: auto;
  bottom: calc(100% + 5px);
}

.business-row-action-menu > div button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.business-row-action-menu > div button:hover,
.business-row-action-menu > div button:focus-visible {
  background: var(--soft);
  outline: none;
}

.business-row-action-menu > div button.danger-link {
  color: #a63b32;
}

.business-admin-loading,
.business-admin-no-results {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.business-admin-no-results > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--soft);
  color: var(--accent-dark);
}

.business-admin-no-results h3,
.business-admin-no-results p {
  margin: 0;
}

.business-admin-no-results p {
  margin-bottom: 6px;
  font-size: 13px;
}

.business-admin-pagination {
  margin-bottom: 0;
  padding-top: 20px;
}

.business-review-list {
  display: grid;
  gap: 12px;
}

.business-review-list > article {
  display: grid;
  grid-template-columns: minmax(170px, .6fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.business-review-head,
.business-review-head > span,
.business-review-body {
  display: grid;
  gap: 5px;
}

.business-review-head a,
.business-review-body a {
  color: var(--accent-dark);
  font-size: 12px;
}

.business-review-head small,
.business-review-body > span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.business-review-body p {
  margin: 0;
  line-height: 1.55;
}

.business-review-actions {
  display: flex;
  gap: 8px;
}

.story-like-button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.story-like-button.liked {
  color: var(--like) !important;
}

.story-like-button.liked svg {
  fill: currentColor;
  stroke: currentColor;
}

.story-like-button:active:not(:disabled) {
  transform: scale(.94);
}

.feed-result-summary,
.admin-blog-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content-pagination {
  margin-bottom: 12px;
}

.admin-blog-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.admin-blog-search label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.admin-blog-search label > div {
  position: relative;
}

.admin-blog-search label svg {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-blog-search input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 44px;
  padding-left: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.writer-editor-page {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.writer-editor-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.writer-editor-header h1 {
  margin: 5px 0 6px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.035em;
}

.writer-editor-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.writer-post-editor .post-editor-sidebar {
  align-self: start;
}

.writer-identity-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.writer-identity-lock > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--business-cta-text);
}

.writer-identity-lock div {
  display: grid;
  gap: 2px;
}

.writer-identity-lock small {
  color: var(--muted);
  line-height: 1.35;
}

.not-found-page {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 148px);
  place-items: center;
  overflow: hidden;
  padding: 64px 20px;
  background:
    radial-gradient(circle at 15% 18%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 25%),
    radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--blue) 65%, transparent), transparent 27%),
    var(--bg);
}

.not-found-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(32px, 7vw, 68px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-card h1 {
  max-width: 620px;
  margin: 10px auto 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
}

.not-found-card > p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.not-found-card > small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.not-found-home {
  min-height: 48px;
  margin-top: 24px;
  padding-inline: 22px;
}

.not-found-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 24px);
  min-height: 126px;
  margin-bottom: 14px;
}

.not-found-art > span {
  font-family: var(--serif);
  font-size: clamp(78px, 15vw, 132px);
  font-weight: 700;
  line-height: .8;
  color: var(--ink);
}

.missing-page-orbit {
  position: relative;
  display: grid;
  width: clamp(82px, 14vw, 118px);
  height: clamp(82px, 14vw, 118px);
  place-items: center;
  border: 2px dashed color-mix(in srgb, var(--accent) 58%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.missing-page-orbit i {
  position: absolute;
  top: -7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 13%, transparent);
}

.missing-page-orbit b {
  display: grid;
  color: var(--accent-dark);
  transform: rotate(-8deg);
}

.not-found-river {
  position: absolute;
  right: 6%;
  bottom: 5px;
  left: 6%;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.not-found-river i {
  width: 20%;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, var(--blue));
  transform: rotate(-2deg);
}

.not-found-river i:nth-child(2) { transform: translateY(7px) rotate(2deg); }
.not-found-river i:nth-child(3) { transform: translateY(1px) rotate(-1deg); }

@media (max-width: 980px) {
  .business-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-listing-cta { grid-template-columns: auto minmax(0, 1fr); }
  .business-cta-button { grid-column: 2; justify-self: start; }
  .business-profile-layout { grid-template-columns: 1fr; }
  .business-profile-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-review-list > article { grid-template-columns: 1fr; align-items: stretch; }
  .business-review-actions { justify-content: flex-end; }
  .business-admin-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-admin-search { grid-column: span 3; }
  .business-admin-profile-header,
  .business-admin-profile-row { grid-template-columns: minmax(210px, 1.7fr) minmax(100px, .65fr) minmax(95px, .6fr) minmax(110px, .7fr) 48px; }
  .business-admin-profile-header > :nth-child(4),
  .business-admin-profile-row > :nth-child(4) { display: none; }
  .writer-editor-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .business-network-page,
  .business-profile-page { padding: 24px 16px 52px; }
  .business-network-hero { padding: 28px 20px; border-radius: 20px; }
  .business-network-hero h1 { font-size: 39px; }
  .business-network-hero > p { font-size: 16px; }
  .business-network-search { grid-template-columns: auto minmax(0, 1fr); }
  .business-network-search .primary-button { grid-column: 1 / -1; width: 100%; }
  .business-results-head,
  .business-workspace-intro,
  .business-form-actions,
  .business-editor-head,
  .business-form-section-head { align-items: stretch; flex-direction: column; }
  .business-results-head label { width: 100%; }
  .business-card-grid { grid-template-columns: 1fr; }
  .business-pagination { gap: 8px; }
  .business-pagination > button span { display: none; }
  .business-pagination > div { gap: 4px; }
  .business-pagination button { padding: 0 9px; }
  .business-listing-cta { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px; }
  .business-cta-icon { width: 58px; height: 58px; border-radius: 18px; }
  .business-cta-button { grid-column: auto; width: 100%; justify-self: stretch; }
  .business-profile-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .business-profile-hero > .primary-button { width: 100%; }
  .business-profile-identity h1 { font-size: 42px; }
  .business-profile-rail,
  .business-split-story,
  .business-linked-grid,
  .business-detail-cloud,
  .business-form-grid,
  .business-overlay-form { grid-template-columns: 1fr; }
  .business-split-story article + article { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .business-form-grid .wide,
  .business-overlay-form .wide { grid-column: auto; }
  .business-form-section-head p { text-align: left; }
  .business-avatar.large { width: 104px; height: 104px; }
  .business-image-editor { grid-template-columns: 1fr; }
  .business-image-preview { width: 112px; height: 112px; }
  .business-selected-links > div:not(.empty-state) { grid-template-columns: 1fr; }
  .business-form-actions { position: static; }
  .business-form-actions button { width: 100%; }
  .managed-business-card { grid-template-columns: auto minmax(0, 1fr); }
  .managed-business-card > button { width: 100%; }
  .business-admin-tabs { overflow-x: auto; }
  .business-admin-tabs button { flex: 0 0 auto; }
  .business-admin-directory { padding: 15px; border-radius: 16px; }
  .business-admin-filters { grid-template-columns: 1fr 1fr; padding: 13px; }
  .business-admin-search { grid-column: 1 / -1; }
  .business-admin-filters .primary-button,
  .business-admin-filters .secondary-button { width: 100%; }
  .business-admin-profile-header { display: none; }
  .business-admin-profile-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 15px;
  }
  .business-admin-profile-row > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .business-admin-profile-row > div[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .business-admin-profile-row > :nth-child(4) { display: flex; }
  .business-admin-profile-name { grid-column: 1; justify-content: flex-start !important; }
  .business-admin-action-cell { grid-column: 2; grid-row: 1; }
  .business-admin-profile-row > div:nth-child(n+2):nth-child(-n+5) { grid-column: 1 / -1; }
  .business-admin-profile-row > div:nth-child(2) { margin-top: 5px; }
  .business-row-action-menu > div { top: calc(100% + 5px); bottom: auto; }
  .business-review-actions { align-items: stretch; flex-direction: column; }
  .admin-blog-search { grid-template-columns: 1fr 1fr; }
  .admin-blog-search label { grid-column: 1 / -1; }
  .admin-blog-search button { width: 100%; }
  .feed-result-summary,
  .admin-blog-result-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .writer-editor-page { width: min(100% - 28px, 1480px); padding-top: 26px; }
  .writer-editor-header .secondary-button { width: 100%; }
  .not-found-page { padding: 32px 14px; }
  .not-found-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .business-card,
  .business-pagination button,
  .business-cta-button {
    transition: none;
  }

  .business-card:hover,
  .business-pagination button:hover:not(:disabled),
  .business-cta-button:hover {
    transform: none;
  }

  .story-like-button {
    transition: none;
  }
}
