/* F · Atelier — crédits, offres et facturation. */
.f.credits-layout .stage > #usage-page > .wrap,
.f.credits-layout .stage > #plans-page > .wrap,
.f.credits-layout .stage > #billing-page > .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.f.credits-layout .credits-nav { gap: 2px; }
.f.credits-layout .credits-nav a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--f-text-2);
  text-decoration: none;
}
.f.credits-layout .credits-nav a:hover { color: var(--f-text); }
.f.credits-layout .credits-nav a.on {
  background: var(--f-s2);
  color: var(--f-text);
}
.f.credits-layout .credits-nav a:focus-visible {
  outline: 2px solid var(--f-accent);
  outline-offset: 2px;
}
.credits-refund-card {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: var(--f-card);
}
.credits-refund-card .lab { margin-bottom: 8px; }
.credits-refund-card p,
.credits-aside-note {
  margin: 0;
  color: var(--f-muted);
  font-size: 12px;
  line-height: 1.5;
}
.credits-inspector {
  gap: 10px;
  overflow: auto;
}
.credits-inspector .lab { margin: 0; }
/* Colonne droite (F-Credits) : packs .pk2 et offres .pl2, repris du board */
.credits-inspector .pk2 { display: flex; flex-direction: column; gap: 8px; }
.credits-inspector .pk2 > div { display: flex; align-items: center; gap: 10px; background: var(--f-card); border-radius: 14px; padding: 12px; }
.credits-inspector .pk2 b { font: 600 13px 'Geist Mono', monospace; white-space: nowrap; }
.credits-inspector .pk2 span { flex: 1; min-width: 0; color: var(--f-muted); font: 12px 'Geist Mono', monospace; white-space: nowrap; }
.credits-inspector .pk2 .btn { flex: none; }
.credits-inspector .pl2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--f-card); border-radius: 14px; padding: 12px; border: 1px solid transparent; color: var(--f-text); text-decoration: none; }
.credits-inspector .pl2:hover { background: var(--f-s3); }
.credits-inspector .pl2.on { border-color: var(--f-accent); }
.credits-inspector .pl2 b { display: block; font-weight: 600; font-size: 13px; }
.credits-inspector .pl2 small { display: block; color: var(--f-muted); font-size: 11px; margin-top: 2px; }
.credits-inspector .pl2 .mono { font: 13px 'Geist Mono', monospace; color: var(--f-text); white-space: nowrap; }
.credits-inspector .sub { margin: 4px 0 0; color: var(--f-muted); font-size: 13px; line-height: 1.5; }
.credits-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.credits-page-head { margin: 0 0 18px; }
.credits-page-head h1 {
  margin: 0;
  font: 800 26px/1.2 Manrope, sans-serif;
  letter-spacing: -.02em;
}
.credits-page-head p {
  margin: 5px 0 0;
  color: var(--f-muted);
  font-size: 13px;
}
.credits-balance-card {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 164px;
  padding: 26px;
  border-radius: 22px;
  background: var(--f-card);
}
.credits-balance-details { min-width: 0; }
.credits-balance-value {
  margin-top: 5px;
  font: 800 64px/.98 Manrope, sans-serif;
  letter-spacing: -.03em;
}
.credits-balance-value small {
  color: var(--f-muted);
  font: 500 18px Inter, sans-serif;
  letter-spacing: 0;
}
.credits-balance-note {
  margin: 8px 0 0;
  color: var(--f-muted);
  font-size: 13px;
  line-height: 1.5;
}
.credits-allowance {
  width: 250px;
  height: 10px;
  flex: none;
  margin-left: auto;
  overflow: hidden;
  border-radius: 9px;
  background: var(--f-s3);
}
.credits-allowance span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--f-accent);
}
.credits-section { margin-top: 26px; }
.credits-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.credits-section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.credits-section-head span {
  color: var(--f-muted);
  font: 11px 'Geist Mono', monospace;
}
.credits-usage-bars { display: flex; flex-direction: column; gap: 10px; }
.credits-usage-row {
  display: grid;
  grid-template-columns: minmax(100px, 130px) minmax(20px, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 18px;
}
.credits-usage-label { min-width: 0; }
.credits-usage-track {
  height: 10px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--f-s2);
}
.credits-usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--f-accent);
}
.credits-usage-value {
  text-align: right;
  font: 600 12px 'Geist Mono', monospace;
}
.credits-recent-list {
  display: flex;
  flex-direction: column;
}
.credits-recent-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  border-top: 1px solid var(--f-line);
}
.credits-recent-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--f-card);
  color: var(--f-text-2);
}
.credits-recent-icon svg { width: 19px; height: 19px; }
.credits-recent-description { min-width: 0; }
.credits-recent-description small {
  display: block;
  margin-top: 2px;
  color: var(--f-muted);
  font-size: 11px;
}
.credits-recent-value {
  font: 600 12px 'Geist Mono', monospace;
}
.credits-recent-value.is-refunded { color: var(--f-accent); }
.credits-root .credits-list {
  border-color: var(--f-line);
  border-radius: 0;
}
.credits-root .credit-head { color: var(--f-muted); }
.credits-pack-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.credits-pack-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--f-line-2);
  border-radius: 20px;
  background: var(--f-card);
}
.credits-pack-count {
  font: 800 34px Manrope, sans-serif;
}
.credits-pack-card > span { color: var(--f-muted); }
.credits-pack-price {
  margin: 8px 0 12px;
  font: 600 15px 'Geist Mono', monospace;
}
.credits-pack-card .btn { width: 100%; margin-top: auto; }
.credits-root .plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}
.credits-root .plan-card {
  min-width: 0;
  min-height: 292px;
  padding: 22px;
  border-color: var(--f-line-2);
  border-radius: 20px;
  background: var(--f-card);
}
.credits-root .plan-card.is-current { border-color: var(--f-accent); }
.credits-root .plan-badges:empty { display: none; }
.credits-root .plan-name { display: flex; align-items: center; gap: 10px; }
.credits-root .plan-price-block { min-height: 40px; }
.credits-root .credits-plan-credits {
  margin: -4px 0 2px;
  color: var(--f-accent);
  font: 500 13px 'Geist Mono', monospace;
}
.credits-root .plan-toggle {
  margin: 0;
  border-radius: 99px;
  background: var(--f-card);
}
.credits-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.credits-offers-head .credits-page-head { margin: 0; }
.credits-root .credits-offers-topups { margin-top: 20px; }
.credits-root .plan-toggle-option { border-radius: 99px; }
.credits-root .plan-toggle-option.is-active {
  background: var(--f-text);
  color: var(--f-bg);
}
.credits-root .plan-name { font: 800 20px Manrope, sans-serif; }
.credits-root .plan-price-amount { font: 800 34px Manrope, sans-serif; }
.credits-root .plan-features { gap: 8px; }
.credits-root .plan-features li { gap: 9px; }
.credits-root .plan-features li svg { width: 14px; height: 14px; flex: none; color: var(--f-accent); }
.credits-root .btn {
  border: 0;
  border-radius: 11px;
  background: var(--f-s2);
  color: var(--f-text);
  font: 600 13px Inter, sans-serif;
  box-shadow: none;
}
.credits-root .btn:hover { background: var(--f-s3); }
.credits-root .btn.btn-primary { background: var(--f-text); color: var(--f-bg); }
.credits-root .btn.btn-primary:hover { opacity: .9; }
.credits-root a { color: var(--f-accent); }
.credits-root .screen-section { border-color: var(--f-line); }
.credits-root .credits-billing-card {
  margin: 14px 0 0;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--f-card);
}
.credits-root .credits-billing-card .screen-section-title {
  margin-bottom: 10px;
  color: var(--f-dim);
  font: 500 10.5px 'Geist Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.credits-root .credits-billing-card .screen-meta { margin: 0; }
.credits-root .credits-billing-card .screen-meta dt { color: var(--f-muted); }
.credits-root .credits-billing-card .screen-meta dd { text-align: right; }
.credits-root .credits-billing-card .screen-muted { color: var(--f-muted); }
.credits-root .credits-billing-extra .screen-section-title {
  margin-bottom: 8px;
  color: var(--f-text);
  font: 700 14px Manrope, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.credits-root .billing-card { margin: 0; color: var(--f-text); }
.credits-root .billing-card .material-symbols-outlined { color: var(--f-muted); }
#fAside.credits-inspector .credits-billing-extra {
  margin: 14px 0 0;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--f-card);
}
#fAside.credits-inspector .credits-billing-extra .screen-section-title {
  margin-bottom: 8px;
  color: var(--f-text);
  font: 700 14px Manrope, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
#fAside.credits-inspector .credits-billing-extra .screen-muted {
  margin: 0;
  color: var(--f-muted);
  font-size: 13px;
  line-height: 1.5;
}
#fAside.credits-inspector .credits-billing-extra .billing-actions { margin-top: 12px; }
.credits-billing-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.credits-billing-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.credits-billing-plan-name {
  margin: 0;
  font: 700 20px Manrope, sans-serif;
}
.credits-billing-detail { margin: 5px 0 0; color: var(--f-muted); font-size: 13px; }
.credits-billing-detail .billing-status { margin-left: 8px; }
.credits-billing-inline .billing-status { margin-left: 8px; }
.credits-billing-inline .btn { flex: none; }
.credits-root .credits-billing-card[aria-labelledby="billingInvTitle"] {
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.credits-root .credits-billing-card[aria-labelledby="billingInvTitle"] .screen-section-title {
  margin-bottom: 12px;
  color: var(--f-text);
  font: 600 13px Inter, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.credits-root .credits-billing-card[aria-labelledby="billingInvTitle"] .plan-table td small {
  display: block;
  margin-top: 3px;
}
.credits-root .plan-notice { border-color: var(--f-line-2); background: var(--f-card); }
.credits-root .billing-status.is-ok { color: var(--f-accent); }
.credits-root .billing-actions { align-items: flex-start; }
.credits-root .billing-links { white-space: nowrap; }
.credits-root .billing-links a { color: var(--f-accent); }
.credits-root .plan-table-wrap {
  border: 0;
  border-color: var(--f-line);
  border-radius: 0;
  padding: 0;
}
.credits-root .plan-table th,
.credits-root .plan-table td { border-color: var(--f-line); }
.credits-root .plan-table-caption.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.credits-root .plan-table thead th {
  color: var(--f-dim);
  font: 500 10px 'Geist Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.credits-root .plan-table tbody tr:first-child th,
.credits-root .plan-table tbody tr:first-child td { border-top: 1px solid var(--f-line); }
.shell-dialog .consent-recap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--f-bg);
}
.shell-dialog .consent-recap dt { color: var(--f-muted); }
.shell-dialog .consent-recap dd { margin: 0; text-align: right; }
.shell-dialog .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--f-text-2);
  font-size: 12px;
  line-height: 1.5;
}
.shell-dialog .consent-check input { flex: none; margin-top: 2px; }

@media (max-width: 1100px) {
  .f.credits-layout .credits-allowance { width: 180px; }
  .credits-root .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .credits-balance-card { align-items: flex-start; flex-direction: column; gap: 14px; }
  .credits-allowance { width: 100%; margin-left: 0; }
  .credits-pack-catalog { grid-template-columns: 1fr; }
}
