/* ============================================================
   PLANNING-HUB.HTML — Couple planning workspace (timeline,
   budget, checklist, vendors, calendar widgets).
   Tokens resolve to css/variables.css.
   ============================================================ */

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

body {
  font-family: var(--font-body);
  background: var(--color-champagne);
  color: var(--color-charcoal);
  min-height: 100vh;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Top bar ────────────────────────────────────────────────── */
.site-topbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-hairline);
  height: 44px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--color-mid-grey);
}

.topbar-inner a {
  color: var(--color-mid-grey);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.topbar-inner a:hover { color: var(--color-accent); }

.topbar-links { display: flex; gap: 20px; align-items: center; }

.topbar-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: var(--fw-semibold);
  font-size: .78rem;
  transition: background var(--dur-fast) var(--ease-out) !important;
}

.topbar-cta:hover { background: #b8966a !important; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.site-logo span { color: var(--color-accent); }

.main-nav { display: flex; gap: var(--space-1); list-style: none; }

.main-nav a {
  padding: var(--space-2) 14px;
  font-size: .875rem;
  font-weight: var(--fw-medium);
  color: var(--color-mid-grey);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-charcoal);
  background: var(--color-champagne);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.btn i { width: var(--space-4); height: var(--space-4); flex-shrink: 0; }

.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: #b8966a; }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-charcoal);
  border: 1px solid var(--color-hairline-strong);
}

.btn-secondary:hover { background: var(--color-champagne); }

.btn-sm  { padding: 7px 14px; font-size: .82rem; }
.btn-xs  { padding: 5px 10px; font-size: .78rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1.5px solid var(--color-charcoal);
}

.btn-outline:hover { background: var(--color-charcoal); color: var(--color-white); }

.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 0;
  font-size: .8rem;
  color: var(--color-mid-grey);
}

.breadcrumb a {
  color: var(--color-mid-grey);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb-sep { color: rgba(0,0,0,.25); }

.breadcrumb-current { color: var(--color-charcoal); font-weight: var(--fw-medium); }

/* ── Hub Hero ───────────────────────────────────────────────── */
.hub-hero {
  background: var(--color-sage);
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.12);
  pointer-events: none;
}

.hub-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hub-hero p {
  font-size: 1rem;
  color: rgba(45,45,45,.75);
  max-width: 560px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hub-hero .btn { position: relative; z-index: 1; }

/* ── Tools grid ─────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.tool-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 26px var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow .18s, transform .18s;
}

.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tool-card.disabled { opacity: .65; }
.tool-card.disabled:hover { box-shadow: var(--shadow-sm); transform: none; }

.tool-icon {
  width: var(--space-9); height: var(--space-9);
  border-radius: 12px;
  background: var(--color-champagne);
  display: flex; align-items: center; justify-content: center;
}

.tool-icon i { width: 22px; height: 22px; color: var(--color-accent); }

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.tool-card p {
  font-size: .85rem;
  color: var(--color-mid-grey);
  line-height: 1.55;
  flex: 1;
}

.coming-soon-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--color-blush);
  color: var(--color-charcoal);
  font-size: .68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: 3px var(--space-2);
  border-radius: 20px;
}

/* ── Planning tool sections ─────────────────────────────────── */
.planning-tool-section {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-7) 36px;
  margin-bottom: var(--space-7);
  scroll-margin-top: 80px;
}

/* ── Locked teaser state ──────────────────────────────────────
   Applied when the visitor is signed-out (or signed-in as vendor).
   Tools get blurred + non-interactive; CTA card sits between
   the tool grid and the first locked section.
─────────────────────────────────────────────────────────────── */
body.planning-locked .planning-tool-section {
  filter: blur(5px) saturate(0.85);
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
}
body.planning-locked .planning-tool-section > * { pointer-events: none; }

/* On scroll into a blurred tool, the sticky lock pill keeps the
   sign-in CTA visible at the top of the viewport. */
body.planning-locked::before {
  content: '';
  display: none; /* reserved for future use */
}

.locked-cta-wrap {
  margin: 0 auto var(--space-7);
  max-width: 720px;
  padding: 0 var(--space-3);
}

.locked-cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-champagne) 0%, var(--color-bone) 100%);
  border: 1px solid var(--color-accent);
  border-radius: 18px;
  padding: 36px var(--space-7) 28px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(45, 45, 45, 0.08);
}

.locked-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-circle);
  background: var(--color-white);
  border: 1px solid rgba(201, 168, 124, 0.4);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-deep);
}
.locked-cta-icon i { width: 22px; height: 22px; }

.locked-cta-eyebrow {
  font-size: var(--fs-2xs);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
}

.locked-cta-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.locked-cta-sub {
  font-size: 14px;
  color: var(--color-graphite);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 22px;
}

.locked-cta-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2) 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.locked-cta-tools li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
}
.locked-cta-tools li i {
  width: 14px; height: 14px;
  color: #5A8A6A;
  flex-shrink: 0;
}

.locked-cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.locked-cta-actions .btn { padding: var(--space-3) 22px; }
.locked-cta-actions .btn i { width: var(--space-4); height: var(--space-4); }

.locked-cta-foot {
  font-size: var(--fs-2xs);
  letter-spacing: 0.3px;
  color: var(--color-mid-grey);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.locked-cta-foot i { width: var(--fs-xs); height: var(--fs-xs); color: var(--color-accent-deep); }

/* Sticky CTA pill that re-appears as the user scrolls through
   the blurred tools so the unlock is always one click away. */
.locked-sticky-pill {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-3) 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  z-index: 50;
  max-width: calc(100vw - 32px);
}
.locked-sticky-pill i { width: 14px; height: 14px; }
.locked-sticky-pill a {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: var(--fw-semibold);
}
.locked-sticky-pill a:hover { background: var(--color-accent-hover); }
body:not(.planning-locked) .locked-sticky-pill { display: none; }

@media (max-width: 540px) {
  .locked-cta-card { padding: 28px 22px 22px; }
  .locked-cta-card h2 { font-size: 22px; }
  .locked-cta-actions .btn { width: 100%; }
}

.planning-tool-section > h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.tool-subtitle {
  color: var(--color-mid-grey);
  font-size: .9rem;
  margin-bottom: var(--space-6);
}

/* ─────────────────────────────────────────────────────────────
   TOOL 1: WEDDING CHECKLIST
───────────────────────────────────────────────────────────── */
.checklist-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.progress-bar-wrap {
  flex: 1;
  min-width: 200px;
  height: 10px;
  background: var(--color-champagne);
  border-radius: 5px;
  overflow: hidden;
}

#checklist-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 5px;
  transition: width .35s ease;
}

.progress-label {
  font-size: .82rem;
  color: var(--color-mid-grey);
  white-space: nowrap;
  font-weight: var(--fw-medium);
}

/* Accordion */
.checklist-category {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.checklist-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--color-champagne);
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out);
}

.checklist-category-header:hover { background: #ede7dd; }

.checklist-category-header h3 {
  font-size: .95rem;
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-count {
  font-size: .75rem;
  font-weight: var(--fw-regular);
  color: var(--color-mid-grey);
}

.accordion-chevron {
  width: 18px; height: 18px;
  color: var(--color-mid-grey);
  transition: transform .2s;
  flex-shrink: 0;
}

.checklist-category.open .accordion-chevron {
  transform: rotate(180deg);
}

.checklist-category-body {
  display: none;
  padding: var(--space-3) 18px var(--space-4);
  border-top: 1px solid rgba(0,0,0,.06);
}

.checklist-category.open .checklist-category-body {
  display: block;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) 0;
  cursor: pointer;
  font-size: .875rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: color .12s;
}

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

.checklist-item input[type="checkbox"] {
  width: var(--space-4); height: var(--space-4);
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item.checked {
  color: var(--color-mid-grey);
  text-decoration: line-through;
}

/* ── Editable checklist controls ─────────────────────────────── */
.checklist-item-text {
  flex: 1;
  min-width: 0;
}
.checklist-item-delete {
  opacity: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-mid-grey);
  padding: var(--space-1);
  border-radius: var(--r-sm);
  transition: opacity .12s, background .12s, color .12s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.checklist-item:hover .checklist-item-delete,
.checklist-item:focus-within .checklist-item-delete { opacity: 1; }
.checklist-item-delete:hover { background: rgba(192, 87, 79, 0.1); color: #C0574F; }
.checklist-item-delete i { width: 14px; height: 14px; }

.checklist-add-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0 var(--space-1);
  margin-top: var(--space-1);
  border-top: 1px dashed var(--color-hairline);
}
.checklist-add-row input[type="text"] {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .875rem;
  background: var(--color-white);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.checklist-add-row input[type="text"]:focus { border-color: var(--color-accent); }
.checklist-add-row button {
  background: var(--color-champagne);
  border: 1px solid var(--color-hairline);
  color: var(--color-accent-deep);
  padding: var(--space-2) 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}
.checklist-add-row button:hover { background: var(--color-accent); color: var(--color-white); }
.checklist-add-row button i { width: 14px; height: 14px; }

.checklist-item.custom {
  background: rgba(245, 239, 230, 0.35);
  border-radius: var(--r-sm);
  padding-left: 6px;
  padding-right: 6px;
}
.checklist-item.custom .checklist-custom-badge {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: var(--fw-semibold);
  margin-right: 6px;
  opacity: 0.75;
}

/* ─────────────────────────────────────────────────────────────
   TOOL 6: TIMELINE BUILDER
───────────────────────────────────────────────────────────── */
.timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.timeline-day-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-bone);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: var(--space-1);
  flex-wrap: wrap;
}
.tl-day-tab {
  background: none;
  border: none;
  padding: var(--space-2) 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-graphite);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s;
}
.tl-day-tab:hover { background: var(--color-champagne); }
.tl-day-tab.active {
  background: var(--color-accent);
  color: var(--color-white);
}
.tl-day-tab.tl-day-add {
  opacity: 0.6;
  font-style: italic;
}
.tl-day-tab i { width: 14px; height: 14px; }

.timeline-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.timeline-select-wrap { position: relative; }
.timeline-select {
  padding: var(--space-2) 32px var(--space-2) var(--space-3);
  border: 1px solid var(--color-hairline-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.timeline-select:focus { outline: none; border-color: var(--color-accent); }

/* Add/Edit form */
.timeline-form {
  background: var(--color-bone);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.timeline-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
}
.timeline-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}
.timeline-form-field { display: flex; flex-direction: column; gap: var(--space-1); }
.timeline-form-field-full { grid-column: 1 / -1; }
.timeline-form-field label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  font-weight: var(--fw-semibold);
}
.timeline-form-field input,
.timeline-form-field select,
.timeline-form-field textarea {
  padding: var(--space-2) 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--color-white);
  outline: none;
}
.timeline-form-field input:focus,
.timeline-form-field select:focus,
.timeline-form-field textarea:focus { border-color: var(--color-accent); }
.timeline-form-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: 14px;
  justify-content: flex-end;
}

/* Hour bar */
.timeline-hourbar-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.timeline-hourbar-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-2xs);
  color: var(--color-mid-grey);
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}
.timeline-hourbar {
  position: relative;
  height: 36px;
  background: var(--color-bone);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tl-block {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--r-sm);
  padding: 0 6px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: var(--fw-semibold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  cursor: pointer;
}
.tl-block:hover { filter: brightness(1.06); }

/* Type colours */
.tl-type-personal    { background: #D4A8A0; }
.tl-type-travel      { background: #6B6B6B; }
.tl-type-ceremony    { background: #C9A87C; }
.tl-type-photography { background: #5A8A6A; }
.tl-type-reception   { background: #B5C4B1; color: #2D2D2D; }
.tl-type-dancing     { background: #2D2D2D; }
.tl-type-tradition   { background: #8A6D42; }
.tl-type-other       { background: #C9A87C; opacity: 0.7; }

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: var(--space-3);
  font-size: var(--fs-2xs);
  color: var(--color-mid-grey);
}
.timeline-legend-item { display: inline-flex; align-items: center; gap: var(--space-1); }
.timeline-legend-swatch {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
}

/* Conflict */
.timeline-conflict {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  background: rgba(192, 87, 79, 0.08);
  border: 1px solid rgba(192, 87, 79, 0.25);
  color: #C0574F;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.timeline-conflict i { width: var(--space-4); height: var(--space-4); flex-shrink: 0; }

/* Event table */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.timeline-table th {
  text-align: left;
  font-size: var(--fs-2xs);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  font-weight: var(--fw-semibold);
  padding: 10px var(--space-3);
  background: var(--color-champagne);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.timeline-table td {
  padding: var(--space-3);
  border-bottom: 1px solid rgba(0,0,0,.05);
  vertical-align: middle;
}
.timeline-table tr:hover td { background: rgba(245,239,230,.5); }
.timeline-table tr.tl-row-conflict td { background: rgba(192, 87, 79, 0.05); }
.tl-time-cell {
  font-family: var(--font-body);
  font-feature-settings: "tnum";
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.tl-time-cell .tl-end {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--color-mid-grey);
  font-weight: var(--fw-regular);
  margin-top: 2px;
}
.tl-duration-pill {
  display: inline-block;
  font-size: var(--fs-2xs);
  padding: 2px var(--space-2);
  border-radius: var(--r-pill);
  background: var(--color-bone);
  color: var(--color-charcoal);
  white-space: nowrap;
}
.tl-event-cell { font-weight: var(--fw-semibold); }
.tl-event-type {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  margin-left: 6px;
  color: var(--color-white);
  vertical-align: middle;
}
.tl-event-notes {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-mid-grey);
  font-weight: var(--fw-regular);
  margin-top: var(--space-1);
}
.tl-actions {
  display: flex;
  gap: var(--space-1);
  justify-content: flex-end;
}
.tl-icon-btn {
  background: none;
  border: 1px solid var(--color-hairline);
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mid-grey);
  transition: background .12s;
}
.tl-icon-btn:hover { background: var(--color-champagne); color: var(--color-charcoal); }
.tl-icon-btn i { width: 14px; height: 14px; }
.tl-icon-btn.danger:hover { background: rgba(192, 87, 79, 0.1); color: #C0574F; }

.timeline-empty {
  text-align: center;
  padding: 40px var(--space-6);
  color: var(--color-mid-grey);
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
}
.timeline-empty i { width: 28px; height: 28px; color: var(--color-mid-grey); }

/* ─────────────────────────────────────────────────────────────
   TOOL 2: BUDGET PLANNER
───────────────────────────────────────────────────────────── */
.budget-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.budget-header label {
  font-weight: var(--fw-semibold);
  font-size: .9rem;
}

/* ── Budget input — fixed R column on the left + sensible input padding ── */
.budget-input-wrap {
  position: relative !important;
  display: inline-block !important;
  border: 1.5px solid var(--color-hairline-strong) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--color-white) !important;
  vertical-align: middle;
  width: auto !important;
}

.budget-input-wrap .currency-prefix {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--color-champagne) !important;
  border-right: 1px solid rgba(0,0,0,.1) !important;
  color: var(--color-mid-grey) !important;
  font-weight: var(--fw-semibold) !important;
  font-size: .9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

/* Inputs inside the prefix wrap — override .budget-table input and css/ui.css */
.budget-input-wrap input[type="number"],
.budget-table .budget-input-wrap input[type="number"] {
  border: 0 !important;
  outline: none !important;
  padding: 9px 14px 9px 44px !important;
  font-family: var(--font-body) !important;
  font-size: .9rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: 200px !important;
  box-sizing: border-box !important;
}
.budget-table .budget-input-wrap input[type="number"] { width: 160px !important; }

.budget-input-wrap:focus-within {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(201,168,124,0.18);
}

/* Budget table */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-bottom: 20px;
}

.budget-table th {
  text-align: left;
  font-size: .75rem;
  font-weight: var(--fw-semibold);
  color: var(--color-mid-grey);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 14px;
  background: var(--color-champagne);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.budget-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  vertical-align: middle;
}

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

.budget-table tr:hover td { background: rgba(245,239,230,.5); }

.budget-table tfoot td {
  font-weight: var(--fw-bold);
  background: var(--color-champagne);
  border-top: 2px solid rgba(0,0,0,.1);
}

.budget-table input[type="number"] {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  background: var(--color-white);
}

.budget-table input[type="number"]:focus { border-color: var(--color-accent); }

.diff-positive { color: #38A169; font-weight: var(--fw-semibold); }
.diff-negative { color: #E53E3E; font-weight: var(--fw-semibold); }

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

/* ─────────────────────────────────────────────────────────────
   TOOL 3: VENDOR COMPARISON
───────────────────────────────────────────────────────────── */
.comparison-search {
  position: relative;
  max-width: 460px;
  margin-bottom: var(--space-6);
}

.comparison-search input[type="text"] {
  width: 100%;
  padding: 11px var(--space-4) 11px 44px;
  border: 1.5px solid var(--color-hairline-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  background: var(--color-white);
}

.comparison-search input:focus { border-color: var(--color-accent); }

.comparison-search::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

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

.suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  cursor: pointer;
  font-size: .875rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .12s;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--color-champagne); }

.suggestion-thumb {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.suggestion-meta { flex: 1; }
.suggestion-name { font-weight: var(--fw-medium); }
.suggestion-cat  { font-size: .75rem; color: var(--color-mid-grey); }

/* Comparison table */
.comparison-table {
  width: 100%;
  overflow-x: auto;
}

.comparison-empty {
  text-align: center;
  padding: 48px var(--space-6);
  color: var(--color-mid-grey);
}

.comparison-empty i {
  width: 40px; height: 40px;
  color: var(--color-blush);
  margin: 0 auto var(--space-3);
  display: block;
}

.comparison-empty p {
  font-size: .9rem;
  margin-top: var(--space-2);
}

table.vendor-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

table.vendor-compare th,
table.vendor-compare td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(0,0,0,.07);
  vertical-align: top;
}

table.vendor-compare th {
  background: var(--color-champagne);
  font-weight: var(--fw-semibold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-mid-grey);
  white-space: nowrap;
}

table.vendor-compare .vendor-col-header {
  background: var(--color-white);
  text-align: center;
  font-size: .9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,.75);
  padding: 56px var(--space-6) 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: var(--space-2); }

.footer-col ul li a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col ul li a:hover { color: var(--color-accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-bottom a:hover { color: var(--color-white); }

.footer-bottom-links { display: flex; gap: 20px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hub-hero { padding: 36px 20px; }
  .hub-hero h1 { font-size: 1.9rem; }
  .planning-tool-section { padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
