/* ---- Automatic invoices (scheduling) ---- */

/* Standard locked-feature state (partials/plan_lock.erb): illustration + copy +
   "Upgrade to <tier>" CTA. Reused across gated pages so locks look consistent. */
.plan-lock {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 15px;
  padding: 44px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* The art in a tinted tile, as a settings row's icon - not a banner. */
.plan-lock-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-weak);
  color: var(--accent);
  line-height: 0;
}

.plan-lock-art svg {
  width: 34px;
  height: 34px;
}

.plan-lock-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.plan-lock-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.plan-lock-body {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

.plan-lock .button-primary {
  margin-top: 4px;
}

/* Immersive email preview. */

/* Automatic Invoices list page: header with an Add button, and the schedule
   list beside the "Sent" activity column. */

/* Fill the viewport: the card reaches the bottom of the screen instead of
   floating with an empty band below it, and each column scrolls internally
   when its list is long. The downstream panels already carry min-height:0 and
   overflow - this just lets the height flow down from the frame. Desktop only;
   the stacked mobile layout keeps its natural height. */

/* Trigger cards flow by the form's own width (container query). Each group keeps
   a balanced layout at every size instead of orphaning a card on a second row:
   the 4-card repeating group is 2×2 when cramped and 4-across when roomy; the
   3-card event group stays 3-across until it must stack. */

.trig-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-weak);
  color: var(--accent);
}

