/* =========================================================
   OUR LITTLE UNIVERSE — PLANS
========================================================= */

.plans-page {
  --plan-bg: #fffaf4;
  --plan-card: #fffdf9;

  --plan-brown: #3f2118;
  --plan-muted: #806258;

  --plan-orange: #d95723;
  --plan-orange-dark: #aa3b16;
  --plan-orange-light: #ffad7b;

  --plan-cream: #fff0e3;

  --plan-border:
    rgba(117, 67, 48, 0.14);

  --plan-shadow:
    0 18px 55px rgba(76, 34, 20, 0.08);

  --plan-shadow-hover:
    0 24px 70px rgba(76, 34, 20, 0.14);

  margin: 0;

  color: var(--plan-brown);

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 219, 170, 0.55),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 25%,
      rgba(255, 193, 180, 0.4),
      transparent 30%
    ),
    var(--plan-bg);
}


.plans-page *,
.plans-page *::before,
.plans-page *::after {
  box-sizing: border-box;
}


.plans-main {
  overflow: hidden;
}


.plans-page button,
.plans-page input,
.plans-page textarea,
.plans-page select {
  font: inherit;
}


.plans-page .eyebrow {
  margin: 0 0 12px;

  color: var(--plan-orange);

  font-family: "Inter", sans-serif;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.17em;

  text-transform: uppercase;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.plans-section-heading {
  max-width: 720px;

  margin:
    0 auto 42px;

  text-align: center;
}


.plans-section-heading h2 {
  margin: 0 0 12px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(2.6rem, 5vw, 4.3rem);

  font-weight: 600;

  line-height: 0.95;
}


.plans-section-heading > p:last-child {
  color: var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  line-height: 1.75;
}


/* =========================================================
   HERO
========================================================= */

.plans-hero {
  position: relative;

  min-height: 700px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding:
    135px 24px
    110px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #fff6ea,
      #fffdf9 48%,
      #ffe6dc
    );
}


.plans-hero-content {
  position: relative;

  z-index: 2;

  width:
    min(930px, 100%);

  text-align: center;
}


.plans-hero h1 {
  margin: 0;

  color: var(--plan-brown);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size:
    clamp(4rem, 9vw, 7.5rem);

  font-weight: 600;

  letter-spacing: -0.045em;

  line-height: 0.87;
}


.plans-hero h1 span {
  display: block;

  margin-top: 12px;

  color: var(--plan-orange);

  font-style: italic;

  font-weight: 500;
}


.plans-hero-description {
  max-width: 660px;

  margin:
    30px auto 0;

  color: var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  line-height: 1.8;
}


.plans-hero-glow {
  position: absolute;

  width: 450px;

  height: 450px;

  border-radius: 50%;

  filter: blur(90px);

  pointer-events: none;
}


.plans-glow-one {
  top: -150px;

  left: -130px;

  background:
    rgba(255, 177, 104, 0.3);
}


.plans-glow-two {
  right: -120px;

  bottom: -170px;

  background:
    rgba(255, 127, 107, 0.22);
}


/* =========================================================
   COUNTDOWN
========================================================= */

.plans-countdown {
  width:
    min(720px, 100%);

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  margin:
    52px auto 0;

  border:
    1px solid
    var(--plan-border);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.75);

  backdrop-filter:
    blur(16px);

  box-shadow:
    var(--plan-shadow);
}


.countdown-item {
  position: relative;

  padding:
    26px 18px;
}


.countdown-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 25%;

  right: 0;

  width: 1px;

  height: 50%;

  background:
    var(--plan-border);
}


.countdown-item strong {
  display: block;

  color: var(--plan-orange);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2.5rem;

  line-height: 1;
}


.countdown-item span {
  display: block;

  margin-top: 8px;

  color: var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* =========================================================
   ROAD PROGRESS
========================================================= */

.road-progress {
  width:
    min(760px, 100%);

  margin:
    45px auto 0;
}


.road-progress-header {
  display: flex;

  justify-content:
    space-between;

  margin-bottom: 12px;

  color: var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.72rem;

  font-weight: 600;
}


.road-progress-track {
  position: relative;

  height: 8px;

  border-radius: 999px;

  background: #ead9cf;
}


.road-progress-fill {
  height: 100%;

  width: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #f3a26d,
      var(--plan-orange)
    );

  transition:
    width 0.6s ease;
}


.road-progress-marker {
  position: absolute;

  top: 50%;

  left: 0;

  width: 19px;

  height: 19px;

  border:
    4px solid white;

  border-radius: 50%;

  background:
    var(--plan-orange);

  box-shadow:
    0 5px 15px
    rgba(140, 56, 26, 0.25);

  transform:
    translate(-50%, -50%);

  transition:
    left 0.6s ease;
}


.road-progress-marker span {
  position: absolute;

  bottom: 25px;

  left: 50%;

  width: max-content;

  padding:
    6px 9px;

  border-radius: 8px;

  color: white;

  background:
    var(--plan-brown);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.64rem;

  transform:
    translateX(-50%);
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.plans-quick-actions {
  position: relative;

  z-index: 5;

  width:
    min(
      1180px,
      calc(100% - 40px)
    );

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;

  margin:
    -52px auto 0;
}


.plan-action-card {
  min-height: 125px;

  display: flex;

  align-items: center;

  gap: 16px;

  padding: 22px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 22px;

  color:
    var(--plan-brown);

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    var(--plan-shadow);

  text-align: left;

  cursor: pointer;

  transition:
    0.25s ease;
}


.plan-action-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    var(--plan-shadow-hover);
}


.plan-action-card.primary {
  border-color:
    transparent;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--plan-orange),
      var(--plan-orange-dark)
    );
}


.plan-action-icon {
  width: 48px;

  height: 48px;

  flex: 0 0 48px;

  display: grid;

  place-items: center;

  border-radius: 15px;

  color:
    var(--plan-orange);

  background:
    var(--plan-cream);

  font-size: 1.35rem;
}


.plan-action-card.primary
.plan-action-icon {
  color: white;

  background:
    rgba(255, 255, 255, 0.16);
}


.plan-action-card strong {
  display: block;

  margin-bottom: 5px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.25rem;
}


.plan-action-card small {
  display: block;

  color: var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.7rem;

  line-height: 1.5;
}


.plan-action-card.primary small {
  color:
    rgba(255, 255, 255, 0.74);
}


/* =========================================================
   PAGE SECTIONS
========================================================= */

.plans-people-section,
.plans-categories-section,
.plans-today-section,
.plans-goals-section,
.plans-history-section {
  width:
    min(
      1180px,
      calc(100% - 40px)
    );

  margin:
    0 auto;

  padding-top: 105px;
}


/* =========================================================
   OWNER CARDS
========================================================= */

.plans-owner-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}


.owner-card {
  min-height: 310px;

  padding: 34px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 28px;

  background:
    rgba(255, 255, 255, 0.9);

  box-shadow:
    var(--plan-shadow);

  cursor: pointer;

  transition:
    0.25s ease;
}


.owner-card:hover {
  transform:
    translateY(-6px);

  box-shadow:
    var(--plan-shadow-hover);
}


.owner-symbol {
  width: 60px;

  height: 60px;

  display: grid;

  place-items: center;

  margin-bottom: 28px;

  border-radius: 18px;

  color:
    var(--plan-orange);

  background:
    var(--plan-cream);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.6rem;

  font-weight: 700;
}


.owner-card h3 {
  margin:
    0 0 10px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2rem;
}


.owner-card > p {
  min-height: 75px;

  margin: 0;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.83rem;

  line-height: 1.7;
}


.owner-progress {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-top: 28px;
}


.owner-progress-track {
  height: 7px;

  flex: 1;

  overflow: hidden;

  border-radius: 999px;

  background: #efdfd5;
}


.owner-progress-fill {
  width: 0;

  height: 100%;

  border-radius: inherit;

  background:
    var(--plan-orange);

  transition:
    width 0.5s ease;
}


.owner-progress > span {
  min-width: 42px;

  color:
    var(--plan-orange);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.78rem;

  font-weight: 700;
}


/* =========================================================
   LIFE AREAS
========================================================= */

.life-category-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;
}


.life-category-card {
  min-height: 215px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  padding: 25px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 22px;

  color:
    var(--plan-brown);

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 12px 35px
    rgba(78, 36, 21, 0.05);

  text-align: left;

  cursor: pointer;

  transition:
    0.25s ease;
}


.life-category-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(217, 87, 35, 0.3);
}


.life-category-card > span {
  width: 43px;

  height: 43px;

  display: grid;

  place-items: center;

  margin-bottom: 20px;

  border-radius: 13px;

  color:
    var(--plan-orange);

  background:
    var(--plan-cream);
}


.life-category-card h3 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.35rem;
}


.life-category-card strong {
  margin:
    9px 0;

  color:
    var(--plan-orange);

  font-family:
    "Inter",
    sans-serif;

  font-size: 1.4rem;
}


.life-category-card small {
  margin-top: auto;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.7rem;

  line-height: 1.5;
}


/* =========================================================
   TODAY
========================================================= */

.today-panel {
  padding: 42px;

  border-radius: 32px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #452319,
      #74381f
    );

  box-shadow:
    0 30px 75px
    rgba(65, 29, 17, 0.18);
}


.today-panel .eyebrow {
  color: #ffc097;
}


.today-heading {
  display: flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap: 20px;

  margin-bottom: 34px;
}


.today-heading h2 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2.8rem;
}


#todayDate {
  padding:
    9px 14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.13);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.08);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.68rem;
}


.today-columns {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;
}


.today-column {
  min-height: 200px;

  padding: 23px;

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.07);
}


.today-column h3 {
  margin:
    0 0 18px;

  color: #ffd4ba;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.5rem;
}


.empty-state {
  color:
    rgba(255, 255, 255, 0.55);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.76rem;
}


.today-update {
  padding:
    13px 0;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.09);
}


.today-update:last-child {
  border-bottom: 0;
}


.today-update strong {
  display: block;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.74rem;
}


.today-update p {
  margin:
    6px 0;

  color:
    rgba(255, 255, 255, 0.78);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.7rem;

  line-height: 1.5;
}


.today-update span {
  color: #ffc49d;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.63rem;

  font-weight: 700;
}


/* =========================================================
   FILTERS
========================================================= */

.goal-toolbar {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 20px;

  margin-bottom: 30px;
}


.goal-owner-filters {
  display: flex;

  gap: 8px;

  flex-wrap: wrap;
}


.goal-filter {
  padding:
    10px 18px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 999px;

  color:
    var(--plan-muted);

  background: white;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.72rem;

  font-weight: 700;

  cursor: pointer;
}


.goal-filter.active,
.goal-filter:hover {
  border-color:
    var(--plan-orange);

  color: white;

  background:
    var(--plan-orange);
}


#goalCategoryFilter {
  min-width: 220px;

  height: 43px;

  padding:
    0 14px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 12px;

  color:
    var(--plan-brown);

  background: white;

  outline: none;
}


/* =========================================================
   GOALS
========================================================= */

.goals-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 20px;
}


.goal-card {
  padding: 28px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 25px;

  background:
    var(--plan-card);

  box-shadow:
    var(--plan-shadow);

  transition:
    0.25s ease;
}


.goal-card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    var(--plan-shadow-hover);
}


.goal-card-completed {
  opacity: 0.75;

  background:
    linear-gradient(
      145deg,
      #f6fff4,
      white
    );
}


.goal-card-top,
.goal-title-row,
.goal-progress-heading {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 12px;
}


.goal-badges {
  display: flex;

  gap: 6px;

  flex-wrap: wrap;
}


.goal-owner-badge,
.goal-category-badge,
.goal-priority,
.completed-badge {
  display: inline-flex;

  align-items: center;

  padding:
    6px 10px;

  border-radius: 999px;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.61rem;

  font-weight: 700;

  text-transform: capitalize;
}


.goal-owner-badge {
  color:
    var(--plan-orange);

  background:
    var(--plan-cream);
}


.goal-category-badge {
  color:
    var(--plan-muted);

  background: #f6f1ed;
}


.goal-priority {
  color: #9c6d4d;

  background: #fff2dd;
}


.priority-high {
  color: #b23618;

  background: #ffe5dd;
}


.priority-low {
  color: #4e7548;

  background: #ecf6e9;
}


.completed-badge {
  color: #4e7548;

  background: #ecf6e9;
}


.goal-title-row {
  align-items: flex-start;

  margin-top: 22px;
}


.goal-card h3 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2rem;

  line-height: 1.05;
}


.goal-description {
  white-space: pre-line;

  margin:
    15px 0 24px;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.8rem;

  line-height: 1.75;
}


.goal-date-row {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;

  margin-bottom: 25px;
}


.goal-date-row span {
  padding: 12px;

  border-radius: 12px;

  color:
    var(--plan-muted);

  background: #fff7f1;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.64rem;
}


.goal-date-row strong {
  display: block;

  margin-top: 4px;

  color:
    var(--plan-brown);

  font-size: 0.75rem;
}


.goal-progress-heading {
  margin-bottom: 9px;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.68rem;

  font-weight: 600;
}


.goal-progress-track {
  height: 8px;

  overflow: hidden;

  border-radius: 999px;

  background: #eedfd5;
}


.goal-progress-fill {
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #f29a63,
      var(--plan-orange)
    );

  transition:
    width 0.5s ease;
}


.goal-card-actions {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 8px;

  margin-top: 22px;
}


.goal-action {
  min-height: 40px;

  padding:
    0 10px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 10px;

  color:
    var(--plan-brown);

  background: white;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.66rem;

  font-weight: 700;

  cursor: pointer;

  transition:
    0.2s ease;
}


.goal-action:hover {
  border-color:
    var(--plan-orange);

  color:
    var(--plan-orange);
}


.goal-progress-button {
  border-color:
    var(--plan-orange);

  color: white;

  background:
    var(--plan-orange);
}


.goal-progress-button:hover {
  color: white;

  background:
    var(--plan-orange-dark);
}


.goal-delete-button:hover {
  border-color: #c84236;

  color: #c84236;
}


.goals-empty-state {
  grid-column:
    1 / -1;

  padding:
    70px 25px;

  border:
    1px dashed
    rgba(217, 87, 35, 0.3);

  border-radius: 26px;

  text-align: center;

  background:
    rgba(255, 255, 255, 0.6);
}


.goals-empty-state > span {
  display: block;

  margin-bottom: 15px;

  color:
    var(--plan-orange);

  font-size: 2rem;
}


.goals-empty-state h3 {
  margin: 0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2rem;
}


.goals-empty-state p {
  margin:
    10px auto 24px;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  line-height: 1.7;
}


/* =========================================================
   REVIEWS
========================================================= */

.plans-history-section {
  padding-bottom: 110px;
}


.review-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 20px;
}


.review-card {
  min-height: 250px;

  padding: 32px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 25px;

  background: white;

  box-shadow:
    var(--plan-shadow);
}


.review-label {
  margin:
    0 0 24px;

  color:
    var(--plan-orange);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.66rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.review-card h3 {
  margin:
    0 0 10px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.8rem;
}


.review-card > p:not(.review-label) {
  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  line-height: 1.7;
}


.review-card button {
  margin-top: 20px;

  padding: 0;

  border: 0;

  color:
    var(--plan-orange);

  background:
    transparent;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.75rem;

  font-weight: 700;

  cursor: pointer;
}


/* =========================================================
   MODALS
========================================================= */

.plans-modal {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}


.plans-modal.open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}


.plans-modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(48, 24, 17, 0.62);

  backdrop-filter:
    blur(9px);
}


.plans-modal-panel {
  position: relative;

  z-index: 2;

  width:
    min(780px, 100%);

  max-height:
    calc(100vh - 48px);

  overflow-y: auto;

  padding: 42px;

  border-radius: 30px;

  color:
    var(--plan-brown);

  background:
    linear-gradient(
      145deg,
      #fffdf9,
      #fff7f0
    );

  box-shadow:
    0 35px 100px
    rgba(40, 18, 11, 0.34);

  transform:
    translateY(18px)
    scale(0.98);

  transition:
    transform 0.25s ease;
}


.plans-modal.open
.plans-modal-panel {
  transform:
    translateY(0)
    scale(1);
}


.plans-modal-small {
  width:
    min(590px, 100%);
}


.confirmation-panel {
  width:
    min(480px, 100%);
}


.confirmation-panel h2 {
  margin:
    0 0 8px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2.5rem;
}


.plans-modal-close {
  position: absolute;

  top: 17px;

  right: 18px;

  width: 40px;

  height: 40px;

  display: grid;

  place-items: center;

  padding: 0;

  border:
    1px solid
    var(--plan-border);

  border-radius: 50%;

  color:
    var(--plan-brown);

  background: white;

  font-size: 1.4rem;

  cursor: pointer;
}


.plans-modal-heading {
  max-width: 590px;

  margin-bottom: 30px;
}


.plans-modal-heading h2 {
  margin:
    0 0 8px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 3rem;

  font-weight: 600;

  line-height: 1;
}


.plans-modal-heading > p:last-child {
  margin: 0;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.82rem;

  line-height: 1.6;
}


/* =========================================================
   FORMS
========================================================= */

.plan-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 19px;
}


.plan-field {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 18px;
}


.plan-form-grid .plan-field {
  margin-bottom: 0;
}


.plan-field-wide {
  grid-column:
    1 / -1;
}


.plan-field > span {
  font-family:
    "Inter",
    sans-serif;

  font-size: 0.7rem;

  font-weight: 700;
}


.plan-field input,
.plan-field textarea,
.plan-field select {
  width: 100%;

  border:
    1px solid #ead6c9;

  border-radius: 12px;

  color:
    var(--plan-brown);

  background:
    rgba(255, 255, 255, 0.93);

  outline: none;

  transition:
    0.2s ease;
}


.plan-field input,
.plan-field select {
  height: 48px;

  padding:
    0 14px;
}


.plan-field textarea {
  min-height: 120px;

  padding: 14px;

  resize: vertical;

  line-height: 1.65;
}


.plan-field input:focus,
.plan-field textarea:focus,
.plan-field select:focus {
  border-color:
    var(--plan-orange);

  box-shadow:
    0 0 0 4px
    rgba(217, 87, 35, 0.08);
}


.goal-form-actions {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 28px;

  padding-top: 22px;

  border-top:
    1px solid
    var(--plan-border);
}


.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 46px;

  padding:
    0 22px;

  border-radius: 12px;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.74rem;

  font-weight: 700;

  cursor: pointer;
}


.primary-btn {
  border:
    1px solid
    var(--plan-orange);

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--plan-orange),
      var(--plan-orange-dark)
    );
}


.secondary-btn {
  border:
    1px solid
    var(--plan-border);

  color:
    var(--plan-brown);

  background: white;
}


.danger-btn {
  border:
    1px solid #bd4234;

  color: white;

  background: #bd4234;
}


.modal-full-button {
  width: 100%;

  margin-top: 8px;
}


.goal-form-status {
  min-height: 20px;

  margin:
    14px 0 0;

  color:
    var(--plan-orange);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.73rem;
}


/* =========================================================
   ERROR
========================================================= */

.goals-error-message {
  grid-column:
    1 / -1;

  padding: 28px;

  border-radius: 18px;

  color: #a63d28;

  background: #fff0eb;

  text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

  .plans-quick-actions {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .life-category-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 850px) {

  .plans-owner-grid,
  .today-columns,
  .goals-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .owner-card {
    min-height: auto;
  }

  .goal-toolbar {
    align-items: stretch;

    flex-direction: column;
  }

  #goalCategoryFilter {
    width: 100%;
  }

  .goal-card-actions {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 600px) {

  .plans-hero {
    min-height: auto;

    padding:
      100px 18px 80px;
  }

  .plans-hero h1 {
    font-size: 3.6rem;
  }

  .plans-countdown {
    grid-template-columns: 1fr;
  }

  .countdown-item:not(:last-child)::after {
    top: auto;

    right: 12%;

    bottom: 0;

    width: 76%;

    height: 1px;
  }

  .plans-quick-actions {
    width:
      calc(100% - 28px);

    grid-template-columns: 1fr;

    margin-top: -30px;
  }

  .plans-people-section,
  .plans-categories-section,
  .plans-today-section,
  .plans-goals-section,
  .plans-history-section {
    width:
      calc(100% - 28px);

    padding-top: 78px;
  }

  .life-category-grid {
    grid-template-columns: 1fr;
  }

  .today-panel {
    padding:
      26px 20px;
  }

  .today-heading {
    flex-direction: column;
  }

  .plan-form-grid {
    grid-template-columns: 1fr;
  }

  .plan-field-wide {
    grid-column: auto;
  }

  .plans-modal {
    padding: 12px;
  }

  .plans-modal-panel {
    max-height:
      calc(100vh - 24px);

    padding:
      36px 20px 24px;

    border-radius: 22px;
  }

  .goal-form-actions {
    flex-direction:
      column-reverse;
  }

  .goal-form-actions button {
    width: 100%;
  }

  .goal-date-row {
    grid-template-columns: 1fr;
  }

}
/* =========================================================
   SMART GOAL SYSTEM
========================================================= */

.plans-modal-large {
  width: min(920px, 100%);
}


/* =========================================================
   METRIC BUILDER
========================================================= */

.metric-builder-section {
  margin-top: 34px;

  padding-top: 28px;

  border-top:
    1px solid var(--plan-border);
}


.metric-builder-heading {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 20px;

  margin-bottom: 22px;
}


.metric-builder-heading h3 {
  margin: 0 0 7px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2rem;
}


.metric-builder-heading p:not(.eyebrow) {
  max-width: 560px;

  margin: 0;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.78rem;

  line-height: 1.65;
}


#metricsBuilder {
  display: grid;

  gap: 14px;
}


.metric-builder-card {
  padding: 20px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.72);
}


.metric-builder-top {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  margin-bottom: 16px;
}


.metric-builder-top strong {
  font-family:
    "Inter",
    sans-serif;

  font-size: 0.75rem;

  color:
    var(--plan-orange);
}


.remove-metric-button {
  padding: 6px 10px;

  border: 0;

  background: transparent;

  color: #b44936;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.67rem;

  font-weight: 700;

  cursor: pointer;
}


.metric-builder-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;
}


.metric-builder-grid
.plan-field {
  margin: 0;
}


.metric-weight-summary {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  margin-top: 16px;

  padding: 14px 16px;

  border-radius: 12px;

  background: #fff6ef;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.75rem;
}


.metric-weight-summary strong {
  color:
    var(--plan-orange);
}


.metric-weight-invalid {
  color: #bd4234 !important;
}


/* =========================================================
   DAILY SMART CHECK-IN
========================================================= */

.daily-metrics-container {
  display: grid;

  gap: 12px;

  margin: 22px 0;
}


.daily-metric-card {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 20px;

  min-height: 86px;

  padding: 18px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 16px;

  background: white;
}


.daily-metric-label {
  min-width: 0;
}


.daily-metric-label strong {
  display: block;

  margin-bottom: 5px;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.25rem;
}


.daily-metric-label span {
  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.67rem;
}


.daily-metric-card input,
.daily-metric-card select {
  width: min(190px, 45%);

  min-height: 43px;

  padding: 0 12px;

  border:
    1px solid #ead6c9;

  border-radius: 10px;

  background: #fffdfa;

  outline: none;
}


.daily-metric-card input:focus,
.daily-metric-card select:focus {
  border-color:
    var(--plan-orange);

  box-shadow:
    0 0 0 3px
    rgba(217, 87, 35, 0.08);
}


/* YES / NO */

.yes-no-control {
  display: flex;

  gap: 7px;
}


.yes-no-control button {
  min-width: 74px;

  height: 42px;

  border:
    1px solid
    var(--plan-border);

  border-radius: 11px;

  background: #fffdfa;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.7rem;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}


.yes-no-control button:hover {
  border-color:
    var(--plan-orange);
}


.yes-no-control button.selected[
  data-value="true"
] {
  border-color: #6e8c61;

  color: #42633a;

  background: #edf7ea;
}


.yes-no-control button.selected[
  data-value="false"
] {
  border-color: #c76a5a;

  color: #9d3f31;

  background: #fff0ed;
}


/* =========================================================
   DAILY SCORE
========================================================= */

.daily-score-preview {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  margin: 22px 0;

  padding: 20px;

  border-radius: 18px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #4a271c,
      #70351f
    );
}


.daily-score-preview span {
  font-family:
    "Inter",
    sans-serif;

  font-size: 0.72rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


.daily-score-preview strong {
  color: #ffc5a0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2.4rem;
}


/* =========================================================
   GOAL SCORE GRID
========================================================= */

.goal-score-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 8px;

  margin: 22px 0;
}


.goal-score-box {
  padding: 13px 10px;

  border-radius: 13px;

  background: #fff6ef;

  text-align: center;
}


.goal-score-box span {
  display: block;

  margin-bottom: 5px;

  color:
    var(--plan-muted);

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.58rem;

  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}


.goal-score-box strong {
  color:
    var(--plan-orange);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 1.45rem;
}


/* =========================================================
   OUTCOME METRICS
========================================================= */

.goal-outcomes {
  margin: 18px 0;

  overflow: hidden;

  border:
    1px solid
    var(--plan-border);

  border-radius: 14px;
}


.goal-outcome-row {
  display: grid;

  grid-template-columns:
    1fr auto 50px;

  gap: 12px;

  align-items: center;

  padding: 11px 13px;

  border-bottom:
    1px solid
    var(--plan-border);

  font-family:
    "Inter",
    sans-serif;
}


.goal-outcome-row:last-child {
  border-bottom: 0;
}


.goal-outcome-row span {
  color:
    var(--plan-muted);

  font-size: 0.67rem;
}


.goal-outcome-row strong {
  font-size: 0.7rem;
}


.goal-outcome-row small {
  color:
    var(--plan-orange);

  text-align: right;

  font-size: 0.67rem;

  font-weight: 700;
}


/* =========================================================
   TODAY SCORE
========================================================= */

.today-update {
  position: relative;
}


.today-score {
  display: inline-flex;

  margin-top: 8px;

  padding: 5px 8px;

  border-radius: 999px;

  color: #ffd2b8;

  background:
    rgba(255, 255, 255, 0.1);

  font-weight: 700;
}


.metric-empty-message {
  padding: 20px;

  border-radius: 14px;

  color:
    var(--plan-muted);

  background: #fff6ef;

  font-family:
    "Inter",
    sans-serif;

  font-size: 0.75rem;

  line-height: 1.6;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

  .metric-builder-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .goal-score-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 600px) {

  .metric-builder-heading {
    flex-direction: column;
  }


  .metric-builder-grid {
    grid-template-columns: 1fr;
  }


  .daily-metric-card {
    align-items: stretch;

    flex-direction: column;
  }


  .daily-metric-card input,
  .daily-metric-card select {
    width: 100%;
  }


  .yes-no-control {
    width: 100%;
  }


  .yes-no-control button {
    flex: 1;
  }


  .goal-score-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}