.bill-page {
  max-width: 1440px;
  margin: auto;
  padding: 24px 36px 70px;
  color: var(--fg);
}
.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 10px 0 28px;
}
.bill-eyebrow {
  font-size: 12px;
  color: var(--fg-muted);
}
.bill-header h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
}
.bill-header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.bill-header-links a {
  color: var(--fg-muted);
}
.bill-header-links button,
.bill-secondary {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 42px;
  font: inherit;
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-card);
  cursor: pointer;
}
.bill-notice {
  font-size: 12px;
  line-height: 1.8;
  color: #a1684b;
  margin: 0;
}
.bill-notice:not(:empty) {
  margin: 0 0 20px;
}
.bill-entitlement {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  box-shadow: var(--shadow-sm);
}
.bill-current-plan,
.bill-current-stat {
  min-width: 0;
}
.bill-current-plan > span,
.bill-current-stat > span {
  font-size: 12px;
  color: var(--fg-muted);
}
.bill-current-plan h2 {
  font-size: 25px;
  font-weight: 400;
  margin: 14px 0;
}
.bill-current-plan p,
.bill-current-plan small,
.bill-current-stat small {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.8;
}
.bill-current-stat {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.bill-current-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 400;
  margin: 13px 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.bill-current-stat strong i {
  font-size: 13px;
  font-style: normal;
  color: var(--fg-muted);
}
.bill-week {
  text-align: right;
  font-size: 11px;
  color: var(--fg-muted);
  margin: 12px 4px 30px;
  line-height: 1.8;
}
.bill-policy {
  font-size: 12px;
  line-height: 1.9;
  color: var(--fg-muted);
  margin: 20px 3px;
}
.bill-daily-form {
  margin: 0 0 26px;
}
.bill-daily-form .bill-form-grid {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
}
.bill-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.bill-plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.bill-plan.is-current {
  border-color: #848fa1;
}
.bill-plan-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bill-plan-heading h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
.bill-plan-heading > span {
  font-size: 10px;
  color: #616b7d;
  background: #eaecf1;
  padding: 5px 8px;
  border-radius: 7px;
}
.bill-plan-price {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  margin: 28px 0 20px;
}
.bill-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex: 1;
}
.bill-plan li {
  margin-bottom: 14px;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.7;
}
.bill-plan li::before {
  content: "·";
  margin-right: 9px;
  color: #687283;
}
.bill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bill-primary:disabled {
  background: var(--bg-soft);
  color: var(--fg-muted);
  cursor: default;
}
.bill-payment-placeholder {
  margin: 38px 0 0;
}
.bill-payment-placeholder > h2,
.bill-panel > h2,
.bill-section-heading h2 {
  font-size: 21px;
  font-weight: 400;
  margin: 0 0 20px;
}
.bill-payment-placeholder > p {
  margin-top: 15px;
  font-size: 12px;
  color: var(--fg-muted);
}
.bill-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.bill-channels button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  border-radius: 13px;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.bill-channels small {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
}
.bill-payment-icon {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--fg-muted);
}
.bill-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 27px;
  margin-top: 24px;
  background: var(--bg-card);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.bill-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.bill-section-heading h2 {
  margin: 0;
}
.bill-section-heading > span {
  font-size: 12px;
  color: var(--fg-muted);
}
.bill-empty {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 45px 20px;
  color: var(--fg-muted);
  text-align: center;
  font-size: 13px;
}
.bill-empty h2,
.bill-empty h3 {
  font-size: 19px;
  font-weight: 400;
  color: var(--fg);
  margin: 0 0 12px;
}
.bill-empty p {
  font-size: 13px;
  line-height: 1.9;
}
.bill-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.bill-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 12px;
}
.bill-table th {
  text-align: left;
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-muted);
  padding: 13px 15px;
  background: var(--bg-soft);
  white-space: nowrap;
}
.bill-table td {
  padding: 18px 15px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
  color: var(--fg);
}
.bill-table td strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.bill-table td small {
  display: block;
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 5px;
}
.bill-table .bill-positive {
  color: #5d6a81;
}
.bill-status {
  white-space: nowrap;
  color: var(--fg-muted);
  font-size: 11px;
  background: var(--bg-soft);
  padding: 5px 8px;
  border-radius: 6px;
}
.bill-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--fg-muted);
}
.bill-pagination button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--fg);
  background: var(--bg-card);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.bill-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.bill-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 10px 0 25px;
}
.bill-tabs button {
  padding: 14px 2px;
  background: transparent;
  color: var(--fg-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.bill-tabs button[aria-pressed="true"] {
  color: var(--fg);
  border-bottom-color: #7a8393;
}
.bill-admin-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.bill-admin-plans .bill-panel {
  margin-top: 0;
}
.bill-plan-form h2 {
  margin-bottom: 24px;
}
.bill-field {
  display: grid;
  gap: 9px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 19px;
  min-width: 0;
}
.bill-field input,
.bill-field select,
.bill-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.bill-field input:disabled,
.bill-field select:disabled {
  opacity: 0.55;
  cursor: default;
}
.bill-field small {
  font-size: 10px;
  line-height: 1.7;
}
.bill-field textarea {
  resize: vertical;
  min-height: 90px;
}
.bill-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0;
  font-size: 13px;
}
.bill-check input {
  width: 18px;
  height: 18px;
  accent-color: #717c8e;
}
.bill-form-feedback {
  font-size: 12px;
  color: #a1684b;
  line-height: 1.8;
  margin: 0;
}
.bill-form-feedback:not(:empty) {
  margin: 15px 0;
}
.bill-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bill-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.bill-search input,
.bill-search select {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
}
.bill-search input {
  flex: 1;
  max-width: 440px;
}
.bill-search button {
  flex-shrink: 0;
}
.bill-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bill-row-actions button {
  min-height: 35px;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.bill-member-form {
  scroll-margin-top: 110px;
}
.bill-pick-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--fg-muted);
}
.bill-page [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .bill-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bill-entitlement {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .bill-current-stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .bill-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .bill-page {
    padding: 12px 18px 45px;
  }
  .bill-header {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .bill-header h1 {
    font-size: 29px;
  }
  .bill-header-links {
    gap: 16px;
    font-size: 12px;
  }
  .bill-entitlement {
    padding: 22px;
    gap: 25px 18px;
  }
  .bill-current-plan {
    grid-column: 1/-1;
  }
  .bill-current-stat {
    padding-left: 0;
    border-left: 0;
  }
  .bill-current-stat strong {
    font-size: 26px;
  }
  .bill-current-stat:last-child {
    grid-column: 1/-1;
    border-top: 1px solid var(--border);
    padding-top: 19px;
  }
  .bill-week {
    text-align: left;
    font-size: 10px;
  }
  .bill-plan-grid,
  .bill-admin-plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .bill-plan {
    padding: 24px;
  }
  .bill-plan-price {
    margin: 22px 0 17px;
  }
  .bill-plan ul {
    margin-bottom: 15px;
  }
  .bill-channels {
    gap: 10px;
  }
  .bill-channels button {
    padding: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 7px;
  }
  .bill-channels small {
    width: 100%;
    margin: 0;
    padding-left: 37px;
    font-size: 9px;
  }
  .bill-panel {
    padding: 21px 18px;
  }
  .bill-tabs {
    gap: 20px;
    overflow-x: auto;
  }
  .bill-tabs button {
    flex-shrink: 0;
    font-size: 13px;
  }
  .bill-field input,
  .bill-field select,
  .bill-field textarea,
  .bill-search input,
  .bill-search select {
    font-size: 16px;
  }
  .bill-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .bill-daily-form .bill-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bill-search {
    flex-wrap: wrap;
  }
  .bill-search input {
    flex-basis: 55%;
  }
  .bill-search select {
    flex: 1;
  }
  .bill-primary {
    width: 100%;
  }
  .bill-pagination {
    justify-content: center;
    gap: 10px;
  }
  .bill-table {
    min-width: 630px;
  }
}
