@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --bg: #0b0f14;
  --bg-elevated: #0f141c;
  --surface: rgba(18, 24, 33, 0.94);
  --surface-solid: #121821;
  --surface-muted: #18212c;
  --text: #ffffff;
  --muted: #b0bec5;
  --muted-strong: #d3dde2;
  --line: rgba(176, 190, 197, 0.18);
  --line-strong: rgba(0, 191, 166, 0.38);
  --accent: #00bfa6;
  --accent-deep: #009985;
  --accent-soft: rgba(0, 191, 166, 0.12);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.24);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.98rem, 0.22vw + 0.94rem, 1rem);
  background:
    radial-gradient(circle at top left, rgba(0, 191, 166, 0.12), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(0, 191, 166, 0.08), transparent 18%),
    linear-gradient(180deg, #0b0f14 0%, #0c1118 38%, #0a0e13 100%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a.button,
a.button-secondary,
a.button-ghost {
  cursor: pointer;
}

button,
.button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 20, 0.82);
  border-bottom: 1px solid rgba(176, 190, 197, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span {
  display: block;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 33, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--text);
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span {
  transform: translateY(0);
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded='true'] span {
  opacity: 0;
}

.nav-toggle[aria-expanded='true']::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true']::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(0, 191, 166, 0.1);
}

.nav-cta {
  margin-left: 6px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button-secondary:disabled,
.button-ghost:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.button {
  color: #02110f;
  background: linear-gradient(135deg, var(--accent) 0%, #4de0cf 100%);
  border-color: rgba(77, 224, 207, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 191, 166, 0.18), 0 10px 22px rgba(0, 191, 166, 0.14);
}

.site-nav .nav-cta {
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #008b79 0%, #00bfa6 100%);
  border-color: rgba(77, 224, 207, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 191, 166, 0.12), 0 8px 18px rgba(0, 191, 166, 0.18);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #00917e 0%, #24d5bc 100%);
  border-color: rgba(147, 243, 229, 0.62);
}

.site-nav .nav-login {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted-strong);
  background: rgba(18, 24, 33, 0.92);
  border: 1px solid rgba(176, 190, 197, 0.16);
}

.site-nav .nav-login:hover,
.site-nav .nav-login:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(18, 24, 33, 0.98);
}

.site-nav .nav-access-toggle {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted-strong);
  background: rgba(18, 24, 33, 0.92);
  border: 1px solid rgba(176, 190, 197, 0.16);
  cursor: pointer;
}

.site-nav .nav-access-toggle:hover,
.site-nav .nav-access-toggle:focus-visible,
.nav-item.has-dropdown.is-open .nav-access-toggle,
.site-nav .nav-access-toggle.is-current {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(18, 24, 33, 0.98);
}

.site-nav .nav-access-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.nav-item.has-dropdown.is-open .nav-access-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.98) 0%, rgba(15, 21, 29, 0.99) 100%);
  border: 1px solid rgba(176, 190, 197, 0.16);
  box-shadow: var(--shadow-lg);
}

.nav-item.has-dropdown.is-open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 21, 29, 0.92);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.is-active {
  color: var(--text);
  background: rgba(18, 27, 35, 0.98);
  border-color: rgba(0, 191, 166, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(18, 24, 33, 0.96);
  border-color: var(--line);
}

.button-ghost {
  color: var(--muted-strong);
  background: transparent;
  border-color: rgba(176, 190, 197, 0.16);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.hero {
  padding: 46px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, 0.98fr);
  gap: 20px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 191, 166, 0.08);
  border: 1px solid rgba(0, 191, 166, 0.18);
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-copy,
.hero-panel,
.service-card,
.feature-card,
.proof-card,
.position-card,
.cta-panel,
.stat-strip,
.timeline-card,
.contact-note,
.case-study-card,
.page-panel,
.screenshot-stack,
.metric-card,
.detail-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.98) 0%, rgba(17, 23, 32, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.hero-copy,
.hero-panel,
.position-card,
.cta-panel,
.page-heading,
.page-panel,
.contact-note,
.screenshot-stack {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.hero-copy h1 {
  max-width: 12.5ch;
  margin: 12px 0 18px;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.042em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span + span {
  margin-top: 0.15em;
}

.hero-copy p {
  max-width: 56ch;
}

.hero-copy p,
.page-heading .lead,
.section-header p,
.page-heading p,
.cta-panel p,
.body-copy p,
.proof-card p,
.service-card p,
.feature-card p,
.detail-card p,
.metric-card p,
.contact-note p,
.footer-copy,
.route-card span {
  margin: 0;
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
}

.hero-signals,
.page-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-signal {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.82);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hero-routing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.route-card,
.page-subnav a {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 21, 29, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.route-card {
  padding: 15px;
}

.route-card:hover,
.service-card:hover,
.feature-card:hover,
.proof-card:hover,
.detail-card:hover,
.case-study-card:hover,
.stat-strip:hover,
.metric-card:hover,
.page-panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.route-card strong,
.service-card strong,
.feature-card strong,
.detail-card strong,
.metric-card strong,
.stat-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
}

.account-summary-list,
.portal-side-list {
  display: grid;
  gap: 10px;
}

.account-summary-row,
.portal-side-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.84);
}

a.account-summary-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

a.account-summary-row:hover,
a.account-summary-row:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(18, 27, 35, 0.96);
  box-shadow: var(--shadow-sm);
}

.portal-side-row {
  grid-template-columns: 1fr;
  align-items: start;
}

.account-summary-row strong,
.portal-side-row strong {
  display: block;
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.account-summary-row p,
.portal-side-row p {
  max-width: 46ch;
  font-size: 0.94rem;
  line-height: 1.55;
}

.account-summary-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 166, 0.2);
  background: rgba(0, 191, 166, 0.1);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-logged-out-actions {
  margin-top: 2px;
}

.portal-notice-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: linear-gradient(180deg, rgba(18, 26, 35, 0.98) 0%, rgba(15, 21, 29, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.portal-notice-card h2 {
  margin: 10px 0 8px;
  max-width: 17ch;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.portal-notice-card p {
  max-width: 56ch;
  font-size: 0.98rem;
  line-height: 1.6;
}

.portal-auth-panel,
.portal-dashboard-panel {
  margin-top: 14px;
}

.portal-shell {
  display: grid;
  gap: 16px;
}

.portal-session-panel {
  margin-top: 0;
}

.portal-session-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-session-copy {
  margin: 10px 0 0;
  color: var(--muted-strong);
}

.portal-auth-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portal-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.16);
  background: rgba(15, 21, 29, 0.92);
  color: var(--text);
  font: inherit;
}

.portal-input::placeholder {
  color: var(--muted);
}

.portal-input:focus-visible {
  outline: 2px solid rgba(0, 191, 166, 0.34);
  outline-offset: 2px;
  border-color: rgba(0, 191, 166, 0.3);
}

.portal-status-message {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--muted-strong);
}

.portal-status-message[data-tone="warn"] {
  color: #ffc460;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-main-section {
  padding-top: 10px;
}

.portal-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.portal-primary-column,
.portal-secondary-column {
  display: grid;
  gap: 18px;
}

.portal-stack-section {
  display: grid;
  gap: 16px;
}

.portal-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-service-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.portal-service-card.is-inactive {
  border-color: rgba(176, 190, 197, 0.1);
}

.portal-service-status {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.portal-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.portal-billing-panel {
  display: grid;
  gap: 16px;
}

.portal-billing-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-billing-status {
  margin: 6px 0 0;
  color: var(--muted-strong);
}

.portal-billing-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-billing-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.72);
}

.portal-support-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 110px;
}

.portal-divider {
  height: 1px;
  margin: 16px 0 0;
  border: 0;
  background: rgba(176, 190, 197, 0.12);
}

.portal-section + .portal-section {
  margin-top: 16px;
}

.portal-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -96px;
  right: -72px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.18) 0%, rgba(0, 191, 166, 0) 70%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.16);
  box-shadow: var(--shadow-lg);
}

.panel-label {
  display: block;
  max-width: 34ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 166, 0.16);
  background: rgba(0, 191, 166, 0.06);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stats,
.stats-grid,
.feature-grid,
.service-grid,
.proof-grid,
.metric-grid,
.details-grid,
.case-grid,
.footer-grid,
.screenshot-grid {
  display: grid;
  gap: 14px;
}

.hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat-strip,
.service-card,
.proof-card,
.feature-card,
.metric-card,
.detail-card,
.case-study-card,
.timeline-card {
  min-width: 0;
  padding: 17px;
  border-radius: var(--radius-md);
  align-content: start;
}

.stat-strip {
  display: grid;
  align-content: start;
  gap: 6px;
}

.stat-strip span,
.feature-card strong,
.service-card p,
.proof-card p,
.detail-card p,
.case-study-card p,
.timeline-card p,
.metric-card p {
  overflow-wrap: anywhere;
}

.stat-strip span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.5;
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.section {
  padding: 18px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.section-header h2,
.page-heading h1,
.cta-panel h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(1.375rem, 4vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-header h2 {
  margin-top: 6px;
}

.page-heading h1,
.cta-panel h2 {
  margin-top: 12px;
  margin-bottom: 10px;
}

.service-grid,
.proof-grid,
.details-grid,
.case-grid,
.pricing-grid,
.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.inventory-proof-grid {
  align-items: start;
}

.inventory-proof-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.inventory-proof-shot {
  margin-top: 2px;
  padding: 6px;
}

.inventory-proof-shot img {
  aspect-ratio: 16 / 8.8;
}

.inventory-proof-shot.is-portrait img {
  aspect-ratio: 10 / 14;
}

.service-card .link-row,
.case-study-card .link-row,
.timeline-card .link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.service-visual {
  margin-bottom: 14px;
}

.service-visual .screenshot-frame {
  padding: 8px;
}

.service-visual .screenshot-frame img {
  aspect-ratio: 16 / 9;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #75eadb;
}

.link-inline-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--muted-strong);
}

.link-inline-subtle:hover,
.link-inline-subtle:focus-visible {
  color: var(--text);
}

.feature-grid,
.stats-grid,
.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid,
.consultation-grid,
.contact-points {
  display: grid;
  gap: 12px;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-card,
.consultation-card,
.contact-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.98) 0%, rgba(17, 23, 32, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.pricing-card.is-featured,
.consultation-card {
  border-color: var(--line-strong);
}

.pricing-card.is-active {
  border-color: var(--line-strong);
}

.pricing-card.is-inactive {
  border-color: rgba(176, 190, 197, 0.12);
}

.pricing-card.is-inactive .plan-tag {
  border-color: rgba(176, 190, 197, 0.14);
  background: rgba(176, 190, 197, 0.06);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 166, 0.18);
  background: rgba(0, 191, 166, 0.09);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-stack {
  margin: 12px 0 6px;
}

.price-stack strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.price-stack span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-intro {
  margin-bottom: 14px;
  color: var(--muted);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.pricing-actions .button,
.pricing-actions .button-secondary,
.pricing-actions .button-ghost {
  min-width: 0;
}

.pricing-card h3,
.consultation-card h3,
.contact-card h3 {
  margin: 12px 0 8px;
  font-size: 1.16rem;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.pricing-card p,
.consultation-card p,
.contact-card p,
.contact-link {
  color: var(--muted);
}

.contact-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  font-weight: 700;
  color: var(--muted-strong);
  line-height: 1.48;
  text-decoration: none;
  transition: color 180ms ease, text-decoration-color 180ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(117, 234, 219, 0.45);
  text-underline-offset: 0.14em;
}

.contact-points {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 14px;
}

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.support-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.support-inline .contact-link {
  width: auto;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.summary-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.82);
  overflow: hidden;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.summary-value.is-placeholder {
  color: var(--muted-strong);
}

.summary-value.is-live {
  color: var(--text);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 166, 0.18);
  background: rgba(0, 191, 166, 0.08);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.status-chip.is-neutral {
  border-color: rgba(176, 190, 197, 0.16);
  background: rgba(176, 190, 197, 0.08);
}

.status-chip.is-neutral::before {
  background: rgba(176, 190, 197, 0.9);
}

.status-chip.is-warn {
  border-color: rgba(255, 196, 96, 0.22);
  background: rgba(255, 196, 96, 0.08);
}

.status-chip.is-warn::before {
  background: #ffc460;
}

.portal-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  overflow: hidden;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.consultation-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.consultation-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.consultation-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.consultation-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.proof-card.is-wide,
.case-study-card.is-wide,
.page-panel.is-wide {
  grid-column: span 2;
}

.proof-list,
.check-list,
.mini-list,
.timeline-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li,
.check-list li,
.mini-list li,
.timeline-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.proof-list li::before,
.check-list li::before,
.mini-list li::before,
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.position-layout,
.cta-layout,
.page-layout,
.case-layout,
.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.position-mark {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.quote {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
  color: var(--muted-strong);
}

.screenshot-frame {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #0e141c;
  border: 1px solid rgba(176, 190, 197, 0.14);
  overflow: hidden;
}

.frame-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0, 191, 166, 0.05);
  border: 1px solid rgba(0, 191, 166, 0.1);
  color: var(--muted-strong);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.frame-label::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.screenshot-frame.is-ui-shot {
  padding: 8px;
}

.screenshot-frame.is-ui-shot img {
  background: #f5f7fa;
  object-fit: contain;
}

.screenshot-frame.is-ui-shot.is-dashboard img {
  aspect-ratio: 16 / 10;
}

.screenshot-frame.is-ui-shot.is-dashboard-detail img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.screenshot-frame.is-ui-shot.is-wide-ui img {
  aspect-ratio: 16 / 7.6;
  object-fit: contain;
  object-position: top center;
}

.screenshot-frame.is-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #0b1016;
}

.screenshot-frame.is-mobile-proof img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: top center;
  background: #f5f7fa;
}

.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.details-grid-balanced {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  align-items: start;
}

.details-grid-balanced .page-panel.is-wide {
  grid-column: span 1;
}

.detail-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.compliance-screenshot-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.72fr);
  align-items: stretch;
}

.stack-gap {
  margin-top: 14px;
}

.page-hero {
  padding: 36px 0 16px;
}

.page-layout {
  align-items: start;
}

.page-heading {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.98) 0%, rgba(15, 21, 29, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.page-heading > :is(h1, p, .lead, .page-subnav),
.cta-panel > :is(h2, p, .button-row),
.page-panel > :is(h3, p, ul, ol),
.contact-note > :is(strong, h3, p, ul, ol) {
  max-width: 40rem;
}

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-subnav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-subnav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.body-copy {
  display: grid;
  gap: 12px;
}

.body-copy h3,
.case-study-card h3,
.proof-card h3,
.position-card h3,
.cta-panel h2,
.service-card h3,
.page-panel h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.service-card > :is(h3, p, .link-row),
.feature-card > :is(strong, p, .link-row),
.proof-card > :is(h3, p),
.detail-card > :is(h3, p),
.case-study-card > :is(h3, p),
.timeline-card > :is(h3, p),
.metric-card > :is(h3, p) {
  max-width: 34rem;
}

.page-panel .mini-list,
.case-study-card .mini-list {
  margin-top: 14px;
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.split-visual .screenshot-frame {
  height: 100%;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.contact-note {
  display: grid;
  gap: 8px;
}

.contact-note strong {
  font-size: 1rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.site-footer {
  padding: 16px 0 34px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-top: 1px solid rgba(176, 190, 197, 0.12);
  padding-top: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover,
.link-inline:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .page-layout,
  .portal-layout-grid,
  .position-layout,
  .cta-layout,
  .case-layout,
  .proof-layout,
  .split-visual {
    grid-template-columns: 1fr;
  }

  .hero-routing,
  .hero-signals,
  .page-signals,
  .service-grid,
  .portal-service-grid,
  .proof-grid,
  .details-grid,
  .case-grid,
  .feature-grid,
  .stats-grid,
  .metric-grid,
  .screenshot-grid,
  .pricing-grid,
  .account-summary-grid,
  .portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-section-grid {
    grid-template-columns: 1fr;
  }

  .contact-points {
    grid-template-columns: 1fr;
  }

  .details-grid-balanced {
    grid-template-columns: 1fr;
  }

  .compliance-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consultation-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-summary-tag {
    width: fit-content;
  }

  .proof-card.is-wide,
  .case-study-card.is-wide,
  .page-panel.is-wide {
    grid-column: span 1;
  }

  .portal-support-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 21, 29, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav button,
  .nav-cta {
    width: 100%;
    margin-left: 0;
  }

  .button-row,
  .hero-actions,
  .pricing-actions,
  .portal-service-actions,
  .portal-session-actions,
  .portal-billing-actions {
    width: 100%;
  }

  .button-row .button,
  .button-row .button-secondary,
  .button-row .button-ghost,
  .hero-actions .button,
  .hero-actions .button-secondary,
  .hero-actions .button-ghost,
  .pricing-actions .button,
  .pricing-actions .button-secondary,
  .pricing-actions .button-ghost,
  .portal-service-actions .button,
  .portal-service-actions .button-secondary,
  .portal-service-actions .button-ghost,
  .portal-session-actions .button,
  .portal-session-actions .button-secondary,
  .portal-session-actions .button-ghost,
  .portal-billing-actions .button,
  .portal-billing-actions .button-secondary,
  .portal-billing-actions .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .nav-item.has-dropdown {
    width: 100%;
    display: grid;
  }

  .dropdown-menu {
    position: static;
    top: auto;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
  }

  .section-header,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .portal-billing-row,
  .portal-billing-actions,
  .portal-session-row,
  .portal-billing-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 30px;
  }

  .hero-copy,
  .hero-panel,
  .position-card,
  .cta-panel,
  .page-heading,
  .page-panel,
  .contact-note,
  .screenshot-stack {
    padding: 18px;
  }

  .hero-routing,
  .hero-signals,
  .page-signals,
  .service-grid,
  .portal-service-grid,
  .proof-grid,
  .details-grid,
  .case-grid,
  .feature-grid,
  .stats-grid,
  .metric-grid,
  .screenshot-grid,
  .hero-stats,
  .pricing-grid,
  .portal-summary-grid,
  .contact-points,
  .compliance-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-heading h1,
  .cta-panel h2,
  .section-header h2 {
    max-width: none;
    font-size: clamp(1.88rem, 8.2vw, 2.55rem);
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.portal-console-hero {
  padding-bottom: 8px;
}

.portal-shell {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
}

.portal-console-shell {
  align-items: start;
}

.portal-console-overview,
.portal-console-access-column {
  display: grid;
  gap: 16px;
}

.portal-console-heading {
  display: grid;
  gap: 14px;
}

.portal-console-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-console-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-console-lock::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background-color: rgba(0, 191, 166, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.5 10.7 12 5.2' fill='none' stroke='%23eafffb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  border: 1px solid rgba(77, 224, 207, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 191, 166, 0.14), 0 0 0 1px rgba(0, 191, 166, 0.08);
}

.portal-console-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-console-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-console-note,
.portal-aside-panel,
.portal-workspace-card {
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.92) 0%, rgba(13, 19, 27, 0.96) 100%);
  box-shadow: var(--shadow-sm);
}

.portal-overview-card,
.portal-billing-card {
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.72);
  box-shadow: var(--shadow-sm);
}

.portal-console-note {
  padding: 18px;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}

.portal-overview-card {
  padding: 15px 16px;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.portal-overview-card strong {
  display: block;
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.portal-overview-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.portal-console-note h2,
.portal-aside-panel h2 {
  margin: 0;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.portal-console-note p,
.portal-aside-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.portal-auth-panel,
.portal-session-panel {
  display: grid;
  gap: 14px;
  height: 100%;
}

.portal-auth-copy {
  display: grid;
  gap: 8px;
}

.portal-auth-copy h2,
.portal-session-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.62rem);
  letter-spacing: -0.03em;
}

.portal-console-heading h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.06;
}

.portal-console-heading .lead {
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.56;
}

.portal-auth-copy p,
.portal-session-head p {
  margin: 0;
  color: var(--muted-strong);
}

.portal-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-auth-links a {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-auth-links a:hover,
.portal-auth-links a:focus-visible {
  color: var(--text);
}

.portal-session-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.portal-session-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-session-copy {
  font-size: 1.08rem;
}

.portal-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-status-message[data-tone='ok'] {
  color: #87f2d8;
}

.portal-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.portal-billing-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-billing-card {
  padding: 16px;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.portal-billing-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.portal-billing-card p {
  margin: 0;
  color: var(--muted-strong);
}

.portal-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-aside-panel {
  padding: 24px;
  border-radius: 18px;
  display: grid;
  gap: 14px;
}

.portal-aside-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
}

.portal-aside-list li {
  padding-left: 4px;
}

@media (max-width: 1024px) {
  .portal-shell,
  .portal-console-summary-grid,
  .portal-console-note-grid,
  .portal-billing-workspace,
  .portal-billing-grid {
    grid-template-columns: 1fr;
  }

  .portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portal-session-head,
  .portal-session-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .portal-summary-grid,
  .portal-billing-grid,
  .portal-console-note-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-console-hero {
  padding: 28px 0 2px;
}

.portal-shell {
  gap: 12px;
}

.portal-console-overview,
.portal-console-access-column {
  gap: 10px;
}

.portal-console-access-column {
  justify-items: stretch;
  align-content: start;
}

.portal-console-heading {
  gap: 10px;
}

.portal-console-heading h1 {
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.portal-console-note-grid {
  gap: 10px;
}

.portal-console-note {
  min-width: 0;
  padding: 15px 16px;
  border-radius: 15px;
  gap: 7px;
}

.portal-auth-panel,
.portal-session-panel {
  width: 100%;
  max-width: 418px;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: opacity 240ms ease, transform 240ms ease, max-height 280ms ease, padding 280ms ease, margin 280ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.portal-auth-panel {
  max-height: 540px;
}
  max-width: none;
.portal-session-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-color: transparent;
  box-shadow: none;
}

.page-shell[data-portal-state='auth-loading'] .portal-auth-panel {
  border-color: rgba(0, 191, 166, 0.24);
  box-shadow: 0 0 0 1px rgba(0, 191, 166, 0.12), 0 18px 38px rgba(0, 0, 0, 0.24);
}

.page-shell[data-portal-state='authenticated'] .portal-auth-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-color: transparent;
  box-shadow: none;
}

.page-shell[data-portal-state='authenticated'] .portal-session-panel {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  border-color: rgba(176, 190, 197, 0.14);
  box-shadow: var(--shadow-sm);
}

.portal-auth-copy {
  gap: 6px;
}

.portal-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-auth-trust span {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.88);
  color: var(--muted-strong);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-auth-copy h2,
.portal-session-head h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.46rem);
}

.portal-auth-links {
  gap: 10px;
}

.portal-auth-links a {
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portal-session-copy {
  max-width: 100%;
  font-size: 0.96rem;
  line-height: 1.34;
  overflow-wrap: break-word;
  word-break: normal;
}

.portal-session-actions {
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.portal-console-shell .button,
.portal-console-shell .button-secondary,
.portal-console-shell .button-ghost,
.portal-main-section .button,
.portal-main-section .button-secondary,
.portal-main-section .button-ghost {
  height: 36px;
  min-height: 36px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.portal-main-section {
  padding-top: 0;
}

.portal-main-section .section-header {
  gap: 10px;
  margin-bottom: 6px;
}

.portal-main-section .section-header h2,
.portal-support-panel h2,
.portal-aside-panel h2 {
  max-width: 16ch;
  font-size: clamp(1.14rem, 2vw, 1.38rem);
  line-height: 1.12;
}

.portal-main-section .section-header p {
  max-width: 38ch;
  font-size: 0.88rem;
  line-height: 1.46;
}

.portal-status-message {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-status-message[data-tone='warn'] {
  color: #ffc460;
}

.portal-status-message[data-tone='ok'] {
  color: #87f2d8;
}

.button[data-busy='true']::before,
.button-secondary[data-busy='true']::before,
.button-ghost[data-busy='true']::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: portal-spin 0.8s linear infinite;
}

.portal-billing-panel,
.portal-workspace-card,
.portal-service-card,
.portal-support-panel,
.portal-aside-panel,
.portal-auth-panel,
.portal-session-panel {
  padding: 16px 18px;
  border-radius: 15px;
  border-color: rgba(176, 190, 197, 0.18);
}

.portal-layout-grid,
.portal-primary-column,
.portal-secondary-column,
.portal-stack-section,
.portal-service-grid {
  gap: 12px;
}

.portal-secondary-column,
.portal-workspace-card,
.portal-support-panel,
.portal-aside-panel {
  align-content: start;
}

.portal-service-card {
  gap: 10px;
}

.portal-summary-grid,
.portal-billing-grid {
  align-items: start;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portal-aside-panel {
  gap: 10px;
}

.portal-billing-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: start;
  gap: 12px 16px;
}

.portal-billing-actions {
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
}

.portal-billing-status {
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.02em;
  line-height: 1.24;
}

.portal-billing-support-copy {
  margin: 6px 0 0;
  max-width: 34ch;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.46;
  overflow-wrap: break-word;
  word-break: normal;
}

.portal-billing-list {
  gap: 8px;
}

.portal-billing-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  padding: 9px 11px;
}

.portal-billing-list li span {
  color: var(--muted-strong);
  font-weight: 700;
  min-width: 0;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.portal-summary-grid > *,
.portal-billing-grid > *,
.portal-layout-grid > *,
.portal-console-note-grid > *,
.portal-billing-row > *,
.portal-session-row > *,
.portal-session-actions > *,
.portal-billing-actions > *,
.portal-console-meta > * {
  min-width: 0;
}

.portal-console-meta {
  gap: 8px;
  min-width: 0;
}

.portal-console-lock {
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-console-lock::before {
  width: 15px;
  height: 15px;
  background-size: 10px 10px;
}

.portal-session-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
}

.portal-service-status,
.portal-console-note p,
.portal-auth-copy p,
.portal-billing-list li strong,
.contact-link {
  overflow-wrap: anywhere;
}

.portal-session-copy strong,
.portal-billing-panel .portal-input[readonly],
.portal-service-status,
.portal-support-panel .contact-link {
  overflow-wrap: break-word;
  word-break: normal;
}

.portal-billing-panel .summary-field {
  padding: 12px 14px;
}

.portal-billing-panel .portal-input[readonly] {
  -webkit-appearance: none;
  appearance: none;
  height: 1.38em;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.portal-billing-panel .portal-input[readonly]:focus-visible {
  outline: none;
}

.portal-support-panel .contact-points {
  gap: 10px;
}

.portal-support-panel .contact-card {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(15, 21, 29, 0.52);
}

.portal-support-panel {
  position: static;
  top: auto;
}

.page-shell[data-portal-state] main {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.page-shell[data-portal-state] .portal-console-lock,
.page-shell[data-portal-state] .summary-label,
.page-shell[data-portal-state] .portal-workspace-label {
  color: #5f6b79;
}

.page-shell[data-portal-state] .portal-session-copy strong,
.page-shell[data-portal-state] .summary-value,
.page-shell[data-portal-state] .portal-workspace-header h1,
.page-shell[data-portal-state] .portal-auth-copy h2,
.page-shell[data-portal-state] .portal-session-head h2,
.page-shell[data-portal-state] .portal-section-heading h2,
.page-shell[data-portal-state] .portal-settings-card h3,
.page-shell[data-portal-state] .portal-actions-panel h2,
.page-shell[data-portal-state] .portal-service-card h3,
.page-shell[data-portal-state] .portal-billing-state-card h3,
.page-shell[data-portal-state] .contact-card strong {
  color: #162230;
}

.page-shell[data-portal-state] .portal-workspace-header p,
.page-shell[data-portal-state] .portal-auth-copy p,
.page-shell[data-portal-state] .portal-service-status,
.page-shell[data-portal-state] .portal-billing-note p,
.page-shell[data-portal-state] .portal-billing-state-card p,
.page-shell[data-portal-state] .portal-actions-panel p,
.page-shell[data-portal-state] .contact-link,
.page-shell[data-portal-state] .portal-status-message {
  color: #556170;
}

.portal-workspace-top {
  padding: 22px 0 10px;
}

.portal-workspace-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 14px;
  align-items: start;
}

.portal-workspace-header,
.page-shell[data-portal-state] .portal-auth-panel,
.page-shell[data-portal-state] .portal-session-panel,
.page-shell[data-portal-state] .portal-settings-card,
.page-shell[data-portal-state] .portal-actions-panel {
  border: 1px solid rgba(196, 207, 218, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.portal-workspace-header {
  padding: 17px 19px;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.portal-workspace-header-row,
.portal-workspace-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: start;
  justify-content: space-between;
}

.portal-workspace-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-workspace-header h1 {
  margin: 4px 0 0;
  font-size: clamp(1.32rem, 2.4vw, 1.72rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.portal-workspace-header p {
  max-width: 46ch;
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.48;
}

.page-shell[data-portal-state] .portal-console-lock {
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-shell[data-portal-state] .portal-console-lock::before {
  width: 12px;
  height: 12px;
  background-color: rgba(43, 125, 233, 0.12);
  border: 1px solid rgba(43, 125, 233, 0.18);
  box-shadow: none;
}

.page-shell[data-portal-state] .status-chip {
  border-color: rgba(196, 207, 218, 0.82);
  background: #f7f9fb;
  color: #425160;
}

.page-shell[data-portal-state] .portal-console-access-column {
  display: grid;
  gap: 10px;
}

.page-shell[data-portal-state] .portal-auth-panel,
.page-shell[data-portal-state] .portal-session-panel {
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
}

.page-shell[data-portal-state] .portal-auth-copy {
  gap: 6px;
}

.page-shell[data-portal-state] .portal-auth-copy h2,
.page-shell[data-portal-state] .portal-session-head h2 {
  font-size: 1.08rem;
  line-height: 1.18;
}

.page-shell[data-portal-state] .portal-auth-copy p,
.page-shell[data-portal-state] .portal-session-head p,
.page-shell[data-portal-state] .portal-auth-links a {
  font-size: 0.84rem;
}

.page-shell[data-portal-state] .portal-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-shell[data-portal-state] .portal-auth-trust span,
.page-shell[data-portal-state] .plan-tag {
  border-color: rgba(208, 217, 227, 0.8);
  background: #f6f8fb;
  color: #5d6978;
}

.page-shell[data-portal-state] .portal-console-access-column .button-row,
.page-shell[data-portal-state] .portal-session-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: stretch;
}

.page-shell[data-portal-state] .portal-console-access-column .button-row .button,
.page-shell[data-portal-state] .portal-console-access-column .button-row .button-secondary,
.page-shell[data-portal-state] .portal-session-actions .button,
.page-shell[data-portal-state] .portal-session-actions .button-ghost,
.page-shell[data-portal-state] .portal-session-actions .button-secondary {
  width: 100%;
  justify-content: center;
}

.page-shell[data-portal-state] .portal-session-head {
  gap: 10px;
}

.page-shell[data-portal-state] .portal-session-row {
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-shell[data-portal-state] .portal-session-label {
  font-size: 0.68rem;
}

.page-shell[data-portal-state] .portal-session-copy {
  font-size: 0.95rem;
}

.page-shell[data-portal-state] .portal-input {
  border-color: rgba(205, 215, 226, 0.86);
  background: #fbfcfd;
  color: #162230;
}

.page-shell[data-portal-state] .portal-input::placeholder {
  color: #7a8795;
}

.page-shell[data-portal-state] .portal-input:focus-visible {
  outline: 2px solid rgba(43, 125, 233, 0.18);
  border-color: rgba(43, 125, 233, 0.3);
}

.portal-main-section {
  padding-top: 6px;
  padding-bottom: 24px;
}

.portal-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.portal-settings-main,
.portal-settings-side {
  display: grid;
  gap: 14px;
}

.portal-section-heading {
  display: grid;
  gap: 3px;
}

.portal-section-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.portal-section-heading p {
  margin: 0;
  max-width: 56ch;
  font-size: 0.84rem;
  line-height: 1.46;
  color: #6b7786;
}

.page-shell[data-portal-state] .portal-settings-card {
  padding: 16px;
  border-radius: 16px;
  gap: 12px;
}

.page-shell[data-portal-state] .portal-workspace-card,
.page-shell[data-portal-state] .portal-billing-panel {
  background: #ffffff;
}

.page-shell[data-portal-state] .portal-summary-grid,
.page-shell[data-portal-state] .portal-subscription-grid,
.page-shell[data-portal-state] .portal-billing-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.page-shell[data-portal-state] .portal-subscription-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.page-shell[data-portal-state] .portal-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 14px;
  align-items: start;
}

.page-shell[data-portal-state] .portal-card-head h3 {
  margin: 0;
}

.page-shell[data-portal-state] .portal-card-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.44;
  color: #6b7786;
}

.page-shell[data-portal-state] .portal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-shell[data-portal-state] .portal-inline-actions .button-secondary {
  border-color: rgba(197, 207, 218, 0.96);
  background: #f7f9fb;
  color: #304154;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.page-shell[data-portal-state] .portal-inline-actions .button-secondary:hover,
.page-shell[data-portal-state] .portal-inline-actions .button-secondary:focus-visible {
  border-color: rgba(154, 171, 188, 0.96);
  background: #f2f6fa;
}

.page-shell[data-portal-state] .summary-field {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(219, 227, 235, 0.78);
  background: rgba(251, 252, 253, 0.78);
}

.page-shell[data-portal-state] .summary-label {
  font-size: 0.64rem;
  line-height: 1.1;
  letter-spacing: 0.1em;
}

.page-shell[data-portal-state] .summary-value {
  margin-top: 0;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.38;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-shell[data-portal-state] .portal-edit-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-shell[data-portal-state] .summary-field.is-editable {
  display: grid;
  gap: 6px;
}

.page-shell[data-portal-state] .portal-security-grid,
.page-shell[data-portal-state] .portal-contact-grid,
.page-shell[data-portal-state] .portal-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.page-shell[data-portal-state] .portal-security-note strong {
  display: block;
  color: #162230;
  font-size: 0.96rem;
  line-height: 1.28;
}

.page-shell[data-portal-state] .portal-security-note p {
  margin: 0;
}

.page-shell[data-portal-state] .portal-security-note .button-secondary {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
}

.page-shell[data-portal-state] .portal-edit-input[hidden] {
  display: none;
}

.page-shell[data-portal-state] .portal-billing-panel .summary-value,
.page-shell[data-portal-state] .portal-workspace-card .summary-value,
.page-shell[data-portal-state] .portal-billing-panel .portal-input[readonly] {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-shell[data-portal-state] .summary-value.is-placeholder {
  color: #73808f;
}

.page-shell[data-portal-state] .portal-service-list {
  display: grid;
  gap: 8px;
}

.page-shell[data-portal-state] .portal-service-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(220, 228, 236, 0.72);
  background: rgba(250, 252, 253, 0.82);
}

.page-shell[data-portal-state] .portal-service-copy {
  display: grid;
  gap: 6px;
}

.page-shell[data-portal-state] .portal-service-card h3 {
  font-size: 0.96rem;
  line-height: 1.22;
}

.page-shell[data-portal-state] .portal-service-status {
  font-size: 0.84rem;
  line-height: 1.42;
}

.page-shell[data-portal-state] .portal-service-card.is-inactive {
  background: rgba(248, 250, 252, 0.7);
}

.page-shell[data-portal-state] .portal-service-actions {
  margin-top: 0;
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
}

.page-shell[data-portal-state] .portal-billing-panel {
  gap: 12px;
}

.page-shell[data-portal-state] .portal-inline-message {
  min-height: 1.35em;
  margin: -2px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #6a7685;
}

.page-shell[data-portal-state] .portal-inline-message[data-tone='warn'] {
  color: #a55e1a;
}

.page-shell[data-portal-state] .portal-inline-message[data-tone='ok'] {
  color: #1f7a63;
}

.page-shell[data-portal-state] .portal-billing-state-card {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid rgba(212, 221, 231, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(244, 247, 250, 0.96) 100%);
}

.page-shell[data-portal-state] .portal-billing-state-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.24;
}

.page-shell[data-portal-state] .portal-billing-state-card p {
  max-width: 52ch;
  font-size: 0.86rem;
  line-height: 1.46;
}

.page-shell[data-portal-state] .portal-billing-panel .portal-input[readonly] {
  color: #334252;
  line-height: 1.42;
}

.page-shell[data-portal-state] .portal-billing-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(222, 229, 237, 0.72);
  background: rgba(251, 252, 253, 0.72);
}

.page-shell[data-portal-state] .portal-billing-note strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.page-shell[data-portal-state] .portal-actions-panel {
  padding: 16px;
  border-radius: 16px;
  display: grid;
  gap: 12px;
}

.page-shell[data-portal-state] .portal-actions-panel h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.page-shell[data-portal-state] .portal-actions-stack,
.page-shell[data-portal-state] .portal-contact-stack {
  display: grid;
  gap: 8px;
}

.page-shell[data-portal-state] .portal-actions-stack .button,
.page-shell[data-portal-state] .portal-actions-stack .button-secondary,
.page-shell[data-portal-state] .portal-actions-stack .button-ghost {
  width: 100%;
  justify-content: center;
}

.page-shell[data-portal-state] .portal-actions-stack .button {
  min-height: 38px;
}

.page-shell[data-portal-state] .portal-actions-stack .button-secondary {
  background: #f7f9fb;
  border-color: rgba(205, 214, 224, 0.9);
  color: #304154;
}

.page-shell[data-portal-state] .portal-actions-stack .button-ghost {
  border-color: transparent;
  background: transparent;
  color: #5f6b79;
}

.page-shell[data-portal-state] .contact-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(223, 230, 237, 0.72);
  background: rgba(251, 252, 253, 0.76);
}

.page-shell[data-portal-state] .contact-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.page-shell[data-portal-state] .contact-link {
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.page-shell[data-portal-state] .contact-link:hover,
.page-shell[data-portal-state] .contact-link:focus-visible {
  color: #162230;
}

@media (max-width: 1024px) {
  .portal-workspace-top-grid,
  .portal-settings-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell[data-portal-state] .portal-card-head,
  .page-shell[data-portal-state] .portal-inline-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell[data-portal-state] .portal-security-note .button-secondary {
    width: 100%;
  }

  .page-shell[data-portal-state] .portal-service-card,
  .page-shell[data-portal-state] .portal-session-row {
    grid-template-columns: 1fr;
  }

  .page-shell[data-portal-state] .portal-workspace-header-row,
  .page-shell[data-portal-state] .portal-workspace-header-meta {
    justify-content: flex-start;
  }

  .page-shell[data-portal-state] .portal-service-actions,
  .page-shell[data-portal-state] .portal-session-actions {
    justify-items: stretch;
  }
}

.compliance-feature-grid {
  align-items: start;
}

.compliance-feature-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.compliance-feature-card strong {
  margin-bottom: 0;
}

.compliance-feature-card p {
  font-size: 0.95rem;
  line-height: 1.58;
}

.compliance-shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(176, 190, 197, 0.14);
  background: rgba(11, 16, 22, 0.92);
}

.compliance-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.compliance-shot-frame.is-portrait img {
  object-fit: contain;
  background: #0f151d;
}

.account-access-page .page-heading,
.account-access-page .page-panel,
.account-access-page .cta-panel,
.account-access-page .contact-note,
.account-access-page .footer-grid > * {
  min-width: 0;
}

.account-access-page .header-row,
.page-shell[data-portal-state] .header-row {
  min-width: 0;
}

.account-access-page .brand,
.page-shell[data-portal-state] .brand {
  flex: 1 1 auto;
  min-width: 0;
}

.account-access-page .brand span,
.page-shell[data-portal-state] .brand span {
  min-width: 0;
}

.account-access-page .account-access-grid {
  gap: 12px;
  align-items: stretch;
}

.account-access-page .page-panel,
.account-access-page .contact-note {
  display: grid;
  gap: 8px;
  padding: 18px 17px;
  border-radius: 16px;
}

.account-access-page .page-panel h3,
.account-access-page .contact-note h3,
.account-access-page .cta-panel h2 {
  line-height: 1.12;
}

.account-access-page .page-panel p,
.account-access-page .contact-note p,
.account-access-page .footer-links a {
  overflow-wrap: anywhere;
}

.account-access-page .button-row {
  gap: 8px;
}

.account-access-page .button-row .button,
.account-access-page .button-row .button-secondary,
.account-access-page .button-row .button-ghost {
  min-height: 36px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 0.83rem;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .portal-layout-grid,
  .portal-service-grid,
  .portal-console-note-grid,
  .portal-billing-grid,
  .account-access-page .account-access-grid {
    grid-template-columns: 1fr;
  }

  .portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-console-access-column {
    justify-items: stretch;
  }

  .portal-auth-panel,
  .portal-session-panel {
    max-width: none;
  }

  .compliance-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portal-session-head {
    flex-wrap: wrap;
    align-items: center;
  }

  .portal-session-actions,
  .portal-billing-actions {
    justify-content: flex-start;
  }

  .compliance-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portal-summary-grid,
  .portal-billing-grid,
  .portal-console-note-grid,
  .portal-service-grid,
  .account-access-page .account-access-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-console-meta,
  .portal-auth-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-session-row,
  .portal-billing-row,
  .portal-billing-list li {
    grid-template-columns: 1fr !important;
  }

  .portal-session-actions,
  .portal-billing-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-billing-list li span {
    text-align: left;
  }

  .account-access-page .button-row .button,
  .account-access-page .button-row .button-secondary,
  .account-access-page .button-row .button-ghost,
  .portal-console-shell .button,
  .portal-console-shell .button-secondary,
  .portal-console-shell .button-ghost,
  .portal-main-section .button,
  .portal-main-section .button-secondary,
  .portal-main-section .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .account-access-page .brand,
  .page-shell[data-portal-state] .brand {
    max-width: calc(100% - 56px);
  }

  .account-access-page .brand span,
  .page-shell[data-portal-state] .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
