:root {
  --bg: #F5F2ED;
  --surface: #FDFCFA;
  --surface2: #F0EDE7;
  --border: #E2DDD5;
  --text: #1A1714;
  --text-muted: #7A7068;
  --text-light: #A89F94;
  --accent: #3D6B4F;
  --accent-light: #EBF2EE;
  --accent2: #8B6914;
  --accent2-light: #FBF5E6;
  --danger: #C0392B;
  --danger-light: #FDF0EE;
  --col1: #4A6FA5;
  --col2: #8B6914;
  --col3: #3D6B4F;
  --col4: #6B3D6B;
  --col5: #B5560B;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

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

a {
  color: inherit;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.navbar-brand .cross {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all 0.15s;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface2);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
}

.avatar {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.logout-form {
  display: inline-flex;
}

.user-pill {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
}

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

.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
}

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

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

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface2);
}

.pipeline-container {
  padding: 0 24px 24px;
  overflow-x: auto;
  min-height: calc(100vh - 140px);
}

.pipeline {
  display: flex;
  gap: 14px;
  min-width: max-content;
  align-items: flex-start;
}

.col-wrapper {
  width: 240px;
  flex-shrink: 0;
}

.col-header {
  padding: 12px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.col-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: white;
}

.col-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.col-body {
  background: var(--surface2);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border);
  border-top: none;
  padding: 8px;
  min-height: 200px;
}

.col-wrapper:nth-child(1) .col-header {
  background: var(--col1);
}

.col-wrapper:nth-child(2) .col-header {
  background: var(--col2);
}

.col-wrapper:nth-child(3) .col-header {
  background: var(--col3);
}

.col-wrapper:nth-child(4) .col-header {
  background: var(--col4);
}

.col-wrapper:nth-child(5) .col-header {
  background: var(--col5);
}

.col-wrapper:nth-child(1) .fidele-card {
  border-left-color: var(--col1);
}

.col-wrapper:nth-child(2) .fidele-card {
  border-left-color: var(--col2);
}

.col-wrapper:nth-child(3) .fidele-card {
  border-left-color: var(--col3);
}

.col-wrapper:nth-child(4) .fidele-card {
  border-left-color: var(--col4);
}

.col-wrapper:nth-child(5) .fidele-card {
  border-left-color: var(--col5);
}

.fidele-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 7px;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
}

.fidele-card:hover {
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-right: 8px;
}

.col-wrapper:nth-child(1) .card-avatar {
  background: var(--col1);
}

.col-wrapper:nth-child(2) .card-avatar {
  background: var(--col2);
}

.col-wrapper:nth-child(3) .card-avatar {
  background: var(--col3);
}

.col-wrapper:nth-child(4) .card-avatar {
  background: var(--col4);
}

.col-wrapper:nth-child(5) .card-avatar {
  background: var(--col5);
}

.card-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.card-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  font-size: 16px;
  transition: background 0.1s;
  text-decoration: none;
}

.card-menu-btn:hover {
  background: var(--surface2);
  color: var(--text-muted);
}

.card-info {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.card-info-light {
  color: var(--text-light);
}

.card-date {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 4px;
}

.card-quote {
  font-style: italic;
}

.col-footer {
  padding: 6px 0 2px;
  text-align: center;
}

.btn-voir-plus {
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 7px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-voir-plus:hover {
  background: var(--surface);
  border-color: var(--text-muted);
  color: var(--text);
}

.drop-zone {
  min-height: 50px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.15s;
}

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

.modal {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  animation: slideUp 0.2s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
}

.modal-close {
  background: var(--surface2);
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 107, 79, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.cal-day-name {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-cell {
  min-height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 12px;
  transition: box-shadow 0.1s;
}

.cal-cell:hover {
  box-shadow: var(--shadow-sm);
}

.cal-cell.today {
  border-color: var(--accent);
  background: var(--accent-light);
}

.cal-cell.other-month {
  opacity: 0.4;
}

.cal-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cal-cell.today .cal-num {
  color: var(--accent);
}

.cal-event {
  background: var(--accent);
  color: white;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.ev2 {
  background: var(--col2);
}

.cal-event.ev3 {
  background: var(--col4);
}

.annonce-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.annonce-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.annonce-icon.sent {
  background: var(--accent-light);
}

.annonce-icon.draft {
  background: var(--accent2-light);
}

.annonce-meta {
  flex: 1;
  min-width: 0;
}

.annonce-msg {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.annonce-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-sent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-draft {
  background: var(--accent2-light);
  color: var(--accent2);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  padding: 7px 12px 7px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  width: 200px;
  outline: none;
  transition: border-color 0.15s, width 0.2s;
}

.search-bar input:focus {
  border-color: var(--accent);
  width: 260px;
}

.search-bar svg {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.stats-row {
  display: flex;
  gap: 10px;
  padding: 0 24px 16px;
  overflow-x: auto;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 140px;
  flex: 1;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-state .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.page {
  display: block;
}

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  user-select: none;
  position: relative;
}

.target-chip.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.target-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.settings-layout {
  display: flex;
  min-height: calc(100vh - 58px);
}

.settings-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
}

.settings-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  padding: 0 8px;
  margin-bottom: 10px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.14s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

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

.settings-nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

.settings-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.settings-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.settings-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.crud-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.crud-table th {
  background: var(--surface2);
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.crud-table td {
  padding: 11px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.crud-table tr:hover td {
  background: var(--surface2);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.role-super {
  background: #fef3cd;
  color: #856404;
}

.role-admin {
  background: var(--accent-light);
  color: var(--accent);
}

.ordre-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--accent-light);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.add-row input,
.add-row select {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

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

.dropzone-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface2);
  position: relative;
}

.dropzone-area:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

.dropzone-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.dropzone-sub strong {
  color: var(--accent);
}

.import-template-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent2-light);
  border: 1px solid #e6d49a;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  gap: 12px;
}

.import-template-info {
  flex: 1;
}

.import-template-info strong {
  font-size: 13.5px;
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.import-template-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.center-block {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 105, 20, 0.16), transparent 38%),
    radial-gradient(circle at 100% 95%, rgba(61, 107, 79, 0.14), transparent 45%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-cross {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  line-height: 1.1;
}

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

.auth-alert {
  background: var(--danger-light);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.auth-form {
  margin-top: 8px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

  /* Context menu */
  .ctx-menu {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    min-width: 160px;
    padding: 4px;
  }
  .ctx-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
  }
  .ctx-item:hover { background: var(--surface2); }
  .ctx-item.danger { color: var(--danger); }
  .ctx-item.danger:hover { background: var(--danger-light); }
  .ctx-divider { height: 1px; background: var(--border); margin: 4px 0; }

@media (max-width: 1100px) {
  .settings-layout {
    flex-direction: column;
  }

  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .navbar {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .page-header {
    padding: 18px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-row,
  .pipeline-container,
  .settings-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-pill {
    display: none;
  }
}
