@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,400;75..125,500;75..125,600;75..125,700;75..125,800&family=IBM+Plex+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --text: #F4F1EA;
  --border: #2A2A2C;
  --accent: #C9A36E;
  --field-bg: #131315;
  --row-hover: #111114;
  --destructive: #8B3A3A;
  --status-green: #5C7C5C;
  --status-gray: #5A5A5C;
  --status-amber: #C9A36E;
  --status-red: #8C5A55;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

::placeholder {
  color: var(--text);
  opacity: 0.35;
}

[hidden] {
  display: none !important;
}

/* ----- app shell ----- */

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__wordmark {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  padding: 0 24px 40px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
}

.sidebar__link {
  position: relative;
  display: block;
  padding: 11px 24px;
  font-size: 14px;
  opacity: 0.62;
  transition: opacity 120ms ease;
}

.sidebar__link:hover {
  opacity: 1;
}

.sidebar__link.is-active {
  opacity: 1;
  font-weight: bold;
}

.sidebar__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--accent);
}

.sidebar__user {
  margin-top: auto;
  padding: 18px 24px 0;
  border-top: 1px solid var(--border);
}

.sidebar__user-name {
  font-size: 13px;
  font-weight: bold;
}

.sidebar__user-email {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 3px;
  word-break: break-all;
}

.sidebar__user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sidebar__guest {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0.7;
}

.sidebar__signout {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  font-family: Arial, sans-serif;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
}

.sidebar__signout:hover {
  opacity: 1;
}

.sidebar__wordmark:hover {
  opacity: 0.85;
}

/* ----- main ----- */

.main {
  flex: 1;
  padding: 56px 72px 96px;
  max-width: 1280px;
  position: relative;
}

.page-title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 56px;
  opacity: 0.75;
}

.section-title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin: 0 0 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn--secondary {
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: #3A3A3D;
}

.btn--destructive {
  background: transparent;
  color: var(--destructive);
  border-color: var(--destructive);
}

.btn--destructive:hover {
  background: rgba(139, 58, 58, 0.08);
}

.btn--small {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.btn--lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

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

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.field__label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.field__hint {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 8px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23F4F1EA' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.select option {
  background: var(--bg);
  color: var(--text);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

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

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

.stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 24px;
  background: var(--bg);
}

.stat__label {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

.stat__value {
  font-size: 36px;
  font-weight: bold;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.stat__sub {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 8px;
}

.followups {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.followup-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.followup-row:last-child {
  border-bottom: none;
}

.followup-row:hover {
  background: var(--row-hover);
}

.followup-row__name {
  font-weight: bold;
  font-size: 14px;
}

.followup-row__sub {
  font-size: 13px;
  opacity: 0.55;
}

.followup-row__meta {
  font-size: 13px;
  opacity: 0.7;
}

/* ----- contacts page ----- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.toolbar__search {
  flex: 1;
  max-width: 360px;
}

.toolbar__search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar__search-clear {
  flex-shrink: 0;
}

.toolbar__search-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.55;
}

.add-contact {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 28px;
}

.add-contact.is-open {
  display: block;
}

.empty-state {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 100ms ease;
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--row-hover);
}

.table tbody td {
  padding: 0 20px;
  height: 56px;
  font-size: 14px;
  vertical-align: middle;
}

.table__name {
  font-weight: bold;
}

.table__muted {
  opacity: 0.62;
}

/* ----- status ----- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
}

button.status {
  cursor: pointer;
}

button.status:hover {
  opacity: 0.85;
}

.table__actions {
  text-align: right;
  white-space: nowrap;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status--responded .status__dot {
  background: var(--status-green);
}

.status--none .status__dot {
  background: var(--status-gray);
}

.status--followup .status__dot {
  background: var(--status-amber);
}

.status--cold .status__dot {
  background: var(--status-red);
}

/* ----- generate page ----- */

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  opacity: 1;
}

.generator {
  max-width: 720px;
}

.generator__controls {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 18px;
  margin-bottom: 28px;
}

.generator__actions {
  margin-bottom: 56px;
}

.email-cards {
  display: none;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.email-cards.is-visible {
  display: flex;
}

.email-card__head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.email-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.email-card__hint {
  font-size: 13px;
  opacity: 0.5;
}

.email-card--empty {
  opacity: 0.7;
}

.email-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 24px 26px 26px;
  position: relative;
}

.email-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.email-card__subject {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}

.email-card__body {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ----- settings ----- */

.settings {
  max-width: 640px;
}

.settings__section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}

.settings__section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.settings__intro {
  font-size: 13px;
  opacity: 0.55;
  margin: -10px 0 24px;
  max-width: 480px;
  line-height: 1.6;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  gap: 24px;
}

.toggle-row:first-child {
  border-top: none;
}

.toggle-row__text {
  flex: 1;
}

.toggle-row__title {
  font-weight: bold;
  font-size: 14px;
}

.toggle-row__desc {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 4px;
  max-width: 420px;
  line-height: 1.55;
}

.toggle {
  position: relative;
  width: 34px;
  height: 20px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text);
  opacity: 0.5;
  border-radius: 4px;
  transition: transform 140ms ease, opacity 140ms ease;
}

.toggle.is-on {
  border-color: var(--accent);
}

.toggle.is-on .toggle__dot {
  transform: translateX(14px);
  background: var(--accent);
  opacity: 1;
}

/* ----- toast ----- */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- responsive ----- */

@media (max-width: 960px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand user"
      "nav   nav";
    column-gap: 16px;
    row-gap: 10px;
    padding: 14px 20px;
    position: static;
    overflow: visible;
  }

  .sidebar__wordmark {
    grid-area: brand;
    padding: 0;
    align-self: center;
  }

  .sidebar__nav {
    grid-area: nav;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }

  .sidebar__nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar__link {
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sidebar__link.is-active::before {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: -10px;
    width: auto;
    height: 2px;
  }

  .sidebar__user {
    grid-area: user;
    margin: 0;
    padding: 0;
    border: none;
    text-align: right;
    min-width: 0;
  }

  .sidebar__user-name,
  .sidebar__user-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar__user-meta {
    justify-content: flex-end;
    margin-top: 4px;
  }

  .main {
    padding: 32px 24px 64px;
  }

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

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

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

  .table tbody td {
    padding: 0 14px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar__search {
    max-width: none;
    flex: 1 1 100%;
  }

  .onboarding-banner,
  .profile-gate {
    flex-direction: column;
    align-items: flex-start;
  }

  .onboarding-banner__actions,
  .profile-gate__actions {
    flex-wrap: wrap;
  }

  .contact-detail__head {
    flex-direction: column;
  }

  .contact-detail__actions {
    flex-wrap: wrap;
  }
}

/* ----- page header (title + cmdk button) ----- */

.main__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.main__header .page-title {
  margin: 0;
}

.kbd {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 1px 6px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0.7;
}

/* ----- onboarding banner ----- */

.onboarding-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 22px;
  margin-bottom: 36px;
}

.onboarding-banner__text {
  font-size: 14px;
  line-height: 1.55;
}

.onboarding-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ----- followup row tweaks ----- */

.followup-row {
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
}

.followup-row__name {
  font-weight: bold;
  font-size: 14px;
  color: var(--text);
}

a.followup-row__name:hover {
  text-decoration: underline;
}

.followup-row--empty {
  grid-template-columns: 1fr auto;
}

/* ----- import panel ----- */

.import-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 28px;
}

.import-panel.is-open {
  display: block;
}

.import-panel__text {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.import-panel__preview {
  margin-top: 16px;
}

.import-panel__assistant {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.import-panel__sample-label {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
  margin-bottom: 10px;
}

.import-panel__sample {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.import-panel__assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-panel__preview:empty {
  display: none;
}

.import-preview__title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
  margin-bottom: 8px;
}

.import-preview__table thead th {
  padding: 12px 16px;
}

.import-preview__table tbody td {
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--field-bg);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ----- contact detail ----- */

.contact-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 28px;
}

.contact-detail__name {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.contact-detail__sub {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 6px;
}

.contact-detail__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.contact-detail__panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 28px;
}

.contact-detail__panel .section-title {
  margin-top: 0;
}

/* ----- outreach timeline ----- */

.timeline {
  border-top: 1px solid var(--border);
  padding: 18px 0 4px;
}

.timeline:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline__kind {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: bold;
  font-size: 13px;
}

.timeline__pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  opacity: 0.8;
}

.timeline__pill--replied {
  border-color: var(--status-green);
  color: var(--status-green);
}

.timeline__subject {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.timeline__body {
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
  opacity: 0.85;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.timeline-empty {
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.55;
}

/* ----- command palette ----- */

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 24px;
  z-index: 200;
}

.cmdk-overlay.is-open {
  display: flex;
}

.cmdk {
  width: 100%;
  max-width: 620px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cmdk__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.cmdk__guide {
  display: grid;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  opacity: 0.7;
}

.cmdk__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmdk__example {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

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

.cmdk__list {
  max-height: 420px;
  overflow-y: auto;
}

.cmdk__group {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  padding: 14px 20px 6px;
}

.cmdk__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  gap: 14px;
}

.cmdk__item.is-active {
  background: var(--row-hover);
}

.cmdk__item .cmdk__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmdk__detail {
  font-size: 13px;
  opacity: 0.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.cmdk__empty {
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.55;
}

.cmdk__hint {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  opacity: 0.55;
  flex-wrap: wrap;
}

.cmdk__hint kbd {
  display: inline-block;
  padding: 0 6px;
  margin: 0 4px 0 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  opacity: 1;
}

/* ----- auth page ----- */

.auth-body {
  min-height: 100vh;
  display: flex;
}

.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 40px;
}

.auth-wordmark {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 30px 32px;
}

.auth-intro {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.6;
  margin: 0 0 18px;
}

.auth-password-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-password-toggle {
  flex-shrink: 0;
}

.auth-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 8px 2px 14px;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
  position: relative;
}

.auth-tab.is-active {
  opacity: 1;
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.auth-submit {
  width: 100%;
}

.auth-guest {
  width: 100%;
}

.auth-divider {
  text-align: center;
  margin: 22px 0;
  position: relative;
  font-size: 13px;
  opacity: 0.4;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-error {
  font-size: 13px;
  color: var(--destructive);
  min-height: 18px;
  margin: -10px 0 12px;
}

.auth-help {
  margin-top: 22px;
  font-size: 13px;
  opacity: 0.5;
  text-align: center;
}

.upgrade-form {
  margin-top: 12px;
}

/* ----- landing page ----- */

.landing-body {
  min-height: 100vh;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  border-bottom: 1px solid var(--border);
}

.landing-wordmark {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.landing-nav__links a:not(.btn) {
  opacity: 0.7;
}

.landing-nav__links a:not(.btn):hover {
  opacity: 1;
}

.landing {
  padding: 0 48px 96px;
}

.landing-hero {
  padding: 128px 0 96px;
  max-width: 760px;
}

.landing-hero__title {
  font-size: 64px;
  font-weight: bold;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 28px;
}

.landing-hero__sub {
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0 0 36px;
  max-width: 580px;
}

.landing-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.landing-hero__meta {
  font-size: 14px;
  opacity: 0.55;
}

/* Schematic product shot in a frame */

.landing-screen {
  margin: 0 auto 128px;
  max-width: 1080px;
}

.landing-screen__frame {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.landing-screen__bar {
  height: 28px;
  border-bottom: 1px solid var(--border);
  background: #08080A;
}

.landing-screen__body {
  display: flex;
  min-height: 360px;
}

.landing-screen__sidebar {
  width: 160px;
  border-right: 1px solid var(--border);
  padding: 22px 18px;
}

.landing-screen__wordmark {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  margin-bottom: 32px;
}

.landing-screen__nav-item {
  font-size: 14px;
  padding: 8px 0;
  opacity: 0.6;
}

.landing-screen__nav-item.is-active {
  opacity: 1;
  font-weight: bold;
  color: var(--accent);
}

.landing-screen__content {
  flex: 1;
  padding: 36px;
}

.landing-screen__title {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  opacity: 0.7;
  margin-bottom: 28px;
}

.landing-screen__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.landing-screen__stat {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
}

.landing-screen__stat span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  display: block;
}

.landing-screen__stat strong {
  font-size: 26px;
  font-weight: bold;
  display: block;
  margin-top: 8px;
}

.landing-screen__section {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}

.landing-screen__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 128px;
}

.feature__title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}

.feature__body {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.7;
  margin: 0;
}

.landing-workflow {
  margin-bottom: 128px;
}

.landing-workflow .section-title {
  margin-bottom: 36px;
}

.workflow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.workflow li {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 16px;
  max-width: 760px;
}

.workflow__step {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.18em;
  opacity: 0.5;
  padding-top: 4px;
}

.workflow h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.workflow p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}

.landing-pricing {
  margin-bottom: 128px;
  display: flex;
  justify-content: center;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.pricing-card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
}

.pricing-card__price {
  font-size: 56px;
  font-weight: bold;
  margin: 12px 0 18px;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.pricing-card__list li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  opacity: 0.85;
}

.pricing-card__list li:first-child {
  border-top: none;
}

.landing-cta {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-cta__title {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.landing-cta__sub {
  font-size: 16px;
  opacity: 0.7;
  margin: 0 0 28px;
}

.landing-footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.55;
}

.landing-footer__meta {
  max-width: 360px;
  text-align: right;
}

/* ----- responsive: landing & app refinements ----- */

@media (max-width: 840px) {
  .landing-nav {
    padding: 16px 20px;
    gap: 12px;
  }
  .landing-nav__links {
    gap: 12px;
    font-size: 13px;
  }
  .landing {
    padding: 0 20px 64px;
  }
  .landing-hero {
    padding: 80px 0 48px;
  }
  .landing-hero__title {
    font-size: 40px;
  }
  .landing-features {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 80px;
  }
  .landing-screen {
    margin-bottom: 80px;
  }
  .landing-screen__sidebar {
    display: none;
  }
  .landing-screen__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .landing-footer__meta { text-align: center; }

  .main__header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ----- insights ----- */

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 0;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.bar {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.bar__label {
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar__track {
  height: 8px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: var(--accent);
  transition: width 320ms ease;
}

.bar__value {
  text-align: right;
  font-size: 13px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.table th.num,
.table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bar {
    grid-template-columns: 120px 1fr 90px;
  }
}

/* ----- profile gate (generate) ----- */

.profile-gate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.profile-gate__text {
  font-size: 14px;
  line-height: 1.55;
  max-width: 480px;
}

.profile-gate__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ----- status filter pills ----- */

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: Arial, sans-serif;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 120ms ease, border-color 120ms ease;
}

.filter-pill:hover {
  opacity: 1;
}

.filter-pill.is-active {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill__count {
  font-size: 13px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
  border-left: 1px solid var(--border);
}

.filter-pill.is-active .filter-pill__count {
  border-color: var(--accent);
}

/* ----- bulk action bar ----- */

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.bulk-bar__count {
  font-size: 13px;
  font-weight: bold;
}

.bulk-bar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bulk-bar__status {
  width: 180px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  height: 30px;
}

/* ----- table checkbox column ----- */

.table__check {
  width: 44px;
  padding-left: 20px;
  padding-right: 0;
}

.table__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--field-bg);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

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

.table__check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.table__check input[type="checkbox"]:indeterminate {
  border-color: var(--accent);
  background: var(--accent);
}

.table__check input[type="checkbox"]:indeterminate::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 2px;
  background: var(--bg);
}

.table tbody tr.is-selected {
  background: rgba(201, 163, 110, 0.05);
}

/* ----- templates page ----- */

.tpl-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 36px;
}

.template-tools {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.template-tools__section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.template-tools__label {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.template-tools__hint {
  font-size: 13px;
  opacity: 0.55;
}

.tpl-form__body {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.tpl-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.tpl-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--bg);
}

.tpl-card--builtin {
  opacity: 0.85;
}

.tpl-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.tpl-card__name {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

.tpl-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tpl-card__subject {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tpl-card__body {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  opacity: 0.85;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

/* ----- dashboard grid (follow-ups + upcoming) ----- */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.upcoming {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.upcoming-row {
  grid-template-columns: 1.2fr 1fr 1fr;
}

@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ----- activity feed ----- */

.activity {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.activity-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover {
  background: var(--row-hover);
}

.activity-row__when {
  font-size: 13px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.activity-row__contact {
  font-size: 14px;
  font-weight: bold;
}

.activity-row__firm {
  font-size: 13px;
  opacity: 0.6;
  margin-left: 8px;
}

.activity-row__subject {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 600px;
}

.activity-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.7;
  flex-shrink: 0;
}

.activity-row__pill {
  border: 1px solid var(--status-green);
  color: var(--status-green);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 13px;
}

.activity-row--empty {
  padding: 22px 22px 24px;
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.55;
  text-align: center;
  display: block;
}

@media (max-width: 960px) {
  .activity-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .activity-row__meta {
    justify-content: flex-start;
  }
}

/* ----- auth: demo flow ----- */

.auth-loading {
  padding: 44px 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
}

.auth-demo-link {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  opacity: 0.55;
  text-decoration: underline;
}

.auth-demo-link:hover {
  opacity: 0.9;
}

/* ----- today widget ----- */

.today {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.today__greeting {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin-bottom: 14px;
}

.today__headline {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.today__cta {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

.today__cta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today__cta a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ----- help overlay (?) ----- */

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 250;
}

.help-overlay.is-open {
  display: flex;
}

.help-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 24px 26px 26px;
}

.help-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.help-card__head h3 {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

.help-card__close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--text);
  font-family: Arial, sans-serif;
  cursor: pointer;
  opacity: 0.7;
}

.help-card__close:hover {
  opacity: 1;
}

.help-card__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  font-size: 14px;
}

.help-card__grid kbd {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  opacity: 0.9;
}

/* ----- skeleton loading ----- */

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}

.skeleton,
.stat__value[data-loading="1"] {
  display: inline-block;
  background: var(--field-bg);
  border-radius: 4px;
  color: transparent;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.stat__value[data-loading="1"] {
  width: 64px;
  height: 36px;
  vertical-align: middle;
}

/* ----- expanded stats grid for 5 stats ----- */

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

/* ----- tags (contact detail + table) ----- */

.tag-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-input__entry {
  max-width: 320px;
}

.tag-input__field {
  max-width: 320px;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 4px 2px 10px;
  font-size: 13px;
}

.tag-chip__x {
  background: transparent;
  border: none;
  color: var(--text);
  opacity: 0.5;
  cursor: pointer;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.tag-chip__x:hover {
  opacity: 1;
}

.tag-empty {
  font-size: 13px;
  opacity: 0.5;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag-suggestions > span {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.tag-suggestion,
.notes-prompt,
.template-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.tag-suggestion:hover,
.notes-prompt:hover,
.template-tool:hover {
  border-color: var(--accent);
}

.contact-notes__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact-notes__head .field__label {
  margin-bottom: 0;
}

.contact-notes__status {
  font-size: 13px;
  opacity: 0.55;
}

.contact-notes__status[data-tone="working"] {
  opacity: 0.8;
}

.contact-notes__status[data-tone="success"] {
  color: var(--status-green);
  opacity: 1;
}

.contact-notes__status[data-tone="error"] {
  color: var(--destructive);
  opacity: 1;
}

.notes-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.table__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.table__tag {
  display: inline-block;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  opacity: 0.75;
  background: var(--bg);
}

.table__tag--more {
  opacity: 0.5;
}

/* ----- tag filters ----- */

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}

/* ----- bulk-tag input ----- */

.bulk-bar__tag {
  width: 140px;
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
}

.bulk-bar__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-bar__label {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-transform: uppercase;
}

/* ----- questions to ask ----- */

.qbank {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qbank__item {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  opacity: 0.9;
}

.qbank__item:first-child {
  border-top: none;
}

/* ----- onboarding checklist ----- */

.onboarding-checklist {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 22px 26px 6px;
  margin-bottom: 36px;
}

.onboarding-checklist__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.onboarding-checklist__title {
  font-size: 15px;
  font-weight: bold;
}

.onboarding-checklist__sub {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

.onboarding-checklist__steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.onboarding-step:first-child {
  border-top: none;
}

.onboarding-step__mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.onboarding-step.is-done .onboarding-step__mark {
  border-color: var(--accent);
  background: var(--accent);
}

.onboarding-step.is-done .onboarding-step__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.onboarding-step__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.onboarding-step__text strong {
  font-size: 14px;
}

.onboarding-step__text span {
  font-size: 13px;
  opacity: 0.6;
}

.onboarding-step.is-done .onboarding-step__text strong {
  text-decoration: line-through;
  opacity: 0.55;
}

.onboarding-step.is-done .onboarding-step__text span {
  opacity: 0.35;
}

.onboarding-step__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ----- calendar ----- */

.calendar-grid {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.calendar-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.calendar-dow {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

.calendar-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-cell {
  min-height: 108px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-cell:nth-child(7n) {
  border-right: none;
}

.calendar-cell:nth-last-child(-n+7) {
  border-bottom: none;
}

.calendar-cell.is-muted {
  opacity: 0.4;
}

.calendar-cell.is-today .calendar-cell__date {
  color: var(--accent);
  font-weight: bold;
}

.calendar-cell__date {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
}

.calendar-event:hover {
  border-color: #3A3A3D;
}

.calendar-event__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.calendar-event__dot--chat {
  background: var(--status-green);
}

.calendar-event__dot--followup {
  background: var(--status-amber);
}

.calendar-event__title {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.calendar-event__sub {
  opacity: 0.6;
  font-size: 13px;
  flex-shrink: 0;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  opacity: 0.7;
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 960px) {
  .calendar-cell {
    min-height: 80px;
    padding: 8px 8px;
  }
  .calendar-dow {
    padding: 10px 8px;
  }
  .calendar-event__sub {
    display: none;
  }
}

/* ----- snippets ----- */

.snippets-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 36px;
}

.snippets-panel summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.snippets-panel summary::-webkit-details-marker {
  display: none;
}

.snippets-panel__count {
  font-size: 13px;
  opacity: 0.5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
}

.snippet-form {
  margin-top: 18px;
}

.snippet-form__body {
  min-height: 100px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.snippet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.snippet-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

.snippet-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.snippet-card__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--field-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.snippet-card__body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  opacity: 0.85;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.snippet-empty {
  font-size: 13px;
  opacity: 0.55;
  padding: 18px 0;
  text-align: center;
}

/* ----- alt subjects on Generate ----- */

.subject-alts {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 22px;
  margin-bottom: 20px;
}

.subject-alts__label {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 10px;
}

.subject-alts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subject-alts__list li {
  font-size: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.subject-alts__list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* ----- weekly goal progress (in Today widget) ----- */

.today__goal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.today__goal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.today__goal-meta span {
  opacity: 0.7;
}

#goal-status[data-tone="good"] {
  color: var(--accent);
  opacity: 1;
  font-weight: bold;
}

.today__goal-track {
  height: 6px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.today__goal-fill {
  height: 100%;
  background: var(--accent);
  transition: width 480ms ease;
}

/* ----- landing animations (subtle, no gradients) ----- */

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

.landing-screen__stat,
.landing-screen__row,
.landing-hero__title,
.landing-hero__sub,
.landing-hero__cta,
.landing-hero__meta {
  animation: ccFadeUp 480ms ease both;
}

.landing-hero__title { animation-delay: 50ms; }
.landing-hero__sub   { animation-delay: 180ms; }
.landing-hero__cta   { animation-delay: 300ms; }
.landing-hero__meta  { animation-delay: 420ms; }

.landing-screen__stat:nth-child(1) { animation-delay: 560ms; }
.landing-screen__stat:nth-child(2) { animation-delay: 680ms; }
.landing-screen__stat:nth-child(3) { animation-delay: 800ms; }
.landing-screen__stat:nth-child(4) { animation-delay: 920ms; }

.landing-screen__row:nth-child(1) { animation-delay: 1080ms; }
.landing-screen__row:nth-child(2) { animation-delay: 1180ms; }
.landing-screen__row:nth-child(3) { animation-delay: 1280ms; }

@media (prefers-reduced-motion: reduce) {
  .landing-screen__stat,
  .landing-screen__row,
  .landing-hero__title,
  .landing-hero__sub,
  .landing-hero__cta,
  .landing-hero__meta {
    animation: none;
  }
}

/* ----- 2026 refresh ----- */

:root {
  --font-sans: "Space Grotesk", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

html,
body,
button,
input,
select,
textarea,
.sidebar__signout,
.kbd,
.auth-tab,
.cmdk__item,
.help-card__close,
.tag-chip__x {
  font-family: var(--font-sans);
}

.landing-body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 163, 110, 0.16), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(92, 124, 92, 0.18), transparent 28%),
    linear-gradient(180deg, #0E0E10 0%, #09090B 48%, #070709 100%);
  overflow-x: hidden;
}

.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 86%);
  opacity: 0.18;
}

.landing-body::after {
  content: "";
  position: fixed;
  right: -12%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 163, 110, 0.24), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(244, 241, 234, 0.06);
}

.landing {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.landing-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 40px;
  align-items: center;
  max-width: none;
  padding: 88px 0 108px;
}

.landing-hero__copy {
  position: relative;
  z-index: 1;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.82);
  margin-bottom: 24px;
}

.landing-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 163, 110, 0.16);
}

.landing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 10ch;
  margin-bottom: 24px;
}

.landing-hero__sub {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.72;
  opacity: 0.82;
}

.landing-proof {
  margin-top: 34px;
}

.landing-proof__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.56;
  margin-bottom: 12px;
}

.landing-proof__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-proof__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  opacity: 0.92;
}

.landing-canvas {
  position: relative;
  min-height: 700px;
  padding: 34px 28px 28px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(24, 24, 29, 0.96), rgba(14, 14, 17, 0.92));
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.landing-canvas::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 163, 110, 0.22), transparent 68%);
}

.landing-canvas::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: 6%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(92, 124, 92, 0.18), transparent 70%);
  filter: blur(16px);
}

.landing-canvas__note {
  position: absolute;
  top: 26px;
  left: 24px;
  z-index: 2;
  max-width: 240px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 18px;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(16px);
}

.landing-note__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.52;
  margin-bottom: 8px;
}

.landing-canvas__note strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.landing-canvas__note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.72;
}

.landing-canvas__note--secondary {
  top: auto;
  right: 24px;
  bottom: 24px;
  left: auto;
  max-width: 260px;
}

.landing-screen--hero {
  position: relative;
  z-index: 1;
  margin: 96px 0 0;
  max-width: none;
}

.landing-screen--hero .landing-screen__frame {
  border-radius: 24px;
  border-color: rgba(244, 241, 234, 0.08);
  background: rgba(8, 8, 10, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.landing-screen--hero .landing-screen__bar {
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-bottom-color: rgba(244, 241, 234, 0.06);
}

.landing-screen--hero .landing-screen__body {
  min-height: 440px;
}

.landing-screen--hero .landing-screen__sidebar {
  width: 182px;
  padding: 24px 20px;
  border-right-color: rgba(244, 241, 234, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.landing-screen--hero .landing-screen__content {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.landing-screen__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.landing-screen__headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.landing-screen__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 110, 0.22);
  background: rgba(201, 163, 110, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-screen__panels {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 16px;
}

.landing-screen__panel {
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.025);
}

.landing-screen__list,
.landing-screen__stack {
  display: grid;
  gap: 10px;
}

.landing-screen__list-item,
.landing-screen__stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 241, 234, 0.06);
  font-size: 13px;
}

.landing-screen__list-item:first-child,
.landing-screen__stack-item:first-child {
  padding-top: 0;
  border-top: none;
}

.landing-screen__list-item strong,
.landing-screen__stack-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.landing-screen__list-item span,
.landing-screen__stack-item span {
  opacity: 0.62;
}

.landing-screen__metric {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.landing-promise,
.landing-showcase,
.landing-workflow,
.landing-pricing {
  margin-bottom: 120px;
}

.landing-promise__intro,
.landing-showcase__intro,
.landing-workflow__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.landing-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 10ch;
}

.landing-section__body {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  opacity: 0.72;
}

.landing-promise__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.promise-card {
  min-height: 230px;
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.promise-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.54;
  margin-bottom: 14px;
}

.promise-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.promise-card__body {
  font-size: 14px;
  line-height: 1.68;
  opacity: 0.74;
  margin: 0 0 18px;
}

.promise-card__stat {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-showcase__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.showcase-card {
  grid-column: span 4;
  min-height: 220px;
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.showcase-card--wide {
  grid-column: span 6;
}

.showcase-card--highlight {
  background: linear-gradient(180deg, rgba(201, 163, 110, 0.12), rgba(255, 255, 255, 0.03));
}

.showcase-card__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.54;
  margin-bottom: 12px;
}

.showcase-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.showcase-card__body {
  font-size: 14px;
  line-height: 1.68;
  opacity: 0.74;
  margin: 0 0 18px;
}

.showcase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 999px;
  font-size: 12px;
  opacity: 0.84;
}

.landing-workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.landing-workflow__intro {
  display: block;
  margin-bottom: 0;
}

.landing-workflow .section-title {
  margin-bottom: 18px;
}

.workflow {
  gap: 22px;
}

.workflow li {
  max-width: none;
  padding: 18px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.workflow li:first-child {
  border-top: none;
  padding-top: 0;
}

.workflow__step {
  color: var(--accent);
  opacity: 1;
}

.workflow h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.workflow p {
  font-size: 14px;
  line-height: 1.68;
}

.pricing-card--wide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  max-width: 920px;
  text-align: left;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.pricing-card__main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pricing-card__copy {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.72;
  margin: 0 0 12px;
  max-width: 36ch;
}

.pricing-card__side {
  display: flex;
  align-items: center;
}

.pricing-card__side .pricing-card__list {
  width: 100%;
  margin-bottom: 0;
}

.landing-cta {
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.landing-cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
}

.landing-footer {
  max-width: 1320px;
  margin: 0 auto;
  opacity: 0.62;
}

.today {
  border-radius: 24px;
  border-color: rgba(244, 241, 234, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat {
  border-radius: 18px;
  border-color: rgba(244, 241, 234, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.momentum-board {
  position: relative;
  overflow: hidden;
  margin: 0 0 56px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(11, 11, 14, 0.94));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.momentum-board::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 163, 110, 0.22), transparent 68%);
  filter: blur(18px);
}

.momentum-board::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -28%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(92, 124, 92, 0.18), transparent 68%);
  filter: blur(24px);
}

.momentum-board__hero,
.momentum-board__grid,
.mission-board {
  position: relative;
  z-index: 1;
}

.momentum-board__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.momentum-board__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.52;
  margin-bottom: 10px;
}

.momentum-board__scoreline {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.momentum-board__score {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.momentum-board__score-max {
  font-size: 18px;
  opacity: 0.58;
  margin-bottom: 10px;
}

.momentum-board__headline {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.momentum-board__caption {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.72;
}

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

.pulse-card {
  min-height: 172px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.pulse-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.54;
}

.pulse-card__value {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.pulse-card__sub {
  max-width: 28ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.pulse-meter {
  height: 10px;
  margin-top: 18px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.pulse-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 163, 110, 0.82), rgba(244, 241, 234, 0.88));
  transition: width 420ms ease;
}

.pipeline-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 20px;
}

.pipeline-strip__segment {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 70px;
  padding: 12px;
  border-radius: 14px;
  color: var(--bg);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pipeline-strip__segment span {
  line-height: 1;
}

.pipeline-strip__segment[data-status="cold"] {
  background: rgba(140, 90, 85, 0.9);
}

.pipeline-strip__segment[data-status="no_reply"] {
  background: rgba(90, 90, 92, 0.95);
  color: var(--text);
}

.pipeline-strip__segment[data-status="follow_up"] {
  background: rgba(201, 163, 110, 0.95);
}

.pipeline-strip__segment[data-status="responded"] {
  background: rgba(92, 124, 92, 0.95);
}

.pipeline-strip__segment[data-status="scheduled"] {
  background: rgba(244, 241, 234, 0.9);
}

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.84;
}

.pipeline-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pipeline-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.pipeline-legend__swatch[data-status="cold"] {
  background: rgba(140, 90, 85, 0.9);
}

.pipeline-legend__swatch[data-status="no_reply"] {
  background: rgba(90, 90, 92, 0.95);
}

.pipeline-legend__swatch[data-status="follow_up"] {
  background: rgba(201, 163, 110, 0.95);
}

.pipeline-legend__swatch[data-status="responded"] {
  background: rgba(92, 124, 92, 0.95);
}

.pipeline-legend__swatch[data-status="scheduled"] {
  background: rgba(244, 241, 234, 0.9);
}

.mission-board {
  margin-top: 24px;
}

.mission-board__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.mission-board__head .section-title {
  margin: 0;
}

.mission-board__meta {
  font-size: 13px;
  opacity: 0.58;
}

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

.mission-item {
  min-height: 204px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.mission-item__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.52;
}

.mission-item__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.mission-item__body {
  font-size: 14px;
  line-height: 1.68;
  opacity: 0.72;
}

.mission-item__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mission-item__link:hover {
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .landing-hero--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .showcase-card,
  .showcase-card--wide {
    grid-column: auto;
  }

  .landing-workflow {
    grid-template-columns: 1fr;
  }

  .momentum-board__grid,
  .mission-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-card--pipeline {
    grid-column: span 2;
  }
}

@media (max-width: 840px) {
  .landing-nav {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav__links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .landing {
    padding: 0 20px 80px;
  }

  .landing-hero--split {
    padding: 72px 0 88px;
  }

  .landing-hero__title {
    max-width: none;
    font-size: clamp(42px, 15vw, 62px);
    line-height: 0.98;
  }

  .landing-hero__sub {
    font-size: 16px;
  }

  .landing-kicker {
    letter-spacing: 0.14em;
  }

  .landing-canvas {
    min-height: auto;
    padding: 20px;
  }

  .landing-canvas__note {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    margin-bottom: 16px;
  }

  .landing-screen--hero {
    margin-top: 0;
  }

  .landing-screen__top {
    flex-direction: column;
  }

  .landing-screen__panels,
  .landing-screen__stats,
  .landing-promise__grid,
  .landing-showcase__grid,
  .momentum-board__grid,
  .mission-list,
  .pricing-card--wide {
    grid-template-columns: 1fr;
  }

  .landing-promise__intro,
  .landing-showcase__intro {
    display: block;
  }

  .landing-section__title {
    max-width: none;
    margin-bottom: 12px;
  }

  .landing-screen__headline {
    font-size: 22px;
  }

  .landing-footer {
    max-width: none;
  }

  .momentum-board {
    padding: 20px;
  }

  .momentum-board__hero,
  .mission-board__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .momentum-board__score {
    font-size: 60px;
  }

  .pulse-card--pipeline {
    grid-column: auto;
  }
}

/* ----- authenticated app refinement ----- */

:root {
  --panel-border: rgba(244, 241, 234, 0.08);
  --panel-bg-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  --panel-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.app {
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 163, 110, 0.08), transparent 22%),
    radial-gradient(circle at 100% 30%, rgba(92, 124, 92, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0a0b 0%, #09090a 100%);
}

.sidebar {
  background: rgba(10, 10, 11, 0.9);
  border-right-color: var(--panel-border);
  backdrop-filter: blur(16px);
}

.sidebar__wordmark {
  padding-bottom: 34px;
}

.sidebar__link {
  margin: 0 14px;
  padding: 12px 14px 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: opacity 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(244, 241, 234, 0.05);
}

.sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(244, 241, 234, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar__link.is-active::before {
  left: 10px;
  top: 10px;
  bottom: 10px;
  border-radius: 999px;
}

.sidebar__user {
  margin: auto 14px 0;
  padding: 18px 4px 0;
  border-top-color: var(--panel-border);
}

.sidebar__guest,
.table__tag,
.tag-chip,
.snippets-panel__count,
.cmdk__hint kbd,
.kbd {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--panel-border);
}

.main {
  width: min(100%, 1320px);
  padding: 44px 48px 88px;
}

.main__header {
  margin-bottom: 36px;
}

.page-title {
  opacity: 0.84;
}

.field__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.74;
}

.input,
.select,
.textarea {
  border-color: var(--panel-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(201, 163, 110, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 3px rgba(201, 163, 110, 0.14);
}

.form-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.toolbar,
.status-filters,
.tag-filters,
.bulk-bar__actions {
  gap: 10px;
}

.stat,
.today,
.onboarding-checklist,
.followups,
.upcoming,
.add-contact,
.import-panel,
.empty-state,
.profile-gate,
.bulk-bar,
.tpl-form,
.email-card,
.contact-detail__head,
.contact-detail__panel,
.cmdk,
.auth-card,
.tpl-card,
.snippets-panel,
.snippet-card,
.subject-alts,
.calendar-grid,
.help-card {
  border-color: var(--panel-border);
  border-radius: 20px;
  background: var(--panel-bg-soft);
  box-shadow: var(--panel-shadow);
}

.bulk-bar,
.profile-gate,
.tpl-form {
  padding: 20px 22px;
}

.table {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--panel-shadow);
}

.table thead th {
  background: rgba(255, 255, 255, 0.035);
  border-bottom-color: var(--panel-border);
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.table tbody td {
  height: 60px;
}

.email-card__subject,
.contact-detail__name,
.tpl-card__name {
  letter-spacing: -0.02em;
}

.email-card__foot,
.contact-detail__panel,
.toggle-row,
.timeline,
.calendar-dows,
.calendar-cell,
.calendar-event,
.subject-alts__list li,
.snippet-card__body,
.tpl-card__body,
.activity-row,
.followup-row,
.cmdk__input,
.cmdk__hint,
.cmdk__group,
.cmdk__item {
  border-color: var(--panel-border);
}

.dashboard-grid {
  gap: 24px;
}

.activity,
.followups,
.upcoming {
  box-shadow: var(--panel-shadow);
}

.bars {
  gap: 12px;
}

.bar {
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.bar__track {
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.bar__fill {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 163, 110, 0.9), rgba(244, 241, 234, 0.85));
}

.cmdk-overlay {
  background: rgba(2, 2, 4, 0.72);
  backdrop-filter: blur(10px);
}

.cmdk {
  background: linear-gradient(180deg, rgba(17, 17, 20, 0.98), rgba(10, 10, 12, 0.96));
}

.cmdk__item.is-active {
  background: rgba(255, 255, 255, 0.05);
}

.auth-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 163, 110, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(92, 124, 92, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0b0d 0%, #080809 100%);
}

.auth-card {
  max-width: 420px;
}

.calendar-event,
.tag-chip,
.table__tag {
  background: rgba(255, 255, 255, 0.03);
}

.share-board {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
}

.share-board__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.share-board__sub {
  max-width: 44ch;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.64;
}

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

.share-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(201, 163, 110, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--panel-shadow);
}

.share-card::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 163, 110, 0.18), transparent 68%);
  pointer-events: none;
}

.share-card__brand,
.share-card__eyebrow,
.share-card__headline,
.share-card__body,
.share-card__stats,
.share-card__footer {
  position: relative;
  z-index: 1;
}

.share-card__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.share-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.share-card__headline {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.share-card__body {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.72;
  opacity: 0.76;
}

.share-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.share-card__stat {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
}

.page-subtitle {
  margin: 8px 0 0;
  max-width: 700px;
  color: rgba(34, 46, 60, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.main__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  object-fit: cover;
}

.profile-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar__user {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}

.sidebar__avatar {
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(18, 31, 47, 0.18);
  background: linear-gradient(135deg, #f5a55a 0%, #cc5f41 100%);
}

.sidebar__avatar[data-tone="ember"] {
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
}

.sidebar__avatar[data-tone="tide"] {
  background: linear-gradient(135deg, #4fb4c5 0%, #1b5f76 100%);
}

.sidebar__avatar[data-tone="meadow"] {
  background: linear-gradient(135deg, #88cb89 0%, #2c715b 100%);
}

.sidebar__avatar[data-tone="aurora"] {
  background: linear-gradient(135deg, #9cb7ff 0%, #6a5fd0 48%, #ef8d7a 100%);
}

.sidebar__avatar[data-tone="graphite"] {
  background: linear-gradient(135deg, #7e8797 0%, #222a38 100%);
}

.sidebar__avatar-media {
  font-size: 22px;
}

.sidebar__headline {
  grid-column: 2;
  color: rgba(231, 236, 242, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar__user-meta {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.community-page__subtitle {
  max-width: 620px;
}

.community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.95fr);
  gap: 24px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(140deg, #102231 0%, #1d4754 46%, #f1b26a 150%);
  color: #f7f7f2;
  box-shadow: 0 30px 80px rgba(14, 29, 41, 0.18);
  overflow: hidden;
}

.community-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.community-hero__copy,
.community-hero__stats {
  position: relative;
  z-index: 1;
}

.community-hero__eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 244, 228, 0.76);
}

.community-hero__title {
  max-width: 12ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.community-hero__body {
  margin: 18px 0 0;
  max-width: 58ch;
  color: rgba(247, 247, 242, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

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

.community-hero__stat {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.community-hero__stat span,
.community-hero__stat small {
  color: rgba(247, 247, 242, 0.74);
}

.community-hero__stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-hero__stat strong {
  font-family: "Fraunces", serif;
  font-size: 34px;
  line-height: 1;
}

.community-hero__stat small {
  font-size: 12px;
  line-height: 1.5;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.community-main,
.community-rail {
  display: grid;
  gap: 24px;
}

.community-compose,
.community-feed-shell,
.community-sidebar-card,
.community-profile-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(250, 246, 239, 0.96) 100%);
  border: 1px solid rgba(30, 47, 64, 0.08);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(18, 31, 47, 0.08);
}

.community-compose,
.community-feed-shell,
.community-sidebar-card {
  padding: 24px;
}

.community-compose::before,
.community-feed-shell::before,
.community-sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 31, 47, 0), rgba(18, 31, 47, 0.08), rgba(18, 31, 47, 0));
}

.community-compose__head,
.community-feed-shell__head,
.community-sidebar-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.community-compose__sub,
.community-feed-shell__sub,
.community-sidebar-card__sub {
  margin-top: 6px;
  color: rgba(40, 52, 65, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.community-compose__tip {
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(240, 196, 129, 0.18);
  color: rgba(52, 42, 28, 0.8);
  font-size: 12px;
  line-height: 1.55;
}

.community-compose__form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.community-compose__form label,
.community-campus-filter {
  display: grid;
  gap: 8px;
}

.community-compose__form label > span,
.community-campus-filter > span {
  color: rgba(40, 52, 65, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.community-compose__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.community-compose__note {
  color: rgba(40, 52, 65, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.community-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.community-tag-suggestions > span {
  color: rgba(40, 52, 65, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-tag-suggestion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(30, 47, 64, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #22303c;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.community-tag-suggestion:hover,
.community-tag-suggestion:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 96, 94, 0.22);
  background: rgba(37, 96, 94, 0.12);
  box-shadow: 0 12px 24px rgba(18, 31, 47, 0.08);
}

.community-tag-suggestion:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.community-compose__status {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.community-compose__status[data-tone="neutral"] {
  background: rgba(34, 48, 60, 0.06);
  color: rgba(40, 52, 65, 0.72);
}

.community-compose__status[data-tone="warning"] {
  background: rgba(201, 163, 110, 0.18);
  color: rgba(76, 47, 17, 0.88);
}

.community-compose__status[data-tone="success"] {
  background: rgba(59, 120, 89, 0.14);
  color: #27553d;
}

.community-feed-shell__controls {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.community-kind-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.community-filter-pill,
.community-action,
.starter-thread,
.community-pulse__row {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.community-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(30, 47, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #22303c;
  font-size: 13px;
  font-weight: 600;
}

.community-filter-pill span {
  color: rgba(34, 48, 60, 0.6);
  font-size: 12px;
}

.community-filter-pill:hover,
.community-filter-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 96, 94, 0.22);
  background: rgba(37, 96, 94, 0.12);
  box-shadow: 0 12px 30px rgba(18, 31, 47, 0.08);
}

.community-feed {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.community-post {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 47, 64, 0.08);
  box-shadow: 0 22px 48px rgba(18, 31, 47, 0.07);
  overflow: hidden;
}

.community-post::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6b36c 0%, #cf5f40 100%);
}

.community-post[data-tone="tide"]::before,
.community-profile-card__banner[data-tone="tide"] {
  background: linear-gradient(135deg, #4fb4c5 0%, #1b5f76 100%);
}

.community-post[data-tone="meadow"]::before,
.community-profile-card__banner[data-tone="meadow"] {
  background: linear-gradient(135deg, #88cb89 0%, #2c715b 100%);
}

.community-post[data-tone="aurora"]::before,
.community-profile-card__banner[data-tone="aurora"] {
  background: linear-gradient(135deg, #9cb7ff 0%, #6a5fd0 48%, #ef8d7a 100%);
}

.community-post[data-tone="graphite"]::before,
.community-profile-card__banner[data-tone="graphite"] {
  background: linear-gradient(135deg, #7e8797 0%, #222a38 100%);
}

.community-post[data-tone="ember"]::before,
.community-profile-card__banner[data-tone="ember"] {
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
}

.community-post__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.community-post__avatar,
.community-reply__avatar {
  flex: none;
  overflow: hidden;
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
  box-shadow: 0 18px 32px rgba(18, 31, 47, 0.12);
}

.community-post__avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.community-post__avatar-media,
.community-reply__avatar-media,
.community-profile-card__avatar-media {
  font-size: 24px;
}

.community-post__meta,
.community-reply__body {
  min-width: 0;
}

.community-post__topline,
.community-reply__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.community-post__author {
  color: #172533;
  font-size: 15px;
  font-weight: 700;
}

.community-social-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(23, 37, 51, 0.05);
  color: #172533;
  transition: all 0.2s ease;
}

.community-social-link:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.community-post__subline,
.community-post__campus,
.community-post__timestamp,
.community-reply__topline span {
  color: rgba(40, 52, 65, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.community-post__kind,
.starter-thread__kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-post__kind--discussion,
.starter-thread__kind--discussion {
  background: rgba(86, 121, 164, 0.14);
  color: #365982;
}

.community-post__kind--ask,
.starter-thread__kind--ask {
  background: rgba(52, 123, 111, 0.14);
  color: #24584f;
}

.community-post__kind--win,
.starter-thread__kind--win {
  background: rgba(211, 128, 57, 0.16);
  color: #92541f;
}

.community-post__kind--opportunity,
.starter-thread__kind--opportunity {
  background: rgba(122, 92, 198, 0.16);
  color: #544089;
}

.community-post__kind--resource,
.starter-thread__kind--resource {
  background: rgba(43, 111, 137, 0.16);
  color: #1d5166;
}

.community-post__title {
  margin: 0;
  color: #152230;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.community-post__body,
.community-reply__text,
.community-profile-card__bio,
.starter-thread span,
.community-empty-state__body,
.community-empty-mini {
  margin: 0;
  color: rgba(40, 52, 65, 0.78);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.community-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 48, 60, 0.06);
  color: rgba(40, 52, 65, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.community-post__actions,
.community-reply-form__actions,
.community-profile-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.community-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(30, 47, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #22303c;
  font-size: 13px;
  font-weight: 600;
}

.community-action span {
  color: rgba(40, 52, 65, 0.6);
}

.community-action:hover,
.community-action.is-active {
  transform: translateY(-1px);
  border-color: rgba(34, 93, 92, 0.22);
  background: rgba(34, 93, 92, 0.12);
  box-shadow: 0 14px 32px rgba(18, 31, 47, 0.08);
}

.community-reply-form {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.community-reply-form__actions span,
.community-profile-card__footer span {
  color: rgba(40, 52, 65, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.community-replies {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.community-reply {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 47, 64, 0.08);
}

.community-reply__avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.community-profile-card {
  overflow: hidden;
}

.community-profile-card__banner {
  height: 96px;
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
}

.community-profile-card__avatar {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #fff8ef;
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
  box-shadow: 0 18px 32px rgba(18, 31, 47, 0.14);
}

.community-profile-card__body {
  display: grid;
  gap: 10px;
  padding: 16px 24px 24px;
}

.community-profile-card__title {
  color: rgba(40, 52, 65, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-profile-card__name {
  color: #172533;
  font-size: 21px;
  font-weight: 700;
}

.community-profile-card__handle {
  color: rgba(40, 52, 65, 0.64);
  font-size: 13px;
  line-height: 1.7;
}

.community-profile-card__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(40, 52, 65, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-profile-card__progress strong {
  color: #172533;
  font-size: 14px;
}

.community-profile-card__meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 48, 60, 0.08);
  overflow: hidden;
}

.community-profile-card__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #f6b36c 0%, #cf5f40 100%);
}

.community-profile-card__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-task-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(34, 48, 60, 0.06);
  color: rgba(40, 52, 65, 0.72);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.community-task-chip:hover {
  background: rgba(37, 96, 94, 0.12);
}

.starter-thread-list,
.community-pulse {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.starter-thread {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(30, 47, 64, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.starter-thread strong {
  color: #172533;
  font-size: 15px;
  line-height: 1.45;
}

.starter-thread:hover,
.community-pulse__row:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 47, 64, 0.12);
  box-shadow: 0 18px 34px rgba(18, 31, 47, 0.08);
}

.community-pulse__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(30, 47, 64, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.community-pulse__row span {
  color: rgba(40, 52, 65, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.community-pulse__row strong {
  color: #172533;
  font-size: 14px;
}

.community-pulse__row small {
  color: rgba(40, 52, 65, 0.58);
  font-size: 12px;
}

.community-empty-state,
.community-empty-mini {
  padding: 28px;
  border: 1px dashed rgba(30, 47, 64, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.community-empty-state__title {
  color: #172533;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.settings__split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.settings-identity-fields {
  display: grid;
  gap: 18px;
}

.settings-preview {
  display: grid;
  gap: 10px;
}

.settings-preview__label {
  color: rgba(40, 52, 65, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.settings-profile-preview {
  box-shadow: 0 22px 48px rgba(18, 31, 47, 0.08);
}

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

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

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

  .settings-identity-grid {
    grid-template-columns: 1fr;
  }
}

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

  .community-feed-shell__head,
  .community-compose__head,
  .community-sidebar-card__head {
    flex-direction: column;
  }

  .community-feed-shell__controls {
    justify-items: stretch;
  }

  .community-kind-filters {
    justify-content: flex-start;
  }

  .community-compose__grid,
  .community-hero__stats,
  .community-rail {
    grid-template-columns: 1fr;
  }

  .settings__split {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .main__actions {
    justify-content: flex-start;
  }

  .community-hero,
  .community-compose,
  .community-feed-shell,
  .community-sidebar-card {
    padding: 20px;
    border-radius: 24px;
  }

  .community-post {
    padding: 20px;
  }

  .community-post__actions,
  .community-reply-form__actions,
  .community-profile-card__footer {
    align-items: stretch;
  }

  .community-action,
  .community-profile-card__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .sidebar__user {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .sidebar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .sidebar__headline {
    font-size: 11px;
  }
}
  background: rgba(255, 255, 255, 0.035);
}

.share-card__stat span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.56;
  margin-bottom: 8px;
}

.share-card__stat strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.share-card__footer {
  font-size: 13px;
  opacity: 0.62;
}

@media (max-width: 960px) {
  .sidebar {
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: none;
  }

  .sidebar__link {
    margin: 0;
    padding: 8px 12px;
  }

  .sidebar__user {
    margin: 0;
    padding: 0;
  }

  .main {
    width: 100%;
    padding: 28px 20px 56px;
  }

  .share-board__head {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ======================================================================
   CoffeeChat Chronicle Theme — final cascade layer
   Distinctive, student-editorial, less “AI dashboard”, more remembered OS.
   ====================================================================== */

:root {
  color-scheme: dark;
  --font-sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --bg: #0b0907;
  --bg-deep: #070604;
  --text: #fff7ea;
  --muted: rgba(255, 247, 234, 0.64);
  --faint: rgba(255, 247, 234, 0.42);
  --border: rgba(255, 247, 234, 0.13);
  --border-strong: rgba(255, 247, 234, 0.22);
  --accent: #ffb84d;
  --accent-2: #f2663f;
  --mint: #89d39b;
  --blue: #8bb8ff;
  --violet: #c9a6ff;
  --paper: #17110d;
  --paper-2: #21170f;
  --field-bg: rgba(255, 247, 234, 0.055);
  --row-hover: rgba(255, 184, 77, 0.08);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --destructive: #ff7a6a;
  --status-green: #89d39b;
  --status-gray: #948a7a;
  --status-amber: #ffb84d;
  --status-red: #ff7a6a;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -10%, rgba(255, 184, 77, 0.22), transparent 34%),
    radial-gradient(circle at 108% 8%, rgba(137, 211, 155, 0.14), transparent 28%),
    radial-gradient(circle at 68% 118%, rgba(201, 166, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #0f0b08 0%, #090806 52%, #070604 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}

body:not(.landing-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 247, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 234, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 82%);
}

body:not(.landing-body)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 22%, transparent 78%, rgba(0,0,0,.16));
}

button,
input,
select,
textarea,
.sidebar__signout,
.kbd,
.auth-tab,
.cmdk__item,
.help-card__close,
.tag-chip__x {
  font-family: var(--font-sans);
  font-size: 15px;
}

::selection { background: var(--accent); color: #150d07; }

.app { min-height: 100vh; }

.sidebar {
  width: 254px;
  padding: 26px 14px 18px;
  border-right: 1px solid var(--border);
  background: rgba(10, 8, 6, 0.74);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.18);
}

.sidebar__wordmark,
.landing-wordmark,
.auth-wordmark,
.landing-screen__wordmark,
.share-card__brand {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.19em;
}

.sidebar__wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 28px;
  color: var(--text);
}

.sidebar__wordmark::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--mint), var(--accent));
  box-shadow: 0 0 0 6px rgba(255, 184, 77, 0.11), 0 0 36px rgba(255, 184, 77, 0.26);
}

.sidebar__nav { gap: 4px; }

.sidebar__link {
  margin: 0;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  opacity: 1;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar__link:hover {
  color: var(--text);
  background: rgba(255, 247, 234, 0.055);
  transform: translateX(2px);
}

.sidebar__link.is-active {
  color: #120c07;
  background: linear-gradient(135deg, var(--accent), #ffd58a);
  box-shadow: 0 12px 30px rgba(255, 184, 77, 0.18);
}

.sidebar__link.is-active::before { display: none; }

.sidebar__user {
  margin: auto 4px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.07), rgba(255, 247, 234, 0.035));
}

.sidebar__user-name { font-size: 14px; }
.sidebar__user-email,
.sidebar__signout,
.sidebar__guest { color: var(--muted); opacity: 1; }

.main {
  width: min(100%, 1320px);
  max-width: none;
  padding: 52px clamp(24px, 5vw, 78px) 110px;
}

.main__header {
  align-items: flex-start;
  margin-bottom: 34px;
}

.page-title,
.section-title,
.stat__label,
.field__label,
.landing-kicker,
.momentum-board__eyebrow,
.pulse-card__label,
.mission-item__eyebrow,
.share-card__eyebrow,
.generator-brief__badge {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.page-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.96;
  text-transform: none;
  letter-spacing: -0.045em;
  opacity: 1;
}

.page-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.section-title {
  color: var(--accent);
  opacity: 0.92;
}

.btn {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffd489 54%, #fff0bf);
  border-color: rgba(255, 247, 234, 0.18);
  color: #150d07;
  box-shadow: 0 16px 38px rgba(255, 184, 77, 0.2);
}

.btn--secondary {
  border-color: var(--border-strong);
  background: rgba(255, 247, 234, 0.045);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: rgba(255, 184, 77, 0.56);
  background: rgba(255, 184, 77, 0.08);
}

.input,
.select,
.textarea {
  border-radius: 16px;
  border-color: var(--border);
  background: rgba(255, 247, 234, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 184, 77, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.12);
}

.field__hint { color: var(--faint); opacity: 1; }

.stat,
.followups,
.activity,
.contact-detail__head,
.contact-detail__panel,
.add-contact,
.import-panel,
.auth-card,
.settings__section,
.email-card,
.cmdk,
.pricing-card,
.promise-card,
.landing-screen__panel,
.community-card,
.template-card,
.calendar-board,
.insights-panel {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.075), rgba(255, 247, 234, 0.035)),
    rgba(15, 11, 8, 0.7);
  box-shadow: var(--shadow-card);
}

.stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.stat__value,
.momentum-board__score,
.pulse-card__value,
.pricing-card__price,
.landing-screen__stat strong,
.share-card__headline {
  font-family: var(--font-display);
  letter-spacing: -0.055em;
}

.stat__value {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.9;
}

.stat__sub { color: var(--muted); opacity: 1; }

.today,
.onboarding-checklist,
.momentum-board,
.generator-brief,
.profile-gate {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 184, 77, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 234, 0.08), rgba(255, 247, 234, 0.035));
  box-shadow: var(--shadow-soft);
}

.today {
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 28px;
}

.today__greeting {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.today__headline { color: var(--muted); }
.today__cta { color: rgba(255, 247, 234, 0.78); }
.today__cta a { color: var(--accent); }

.today__goal-track,
.pulse-meter,
.pipeline-strip {
  border-radius: 999px;
  background: rgba(255, 247, 234, 0.07);
  border-color: var(--border);
}

.today__goal-fill,
.pulse-meter__fill {
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #fff0bf);
  box-shadow: 0 0 28px rgba(255, 184, 77, 0.22);
}

.onboarding-checklist { padding: 24px; }
.onboarding-step { border-radius: 18px; }
.onboarding-step.is-done { background: rgba(137, 211, 155, 0.08); }

.momentum-board {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 44px;
}

.momentum-board::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.18), transparent 68%);
  pointer-events: none;
}

.momentum-board__hero { position: relative; z-index: 1; }
.momentum-board__score { font-size: clamp(68px, 10vw, 132px); }
.momentum-board__score-max { color: var(--faint); }
.momentum-board__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.momentum-board__caption { color: var(--muted); }

.pulse-card,
.mission-item,
.share-board {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(10, 8, 6, 0.5);
  backdrop-filter: blur(16px);
}

.mission-item__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.mission-item__link { color: var(--accent); font-weight: 800; }

.share-card {
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 184, 77, 0.25), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(137, 211, 155, 0.2), transparent 34%),
    #100c09;
}

.followup-row,
.activity-row,
.table tbody tr,
.landing-screen__list-item,
.landing-screen__stack-item {
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.followup-row:hover,
.activity-row:hover,
.table tbody tr:hover {
  background: var(--row-hover);
}

.followup-row__name,
.table__name,
.activity-row__contact { font-weight: 800; }
.followup-row__sub,
.followup-row__meta,
.table__muted,
.activity-row__firm { color: var(--muted); opacity: 1; }

.status__dot { box-shadow: 0 0 0 4px rgba(255,255,255,.04); }

.generator { max-width: 980px; }

.generator__controls {
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr);
  gap: 16px;
  margin-bottom: 18px;
}

.generator-brief {
  padding: 22px;
  margin: 0 0 24px;
}

.generator-brief__intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.generator-brief__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.generator-brief__sub {
  margin: 7px 0 0;
  color: var(--muted);
}

.generator-brief__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.34);
  background: rgba(255, 184, 77, 0.09);
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}

.generator-brief__grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(260px, 1.4fr);
  gap: 16px;
}

.generator-brief__context { margin-bottom: 0; }
.generator-brief__ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.generator-brief__idea {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px dashed rgba(244, 223, 184, 0.24);
  border-radius: 999px;
  background: rgba(244, 223, 184, 0.06);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.generator-brief__idea:hover,
.generator-brief__idea:focus-visible {
  border-color: rgba(244, 199, 106, 0.45);
  background: rgba(244, 199, 106, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.generator-brief textarea { min-height: 96px; }
.generator__actions { margin-bottom: 34px; }
.email-cards { max-width: 980px; gap: 18px; }

.email-card {
  padding: 24px;
  overflow: hidden;
}

.email-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--mint));
  opacity: 0.86;
}

.email-card__subject {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.email-card__quality {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.email-card__quality-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 106, 0.28);
  background: rgba(255, 122, 106, 0.08);
  color: #ffb2a8;
  font-size: 12px;
  font-weight: 800;
}

.email-card__quality-pill.is-good {
  border-color: rgba(137, 211, 155, 0.28);
  background: rgba(137, 211, 155, 0.08);
  color: var(--mint);
}

.email-card__body {
  font-size: 15px;
  line-height: 1.74;
  color: rgba(255, 247, 234, 0.88);
}

.email-card__foot { border-top-color: var(--border); }
.subject-alts {
  border-radius: 20px;
  border-color: var(--border);
  background: rgba(255, 247, 234, 0.05);
}

.cmdk-overlay { background: rgba(7, 6, 4, 0.72); backdrop-filter: blur(10px); }
.cmdk { border-radius: 24px; overflow: hidden; }
.cmdk__input { font-size: 18px; }
.cmdk__item.is-active { background: rgba(255, 184, 77, 0.11); }

.auth-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 184, 77, 0.18), transparent 36%),
    var(--bg);
}
.auth-card { max-width: 420px; padding: 32px; }
.auth-tabs { border-bottom-color: var(--border); }
.auth-tab.is-active::after { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.landing-body {
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 184, 77, 0.24), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(137, 211, 155, 0.16), transparent 30%),
    radial-gradient(circle at 64% 112%, rgba(201, 166, 255, 0.14), transparent 38%),
    linear-gradient(180deg, #100b08 0%, #090806 48%, #070604 100%);
}

.landing-nav {
  background: rgba(11, 9, 7, 0.76);
  border-bottom-color: var(--border);
}

.landing-hero__title,
.landing-section__title,
.landing-cta__title,
.feature__title,
.workflow h3,
.promise-card__title,
.pricing-card__price,
.landing-screen__headline {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.landing-hero__title {
  max-width: 11ch;
  text-wrap: balance;
}

.landing-canvas,
.landing-screen__frame {
  border-color: var(--border);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(33, 23, 15, 0.96), rgba(12, 9, 7, 0.96));
}

.landing-screen__frame { box-shadow: 0 32px 90px rgba(0,0,0,.34); }
.landing-screen__stat,
.landing-screen__panel,
.landing-canvas__note,
.promise-card,
.pricing-card {
  border-color: var(--border);
  background: rgba(255, 247, 234, 0.06);
}

.table {
  border-color: var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 8, 6, 0.44);
}
.table thead th { background: rgba(255, 247, 234, 0.04); }

.toast {
  border-radius: 999px;
  background: #fff7ea;
  color: #150d07;
  border: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.34);
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child { grid-column: span 2; }
  .landing-hero--split { grid-template-columns: 1fr; }
  .landing-canvas { min-height: 620px; }
}

@media (max-width: 960px) {
  .sidebar {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 8, 6, 0.86);
  }
  .sidebar__nav {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .sidebar__wordmark::before { width: 11px; height: 11px; }
  .main { padding: 32px 18px 72px; }
  .page-title { font-size: 42px; }
  .generator__controls,
  .generator-brief__grid { grid-template-columns: 1fr; }
  .generator-brief__intro { flex-direction: column; }
  .followup-row { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: 1fr; }
  .stats .stat:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .main { padding-inline: 14px; }
  .today,
  .momentum-board,
  .generator-brief,
  .email-card { border-radius: 22px; padding: 20px; }
  .email-card__head { flex-direction: column; }
  .email-card__head-actions { flex-wrap: wrap; }
  .landing { padding-inline: 18px; }
  .landing-hero__title { font-size: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .stat,
  .today,
  .momentum-board,
  .email-card,
  .generator-brief {
    animation: ccFadeUp 520ms cubic-bezier(.2,.8,.2,1) both;
  }
  .email-card:nth-child(2) { animation-delay: 80ms; }
  .email-card:nth-child(3) { animation-delay: 160ms; }
}

/* ======================================================================
   CoffeeChat Field Notebook Identity — anti-generic final layer
   Strategy: make the product feel like a student-built operating system:
   tactile, editorial, alive, and behavioral-science driven.
   ====================================================================== */

:root {
  --font-sans: "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #11100c;
  --bg-deep: #080705;
  --text: #fff8ea;
  --ink: #21170e;
  --paper-cream: #f4dfb8;
  --paper-warm: #c69b63;
  --accent: #ff8a3d;
  --accent-2: #f4c76a;
  --mint: #82c78f;
  --blue: #80aee8;
  --violet: #b99bf0;
  --muted: rgba(255, 248, 234, 0.68);
  --faint: rgba(255, 248, 234, 0.42);
  --border: rgba(244, 223, 184, 0.18);
  --border-strong: rgba(244, 223, 184, 0.3);
  --field-bg: rgba(244, 223, 184, 0.07);
  --row-hover: rgba(244, 199, 106, 0.095);
  --shadow-soft: 0 26px 90px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 16px 45px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 8% -8%, rgba(244, 199, 106, 0.2), transparent 34%),
    radial-gradient(circle at 105% 12%, rgba(130, 199, 143, 0.12), transparent 30%),
    linear-gradient(180deg, #17120d 0%, #0d0b08 52%, #080705 100%);
  font-family: var(--font-sans);
  font-stretch: 95%;
}

body:not(.landing-body)::before {
  background-image:
    linear-gradient(rgba(244, 223, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 223, 184, 0.028) 1px, transparent 1px),
    radial-gradient(circle, rgba(244, 223, 184, 0.045) 1px, transparent 1.5px);
  background-size: 100% 32px, 72px 72px, 18px 18px;
  opacity: 0.72;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(23, 18, 13, 0.92), rgba(12, 10, 7, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(244,223,184,.035) 32px);
}

.sidebar__wordmark::before {
  border-radius: 4px 999px 999px 999px;
  transform: rotate(-18deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.sidebar__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.sidebar__link.is-active {
  background: var(--paper-cream);
  color: var(--ink);
  box-shadow: 0 10px 0 rgba(0,0,0,.18), 0 18px 45px rgba(244, 199, 106, 0.16);
}

.page-title,
.today__greeting,
.momentum-board__headline,
.strategy-board__title,
.strategy-card__title,
.generator-brief__title,
.email-card__subject,
.landing-hero__title,
.landing-section__title,
.promise-card__title,
.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.page-title {
  font-size: clamp(48px, 7vw, 86px);
  font-style: italic;
}

.page-title::after {
  width: 112px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 22px, var(--accent-2) 22px 42px);
}

.section-title,
.stat__label,
.field__label,
.strategy-board__eyebrow,
.strategy-card__label,
.momentum-board__eyebrow,
.pulse-card__label,
.generator-brief__badge,
.share-card__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.btn {
  border-radius: 12px 999px 999px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--paper-cream);
  color: var(--ink);
  box-shadow: 0 7px 0 rgba(0,0,0,.2), 0 18px 48px rgba(244, 199, 106, 0.18);
}

.btn--primary:hover { transform: translateY(-2px) rotate(-0.3deg); }
.btn--secondary:hover { transform: translateY(-1px) rotate(0.2deg); }

.stat,
.today,
.momentum-board,
.strategy-board,
.email-card,
.generator-brief,
.followups,
.activity,
.contact-detail__head,
.contact-detail__panel,
.add-contact,
.import-panel,
.auth-card,
.table,
.share-board {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.035)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(244,223,184,.028) 32px),
    rgba(19, 15, 10, 0.82);
}

.stat:nth-child(odd),
.strategy-card:nth-child(odd),
.email-card:nth-child(odd) {
  transform: rotate(-0.12deg);
}

.stat:nth-child(even),
.strategy-card:nth-child(even),
.email-card:nth-child(even) {
  transform: rotate(0.12deg);
}

.stat__value,
.momentum-board__score,
.pulse-card__value {
  font-style: italic;
  color: var(--paper-cream);
}

.input,
.select,
.textarea {
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.strategy-board {
  padding: clamp(22px, 4vw, 36px);
  margin: 0 0 42px;
  position: relative;
  overflow: hidden;
}

.strategy-board::before {
  content: "FIELD NOTES";
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(244,223,184,.18);
  border: 1px solid rgba(244,223,184,.14);
  border-radius: 999px;
  padding: 6px 10px;
  transform: rotate(5deg);
}

.strategy-board__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.strategy-board__eyebrow,
.strategy-card__label {
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.strategy-board__title {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
  max-width: 9ch;
}

.strategy-board__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 16px;
}

.strategy-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8, 7, 5, 0.46);
  padding: 22px;
  min-height: 230px;
  box-shadow: var(--shadow-card);
}

.strategy-card--primary {
  background:
    linear-gradient(135deg, rgba(244, 223, 184, 0.16), rgba(255, 138, 61, 0.06)),
    rgba(10, 8, 6, 0.64);
}

.strategy-card--atlas { overflow: hidden; }

.strategy-card__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
}

.strategy-card__body {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.strategy-card__action {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ink);
  background: var(--paper-cream);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ritual-list,
.prompt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ritual-list__item,
.prompt-list li {
  border-top: 1px solid rgba(244,223,184,.13);
  padding-top: 12px;
}

.ritual-list__name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.ritual-list__text,
.prompt-list li {
  color: var(--muted);
  line-height: 1.55;
}

.prompt-list li::before {
  content: "→";
  color: var(--accent-2);
  margin-right: 8px;
}

.atlas-map {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.atlas-map::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(244,223,184,.13);
  border-radius: 50%;
}

.atlas-node {
  --size: 52px;
  --delay: 0ms;
  position: relative;
  z-index: 1;
  width: var(--size);
  min-width: var(--size);
  min-height: var(--size);
  padding: 10px;
  border: 1px solid rgba(244,223,184,.22);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(244,223,184,.08);
  animation: ccAtlasIn 540ms ease both;
  animation-delay: var(--delay);
}

.atlas-node strong {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.05;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-node span {
  font-size: 10px;
  color: var(--muted);
}

.atlas-node--booked { background: rgba(128,174,232,.16); }
.atlas-node--warm { background: rgba(130,199,143,.16); }
.atlas-node--due { background: rgba(255,138,61,.17); }
.atlas-node--cold { background: rgba(244,223,184,.07); }

.atlas-empty { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

@keyframes ccAtlasIn {
  from { opacity: 0; transform: scale(.86) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.email-card__quality-pill,
.subject-alts__label,
.share-board__sub,
.today__goal-meta {
  font-family: var(--font-mono);
}

.landing-hero__title {
  font-size: clamp(64px, 8vw, 104px);
  font-style: italic;
}

.landing-canvas,
.landing-screen__frame,
.promise-card,
.pricing-card {
  background:
    linear-gradient(180deg, rgba(244,223,184,.08), rgba(244,223,184,.035)),
    rgba(18, 14, 10, .82);
}

@media (max-width: 980px) {
  .strategy-board__head,
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-board__title { max-width: 12ch; }
}

@media (max-width: 640px) {
  .page-title { font-size: 52px; }
  .strategy-card { min-height: auto; }
  .atlas-map { justify-content: flex-start; }
}

.signal-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(244,223,184,.14);
}

.signal-rules span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(244,223,184,.18);
  background: rgba(244,223,184,.06);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signal-rules span::before {
  content: "✦";
  color: var(--accent-2);
  margin-right: 6px;
}

.email-card__quality {
  gap: 7px;
}

.email-card__quality-pill:not(.is-good) {
  border-style: dashed;
}

.insights-page__subtitle {
  margin: 12px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.insights-command,
.insight-decision-grid,
.insight-signal-row {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.insights-command {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.insight-decision-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.insight-signal-row {
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
}

.insight-spotlight,
.insight-posture-card,
.pressure-card,
.insight-playbook,
.insight-journal,
.insight-segments,
.segment-card,
.insight-reputation-card,
.insight-panel,
.playbook-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(244, 223, 184, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.035)),
    rgba(19, 15, 10, 0.82);
  box-shadow: var(--shadow-card);
}

.insight-spotlight {
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.insight-spotlight::before {
  content: "LAB NOTE";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.14);
  color: rgba(244, 223, 184, 0.34);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.insight-spotlight::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 223, 184, 0.18), transparent 72%);
  pointer-events: none;
}

.insight-spotlight__eyebrow,
.insight-posture-card__eyebrow,
.insight-journal__eyebrow,
.insight-reputation-card__eyebrow,
.playbook-card__label,
.segment-card__label,
.pressure-card__label {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-spotlight__chips,
.insight-reputation-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.insight-chip,
.insight-reputation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.14);
  background: rgba(244, 223, 184, 0.06);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-spotlight__title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 0.95;
}

.insight-spotlight__body,
.playbook-card__body,
.segment-card__body,
.insight-playbook__sub,
.insight-segments__sub {
  color: var(--muted);
  line-height: 1.7;
}

.insight-spotlight__meta {
  margin-top: 18px;
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  max-width: 44ch;
}

.insight-spotlight__action {
  margin-top: 18px;
}

.insight-posture-card,
.insight-reputation-card {
  position: relative;
  overflow: hidden;
}

.insight-posture-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.insight-posture-card__scoreline,
.insight-reputation-card__scoreline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}

.insight-posture-card__score,
.insight-reputation-card__score {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.86;
  color: var(--paper-cream);
}

.insight-posture-card__score-suffix,
.insight-reputation-card__score-suffix,
.insight-journal__meta,
.insight-panel__sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-posture-card__title,
.insight-reputation-card__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 0.98;
}

.insight-posture-card__body,
.insight-reputation-card__body {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight-posture-card__metrics {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.insight-posture-metric {
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.045);
}

.insight-posture-metric__label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-posture-metric__value {
  display: block;
  margin-top: 8px;
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}

.insight-pressure-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pressure-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 204px;
  position: relative;
  overflow: hidden;
}

.pressure-card__value {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.98;
  color: var(--paper-cream);
}

.pressure-card__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pressure-card__meter {
  margin-top: auto;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.pressure-card__meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 240ms ease;
}

.pressure-card[data-pressure-tone="cadence"] .pressure-card__meter span {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.pressure-card[data-pressure-tone="conversion"] .pressure-card__meter span {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.pressure-card[data-pressure-tone="spread"] .pressure-card__meter span {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.pressure-card[data-pressure-tone="proof"] .pressure-card__meter span {
  background: linear-gradient(90deg, #eab308, #fde68a);
}

.insight-playbook {
  padding: 24px;
}

.insight-journal {
  padding: 24px;
}

.insight-playbook__head {
  margin-bottom: 16px;
}

.insight-journal__head,
.insight-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

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

.playbook-card,
.segment-card {
  padding: 18px;
}

.playbook-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.playbook-card__title,
.segment-card__value {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
}

.playbook-card__action {
  display: inline-flex;
  margin-top: auto;
  padding-top: 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.insight-segments {
  padding: 24px;
  margin: 0;
}

.insight-segments__head {
  margin-bottom: 16px;
}

.segment-card {
  min-height: 204px;
}

.insight-journal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-journal-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.04);
}

.insight-journal-item--empty {
  min-height: 112px;
  align-items: center;
}

.insight-journal-item__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 223, 184, 0.08);
  border: 1px solid rgba(244, 223, 184, 0.14);
}

.insight-journal-item__body {
  min-width: 0;
  flex: 1;
}

.insight-journal-item__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.insight-journal-item__title,
.coach-panel__headline {
  color: var(--paper-cream);
  font-size: 15px;
  font-weight: 700;
}

.insight-journal-item__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.insight-journal-item__text,
.coach-panel__detail {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.insight-reputation-card {
  padding: 24px;
  min-height: 100%;
}

.insight-reputation-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 223, 184, 0.18), transparent 72%);
  pointer-events: none;
}

.insight-panel {
  padding: 24px;
  margin-top: 24px;
}

.insight-panel .bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-panel .bar {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 223, 184, 0.1);
  background: rgba(244, 223, 184, 0.04);
}

.insight-panel .bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.insight-panel .bar__fill {
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(244, 223, 184, 0.95), rgba(125, 211, 252, 0.85));
  box-shadow: 0 0 22px rgba(244, 223, 184, 0.14);
}

.insight-panel .bar__value,
.bar--rich .bar__value {
  font-family: var(--font-mono);
  font-size: 12px;
}

.coach-panel {
  min-height: 210px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.03)),
    rgba(18, 14, 10, 0.72);
}

.coach-panel__suggestion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  background: rgba(74, 222, 128, 0.08);
  color: #b7f7cc;
  font-size: 13px;
  line-height: 1.55;
}

.coach-panel__suggestion-icon {
  flex: 0 0 auto;
}

.insights-grid--deep {
  margin-top: 24px;
}

.insights-grid--persona {
  margin-top: 24px;
}

.bar--good .bar__fill {
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.bar--muted .bar__fill {
  opacity: 0.48;
}

.calendar-page__subtitle {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
}

.calendar-brief {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.calendar-spotlight,
.calendar-board,
.calendar-rhythm__card,
.calendar-week {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.035)),
    rgba(19, 15, 10, 0.82);
  box-shadow: var(--shadow-card);
}

.calendar-spotlight {
  padding: 24px;
}

.calendar-spotlight__eyebrow,
.calendar-rhythm__label,
.calendar-queue__kicker,
.calendar-week__label,
.calendar-board__sub {
  font-family: var(--font-mono);
}

.calendar-spotlight__eyebrow,
.calendar-rhythm__label,
.calendar-week__label {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-spotlight__title,
.calendar-rhythm__value,
.calendar-week__value {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.calendar-spotlight__title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.96;
}

.calendar-spotlight__body,
.calendar-rhythm__sub,
.calendar-queue__body,
.calendar-week__sub,
.calendar-board__sub {
  color: var(--muted);
  line-height: 1.7;
}

.calendar-spotlight__meta {
  margin-top: 14px;
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.calendar-rhythm__card {
  padding: 18px;
}

.calendar-rhythm__value,
.calendar-week__value {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
}

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

.calendar-grid {
  border-radius: 24px;
  margin-bottom: 16px;
  background: rgba(8, 7, 5, 0.38);
}

.calendar-cell {
  min-height: 132px;
  gap: 6px;
}

.calendar-cell__date {
  font-family: var(--font-mono);
}

.calendar-event {
  border-radius: 12px;
  background: rgba(244, 223, 184, 0.06);
}

.calendar-event__dot--prep {
  background: var(--blue);
}

.calendar-event__dot--recovery {
  background: var(--mint);
}

.calendar-event__more {
  margin-top: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.calendar-rail {
  display: grid;
  gap: 16px;
}

.calendar-board {
  padding: 20px;
}

.calendar-board__head {
  margin-bottom: 14px;
}

.calendar-board__sub {
  margin-top: 6px;
  font-size: 12px;
}

.calendar-queue,
.calendar-weeks {
  display: grid;
  gap: 10px;
}

.calendar-queue__item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(244, 223, 184, 0.12);
}

.calendar-queue__item:first-child {
  border-top: none;
  padding-top: 0;
}

.calendar-queue__date {
  display: grid;
  gap: 4px;
  align-content: start;
}

.calendar-queue__date span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-queue__date strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.calendar-queue__kicker {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-queue__title {
  margin: 4px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.calendar-queue__empty {
  color: var(--muted);
  line-height: 1.7;
}

.calendar-week {
  padding: 16px;
}

.contacts-strategy {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(220px, 0.75fr) minmax(260px, 0.9fr);
  gap: 16px;
  margin: 0 0 24px;
}

.contacts-strategy__hero,
.contacts-strategy__panel,
.contacts-queue {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.035)),
    rgba(19, 15, 10, 0.82);
  box-shadow: var(--shadow-card);
}

.contacts-strategy__hero,
.contacts-strategy__panel,
.contacts-queue {
  padding: 22px;
}

.contacts-strategy__eyebrow,
.contacts-playbook__label,
.contacts-queue__sub {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts-strategy__title,
.contacts-cluster strong {
  font-family: var(--font-display);
}

.contacts-strategy__title {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.96;
}

.contacts-strategy__body,
.contacts-playbook__item span,
.contacts-cluster span,
.contacts-queue__reason,
.contacts-queue__head .contacts-queue__sub {
  color: var(--muted);
  line-height: 1.7;
}

.contacts-strategy__meta {
  margin-top: 14px;
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 12px;
}

.contacts-clusters,
.contacts-playbook,
.contacts-queue__list {
  display: grid;
  gap: 10px;
}

.contacts-cluster,
.contacts-playbook__item,
.contacts-queue__item {
  border: 1px solid rgba(244, 223, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(244, 223, 184, 0.05);
}

.contacts-cluster {
  display: grid;
  gap: 4px;
}

.contacts-cluster strong {
  font-size: 22px;
  line-height: 1;
}

.contacts-playbook__item {
  display: grid;
  gap: 6px;
}

.contacts-playbook__item strong,
.contacts-queue__name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.contacts-playbook__action {
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 12px;
}

.contacts-queue {
  margin-bottom: 24px;
}

.contacts-queue__head {
  margin-bottom: 14px;
}

.contacts-queue__sub {
  margin-top: 6px;
}

.contacts-queue__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.contacts-queue__sub {
  margin: 6px 0;
}

@media (max-width: 1180px) {
  .contacts-strategy {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 1180px) {
  .calendar-brief,
  .calendar-layout,
  .calendar-rhythm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .calendar-cell {
    min-height: 104px;
  }

  .calendar-queue__item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .insights-command,
  .insight-decision-grid,
  .insight-signal-row,
  .insight-playbook__grid,
  .insight-segments__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .insight-pressure-board,
  .insight-posture-card__metrics {
    grid-template-columns: 1fr;
  }

  .insight-spotlight,
  .insight-posture-card,
  .pressure-card,
  .insight-playbook,
  .insight-journal,
  .insight-segments,
  .insight-reputation-card,
  .insight-panel,
  .playbook-card,
  .segment-card {
    padding: 20px;
    border-radius: 20px;
  }

  .insight-journal__head,
  .insight-panel__head,
  .insight-journal-item__topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-spotlight__title,
  .insight-posture-card__title,
  .insight-reputation-card__title {
    line-height: 1.02;
  }

  .insight-chip,
  .insight-reputation-chip {
    min-height: 32px;
    font-size: 10px;
  }

  .insight-posture-card__score,
  .insight-reputation-card__score {
    font-size: clamp(42px, 16vw, 62px);
  }
}


/* ==========================================================================
   COFFEECHAT GAMIFICATION & PRACTICE ARENA STYLING
   ========================================================================== */

/* Glassmorphism card */
.card-glass {
  background: rgba(19, 19, 21, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sidebar Gamification Panel */
.sidebar__gamification {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.sidebar__xp-level {
  font-weight: bold;
  color: var(--accent);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 110px;
}

.sidebar__xp-text {
  opacity: 0.6;
  font-family: monospace;
}

.sidebar__xp-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.sidebar__xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #fff8ea 100%);
  border-radius: 3px;
  transition: width 400ms ease;
}

.sidebar__streak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.sidebar__streak-count {
  font-weight: bold;
  color: #e07a5f;
}

.sidebar__streak-shield {
  color: #81b29a;
  font-weight: bold;
}

/* Weekly Quest Board Dashboard Widget */
.quest-board {
  margin-bottom: 48px;
  padding: 24px 28px;
  border-radius: 12px;
}

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

.quest-board__eyebrow {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 4px;
}

.quest-board__title {
  font-size: 20px;
  font-family: serif;
  margin: 0;
  font-weight: normal;
  letter-spacing: -0.01em;
}

.quest-board__xp-summary {
  font-size: 13px;
  opacity: 0.7;
}

.quest-board__xp-earned {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  margin-right: 4px;
}

.quest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quest-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 150ms ease;
}

.quest-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.01);
}

.quest-card--completed {
  border-color: rgba(92, 124, 92, 0.25) !important;
  background: rgba(92, 124, 92, 0.03) !important;
}

.quest-card__icon {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.quest-card--completed .quest-card__icon {
  background: rgba(92, 124, 92, 0.12);
}

.quest-card__info {
  flex: 1;
}

.quest-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quest-card__title {
  font-size: 14px;
  font-weight: bold;
}

.quest-card__status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(92, 124, 92, 0.2);
  color: #82c78f;
  font-weight: bold;
}

.quest-card__desc {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 4px;
  line-height: 1.4;
}

.quest-card__progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.quest-card__progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.quest-card__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 300ms ease;
}

.quest-card--completed .quest-card__progress-fill {
  background: var(--status-green);
}

.quest-card__progress-text {
  font-size: 12px;
  font-family: monospace;
  opacity: 0.7;
}

.quest-card__reward {
  font-size: 12px;
  font-family: monospace;
  font-weight: bold;
  color: var(--accent);
  align-self: flex-start;
  padding-top: 4px;
}

.quest-card--completed .quest-card__reward {
  color: #82c78f;
}

/* Practice Arena Screen layout */
.arena-intro {
  margin-bottom: 40px;
}

.arena-intro__title {
  font-size: 26px;
  font-family: serif;
  margin: 0 0 10px;
}

.arena-intro__desc {
  font-size: 14px;
  opacity: 0.65;
  max-width: 680px;
  line-height: 1.6;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scenario-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  background: var(--bg);
  transition: all 180ms ease;
  display: flex;
  flex-direction: column;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.scenario-card__difficulty {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
}

.scenario-card__difficulty[data-diff="easy"] {
  background: rgba(92, 124, 92, 0.15);
  color: #82c78f;
}

.scenario-card__difficulty[data-diff="medium"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.scenario-card__difficulty[data-diff="hard"] {
  background: rgba(140, 90, 85, 0.2);
  color: #e07a5f;
}

.scenario-card__difficulty[data-diff="expert"] {
  background: rgba(139, 58, 58, 0.2);
  color: #db7093;
}

.scenario-card__title {
  font-size: 20px;
  font-family: serif;
  margin: 0 0 4px;
}

.scenario-card__role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.scenario-card__bio {
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
}

.scenario-card__stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-badge {
  font-size: 12px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.scorecard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.scorecard-pill {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scorecard-pill__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.scorecard-pill__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.scorecard-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.scorecard-name__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.scorecard-name__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.scorecard-rank {
  font-size: 11px;
  font-family: monospace;
  color: var(--accent);
}

.scorecard-difficulty {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scorecard-difficulty--easy {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.25);
  background: rgba(22, 101, 52, 0.18);
}

.scorecard-difficulty--medium {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(12, 74, 110, 0.2);
}

.scorecard-difficulty--hard {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(120, 53, 15, 0.2);
}

.scorecard-difficulty--expert {
  color: #f9a8d4;
  border-color: rgba(249, 168, 212, 0.25);
  background: rgba(131, 24, 67, 0.2);
}

.scenario-card__btn {
  width: 100%;
}

/* Arena Gameplay Screen Layout */
#back-to-scenarios {
  margin-bottom: 24px;
}

.arena-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 24px;
  align-items: start;
}

.arena-sidebar,
.arena-context {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arena-widget {
  padding: 20px;
  border-radius: 10px;
}

.arena-widget__title {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.5;
  margin: 0 0 16px;
}

.contact-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-profile__avatar {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-profile__name {
  font-size: 14px;
  font-weight: bold;
}

.contact-profile__role {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}

.arena-status-pill {
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  transition: all 150ms ease;
}

.arena-status-pill--typing {
  color: var(--accent);
  background: rgba(201, 163, 110, 0.05);
  border: 1px solid rgba(201, 163, 110, 0.15);
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.gauge-value {
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
}

.gauge-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-fill--green {
  background: var(--status-green);
}

.gauge-fill--amber {
  background: var(--status-amber);
}

.gauge-fill--red {
  background: var(--status-red);
}

.gauge-desc {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 8px;
  line-height: 1.45;
}

/* Chat center block */
.arena-main {
  display: flex;
  flex-direction: column;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.chat-thread {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-bubble--contact {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.chat-bubble--player {
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  font-weight: 500;
}

.chat-bubble--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  opacity: 0.4;
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 200ms;
}

.typing-dot:nth-child(3) {
  animation-delay: 400ms;
}

@keyframes typingAnimation {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-system-feedback {
  align-self: center;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  color: var(--accent);
  background: rgba(201, 163, 110, 0.05);
  border: 1px solid rgba(201, 163, 110, 0.15);
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
}

.chat-controls {
  border-top: 1px solid var(--border);
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.chat-tab-btn {
  background: transparent;
  border: none;
  color: var(--text);
  opacity: 0.5;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 0 8px;
  cursor: pointer;
  position: relative;
  transition: opacity 120ms ease;
}

.chat-tab-btn:hover {
  opacity: 0.8;
}

.chat-tab-btn.is-active {
  opacity: 1;
}

.chat-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-option-btn {
  text-align: left;
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  color: var(--text);
  transition: all 120ms ease;
}

.chat-option-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.chat-options-loading {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  opacity: 0.5;
  font-family: monospace;
}

.chat-custom-textarea {
  width: 100%;
  min-height: 80px;
  font-size: 13px;
  background: var(--bg);
}

.custom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-count {
  font-size: 12px;
  opacity: 0.5;
  font-family: monospace;
}

.arena-rules-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
}

/* Modals */
.arena-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.arena-modal {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.arena-modal__emoji {
  font-size: 54px;
  margin-bottom: 20px;
}

.arena-modal__title {
  font-size: 24px;
  font-family: serif;
  margin: 0 0 10px;
}

.arena-modal__body {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 24px;
}

.arena-modal__rewards {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.reward-chip {
  font-size: 12px;
  font-family: monospace;
  background: rgba(201, 163, 110, 0.12);
  border: 1px solid rgba(201, 163, 110, 0.2);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
}

/* Theme customizer selectors */
.theme-customizer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 120ms ease;
}

.theme-btn:hover {
  transform: scale(1.1);
}

.theme-btn.is-active {
  border-color: #fff;
}

/* Responsive Arena styles */
@media (max-width: 1080px) {
  .arena-layout {
    grid-template-columns: 240px 1fr;
  }
  .arena-context {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 760px) {
  .arena-layout {
    grid-template-columns: 1fr;
  }
  .arena-sidebar {
    grid-column: auto;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .chat-bubble {
    max-width: 90%;
  }
}

/* ==========================================================================
   COFFEECHAT VIRTUAL SHOP STYLING
   ========================================================================== */

/* Badge element */
.sidebar__user-badge {
  background: rgba(201, 163, 110, 0.12);
  border: 1px solid rgba(201, 163, 110, 0.3);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
  font-weight: bold;
}

/* Shop layout */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.page-subtitle {
  margin-top: 4px;
  opacity: 0.6;
  font-size: 14px;
}

.shop-stats-header {
  display: flex;
  gap: 12px;
}

.shop-stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.shop-stat-badge .value {
  color: var(--accent);
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
}

.shop-section {
  margin-bottom: 48px;
}

.shop-section__title {
  font-family: serif;
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 8px;
}

.shop-section__desc {
  opacity: 0.6;
  font-size: 13px;
  margin-bottom: 20px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shop-card {
  border: 1px solid var(--border);
  background: var(--field-bg);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.shop-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-card__icon {
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card__info {
  flex: 1;
}

.shop-card__title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-card__desc {
  font-size: 13px;
  opacity: 0.55;
  margin: 0;
  line-height: 1.45;
}

.shop-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.shop-card__price {
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-card__btn {
  min-width: 90px;
}

/* Purchase animation effect */
@keyframes purchasePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 163, 110, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(201, 163, 110, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 163, 110, 0);
  }
}

.purchased-animate {
  animation: purchasePulse 600ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Toast styling override to make it premium */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #18181b;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PREMIUM THEMES OVERRIDES
   ========================================================================== */

/* 1. Glassmorphism Theme */
body.theme-glassmorphism {
  --bg: #0c0d12;
  --field-bg: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #dbe2ef;
  --row-hover: rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at 80% 20%, #1c2333 0%, #0c0d12 100%) !important;
}

body.theme-glassmorphism .sidebar {
  background: rgba(255, 255, 255, 0.01) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.theme-glassmorphism .card,
body.theme-glassmorphism .today,
body.theme-glassmorphism .stat,
body.theme-glassmorphism .pulse-card,
body.theme-glassmorphism .strategy-card,
body.theme-glassmorphism .scenario-card,
body.theme-glassmorphism .arena-widget,
body.theme-glassmorphism .quest-board,
body.theme-glassmorphism .shop-card,
body.theme-glassmorphism .shop-stat-badge,
body.theme-glassmorphism .sidebar__gamification {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

/* 2. Cyberpunk Neon Theme */
body.theme-cyberpunk {
  --bg: #030008;
  --text: #00ffcc;
  --border: #ff0055;
  --accent: #ff00ff;
  --field-bg: #0f001d;
  --row-hover: #1e0036;
  background-image: 
    linear-gradient(rgba(255, 0, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 85, 0.05) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  text-shadow: 0 0 2px rgba(0, 255, 204, 0.3) !important;
}

body.theme-cyberpunk .sidebar,
body.theme-cyberpunk .main,
body.theme-cyberpunk .card,
body.theme-cyberpunk .today,
body.theme-cyberpunk .stat,
body.theme-cyberpunk .pulse-card,
body.theme-cyberpunk .strategy-card,
body.theme-cyberpunk .scenario-card,
body.theme-cyberpunk .arena-widget,
body.theme-cyberpunk .quest-board,
body.theme-cyberpunk .shop-card,
body.theme-cyberpunk .shop-stat-badge,
body.theme-cyberpunk .sidebar__gamification {
  border: 1px solid #ff0055 !important;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.2), inset 0 0 4px rgba(255, 0, 85, 0.1) !important;
  background: #070012 !important;
  color: #00ffcc !important;
}

body.theme-cyberpunk .btn--primary {
  background: #ff0055 !important;
  color: #030008 !important;
  box-shadow: 0 0 10px #ff0055 !important;
  text-shadow: none !important;
  font-weight: bold !important;
}

body.theme-cyberpunk .btn--secondary {
  border-color: #00ffcc !important;
  color: #00ffcc !important;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2) !important;
  background: transparent !important;
}

body.theme-cyberpunk h1,
body.theme-cyberpunk h2,
body.theme-cyberpunk h3,
body.theme-cyberpunk .sidebar__wordmark {
  color: #ff00ff !important;
  text-shadow: 0 0 5px rgba(255, 0, 255, 0.5) !important;
}

body.theme-cyberpunk .sidebar__link {
  color: #00ffcc !important;
}
body.theme-cyberpunk .sidebar__link.is-active {
  background: rgba(255, 0, 255, 0.15) !important;
  border-left: 3px solid #ff00ff !important;
  color: #ff00ff !important;
}

/* 3. Forest Emerald Theme */
body.theme-forest {
  --bg: #0a120d;
  --text: #e2f0d9;
  --border: #1a3322;
  --accent: #52b788;
  --field-bg: #0f1c14;
  --row-hover: #14261b;
  background: radial-gradient(circle at 75% 25%, #12241a 0%, #0a120d 100%) !important;
}

body.theme-forest .btn--primary {
  background: #2d6a4f !important;
  color: #e2f0d9 !important;
}

body.theme-forest .btn--primary:hover {
  background: #40916c !important;
}

body.theme-forest .sidebar__link.is-active {
  color: #52b788 !important;
  border-left-color: #52b788 !important;
}

/* 4. Flame Sunrise Theme */
body.theme-flame {
  --bg: #140b08;
  --text: #fdf0eb;
  --border: #3d1c12;
  --accent: #f26419;
  --field-bg: #1b100b;
  --row-hover: #26160f;
  background: radial-gradient(circle at 80% 20%, #29120a 0%, #140b08 100%) !important;
}

body.theme-flame .btn--primary {
  background: #f26419 !important;
  color: #fff !important;
}

body.theme-flame .btn--primary:hover {
  background: #f67e3a !important;
}

body.theme-flame .sidebar__link.is-active {
  color: #f26419 !important;
  border-left-color: #f26419 !important;
}

/* 5. Aura Sunset Theme */
body.theme-aura {
  --bg: #08070d;
  --text: #f0e6ff;
  --border: #221a30;
  --accent: #bb86fc;
  --field-bg: #0e0c15;
  --row-hover: #151122;
  background: radial-gradient(circle at 75% 20%, #1d122e 0%, #08070d 100%) !important;
}

body.theme-aura .btn--primary {
  background: #bb86fc !important;
  color: #08070d !important;
}

body.theme-aura .btn--primary:hover {
  background: #cfabfe !important;
}

body.theme-aura .sidebar__link.is-active {
  color: #bb86fc !important;
  border-left-color: #bb86fc !important;
}

/* Quest Board Enhancements */
.quest-card--claimable {
  border-color: rgba(201, 163, 110, 0.4) !important;
  background: rgba(201, 163, 110, 0.04) !important;
  box-shadow: 0 0 12px rgba(201, 163, 110, 0.1) !important;
  animation: pulse-gold-glow 2s infinite ease-in-out;
}

.quest-card--claimed {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  box-shadow: none !important;
}

@keyframes pulse-gold-glow {
  0% {
    box-shadow: 0 0 6px rgba(201, 163, 110, 0.05);
    border-color: rgba(201, 163, 110, 0.3) !important;
  }
  50% {
    box-shadow: 0 0 16px rgba(201, 163, 110, 0.22);
    border-color: rgba(201, 163, 110, 0.7) !important;
  }
  100% {
    box-shadow: 0 0 6px rgba(201, 163, 110, 0.05);
    border-color: rgba(201, 163, 110, 0.3) !important;
  }
}

.quest-card__status-badge.is-claimable {
  background: rgba(201, 163, 110, 0.15) !important;
  color: #c9a36e !important;
  font-weight: 600;
  border: 1px solid rgba(201, 163, 110, 0.25);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quest-card__status-badge.is-claimed {
  background: rgba(130, 199, 143, 0.1) !important;
  color: #82c78f !important;
  font-weight: 600;
  border: 1px solid rgba(130, 199, 143, 0.2);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quest-claim-btn {
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  background: #c9a36e;
  color: #1e1b18;
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quest-claim-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(201, 163, 110, 0.3);
}

.quest-claim-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.quest-claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quest-card__reward.is-claimed {
  color: #82c78f !important;
  text-decoration: line-through;
  opacity: 0.8;
}

/* ==========================================================================
   GLOBAL UI/UX ELEVATION & PRECEDING GRAPHICS
   ========================================================================== */

/* 1. Global Typography & Core Reset overrides */
body, button, input, select, textarea, .main, .sidebar, .modal, .toast {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .sidebar__wordmark, .page-title, .today__headline, .momentum-board__score, .modal__title {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

code, kbd, pre, .stat__value, .sidebar__level-number, .shop-stat-value, .quest-card__progress-text, .arena-widget__badge {
  font-family: 'IBM Plex Mono', Consolas, Monaco, monospace !important;
  letter-spacing: -0.02em;
}

/* 2. Premium Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* 3. Global Card & Container elevations */
.card, .today, .stat, .pulse-card, .strategy-card, .scenario-card, .arena-widget, .quest-board, .shop-card, .sidebar__gamification, .community-profile-card, .community-post, .community-reply {
  background: rgba(19, 19, 21, 0.3) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.card:hover, .today:hover, .stat:hover, .pulse-card:hover, .strategy-card:hover, .scenario-card:hover, .arena-widget:hover, .quest-board:hover, .shop-card:hover, .sidebar__gamification:hover, .community-profile-card:hover, .community-post:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* 4. Overhauled Input Controls & Forms */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--accent, #c9a36e) !important;
  box-shadow: 0 0 0 3px rgba(201, 163, 110, 0.18), inset 0 1px 1px rgba(0, 0, 0, 0.1) !important;
  outline: none !important;
}

/* 5. Modern Button styling & Interactive Sheen Animation */
.btn {
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.btn--primary {
  background: var(--accent, #c9a36e) !important;
  color: #0c0d12 !important;
  border: none !important;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn--primary:hover::after {
  left: 125%;
  opacity: 1;
}

/* 6. Dynamic Table Rows transition */
tbody tr {
  transition: background-color 0.18s ease !important;
}

tbody tr:hover td {
  background-color: var(--row-hover, rgba(255, 255, 255, 0.02)) !important;
  transform: translateX(1px);
  transition: transform 0.18s ease, background-color 0.18s ease !important;
}

/* 7. Design-Elevated Themes Overrides */

/* Glassmorphism Theme (Silver Frost Space) */
body.theme-glassmorphism {
  background: radial-gradient(circle at 10% 20%, #171923 0%, #08090f 90%) !important;
}
body.theme-glassmorphism .card,
body.theme-glassmorphism .today,
body.theme-glassmorphism .stat,
body.theme-glassmorphism .pulse-card,
body.theme-glassmorphism .strategy-card,
body.theme-glassmorphism .scenario-card,
body.theme-glassmorphism .arena-widget,
body.theme-glassmorphism .quest-board,
body.theme-glassmorphism .shop-card,
body.theme-glassmorphism .sidebar__gamification,
body.theme-glassmorphism .community-profile-card,
body.theme-glassmorphism .community-post,
body.theme-glassmorphism .community-reply {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Cyberpunk Theme (Synthwave Retro grid with bevel offset) */
body.theme-cyberpunk {
  background-color: #030008 !important;
  background-image: 
    linear-gradient(rgba(255, 0, 85, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 85, 0.06) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}
body.theme-cyberpunk .card,
body.theme-cyberpunk .today,
body.theme-cyberpunk .stat,
body.theme-cyberpunk .pulse-card,
body.theme-cyberpunk .strategy-card,
body.theme-cyberpunk .scenario-card,
body.theme-cyberpunk .arena-widget,
body.theme-cyberpunk .quest-board,
body.theme-cyberpunk .shop-card,
body.theme-cyberpunk .sidebar__gamification,
body.theme-cyberpunk .community-profile-card,
body.theme-cyberpunk .community-post,
body.theme-cyberpunk .community-reply {
  border: 2px solid #ff0055 !important;
  background: rgba(10, 0, 20, 0.9) !important;
  border-radius: 0px !important; /* Cyberpunk is blocky/sharp */
  box-shadow: 5px 5px 0px rgba(255, 0, 85, 0.15), 0 0 10px rgba(255, 0, 85, 0.25) !important;
}
body.theme-cyberpunk .card:hover,
body.theme-cyberpunk .today:hover,
body.theme-cyberpunk .stat:hover,
body.theme-cyberpunk .pulse-card:hover,
body.theme-cyberpunk .scenario-card:hover,
body.theme-cyberpunk .shop-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 7px 7px 0px rgba(255, 0, 85, 0.3), 0 0 15px rgba(255, 0, 85, 0.4) !important;
}
body.theme-cyberpunk .btn {
  border-radius: 0px !important;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace !important;
}

/* Forest Theme (Deep Jade & Moss) */
body.theme-forest {
  background: radial-gradient(circle at 50% 50%, #07130a 0%, #030604 100%) !important;
}
body.theme-forest .card,
body.theme-forest .today,
body.theme-forest .stat,
body.theme-forest .pulse-card,
body.theme-forest .strategy-card,
body.theme-forest .scenario-card,
body.theme-forest .arena-widget,
body.theme-forest .quest-board,
body.theme-forest .shop-card,
body.theme-forest .sidebar__gamification,
body.theme-forest .community-profile-card,
body.theme-forest .community-post,
body.theme-forest .community-reply {
  background: rgba(10, 26, 17, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(82, 183, 136, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(82, 183, 136, 0.08) !important;
}

/* Flame Theme (Volcanic Charcoal Glow) */
body.theme-flame {
  background: radial-gradient(circle at 90% 10%, #200b05 0%, #070302 100%) !important;
}
body.theme-flame .card,
body.theme-flame .today,
body.theme-flame .stat,
body.theme-flame .pulse-card,
body.theme-flame .strategy-card,
body.theme-flame .scenario-card,
body.theme-flame .arena-widget,
body.theme-flame .quest-board,
body.theme-flame .shop-card,
body.theme-flame .sidebar__gamification,
body.theme-flame .community-profile-card,
body.theme-flame .community-post,
body.theme-flame .community-reply {
  background: rgba(26, 12, 8, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(242, 100, 25, 0.22) !important;
  box-shadow: 0 10px 35px rgba(242, 100, 25, 0.08), inset 0 1px 0 rgba(242, 100, 25, 0.12) !important;
}

/* Aura Theme (Deep Space Cosmic Lavender) */
body.theme-aura {
  background: radial-gradient(circle at 10% 10%, #15082b 0%, #04010a 100%) !important;
}
body.theme-aura .card,
body.theme-aura .today,
body.theme-aura .stat,
body.theme-aura .pulse-card,
body.theme-aura .strategy-card,
body.theme-aura .scenario-card,
body.theme-aura .arena-widget,
body.theme-aura .quest-board,
body.theme-aura .shop-card,
body.theme-aura .sidebar__gamification,
body.theme-aura .community-profile-card,
body.theme-aura .community-post,
body.theme-aura .community-reply {
  background: rgba(22, 11, 42, 0.28) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(187, 134, 252, 0.18) !important;
  box-shadow: 0 10px 35px rgba(187, 134, 252, 0.05), inset 0 1px 0 rgba(187, 134, 252, 0.08) !important;
}

/* ==========================================================================
   CAMPUS HUB STYLING & ANIMATIONS
   ========================================================================== */
.campus-hub {
  margin-top: 2rem;
  padding: 1.5rem;
}

.campus-hub__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.campus-hub__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.campus-hub__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.campus-hub__badge {
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(138, 75, 243, 0.15);
  color: var(--color-brand);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(138, 75, 243, 0.3);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.campus-hub__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #52b788;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(82, 183, 136, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 183, 136, 0);
  }
}

.campus-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .campus-hub__grid {
    grid-template-columns: 1fr;
  }
}

.campus-hub__sub-title {
  font-size: 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, background 0.2s ease;
}

.leaderboard-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
}

.leaderboard-row.is-player {
  background: rgba(138, 75, 243, 0.1);
  border: 1px solid rgba(138, 75, 243, 0.3);
  box-shadow: inset 0 0 8px rgba(138, 75, 243, 0.1);
}

.leaderboard-row__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leaderboard-row__medal-slot {
  width: 24px;
  text-align: center;
  font-weight: 700;
}

.leaderboard-row__rank {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'IBM Plex Mono', monospace;
}

.leaderboard-row__avatar {
  font-size: 1.25rem;
}

.leaderboard-row__name {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-indicator {
  font-size: 0.7rem;
  color: var(--color-brand);
  font-family: 'IBM Plex Mono', monospace;
}

.leaderboard-row__level-name {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.leaderboard-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leaderboard-row__xp {
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

.leaderboard-row__badge-chip {
  font-size: 0.65rem;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.feed-container {
  max-height: 270px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.feed-item--new {
  border-left-color: var(--color-brand);
  background: rgba(138, 75, 243, 0.08);
  animation: pulse-new-item 1s ease forwards, slide-in-item 0.4s ease forwards;
}

.feed-item__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.feed-item--new .feed-item__bullet {
  background: var(--color-brand);
  box-shadow: 0 0 8px var(--color-brand);
}

.feed-item__body {
  flex-grow: 1;
}

.feed-item__text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.feed-item__time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
  font-family: 'IBM Plex Mono', monospace;
}

@keyframes slide-in-item {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-new-item {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 75, 243, 0.4);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(138, 75, 243, 0);
  }
}

/* Theme support overrides for Campus Hub */
body.theme-cyberpunk .campus-hub {
  border: 2px solid #ff0055 !important;
  background: rgba(10, 0, 20, 0.9) !important;
  border-radius: 0px !important;
  box-shadow: 5px 5px 0px rgba(255, 0, 85, 0.15), 0 0 10px rgba(255, 0, 85, 0.25) !important;
}

body.theme-cyberpunk .leaderboard-row {
  border-radius: 0px !important;
  border: 1px solid rgba(255, 0, 85, 0.3) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

body.theme-cyberpunk .leaderboard-row.is-player {
  border: 1px solid #00ffcc !important;
  background: rgba(0, 255, 204, 0.08) !important;
}

body.theme-cyberpunk .feed-item {
  border-radius: 0px !important;
  border-left: 3px solid #ff0055 !important;
}

body.theme-cyberpunk .feed-item--new {
  border-left: 3px solid #00ffcc !important;
}

body.theme-forest .campus-hub {
  background: rgba(10, 26, 17, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(82, 183, 136, 0.18) !important;
}

body.theme-flame .campus-hub {
  background: rgba(26, 12, 8, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(242, 100, 25, 0.22) !important;
}

body.theme-aura .campus-hub {
  background: rgba(22, 11, 42, 0.28) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(187, 134, 252, 0.18) !important;
}

/* ============================================================================
   COMMUNITY SIGNAL ROOM FINAL LAYER
  ============================================================================ */

:root {
  --community-panel: rgba(13, 11, 8, 0.82);
  --community-panel-strong: rgba(19, 15, 10, 0.94);
  --community-line: rgba(244, 223, 184, 0.18);
  --community-line-strong: rgba(244, 223, 184, 0.32);
  --community-copy: rgba(255, 248, 234, 0.82);
}

.community-page__subtitle {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.community-hero,
.community-intelligence__card,
.community-compose,
.community-wins-carousel-section,
.community-feed-shell,
.community-sidebar-card,
.community-profile-card,
.community-post,
.win-card,
.matchmaker-peer,
.trending-tag,
.starter-thread,
.community-pulse__row {
  border: 1px solid var(--community-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.028)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.025) 0 1px, transparent 1px 32px),
    var(--community-panel);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.community-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
}

.community-hero::before {
  inset: 14px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px dashed rgba(244, 223, 184, 0.15);
  background: transparent;
}

.community-hero__eyebrow,
.community-intelligence__label,
.win-card__meta,
.community-compose__form label > span,
.community-campus-filter > span,
.community-search-filter > span,
.community-sort-filter > span,
.community-profile-card__title,
.community-profile-card__progress,
.community-sidebar-card__sub,
.community-feed-shell__sub,
.community-compose__sub,
.community-compose__note,
.community-compose__tip,
.community-post__signals,
.matchmaker-peer__meta,
.trending-tag span,
.trending-tag small,
.community-pulse__row span,
.community-pulse__row small {
  font-family: var(--font-mono);
}

.community-hero__title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper-cream);
}

.community-hero__body,
.community-intelligence__body,
.win-card__body,
.community-post__body,
.community-reply__text,
.community-profile-card__bio,
.starter-thread span,
.matchmaker-peer p,
.community-empty-state__body,
.community-empty-mini {
  color: var(--community-copy);
}

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

.community-hero__stat {
  border-radius: 8px;
  border-color: rgba(244, 223, 184, 0.18);
  background: rgba(8, 7, 5, 0.44);
}

.community-hero__stat span,
.community-hero__stat small {
  color: var(--muted);
}

.community-hero__stat strong {
  color: var(--paper-cream);
  font-family: var(--font-display);
}

.community-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr) minmax(260px, 0.9fr);
  gap: 14px;
  margin: 0 0 24px;
}

.community-intelligence__card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
}

.community-intelligence__card--featured {
  background:
    linear-gradient(135deg, rgba(244, 199, 106, 0.16), rgba(128, 174, 232, 0.06)),
    var(--community-panel-strong);
}

.community-intelligence__label {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-intelligence__title,
.win-card__title {
  margin: 0;
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.community-intelligence__body,
.win-card__body {
  margin: 0;
  line-height: 1.68;
}

.community-intelligence__meta {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.community-intelligence__action {
  justify-self: start;
  margin-top: auto;
}

.community-intelligence__tags,
.trending-tags-list,
.matchmaker-list {
  display: grid;
  gap: 10px;
}

.community-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
}

.community-compose,
.community-feed-shell,
.community-sidebar-card,
.community-wins-carousel-section {
  padding: 22px;
}

.community-compose__tip {
  max-width: 230px;
  border: 1px dashed rgba(130, 199, 143, 0.28);
  border-radius: 8px;
  background: rgba(130, 199, 143, 0.08);
  color: var(--mint);
}

.community-feed-shell__controls {
  justify-items: stretch;
}

.community-feed-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.65fr);
  gap: 10px;
  min-width: min(420px, 100%);
}

.community-search-filter,
.community-sort-filter {
  display: grid;
  gap: 7px;
}

.community-search-filter > span,
.community-sort-filter > span,
.community-campus-filter > span,
.community-compose__form label > span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-filter-pill,
.community-action,
.community-tag,
.community-tag-suggestion,
.community-task-chip,
.trending-tag {
  border-color: rgba(244, 223, 184, 0.18);
  background: rgba(244, 223, 184, 0.06);
  color: var(--text);
}

.community-filter-pill:hover,
.community-filter-pill.is-active,
.community-action:hover,
.community-action.is-active,
.community-tag:hover,
.community-tag.is-active,
.community-tag-suggestion:hover,
.community-tag-suggestion:focus-visible,
.trending-tag:hover,
.trending-tag.is-active {
  border-color: rgba(130, 199, 143, 0.42);
  background: rgba(130, 199, 143, 0.1);
  color: var(--paper-cream);
  box-shadow: none;
}

.community-filter-pill--tag {
  border-style: dashed;
}

.community-post {
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.075), rgba(244, 223, 184, 0.025)),
    rgba(10, 8, 6, 0.86);
}

.community-post::before {
  top: 16px;
  bottom: 16px;
  width: 3px;
}

.community-post.is-highlighted {
  border-color: rgba(244, 199, 106, 0.6);
  box-shadow: 0 0 0 4px rgba(244, 199, 106, 0.12), 0 24px 60px rgba(0, 0, 0, 0.28);
}

.community-post__avatar,
.community-reply__avatar,
.community-profile-card__avatar,
.matchmaker-peer__avatar {
  border-radius: 8px;
}

.community-post__author,
.community-post__title,
.community-profile-card__name,
.starter-thread strong,
.community-pulse__row strong,
.matchmaker-peer strong,
.trending-tag strong,
.community-empty-state__title {
  color: var(--paper-cream);
}

.community-post__title {
  font-family: var(--font-display);
  font-style: italic;
}

.community-post__subline,
.community-post__campus,
.community-post__timestamp,
.community-reply__topline span,
.community-profile-card__handle,
.community-profile-card__footer span,
.community-compose__sub,
.community-feed-shell__sub,
.community-sidebar-card__sub {
  color: var(--muted);
}

.community-post__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community-post__signals span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(244, 223, 184, 0.13);
  border-radius: 999px;
  background: rgba(244, 223, 184, 0.045);
}

.community-badge-chip,
.community-reputation-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  background: rgba(244, 223, 184, 0.07);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-badge-chip {
  color: var(--accent-2);
}

.community-post__rep-line,
.matchmaker-peer__rep-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.community-post__rep-title,
.matchmaker-peer__rep-title,
.activity-wire-item__rep,
.community-reply__rep {
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-post__rep-score,
.matchmaker-peer__rep-score {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.community-post__recent-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(130, 199, 143, 0.28);
  background: rgba(130, 199, 143, 0.08);
  color: var(--mint);
  font-size: 12px;
  line-height: 1.5;
}

.community-tag {
  appearance: none;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
}

.community-tag span {
  margin-left: 6px;
  color: var(--mint);
}

.community-wins-carousel-section {
  display: grid;
  gap: 14px;
}

.carousel-section-title-wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.carousel-section-title {
  margin: 0;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-section-sub {
  color: var(--muted);
  font-size: 13px;
}

.wins-carousel-outer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.carousel-nav-btn {
  min-width: 54px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 8px;
  background: rgba(244, 223, 184, 0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.win-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.win-card__meta,
.win-card__foot {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.win-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.community-profile-card__banner {
  height: 84px;
}

.community-profile-card__avatar {
  border-color: var(--community-panel-strong);
}

.community-profile-card__meter {
  background: rgba(244, 223, 184, 0.12);
}

.community-profile-card__meter span {
  background: linear-gradient(90deg, var(--accent), var(--mint));
}

.community-profile-card__signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-reputation-pill--title {
  color: var(--accent-2);
}

.community-badge-chip--profile,
.community-badge-chip--peer {
  background: rgba(130, 199, 143, 0.08);
  border-color: rgba(130, 199, 143, 0.24);
}

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

.community-proof-stat {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.05);
}

.community-proof-stat span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-proof-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.community-profile-card__activity-list,
.activity-wire-list {
  display: grid;
  gap: 10px;
}

.community-profile-card__activity-item,
.activity-wire-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.05);
}

.community-profile-card__activity-item > span,
.activity-wire-item__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 223, 184, 0.08);
}

.community-profile-card__activity-item div,
.activity-wire-item__body {
  min-width: 0;
  flex: 1;
}

.community-profile-card__activity-item strong,
.activity-wire-item__topline strong {
  color: var(--paper-cream);
  font-size: 13px;
}

.community-profile-card__activity-item small,
.activity-wire-item__topline span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-wire-item__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.community-profile-card__activity-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(244, 223, 184, 0.16);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.activity-wire-item p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.matchmaker-peer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.matchmaker-peer__avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.matchmaker-peer__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.matchmaker-peer__body > span,
.matchmaker-peer__meta {
  color: var(--muted);
  font-size: 12px;
}

.matchmaker-peer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.matchmaker-peer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matchmaker-peer__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.matchmaker-peer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.trending-tag {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.trending-tag span,
.trending-tag small {
  color: var(--muted);
  font-size: 11px;
}

.starter-thread,
.community-pulse__row {
  background: rgba(244, 223, 184, 0.05);
}

.community-empty-state,
.community-empty-mini {
  border-color: rgba(244, 223, 184, 0.22);
  background: rgba(244, 223, 184, 0.05);
}

@media (max-width: 1180px) {
  .community-intelligence,
  .community-layout,
  .community-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .community-hero,
  .community-compose,
  .community-feed-shell,
  .community-sidebar-card,
  .community-wins-carousel-section,
  .community-intelligence__card {
    padding: 18px;
  }

  .community-feed-tools,
  .wins-carousel-outer,
  .matchmaker-peer,
  .trending-tag {
    grid-template-columns: 1fr;
  }

  .community-profile-card__proof-grid {
    grid-template-columns: 1fr;
  }

  .community-post__rep-line,
  .matchmaker-peer__rep-line,
  .activity-wire-item__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-section-title-wrap,
  .win-card__foot,
  .matchmaker-peer__meta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ==========================================================================
  CORE SURFACES FINAL LAYER
  ========================================================================== */

.main__header > div {
  display: grid;
  gap: 10px;
}

.main__header > div .page-title {
  margin: 0;
}

.dashboard-page__subtitle,
.contacts-page__subtitle {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.72;
}

.landing-nav,
.landing-canvas__note,
.promise-card,
.showcase-card,
.pricing-card--wide,
.landing-cta,
.today,
.momentum-board,
.strategy-board,
.toolbar,
.bulk-bar,
.table,
.followups,
.upcoming {
  border-color: rgba(244, 223, 184, 0.16);
  box-shadow: var(--shadow-card);
}

.landing-nav {
  background: rgba(17, 16, 12, 0.66);
  backdrop-filter: blur(20px) saturate(1.1);
}

.landing-kicker,
.promise-card__eyebrow,
.showcase-card__kicker,
.workflow__step,
.toolbar__search-meta,
.quest-board__eyebrow,
.campus-hub__eyebrow,
.campus-hub__sub-title,
.share-board__sub {
  font-family: var(--font-mono);
}

.landing-hero__title {
  max-width: 11ch;
  text-wrap: balance;
}

.landing-hero__sub {
  max-width: 60ch;
}

.landing-proof__chips span,
.showcase-card__meta span {
  font-family: var(--font-mono);
}

.promise-card,
.showcase-card,
.pricing-card--wide,
.landing-cta {
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.03)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.028) 0 1px, transparent 1px 30px),
    rgba(18, 14, 10, 0.78);
}

.promise-card__title,
.showcase-card__title,
.quest-board__title,
.campus-hub__title,
.contacts-strategy__title {
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-style: italic;
}

.today,
.momentum-board,
.strategy-board,
.toolbar,
.bulk-bar {
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.06), rgba(244, 223, 184, 0.025)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.024) 0 1px, transparent 1px 32px),
    rgba(14, 11, 8, 0.9);
}

.toolbar {
  padding: 20px 22px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 24px;
  align-items: end;
}

.toolbar__search-meta {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-filters,
.tag-filters {
  padding: 8px;
  border: 1px solid rgba(244, 223, 184, 0.14);
  border-radius: 18px;
  background: rgba(244, 223, 184, 0.04);
}

.contacts-strategy__hero {
  background:
    linear-gradient(135deg, rgba(244, 199, 106, 0.12), rgba(128, 174, 232, 0.05)),
    rgba(16, 12, 9, 0.84);
}

.contacts-strategy__body,
.contacts-strategy__meta,
.contacts-queue__reason,
.share-board__sub {
  color: var(--muted);
}

.contacts-queue__name,
.contacts-playbook__item strong,
.contacts-cluster strong {
  color: var(--paper-cream);
}

.mission-item,
.pulse-card,
.share-card__stat {
  border-color: rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.045);
}

.share-board__sub,
.campus-hub__sub-title,
.quest-board__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  .toolbar {
    padding: 18px;
  }
}

/* ==========================================================================
   NEXT PRODUCT SURFACES
   ========================================================================== */

.generate-page__subtitle,
.templates-page__subtitle,
.settings-page__subtitle {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.72;
}

.surface-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px 26px;
  margin: 0 0 24px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.08), rgba(244, 223, 184, 0.03)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.028) 0 1px, transparent 1px 30px),
    rgba(18, 14, 10, 0.78);
  box-shadow: var(--shadow-card);
}

.surface-frame__eyebrow {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-frame__title {
  margin: 10px 0 0;
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.98;
  font-style: italic;
}

.surface-frame__body {
  margin: 12px 0 0;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.72;
}

.surface-frame__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.surface-frame__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 999px;
  background: rgba(244, 223, 184, 0.06);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.generator__controls,
.template-tools,
.profile-gate,
.generator-brief,
.snippets-panel,
.tpl-form,
.settings__section,
.settings-preview,
.email-card,
.tpl-card,
.snippet-card {
  border-color: rgba(244, 223, 184, 0.16);
  box-shadow: var(--shadow-card);
}

.generator__controls,
.template-tools {
  padding: 18px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 22px;
  background: rgba(244, 223, 184, 0.04);
}

.profile-gate,
.generator-brief,
.snippets-panel,
.tpl-form,
.settings__section {
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.06), rgba(244, 223, 184, 0.025)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.024) 0 1px, transparent 1px 32px),
    rgba(14, 11, 8, 0.9);
}

.email-card,
.tpl-card,
.snippet-card,
.settings-preview {
  background: rgba(244, 223, 184, 0.045);
}

.generator__actions {
  margin-bottom: 32px;
}

.tpl-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.tpl-card--builtin {
  opacity: 1;
}

.tpl-card__name {
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-style: italic;
}

.snippets-panel summary {
  justify-content: space-between;
}

.settings {
  max-width: 1040px;
}

.settings__section {
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 24px;
  padding: 26px;
  margin-top: 24px;
}

.settings__section:first-of-type {
  border-top: 1px solid rgba(244, 223, 184, 0.16);
  padding-top: 26px;
  margin-top: 0;
}

.settings__intro {
  max-width: 62ch;
  color: var(--muted);
  opacity: 1;
}

.settings-preview {
  padding: 16px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 24px;
}

.settings-preview__label {
  color: var(--accent-2);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-profile-preview {
  box-shadow: none;
}

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

  .surface-frame__chips {
    justify-content: flex-start;
  }

  .tpl-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRACTICE + SHOP SURFACES
   ========================================================================== */

.practice-page__subtitle,
.shop-page__subtitle {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.72;
}

.practice-frame,
.shop-frame {
  margin-bottom: 28px;
}

.arena-intro,
.scenario-card,
.arena-widget,
.arena-main,
.arena-modal,
.shop-section,
.shop-card,
.shop-stat-badge {
  border-color: rgba(244, 223, 184, 0.16);
  box-shadow: var(--shadow-card);
}

.arena-intro,
.arena-widget,
.arena-main,
.arena-modal,
.shop-section,
.shop-card,
.shop-stat-badge {
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.06), rgba(244, 223, 184, 0.025)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.024) 0 1px, transparent 1px 32px),
    rgba(14, 11, 8, 0.9);
}

.arena-intro,
.shop-section {
  padding: 24px 26px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  border-radius: 24px;
  margin-bottom: 24px;
}

.arena-intro__title,
.shop-section__title,
.arena-modal__title,
.scenario-card__title,
.shop-card__title {
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-style: italic;
}

.arena-intro__title,
.arena-modal__title {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 0.98;
}

.arena-intro__desc,
.shop-section__desc,
.scenario-card__bio,
.gauge-desc,
.contact-profile__role,
.arena-modal__body {
  color: var(--muted);
  opacity: 1;
}

.scenario-card,
.shop-card {
  border-radius: 22px;
}

.scenario-card__difficulty,
.arena-widget__title,
.stat-badge,
.shop-section__desc,
.shop-stat-badge .value,
.reward-chip,
.chat-options-loading,
.char-count,
.chat-custom-hint {
  font-family: var(--font-mono);
}

.stat-badge,
.reward-chip,
.shop-stat-badge {
  border: 1px solid rgba(244, 223, 184, 0.14);
  background: rgba(244, 223, 184, 0.06);
}

.arena-status-pill,
.chat-option-btn,
.chat-custom-textarea {
  border-color: rgba(244, 223, 184, 0.16);
}

.arena-status-pill {
  border-radius: 999px;
  background: rgba(244, 223, 184, 0.06);
}

.chat-option-btn,
.chat-custom-textarea {
  background: rgba(244, 223, 184, 0.04);
}

.chat-custom-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-header {
  margin-bottom: 24px;
}

.shop-section__desc {
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-card__title,
.scenario-card__role {
  font-size: 18px;
}

.shop-card__desc,
.arena-rules-list,
.arena-context-body {
  color: var(--muted);
}

.shop-card__btn {
  min-width: 120px;
}

@media (max-width: 760px) {
  .arena-intro,
  .shop-section {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .main__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .shop-stats-header {
    width: 100%;
  }

  .shop-stat-badge {
    flex: 1 1 0;
    justify-content: center;
  }

  .quest-card {
    flex-direction: column;
  }

  .quest-card__title-row {
    flex-wrap: wrap;
  }

  .quest-card__progress-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .quest-card__reward-container {
    width: 100%;
    min-width: 0 !important;
    align-items: flex-start !important;
  }

  .quest-claim-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .surface-frame {
    padding: 20px;
    border-radius: 20px;
  }

  .surface-frame__title {
    line-height: 1.04;
  }

  .scenarios-grid {
    gap: 18px;
  }

  .scenario-card,
  .shop-card,
  .arena-widget,
  .arena-main {
    padding: 20px;
  }

  .scenario-card__difficulty {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
  }

  .scenario-card__stats,
  .surface-frame__chips {
    flex-wrap: wrap;
  }

  .scorecard-summary {
    grid-template-columns: 1fr;
  }

  .scorecard-name {
    align-items: flex-start;
  }

  .scorecard-name__title {
    flex-wrap: wrap;
  }

  .custom-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .custom-actions .btn,
  #back-to-scenarios {
    width: 100%;
  }

  .chat-option-btn {
    padding: 13px 14px;
  }

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

  .shop-stats-header {
    flex-direction: column;
  }

  .shop-stat-badge {
    width: 100%;
    justify-content: space-between;
  }

  .shop-card__head,
  .shop-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-card__footer {
    gap: 12px;
  }

  .shop-card__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-subtitle,
  .practice-page__subtitle,
  .shop-page__subtitle {
    font-size: 13px;
  }

  .scorecard-pill__value {
    font-size: 20px;
  }

  .arena-layout {
    gap: 16px;
  }
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  margin: 24px 0;
}

.reputation-panel,
.journal-board {
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(244, 223, 184, 0.06), rgba(244, 223, 184, 0.025)),
    repeating-linear-gradient(0deg, rgba(244, 223, 184, 0.024) 0 1px, transparent 1px 32px),
    rgba(14, 11, 8, 0.9);
  box-shadow: var(--shadow-card);
}

.reputation-panel {
  position: relative;
  overflow: hidden;
}

.reputation-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 223, 184, 0.16), transparent 70%);
  pointer-events: none;
}

.reputation-panel[data-tone="aurora"]::after {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.22), transparent 70%);
}

.reputation-panel[data-tone="flame"]::after {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.22), transparent 70%);
}

.reputation-panel[data-tone="meadow"]::after {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18), transparent 70%);
}

.reputation-panel__eyebrow,
.journal-board__eyebrow {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reputation-panel__scoreline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.reputation-panel__score {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.88;
  color: var(--paper-cream);
}

.reputation-panel__score-suffix {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reputation-panel__title,
.journal-board__title {
  margin: 12px 0 0;
  color: var(--paper-cream);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 0.98;
  font-style: italic;
}

.reputation-panel__body {
  margin: 14px 0 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.7;
}

.reputation-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.reputation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.16);
  background: rgba(244, 223, 184, 0.06);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journal-board__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.journal-board__meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.journal-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(244, 223, 184, 0.12);
  background: rgba(244, 223, 184, 0.04);
}

.journal-item--empty {
  min-height: 118px;
  align-items: center;
}

.journal-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 223, 184, 0.08);
  border: 1px solid rgba(244, 223, 184, 0.14);
  flex: 0 0 auto;
}

.journal-item__body {
  min-width: 0;
  flex: 1;
}

.journal-item__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.journal-item__title {
  color: var(--paper-cream);
  font-size: 15px;
  font-weight: 700;
}

.journal-item__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.journal-item__text {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.leaderboard-row__rep-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.leaderboard-row__rep-title {
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leaderboard-row__rep-score {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.leaderboard-row__rep-chip {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(244, 223, 184, 0.08);
  border: 1px solid rgba(244, 223, 184, 0.14);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
}

.sidebar__rep-row,
.sidebar__mastery-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.sidebar__rep-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 184, 0.14);
  background: rgba(244, 223, 184, 0.06);
  color: var(--paper-cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar__rep-chip--title {
  color: var(--accent-2);
}

.sidebar__mastery-row {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mobile-bottom-nav {
  display: none;
}

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

@media (max-width: 760px) {
  .signal-grid {
    gap: 18px;
  }

  .reputation-panel,
  .journal-board {
    padding: 20px;
    border-radius: 20px;
  }

  .journal-board__head,
  .journal-item__topline,
  .leaderboard-row,
  .leaderboard-row__right {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-row__right {
    gap: 8px;
  }

  .sidebar__mastery-row,
  .sidebar__rep-row {
    flex-wrap: wrap;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 7, 5, 0.94);
    border-top: 1px solid rgba(244, 223, 184, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav__link {
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    background: rgba(244, 223, 184, 0.02);
    border: 1px solid transparent;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  }

  .mobile-bottom-nav__link.is-active {
    color: var(--paper-cream);
    background: rgba(244, 223, 184, 0.08);
    border-color: rgba(244, 223, 184, 0.14);
    transform: translateY(-2px);
  }

  .mobile-bottom-nav__icon {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
  }

  .mobile-bottom-nav__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

