.environment-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  padding: 9px 13px;
  border: 1px solid #ced9c1;
  border-radius: 30px;
  background: #f5f7edee;
  color: #566b3c;
  font-size: 9px;
  letter-spacing: 1px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px #26351b0a;
}
.form-error {
  font-size: 12px;
  line-height: 1.7;
  color: #a13737;
  margin-top: 17px;
}
.form-error:empty {
  display: none;
}
.field small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
  font-weight: 400;
  color: #74806d;
}
.auth-divider {
  text-align: center;
  font-size: 10px;
  color: #7e8976;
  margin: 20px 0;
}
.status-pill {
  font-size: 9px !important;
  background: #eee8dc;
  border-radius: 30px;
  padding: 5px 9px;
  white-space: nowrap;
  color: #806748;
}
.status-pill.positive {
  background: #e3ecd9;
  color: #526e3b;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.8;
  margin: 25px 0;
  color: #66765a;
}
.consent input {
  margin-top: 5px;
  accent-color: #607a44;
}
.billing-box strong {
  font-size: 14px;
}
.billing-actions {
  flex-wrap: wrap;
  gap: 10px 18px;
}
.billing-actions button {
  font-size: 10px;
}
.billing-box {
  margin-top: 20px;
}
.invoice-heading {
  margin-top: 35px;
}
.invoice-row small {
  display: block;
  font-size: 9px;
  color: #859078;
  margin-top: 5px;
}
.invoice-row strong {
  font-size: 11px;
}
.one-time-key {
  display: block;
  white-space: normal;
  word-break: break-all;
  background: #edf1e7;
  border: 1px solid #d8e2cf;
  border-radius: 9px;
  padding: 18px;
  color: #52673f;
  font-size: 13px;
  line-height: 1.8;
  margin: 25px 0;
}
.simulation-card {
  border: 1px solid #dce4d3;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(150deg, #f2f5ec, #e9efdf);
  padding: 32px 24px;
  margin: 25px 0;
}
.card-symbol {
  font-size: 35px;
  color: #6a8052;
}
.simulation-card h3 {
  margin: 15px 0;
  font-size: 16px;
}
.simulation-card p {
  font-size: 12px;
  color: #748268;
  line-height: 1.9;
}
.sim-actions {
  display: grid;
  gap: 12px;
}
.invoice-row {
  gap: 12px;
}
.account-panel > p {
  line-height: 1.9;
}
.demo-notice {
  line-height: 1.8;
}
.button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.key-row code {
  overflow-wrap: anywhere;
}
.dashboard-header .subtle-button {
  font-size: 10px;
}
@media (max-width: 600px) {
  .billing-box > div:first-child {
    align-items: flex-start;
    gap: 12px;
  }
  .status-pill {
    font-size: 8px !important;
  }
  .invoice-row {
    flex-wrap: wrap;
  }
  .dashboard-app {
    gap: 10px;
  }
  .dashboard-app .subtle-button {
    font-size: 9px;
  }
  .environment-badge {
    font-size: 7px;
    bottom: 10px;
    left: 10px;
  }
  .billing-actions {
    gap: 13px;
  }
}
/* Keep the dismiss control available while a long billing panel scrolls. */
dialog .dialog-close {
  position: sticky;
  top: 14px;
  float: right;
  right: auto;
  margin: 14px 16px -45px 0;
}
.private-coupon {
  padding: 0;
  border-top: 1px solid #e2e8da;
  border-bottom: 1px solid #e2e8da;
  margin: 19px 0;
}
.private-coupon > summary {
  padding: 14px 0;
  font-size: 11px;
  color: #7d8c6c;
}
.coupon-entry {
  display: flex;
  align-items: center;
  gap: 14px;
}
.coupon-entry .field {
  flex: 1;
  margin: 0;
}
.coupon-entry input {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.coupon-entry button {
  margin-top: 17px;
  white-space: nowrap;
}
#coupon-message {
  font-size: 10px;
  line-height: 1.8;
  color: #809768;
  margin: 12px 0 16px;
}
#coupon-message:empty {
  display: none;
}
