@import url('./shared.css');
:root {
  --nav: #122334;
  --nav-soft: #203447;
  --ink: #172b3e;
  --muted: #68798a;
  --line: #dde4eb;
  --surface: #fff;
  --canvas: #f3f6f9;
  --brand: #157a64;
  --accent: #68dbba;
  --blue: #256cbd;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Segoe UI', Arial, 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #459bcf;
  outline-offset: 3px;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
button {
  border: 0;
}
.initial-loading {
  padding: 12vh 24px;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand em {
  font-style: normal;
  font-weight: 450;
  color: var(--accent);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--nav);
  border-radius: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -2px;
}
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 20px;
}
.sidebar .brand {
  padding-left: 9px;
}
.workspace {
  margin: 36px 0 27px;
  padding: 14px;
  border: 1px solid #35495b;
  border-radius: 12px;
  background: #1b2e40;
}
.workspace small {
  display: block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9fb0bf;
  margin-bottom: 7px;
}
.workspace select {
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  font-size: 14px;
  min-height: 30px;
  cursor: pointer;
}
.workspace select option {
  color: var(--ink);
  background: white;
}
.workspace strong {
  font-size: 14px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: none;
  color: #b5c3cf;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  min-height: 48px;
}
.nav button.active {
  color: #fff;
  background: #2c4354;
}
.nav button.active .icon {
  color: var(--accent);
}
.nav button:hover {
  background: #21384a;
  color: #fff;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}
.profile {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 18px 9px 0;
  border-top: 1px solid #334657;
}
.avatar {
  background: #dbe8ee;
  color: #314c60;
  display: grid;
  place-items: center;
  font-weight: 700;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile strong {
  display: block;
  font-size: 14px;
}
.profile small {
  color: #acbcc9;
  font-size: 12px;
}
.icon-button {
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.profile .icon-button {
  margin-left: auto;
}
.content {
  min-width: 0;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  gap: 16px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  font-weight: 600;
  margin-left: 10px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e6f3ee;
  color: #16705c;
}
.pill.preview {
  background: #edf1f6;
  color: #65788a;
}
.main {
  padding: 34px 40px 42px;
  max-width: 1490px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 6px;
}
.page-heading h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -0.8px;
}
.page-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.count-label {
  font-size: 14px;
  color: var(--muted);
  padding-top: 13px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.app-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: white;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.app-card:hover {
  border-color: #a9bac9;
  box-shadow: 0 8px 26px #132d4410;
  transform: translateY(-2px);
}
.app-card.featured {
  grid-column: span 2;
  min-height: 286px;
  background: var(--nav);
  border-color: var(--nav);
  color: white;
  position: relative;
  overflow: hidden;
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: #e9f1fb;
  color: #3775b5;
}
.app-icon .icon {
  width: 27px;
  height: 27px;
}
.app-icon.purple {
  background: #f0edfa;
  color: #7b67ab;
}
.app-icon.orange {
  background: #fff0e2;
  color: #b87836;
}
.app-icon.green {
  background: #e8f3ef;
  color: #368a73;
}
.app-icon.pink {
  background: #f9ecf2;
  color: #b36385;
}
.featured .app-icon {
  background: #284658;
  color: #93e6d0;
}
.app-card h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 20px 0 4px;
}
.app-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 350px;
}
.featured h2 {
  font-size: 29px;
}
.featured p {
  color: #bacbd7;
  font-size: 15px;
}
.app-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #738396;
}
.app-status .icon {
  width: 14px;
  height: 14px;
}
.featured .app-status {
  color: #91e6ca;
}
.app-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  gap: 10px;
}
.app-bottom small {
  color: #7890a2;
  font-size: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  background: #edf2f6;
  color: var(--ink);
}
.btn.primary {
  background: var(--brand);
  color: white;
}
.btn.accent {
  background: var(--accent);
  color: #10342c;
}
.btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
}
.btn.text {
  background: transparent;
  padding-left: 0;
}
.btn.danger {
  background: #fce8e8;
  color: #a43131;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.3px;
}
.recent {
  margin-top: 30px;
}
.project-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid #edf1f5;
}
.project-row:first-of-type {
  border-top: 0;
}
.project-row-main {
  flex: 1;
  min-width: 0;
}
.project-row h3 {
  font-size: 15px;
  margin: 0 0 3px;
}
.project-row p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.project-row .project-icon {
  background: #eef3f7;
  border-radius: 10px;
  padding: 10px;
  color: #59758c;
}
.progress {
  width: 110px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.progress-track {
  height: 5px;
  background: #e7eef3;
  border-radius: 10px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 10px;
}
.footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  margin: 21px 0 0;
}
.footnote .icon {
  width: 15px;
  height: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}
.form-field label {
  font-size: 14px;
  font-weight: 600;
}
.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd8e1;
  padding: 10px 13px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.form-field small {
  color: var(--muted);
  font-size: 12px;
}
.span-2 {
  grid-column: span 2;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--nav);
  padding: 50px 9%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside h1 {
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -1.3px;
  max-width: 420px;
  font-weight: 650;
}
.auth-aside p {
  color: #b5c6d2;
  max-width: 390px;
  line-height: 1.7;
}
.auth-aside .brand {
  width: fit-content;
}
.auth-art {
  display: grid;
  gap: 12px;
  max-width: 390px;
  margin-top: 35px;
}
.auth-art div {
  border: 1px solid #395064;
  border-radius: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1b3043;
  font-size: 14px;
}
.auth-art div:first-child {
  border-color: #60c7aa;
  color: #89e4c9;
}
.auth-art .icon:last-child {
  margin-left: auto;
  width: 16px;
}
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: white;
}
.auth-box {
  width: 100%;
  max-width: 390px;
}
.auth-box h2 {
  font-size: 29px;
  letter-spacing: -0.6px;
  margin: 0 0 9px;
}
.auth-box > p {
  color: var(--muted);
  margin: 0 0 27px;
}
.auth-box .btn.primary {
  width: 100%;
  margin-top: 7px;
}
.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}
.auth-actions button {
  padding: 6px 0;
  font-size: 13px;
  background: none;
  color: #56718a;
  text-align: left;
}
.demo-link {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}
.demo-link a {
  color: var(--brand);
  text-underline-offset: 4px;
}
.error-inline {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff0ef;
  color: #a83333;
  font-size: 14px;
  margin: 0 0 18px;
}
.empty {
  padding: 28px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #edf1f5;
}
td strong,
td small {
  display: block;
}
td small {
  color: var(--muted);
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.settings-grid h3 {
  margin: 0 0 18px;
  font-size: 17px;
}
.membership-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}
.membership-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.membership-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  width: min(480px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 25px 90px #12233433;
}
dialog::backdrop {
  background: #091a2b66;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.5px;
}
.modal-body p {
  color: var(--muted);
  font-size: 15px;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #eef3f7;
  color: #607d92;
  margin-bottom: 18px;
}
.modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.invite-link {
  width: 100%;
  font:
    13px ui-monospace,
    monospace;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
#notices {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  max-width: min(400px, calc(100vw - 44px));
}
.notice {
  background: #142c3d;
  color: white;
  border-radius: 12px;
  padding: 15px 19px;
  box-shadow: 0 8px 30px #12233430;
  font-size: 14px;
}
.demo-banner {
  background: #fff5dc;
  color: #745524;
  padding: 9px 24px;
  font-size: 13px;
  text-align: center;
}
.demo-banner a {
  font-weight: 650;
  margin-left: 10px;
  text-underline-offset: 3px;
}
.mobile-menu {
  display: none;
}
.demo-roles {
  display: flex;
  gap: 5px;
  background: #edf2f6;
  border-radius: 8px;
  padding: 3px;
}
.demo-roles button {
  font-size: 12px;
  background: transparent;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--muted);
}
.demo-roles button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #12233414;
}
.disabled-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.role-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  background: #edf2f7;
  color: #587088;
}
.demo-role-label {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .main {
    padding-top: 45px;
  }
  .app-card {
    min-height: 310px;
  }
}
@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px 18px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-card.featured {
    grid-column: span 2;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    z-index: 30;
    display: none;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 0 0 0 100vw #06162777;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    padding: 0 18px;
    height: 72px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar-right {
    gap: 8px;
    margin-left: auto;
  }
  .main {
    padding: 25px 18px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .count-label {
    display: none;
  }
  .apps-grid {
    gap: 14px;
  }
  .app-card {
    padding: 19px;
    min-height: 263px;
  }
  .app-card h2 {
    font-size: 19px;
  }
  .app-card.featured {
    min-height: 255px;
  }
  .featured h2 {
    font-size: 27px;
  }
  .app-bottom {
    flex-wrap: wrap;
  }
  .app-bottom small {
    display: none;
  }
  .progress {
    width: 70px;
  }
  .project-row .project-icon {
    display: none;
  }
  .project-row {
    gap: 10px;
  }
  .project-row h3 {
    font-size: 14px;
  }
  .surface {
    padding: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .auth-page {
    display: block;
  }
  .auth-aside {
    padding: 23px;
  }
  .auth-aside > div:not(:first-child),
  .auth-aside > p {
    display: none;
  }
  .auth-content {
    padding: 40px 22px;
    min-height: calc(100dvh - 84px);
  }
  .auth-aside .brand {
    font-size: 21px;
  }
  .auth-art {
    display: none;
  }
  .section-head {
    align-items: flex-start;
  }
  .footnote {
    align-items: flex-start;
  }
  .demo-role-label {
    display: none;
  }
  .demo-roles button {
    padding: 6px 7px;
  }
  .pill.preview {
    display: none;
  }
}
@media (max-width: 420px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-card.featured {
    grid-column: auto;
  }
  .app-card {
    min-height: 234px;
  }
  .app-bottom {
    flex-wrap: nowrap;
  }
  .app-status {
    font-size: 11px;
  }
  .topbar-right .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.sidebar-close {
  display: none;
}
@media (max-width: 760px) {
  .sidebar-close {
    display: grid;
    position: absolute;
    top: 24px;
    right: 14px;
  }
}

/* Equal application cards on every viewport. */
.apps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.app-card,
.app-card.featured {
  grid-column: auto;
  min-height: 285px;
}
.app-card h2,
.featured h2 {
  font-size: 22px;
}
.app-card p,
.featured p {
  font-size: 14px;
}
.app-status {
  gap: 5px;
}
.app-bottom small {
  display: none;
}
.onboarding-shell {
  max-width: 800px;
  margin: auto;
}
.onboarding-steps {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 20px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 14px;
}
.onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.onboarding-steps b {
  display: grid;
  place-items: center;
  background: #e6edf2;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.onboarding-steps .active {
  color: var(--brand);
}
.onboarding-steps .active b {
  background: var(--brand);
  color: white;
}
.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.domain-input {
  display: flex;
  align-items: center;
  border: 1px solid #cdd8e1;
  border-radius: 8px;
  overflow: hidden;
}
.domain-input input {
  border: 0;
  min-width: 0;
  border-radius: 0;
}
.domain-input span {
  background: #f3f6f9;
  padding: 12px;
  font-size: 14px;
}
.check-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.check-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
}
.company-summary dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  font-size: 14px;
}
.company-summary dt {
  color: var(--muted);
}
.company-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.onboarding-note {
  padding: 18px;
  background: #eaf8f2;
  border-radius: 10px;
}
.onboarding-note p {
  margin: 6px 0 0;
  font-size: 14px;
}
.company-chooser {
  max-width: 600px;
  margin: 60px auto;
  padding: 24px;
}
.company-chooser .membership-card {
  background: white;
}
.billing-consent {
  margin: 24px 0;
}
.setup-banner {
  padding: 18px;
  margin-bottom: 25px;
  background: #eff6fa;
  border-radius: 12px;
}
@media (max-width: 1120px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-card.featured {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .onboarding-steps {
    gap: 10px;
    font-size: 12px;
  }
  .onboarding-steps b {
    width: 24px;
    height: 24px;
  }
  .company-summary dl {
    grid-template-columns: 1fr;
  }
  .app-card,
  .app-card.featured {
    min-height: 265px;
  }
}
@media (max-width: 540px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-card,
  .app-card.featured {
    min-height: 250px;
  }
}

#member-access-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}
#member-access-form .check-label {
  margin: 10px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.member-project-list {
  max-height: 250px;
  overflow: auto;
}

/* Subscription and customer overview. */
.billing-overview {
  margin-bottom: 24px;
}
.billing-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.billing-metrics > div {
  padding: 22px;
  background: var(--bg, #f7f8fa);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.billing-metrics span,
.billing-metrics small {
  color: var(--muted, #657080);
}
.billing-metrics strong {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.billing-breakdown {
  margin: 20px 0;
}
.billing-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.billing-breakdown dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
}
.trial-panel {
  margin: 24px 0 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg, #f7f8fa);
}
.trial-panel h3 {
  margin-top: 0;
}
.trial-panel .btn {
  margin-top: 16px;
}
.billing-warning {
  border-left: 3px solid #b16c12;
  padding: 12px 16px;
  background: #fff7e8;
}
.customer-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.customer-group:last-child {
  border: 0;
}
.customer-group h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.customer-group > p {
  margin: 0;
  color: var(--muted, #657080);
  overflow-wrap: anywhere;
}
.customer-group .project-row {
  padding: 14px 0;
}
.customer-group .btn {
  white-space: normal;
  flex-shrink: 0;
}
.trial-panel a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .billing-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .billing-metrics strong {
    font-size: 28px;
  }
  .billing-breakdown dt {
    max-width: 68%;
  }
  .customer-group .project-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .customer-group .project-row-main {
    min-width: 160px;
  }
  .billing-overview .section-head {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
}

.payment-history {
  margin-top: 24px;
}
.payment-list {
  display: grid;
  gap: 0;
}
.payment-row {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.payment-main,
.payment-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.payment-main {
  align-items: flex-start;
}
.payment-main h3 {
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.payment-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.payment-amount {
  font-size: 20px;
  white-space: nowrap;
}
.payment-state {
  margin-top: 15px;
  flex-wrap: wrap;
}
.payment-status {
  display: inline-block;
  background: #eef1f4;
  color: #425369;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.payment-status.attention {
  background: #fff0d8;
  color: #8b4c06;
}
.payment-status.settled {
  background: #e7f5ed;
  color: #286b45;
}
.payment-row > .disabled-note {
  margin-bottom: 0;
}
.payment-history .section-head {
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 580px) {
  .payment-main {
    flex-direction: column;
    gap: 12px;
  }
  .payment-state {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .payment-history .btn {
    max-width: 100%;
  }
  .payment-amount {
    font-size: 23px;
  }
}
