
/* Ensure 100vw box-sizing constraint on mobile */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* ==========================================================================
   Aprotime Features Page — Dedicated Stylesheet
   Responsive elastic units based on min(16px, calc(100vw / 90))
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Container & Global Reset
   -------------------------------------------------------------------------- */
.features-page {
  width: 100%;
  overflow-x: clip;
  background-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   1. Hero Section (Figma: 1440 x 965, background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F6 100%))
   -------------------------------------------------------------------------- */
.features-hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F6 100%);
  padding: 4.125rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-hero-container {
  width: 100%;
  max-width: 77rem; /* 1232px */
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-hero-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  gap: 0.5rem; /* 8px matching Figma */
  width: 100%;
  max-width: 51.9375rem; /* 831px */
  box-sizing: border-box;
}

.features-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 2.625rem; /* 42px matching Figma */
  line-height: 3.375rem; /* 54px matching Figma (or 129%) */
  text-align: center;
  color: #1F262D;
  margin: 0;
  max-width: 44.125rem; /* 706px matching Figma */
}

.features-hero-subtitle {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.125rem; /* 18px matching Figma */
  line-height: 1.75rem; /* 28px matching Figma (or 156%) */
  text-align: center;
  color: #33312C;
  margin: 0.5rem 0 0; /* padding 8px 0px 0px matching Figma Paragraph:margin */
  max-width: 48.375rem; /* 774px matching Figma */
}

.features-hero-cta-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem; /* 24px matching Figma */
  gap: 0.75rem; /* 12px matching Figma Frame 27348 gap */
  margin-bottom: 3.5rem;
  width: 100%;
}

.btn-features-primary {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 9.5625rem; /* 153px matching Figma */
  height: 3.0625rem; /* 49px matching Figma */
  background: #E63232;
  border: none;
  border-radius: 2.5625rem; /* 41px matching Figma */
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem; /* 13.12px matching Figma */
  line-height: 1.0625rem; /* 17px matching Figma */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-features-primary:hover {
  background: #C82323;
  transform: translateY(-1px);
}

.btn-features-secondary {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 9.8125rem; /* 157px matching Figma */
  height: 3.0625rem; /* 49px matching Figma */
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 2.5625rem; /* 41px matching Figma */
  color: rgba(0, 0, 0, 0.62); /* matching Figma */
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem; /* 13.12px matching Figma */
  line-height: 1.0625rem; /* 17px matching Figma */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-features-secondary:hover {
  background: #F9FAFB;
  border-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.features-hero-image-wrap {
  width: 100%;
  max-width: 60.3125rem; /* 965px */
  border-radius: 0.625rem; /* 10px */
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.features-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   2. Two-Column Feature Section Layout (Common for Sec 1, 3, 4)
   -------------------------------------------------------------------------- */
.features-two-col-section {
  width: 100%;
  padding: 4.125rem 0 4.5rem;
}

.features-two-col-section.bg-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F6 100%);
}

.features-two-col-container {
  width: 100%;
  max-width: 77rem; /* 1232px */
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.features-two-col-container.reverse {
  flex-direction: row-reverse;
}

/* Left side content (Title & accordion list) */
.features-col-content {
  flex: 0 0 32.625rem; /* 522px */
  max-width: 32.625rem;
  display: flex;
  flex-direction: column;
}

.features-tracking-container {
  align-items: flex-start;
}

.features-col-headline {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 2.125rem; /* 34px */
  line-height: 2.5625rem; /* 41px matching Figma line-height: 41px */
  color: #222324;
  margin: 0 0 2.375rem; /* 38px: 82px title + 38px margin = exactly 120px (7.5rem) to first line */
}

.features-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.features-accordion-item {
  width: 100%;
  padding: 1rem 0;
  border-top: 1.6px solid rgba(204, 202, 198, 0.53);
  cursor: pointer;
  transition: border-color 0.25s ease;
}



.features-accordion-item.is-active {
  border-top: 1.6px solid #1B1B20;
}

.features-accordion-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
  color: #A3A3A3;
  margin: 0;
  transition: color 0.25s ease;
}

.features-accordion-item.is-active .features-accordion-title {
  color: #323333;
}

.features-accordion-desc {
  display: none;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  line-height: 1.5;
  color: #323333;
  margin: 0.75rem 0 0;
  max-width: 30.5rem;
}

.features-accordion-item.is-active .features-accordion-desc {
  display: block;
}

/* Right side card display container */
.features-col-card-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 25rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section 1: Flexible Time Tracking Interactive Stack (4 Figma States)
   -------------------------------------------------------------------------- */
.features-tracking-screens-stack {
  position: relative;
  width: 100%;
  max-width: 38.9375rem; /* 623px matching Figma 623.02px */
  min-height: 28rem; /* 448px matching Figma 448.88px */
  margin-top: 7.5rem; /* 120px: perfectly levels right-hand illustration with first line */
}

.features-tracking-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: none;
}

.features-tracking-screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.features-tracking-card-inner {
  width: 100%;
  background: #FFFFFF;
  border: 0.97px solid rgba(37, 37, 37, 0.2);
  border-radius: 1.21rem; /* 19.35px */
  box-shadow: 0 0.5rem 1.5rem -0.25rem rgba(0, 0, 0, 0.06);
  padding: 1.96rem 2rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Screen 1: Live Timers (Timer Entry)
   ========================================================================== */
.tracking-timer-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 1.5rem !important;
}

.tracking-timer-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 1.07rem; /* 17px */
  color: #000000;
  margin: 0;
}

.tracking-timer-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: rgba(232, 0, 0, 0.1) !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 2rem !important;
}

.tracking-timer-badge-dot {
  position: static !important;
  width: 0.475rem !important;
  height: 0.475rem !important;
  background: #E80000 !important;
  border-radius: 50% !important;
  animation: timerPulse 1.5s infinite;
}

.tracking-timer-badge-text {
  position: static !important;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.83rem;
  color: #E80000;
  line-height: 1;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tracking-timer-clock-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: static !important;
  width: 100% !important;
  margin-bottom: 1.75rem !important;
}

.tracking-timer-digits {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 2.85rem; /* 45.6px */
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
}

.tracking-timer-action-btn {
  background: #E80000;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.83rem;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.tracking-timer-action-btn:hover {
  background: #C80000;
  transform: translateY(-1px);
}

.tracking-timer-entries-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.71rem !important;
  position: static !important;
  width: 100% !important;
}

.tracking-timer-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: static !important;
  background: #F3F3F3 !important;
  border-radius: 0.71rem !important;
  padding: 0.71rem 0.95rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 3.33rem !important;
}

.tracking-timer-row-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.71rem !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.tracking-timer-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 2.14rem !important;
  border-radius: 2rem !important;
  color: #FFFFFF !important;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.83rem;
  padding: 0 0.75rem !important;
  flex-shrink: 0 !important;
}

.tracking-timer-avatar.ip { background: #9014CA !important; }
.tracking-timer-avatar.jp { background: #588157 !important; width: 2.34rem !important; padding: 0 !important; }
.tracking-timer-avatar.lt { background: #E80000 !important; width: 2.25rem !important; padding: 0 !important; }

.tracking-timer-row-text {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.83rem;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracking-timer-row-time {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.83rem;
  color: #888888;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.tracking-timer-row-time.active {
  color: #E80000;
}

/* ==========================================================================
   Staggered Entrance Animation for Right-Hand Elements on Render
   ========================================================================== */
@keyframes trackingItemFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-tracking-screen.is-active.animate-in .tracking-anim-1 {
  animation: trackingItemFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}

.features-tracking-screen.is-active.animate-in .tracking-anim-2 {
  animation: trackingItemFadeUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.features-tracking-screen.is-active.animate-in .tracking-anim-3 {
  animation: trackingItemFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.features-tracking-screen.is-active.animate-in .tracking-anim-4 {
  animation: trackingItemFadeUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.features-tracking-screen.is-active.animate-in .tracking-anim-5 {
  animation: trackingItemFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.timer-entry-time.active {
  color: #E80000;
}

/* ==========================================================================
   Screen 2: Manual Entry
   ========================================================================== */
.manual-card-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.manual-card-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 1.08rem; /* 17.3px */
  color: #000000;
  margin: 0;
}

.manual-billing-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.48rem;
}

.manual-billing-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.725rem; /* 11.6px */
  color: #888888;
  text-transform: capitalize;
}

.manual-radio-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.97rem;
}

.manual-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  cursor: pointer;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.85rem; /* 13.5px */
  color: #111111;
}

.manual-radio-circle {
  width: 0.97rem; /* 15.5px */
  height: 0.97rem;
  border-radius: 50%;
  border: 1.45px solid #E0E0E0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.manual-radio-label.is-selected .manual-radio-circle {
  border-color: #E80000;
  background: rgba(232, 0, 0, 0.1);
}

.manual-radio-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #E80000;
}

.manual-fields-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.manual-pill-btn {
  background: #F5F5F5;
  border-radius: 0.73rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  color: #111111;
}

.manual-hrs-badge {
  padding: 0.64rem 1.025rem;
  font-weight: 600;
  font-size: 0.9rem; /* 14.4px */
}

.manual-date-badge {
  padding: 0.6rem 0.97rem;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.85rem; /* 13.5px */
}

.manual-calendar-icon {
  flex-shrink: 0;
}

.manual-creators-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.manual-creator-link {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.79rem; /* 12.6px */
  cursor: pointer;
}

.manual-creator-link.client { color: #E80000; }
.manual-creator-link.project { color: #588157; }

.manual-dropdowns-row {
  display: flex;
  flex-direction: row;
  gap: 0.97rem;
  margin-bottom: 0.85rem;
}

.manual-select-box {
  flex: 1;
  background: #F5F5F5;
  border-radius: 0.725rem; /* 11.6px */
  padding: 0.8rem 0.97rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.85rem;
  color: #888888;
  cursor: pointer;
}

.manual-select-box.full-width {
  width: 100%;
  margin-bottom: 0.95rem;
  box-sizing: border-box;
}

.manual-logged-row {
  background: #F3F3F3;
  border-radius: 0.725rem;
  padding: 0.725rem 0.97rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.manual-logged-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.725rem;
}

.manual-avatar-lt {
  width: 2.3rem;
  height: 2.18rem;
  border-radius: 2rem;
  background: #E80000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.85rem;
}

.manual-logged-name {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.85rem;
  color: #000000;
}

.manual-logged-duration {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: #888888;
}

/* ==========================================================================
   Screen 3: Passive Activity Capture (Background Activity)
   ========================================================================== */
.screen-tracking-passive .features-tracking-card-inner {
  padding: 1.25rem 1.5rem 1.5rem;
}

.passive-card-header {
  margin-bottom: 0.75rem;
}

.passive-card-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 1.08rem; /* 17.3px */
  color: #000000;
  margin: 0;
}

.passive-action-bar {
  background: #FFF8F8;
  border-bottom: 1.6px solid #F9C3C3;
  border-radius: 0.35rem 0.35rem 0 0;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.passive-selected-count {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.58rem; /* 9.2px */
  color: #E5272A;
}

.passive-action-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.passive-btn-add {
  background: #E5272A;
  color: #FFFFFF;
  border: none;
  border-radius: 2.2rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.53rem; /* 8.5px */
  cursor: pointer;
}

.passive-btn-remove {
  background: #FFFFFF;
  color: #374151;
  border: 1.1px solid #E5E7EB;
  border-radius: 2.2rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.53rem;
  cursor: pointer;
}

.passive-btn-clear {
  background: none;
  border: none;
  color: #6B7280;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.51rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.passive-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.passive-activity-row {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.48rem; /* 7.67px */
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
}

.passive-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

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

.passive-checkbox-custom {
  width: 0.7rem; /* 11px */
  height: 0.7rem;
  border-radius: 0.15rem;
  border: 1px solid #767676;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passive-activity-row.is-selected .passive-checkbox-custom {
  background: #E5272A;
  border-color: #E5272A;
}

.passive-checkbox-custom svg {
  display: none;
}

.passive-activity-row.is-selected .passive-checkbox-custom svg {
  display: block;
}

.passive-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 3.2rem;
}

.passive-time-start {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.48rem; /* 7.67px */
  color: #6A7282;
  line-height: 1.3;
}

.passive-time-end {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.48rem;
  color: #99A1AF;
  line-height: 1.3;
}

.passive-indicator-bar {
  width: 0.12rem; /* 2px */
  height: 2.2rem;
  border-radius: 2rem;
  flex-shrink: 0;
}

.passive-indicator-bar.teams { background: #5558AF; }
.passive-indicator-bar.claude { background: #CC785C; }

.passive-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.passive-content-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.passive-app-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}

.passive-app-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.passive-titles {
  display: flex;
  flex-direction: column;
}

.passive-task-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.56rem; /* 8.95px */
  color: #1C1C1E;
  line-height: 1.2;
}

.passive-app-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.48rem; /* 7.67px */
  color: #99A1AF;
  line-height: 1.2;
}

.passive-duration-pill {
  background: #F3F4F6;
  border-radius: 2rem;
  padding: 0.15rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.48rem;
  color: #6A7282;
}

.passive-task-subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.48rem; /* 7.67px */
  color: #6A7282;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Screen 4: AI-Assisted Entry & Narratives (Dual-pane)
   ========================================================================== */
.screen-tracking-ai .features-tracking-card-inner {
  padding: 0;
  overflow: hidden;
}

.ai-split-layout {
  display: flex;
  flex-direction: row;
  min-height: 25.5rem;
}

/* Left Form Pane (approx 56% width) */
.ai-form-pane {
  flex: 1.2;
  padding: 1.25rem 1.4rem;
  border-right: 1px solid #E4E4E4;
  display: flex;
  flex-direction: column;
}

.ai-form-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.ai-form-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.65rem; /* ~10px */
  letter-spacing: 0.02em;
  color: #000000;
}

.ai-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ai-form-body {
  display: flex;
  flex-direction: column;
}

.ai-form-section-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.48rem; /* 7.1px */
  color: #585F6C;
  margin-bottom: 0.25rem;
}

.ai-divider {
  border: none;
  border-top: 0.5px solid #E5E7EB;
  margin: 0 0 0.5rem;
}

.ai-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.ai-field-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.48rem; /* 7.1px */
  color: #3F3F3F;
}

.ai-radios {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
}

.ai-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.48rem;
  color: #3F3F3F;
}

.ai-radio-circle {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-radio.is-selected .ai-radio-circle {
  border-color: #CE0000;
  background: rgba(206, 0, 0, 0.1);
}

.ai-radio-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #CE0000;
}

.ai-input-pill-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.ai-input-pill {
  background: #F3F3F3;
  border-radius: 0.8rem;
  padding: 0.25rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
}

.ai-input-pill.full {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.55rem;
}

.ai-pill-placeholder {
  font-size: 0.48rem;
  color: #999999;
}

.ai-pill-label {
  font-size: 0.48rem;
  color: #3F3F3F;
}

.ai-temp-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.46rem;
  font-weight: 500;
  color: #E80000;
  cursor: pointer;
}

.ai-suggestions-list {
  background: #FDF9FF;
  border: 0.5px solid #F0D5FF;
  border-radius: 0.4rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ai-suggestion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.46rem;
  color: #9014CA;
}

.ai-suggestion-bubble {
  background: #FFFFFF;
  border: 0.5px solid #E5E7EB;
  border-radius: 0.3rem;
  padding: 0.3rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.46rem;
  color: #374151;
  line-height: 1.25;
}

.ai-suggestion-bubble.secondary {
  border-style: dashed;
  color: #6B7280;
}

.ai-form-actions-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.ai-btn-text {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.52rem;
  color: #6B7280;
  cursor: pointer;
}

.ai-form-actions-right {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
}

.ai-btn-draft {
  background: #F3F4F6;
  border: none;
  border-radius: 1.5rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.52rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.ai-btn-submit {
  background: #CE0000;
  border: none;
  border-radius: 1.5rem;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.52rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
}

/* Right Sidebar: AI Assistant (approx 44% width) */
.ai-sidebar-pane {
  flex: 1;
  background: #F9F9FA;
  padding: 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.ai-sidebar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.ai-sidebar-heading {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.95rem; /* ~15px */
  color: #1F1F1F;
  margin: 0 0 0.15rem;
}

.ai-sidebar-sub {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.48rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.3;
}

.ai-sidebar-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #888888;
}

.ai-sidebar-greeting-card {
  background: #F0F0F2;
  border-radius: 0.35rem;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.55rem;
}

.ai-sidebar-greeting-card p {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.46rem;
  line-height: 1.35;
  color: #333333;
  margin: 0;
}

.ai-sidebar-action-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.ai-action-pill {
  background: #FFFFFF;
  border: 0.5px solid #E4E4E4;
  border-radius: 2rem;
  padding: 0.22rem 0.45rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.42rem;
  color: #6A6A6A;
  cursor: pointer;
}

.ai-sidebar-try-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: auto;
}

.ai-try-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.ai-try-badge {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.46rem;
  color: #1F1F1F;
}

.ai-try-more {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.42rem;
  color: #999999;
  cursor: pointer;
}

.ai-try-suggestion-btn {
  background: #FFFFFF;
  border: 0.5px solid #E5E7EB;
  border-radius: 0.3rem;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.44rem;
  color: #374151;
  text-align: left;
  cursor: pointer;
}

.ai-sidebar-chat-box {
  background: #FFFFFF;
  border: 0.5px solid #E5E7EB;
  border-radius: 1.5rem;
  padding: 0.3rem 0.6rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.ai-sidebar-chat-input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.44rem;
  color: #111111;
  width: 80%;
}

.ai-sidebar-chat-input::placeholder {
  color: #9CA3AF;
}

.ai-chat-input-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.ai-chat-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Section 2: Project Budgeting (Figma Frame 27406: 1442 x 2168, #F6F6F7)
   -------------------------------------------------------------------------- */
.features-budgeting-section {
  width: 100%;
  background: #F6F6F7;
  padding: 2.625rem 0 5rem; /* matching Figma top: 42px */
}

.features-budgeting-container {
  width: 100%;
  max-width: 76.5rem; /* 1224px */
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-budgeting-header {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 2.125rem; /* 34px */
  line-height: 2.5625rem; /* 41px */
  color: #222324;
  margin: 0 0 3.875rem; /* matching Figma 42px header to 140px row 1 gap */
  text-align: center;
}

.budgeting-block-list {
  display: flex;
  flex-direction: column;
  gap: 5.5rem; /* clean spacing between 4 alternating sections */
  width: 100%;
}

.budgeting-block-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Row 1: gap 99px (6.1875rem) */
#budgetRow1 {
  gap: 6.1875rem;
}

/* Row 2: gap 124px (7.75rem) */
#budgetRow2 {
  gap: 7.75rem;
}

/* Row 3: gap 156px (9.75rem) */
#budgetRow3 {
  gap: 9.75rem;
}

/* Row 4: gap 87px (5.4375rem) */
#budgetRow4 {
  gap: 5.4375rem;
}

.budgeting-block-row.reverse {
  flex-direction: row-reverse;
}

.budgeting-card-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.budgeting-text-col {
  flex: 1;
  max-width: 26.5rem; /* ~424px */
  display: flex;
  flex-direction: column;
}

.budgeting-text-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  line-height: 1.75rem; /* 28px */
  color: #1F262D;
  margin: 0 0 1rem;
}

.budgeting-text-desc {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  line-height: 2rem; /* 32px */
  color: #323333;
  margin: 0;
}

/* ==========================================================================
   Shared Pill & Badge Styles across Mockups
   ========================================================================== */
.budget-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.51rem; /* ~8.1px */
  line-height: 1;
  color: #FFFFFF;
  border-radius: 2rem;
  padding: 0.11rem 0.36rem;
  white-space: nowrap;
}

.budget-badge-pill.pink { background: #E74865; }
.budget-badge-pill.blue { background: #3C83F6; }
.budget-badge-pill.dark { background: #3F3F3F; }
.budget-badge-pill.brown { background: #B27511; }
.budget-badge-pill.teal { background: #11B267; }
.budget-badge-pill.charcoal { background: #333333; }
.budget-badge-pill.magenta { background: #F72585; font-size: 0.76rem; padding: 0.14rem 0.48rem; }
.budget-badge-pill.maroon { background: #A4243B; font-size: 0.57rem; padding: 0.14rem 0.29rem; }

/* ==========================================================================
   Mockup Frame Wrapper
   ========================================================================== */
.budget-mockup-frame {
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 0.875rem; /* 14px */
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.budget-mockup-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Mockup 1: Notifications & Details Split (570px x 335px)
   ========================================================================== */
.budget-mockup-row1 {
  width: 35.625rem; /* 570px */
  height: 20.9375rem; /* 335px */
  overflow: hidden;
  border: 1px solid #EBEBEB;
}

.budget-notif-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* Notifications Left Pane: 252px (15.75rem) */
.budget-notif-pane {
  flex: 0 0 15.75rem;
  width: 15.75rem;
  height: 100%;
  background: #FFFFFF;
  border-right: 1.1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
}

.budget-notif-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.61rem 0.7rem;
  border-bottom: 1.1px solid #F0F0F0;
}

.budget-notif-title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.budget-notif-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.61rem; /* 9.8px */
  line-height: 1;
  color: #1C1C1E;
}

.budget-notif-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FEF1F3;
  color: #C8001E;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.44rem; /* 7px */
  line-height: 1;
  padding: 0.09rem 0.26rem;
  border-radius: 9999px;
}

.budget-notif-actions {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
}

.budget-notif-action-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem; /* 8px */
  line-height: 1;
}

.budget-notif-action-btn.red { color: #C8001E; font-weight: 500; }
.budget-notif-action-btn.grey { color: #9CA3AF; font-weight: 400; }

.budget-notif-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 0.7rem;
  border-bottom: 1.1px solid #F0F0F0;
  gap: 0.7rem;
}

.budget-notif-tab {
  background: none;
  border: none;
  padding: 0.44rem 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.525rem; /* 8.4px */
  color: #9CA3AF;
  text-transform: capitalize;
  cursor: pointer;
  border-bottom: 1.1px solid transparent;
}

.budget-notif-tab.is-active {
  color: #C8001E;
  border-bottom-color: #C8001E;
}

.budget-notif-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.budget-notif-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0.61rem 0.7rem;
  gap: 0.525rem;
  border-bottom: 1.1px solid #F9FAFB;
  position: relative;
  transition: background 0.2s ease;
  cursor: pointer;
}

.budget-notif-item:hover {
  background: #FAFAFA;
}

.budget-notif-item.is-highlighted {
  background: #FEF1F3;
}

.budget-notif-icon-circle {
  width: 1.57rem; /* 25.2px */
  height: 1.57rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.budget-notif-icon-circle.pink { background: #FFFFFF; }
.budget-notif-icon-circle.green { background: #ECFDF5; }
.budget-notif-icon-circle.yellow { background: #FEF9C3; }
.budget-notif-icon-circle.blue { background: #EFF6FF; }

.budget-notif-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.budget-notif-item-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.55rem; /* 8.8px */
  line-height: 1.2;
  color: #374151;
}

.budget-notif-item-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.5rem; /* 8px */
  line-height: 1.35;
  color: #6B7280;
  margin: 0.09rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-notif-item-time {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.46rem; /* 7.35px */
  color: #C0C4CC;
  margin-top: 0.15rem;
}

.budget-notif-unread-dot {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 0.35rem;
  height: 0.35rem;
  background: #C8001E;
  border-radius: 50%;
}

.budget-notif-footer {
  padding: 0.525rem 0.7rem;
  border-top: 1.1px solid #F0F0F0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.budget-notif-view-all {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.525rem;
  color: #9CA3AF;
  cursor: pointer;
  transition: color 0.2s ease;
}

.budget-notif-view-all:hover {
  color: #C8001E;
}

/* Details Right Pane: 316px */
.budget-details-pane {
  flex: 1;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
}

.budget-details-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.61rem 0.875rem;
  background: #FFFFFF;
  border-bottom: 1.1px solid #F0F0F0;
}

.budget-details-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.57rem; /* 9.1px */
  color: #1C1C1E;
}

.budget-details-close-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
}

.budget-details-content {
  flex: 1;
  background: #FFFFFF;
  padding: 0.7rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.budget-details-tracker-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.525rem;
}

.budget-details-tracker-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: #EFF6FF;
  border-radius: 0.525rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-details-tracker-info {
  display: flex;
  flex-direction: column;
}

.budget-details-tracker-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.59rem;
  color: #1C1C1E;
}

.budget-details-tracker-time {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.48rem;
  color: #C0C4CC;
}

.budget-details-bubble {
  background: #FFFFFF;
  border: 1.1px solid #F0F0F0;
  border-radius: 0.525rem;
  padding: 0.61rem;
}

.budget-details-bubble p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.55rem;
  line-height: 1.5;
  color: #374151;
  margin: 0;
}

.budget-details-footer {
  padding: 0.61rem 0.875rem;
  background: #FFFFFF;
  border-top: 1.1px solid #F0F0F0;
  display: flex;
  justify-content: flex-end;
}

.budget-details-go-btn {
  background: #C8001E;
  color: #FFFFFF;
  border: none;
  border-radius: 2rem;
  padding: 0.35rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.525rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.budget-details-go-btn:hover {
  background: #A60018;
  transform: translateY(-1px);
}

/* ==========================================================================
   Mockup 2: Budget Estimate Card (589px x 424px)
   ========================================================================== */
.budget-mockup-row2 {
  width: 36.8125rem; /* ~589px */
  height: 26.5rem; /* ~424px */
  border: 0.8px solid #FFFFFF;
  padding: 0.75rem 1.1rem 1.1rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.budget-estimate-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.budget-estimate-header {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.45rem;
}

.budget-estimate-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.92rem; /* 14.7px */
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

.budget-form-section {
  display: flex;
  flex-direction: column;
  margin-top: 0.45rem;
}

.budget-section-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0;
}

.budget-section-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem; /* 10.3px */
  color: #585F6C;
}

.budget-section-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.budget-section-divider {
  border-top: 0.8px solid #E5E7EB;
  margin: 0.25rem 0 0.45rem;
}

.budget-form-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.budget-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.budget-field-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
  color: rgba(0, 0, 0, 0.87);
}

.budget-radios {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.budget-radio-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.budget-radio-circle {
  width: 0.95rem; /* ~15px */
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid #757575;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-radio-item.is-checked .budget-radio-circle {
  border-color: #000000;
}

.budget-radio-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: #000000;
  border-radius: 50%;
}

.budget-radio-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
  color: #000000;
}

.budget-input-pill {
  background: #F3F3F3;
  border-radius: 1.3rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  min-height: 1.84rem;
  box-sizing: border-box;
}

.budget-input-pill.full {
  width: 17rem;
}

.budget-input-text {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
  color: #000000;
}

.budget-section-action-right {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.15rem;
}

.budget-link-action {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
}

.budget-link-action.red {
  color: #C62828;
}

.budget-rank-actions-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.budget-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.budget-checkbox-input {
  display: none;
}

.budget-checkbox-box {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.2px solid #CE0000;
  border-radius: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-checkbox-label.red {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
  color: #C62828;
}

.budget-estimation-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.budget-calc-btn {
  background: none;
  border: none;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.6rem;
  color: #CE0000;
  cursor: pointer;
}

.budget-estimation-hint {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.64rem;
  color: #6B7280;
  margin: 0.15rem 0 0;
}

.budget-estimate-footer {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
}

.budget-btn-cancel {
  background: none;
  border: none;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.64rem;
  color: #000000;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.budget-btn-use {
  background: #CE0000;
  color: #FFFFFF;
  border: none;
  border-radius: 1.3rem;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.64rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.budget-btn-use:hover {
  background: #A60000;
}

/* ==========================================================================
   Mockup 3: Plan Breakdown Card (589px x 397px)
   ========================================================================== */
.budget-mockup-row3 {
  width: 36.8125rem; /* ~589px */
  height: 24.8125rem; /* ~397px */
  padding: 0.65rem 0.95rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.budget-plan-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.budget-plan-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.45rem;
}

.budget-plan-header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.budget-plan-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.63rem;
  color: #000000;
}

.budget-plan-pill {
  background: #FFFFFF;
  border: 1px solid rgba(88, 95, 108, 0.2);
  border-radius: 4rem;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.55rem;
  color: rgba(88, 95, 108, 0.6);
}

.budget-plan-actuals {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.63rem;
  color: #000000;
  margin-left: 0.35rem;
}

.budget-plan-collapse-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.budget-plan-divider {
  border-top: 0.8px solid #D2D2D2;
  margin: 0 0 0.45rem;
}

.budget-plan-actions-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.budget-plan-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.63rem;
}

.budget-plan-link.grey { color: #8C8C8C; }
.budget-plan-link.red { color: #CE0000; }

.budget-plan-project-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.budget-plan-project-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.budget-project-name {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.63rem;
  color: #3F3F3F;
}

.budget-change-project-btn {
  background: none;
  border: none;
  padding: 0.15rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  border-radius: 4rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 0.63rem;
  color: rgba(120, 120, 120, 0.7);
}

.budget-plan-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.budget-plan-row,
.budget-plan-subrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #FFFFFF;
  box-shadow: 0 0 0.15rem rgba(0, 0, 0, 0.15);
  border-radius: 0.36rem;
  padding: 0.42rem 0.65rem;
  box-sizing: border-box;
}

.budget-plan-subrow {
  background: #FAFBFB;
  box-shadow: none;
  border: 1px solid #F0F0F0;
}

.budget-plan-row-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 10.5rem;
}

.budget-plan-row-left.indented {
  padding-left: 1rem;
}

.budget-caret-icon {
  flex-shrink: 0;
}

.budget-row-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.58rem;
  color: #3F3F3F;
}

.budget-row-subcount {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.51rem;
  color: #585F6C;
  margin-left: auto;
  padding-right: 0.5rem;
}

.budget-plan-progress-track {
  flex: 1;
  height: 0.18rem;
  background: #D2D2D2;
  border-radius: 0.3rem;
  position: relative;
  overflow: hidden;
  margin: 0 0.8rem;
}

.budget-progress-segment {
  position: absolute;
  top: 0;
  height: 100%;
}

.budget-progress-segment.blue { background: #3C83F6; left: 0; }
.budget-progress-segment.red { background: #CE0000; right: 0; }
.budget-progress-segment.green { background: #49A015; left: 0; }

.budget-status-pill {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.49rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.5rem;
  margin-right: 0.7rem;
}

.budget-status-pill.blue {
  background: #C9DEFF;
  color: #3C83F6;
}

.budget-status-pill.green {
  background: #D8F3DC;
  color: #49A015;
}

.budget-percent-pill {
  display: inline-flex;
  border-radius: 0.25rem;
  overflow: hidden;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 0.35rem;
  line-height: 1;
  margin-right: 0.5rem;
}

.percent-left {
  background: #C9DEFF;
  color: #3F3F3F;
  padding: 0.18rem 0.28rem;
}

.percent-right {
  padding: 0.18rem 0.28rem;
}

.percent-right.red { background: #CE0000; color: #FFFFFF; }
.percent-right.grey { background: #F3F3F3; color: #3F3F3F; }
.percent-right.green { background: #338701; color: #FFFFFF; }

.budget-row-dots {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.budget-plan-legend {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 300;
  font-size: 0.55rem;
  color: #000000;
}

.legend-dot {
  width: 0.55rem;
  height: 0.47rem;
  border-radius: 0.1rem;
}

.legend-dot.green { background: #22C55E; }
.legend-dot.blue { background: #2563EB; }
.legend-dot.grey { background: #6B7280; }
.legend-dot.yellow { background: #EAB308; }
.legend-dot.orange { background: #F97316; }
.legend-dot.bright-green { background: #22C55E; }
.legend-dot.red { background: #EF4444; }

/* ==========================================================================
   Mockup 4: Historical Data Card (631px x 318px)
   ========================================================================== */
.budget-mockup-row4 {
  width: 39.4375rem; /* ~631px */
  height: 19.875rem; /* ~318px */
  padding: 1rem 1.3rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.budget-historical-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.budget-historical-breadcrumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-size: 0.57rem;
  color: #585F6C;
}

.breadcrumb-item.active {
  color: #8C8C8C;
}

.breadcrumb-slash {
  color: #585F6C;
  font-size: 0.57rem;
}

.budget-historical-body {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex: 1;
}

.budget-historical-left {
  flex: 0 0 14rem;
  display: flex;
  flex-direction: column;
}

.budget-profile-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}

.budget-profile-name {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.95rem; /* ~15.2px */
  color: #3F3F3F;
}

.budget-warning-text {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.66rem;
  line-height: 1.35;
  color: #000000;
  margin: 0.45rem 0 0.85rem;
}

.budget-historical-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.budget-hist-acc-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F0F0F0;
  padding-top: 0.35rem;
  cursor: pointer;
}

.budget-hist-acc-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.66rem;
  color: #000000;
}

.budget-hist-client-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.budget-hist-client-name {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.66rem;
  color: #3F3F3F;
}

.budget-historical-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budget-hist-gauge-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.budget-donut-wrap {
  position: relative;
  width: 4.85rem;
  height: 4.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-donut-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.budget-donut-percent {
  position: absolute;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: #000000;
}

.budget-donut-label {
  position: absolute;
  bottom: -0.9rem;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.57rem;
  color: #000000;
  white-space: nowrap;
}

.budget-hist-hours-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.budget-hour-stat {
  display: flex;
  flex-direction: column;
}

.hour-val {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.1;
}

.hour-lbl {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.57rem;
  color: #000000;
}

.budget-hist-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 5.5rem;
}

.budget-hist-alert-pill span {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.48rem;
  line-height: 1.3;
  color: #000000;
}

.budget-hist-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.budget-metric-box {
  background: #EAE9E9;
  border-radius: 0.24rem;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 2.5rem;
  box-sizing: border-box;
}

.budget-metric-box.dark {
  background: #D1D0D0;
}

.metric-lbl {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.57rem;
  color: #000000;
}

.metric-val {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 0.85rem;
  color: #000000;
  align-self: flex-end;
}

.metric-val.text-right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   4. Section 3: Billing & Expense Management (Figma 1440 x 761, Frame: 619x419/446)
   -------------------------------------------------------------------------- */
.features-billing-container {
  align-items: flex-start;
}

.features-billing-screens-stack {
  position: relative;
  width: 100%;
  max-width: 38.6875rem; /* ~619px matching Figma 619px */
  min-height: 27.875rem; /* ~446px matching Figma 446px */
  margin-top: 4.9375rem; /* 79px: exactly levels top of card with the first horizontal divider line on the control list (diff = 0px) */
}

.features-billing-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: none;
}

.features-billing-screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Sample-data label under mocks that show money figures */
.mock-sample-caption {
  margin: 0.5rem 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #8A8A8A;
  text-align: right;
}

/* ==========================================================================
   State 0: Expense & Disbursement Tracking (Component 15)
   ========================================================================== */
.expense-figma-card {
  width: 100%;
  max-width: 38.6875rem; /* 619.02px / 16px */
  min-height: 27.875rem; /* 446px / 16px */
  background: #F4F3F3;
  border-radius: 1.2015rem; /* 19.2241px / 16px */
  padding: 1.5rem 1.9825rem 2rem; /* 24px top, 31.72px (1.9825rem) sides, 32px bottom */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0.5rem 1.5rem -0.25rem rgba(0, 0, 0, 0.04);
}

.expense-figma-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1.625rem; /* 26px */
}

.expense-figma-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1.5rem; /* 24px */
  color: #1A1A1A;
  margin: 0;
}

/* Date & Status Row (Figma: height 46.14px, gap 311.07px) */
.expense-figma-date-status-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.922rem; /* ~30.75px */
}

.expense-date-pill {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.961rem; /* 9.61px 15.38px */
  width: 12.856rem; /* 205.7px */
  height: 2.403rem; /* 38.45px */
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 0.721rem; /* 11.5345px */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.expense-date-text {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.841rem; /* 13.4569px */
  line-height: 1.125rem; /* 18px */
  color: #111111;
}

.expense-calendar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.961rem; /* 15.38px */
  height: 0.961rem;
}

.expense-calendar-icon svg {
  width: 100%;
  height: 100%;
}

.expense-status-pill {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.637rem 1.019rem; /* 10.19px 16.3px */
  width: 8.3125rem; /* 133px */
  height: 2.5625rem; /* 41px */
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 0.764rem; /* 12.2266px */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.8915rem; /* 14.2643px */
  line-height: 1.1875rem; /* 19px */
  color: #111111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* 3 Info Columns Row: Expense Amount, Expense Owner, Transaction Name */
.expense-figma-info-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.75rem; /* 28px */
}

.expense-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.expense-amount-col {
  width: 12.64rem; /* Exactly 202.28px from left to start of Owner col */
  flex-shrink: 0;
}

.expense-owner-col {
  width: 10.81rem; /* Exactly 173px to start of Transaction col */
  flex-shrink: 0;
}

.expense-transaction-col {
  flex: 1;
  min-width: 0;
}

.expense-info-label {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1.125rem; /* 18px */
  color: #585F6C;
  margin-bottom: 0.5rem; /* 8px */
}

.expense-info-val {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.3125rem; /* 21px */
  color: #3F3F3F;
}

.expense-owner-val {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4375rem; /* 7px */
}

.expense-owner-name {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  color: #3F3F3F;
}

/* Tag Pills */
.expense-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem; /* 24px */
  padding: 0 0.4375rem; /* ~7px */
  border-radius: 0.75rem; /* 12px */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1.25rem; /* 20px */
  color: #FFFFFF;
  white-space: nowrap;
}

.expense-tag-pill.green {
  background: #4CCA2D;
}

.expense-tag-pill.purple {
  background: #33036F;
}

/* Allocation Details Section */
.expense-figma-allocation-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.expense-allocation-heading {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  color: #585F6C;
  margin-bottom: 0.75rem; /* 12px */
}

.expense-allocation-table-wrap {
  width: 100%;
  background: #F9F9F9;
  border: 1.06667px solid #FFFFFF;
  border-radius: 0.625rem; /* 10px */
  box-sizing: border-box;
  overflow: hidden;
}

.expense-allocation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.expense-allocation-table thead th {
  padding: 0.5rem 1rem; /* 8px 16px */
  height: 2.158rem; /* 34.53px */
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
  line-height: 1.125rem; /* 18px */
  color: #3F3F3F;
  border-bottom: 1.06667px solid rgba(0, 0, 0, 0.12);
}

.expense-allocation-table tbody td {
  padding: 0.5rem 1rem; /* 8px 16px */
  height: 2.533rem; /* 40.53px */
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.3125rem; /* 21px */
  color: rgba(0, 0, 0, 0.87);
  vertical-align: middle;
}

.expense-allocation-table th:nth-child(1),
.expense-allocation-table td:nth-child(1) {
  width: 28%;
}

.expense-allocation-table th:nth-child(2),
.expense-allocation-table td:nth-child(2) {
  width: 37%;
}

.expense-allocation-table th:nth-child(3),
.expense-allocation-table td:nth-child(3) {
  width: 18%;
}

.expense-allocation-table th:nth-child(4),
.expense-allocation-table td:nth-child(4) {
  width: 17%;
}

.expense-cell-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4375rem; /* 7px */
}

.expense-cell-text {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  color: #3F3F3F;
  white-space: nowrap;
}

.expense-cell-amount,
.expense-cell-status {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.3125rem; /* 21px */
  color: rgba(0, 0, 0, 0.87);
  white-space: nowrap;
}

/* Card Main Container Frame (Figma: width 619px, background #F3F2F3, border-radius 16px/21px) */
.billing-card-frame {
  width: 100%;
  background: #F3F2F3;
  border-radius: 1.0625rem; /* 17px / ~16-21px */
  padding: 1.75rem; /* 28px matching Figma left/right/top: 28px */
  box-sizing: border-box;
  box-shadow: 0 0.5rem 1.5rem -0.25rem rgba(0, 0, 0, 0.05);
}

.billing-card-frame.invoice-frame {
  border-radius: 1.3125rem; /* 21px matching Figma */
  padding: 1.75rem 1.5rem 1.5rem; /* 28px 24px 24px matching Figma */
}

.billing-card-frame.collection-frame {
  border-radius: 1.3125rem; /* 21px matching Figma Frame 27240 */
  padding: 1.75rem 1.5rem 1.3125rem; /* 28px top, 24px left/right, 21px bottom */
  min-height: 27.875rem; /* 446px */
  box-sizing: border-box;
}

/* Header bar (Pre-Bill #384154, Status badge, Action button) */
.billing-card-top-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.875rem;
}

.billing-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem; /* 10px */
}

.billing-card-main-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1.5rem; /* 24px */
  color: #1A1A1A;
  margin: 0;
}

.billing-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem; /* 4px 10px */
  background: #FFFFFF;
  border-radius: 0.375rem; /* 6px */
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.6875rem; /* 11px */
  line-height: 0.8125rem; /* 13px */
  color: #555555;
}

.billing-status-badge.recorded {
  color: #15803D;
  background: #E8F5E9;
}

.billing-action-btn-white {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.375rem; /* 6px */
  background: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 0.5rem; /* 8px */
  padding: 0.4375rem 0.875rem; /* 7px 14px */
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem; /* 12px */
  line-height: 0.9375rem; /* 15px */
  color: #1A1A1A;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.billing-action-btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
}

/* Metadata sub-bar (Client, Matter, Invoice Date) */
.billing-card-meta-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 0.9375rem; /* 15px */
  margin-bottom: 0.75rem;
  border-bottom: 0.5px solid rgba(210, 210, 210, 0.66);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* 12px */
  line-height: 0.9375rem; /* 15px */
}

.meta-label {
  color: #888888;
  font-weight: 400;
  margin-right: 0.5rem; /* 8px */
}

.meta-value {
  color: #1A1A1A;
  font-weight: 600;
}

.meta-divider {
  display: inline-block;
  width: 1px;
  height: 0.875rem; /* 14px */
  background: #DDDDDD;
  margin: 0 1rem; /* 16px */
}

/* Table Column Header Row */
.billing-table-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.75rem 0; /* 12px */
  border-bottom: 0.6px solid rgba(210, 210, 210, 0.66);
}

.th-cell {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.625rem; /* 10px */
  line-height: 0.75rem; /* 12px */
  letter-spacing: 0.0375rem; /* 0.6px */
  text-transform: uppercase;
  color: #888888;
}

.th-check, .td-check { width: 2rem; flex-shrink: 0; display: flex; align-items: center; }
.th-date, .td-date { width: 5.625rem; flex-shrink: 0; }
.th-desc, .td-desc { flex: 1; min-width: 0; }
.th-category, .td-category { width: 5.5rem; text-align: left; }
.th-hours, .td-hours { width: 3.75rem; text-align: right; }
.th-rate, .td-rate { width: 4.375rem; text-align: right; }
.th-amount, .td-amount { width: 4.5rem; text-align: right; }
.th-status, .td-status { width: 2rem; display: flex; justify-content: flex-end; align-items: center; flex-shrink: 0; }

/* Table Body Rows */
.billing-table-body {
  display: flex;
  flex-direction: column;
}

.billing-table-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.8125rem 0; /* 13px */
  border-bottom: 0.6px solid rgba(210, 210, 210, 0.66);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* 12px */
  line-height: 0.9375rem; /* 15px */
  color: #444444;
  transition: background 0.25s ease;
}

.billing-table-row.is-editing {
  background: #FFF5F5;
  border: 0.5px solid rgba(210, 210, 210, 0.66);
  border-radius: 0.5rem; /* 8px */
  padding: 0.75rem 0.625rem;
  margin: 0.25rem 0;
}

.billing-check-box-square {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #787878;
  border-radius: 0.25rem;
  display: inline-block;
}

.billing-checkbox-box {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-checkbox-box.checked {
  background: #22C55E;
}

.billing-checkbox-box.checked.red {
  background: #DC2626;
}

.td-desc {
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pencil-icon {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pencil-icon:hover {
  transform: scale(1.15);
}

.td-amount.bold {
  font-weight: 500;
  color: #1A1A1A;
}

.billing-edit-input-pill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid #DC2626;
  border-radius: 0.3125rem; /* 5px */
  color: #1A1A1A;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.billing-tag-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.65rem;
  font-weight: 500;
}

.billing-tag-pill.green { background: #E8F5E9; color: #2E7D32; }
.billing-tag-pill.purple { background: #F3E8FF; color: #7E22CE; }

.billing-circle-status {
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-circle-status.success {
  background: #22C55E;
}

.billing-circle-status.pending {
  background: #E5E7EB;
}

/* Footer Toolbar */
.billing-card-footer-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.125rem; /* 18px */
  margin-top: 0.25rem;
}

.billing-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border-radius: 1.25rem; /* 20px */
  padding: 0.5rem 0.75rem; /* 8px 12px */
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* 12px */
  line-height: 0.9375rem;
  color: #555555;
}

.billing-verified-badge-icon {
  width: 1.125rem; /* 18px */
  height: 1.125rem;
  border-radius: 50%;
  background: #6B7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-footer-right-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem; /* 16px */
}

.billing-total-callout {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.375rem; /* 6px */
}

.total-caption {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem; /* 13px */
  line-height: 1rem;
  color: #888888;
}

.total-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
  line-height: 1.6875rem; /* 27px */
  color: #1A1A1A;
}

.billing-btn-generate {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  background: #DC2626;
  border: none;
  border-radius: 0.625rem; /* 10px */
  padding: 0.75rem 1.25rem; /* 12px 20px */
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem; /* 13px */
  line-height: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.billing-btn-generate:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

/* ==========================================================================
   Screen 2: Invoicing (Figma Property 1=part 7)
   ========================================================================== */
.invoice-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.25rem;
}

.invoice-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.invoice-main-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1.625rem; /* 26px */
  color: #111111;
  margin: 0;
}

.invoice-due-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.0625rem;
  color: #999999;
}

.invoice-paid-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem; /* 5px */
  background: #E8F5E9;
  border-radius: 62.4rem; /* 999px */
  padding: 0.375rem 0.875rem; /* 6px 14px */
}

.invoice-paid-dot {
  width: 0.4375rem; /* 7px */
  height: 0.4375rem;
  border-radius: 50%;
  background: #4CAF50;
}

.invoice-paid-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem;
  color: #388E3C;
}

.invoice-tabs-pill-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #EBEBEB;
  border-radius: 62.4rem; /* 999px */
  padding: 0.25rem; /* 4px */
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.invoice-tab-pill {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem; /* 8px 20px */
  border-radius: 62.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.0625rem;
  font-weight: 500;
  color: #888888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invoice-tab-pill.is-active {
  background: #111111;
  color: #FFFFFF;
  font-weight: 600;
}

.invoice-items-card {
  background: #FFFFFF;
  border-radius: 1rem; /* 16px */
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.invoice-line-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem; /* 14px 16px */
}

.invoice-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem; /* 3px */
}

.item-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem;
  color: #111111;
}

.item-rate {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem;
  color: #AAAAAA;
}

.item-total {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem;
  color: #111111;
}

.invoice-line-divider {
  width: 100%;
  height: 1px;
  background: #F0F0F0;
}

.invoice-bottom-summary-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border-radius: 1rem; /* 16px */
  padding: 1rem; /* 16px */
  height: 4rem; /* 64px */
}

.invoice-total-block {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.total-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem;
  color: #AAAAAA;
}

.total-value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
  line-height: 1.8125rem; /* 29px */
  color: #111111;
}

.invoice-btn-receipt {
  background: #E80000;
  color: #FFFFFF;
  border: none;
  border-radius: 62.4rem; /* 999px */
  padding: 0.75rem 1.5rem; /* 12px 24px */
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.invoice-btn-receipt:hover {
  background: #C80000;
  transform: translateY(-1px);
}

/* ==========================================================================
   Screen 3: Payment Collection (Figma Property 1=part 8)
   ========================================================================== */
.collection-header-row {
  height: 1.625rem; /* 26px */
  margin-bottom: 0.5rem; /* 8px: top 28px -> 62px */
  display: flex;
  align-items: center;
}

.collection-main-title {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1.625rem; /* 26px */
  color: #111111;
  margin: 0;
}

/* Middle 2-card grid: 371px + 190px, gap 10px (total 571px) */
.collection-middle-grid {
  display: grid;
  grid-template-columns: 23.1875rem 11.875rem; /* 371px and 190px */
  gap: 0.625rem; /* 10px */
  height: 12rem; /* 192px */
  margin-bottom: 1rem; /* 16px: top 62px + 192px = 254px -> top 270px */
}

/* Left Card: Frame 27416 (371px x 192px) */
.collection-balance-card {
  background: #FFFFFF;
  border-radius: 0.875rem; /* 14px */
  padding: 1.3125rem 0.8125rem 0.8125rem; /* 21px top, 13px left/right, 13px bottom */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.balance-title {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem; /* 18px */
  color: #000000;
  margin: 0 0 0.25rem 0; /* 4px */
}

.balance-number {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.8386rem; /* 29.4186px */
  line-height: 2.375rem; /* 38px */
  color: #111111;
  margin: 0 0 0.25rem 0; /* 4px */
}

.balance-sub {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  color: #585F6C;
  margin: 0 0 0.5rem 0; /* 8px */
}

/* Multi-segment Progress Bar: Frame 27419 (336px x 12px) */
.collection-aging-track {
  width: 100%;
  height: 0.75rem; /* 12px */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.75rem; /* 12px */
}

.aging-segment {
  height: 100%;
}

.aging-segment.seg-current {
  flex: 126; /* 126px */
  background: #EBECEE;
  border-radius: 999px 0 0 999px;
}

.aging-segment.seg-30 {
  flex: 93; /* 93px */
  background: #D4D7DA;
}

.aging-segment.seg-60 {
  flex: 68; /* 68px */
  background: #B6BAC1;
}

.aging-segment.seg-90 {
  flex: 43; /* 43px */
  background: #F9CCCE;
  border-radius: 0 999px 999px 0;
}

/* 4 Metric Columns: Frame 27420 (349px x 48px, gap 25px) */
.collection-aging-columns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5625rem; /* 25px */
  height: 3rem; /* 48px */
}

.aging-col {
  width: 4.375rem; /* 70px */
  height: 3rem; /* 48px */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1875rem; /* 3px */
  border-right: 1px solid rgba(156, 163, 175, 0.26);
}

.aging-col.last {
  border-right: none;
}

.aging-label {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.625rem; /* 10px */
  line-height: 0.8125rem; /* 13px */
  color: #585F6C;
  margin: 0;
}

.aging-val {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  color: #111111;
  margin: 0;
}

.aging-pct {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.625rem; /* 10px */
  line-height: 0.8125rem; /* 13px */
  color: #AAAAAA;
  margin: 0;
}

/* Right Card: Frame 27417 (190px x 192px) */
.collection-progress-card {
  background: #FFFFFF;
  border-radius: 0.875rem; /* 14px */
  padding: 1.0625rem 0.75rem 0.875rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  height: 100%;
}

.progress-title {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem; /* 18px */
  color: #000000;
  margin: 0;
}

.collection-donut-wrap {
  position: relative;
  width: 6.25rem; /* 100px */
  height: 6.25rem; /* 100px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-donut-svg {
  width: 100%;
  height: 100%;
}

.collection-donut-text {
  position: absolute;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.625rem; /* 26px */
  line-height: 2.125rem; /* 34px */
  color: #111111;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.progress-footer-sub {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  color: #585F6C;
  margin: 0;
}

/* Bottom Card: Frame 27418 (571px x 155px, left: 24px, top: 270px) */
.collection-queue-card {
  position: relative;
  width: 100%;
  height: 9.6875rem; /* 155px */
  background: #FFFFFF;
  border-radius: 0.875rem; /* 14px */
  box-sizing: border-box;
}

/* Left: Frame 27422 (320px x 109px, left: 14px, top: 18px, gap 11px) */
.collection-clients-list {
  position: absolute;
  left: 0.875rem; /* 14px */
  top: 1.125rem; /* 18px */
  width: 20rem; /* 320px */
  height: 6.8125rem; /* 109px */
  display: flex;
  flex-direction: column;
  gap: 0.6875rem; /* 11px */
}

.client-queue-row {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 20rem; /* 320px */
  height: 1.8125rem; /* 29px */
  border-bottom: 0.6px solid rgba(156, 163, 175, 0.26);
}

.client-queue-row.row-1 {
  gap: 1.9375rem; /* 31px matching Figma Frame */
}

.client-queue-row.row-2 {
  gap: 2.375rem; /* 38px matching Figma Frame */
}

.client-queue-row.row-3 {
  gap: 1.5rem; /* 24px matching Figma Frame */
  border-bottom: none;
}

.client-name-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.875rem; /* 14px matching Figma Frame 27421 */
  flex-shrink: 0;
}

.client-name-group.group-1 {
  width: 5.9375rem; /* 95px matching Figma Frame 27421 */
}

.client-name-group.group-2 {
  width: 5.5625rem; /* 89px matching Figma Frame 27421 */
}

.client-name-group.group-3 {
  width: 6.4375rem; /* 103px matching Figma Frame 27421 */
}

.client-dot {
  width: 0.4375rem; /* 7px */
  height: 0.4375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.client-dot.red { background: #CD0409; }
.client-dot.grey { background: #D9D9D9; }
.client-dot.green { background: #00843C; }

.client-name {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  color: #111111;
  white-space: nowrap;
}

.client-amount {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  color: #787878;
  white-space: nowrap;
}

/* Right Action Button: Frame (left: 342px, top: 53px, width: 218px, height: 30px / 40px) */
.collection-btn-queue {
  position: absolute;
  left: 21.375rem; /* 342px matching Figma Frame */
  top: 3.3125rem; /* 53px matching Figma Frame */
  width: 13.625rem; /* 218px matching Figma Frame */
  height: 2.5rem; /* 40px */
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.625rem; /* 10px */
  background: #E80000;
  color: #FFFFFF;
  border: none;
  border-radius: 62.4rem; /* 999px */
  padding: 0.75rem 0.875rem 0.75rem 1.5rem; /* 12px 14px 12px 24px matching Figma */
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  line-height: 1.125rem; /* 18px */
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.collection-btn-queue:hover {
  background: #C80000;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Section 4: Operational Visibility & AI Insights (HTML & CSS Animated)
   -------------------------------------------------------------------------- */
.features-op-container {
  align-items: flex-start;
}

.features-op-screens-stack {
  position: relative;
  width: 100%;
  max-width: 39.5rem; /* 632px */
  min-height: 25.5rem; /* 408px */
  margin-top: 4.9375rem; /* 79px: heading (41px) + 38px gap — levels the card top with the first divider line (diff = 0px) */
}

.features-op-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: none;
}

.features-op-screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Screen 1: Dashboard Compact ── */
.screen-dashboard-compact {
  background: #FFFFFF;
  border: 0.8px solid #E5E7EB;
  box-shadow: 0 0.38rem 1.14rem -0.38rem rgba(0, 0, 0, 0.08);
  border-radius: 0.57rem; /* 9.15px */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-header-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.76rem;
  height: 2.67rem;
  border-bottom: 0.76px solid #E5E7EB;
  background: #FFFFFF;
}

.dashboard-header-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.86rem; /* 13.73px */
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.57rem;
}

.dashboard-search-input {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  background: #F3F3F3;
  border-radius: 0.76rem;
  padding: 0.25rem 0.57rem;
  font-size: 0.62rem;
  color: #6B7280;
}

.dashboard-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  background: #F3F3F3;
  border-radius: 0.76rem;
  padding: 0.25rem 0.57rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: #3F3F3F;
}

.dashboard-content-body {
  padding: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.57rem;
}

.dashboard-logged-summary {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  background: #F9F9F9;
  border-radius: 0.57rem;
  padding: 0.57rem;
}

.dashboard-summary-left {
  display: flex;
  flex-direction: column;
  gap: 0.19rem;
}

.dashboard-summary-label {
  font-size: 0.67rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-summary-val {
  font-size: 1.33rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.19rem;
}

.dashboard-period-label {
  font-size: 0.57rem;
  font-weight: 500;
  color: #6B7280;
}

.dashboard-period-pills {
  display: flex;
  gap: 0.38rem;
}

.dashboard-period-pill {
  background: #EAE9E9;
  border-radius: 0.28rem;
  padding: 0.19rem 0.38rem;
  font-size: 0.57rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-metrics-grid {
  display: flex;
  gap: 0.38rem;
  width: 100%;
}

.dashboard-metric-col {
  flex: 1;
  background: #F9F9F9;
  border-radius: 0.48rem;
  padding: 0.57rem;
  display: flex;
  flex-direction: column;
  gap: 0.19rem;
}

.dashboard-metric-title {
  font-size: 0.57rem;
  font-weight: 500;
  color: #6B7280;
}

.dashboard-metric-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
}

/* Fixed-width digits so the live counters never jitter horizontally */
.dashboard-summary-val,
.dashboard-metric-number {
  font-variant-numeric: tabular-nums;
}

.dashboard-progress-card {
  background: #F9F9F9;
  border-radius: 0.57rem;
  padding: 0.57rem;
  display: flex;
  flex-direction: column;
  gap: 0.57rem;
}

.dashboard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-progress-title {
  font-size: 0.67rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-progress-percent {
  font-size: 0.57rem;
  color: #6B7280;
}

.dashboard-progress-track {
  width: 100%;
  height: 0.38rem;
  background: #EAE9E9;
  border-radius: 0.19rem;
  overflow: hidden;
}

.dashboard-progress-fill {
  width: 38.8%;
  height: 100%;
  background: #000000;
  border-radius: 0.19rem;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-progress-caption {
  font-size: 0.57rem;
  color: #6B7280;
}

.dashboard-recent-hours-card {
  background: #F9F9F9;
  border-radius: 0.57rem;
  padding: 0.57rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.dashboard-recent-title {
  font-size: 0.67rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
}

.dashboard-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(0, 0, 0, 0.87);
}

.dashboard-status-dot {
  width: 0.38rem;
  height: 0.38rem;
  background: #C62828;
  border-radius: 50%;
}

.dashboard-synced-text {
  color: #6B7280;
}

/* ── Screen 2: AI Compact Biller (Structured Financial Reports) ── */
.screen-ai-compact-biller {
  background: #FFFFFF;
  border: 0.81px solid #E5E7EB;
  box-shadow: 0 0.4rem 1.19rem -0.4rem rgba(0, 0, 0, 0.08);
  border-radius: 0.59rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.biller-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.79rem;
  height: 2.77rem;
  border-bottom: 0.79px solid #E5E7EB;
  background: #FFFFFF;
}

.biller-brand-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.89rem;
  color: #1C1C1E;
}

.biller-content-body {
  padding: 0.59rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.biller-summary-card {
  background: #F9FAFB;
  border: 0.79px solid #E5E7EB;
  border-radius: 0.59rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.biller-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.biller-identity-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.biller-badge {
  background: #7F11B2;
  color: #FFFFFF;
  font-size: 0.79rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
}

.biller-name {
  font-size: 0.99rem;
  color: #3F3F3F;
}

.biller-metrics-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.biller-metric-tile {
  flex: 1;
  background: #FFFFFF;
  border: 0.79px solid #E5E7EB;
  border-radius: 0.59rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.biller-tile-label {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.biller-tile-val {
  font-size: 0.89rem;
  font-weight: 600;
  color: #1C1C1E;
}

.biller-utilization-card {
  background: #FFFFFF;
  border: 0.79px solid #E5E7EB;
  border-radius: 0.59rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.biller-util-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.biller-util-title {
  font-size: 0.69rem;
  font-weight: 600;
  color: #1C1C1E;
}

.biller-util-rate {
  font-size: 0.69rem;
  font-weight: 600;
  color: #1C1C1E;
}

.biller-util-desc {
  font-size: 0.69rem;
  color: #3F3F3F;
}

.biller-util-sub {
  font-size: 0.59rem;
  color: #6B7280;
}

.biller-status-card {
  background: #F9FAFB;
  border: 0.79px solid #E5E7EB;
  border-radius: 0.59rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.biller-status-title {
  font-size: 0.69rem;
  font-weight: 600;
  color: #1C1C1E;
}

.biller-status-grid {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.biller-status-grid.two-cols .biller-metric-tile {
  flex: 1;
}

/* ── Screen 3: AI Compact (Aprotime AI Assistant) ── */
.screen-ai-compact {
  background: #FFFFFF;
  border: 0.82px solid #E5E7EB;
  box-shadow: 0 0.4rem 1.2rem -0.4rem rgba(0, 0, 0, 0.08);
  border-radius: 0.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.8rem;
  height: 2.81rem;
  border-bottom: 0.8px solid #E5E7EB;
  background: #FFFFFF;
}

.ai-brand-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: #1C1C1E;
}

.ai-content-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-greeting-card {
  background: #F9FAFB;
  border: 0.8px solid #E5E7EB;
  border-radius: 0.6rem;
  padding: 0.5rem;
}

.ai-greeting-text {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: #1C1C1E;
}

.ai-suggestions-card {
  background: #F9FAFB;
  border: 0.8px solid #E5E7EB;
  border-radius: 0.6rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-suggestions-caption {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.ai-suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.ai-suggestion-card {
  background: #FFFFFF;
  border: 0.8px solid #E5E7EB;
  border-radius: 0.6rem;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ai-suggestion-card:hover {
  transform: translateY(-2px);
  border-color: #CE0000;
}

.ai-suggestion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-suggestion-icon-wrap {
  width: 1.4rem;
  height: 1.4rem;
  background: #FEF1F3;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-suggestion-icon-wrap svg {
  width: 0.7rem;
  height: 0.7rem;
}

.ai-suggestion-arrow {
  font-size: 0.6rem;
  color: #D1D5DB;
}

.ai-suggestion-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: #1C1C1E;
}

.ai-suggestion-desc {
  font-size: 0.6rem;
  color: #6B7280;
}

.ai-composer-card {
  background: #F9FAFB;
  border: 0.8px solid #E5E7EB;
  border-radius: 0.6rem;
  padding: 0.4rem;
}

.ai-prompt-composer {
  background: #F9FAFB;
  border: 0.8px solid #E5E3E8;
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ai-composer-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-composer-placeholder {
  font-size: 0.68rem;
  color: #B0B7C3;
  flex: 1;
}

.ai-composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-composer-tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ai-composer-tool-btn {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
}

.btn-ai-ask {
  background: #CE0000;
  color: #FFFFFF;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Section 5: Advanced Security, Compliance & Infrastructure (4 Cards)
   -------------------------------------------------------------------------- */
.features-security-section {
  width: 100%;
  padding: 5rem 0 5.5rem;
  background: #FFFFFF;
}

.features-security-container {
  width: 100%;
  max-width: 77rem; /* 1232px */
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-security-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 2.125rem; /* 34px */
  line-height: 1.25;
  color: #222324;
  margin: 0 0 3.5rem;
  text-align: center;
  max-width: 32rem;
}

.security-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.security-flip-card {
  position: relative;
  height: 18.0625rem; /* 289px matching Figma */
  width: 100%;
  cursor: pointer;
  outline: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.security-flip-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.security-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
}

.security-flip-card:focus-visible {
  outline: 2px solid #CE0000;
  outline-offset: 3px;
  border-radius: 12px;
}

.security-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(88, 95, 108, 0.17);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Front Side */
.security-card-front {
  background: #F6F6F7;
  padding: 2.5rem 1.5rem;
  gap: 1.5rem;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.security-card-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #323333;
}

.security-card-icon-wrap svg {
  width: 2.25rem;
  height: 2.25rem;
}

.security-card-label {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.375; /* 22px */
  color: #323333;
  margin: 0;
  max-width: 13rem;
  text-align: center;
}

/* Back Side - Fades in on hover */
.security-card-back {
  background: #000000;
  color: #FFFFFF;
  padding: 2rem 1.25rem;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.security-flip-card:hover .security-card-front,
.security-flip-card:focus-visible .security-card-front,
.security-flip-card.is-flipped .security-card-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.security-flip-card:hover .security-card-back,
.security-flip-card:focus-visible .security-card-back,
.security-flip-card.is-flipped .security-card-back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.security-card-back-text {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.625rem; /* 26px matching Figma */
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  max-width: 14.5rem;
}

/* --------------------------------------------------------------------------
   7. Section 6: Transform Your Time Tracking Today (Dark CTA Banner)
   -------------------------------------------------------------------------- */
.features-cta-banner-section {
  width: 100%;
  background: #000000;
  padding: 5rem 0 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.features-cta-container {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-cta-title {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 2.25rem; /* 36px */
  line-height: 1.33;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 1.25rem;
}

.features-cta-subtitle {
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 1.5rem; /* 24px */
  line-height: 1.8;
  color: #FFFFFF;
  margin: 0 0 2.5rem;
  max-width: 48rem;
}

.features-cta-btn-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .features-hero-section {
    padding: 2.5rem 0 3rem;
  }

  .features-two-col-section {
    padding: 2.5rem 0 3rem;
  }

  .features-budgeting-section {
    padding: 3rem 0 3.5rem;
  }

  .features-security-section {
    padding: 3rem 0 3.5rem;
  }

  .features-cta-banner-section {
    padding: 3.5rem 0 4rem;
  }

  .features-hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .features-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .features-col-headline {
    font-size: 1.45rem;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .features-accordion-title {
    font-size: 1.2rem;
  }

  .features-two-col-container,
  .features-two-col-container.reverse {
    flex-direction: column;
    gap: 2.5rem;
  }

  .features-col-content {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }

  .features-col-card-wrap {
    width: 100%;
  }

  .features-timer-card {
    padding: 1.25rem;
  }

  .features-tracking-screens-stack,
  .features-billing-screens-stack,
  .features-op-screens-stack {
    max-width: 100%;
    min-height: auto;
    margin-top: 0;
  }

  .features-tracking-card-inner {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .ai-split-layout {
    flex-direction: column;
  }

  .ai-form-pane {
    border-right: none;
    border-bottom: 1px solid #E4E4E4;
    padding: 1rem;
  }

  .ai-sidebar-pane {
    padding: 1rem;
  }

  .passive-activity-row {
    padding: 0.5rem;
    gap: 0.4rem;
  }

  .manual-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .timer-digits {
    font-size: 2rem;
  }

  .budgeting-block-row,
  .budgeting-block-row.reverse {
    flex-direction: column;
    gap: 2.5rem;
  }

  .budgeting-card-col {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }

  .budgeting-text-col {
    max-width: 100%;
  }

  /* Mockup Frame General Mobile Reset */
  .budget-mockup-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* Mockup 1: Notifications & Details Split */
  .budget-mockup-row1 {
    width: 100% !important;
    height: auto !important;
  }

  .budget-notif-card {
    flex-direction: column;
    height: auto;
  }

  .budget-notif-pane {
    width: 100% !important;
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1.1px solid #F0F0F0;
  }

  .budget-details-pane {
    width: 100%;
  }

  /* Mockup 2: Budget Estimate Card */
  .budget-mockup-row2 {
    width: 100% !important;
    height: auto !important;
    padding: 0.85rem;
  }

  .budget-form-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .budget-input-pill.full {
    width: 100% !important;
    max-width: 100%;
  }

  .budget-estimate-footer {
    padding-top: 0.85rem;
  }

  /* Mockup 3: Plan Breakdown Card */
  .budget-mockup-row3 {
    width: 100% !important;
    height: auto !important;
    padding: 0.75rem;
  }

  .budget-plan-row,
  .budget-plan-subrow {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .budget-plan-row-left {
    flex: 1 1 100%;
  }

  .budget-plan-progress-track {
    margin: 0;
    flex: 1 1 50%;
  }

  .budget-plan-legend {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Mockup 4: Historical Data Card */
  .budget-mockup-row4 {
    width: 100% !important;
    height: auto !important;
    padding: 0.85rem;
  }

  .budget-historical-body {
    flex-direction: column;
    gap: 1rem;
  }

  .budget-historical-left {
    flex: 1 1 auto;
    width: 100%;
  }

  .budget-historical-right {
    width: 100%;
  }

  .budget-hist-gauge-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .budget-hist-alert-pill {
    max-width: 100%;
  }

  .budget-hist-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  /* Section 3: Billing & Expense Management Mockups */
  .features-billing-screens-stack {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
  }

  .billing-card-frame {
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .billing-card-top-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .billing-card-meta-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .meta-divider {
    display: none;
  }

  .billing-table-header-row {
    display: none; /* Hide multi-column table header on small mobile screens */
  }

  .billing-table-row {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 0;
  }

  .td-desc {
    flex: 1 1 100%;
  }

  .th-date, .td-date { width: auto; font-size: 0.7rem; }
  .th-category, .td-category { width: auto; }
  .th-hours, .td-hours { width: auto; font-size: 0.7rem; }
  .th-rate, .td-rate { width: auto; font-size: 0.7rem; }
  .th-amount, .td-amount { width: auto; margin-left: auto; }

  .billing-card-footer-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .billing-footer-right-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .billing-btn-generate {
    width: 100%;
    justify-content: center;
  }

  /* State 0: Component 15 Expense Tracking Card Mobile */
  .expense-figma-card {
    padding: 1.25rem 1rem !important;
    border-radius: 1rem !important;
    min-height: auto !important;
    height: auto !important;
  }

  .expense-figma-header {
    margin-bottom: 1.125rem;
  }

  .expense-figma-date-status-row {
    margin-bottom: 1.25rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .expense-date-pill {
    width: auto !important;
    flex: 1;
    min-width: 0 !important;
    height: 2.25rem;
    padding: 0.4rem 0.625rem;
  }

  .expense-date-text {
    font-size: 0.75rem;
  }

  .expense-status-pill {
    width: auto !important;
    flex-shrink: 0;
    height: 2.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  .expense-figma-info-row {
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .expense-amount-col {
    width: auto !important;
    min-width: 42%;
  }

  .expense-owner-col {
    width: auto !important;
    min-width: 50%;
  }

  .expense-transaction-col {
    width: 100% !important;
    min-width: 100%;
  }

  .expense-allocation-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .expense-allocation-table {
    min-width: 26rem;
  }

  /* Screen 2: Invoicing */
  .invoice-bottom-summary-card {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .invoice-btn-receipt {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Screen 3: Payment Collection */
  .billing-card-frame.collection-frame {
    padding: 1.25rem 1rem !important;
    min-height: auto !important;
    height: auto !important;
  }

  .collection-middle-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 0.75rem;
  }

  .collection-balance-card {
    height: auto !important;
    padding: 1rem 0.875rem !important;
  }

  .collection-aging-columns {
    gap: 0.5rem;
  }

  .aging-col {
    width: auto !important;
    flex: 1;
    padding-right: 0.35rem;
  }

  .collection-progress-card {
    height: auto !important;
    padding: 1rem 0.75rem !important;
  }

  .collection-queue-card {
    position: static !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1rem 0.875rem !important;
  }

  .collection-clients-list {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .client-queue-row {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .client-name-group {
    width: auto !important;
  }

  .collection-btn-queue {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Section 4: Operational Visibility Mockups */
  .features-op-screens-stack {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
  }

  .dashboard-metrics-grid {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .dashboard-metric-col {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .biller-metrics-row,
  .biller-status-grid {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .biller-metric-tile {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .security-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .features-cta-title {
    font-size: 1.875rem;
  }

  .features-cta-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .features-hero-cta-group,
  .features-cta-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-features-primary,
  .btn-features-secondary {
    width: 100%;
    max-width: 18rem;
  }
}

@media (max-width: 480px) {
  .security-cards-grid {
    grid-template-columns: 1fr;
  }

  .ai-suggestions-grid {
    grid-template-columns: 1fr;
  }

  .budget-hist-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem;
  }

  .dashboard-metric-col {
    flex: 1 1 100%;
  }

  .biller-metric-tile {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Non-Interactive Illustration Lock
   Prevent user hover, click, selection, and cursor feedback on preview mockups
   ========================================================================== */
.features-col-card-wrap,
.budgeting-card-col,
.features-op-screens-stack {
  user-select: none;
  -webkit-user-select: none;
}

/* Disable pointer interactions & selection on all preview illustration frames except video buttons */
.features-tracking-screens-stack,
.budget-mockup-frame,
.features-billing-screens-stack,
.features-op-screens-stack {
  pointer-events: none;
}


/* Disable hover transforms on mockup frames */
.budget-mockup-frame:hover {
  transform: none !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.06) !important;
}

/* Reset button/action cursor and hover styles inside illustration cards */
.tracking-timer-action-btn,
.budget-notif-item,
.budget-notif-view-all,
.budget-details-go-btn,
.budget-btn-use,
.budget-btn-cancel,
.budget-calc-btn,
.budget-link-action,
.budget-section-toggle,
.billing-action-btn-white,
.billing-btn-generate,
.invoice-btn-receipt,
.collection-btn-queue,
.pencil-icon,
.ai-suggestion-card {
  cursor: default !important;
  pointer-events: none !important;
}

.budget-notif-item:hover,
.budget-details-go-btn:hover,
.budget-btn-use:hover,
.billing-action-btn-white:hover,
.billing-btn-generate:hover,
.invoice-btn-receipt:hover,
.collection-btn-queue:hover,
.pencil-icon:hover,
.ai-suggestion-card:hover {
  transform: none !important;
  background: inherit;
}


/* ==========================================================================
   Inline Autoplay YouTube Video Containers
   ========================================================================== */
.features-hero-video-wrap {
  width: 100%;
  max-width: 60.3125rem; /* 965px */
  border-radius: 0.625rem; /* 10px */
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #000000;
  pointer-events: none;
}

.features-hero-video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 952;
  overflow: hidden;
  pointer-events: none;
}

@supports not (aspect-ratio: 1920 / 952) {
  .features-hero-video-responsive {
    height: 0;
    padding-bottom: 49.5833%; /* 952 / 1920 ratio fallback */
  }
}

.features-hero-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

/* Budget Row 2 Inline Video Frame */
.budget-mockup-video-frame {
  width: 36.8125rem !important; /* ~589px */
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  padding: 0 !important;
  border: none !important;
  background: #FFFFFF !important;
  border-radius: 0.875rem !important;
  overflow: hidden !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.06) !important;
  pointer-events: none !important;
  position: relative !important;
}

.budget-video-responsive {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  overflow: hidden;
  pointer-events: none;
}

@supports not (aspect-ratio: 4 / 3) {
  .budget-video-responsive {
    height: 0;
    padding-bottom: 75%; /* 4:3 ratio fallback */
  }
}

.budget-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

@media (max-width: 768px) {
  .budget-mockup-video-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    padding: 0 !important;
  }
  .budget-video-responsive {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  @supports not (aspect-ratio: 4 / 3) {
    .budget-video-responsive {
      padding-bottom: 75%;
      height: 0;
    }
  }
}

