:root {
  color-scheme: light;
  --ink: #060606;
  --muted: #5f594d;
  --faint: #8e8779;
  --line: #e8e0d0;
  --surface: #ffffff;
  --surface-soft: #fbf8f0;
  --canvas: #f4f0e7;
  --navy: #060606;
  --navy-2: #18140d;
  --gold-start: #d29621;
  --gold-mid: #e9b64e;
  --gold-deep: #dfab40;
  --gold-light: #f1d086;
  --gold-ink: #76510b;
  --gold-gradient: linear-gradient(120deg, var(--gold-start) 0%, var(--gold-mid) 40%, var(--gold-deep) 68%, var(--gold-light) 100%);
  --green: var(--gold-ink);
  --green-2: var(--gold-mid);
  --green-soft: #fbf2d8;
  --blue-soft: #f5ecd5;
  --blue: #70500c;
  --violet-soft: #f8f2e4;
  --violet: #6f5a2c;
  --amber-soft: #fff6d9;
  --amber: #795b12;
  --danger: #a13a32;
  --shadow: 0 18px 45px rgba(58, 42, 12, 0.11);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(210, 150, 33, 0.34);
  outline-offset: 2px;
}

svg {
  display: block;
  fill: currentColor;
}

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

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(233, 182, 78, 0.22), transparent 320px),
    radial-gradient(circle at 85% 80%, rgba(210, 150, 33, 0.16), transparent 360px),
    linear-gradient(145deg, #201b11 0%, #0f0d09 52%, #060606 100%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.auth-brand > div {
  display: grid;
}

.auth-brand strong {
  font-size: 16px;
}

.auth-brand > div span {
  color: var(--muted);
  font-size: 11px;
}

.auth-heading {
  margin-bottom: 23px;
}

.auth-kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-heading h1 {
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.auth-heading p,
.auth-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.auth-mode-switch button {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.auth-mode-switch button.is-active {
  color: var(--green);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(58, 42, 12, 0.12);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 64px;
}

.password-control button {
  position: absolute;
  top: 50%;
  right: 7px;
  border: 0;
  border-radius: 7px;
  padding: 5px 7px;
  color: var(--green);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  transform: translateY(-50%);
}

.password-control button:hover {
  background: var(--green-soft);
}

.auth-submit {
  width: 100%;
}

.auth-sso {
  display: grid;
  gap: 14px;
}

.auth-microsoft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text, #1b1b1b);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-microsoft-button:hover {
  background: var(--surface-soft);
}

.auth-microsoft-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-message[data-tone="success"] {
  color: var(--green);
}

.auth-message[data-tone="error"] {
  color: var(--danger);
}

.auth-footnote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 22px 24px, rgba(233, 182, 78, 0.18), transparent 180px),
    linear-gradient(180deg, #17140e 0%, #060606 100%);
}

.brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}

.brand-mark {
  display: grid;
  width: 120px;
  height: 54px;
  flex: 0 0 120px;
  place-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand div {
  display: grid;
  justify-items: center;
  text-align: center;
}

.brand .brand-mark {
  width: 100%;
  height: 66px;
  flex-basis: auto;
  padding: 4px 20px;
}

.brand strong {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand span:last-child {
  color: rgba(255, 250, 240, 0.62);
  font-size: 11px;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 250, 240, 0.73);
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(210, 150, 33, 0.22);
  box-shadow: inset 3px 0 var(--gold-mid);
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  color: #060606;
  background: var(--gold-gradient);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.main-content {
  min-height: 100vh;
  margin-left: 252px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(22px, 4vw, 48px);
  border-bottom: 1px solid rgba(232, 224, 208, 0.92);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

.page-heading p,
.drawer-header p {
  margin: 0 0 1px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-heading p:empty {
  display: none;
}

.page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--faint);
  background: var(--surface);
}

.filter-search:focus-within {
  border-color: var(--gold-start);
  box-shadow: 0 0 0 3px rgba(210, 150, 33, 0.13);
}

.filter-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.profile-button {
  border: 0;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 11px;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #060606;
  background: var(--gold-gradient);
  box-shadow: 0 8px 18px rgba(210, 150, 33, 0.24);
}

.primary-button:hover {
  background: linear-gradient(120deg, #c48a18 0%, #dfab40 46%, #edc976 100%);
}

.primary-button span {
  font-size: 18px;
  line-height: 1;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.profile-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #060606;
  background: var(--gold-gradient);
  font-size: 12px;
  font-weight: 800;
}

.profile-control {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(58, 42, 12, 0.16);
}

.profile-menu strong {
  font-size: 12px;
}

.profile-menu span {
  overflow: hidden;
  margin: 1px 0 12px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.profile-menu button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
}

.profile-menu button:hover {
  color: var(--danger);
  background: #fff4f4;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font-size: 25px;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.mobile-menu,
.mobile-add {
  display: none;
}

.content-area {
  padding: 24px clamp(22px, 4vw, 48px) 48px;
}

.view {
  display: none;
  animation: fade-in 220ms ease;
}

.view.is-visible {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.section-intro h2 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-intro p,
.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.metric-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid rgba(232, 224, 208, 0.94);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(58, 42, 12, 0.05);
}

.metric-card.metric-primary {
  color: #060606;
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.28), transparent 130px),
    var(--gold-gradient);
}

.metric-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #060606;
  background: rgba(6, 6, 6, 0.09);
}

.metric-icon svg {
  width: 21px;
  height: 21px;
}

.metric-card:not(.metric-primary) .metric-icon {
  color: var(--green);
  background: var(--green-soft);
}

.metric-card:not(.metric-primary) .icon-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-copy {
  display: grid;
  min-width: 0;
}

.metric-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.metric-primary .metric-copy > span,
.metric-primary .metric-copy small {
  color: rgba(6, 6, 6, 0.62);
}

.metric-copy strong {
  overflow: visible;
  margin: 2px 0 0;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-overflow: clip;
  white-space: normal;
}

.metric-copy small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  border: 1px solid rgba(232, 224, 208, 0.94);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(58, 42, 12, 0.045);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.soft-badge {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
}

.text-button {
  padding: 0;
  color: var(--green);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.text-button:hover {
  text-decoration: underline;
}

.company-bars {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 88px;
  align-items: center;
  gap: 13px;
}

.bar-label {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8dc;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient);
  animation: grow-bar 650ms ease both;
  transform-origin: left;
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.bar-value {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.payment-list {
  display: grid;
  padding: 5px 21px 8px;
}

.payment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.payment-item:last-child {
  border-bottom: 0;
}

.date-tile {
  display: grid;
  width: 41px;
  height: 43px;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  line-height: 1;
}

.date-tile strong {
  align-self: end;
  font-size: 15px;
}

.date-tile span {
  align-self: start;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-name {
  min-width: 0;
}

.payment-name strong,
.payment-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-name strong {
  font-size: 12px;
}

.payment-name span {
  color: var(--muted);
  font-size: 10px;
}

.payment-amount {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.trial-decision-panel {
  overflow: hidden;
  margin-bottom: 18px;
  border-color: rgba(210, 150, 33, 0.36);
}

.trial-decision-list {
  display: grid;
  padding: 4px 21px 8px;
}

.trial-decision-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.trial-decision-item:last-child {
  border-bottom: 0;
}

.trial-decision-item:hover .trial-decision-action {
  color: var(--ink);
  background: var(--gold);
}

.trial-decision-item span,
.trial-decision-item strong,
.trial-decision-item small {
  display: block;
}

.trial-decision-item strong {
  font-size: 12px;
}

.trial-decision-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.trial-decision-date {
  min-width: 104px;
  text-align: right;
}

.trial-decision-action {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  transition: 160ms ease;
}

.trial-setup-notice {
  display: grid;
  gap: 3px;
  margin: 16px 20px 0;
  padding: 13px 15px;
  border: 1px solid rgba(210, 150, 33, 0.35);
  border-radius: 12px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  font-size: 10px;
}

.trial-setup-notice[hidden] {
  display: none;
}

.calendar-panel {
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.calendar-kicker {
  color: var(--gold-ink);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-toolbar-actions {
  display: flex;
  gap: 7px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px;
  background: var(--surface-soft);
}

.calendar-summary-card {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.calendar-summary-card span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.calendar-summary-card small {
  color: var(--faint);
  font-size: 8px;
}

.calendar-scroll {
  overflow-x: auto;
}

.calendar-surface {
  min-width: 860px;
}

.calendar-weekdays,
.payment-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbf8f0;
}

.calendar-weekdays span {
  padding: 9px 12px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 132px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #faf8f3;
}

.calendar-day.is-outside .calendar-day-heading,
.calendar-day.is-outside .calendar-payment {
  opacity: 0.42;
}

.calendar-day.is-today {
  background: #fffaf0;
  box-shadow: inset 0 0 0 2px var(--gold-mid);
}

.calendar-day-heading {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.calendar-day-heading small {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #060606;
  background: var(--gold-gradient);
  font-size: 8px;
}

.calendar-day-payments {
  display: grid;
  max-height: 92px;
  gap: 5px;
  overflow-y: auto;
}

.calendar-payment {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 7px 8px;
  border: 1px solid #eadcb9;
  border-left: 3px solid var(--gold-start);
  border-radius: 8px;
  color: var(--ink);
  background: #fff8e7;
  text-align: left;
}

.calendar-payment:hover {
  border-color: var(--gold-start);
  background: #fff1c9;
}

.calendar-payment.is-trial-reminder {
  border-color: rgba(6, 6, 6, 0.2);
  border-left-color: var(--ink);
  background: #f5f1e8;
}

.calendar-payment.is-trial-reminder:hover {
  border-color: var(--ink);
  background: #ece5d7;
}

.calendar-payment strong,
.calendar-payment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-payment strong {
  font-size: 9px;
}

.calendar-payment span {
  color: var(--muted);
  font-size: 8px;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--faint);
  background: #fbf8f0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 11px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fffaf0;
}

.cell-stack {
  display: grid;
  min-width: 0;
}

.cell-stack strong,
.cell-stack span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-stack strong {
  color: var(--ink);
  font-size: 11px;
}

.cell-stack span {
  color: var(--faint);
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #70500c;
  background: #fbf2d8;
  font-size: 9px;
  font-weight: 800;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.is-paused {
  color: #625d53;
  background: #f1eee7;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.subscription-details-button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #ddcfae;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.subscription-details-button:hover {
  border-color: var(--gold-start);
  background: var(--green-soft);
}

.row-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.row-action:hover {
  color: var(--green);
  background: var(--green-soft);
}

.row-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}

.row-action-danger:hover {
  color: var(--danger);
  background: #fff0f0;
}

.filters {
  display: flex;
  gap: 10px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.filter-search {
  min-width: 290px;
  flex: 1;
  padding: 8px 11px;
}

.filters select {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 32px 8px 11px;
  color: var(--ink);
  background: var(--surface);
}

.full-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

.empty-state {
  padding: 55px 20px;
  text-align: center;
}

.empty-state span {
  display: block;
  color: #aab4af;
  font-size: 40px;
}

.empty-state h3 {
  margin: 8px 0 3px;
  font-family: Georgia, serif;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.company-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.company-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.company-initials {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.company-card h3 {
  margin: 0;
  font-size: 13px;
}

.company-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.card-types {
  display: flex;
  gap: 7px;
}

.card-type {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(6, 6, 6, 0.46);
  backdrop-filter: blur(3px);
}

.form-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: flex;
  width: min(610px, 100%);
  flex-direction: column;
  background: #fbf8f0;
  box-shadow: -24px 0 60px rgba(33, 25, 9, 0.2);
  pointer-events: none;
  transform: translateX(102%);
  transition: transform 250ms ease;
  visibility: hidden;
}

.form-drawer.is-open {
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.drawer-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.form-drawer form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.form-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px 24px;
}

.form-section {
  display: grid;
  gap: 14px;
  margin-bottom: 17px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.form-section h3 {
  margin: 0 0 2px;
  font-size: 12px;
}

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

.field-row-three {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.field {
  display: grid;
  gap: 5px;
}

.field > span:first-child {
  color: #514c42;
  font-size: 10px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e5ddce;
  border-radius: 9px;
  outline: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 12px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-start);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(210, 150, 33, 0.12);
}

.field small {
  color: var(--faint);
  font-size: 9px;
}

.field-hint {
  margin: -4px 0 2px;
  color: var(--faint);
  font-size: 9px;
}

.trial-request-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr);
  align-items: end;
  gap: 12px;
  padding: 13px;
  border: 1px solid #eadfca;
  border-radius: 11px;
  background: #fffaf0;
}

.trial-request-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.trial-request-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-start);
}

.trial-request-check span,
.trial-request-check strong,
.trial-request-check small {
  display: block;
}

.trial-request-check strong {
  font-size: 11px;
}

.trial-request-check small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
}

.trial-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trial-schedule-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.trial-schedule-summary span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.trial-schedule-summary strong {
  font-size: 11px;
}

.password-vault {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #eadfca;
  border-radius: 11px;
  background: #fffaf0;
}

.secret-input-control {
  position: relative;
  display: block;
}

.secret-input-control input {
  padding-right: 64px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.02em;
}

.secret-input-control button {
  position: absolute;
  top: 50%;
  right: 7px;
  border: 0;
  border-radius: 7px;
  padding: 5px 7px;
  color: var(--green);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  transform: translateY(-50%);
}

.secret-input-control button:hover {
  background: var(--green-soft);
}

.password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compact-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 10px;
}

.danger-text-button {
  border: 0;
  border-radius: 8px;
  color: #9d3d3d;
  background: transparent;
  font-weight: 800;
}

.danger-text-button:hover {
  background: #fff0f0;
}

.danger-button {
  border: 1px solid #e8bcbc;
  border-radius: 10px;
  padding: 10px 15px;
  color: #a43e3e;
  background: #fff5f5;
  font-weight: 800;
}

.danger-button:hover {
  background: #fbe6e6;
}

.password-vault small[data-tone="success"] {
  color: var(--green);
  font-weight: 700;
}

.password-vault small[data-tone="warning"] {
  color: #725d2d;
  font-weight: 700;
}

.toggle-field {
  position: relative;
  align-content: center;
  grid-template-columns: 1fr auto;
  padding-top: 17px;
}

.toggle-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cec7b9;
  transition: 160ms ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  content: "";
  transition: 160ms ease;
}

.toggle-field input:checked + .toggle {
  background: var(--green);
}

.toggle-field input:checked + .toggle::after {
  transform: translateX(18px);
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #cdbc96;
  border-radius: 11px;
  color: var(--muted);
  background: #fffaf0;
  cursor: pointer;
}

.upload-field:hover {
  border-color: var(--green-2);
  background: #fff6df;
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 18px;
}

.upload-field > span:last-child {
  display: grid;
}

.upload-field strong {
  color: var(--ink);
  font-size: 10px;
}

.upload-field small {
  color: var(--faint);
  font-size: 9px;
}

.drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.security-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: blur(5px);
}

.security-modal[hidden] {
  display: none;
}

.security-card {
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.subscription-details-card {
  width: min(760px, 100%);
}

.trial-workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.trial-workflow-strip span {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.trial-workflow-strip .is-current {
  border-color: rgba(210, 150, 33, 0.5);
  color: var(--gold-ink);
  background: var(--gold-soft);
}

.trial-workflow-strip .is-complete {
  color: #fff;
  background: var(--green);
}

.subscription-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.subscription-detail-item {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 12px 14px;
  background: #fff;
}

.subscription-detail-item.is-wide {
  grid-column: 1 / -1;
}

.subscription-detail-item span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.subscription-detail-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: pre-wrap;
}

.subscription-detail-link {
  display: inline-flex;
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.subscription-detail-link:hover {
  text-decoration: underline;
}

.subscription-detail-link.is-disabled {
  color: var(--faint);
  pointer-events: none;
}

.security-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.security-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.security-card > p:not(.security-kicker) {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mfa-enrollment {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
}

.mfa-enrollment[hidden] {
  display: none;
}

.mfa-enrollment img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  background: #fff;
}

.mfa-enrollment div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mfa-enrollment span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.mfa-enrollment code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
}

.security-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #a44141;
  font-size: 10px;
  font-weight: 700;
}

.security-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 11px;
  color: #fff;
  background: #060606;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.catalog-card {
  display: grid;
  min-height: 235px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 9px 28px rgba(58, 42, 12, 0.06);
}

.catalog-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card h3 {
  margin: 10px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.catalog-card .catalog-vendor {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-card .catalog-description {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.catalog-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 700;
}

.catalog-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.catalog-actions .primary-button,
.catalog-actions .secondary-button {
  flex: 1;
  justify-content: center;
}

.status-badge.status-submitted {
  color: #6b604d;
  background: #f4f0e7;
}

.status-badge.status-approved {
  color: #70500c;
  background: #fbf2d8;
}

.status-badge.status-trial_approved,
.status-badge.status-trial_scheduled {
  color: #70500c;
  background: #fbf2d8;
}

.status-badge.status-rejected,
.status-badge.status-cancelled {
  color: #791116;
  background: #f6dfe1;
}

.status-badge.status-credentials_submitted,
.status-badge.status-trial_credentials_submitted {
  color: #55482c;
  background: #f3ead5;
}

.status-badge.status-fulfilled {
  color: #060606;
  background: #eee8dc;
}

.order-summary {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(58, 42, 12, 0.09);
}

.order-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eadcb9;
  background: linear-gradient(135deg, #fff1c9 0%, #fffdf8 100%);
}

.order-summary-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #060606;
  background: var(--gold-gradient);
  box-shadow: 0 8px 18px rgba(210, 150, 33, 0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
}

.order-summary-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.order-summary-title > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-summary-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-title small {
  color: var(--muted);
  font-size: 9px;
}

.order-summary-status {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #6b604d;
  background: #f4f0e7;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.order-summary-item {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 13px 15px;
  background: #fff;
}

.order-summary-item span,
.order-summary-description > span,
.order-summary-note > span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-summary-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
}

.order-summary-amount strong {
  color: var(--green);
  font-size: 14px;
}

.order-summary-description,
.order-summary-note {
  padding: 14px 16px 0;
}

.order-summary-description p,
.order-summary-note p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.order-summary-note {
  margin: 12px 16px 0;
  padding: 11px 12px;
  border-left: 3px solid var(--gold-start);
  border-radius: 0 9px 9px 0;
  background: #fff8e7;
}

.order-summary-note p {
  color: #5c4c28;
}

.order-summary-footer {
  display: flex;
  padding: 14px 16px 16px;
}

.order-summary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.order-summary-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.order-summary-link.is-disabled {
  color: var(--faint);
  pointer-events: none;
}

.decision-card {
  width: min(620px, 100%);
}

.order-detail {
  max-width: 250px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

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

}

@media (max-width: 880px) {
  .sidebar {
    width: 252px;
    box-shadow: 20px 0 50px rgba(20, 15, 6, 0.3);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    justify-content: flex-start;
    gap: 13px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .topbar .primary-button {
    display: none;
  }

  .mobile-add {
    display: inline-flex;
  }

  .filters {
    flex-wrap: wrap;
  }

  .filter-search {
    min-width: 100%;
  }

  .filters select {
    flex: 1;
  }

  .calendar-summary {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .trial-request-panel,
  .trial-schedule-summary {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 25px 21px;
    border-radius: 19px;
  }

  .auth-brand {
    margin-bottom: 27px;
  }

  .topbar {
    min-height: 70px;
    padding: 11px 15px;
  }

  .content-area {
    padding: 16px 14px 38px;
  }

  .profile-button {
    width: 38px;
    height: 38px;
  }

  .section-intro {
    align-items: center;
  }

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

  .metric-card {
    padding: 16px;
  }

  .trial-decision-list {
    padding-right: 16px;
    padding-left: 16px;
  }

  .trial-decision-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .trial-decision-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .panel-heading,
  .company-bars {
    padding-right: 16px;
    padding-left: 16px;
  }

  .bar-row {
    grid-template-columns: 72px 1fr 72px;
    gap: 8px;
  }

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

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

  .filters {
    padding: 13px;
  }

  .filters select,
  .filters .secondary-button {
    min-width: calc(50% - 5px);
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px 15px 14px;
  }

  .calendar-toolbar-actions {
    width: 100%;
  }

  .calendar-toolbar-actions .secondary-button {
    flex: 1;
    justify-content: center;
  }

  .calendar-summary {
    padding: 13px 15px;
  }

  .calendar-surface {
    min-width: 760px;
  }

  .calendar-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 15px;
    padding-left: 15px;
  }

  .form-body {
    padding: 14px;
  }

  .drawer-header,
  .drawer-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .field-row,
  .field-row-three {
    grid-template-columns: 1fr;
  }

  .toggle-field {
    padding-top: 0;
  }

  .drawer-footer .primary-button,
  .drawer-footer .secondary-button {
    flex: 1;
  }

  .mfa-enrollment {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mfa-enrollment div {
    text-align: center;
  }

  .decision-actions {
    flex-direction: column;
  }

  .order-summary-header {
    align-items: flex-start;
  }

  .order-summary-status {
    display: none;
  }

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

  .subscription-detail-grid {
    grid-template-columns: 1fr;
  }

  .subscription-detail-item.is-wide {
    grid-column: auto;
  }

  .subscription-details-card .security-actions {
    flex-wrap: wrap;
  }
}

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