:root {
  --bg: #ecf4f1;
  --surface: #ffffff;
  --surface-soft: #f8fcfb;
  --line: #d7e5e1;
  --ink: #13201d;
  --ink-muted: #5f7370;
  --brand: #0f9f88;
  --brand-deep: #0a6d5e;
  --accent: #f2b349;
  --danger: #cf5a4a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 50px rgba(24, 60, 51, 0.12);
}

.swal2-container {
  backdrop-filter: blur(2px);
}

.swal2-popup {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: 0 22px 48px rgba(24, 60, 51, 0.2);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.swal2-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.swal2-html-container {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.swal2-actions {
  gap: 8px;
}

.swal2-styled {
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 0.56em 1.1em !important;
  box-shadow: none !important;
}

.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%) !important;
  color: #fff !important;
}

.swal2-styled.swal2-confirm:hover {
  filter: brightness(0.96);
}

.swal2-styled.swal2-cancel {
  background: #f5fbf9 !important;
  color: #305850 !important;
  border: 1px solid #cde1db !important;
}

.swal2-styled.swal2-deny {
  background: #fcebea !important;
  color: #9e2d20 !important;
  border: 1px solid #f2c5c0 !important;
}

.swal2-timer-progress-bar {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%) !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(15, 159, 136, 0.14), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(242, 179, 73, 0.14), transparent 58%),
    linear-gradient(150deg, #eef5f2 0%, #eaf2f0 46%, #edf5f3 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(15, 159, 136, 0.45);
  outline-offset: 2px;
}

.atmo {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(8px);
}

.atmo--a {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: rgba(15, 159, 136, 0.18);
}

.atmo--b {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: -60px;
  background: rgba(242, 179, 73, 0.24);
}

.dashboard-shell-body {
  height: 100vh;
  overflow: hidden;
}

.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.dashboard-sidebar {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcfb 0%, #f3faf7 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%);
  border: 1px solid #cfe4df;
  box-shadow: 0 8px 20px rgba(9, 100, 85, 0.18);
  display: grid;
  place-items: center;
}

.brand-mark__icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

.brand-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.nav-block {
  display: grid;
  gap: 8px;
}

.nav-label {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: #7a8d8a;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 11px;
  color: #37514d;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-item__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: #e8f4f1;
  transform: translateX(2px);
}

.nav-item.is-active {
  background: linear-gradient(120deg, #dff3ed 0%, #d8efe8 100%);
  color: #0e7a69;
}

.nav-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4fbf9;
  border: 1px solid #b9ddd4;
}

.nav-item--logout {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.side-note {
  margin: auto auto 0;
  width: min(220px, 100%);
  padding: 14px;
  border-radius: 15px;
  border: 1px solid #cde5df;
  background: #fdfefd;
  text-align: center;
}

.side-note__title {
  margin: 0;
  color: #6f8480;
  font-size: 0.78rem;
}

.side-note__value {
  margin: 5px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.side-note__text {
  margin: 4px 0 0;
  color: #728684;
  font-size: 0.8rem;
}

.dashboard-workspace {
  padding: 26px clamp(16px, 2.6vw, 34px) 30px;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-workspace--licenses {
  gap: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form input,
.search-form select,
.form-control,
.form-select {
  border: 1px solid var(--line);
  background: #fbfefd;
  border-radius: 11px;
  padding: 10px 12px;
  color: #1f302d;
}

.search-form input {
  width: min(380px, 72vw);
}

.search-form input:focus,
.search-form select:focus,
.form-control:focus,
.form-select:focus {
  border-color: #88c5b7;
  box-shadow: 0 0 0 4px rgba(16, 153, 132, 0.15);
}

.ghost-btn,
.primary-btn {
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn {
  background: #fbfefd;
  border-color: var(--line);
  color: #35514d;
}

.ghost-btn:hover {
  background: #f2f9f7;
}

.primary-btn {
  background: linear-gradient(135deg, #12aa90 0%, #0a6d5e 100%);
  color: #ffffff;
}

.primary-btn:hover {
  filter: brightness(0.96);
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbfa 62%, #f3f9f8 100%);
  border: 1px solid #dbe9e5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.1vw, 24px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #0c8c75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.26rem, 1.5vw, 1.46rem);
}

.hero-card p {
  margin: 0;
  color: #556b67;
  max-width: 65ch;
}

.hero-chip-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hero-chip {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d8eae4;
  background: #fbfefd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hero-chip span {
  color: #6e8580;
  font-size: 0.8rem;
}

.hero-chip strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid #dbe8e4;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(23, 61, 52, 0.07);
}

.metric-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #6b817d;
}

.metric-card h3 {
  margin: 6px 0 0;
  font-size: 1.4rem;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: #7c908d;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.panel {
  background: var(--surface);
  border: 1px solid #dbe8e4;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(23, 61, 52, 0.07);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eeea;
}

.panel-head--licenses {
  align-items: flex-start;
  flex-wrap: wrap;
}

.panel-head__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form--panel input {
  width: min(320px, 52vw);
}

.panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-head--activities {
  align-items: center;
}

.panel-kicker {
  margin: 0 0 2px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c827d;
  font-weight: 700;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #def3ed 0%, #d1ece5 100%);
  border: 1px solid #b8ddd3;
  color: #0d6f5f;
  font-size: 0.76rem;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #ecf3f1;
  font-size: 0.88rem;
  vertical-align: middle;
}

th {
  color: #617874;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td code {
  color: #115646;
  font-size: 0.84rem;
}

.mono-clip {
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.table-strong {
  font-weight: 700;
}

.table-subtext {
  margin-top: 3px;
  color: #6f8580;
  font-size: 0.78rem;
}

.action-row {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #cde1db;
  background: #f5fbf9;
  color: #305850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.action-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(34, 80, 72, 0.16);
}

.action-icon-btn:focus-visible {
  outline: 2px solid #0ea282;
  outline-offset: 2px;
}

.action-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon-btn--edit {
  background: #e8f8f3;
  border-color: #bbdfd4;
  color: #0d6e5d;
}

.action-icon-btn--reset {
  background: #fff4df;
  border-color: #f0d5a6;
  color: #8a6207;
}

.action-icon-btn--deactivate {
  background: #fce9e5;
  border-color: #edc3bc;
  color: #8e382e;
}

.action-icon-btn--activate {
  background: #e5f5ec;
  border-color: #bfdfcf;
  color: #226248;
}

.action-icon-btn--delete {
  background: #f2f3f5;
  border-color: #d4d8dc;
  color: #4f5660;
}

.stack {
  display: grid;
  gap: 12px;
}

.timeline {
  margin: 0;
  padding: 14px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.timeline--activities {
  position: relative;
  isolation: isolate;
}

.timeline--activities::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 159, 136, 0.25) 0%, rgba(15, 159, 136, 0.08) 100%);
  z-index: -1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
}

.timeline-item__dot {
  width: 12px;
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(15, 159, 136, 0.18);
  background: #0f9f88;
}

.timeline-item__body {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid #dbe8e4;
  background: linear-gradient(170deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: 0 8px 16px rgba(23, 61, 52, 0.06);
}

.timeline-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-item strong {
  color: #17312c;
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-item__body > span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #58726e;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-tag--ok {
  color: #0d6b5b;
  background: #e3f6f0;
  border-color: #bee8dc;
}

.timeline-tag--warn {
  color: #845e09;
  background: #fff0d0;
  border-color: #efd49c;
}

.timeline-tag--critical {
  color: #8a3429;
  background: #fce5e1;
  border-color: #efc2bc;
}

.timeline-item--ok .timeline-item__dot {
  background: #0f9f88;
  box-shadow: 0 0 0 4px rgba(15, 159, 136, 0.18);
}

.timeline-item--warn .timeline-item__dot {
  background: #d49115;
  box-shadow: 0 0 0 4px rgba(212, 145, 21, 0.16);
}

.timeline-item--critical .timeline-item__dot {
  background: #c74a38;
  box-shadow: 0 0 0 4px rgba(199, 74, 56, 0.14);
}

.timeline-empty {
  margin: 2px 0;
  padding: 14px;
  border: 1px dashed #cfe2dd;
  border-radius: 12px;
  background: #f9fcfb;
  display: grid;
  gap: 4px;
}

.timeline-empty strong {
  color: #1c3a34;
  font-size: 0.82rem;
}

.timeline-empty span {
  color: #68807b;
  font-size: 0.8rem;
}

.panel--accent {
  background: linear-gradient(180deg, #fffef9 0%, #fffcf3 100%);
  border-color: #f4deaa;
}

.panel--risk {
  overflow: visible;
}

.risk-score {
  margin: 14px 14px 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ead39e;
  background: linear-gradient(160deg, #fffef8 0%, #fff8e8 100%);
}

.risk-score__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.risk-score__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7f6e41;
  font-weight: 700;
}

.risk-score__value {
  display: block;
  margin-top: 2px;
  color: #3e2d00;
  font-size: 1.7rem;
  line-height: 1;
}

.risk-score__hint {
  margin: 6px 0 0;
  color: #7b6b43;
  font-size: 0.76rem;
  line-height: 1.35;
}

.risk-score__track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #e8d3a2;
  background: #fff8e7;
  overflow: hidden;
}

.risk-score__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.risk-score__fill--low {
  background: linear-gradient(90deg, #5bbb8c 0%, #0f9f88 100%);
}

.risk-score__fill--medium {
  background: linear-gradient(90deg, #e2b041 0%, #d49115 100%);
}

.risk-score__fill--high {
  background: linear-gradient(90deg, #de7464 0%, #c74a38 100%);
}

.risk-kpis {
  padding: 6px 14px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.risk-kpi {
  border-radius: 10px;
  border: 1px solid #efdcae;
  background: rgba(255, 255, 255, 0.65);
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.risk-kpi span {
  color: #7f6e43;
  font-size: 0.73rem;
  line-height: 1.35;
}

.risk-kpi strong {
  color: #35270f;
  font-size: 1.15rem;
  line-height: 1.1;
}

.risk-kpi small {
  color: #6f6140;
  font-size: 0.74rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f6d61;
  font-size: 0.84rem;
}

.checklist--risk li {
  align-items: flex-start;
  line-height: 1.42;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f9f88;
  box-shadow: 0 0 0 4px rgba(15, 159, 136, 0.14);
  flex-shrink: 0;
}

.dot--ok {
  background: #0f9f88;
  box-shadow: 0 0 0 4px rgba(15, 159, 136, 0.14);
}

.dot--warn {
  background: #d49115;
  box-shadow: 0 0 0 4px rgba(212, 145, 21, 0.15);
}

.dot--critical {
  background: #c74a38;
  box-shadow: 0 0 0 4px rgba(199, 74, 56, 0.15);
}

.chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.chip--ok {
  color: #0a6e5d;
  background: #e2f6f0;
  border-color: #bfe8dc;
}

.chip--warn {
  color: #8b650c;
  background: #fff2d7;
  border-color: #f5dcab;
}

.chip--off {
  color: #8f3b30;
  background: #fce5e1;
  border-color: #f1c2ba;
}

.chip--low {
  color: #23664d;
  background: #dff3e8;
  border-color: #bde3d1;
}

.chip--med {
  color: #8b671f;
  background: #ffefc8;
  border-color: #efd49f;
}

.chip--high {
  color: #893c31;
  background: #f7ddd9;
  border-color: #e8bab4;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fcfb;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  background: #31544d;
  border-radius: 999px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 33, 28, 0.36);
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 9;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-in 580ms cubic-bezier(0.18, 0.82, 0.31, 1) forwards;
}

.topbar.reveal {
  animation-delay: 40ms;
}

.hero-card.reveal {
  animation-delay: 120ms;
}

.metrics.reveal {
  animation-delay: 200ms;
}

.panel.reveal,
.stack.reveal {
  animation-delay: 280ms;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  border: 1px solid #dbe8e4;
  border-radius: 14px;
}

.modal-section-title {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.license-picker {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dbe8e4;
  border-radius: 12px;
  background: #f8fcfb;
}

.license-picker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1ece9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.license-picker-item input {
  margin-top: 3px;
}

.license-picker-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.license-picker-item strong,
.license-picker-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-picker-item small {
  color: #6f8580;
}

.btn {
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #12aa90 0%, #0a6d5e 100%);
  border-color: #0a6d5e;
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-shell {
  width: min(520px, 100%);
}

.auth-card {
  border: 1px solid #dbe8e4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: var(--shadow);
}

.auth-card__header {
  padding: 1.3rem 1.3rem 1rem;
  border-bottom: 1px solid #e2eeea;
}

.auth-card__header h1 {
  margin: 0;
}

.auth-card__body {
  padding: 1.3rem;
}

.modal-dialog {
  margin: 1rem auto;
}

.dashboard-body {
  min-height: 100vh;
}

.dashboard-body .card {
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 61, 52, 0.07);
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    height: 100vh;
    transform: translateX(-103%);
    transition: transform 240ms ease;
    z-index: 11;
  }

  body.nav-open .dashboard-sidebar {
    transform: translateX(0);
  }

  body.nav-open .scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .search-form input {
    width: 100%;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .table-wrap--cards {
    overflow: visible;
  }

  table.mobile-cards-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  table.mobile-cards-table thead {
    display: none;
  }

  table.mobile-cards-table tbody {
    display: block;
  }

  table.mobile-cards-table tr {
    display: block;
    margin-bottom: 10px;
    background: #fbfefd;
    border: 1px solid #dbe8e4;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(23, 61, 52, 0.08);
    overflow: hidden;
  }

  table.mobile-cards-table tr.table-empty-row {
    margin-bottom: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  table.mobile-cards-table tr.table-empty-row td {
    border: 1px dashed #d7e5e1;
    border-radius: 12px;
  }

  table.mobile-cards-table td {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid #e8f1ee;
    text-align: left;
  }

  table.mobile-cards-table td:last-child {
    border-bottom: 0;
  }

  table.mobile-cards-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #617874;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
  }

  table.mobile-cards-table td code {
    white-space: normal;
    word-break: break-word;
  }

  #activities-table .mono-clip {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  #licenses-table .action-row,
  #customer-licenses-table .action-row,
  #customer-purchases-table .action-row,
  #overview-recent .action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .dashboard-workspace {
    padding: 18px 12px 20px;
  }

  .topbar-right {
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-form--panel {
    width: 100%;
  }

  .panel-head,
  .panel-head__actions,
  .customer-section-head {
    align-items: stretch;
  }

  .search-form input,
  .search-form select,
  .search-form .ghost-btn {
    width: 100%;
  }

  .ghost-btn,
  .primary-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .risk-kpis {
    grid-template-columns: 1fr;
  }

  .timeline--activities::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-item__dot {
    width: 10px;
    height: 10px;
    margin-top: 11px;
  }

  .action-row {
    justify-content: flex-start;
  }

  .modal-dialog {
    margin: 0.75rem auto;
  }

  .modal-content {
    border-radius: 16px;
  }
}

.customer-area-body {
  min-height: 100vh;
}

.customer-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.customer-shell--narrow {
  width: min(680px, calc(100% - 32px));
}

.customer-shell--buy {
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 32px;
}

.customer-topbar-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 28px;
  margin-bottom: 34px;
}

.customer-topbar-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 223, 217, 0), rgba(205, 223, 217, 0.9) 14%, rgba(205, 223, 217, 0.9) 86%, rgba(205, 223, 217, 0));
}

.customer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.customer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.customer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cfe4df;
  background: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%);
  box-shadow: 0 8px 20px rgba(9, 100, 85, 0.14);
}

.customer-links,
.customer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-links a,
.customer-user-badge {
  text-decoration: none;
  color: #355753;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid #e0ebe7;
}

.customer-user-badge {
  appearance: none;
  cursor: pointer;
  color: #0a6d5e;
}

.customer-user-badge::after {
  margin-left: 8px;
}

.customer-dropdown-menu {
  min-width: 220px;
  padding: 8px;
  border: 1px solid #d9e7e3;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(24, 60, 51, 0.14);
}

.customer-dropdown-menu .dropdown-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: #355753;
}

.customer-dropdown-menu .dropdown-item.active,
.customer-dropdown-menu .dropdown-item:active {
  background: #e7f4f0;
  color: #0a6d5e;
}

.customer-dropdown-menu form {
  margin: 0;
}

.customer-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card,
.customer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(24, 60, 51, 0.08);
}

.hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 20px;
  margin-bottom: 22px;
}

.page-kicker,
.panel-kicker {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e7872;
  font-weight: 700;
}

.hero-card h1,
.customer-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.08;
}

.page-copy,
.panel-copy {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.hero-points span,
.soft-box,
.summary-card,
.license-card,
.inline-alert {
  border-radius: 18px;
}

.hero-points span {
  display: block;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(15, 159, 136, 0.1) 0%, rgba(242, 179, 73, 0.12) 100%);
  border: 1px solid rgba(15, 159, 136, 0.12);
  font-weight: 600;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.split-layout--buy {
  width: min(860px, 100%);
  margin: 0 auto;
  align-self: center;
  align-items: center;
}

.split-layout--buy > .customer-panel {
  height: 100%;
}

.split-layout--buy .customer-panel--soft {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-layout--buy .soft-box {
  display: flex;
  justify-content: center;
}

.marketing-buy {
  display: grid;
  gap: 28px;
}

.buy-hero,
.buy-section,
.buy-showcase,
.buy-license-band,
.buy-stack,
.buy-faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 60, 51, 0.08);
}

.buy-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}

.buy-hero__copy {
  min-width: 0;
}

.buy-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.05rem, 4.7vw, 4.4rem);
  line-height: 1.02;
}

.buy-hero__copy > p:not(.panel-kicker) {
  margin: 18px 0 0;
  max-width: 700px;
  color: var(--ink-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.buy-hero__actions,
.buy-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buy-hero__actions {
  margin-top: 24px;
}

.buy-hero__badges {
  margin-top: 20px;
}

.buy-hero__badges span,
.buy-license-band__points span {
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid #d9e7e3;
  background: #f8fcfb;
  color: #34524d;
  font-weight: 700;
  font-size: 0.84rem;
}

.buy-hero__media {
  margin: 0;
  min-width: 0;
  border: 1px solid #cfe1db;
  border-radius: 18px;
  overflow: hidden;
  background: #0e1c19;
  box-shadow: 0 22px 48px rgba(23, 61, 52, 0.22);
}

.buy-hero__media img,
.buy-showcase__images img {
  display: block;
  width: 100%;
  height: auto;
}

.buy-section,
.buy-license-band,
.buy-stack,
.buy-faq {
  padding: clamp(22px, 3vw, 32px);
}

.buy-section--intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.buy-section h2,
.buy-showcase h2,
.buy-license-band h2,
.buy-stack h2,
.buy-faq h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.12;
}

.buy-section p,
.buy-showcase p,
.buy-license-band p,
.buy-stack p,
.buy-faq p,
.buy-showcase li,
.buy-steps li {
  color: var(--ink-muted);
  line-height: 1.72;
}

.buy-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.buy-feature-grid article {
  min-height: 172px;
  padding: 20px;
  border: 1px solid #dbe8e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(24, 60, 51, 0.06);
}

.buy-feature-grid strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.buy-feature-grid p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.64;
}

.buy-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
}

.buy-showcase ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.buy-showcase__images {
  display: grid;
  gap: 14px;
}

.buy-showcase__images img {
  border: 1px solid #cfe1db;
  border-radius: 14px;
  background: #10231f;
  box-shadow: 0 16px 34px rgba(23, 61, 52, 0.12);
}

.buy-license-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: center;
}

.buy-license-band__points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
  align-items: center;
}

.buy-stack code,
.buy-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.buy-code {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #d6e7e2;
  background: #10231f;
  color: #e9fbf6;
  overflow-x: auto;
  line-height: 1.6;
}

.buy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: buy-steps;
}

.buy-steps li {
  counter-increment: buy-steps;
  padding: 16px;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  background: #fff;
}

.buy-steps li::before {
  content: counter(buy-steps);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #e7f4f0;
  color: #0a6d5e;
  font-weight: 800;
}

.buy-faq details {
  padding: 16px 0;
  border-top: 1px solid #e2ece9;
}

.buy-faq details:first-of-type {
  border-top: 0;
}

.buy-faq summary {
  cursor: pointer;
  color: #233b37;
  font-weight: 800;
}

.buy-faq p {
  margin: 10px 0 0;
}

.buy-checkout-section {
  scroll-margin-top: 24px;
}

.buy-checkout-card {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(24, 60, 51, 0.08);
}

.buy-checkout-form {
  min-width: 0;
}

.buy-checkout-form .customer-section-head {
  align-items: start;
  margin-bottom: 20px;
}

.buy-checkout-form h2,
.buy-checkout-aside h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.12;
}

.buy-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buy-form-grid label {
  min-width: 0;
}

.buy-form-grid .primary-btn {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.buy-form-grid--compact {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
}

.buy-checkout-aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbe8e4;
  border-radius: 18px;
  background: #f8fcfb;
}

.buy-checkout-aside p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.buy-checkout-aside .ghost-btn {
  width: 100%;
  justify-content: center;
}

.buy-checkout-aside__list {
  display: grid;
  gap: 8px;
}

.buy-checkout-aside__list span {
  padding: 10px 12px;
  border: 1px solid #dbe8e4;
  border-radius: 12px;
  background: #fff;
  color: #36504c;
  font-weight: 700;
  font-size: 0.9rem;
}

.split-layout--dashboard {
  margin-bottom: 18px;
}

.customer-auth-layout {
  display: grid;
  gap: 18px;
}

.customer-panel {
  padding: 22px;
}

.customer-panel--soft {
  background: rgba(247, 251, 249, 0.94);
}

.customer-panel--auth {
  padding: 28px;
}

.customer-panel--minimal {
  padding: 24px;
}

.account-form-actions {
  display: flex;
  justify-content: flex-start;
}

.customer-inline-alert {
  margin-top: 18px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.customer-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.customer-section-head h1,
.customer-section-head h2,
.customer-section-head h3 {
  margin: 0;
}

.customer-section-head p {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

.form-stack label,
.inline-form label {
  display: grid;
  gap: 8px;
  color: #36504c;
  font-weight: 600;
}

.form-stack input,
.form-stack textarea,
.inline-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #cedfd9;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.form-stack textarea {
  min-height: 112px;
  resize: vertical;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.inline-alert--error {
  background: #fff1ef;
  border-color: #f1c4bd;
  color: #9b3829;
}

.inline-alert--warn {
  background: #fff7e6;
  border-color: #f0d39a;
  color: #91631f;
}

.inline-alert--success {
  background: #eefaf6;
  border-color: #bfe0d5;
  color: #0a6d5e;
}

.steps-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.steps-list li + li {
  margin-top: 8px;
}

.customer-shell--help {
  width: min(100% - 32px, 1240px);
}

.customer-help-panel {
  padding: 28px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  background: #f8fcfb;
}

.help-nav a {
  padding: 9px 10px;
  border-radius: 10px;
  color: #355753;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.help-nav a:hover {
  background: #e7f4f0;
  color: #0a6d5e;
}

.help-content {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.help-section {
  scroll-margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2ece9;
}

.help-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.help-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.help-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.help-section p,
.help-section li {
  color: var(--ink-muted);
  line-height: 1.72;
}

.help-section p {
  margin: 0 0 14px;
}

.help-section ol,
.help-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.help-section a {
  color: #0a6d5e;
  font-weight: 700;
}

.help-section code,
.help-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.help-code {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #d6e7e2;
  border-radius: 12px;
  background: #10231f;
  color: #e9fbf6;
  overflow-x: auto;
  white-space: pre;
  font-size: 0.84rem;
  line-height: 1.55;
}

.help-checklist {
  display: grid;
  gap: 14px;
}

.help-checklist > div {
  padding: 14px 0;
  border-top: 1px solid #e2ece9;
}

.help-checklist > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.help-section details {
  border-top: 1px solid #e2ece9;
  padding: 14px 0;
}

.help-section details:first-of-type {
  border-top: 0;
}

.help-section summary {
  cursor: pointer;
  font-weight: 800;
  color: #233b37;
}

.help-section details p {
  margin: 10px 0 0;
}

.soft-box {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dbe8e4;
}

.soft-box p {
  margin: 8px 0 14px;
  color: var(--ink-muted);
}

.customer-metrics {
  margin-bottom: 18px;
}

.customer-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.customer-masthead--simple,
.customer-masthead--single {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: #68807c;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
}

.license-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.license-card {
  padding: 18px;
  border: 1px solid #d8e7e3;
  background: #fff;
  box-shadow: none;
}

.license-card--compact {
  gap: 10px;
  display: grid;
}

.license-card__head,
.license-card__meta,
.license-card__actions,
.summary-grid,
.success-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.license-card__meta {
  margin: 14px 0 18px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.license-card__hint {
  margin-top: 8px;
  color: #7b908c;
  font-size: 0.82rem;
  font-weight: 500;
}

.license-card__label {
  display: block;
  margin-bottom: 6px;
  color: #69817d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.readonly-key {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0d1816;
  color: #f4fff9;
  font-size: 0.98rem;
  word-break: break-all;
}

.summary-grid {
  margin-top: 18px;
}

.summary-card {
  min-width: 200px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d8e7e3;
  flex: 1 1 180px;
}

.summary-card span {
  display: block;
  color: #6b807d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.summary-card strong {
  display: block;
  word-break: break-all;
}

.empty-state {
  padding: 22px;
  border: 1px dashed #cfe1db;
  border-radius: 18px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.success-actions {
  margin-top: 18px;
}

.success-actions--spread {
  align-items: center;
}

.customer-table-wrap {
  border-radius: 18px;
  border: 1px solid #dbe8e4;
  overflow: hidden;
}

.mini-table td code {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid #e5eeea;
}

.ghost-btn--danger {
  border-color: #efc4bd;
  color: #9b3829;
}

@media (max-width: 980px) {
  .customer-shell,
  .customer-shell--narrow,
  .customer-topbar-wrap {
    width: min(100% - 20px, 1180px);
  }

  .customer-shell--buy {
    min-height: unset;
    row-gap: 20px;
  }

  .customer-topbar-wrap {
    padding-top: 20px;
    margin-bottom: 20px;
  }

  .customer-topbar-wrap::after {
    display: none;
  }

  .hero-card,
  .split-layout,
  .customer-masthead {
    grid-template-columns: 1fr;
  }

  .split-layout--buy {
    width: 100%;
    max-width: 720px;
  }

  .buy-hero,
  .buy-section--intro,
  .buy-showcase,
  .buy-license-band,
  .buy-stack,
  .buy-checkout-card {
    grid-template-columns: 1fr;
  }

  .buy-feature-grid,
  .buy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-card-grid {
    grid-template-columns: 1fr;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .auth-body {
    padding: 14px;
  }

  .auth-card__header,
  .auth-card__body {
    padding: 1rem;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .customer-help-panel {
    padding: 20px;
  }

  .help-nav {
    grid-template-columns: 1fr;
  }

  .help-code {
    font-size: 0.76rem;
    padding: 12px;
  }

  .inline-form,
  .success-actions,
  .customer-actions {
    width: 100%;
  }

  .inline-form label,
  .inline-form button,
  .success-actions a,
  .customer-actions form,
  .customer-actions .customer-user-badge,
  .customer-topbar .dropdown,
  .customer-topbar .customer-user-badge,
  .customer-topbar .customer-brand {
    width: 100%;
  }

  .customer-brand {
    justify-content: center;
  }

  .customer-topbar .dropdown-menu {
    width: 100%;
    min-width: 0;
  }

  .hero-card,
  .customer-panel {
    padding: 18px;
  }

  .mini-table td code {
    max-width: 180px;
  }

  .customer-shell,
  .customer-shell--narrow,
  .customer-topbar-wrap {
    width: calc(100% - 24px);
  }

  .customer-topbar-wrap {
    padding-top: 16px;
    margin-bottom: 16px;
  }

  .customer-shell--buy {
    row-gap: 16px;
  }

  .marketing-buy {
    gap: 18px;
  }

  .split-layout--buy > .customer-panel {
    height: auto;
  }

  .customer-panel--auth,
  .customer-panel--minimal {
    padding: 18px;
  }

  .customer-section-head {
    margin-bottom: 14px;
  }

  .customer-panel h1,
  .hero-card h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.12;
  }

  .buy-hero,
  .buy-section,
  .buy-showcase,
  .buy-license-band,
  .buy-stack,
  .buy-faq {
    border-radius: 18px;
  }

  .buy-hero {
    padding: 20px;
  }

  .buy-checkout-card {
    padding: 20px;
  }

  .buy-hero h1 {
    font-size: 2rem;
  }

  .buy-feature-grid,
  .buy-steps,
  .buy-form-grid {
    grid-template-columns: 1fr;
  }

  .buy-feature-grid article {
    min-height: 0;
  }

  .panel-copy,
  .page-copy,
  .customer-section-head p {
    line-height: 1.55;
  }

  .form-stack {
    gap: 12px;
  }

  .readonly-key {
    width: 100%;
    font-size: 0.9rem;
  }

  .summary-card {
    min-width: 0;
    width: 100%;
  }

  .success-actions {
    margin-top: 14px;
  }

  .success-actions a,
  .success-actions button,
  .soft-box .ghost-btn,
  .account-form-actions .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .customer-table-wrap {
    border: 0;
    overflow: visible;
  }

  .panel-head__actions .primary-btn,
  .panel-head__actions .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .dashboard-workspace {
    padding-inline: 10px;
  }

  .customer-shell,
  .customer-shell--narrow,
  .customer-topbar-wrap {
    width: calc(100% - 16px);
  }

  .customer-brand span {
    font-size: 0.95rem;
  }

  .customer-brand img {
    width: 38px;
    height: 38px;
  }

  .ghost-btn,
  .primary-btn,
  .btn {
    min-height: 44px;
  }
}
