@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #fffaf5;
  --bg-cream: #fcf1e5;
  --bg-sand: #efd8bb;
  --surface: rgba(255, 252, 248, 0.94);
  --surface-elevated: #fffdf9;
  --surface-hover: rgba(84, 54, 28, 0.035);

  --border: rgba(103, 72, 45, 0.1);
  --border-strong: rgba(103, 72, 45, 0.16);
  --border-focus: rgba(211, 117, 72, 0.35);

  --text: #20160f;
  --text-secondary: #4d3b2f;
  --text-muted: #756252;
  --text-faint: #9c8977;

  --primary: #f56e43;
  --primary-hover: #df633d;
  --primary-gradient-end: #eca47f;
  --primary-hover-gradient-end: #dc946f;
  --primary-light: rgba(245, 110, 67, 0.2);
  --primary-soft: rgba(245, 110, 67, 0.1);

  --accent: #bc5d30;
  --accent-soft: rgba(188, 93, 48, 0.1);

  --success: #2d8a5f;
  --success-soft: rgba(45, 138, 95, 0.1);
  --warning: #ad7c20;
  --warning-soft: rgba(173, 124, 32, 0.12);
  --danger: #c44b43;
  --danger-soft: rgba(196, 75, 67, 0.12);

  --shadow-sm: 0 10px 22px rgba(84, 54, 28, 0.04);
  --shadow-md: 0 18px 40px rgba(84, 54, 28, 0.08);
  --shadow-lg: 0 28px 60px rgba(84, 54, 28, 0.12);
  --shadow-focus: 0 0 0 3px rgba(245, 110, 67, 0.16);

  --nav-backdrop: rgba(255, 251, 246, 0.92);
  --modal-backdrop: rgba(32, 22, 15, 0.42);
  --wave-outline: rgba(245, 110, 67, 0.25);
  --toast-error-border: rgba(196, 75, 67, 0.22);
  --toast-success-border: rgba(45, 138, 95, 0.2);
  --auth-radial: rgba(245, 110, 67, 0.08);
  --auth-top: #fffaf5;
  --auth-bottom: #f7eadb;
  --success-pill-bg: rgba(45, 138, 95, 0.1);
  --success-pill-border: rgba(45, 138, 95, 0.18);
  --warning-pill-border: rgba(173, 124, 32, 0.2);
  --status-info-bg: rgba(211, 117, 72, 0.12);
  --status-info-color: #9e562d;
  --status-info-border: rgba(158, 86, 45, 0.24);

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;
  
  --container-max: 1280px;
  --gap-card: 16px;
  --padding-card: 20px;

  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #17110d;
  --bg-cream: #261a13;
  --bg-sand: #3a271e;
  --surface: rgba(34, 24, 18, 0.92);
  --surface-elevated: #302117;
  --surface-hover: rgba(255, 244, 233, 0.08);

  --border: rgba(248, 215, 191, 0.12);
  --border-strong: rgba(248, 215, 191, 0.22);
  --border-focus: rgba(243, 160, 120, 0.32);

  --text: #fff3e6;
  --text-secondary: #f4d8bf;
  --text-muted: #d2b39a;
  --text-faint: #b48e72;

  --primary: #f0a26e;
  --primary-hover: #e09158;
  --primary-gradient-end: #f7bc8f;
  --primary-hover-gradient-end: #eca26d;
  --primary-light: rgba(240, 162, 110, 0.24);
  --primary-soft: rgba(240, 162, 110, 0.14);

  --accent: #ffbf8b;
  --accent-soft: rgba(255, 191, 139, 0.16);

  --success: #4dd49f;
  --success-soft: rgba(77, 212, 159, 0.16);
  --warning: #f0bf63;
  --warning-soft: rgba(240, 191, 99, 0.18);
  --danger: #f2847f;
  --danger-soft: rgba(242, 132, 127, 0.18);

  --shadow-sm: 0 1px 2px rgba(5, 3, 2, 0.3);
  --shadow-md: 0 14px 34px rgba(5, 3, 2, 0.36);
  --shadow-lg: 0 24px 54px rgba(5, 3, 2, 0.44);
  --shadow-focus: 0 0 0 3px rgba(240, 162, 110, 0.18);

  --nav-backdrop: rgba(23, 17, 13, 0.86);
  --modal-backdrop: rgba(5, 3, 2, 0.5);
  --wave-outline: rgba(240, 162, 110, 0.25);
  --toast-error-border: rgba(242, 132, 127, 0.24);
  --toast-success-border: rgba(77, 212, 159, 0.24);
  --auth-radial: rgba(240, 162, 110, 0.12);
  --auth-top: #201712;
  --auth-bottom: #17110d;
  --success-pill-bg: rgba(77, 212, 159, 0.12);
  --success-pill-border: rgba(77, 212, 159, 0.2);
  --warning-pill-border: rgba(240, 191, 99, 0.2);
  --status-info-bg: rgba(240, 162, 110, 0.14);
  --status-info-color: #ffbf8b;
  --status-info-border: rgba(255, 191, 139, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(880px 420px at 0% 0%, rgba(245, 110, 67, 0.07), transparent 58%),
    radial-gradient(720px 360px at 100% 0%, rgba(236, 164, 127, 0.08), transparent 56%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Container & Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.layout-3col {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.sidebar,
.main,
.rightbar {
  display: flex;
  flex-direction: column;
  gap: var(--gap-card);
}

.sidebar,
.rightbar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.profile-card {
  overflow: visible !important;
}

.card-header,
.card-body,
.card-footer {
  padding: var(--padding-card);
}

.card-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 247, 0.44));
}

.card-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.44), rgba(255, 255, 255, 0.82));
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-gradient-end));
  color: white;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(211, 117, 72, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-hover-gradient-end));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 36px rgba(211, 117, 72, 0.2);
}

.btn-primary:focus-visible,
.btn-primary:active {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-hover-gradient-end));
  color: #fff;
}

.btn-primary:active {
  box-shadow: 0 14px 24px rgba(211, 117, 72, 0.16);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 252, 247, 0.78);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-ghost {
  border-color: transparent;
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-ghost[disabled],
.btn-ghost:disabled {
  background: transparent !important;
  color: var(--text-faint) !important;
  cursor: not-allowed;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn[disabled],
.btn:disabled {
  background: var(--bg-cream) !important;
  color: var(--text-faint) !important;
  border-color: var(--border) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

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

/* Form Elements */
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.select::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C534A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.helptext {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Chips & Tags */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--primary-light);
}

.chip:hover {
  background: var(--primary-light);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-backdrop);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(84, 54, 28, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s ease;
}

.brand-link--wordmark {
  gap: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.brand-wordmark-fin {
  color: #f56e43;
}

.brand-wordmark-dr {
  color: #4e4848;
}

.brand-link:hover {
  color: var(--text);
  opacity: 0.85;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #efb787);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 22px rgba(211, 117, 72, 0.2);
}

.nav-primary {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-active {
  color: var(--primary);
  background: rgba(245, 110, 67, 0.12);
  font-weight: 600;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: transform 0.15s ease;
}

.nav-avatar:hover {
  transform: scale(1.05);
}

/* Profile Card */
.profile-cover {
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  position: relative;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  margin: -36px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.profile-rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

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

.profile-row .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-row span {
  color: var(--text);
  font-weight: 500;
}

/* Stat Pills */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stat-pill:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.stat-pill span {
  color: var(--primary);
  font-weight: 700;
}

/* List Items */
.list-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.15s ease;
}

.list-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.list-item .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.tab {
  padding: 6px 14px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

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

/* Search Input */
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:hover {
  border-color: var(--border-strong);
}

.search-input:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.search-input input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.search-input input::placeholder {
  color: var(--text-faint);
}

.icon-button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-faint);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.icon-button:hover {
  color: var(--text);
}

/* Filter Chips */
.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-removable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.chip-removable button {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--primary);
  opacity: 0.7;
}

.chip-removable button:hover {
  opacity: 1;
}

.filter-reset {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.filter-reset:hover {
  text-decoration: underline;
}

/* Results */
.results-list {
  min-height: 140px;
}

/* Wave reveal animation for list-heavy pages */
.wave-item {
  position: relative;
  transform-origin: center top;
}

.wave-enter {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
}

.wave-enter.wave-active {
  animation: wave-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) var(--wave-delay, 0ms) both;
}

.wave-enter.wave-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--wave-outline);
  border-radius: inherit;
  pointer-events: none;
  animation: wave-pulse 0.62s ease-out calc(var(--wave-delay, 0ms) + 20ms) both;
}

@keyframes wave-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes wave-pulse {
  0% {
    opacity: 0.48;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-enter,
  .wave-enter.wave-active {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wave-enter.wave-active::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.result-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

[data-action="save"] {
  transition: all 0.15s ease;
}

[data-action="save"]:hover:not([disabled]) {
  color: var(--primary);
  background: var(--primary-soft);
}

[data-action="save"].is-saved {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-light);
}

[data-action="save"].save-animate {
  animation: save-pop 0.3s ease-out;
}

@keyframes save-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.remove-btn {
  color: var(--danger) !important;
}

.remove-btn:hover:not([disabled]) {
  background: var(--danger-soft) !important;
}

/* Empty & Skeleton States */
.empty-card {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-muted);
  background: var(--bg);
  text-align: center;
}

.skeleton-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--bg-cream) 25%, var(--bg-sand) 50%, var(--bg-cream) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

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

.page-indicator {
  font-size: 13px;
  color: var(--text-muted);
}

/* Collapse */
.collapse {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.collapse-open {
  max-height: 500px;
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  min-width: 280px;
  max-width: 400px;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  text-align: center;
  animation: slideInRight 0.25s ease;
}

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

.toast.show {
  display: flex;
}

.toast-info {
  border-color: var(--primary-light);
  background: var(--primary-soft);
  color: var(--primary);
}

.toast-error {
  border-color: var(--toast-error-border);
  background: var(--danger-soft);
  color: var(--danger);
}

.toast-success {
  border-color: var(--toast-success-border);
  background: var(--success-soft);
  color: var(--success);
}

/* Form Utilities */
.form-grid {
  display: grid;
  gap: 14px;
}

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

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

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

/* File Upload */
.file-dropzone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg);
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.drop-title {
  font-weight: 600;
  color: var(--text);
}

.drop-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Divider */
.divider {
  margin: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
}

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

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

/* Icon */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }

/* Text Utilities */
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-12 { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.summary {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
}

/* Links */
.link-ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-full {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 160px;
  padding: 6px;
  display: none;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* Suggested List */
.suggested-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.suggested-list .card {
  max-width: 280px;
}

.result-card-compact .card-body {
  padding: 12px;
}

.result-card-compact .text-16 {
  font-size: 14px;
}

.result-card-compact .btn {
  padding: 6px 10px;
  font-size: 12px;
}

/* Detail List */
.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-list span {
  color: var(--text);
  font-weight: 500;
}

.meta-row {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Auth Layout */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(500px, 620px);
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
  justify-content: center;
  min-height: calc(100vh - 64px);
  align-items: stretch;
  padding: 56px 24px 80px;
}

.auth-aside {
  color: var(--text-secondary);
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
  padding: 40px;
  border: 1px solid rgba(122, 78, 45, 0.1);
  border-radius: 28px;
  background: #f8e7d3;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-aside h2 {
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 3vw, 3.2rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
  max-width: 11ch;
  text-align: center;
}

.auth-aside p {
  margin: 0;
  line-height: 1.65;
  max-width: 38ch;
  text-align: center;
}

.auth-aside .card {
  background: rgba(255, 249, 242, 0.96);
  border: 1px solid rgba(122, 78, 45, 0.08);
  box-shadow: none;
  width: min(100%, 420px);
  margin-inline: auto;
  text-align: center;
}

.auth-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 2.4vw, 2.7rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--text);
}

.auth-subtitle {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 34ch;
}

.auth-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.auth-consent a {
  color: var(--primary);
  font-weight: 600;
}

.auth-consent-help {
  margin-top: -4px;
}

body[data-page="login"],
body[data-page="register"] {
  background:
    radial-gradient(900px 420px at 8% 0%, var(--auth-radial), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--auth-top) 46%, var(--auth-bottom) 100%);
}

body[data-page="login"] .navbar,
body[data-page="register"] .navbar {
  background: var(--nav-backdrop);
  border-bottom: 1px solid var(--border);
}

body[data-page="login"] .auth-layout > .card,
body[data-page="register"] .auth-layout > .card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  border-radius: 26px;
  padding: 32px !important;
  display: grid;
  align-content: center;
}

body[data-page="login"] .auth-layout > .card .text-12,
body[data-page="register"] .auth-layout > .card .text-12 {
  font-size: 13px;
}

@media (max-width: 940px) {
  .auth-layout {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    padding-top: 28px;
  }
}

.profile-gate-modal {
  width: min(560px, 100%);
  padding: 28px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(245, 110, 67, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 230, 209, 0.98));
  border-radius: 24px;
  border: 1px solid rgba(122, 78, 45, 0.14);
  box-shadow: var(--shadow-lg);
}

.profile-gate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 110, 67, 0.1);
  color: #9f4f29;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-gate-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(245, 110, 67, 0.12);
}

.profile-gate-title {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.profile-gate-copy {
  margin: 0;
  max-width: 40ch;
  color: var(--text-secondary);
  line-height: 1.65;
}

.profile-gate-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.profile-gate-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.74);
  border: 1px solid rgba(122, 78, 45, 0.1);
  color: var(--text-secondary);
}

.profile-gate-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  flex-shrink: 0;
}

.profile-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.profile-gate-actions .btn {
  min-width: 168px;
}

/* Email Attachment */
.email-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.email-attachment svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.email-attachment.no-attachment {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
}

/* CV Preview Modal */
.cv-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.cv-preview-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-preview-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
}

.cv-preview-panel {
  position: relative;
  width: min(900px, 94vw);
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  z-index: 1;
}

.cv-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.cv-preview-title {
  font-weight: 600;
}

.cv-preview-body {
  padding: 0;
  overflow: auto;
  background: var(--bg);
}

.cv-preview-body iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

.cv-preview-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: var(--bg);
}

/* Progress Bar */
.progress-bar {
  position: relative;
  width: 120px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-cream);
  overflow: hidden;
  display: none;
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--primary);
  animation: indeterminate 1.2s ease-in-out infinite;
}

.email-progress.is-loading .progress-bar {
  display: block;
}

@keyframes indeterminate {
  0% { transform: translateX(0); }
  50% { transform: translateX(250%); }
  100% { transform: translateX(500%); }
}

/* SR Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }
  
  .sidebar,
  .rightbar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    gap: 12px;
  }
  
  .nav-primary {
    display: none;
  }
  
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}


/* ============================================ */
/* DISCOVERY PAGE                               */
/* ============================================ */

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

.disc-sidebar,
.disc-rightbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.disc-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.disc-profile-banner {
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.disc-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  margin: -30px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
}

.disc-profile-stats {
  display: flex;
  border-top: 1px solid var(--border);
}

.disc-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
}

.disc-stat + .disc-stat {
  border-left: 1px solid var(--border);
}

.disc-stat-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.disc-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.disc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* Composer */
.disc-composer-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.disc-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.disc-composer-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.disc-composer-input::placeholder {
  color: var(--text-faint);
}

.disc-composer-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
  background: var(--surface);
}

.disc-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* Feed */
.disc-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* People Search */
.disc-people-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: border-color 0.15s ease;
}

.disc-people-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.disc-people-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}

.disc-people-search input::placeholder {
  color: var(--text-faint);
}

/* Connection items */
.disc-connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.disc-connection-item:last-child {
  border-bottom: none;
}

.disc-connection-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.disc-connection-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.disc-connection-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.disc-connection-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.disc-connection-link > div {
  min-width: 0;
}

.disc-connection-link:hover {
  opacity: 0.9;
}

/* People list items */
.disc-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.disc-person:last-child {
  border-bottom: none;
}

.disc-person-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.disc-person-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.disc-person-info {
  min-width: 0;
}

.disc-person-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-person-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-person-interests {
  font-size: 11px;
  color: var(--primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-connect-btn {
  min-width: 84px;
  flex-shrink: 0;
}

/* Pending requests */
.disc-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.disc-pending-item:last-child {
  border-bottom: none;
}

.disc-pending-info {
  min-width: 0;
  flex: 1;
}

.disc-pending-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.disc-pending-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

/* Suggestion item */
.disc-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.disc-suggestion-item:last-child {
  border-bottom: none;
}

.disc-suggestion-info {
  flex: 1;
  min-width: 0;
}

/* Post item */
.disc-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.disc-post:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.disc-post .card-body {
  padding: 16px 18px;
}

.disc-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.disc-post-author-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.disc-post-author-link:hover .disc-post-author {
  color: var(--primary);
}

.disc-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  object-fit: cover;
}

.disc-post-author,
.disc-post-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.disc-post-meta,
.disc-post-time {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.disc-post-content,
.disc-post-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 10px;
}

.disc-post-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

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

.disc-post-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.disc-liked {
  color: var(--primary) !important;
  background: var(--primary-soft) !important;
  border-color: var(--primary-light) !important;
}

.disc-comments-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.disc-comments-list {
  display: grid;
  gap: 8px;
}

.disc-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.disc-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  object-fit: cover;
}

.disc-comment-author-link {
  flex-shrink: 0;
  text-decoration: none;
}

.disc-comment-body {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.disc-comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-right: 6px;
}

.disc-comment-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.disc-comment-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.disc-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.disc-comment-input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
}

.disc-comment-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.disc-delete-btn {
  color: var(--text-muted);
}

.disc-delete-btn:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

@media (max-width: 1100px) {
  .disc-layout {
    grid-template-columns: 1fr;
  }
  .disc-sidebar, .disc-rightbar {
    position: static;
    max-height: none;
  }
}


/* ============================================ */
/* PROGRAMS PAGE                                */
/* ============================================ */

.programs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.programs-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: end;
}

.programs-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.program-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.program-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.program-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.program-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.program-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.program-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.program-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.program-badge--established {
  background: var(--success-pill-bg);
  color: var(--success);
  border: 1px solid var(--success-pill-border);
}

.program-badge--inhouse {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

@media (max-width: 768px) {
  .programs-toolbar {
    grid-template-columns: 1fr;
  }
  .program-card-header {
    flex-direction: column;
  }
}


/* ============================================ */
/* OFFICE PAGE                                  */
/* ============================================ */

.office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.office-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

#officeMetricLast {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.office-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
}

.office-filters {
  display: flex;
  gap: 8px;
}

.office-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.office-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.office-item-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.office-item-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.office-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.office-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-pill-border);
}

.office-status--success {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success-pill-border);
}

.office-status--info {
  background: var(--status-info-bg);
  color: var(--status-info-color);
  border-color: var(--status-info-border);
}

/* ROI Calculator */
.office-roi-card {
  margin-bottom: 16px;
}

.office-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.office-roi-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 10px;
}

.office-roi-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.office-roi-copy {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.office-roi-summary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.office-roi-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.office-roi-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.office-roi-metric-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
}

.office-roi-metric-value--accent {
  color: var(--primary);
}

/* ROI Controls */
.office-roi-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-roi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-roi-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.office-roi-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.office-roi-field-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.office-roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-sand);
  outline: none;
  transition: background 0.15s ease;
}

.office-roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.office-roi-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.office-roi-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--surface);
}

.office-roi-submetrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.office-roi-submetric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.office-roi-submetric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.office-roi-submetric-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.office-roi-submetric-value--accent {
  color: var(--primary);
}

@media (max-width: 768px) {
  .office-metrics {
    grid-template-columns: 1fr;
  }
  .office-toolbar {
    flex-direction: column;
  }
  .office-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .office-roi-grid {
    grid-template-columns: 1fr;
  }
  .office-roi-submetrics {
    grid-template-columns: 1fr;
  }
}


/* ============================================ */
/* INVESTOR RELATIONS PAGE                      */
/* ============================================ */

.ir-hero {
  margin-bottom: 24px;
}

.ir-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.ir-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 44ch;
}

.ir-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ir-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ir-metric-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.ir-metric-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
}

.ir-metric-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ir-section-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.ir-metric-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.ir-metric-trend .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.ir-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ir-content--analytics .card {
  min-height: 100%;
}

.ir-highlight {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.ir-highlight:last-child {
  border-bottom: none;
}

.ir-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--success-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ir-highlight-icon svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.ir-highlight-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.ir-highlight-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ir-roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ir-roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.ir-roadmap-item:last-child {
  border-bottom: none;
}

.ir-roadmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-sand);
  border: 2px solid var(--border-strong);
  margin-top: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ir-roadmap-done .ir-roadmap-dot {
  background: var(--success);
  border-color: var(--success);
}

.ir-roadmap-current .ir-roadmap-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.ir-roadmap-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ir-roadmap-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

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

.ir-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.ir-chart--vertical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
}

.ir-chart-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: end;
  align-items: center;
  min-height: 220px;
}

.ir-chart-bar-fill {
  width: 100%;
  max-width: 64px;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  min-height: 8px;
}

.ir-chart-bar-label,
.ir-chart-bar-value {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.ir-chart-bar-value {
  font-weight: 600;
  color: var(--text);
}

.ir-chart--rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ir-chart-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ir-chart-row-label {
  width: min(170px, 44%);
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ir-chart-row-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.ir-chart-row-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
}

.ir-chart-row-value {
  min-width: 42px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.ir-empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.ir-table-card .card-body {
  padding-top: 12px;
}

.ir-table-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ir-search {
  width: min(100%, 320px);
}

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

.ir-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1220px;
}

.ir-table--compact {
  min-width: 980px;
}

.ir-table th,
.ir-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.ir-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ir-table td {
  font-size: 13px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.ir-table-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ir-table-user strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ir-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ir-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-sand);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.ir-pill--accent {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.ir-pill--success {
  background: var(--success-soft);
  color: var(--success);
}

.ir-kv {
  display: grid;
  gap: 4px;
}

.ir-kv strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.ir-kv span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ir-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  .ir-metrics {
    grid-template-columns: 1fr;
  }
  .ir-content {
    grid-template-columns: 1fr;
  }
  .ir-contact-inner {
    flex-direction: column;
    text-align: center;
  }
  .ir-chart-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ir-chart-row-label {
    width: 100%;
  }
  .ir-chart-row-value {
    min-width: 0;
  }
  .ir-search {
    width: 100%;
  }
}


/* ============================================ */
/* PROFILE PAGE                                 */
/* ============================================ */

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

.prof-page-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prof-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.prof-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream), var(--bg-sand));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.prof-card-body {
  text-align: center;
  padding-top: 0 !important;
}

.prof-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-top: -40px;
}

.prof-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
}

.prof-avatar-upload {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.prof-avatar-upload:hover {
  background: var(--bg-cream);
}

.prof-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 12px 0 4px;
}

.prof-institution {
  font-size: 14px;
  color: var(--text-secondary);
}

.prof-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.prof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.prof-tags .tag,
.prof-tags .chip {
  font-size: 12px;
}

.prof-tags-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.prof-tags-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prof-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .prof-page-layout {
    grid-template-columns: 1fr;
  }
  .prof-page-sidebar {
    position: static;
  }
}


/* ============================================ */
/* SETTINGS PAGE                                */
/* ============================================ */

.profile-setup-page .profile-header {
  background: var(--nav-backdrop);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.profile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.profile-header-inner #logoutButton {
  border-color: rgba(103, 72, 45, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.profile-header-inner #logoutButton:hover {
  border-color: rgba(103, 72, 45, 0.12);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: none;
}

.profile-header-inner #logoutButton:focus-visible,
.profile-header-inner #logoutButton:active {
  border-color: rgba(245, 110, 67, 0.18);
  background: rgba(255, 248, 241, 0.96);
  box-shadow: 0 0 0 2px rgba(245, 110, 67, 0.1);
}

.profile-setup {
  padding: 24px 0 60px;
}

.profile-setup-grid {
  display: grid;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.theme-appearance-block {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  box-shadow: var(--shadow-sm);
}

.theme-appearance-block .theme-setting-row {
  margin-bottom: 6px;
}

.theme-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.theme-toggle {
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
}

.theme-toggle-option {
  position: relative;
}

.theme-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-option span:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle-option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.theme-toggle-option input:focus-visible + span {
  box-shadow: var(--shadow-focus);
}

.email-connect-block {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.email-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.email-connect-actions .btn {
  min-width: 156px;
}

.email-account-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.email-account-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-muted);
  background: var(--bg);
  font-size: 12px;
}

.email-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--bg);
}

.email-account-meta {
  min-width: 0;
}

.email-account-provider {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--primary-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.email-account-address {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.email-account-state {
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.email-account-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.email-account-remove {
  min-width: 88px;
}

@media (max-width: 640px) {
  .email-connect-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .email-account-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-account-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.file-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg);
}

.file-meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* Match hint */
.match-hint {
  font-size: 12px;
}

/* Search primary (override for home) */
.search-primary {
  /* no special override needed */
}

/* Google signin */
.google-signin {
  display: flex;
  justify-content: center;
}

.google-signin.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.settings-legal-block {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(122, 78, 45, 0.1);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
}

.settings-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Nav logout */
.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Nav caret */
.nav-caret {
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 2px;
}

/* Email progress */
.email-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Textarea */
.textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea::placeholder {
  color: var(--text-faint);
}

.textarea:hover {
  border-color: var(--border-strong);
}

.textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
  outline: none;
}

/* Btn label/spinner for loading states */
.btn .btn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-label {
  opacity: 0.7;
}

/* Avatar color variations */
.profile-avatar.color-1, .nav-avatar.color-1 { background: linear-gradient(135deg, #C45C3E, #A84D33); }
.profile-avatar.color-2, .nav-avatar.color-2 { background: linear-gradient(135deg, #D4764E, #B5603C); }
.profile-avatar.color-3, .nav-avatar.color-3 { background: linear-gradient(135deg, #2D8A5F, #1D7A4F); }
.profile-avatar.color-4, .nav-avatar.color-4 { background: linear-gradient(135deg, #B5850B, #9A7009); }
.profile-avatar.color-5, .nav-avatar.color-5 { background: linear-gradient(135deg, #C73E3E, #A83232); }
.profile-avatar.color-6, .nav-avatar.color-6 { background: linear-gradient(135deg, #8B6B52, #6E5440); }
