/* Small visual refinements for the goal app; user palettes stay in control. */
:root[data-palette="four-color"][data-theme] {
  --shadow: 0 2px 8px rgb(0 0 0 / .06);
}
body { background: var(--bg); }

.panel, .card, .profile-card, .progress-streak-card, .calendar-tracker {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.modal-card { border-radius: 20px; }
.screen-title { align-items: center; }
.screen-title h1, .panel h1, .profile-body h1 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.progress-goal-title h2, .goal-card-title h3, .discussion-intro h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.recommendation-section h2, .section-heading h2, .form-heading h2 {
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.primary, .secondary, .ghost, .action-button, .feed-view-tab, .nav-item,
.desktop-premium-entry, .goal-edit-tabs button {
  font-size: 14px;
  font-weight: 550;
}
.primary, .secondary, .action-button { min-height: 40px; }
.form label, .report-primary-field, .field-stack { font-weight: 500; }
.entry-author strong, .user-row strong, .friend-identity strong,
.identity-name, .progress-caption strong { font-weight: 600; }
.chip { padding: 5px 9px; font-size: 12px; font-weight: 500; }
.meta-row { font-size: 13px; line-height: 1.5; }

.goal-card:not(.goal-card-summary) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 276px;
  gap: 14px;
}
.goal-card-title h3 { margin: 0; }
.goal-card .action-strip > button { min-height: 44px; }
.interactive-goal-card:hover {
  transform: none;
  box-shadow: 0 3px 12px rgb(0 0 0 / .08);
}
.progress-streak-card { padding: 20px; gap: 16px; }
.progress-entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.progress-entry-header-meta { align-items: start; }
.progress-goal-day { text-align: right; }
.progress-goal-day strong { color: var(--muted); font-weight: 500; }
.progress-metadata-chip { font-weight: 500; }
.post-action-control { border-radius: 10px; }
.post-action-count-display { font-weight: 500; }

.recommendation-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
}
.recommendation-grid .card { border-radius: 14px; }
.feed-view-switch { border-radius: 11px; }
.feed-view-tab { border-radius: 8px; }
.feed-view-tab.active { font-weight: 600; }
.global-header-actions {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.global-header-actions .icon-action {
  border-color: transparent;
  background: transparent;
  border-radius: 9px;
}
.global-header-actions .icon-action:hover { background: var(--accent-soft); }
.bottom-tabs {
  border-radius: 18px;
  box-shadow: 0 4px 20px rgb(0 0 0 / .12);
}
.bottom-tab { font-size: 11px; font-weight: 550; border-radius: 12px; }
.bottom-tab.active { font-weight: 650; }

.auth-shell .panel.narrow { max-width: 440px; padding: 32px; border-radius: 20px; }
.auth-shell .panel > h1 { font-size: 28px; margin-bottom: 24px; }
.auth-shell .form { gap: 18px; }

@media (min-width: 900px) {
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) {
    --sidebar-width: 272px;
  }
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) > .topbar {
    padding: 20px 16px;
  }
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) > .topbar .brand {
    padding: 6px 0;
    background: transparent;
    color: var(--text);
  }
  .topbar .desktop-brand-label.clickn-wordmark { font-size: 23px; }
  .global-header-actions .icon-action { width: 34px; height: 34px; }
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) > .topbar .nav-item {
    min-height: 44px;
    padding: 11px 13px;
    font-size: 15px;
    font-weight: 550;
  }
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) > .topbar .nav-item.active {
    font-weight: 650;
  }
}
@media (max-width: 899px) {
  .app-shell:not(.auth-shell):not(.language-shell):not(.loading-shell) {
    width: calc(100% - 24px);
  }
  .topbar { border-radius: 14px; box-shadow: var(--shadow); }
  .mobile-page-title { font-weight: 600; }
  .progress-streak-card { padding: 16px; gap: 14px; }
  .progress-goal-title h2, .goal-card-title h3 { font-size: 18px; }
  .auth-shell .panel.narrow { padding: 24px; }
  .settings-actionbar:not(.is-dirty) button.primary { min-height: 44px; }
}
