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

/* ─── Design Tokens (mirrors dashboard) ─────────────────────── */
:root {
  /* Surfaces */
  --bg:             #F2F3F6;
  --surface:        #FFFFFF;
  --surface-raised: #FAFBFC;

  /* Borders */
  --border:         #E2E5EA;
  --border-subtle:  #ECEEF2;

  /* Typography */
  --ink:            #0F1117;
  --ink-2:          #4A5568;
  --muted:          #8A94A6;

  /* Accent — MediaPlus blue */
  --accent:         #3098F3;
  --accent-hover:   #1E84E8;
  --accent-subtle:  #EBF5FF;
  --accent-muted:   #63B3F8;

  /* Status */
  --warn:           #D97706;
  --warn-subtle:    #FFFBEB;
  --warn-border:    #FDE68A;
  --danger:         #DC2626;
  --danger-subtle:  #FEF2F2;
  --danger-border:  #FECACA;
  --success:        #059669;
  --success-subtle: #ECFDF5;
  --success-border: #6EE7B7;

  /* Slate (admin/neutral) */
  --slate:          #64748B;
  --slate-subtle:   #F1F5F9;
  --slate-border:   #CBD5E1;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* ─── Header ─────────────────────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  animation: fadeUp 0.32s ease both;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.card-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Count badge in results card */
.card-head .count-badge { margin-left: auto; }

/* ─── Step badges ────────────────────────────────────────────── */
.step-badge {
  width: 27px;
  height: 27px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Step badge colours — one distinct colour per step */
#s2 .step-badge { background: #2EC485; }
#s3 .step-badge { background: #F5A623; }
#s4 .step-badge { background: #7C3AED; }
#s5 .step-badge { background: #E85555; }

/* ─── Form ───────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #4A5568);
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(48,152,243,0.12);
}

/* ─── Month nav ──────────────────────────────────────────────── */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2, #4A5568);
  font-family: inherit;
  transition: all 150ms ease;
  padding: 0;
  line-height: 1;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.month-display {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 150px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ─── Calendar actions (pill buttons) ───────────────────────── */
.cal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.pill-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2, #4A5568);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.pill-btn:hover           { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }
.pill-btn.outline         { border-color: var(--border); color: var(--muted); }
.pill-btn.outline:hover   { background: var(--bg); border-color: var(--ink-2, #4A5568); color: var(--ink); }
.pill-btn.sg              { border-color: var(--warn-border); color: var(--warn); }
.pill-btn.sg:hover        { background: var(--warn-subtle); border-color: var(--warn); }
.pill-btn.my              { border-color: var(--success-border); color: var(--success); }
.pill-btn.my:hover        { background: var(--success-subtle); border-color: var(--success); }

/* ─── Calendar grid ──────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.cal-hdr {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 100ms ease, box-shadow 100ms ease, border-color 150ms ease, background 150ms ease;
  user-select: none;
  min-height: 46px;
  position: relative;
}

.cal-day.empty { pointer-events: none; }

/* Working day */
.cal-day.working {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.cal-day.working:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* Leave / MC */
.cal-day.leave {
  background: var(--warn-subtle);
  border-color: var(--warn-border);
  color: var(--warn);
}

/* Public holidays */
.cal-day.ph,
.cal-day.ph-sg {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}

.cal-day.ph-my {
  background: var(--success-subtle);
  border-color: var(--success-border);
  color: #065F46;
}

/* Weekends */
.cal-day.weekend {
  background: var(--surface-raised);
  border-color: var(--border-subtle);
  color: var(--muted);
}

.cal-day:not(.empty):not(.weekend):hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.day-num {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.day-tag {
  font-size: 0.47rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  opacity: 0.8;
}

.day-ph-name {
  font-size: 0.42rem;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
  line-height: 1.2;
  padding: 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ─── Calendar legend ────────────────────────────────────────── */
.cal-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2, #4A5568);
}

.leg-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid;
}

.leg-dot.working { background: var(--surface);        border-color: var(--border); }
.leg-dot.leave   { background: var(--warn-subtle);    border-color: var(--warn-border); }
.leg-dot.ph-sg   { background: #FEF3C7;               border-color: #FCD34D; }
.leg-dot.ph-my   { background: var(--success-subtle); border-color: var(--success-border); }
.leg-dot.weekend { background: var(--surface-raised); border-color: var(--border-subtle); }

/* ─── Calendar summary ───────────────────────────────────────── */
.cal-summary {
  background: var(--accent-subtle);
  border: 1px solid rgba(48,152,243,0.15);
  border-radius: 8px;
  padding: 10px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Section hint ───────────────────────────────────────────── */
.section-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ─── Project rows ───────────────────────────────────────────── */
.proj-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.proj-row:hover { border-color: var(--accent-muted); }

.admin-row {
  background: var(--slate-subtle);
  border-color: var(--slate-border);
}

.admin-row:hover { border-color: var(--slate); }

.leave-row {
  background: var(--warn-subtle);
  border-color: var(--warn-border);
}

.leave-row:hover { border-color: var(--warn); }

.proj-row-label {
  flex-shrink: 0;
  padding-top: 2px;
}

/* ─── Type badges ────────────────────────────────────────────── */
.proj-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-badge {
  background: var(--slate-subtle);
  color: var(--slate);
  border: 1px solid var(--slate-border);
}

.client-badge {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(48,152,243,0.25);
  white-space: nowrap;
}

.leave-badge {
  background: var(--warn-subtle);
  color: var(--warn);
  border: 1px solid var(--warn-border);
  white-space: nowrap;
}

/* ─── Project row body ───────────────────────────────────────── */
.proj-row-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

/* ─── Hours ──────────────────────────────────────────────────── */
.proj-row-hours {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 20px;
  min-width: 54px;
}

.hours-chip {
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.locked-chip { background: var(--slate);   color: #fff; }
.client-chip { background: var(--accent);  color: #fff; }
.leave-chip  { background: var(--warn);    color: #fff; }

.hours-pct {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Remove button ──────────────────────────────────────────── */
.proj-row-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 150ms ease;
  margin-top: 18px;
  line-height: 1;
}

.proj-row-remove:hover { color: var(--danger); background: var(--danger-subtle); }

/* ─── Project search widget ──────────────────────────────────── */
.proj-search-wrap,
.proj-task-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psw { position: relative; }

.ps-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ps-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(48,152,243,0.1);
}

.ps-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.ps-results.open { display: block; }

.ps-result {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 100ms ease;
}

.ps-result:hover       { background: var(--accent-subtle); }
.ps-result:last-child  { border-bottom: none; }

.ps-code {
  font-weight: 700;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ps-name { color: var(--ink); font-size: 13px; line-height: 1.3; }

.ps-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--success-subtle);
  border: 1px solid var(--success-border);
  border-radius: 7px;
  padding: 8px 12px;
  margin-top: 5px;
}

.ps-badge-text { font-weight: 600; color: var(--success); font-size: 12px; }

.ps-clear {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 150ms ease;
}

.ps-clear:hover { color: var(--danger); background: var(--danger-subtle); }

/* ─── Locked task display ────────────────────────────────────── */
.admin-task-locked {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  background: var(--slate-subtle);
  border: 1px solid var(--slate-border);
  color: var(--slate);
}

.leave-task-locked {
  background: var(--warn-subtle)  !important;
  border-color: var(--warn-border) !important;
  color: var(--warn)               !important;
}

/* ─── Task select ────────────────────────────────────────────── */
.task-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 150ms ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A94A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.task-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(48,152,243,0.1);
}

/* ─── Add project button ─────────────────────────────────────── */
.btn-add-proj {
  width: 100%;
  padding: 12px;
  border: 1.5px dashed var(--accent-muted);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  margin-bottom: 20px;
}

.btn-add-proj:hover { background: var(--accent-subtle); border-style: solid; }

/* ─── Allocation bar ─────────────────────────────────────────── */
.alloc-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.alloc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.alloc-bar-wrap {
  border-radius: 6px;
  overflow: hidden;
  height: 22px;
  background: var(--border);
}

.alloc-bar {
  height: 100%;
  display: flex;
  overflow: hidden;
}

.alloc-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  transition: width 300ms ease;
}

.alloc-total {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2, #4A5568);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.alloc-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.alloc-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Allocation segment colours — indigo tonal family */
.seg-admin { background: var(--slate); }
.seg-c0    { background: var(--accent); }
.seg-c1    { background: #5B6CF0; }
.seg-c2    { background: #7B8FF5; }
.seg-c3    { background: var(--warn); }
.seg-c4    { background: var(--success); }
.seg-c5    { background: #7C3AED; }
.seg-c6    { background: #0E7490; }

/* ─── Generate card ──────────────────────────────────────────── */
.gen-card { text-align: center; }

.gen-preview {
  background: var(--accent-subtle);
  border: 1px solid rgba(48,152,243,0.15);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.85;
  min-height: 60px;
  text-align: left;
}

/* ─── Acknowledgement ────────────────────────────────────────── */
.acknowledgement-box {
  align-items: flex-start;
  background: var(--warn-subtle);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 100%;
  padding: 14px 16px;
  text-align: left;
}

.acknowledgement-box input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.acknowledgement-box span { font-size: 13px; color: var(--ink-2, #4A5568); }

.ack-warning {
  align-items: center;
  background: var(--danger-subtle);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  color: var(--danger);
  display: none;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  margin: -6px auto 16px;
  max-width: 100%;
  padding: 12px 16px;
  text-align: left;
}

.ack-warning::before {
  content: '!';
  align-items: center;
  background: var(--danger);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.ack-warning.show { display: flex; }

/* ─── Generate button ────────────────────────────────────────── */
.btn-generate {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(48,152,243,0.3);
  transition: all 200ms ease;
}

.btn-generate:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(48,152,243,0.38);
}

.btn-generate:active { transform: translateY(0); }

/* ─── Results ────────────────────────────────────────────────── */
.count-badge {
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.entry-item::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.entry-item:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-sm);
}

.entry-date-box {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.entry-day { font-size: 1.15rem; font-weight: 800; line-height: 1; }
.entry-mon { font-size: 0.57rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 0.5px; margin-top: 2px; display: block; }

.entry-info { flex: 1; min-width: 0; }
.entry-proj { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-task { font-size: 12px; color: var(--muted); margin-top: 1px; }

.entry-h {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.entry-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.entry-del:hover { color: var(--danger); background: var(--danger-subtle); }

/* ─── Result actions ─────────────────────────────────────────── */
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-export {
  flex: 1;
  min-width: 160px;
  background: var(--success);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(5,150,105,0.25);
  transition: all 200ms ease;
}

.btn-export:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.32);
}

.btn-outline {
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2, #4A5568);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.btn-outline:hover { border-color: var(--ink-2, #4A5568); background: var(--bg); color: var(--ink); }

/* ─── Animation ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .card           { padding: 20px 16px; }
  .form-row       { grid-template-columns: 1fr; }
  .proj-row-body  { grid-template-columns: 1fr; }
  .cal-day        { min-height: 38px; }
  .day-tag        { display: none; }
  header h1       { font-size: 1.45rem; }
}
