:root {
  color-scheme: dark;

  --md-color-bg: #0f1722;
  --md-color-bg-soft: #17202d;
  --md-color-surface: rgb(22 31 43 / 94%);
  --md-color-surface-strong: rgb(18 26 37 / 97%);
  --md-color-border: rgb(120 144 170 / 20%);
  --md-color-border-strong: rgb(141 167 196 / 30%);
  --md-color-text-primary: #e8eef5;
  --md-color-text-secondary: #afbccb;
  --md-color-text-muted: #7d8b9d;
  --md-color-success: #53b39a;
  --md-color-success-soft: rgb(83 179 154 / 10%);
  --md-color-danger: #d06e5f;
  --md-color-danger-soft: rgb(208 110 95 / 10%);
  --md-color-warning: #d7a76e;
  --md-color-warning-soft: rgb(215 167 110 / 11%);
  --md-color-action: #dbe6f2;
  --md-color-action-bg: rgb(219 230 242 / 8%);
  --md-color-action-bg-hover: rgb(219 230 242 / 13%);
  --md-gradient-bg:
    radial-gradient(circle at top left, rgb(88 126 168 / 12%) 0%, transparent 30%),
    linear-gradient(180deg, #0f1722 0%, #131c28 100%);
  --md-shadow-md: 0 18px 36px rgb(3 8 16 / 24%);
  --md-radius-sm: 10px;
  --md-radius-md: 14px;
  --md-radius-lg: 18px;
  --md-radius-xl: 22px;
  --md-radius-pill: 999px;
  --md-space-xs: 4px;
  --md-space-sm: 8px;
  --md-space-md: 12px;
  --md-space-lg: 16px;
  --md-space-xl: 24px;
  --md-space-2xl: 32px;
  --md-space-3xl: 40px;
  --md-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --md-font-sans: "Aptos", "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
  --md-text-xs: 11px;
  --md-text-sm: 12px;
  --md-text-md: 13px;
  --md-text-lg: 15px;
  --md-text-xl: 18px;
  --md-text-display: clamp(3rem, 5.8vw, 4.9rem);
  --md-text-banner: clamp(1.6rem, 2.6vw, 2.35rem);
  --md-line-tight: 1.2;
  --md-line-normal: 1.55;
  --md-tracking-title: 0.04em;
  --md-tracking-eyebrow: 0.22em;
  --md-motion-med: 180ms;
  --md-ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--md-color-text-primary);
  background: var(--md-gradient-bg);
  background-attachment: fixed;
  font-family: var(--md-font-sans);
  font-size: var(--md-text-lg);
  line-height: var(--md-line-normal);
}

button,
input,
textarea {
  font: inherit;
}

button,
input {
  min-width: 0;
}

:focus-visible {
  outline: 2px solid rgb(141 167 196 / 68%);
  outline-offset: 2px;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--md-space-2xl) 20px 56px;
}

.page-header,
.hero-banner,
.surface-card,
.overview-card,
.session-panel {
  position: relative;
  border: 1px solid var(--md-color-border);
  border-radius: var(--md-radius-xl);
  background: var(--md-color-surface);
  box-shadow: var(--md-shadow-md);
}

.page-header {
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-heading,
.session-panel,
.hero-banner,
.overview-card,
.surface-card {
  overflow: hidden;
}

.page-heading,
.session-panel,
.hero-banner,
.overview-card,
.surface-card {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 var(--md-space-sm);
  color: var(--md-color-text-muted);
  font-size: var(--md-text-xs);
  font-weight: 700;
  letter-spacing: var(--md-tracking-eyebrow);
  text-transform: uppercase;
}

h1,
h2,
h3,
.banner-title {
  margin: 0;
  color: var(--md-color-text-primary);
  line-height: var(--md-line-tight);
}

h1 {
  font-family: var(--md-font-display);
  font-size: var(--md-text-display);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

h2 {
  font-family: var(--md-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3,
.banner-title {
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

.banner-title {
  font-family: var(--md-font-display);
  font-size: var(--md-text-banner);
  font-weight: 700;
  line-height: 1;
}

.page-intro,
.banner-copy,
.section-heading p,
.session-copy,
.notice,
.danger-note,
.danger-status,
.action-group-copy,
.utility-copy,
td {
  color: var(--md-color-text-secondary);
}

.page-intro {
  max-width: 36rem;
  margin: 10px 0 0;
  font-size: 0.98rem;
}

.session-panel,
.hero-banner,
.overview-card,
.surface-card {
  background: var(--md-color-surface);
}

.session-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 280px;
  max-width: 320px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent 48%),
    rgb(15 24 36 / 72%);
  border-color: rgb(141 167 196 / 18%);
  box-shadow: 0 10px 24px rgb(3 8 16 / 12%);
}

.session-panel-signed-in {
  padding: 18px 20px;
  align-self: stretch;
}

.session-panel-signed-in .session-topline .eyebrow {
  margin-bottom: 4px;
}

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

.identity {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  color: var(--md-color-text-primary);
  font-size: var(--md-text-md);
  font-weight: 600;
}

.session-copy,
.notice,
.danger-note,
.danger-status {
  margin: 0;
  font-size: 0.95rem;
}

.notice {
  min-height: 1.5em;
}

.notice:empty,
.identity:empty,
.danger-status:empty {
  display: none;
}

.notice-quiet {
  color: var(--md-color-text-muted);
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
  padding-block: 22px;
  background:
    linear-gradient(90deg, var(--md-color-success-soft), transparent 22%),
    var(--md-color-surface-strong);
}

.hero-banner-signed-out {
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr);
  padding: 20px 24px;
}

.hero-main {
  max-width: 39rem;
}

.hero-banner-signed-out .hero-main {
  max-width: 32rem;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.banner-copy {
  max-width: 36rem;
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.cell-label,
label,
th {
  display: block;
  color: var(--md-color-text-muted);
  font-size: var(--md-text-xs);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-meta strong,
.summary-item strong,
.danger-status,
#tier {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.summary-item strong {
  font-size: var(--md-text-md);
  font-weight: 500;
  color: rgb(189 202 219 / 88%);
}

.overview-utility {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: start;
  min-width: 250px;
  max-width: 290px;
}

.hero-banner-signed-out .overview-utility {
  min-width: 220px;
  max-width: 250px;
}

.utility-copy,
.action-group-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-shell {
  display: grid;
  gap: 24px;
}

.overview-card {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 46%),
    var(--md-color-surface-strong);
  border-color: rgb(141 167 196 / 10%);
  box-shadow: 0 12px 24px rgb(3 8 16 / 12%);
  padding-block: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 6px 0 0;
  max-width: 28rem;
  font-size: var(--md-text-md);
}

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

.summary-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgb(141 167 196 / 12%);
  border-radius: var(--md-radius-lg);
  background: rgb(15 22 31 / 42%);
}

.summary-item strong {
  min-width: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.summary-item-featured {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent 52%),
    rgb(15 22 31 / 54%);
  border-color: rgb(141 167 196 / 18%);
}

.summary-item-featured strong {
  font-family: var(--md-font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--md-color-text-primary);
}

.surface-card {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.01), transparent 40%),
    var(--md-color-surface);
}

.actions-card {
  position: relative;
  margin-bottom: 20px;
  border-color: rgb(215 167 110 / 14%);
  background:
    linear-gradient(90deg, rgb(215 167 110 / 0.06), transparent 18%),
    linear-gradient(180deg, rgb(255 255 255 / 0.014), transparent 46%),
    rgb(20 29 42 / 96%);
  box-shadow:
    0 14px 28px rgb(3 8 16 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 0.03);
}

.actions-lead {
  margin-top: 8px;
  max-width: 30rem;
  color: rgb(214 224 238 / 86%);
  font-size: 0.96rem;
}

.action-groups {
  display: grid;
  gap: 14px;
}

.action-group {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgb(141 167 196 / 10%);
  border-radius: calc(var(--md-radius-lg) + 2px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.016), transparent 52%),
    rgb(15 22 31 / 34%);
  transition:
    border-color var(--md-motion-med) var(--md-ease-standard),
    background-color var(--md-motion-med) var(--md-ease-standard),
    box-shadow var(--md-motion-med) var(--md-ease-standard),
    transform var(--md-motion-med) var(--md-ease-standard);
}

.action-group[data-action-group="billing-tools"] {
  border-color: rgb(141 167 196 / 7%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.01), transparent 48%),
    rgb(13 20 29 / 18%);
}

.action-group-recommended {
  border-color: rgb(215 167 110 / 24%);
  background:
    linear-gradient(90deg, rgb(215 167 110 / 0.08), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 56%),
    rgb(16 24 34 / 56%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 10px 20px rgb(3 8 16 / 10%);
}

.action-group-recommended .cell-label {
  color: rgb(224 193 153 / 84%);
}

.action-group-recommended .action-group-copy {
  color: rgb(201 214 230 / 84%);
}

.action-cluster {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.action-cluster-inline {
  margin-top: 2px;
}

.confirmation-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgb(215 167 110 / 16%);
  border-radius: var(--md-radius-lg);
  background:
    linear-gradient(90deg, rgb(215 167 110 / 0.07), transparent 30%),
    rgb(20 29 42 / 72%);
}

.confirmation-copy {
  margin: 0;
  color: rgb(214 224 238 / 92%);
  font-size: 0.94rem;
  line-height: 1.45;
}

.action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--md-color-border-strong);
  border-radius: var(--md-radius-pill);
  color: var(--md-color-action);
  background: var(--md-color-action-bg);
  font-size: var(--md-text-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--md-motion-med) var(--md-ease-standard),
    background-color var(--md-motion-med) var(--md-ease-standard),
    color var(--md-motion-med) var(--md-ease-standard),
    transform var(--md-motion-med) var(--md-ease-standard);
}

.action-button:hover {
  border-color: rgb(141 167 196 / 42%);
  background: var(--md-color-action-bg-hover);
  transform: translateY(-1px);
}

.action-button:active {
  transform: translateY(0);
}

.action-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.action-button-secondary {
  color: rgb(203 215 231 / 88%);
  background: rgb(219 230 242 / 5%);
  border-color: rgb(141 167 196 / 24%);
}

.action-button-primary {
  color: rgb(13 20 28 / 96%);
  background: linear-gradient(180deg, rgb(236 242 248 / 100%), rgb(214 225 238 / 96%));
  border-color: rgb(236 242 248 / 92%);
  box-shadow:
    0 8px 18px rgb(3 8 16 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 40%);
  padding-inline: 20px;
  min-height: 43px;
}

.action-button-primary:hover {
  background: linear-gradient(180deg, rgb(241 245 250 / 100%), rgb(221 231 242 / 98%));
  border-color: rgb(234 240 247 / 92%);
}

.action-button-subtle {
  opacity: 0.76;
}

.action-cluster .action-button-primary {
  box-shadow:
    0 8px 20px rgb(3 8 16 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 34%);
}

.action-button-warn {
  color: #f6debe;
  background: var(--md-color-warning-soft);
  border-color: rgb(215 167 110 / 28%);
}

.action-button-danger {
  color: #f4d8d3;
  background: var(--md-color-danger-soft);
  border-color: rgb(208 110 95 / 28%);
}

.history-card {
  padding-top: 14px;
  padding-bottom: 14px;
  overflow: visible;
  background: transparent;
  border-color: rgb(141 167 196 / 10%);
  border-radius: var(--md-radius-lg);
  box-shadow: none;
}

.history-card-empty .section-heading {
  margin-bottom: 10px;
}

.history-card-empty .history-list {
  display: none;
}

.history-list {
  display: block;
  border-top: 1px solid rgb(141 167 196 / 12%);
  padding-top: 18px;
}

.history-list-head,
.history-item {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(128px, 0.78fr) minmax(118px, 0.72fr) minmax(188px, 1fr);
  gap: 18px;
  align-items: start;
}

.history-list.history-list-no-plan .history-list-head,
.history-list.history-list-no-plan .history-item {
  grid-template-columns: minmax(0, 3.2fr) minmax(128px, 0.84fr) minmax(188px, 1fr);
}

.history-card {
  position: relative;
  border-color: rgb(141 167 196 / 14%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.012), transparent 28%),
    rgb(18 27 39 / 92%);
}

.history-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(141 167 196 / 0%), rgb(141 167 196 / 22%), rgb(141 167 196 / 0%));
  pointer-events: none;
}

.history-card .section-heading {
  margin-bottom: 22px;
}

.history-card .section-heading h2 {
  color: rgb(244 248 252 / 97%);
}

.history-list-head {
  padding: 8px 0 14px;
  color: rgb(160 180 204 / 90%);
  font-size: var(--md-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgb(141 167 196 / 20%);
}

.history-item {
  padding: 18px 0 16px;
  border-top: 1px solid rgb(141 167 196 / 10%);
  background: transparent;
}

.history-item-with-summary {
  padding-top: 20px;
  padding-bottom: 18px;
}

.history-item-compact {
  padding-top: 14px;
  padding-bottom: 14px;
}

.history-item:first-of-type {
  border-top: 0;
}

.history-item-primary:first-of-type .history-item-title {
  color: rgb(246 249 252 / 98%);
}

.history-primary {
  position: relative;
  min-width: 0;
  padding-right: 18px;
}

.history-primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgb(141 167 196 / 0%), rgb(141 167 196 / 12%), rgb(141 167 196 / 0%));
}

.history-primary .eyebrow {
  margin-bottom: 4px;
  padding-left: 12px;
  color: rgb(113 129 148 / 74%);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-item-title {
  font-family: var(--md-font-display);
  font-size: 1.06rem;
  margin-bottom: 4px;
  padding-left: 12px;
  font-weight: 700;
  line-height: 1.05;
}

.history-item-summary {
  margin: 5px 0 0;
  max-width: 32rem;
  padding-left: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgb(154 170 191 / 68%);
}

.history-item-compact .history-item-title {
  margin-bottom: 0;
}

.history-cell {
  padding-top: 4px;
  padding-left: 14px;
  border-left: 1px solid rgb(141 167 196 / 08%);
}

.history-cell .cell-label {
  display: none;
}

.history-cell strong {
  display: block;
  margin-top: 4px;
  color: rgb(186 200 219 / 82%);
  font-size: var(--md-text-md);
  font-weight: 500;
  line-height: 1.35;
}

.history-cell:last-child strong {
  color: rgb(169 184 203 / 78%);
  font-size: var(--md-text-sm);
  letter-spacing: 0.01em;
}

.history-cell-status {
  padding-top: 0;
  padding-left: 0;
  border-left: 0;
}

.history-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-sm);
  padding: 8px 14px;
  border: 1px solid var(--md-color-border-strong);
  border-radius: var(--md-radius-pill);
  background: rgb(15 22 31 / 86%);
  font-size: var(--md-text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.history-status-badge-neutral {
  color: rgb(187 201 218 / 86%);
}

.history-status-badge-success {
  color: var(--md-color-success);
}

.history-status-badge-warning {
  color: var(--md-color-warning);
}

.history-status-badge-danger {
  color: var(--md-color-danger);
}

.history-item-tone-warning .history-primary::before {
  background: linear-gradient(180deg, rgb(215 167 110 / 0%), rgb(215 167 110 / 28%), rgb(215 167 110 / 0%));
}

.history-item-tone-danger .history-primary::before {
  background: linear-gradient(180deg, rgb(208 110 95 / 0%), rgb(208 110 95 / 30%), rgb(208 110 95 / 0%));
}

.history-item-tone-warning .history-item-title {
  color: rgb(238 219 189 / 96%);
}

.history-item-tone-danger .history-item-title {
  color: rgb(238 201 194 / 98%);
}

.history-item-tone-warning .history-item-summary {
  color: rgb(214 194 164 / 78%);
}

.history-item-tone-danger .history-item-summary {
  color: rgb(214 170 162 / 78%);
}

.history-reference {
  margin-top: 8px;
  padding-left: 12px;
  color: rgb(120 136 156 / 56%);
  font-size: 0.72rem;
  opacity: 0;
  transition:
    opacity var(--md-motion-med) var(--md-ease-standard),
    color var(--md-motion-med) var(--md-ease-standard);
}

.history-item:hover .history-reference,
.history-item:focus-within .history-reference,
.history-reference[open] {
  opacity: 1;
}

.history-reference summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
}

.history-reference summary::-webkit-details-marker {
  display: none;
}

.history-reference summary:hover {
  color: rgb(171 186 205 / 84%);
}

.history-reference[open] {
  display: inline-grid;
  gap: 4px;
}

.history-reference-copy {
  margin: 0;
  color: rgb(145 161 182 / 76%);
}

.history-reference code {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgb(154 170 191 / 84%);
  font-family: inherit;
}

.history-empty-state {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0 0;
  border-top: 1px solid rgb(141 167 196 / 10%);
}

.history-empty-rail {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding-top: 2px;
}

.history-empty-kicker {
  color: rgb(127 144 165 / 82%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-empty-copy {
  min-width: 0;
}

.history-empty-state strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: var(--md-color-text-primary);
}

.history-empty-state p {
  max-width: 42rem;
  margin: 0;
  color: rgb(177 191 208 / 82%);
  font-size: 0.94rem;
}

.history-empty-state::before {
  content: "";
  position: absolute;
  left: 0;
  width: 132px;
  transform: translateY(-10px);
  border-top: 1px dashed rgb(141 167 196 / 10%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-sm);
  padding: 8px 14px;
  border: 1px solid var(--md-color-border-strong);
  border-radius: var(--md-radius-pill);
  background: rgb(15 22 31 / 86%);
  color: var(--md-color-success);
  font-size: var(--md-text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill-neutral {
  color: rgb(187 201 218 / 86%);
}

.status-pill-attention {
  color: var(--md-color-warning);
}

.status-pill-success {
  color: var(--md-color-success);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.danger-zone {
  background:
    linear-gradient(90deg, var(--md-color-danger-soft), transparent 22%),
    var(--md-color-surface-strong);
  border-color: rgb(208 110 95 / 22%);
}

.danger-copy {
  color: rgb(232 191 184 / 94%);
}

label {
  margin-bottom: 6px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--md-color-border-strong);
  border-radius: var(--md-radius-md);
  color: var(--md-color-text-primary);
  background: rgb(15 22 31 / 66%);
  transition:
    border-color var(--md-motion-med) var(--md-ease-standard),
    background-color var(--md-motion-med) var(--md-ease-standard);
}

input:hover {
  border-color: rgb(141 167 196 / 42%);
}

input:disabled {
  opacity: 0.7;
}

.action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.danger-status {
  flex: 1 1 280px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sign-in-floating {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.session-signout {
  min-height: 36px;
  padding-inline: 14px;
}

#app[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-banner,
  .hero-banner-signed-out {
    grid-template-columns: 1fr;
  }

  .session-panel,
  .overview-utility {
    max-width: none;
  }

  .history-empty-state {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .history-empty-state::before {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 20px;
  }

  .hero-banner,
  .action-row {
    grid-template-columns: 1fr;
  }

  .overview-utility {
    width: 100%;
    max-width: none;
  }

  .hero-banner-signed-out {
    padding: 22px 24px;
  }

  .action-button {
    width: 100%;
  }

  .action-cluster {
    width: 100%;
  }

  .action-group {
    padding: 14px;
  }

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

  .session-topline {
    flex-direction: column;
  }

  .history-list-head {
    display: none;
  }

  .history-item {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    padding: 16px 0;
  }

  .history-list.history-list-no-plan .history-item {
    grid-template-columns: 1fr 1fr;
  }

  .history-item-with-summary,
  .history-item-compact {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .history-cell .cell-label {
    display: block;
  }

  .history-reference {
    opacity: 1;
  }

  .history-primary {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .history-primary::before {
    display: none;
  }

  .history-cell {
    padding-top: 0;
    padding-left: 0;
    border-left: 0;
  }

  .history-cell-status {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
