:root {
  --order-navy: #1c1917;
  --order-ink: #1d2939;
  --order-copy: #344054;
  --order-muted: #667085;
  --order-line: #d0d5dd;
  --order-line-strong: #98a2b3;
  --order-paper: #ffffff;
  --order-wash: #f8fafc;
  --order-teal: #c2410c;
  --order-teal-dark: #9a3412;
  --order-teal-soft: #e9fbf8;
  --order-violet: #c2410c;
  --order-violet-dark: #9a3412;
  --order-violet-soft: #fff7ed;
  --order-danger: #b42318;
  --order-danger-soft: #fef3f2;
  --order-success: #067647;
  --order-success-soft: #ecfdf3;
  --order-warning: #93370d;
  --order-warning-soft: #fffaeb;
  --order-radius: 4px;
}

.page-order,
.page-dashboard {
  background: var(--order-wash);
}

.page-order .wp-block-post-content,
.page-dashboard .wp-block-post-content {
  margin: 0;
}

.statdh-order-page *,
.statdh-dashboard *,
.statdh-portalbar * {
  box-sizing: border-box;
}

.statdh-order-page,
.statdh-dashboard {
  min-height: 0;
  margin: 0;
  padding: 56px 28px 104px;
  color: var(--order-ink);
  background: var(--order-wash);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.statdh-order-page button,
.statdh-order-page input,
.statdh-order-page select,
.statdh-order-page textarea,
.statdh-dashboard button,
.statdh-dashboard input,
.statdh-dashboard select,
.statdh-dashboard textarea {
  font: inherit;
}

.statdh-order-form,
.statdh-dashboard > * {
  width: min(1240px, 100%);
  margin-inline: auto;
}

/* Portal header */
.statdh-portalbar {
  position: relative;
  z-index: 20;
  width: 100%;
  color: var(--order-navy);
  background: var(--order-paper);
  border-bottom: 1px solid var(--order-line);
}

.statdh-portalbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 56px));
  min-height: 72px;
  margin: 0 auto;
}

.statdh-portalbar a {
  color: inherit;
  text-decoration: none;
}

.statdh-portalbar__brand,
.statdh-portalbar__actions,
.statdh-portalbar__actions a {
  display: flex;
  align-items: center;
}

.statdh-portalbar__brand {
  gap: 11px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.statdh-portalbar__brand img {
  width: 32px;
  height: 32px;
}

.statdh-portalbar__actions {
  gap: 26px;
}

.statdh-portalbar__actions a {
  gap: 8px;
  min-height: 44px;
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.statdh-portalbar__actions a + a {
  padding-left: 26px;
  border-left: 1px solid var(--order-line);
}

.statdh-portalbar__actions a:hover,
.statdh-portalbar__actions a:focus-visible {
  color: var(--order-violet);
}

.statdh-portalbar__actions a span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-teal-dark);
  font-size: 18px;
  font-weight: 700;
}

/* Page headings */
.statdh-order-heading,
.statdh-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.statdh-order-heading h1,
.statdh-dashboard h1,
.statdh-order-detail h1,
.statdh-order-info h2,
.statdh-messages h2,
.statdh-files h2,
.statdh-profile-grid h2,
.statdh-discounts h2,
.statdh-summary-card h2,
.statdh-empty h2 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
}

.statdh-order-heading h1,
.statdh-dashboard h1 {
  margin: 0;
  color: var(--order-navy);
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1.03;
}

.statdh-order-heading > div > p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--order-muted);
  font-size: 18px;
  line-height: 1.55;
}

.statdh-order-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  color: var(--order-teal-dark) !important;
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.statdh-order-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--order-teal);
}

.statdh-currency select {
  min-width: 150px;
  height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-navy);
  background-color: var(--order-paper);
  font-size: 16px;
  font-weight: 650;
}

/* Site Kit supplies the actual Google Identity button; do not restyle its iframe. */
.statdh-google-sign-in { margin:20px 0; }
.statdh-google-provider { max-width:100%; }
.statdh-google-sign-in__help,.statdh-google-sign-in__notice { max-width:850px; margin:14px 0 0; color:var(--order-muted); font-size:16px; line-height:1.6; }
.statdh-account-step > .statdh-google-sign-in { margin:0 0 18px; }
.statdh-account-step .statdh-google-sign-in__notice { margin-top:12px; padding:12px 16px; border-left:3px solid var(--order-teal); background:var(--order-teal-soft); color:var(--order-copy); }
.statdh-auth-divider { display:flex; align-items:center; gap:16px; margin-top:20px; color:var(--order-muted); font-size:15px; }
.statdh-auth-divider::before,.statdh-auth-divider::after { content:""; height:1px; flex:1; background:var(--order-line); }
.statdh-check.statdh-order-terms { margin-top:28px; padding-top:24px; border-top:1px solid var(--order-line); }

/* Order form structure */
.statdh-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 32px;
  align-items: start;
}

.statdh-order-main {
  min-width: 0;
}

.statdh-form-step {
  position: relative;
  padding: 38px 40px 44px;
  border: 1px solid var(--order-line);
  border-left: 4px solid var(--order-teal);
  border-radius: var(--order-radius);
  background: var(--order-paper);
}

.statdh-form-step + .statdh-form-step {
  margin-top: 28px;
}

.statdh-form-step::before {
  display: none;
}

.statdh-step-label {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 0 0 32px;
  padding: 0 0 17px;
  border-bottom: 2px solid var(--order-navy);
  color: var(--order-navy);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.statdh-step-label::after {
  display: none;
}

.statdh-step-label span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--order-radius);
  color: #fff;
  background: var(--order-navy);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.statdh-fields {
  display: grid;
  gap: 24px;
}

.statdh-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.statdh-field > label:first-child,
.statdh-inline-label {
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.statdh-field input[type="text"],
.statdh-field input[type="email"],
.statdh-field input[type="password"],
.statdh-field input[type="tel"],
.statdh-field textarea,
.statdh-search-select input {
  width: 100%;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-navy);
  background: var(--order-paper);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.statdh-field input[type="text"],
.statdh-field input[type="email"],
.statdh-field input[type="password"],
.statdh-field input[type="tel"],
.statdh-search-select input {
  height: 54px;
  padding: 0 16px;
}

.statdh-field textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.statdh-field input::placeholder,
.statdh-field textarea::placeholder,
.statdh-search-select input::placeholder {
  color: #7c8799;
  opacity: 1;
}

.statdh-field input:focus,
.statdh-field textarea:focus,
.statdh-search-select input:focus {
  border-color: var(--order-teal);
  outline: 3px solid rgba(194, 65, 12, .22);
  outline-offset: 1px;
}

.statdh-field--textarea {
  align-items: start;
}

/* Searchable selects */
.statdh-search-select {
  position: relative;
  min-width: 0;
}

.statdh-search-select > span {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--order-muted);
  border-radius: 50%;
  color: var(--order-muted);
  font-size: 0;
  line-height: 1;
  pointer-events: none;
}

.statdh-search-select > span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: var(--order-muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.statdh-search-select input {
  padding-right: 52px;
  padding-left: 46px;
}

.statdh-select-toggle {
  position: absolute;
  z-index: 3;
  top: 1px;
  right: 1px;
  width: 50px;
  height: 52px;
  border: 0;
  border-left: 1px solid var(--order-line);
  border-radius: 0 var(--order-radius) var(--order-radius) 0;
  color: var(--order-copy);
  background: var(--order-wash);
  cursor: pointer;
  font-size: 0;
}

.statdh-select-toggle::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: -4px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.statdh-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  max-height: 310px;
  border: 1px solid var(--order-line-strong);
  border-radius: 0 0 var(--order-radius) var(--order-radius);
  background: var(--order-paper);
  overflow-y: auto;
}

.statdh-select-menu[hidden],
.statdh-select-menu > button[hidden],
.statdh-select-empty[hidden] {
  display: none;
}

.statdh-select-menu > strong {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--order-line);
  color: var(--order-muted);
  background: var(--order-wash);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.statdh-select-menu > button {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid #eaecf0;
  color: var(--order-copy);
  background: var(--order-paper);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.statdh-select-menu > button:hover,
.statdh-select-menu > button:focus {
  color: var(--order-teal-dark);
  background: var(--order-teal-soft);
  outline: 0;
}

.statdh-select-empty {
  padding: 16px;
  color: var(--order-muted);
  font-size: 14px;
}

/* Segmented controls */
.statdh-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.statdh-segments label {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.statdh-segments--academic,
.statdh-segments--deadlines {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statdh-segments--formats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.statdh-segments input,
.statdh-writer-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.statdh-segments span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-copy);
  background: var(--order-paper);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.statdh-segments--academic span {
  min-height: 76px;
}

.statdh-segments--deadlines span,
.statdh-segments--spacing span {
  min-height: 54px;
}

.statdh-segments label:hover span {
  border-color: var(--order-teal-dark);
  color: var(--order-teal-dark);
  background: var(--order-teal-soft);
}

.statdh-segments input:checked + span {
  border-color: var(--order-navy);
  color: #fff;
  background: var(--order-navy);
  box-shadow: inset 0 -3px 0 var(--order-teal);
}

.statdh-segments input:focus-visible + span,
.statdh-writer-options input:focus-visible + span {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--order-teal-dark);
  outline-offset: 3px;
}

/* Uploads, notes and counters */
.statdh-dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 94px;
  padding: 18px;
  border: 1px dashed var(--order-line-strong);
  border-radius: var(--order-radius);
  color: var(--order-copy);
  background: var(--order-wash);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.statdh-dropzone:hover,
.statdh-dropzone.is-dragging {
  border-color: var(--order-teal);
  background: var(--order-teal-soft);
}

.statdh-dropzone strong {
  padding: 10px 14px;
  border: 1px solid var(--order-violet);
  border-radius: var(--order-radius);
  color: var(--order-violet-dark);
  background: var(--order-paper);
  font-size: 16px;
  font-weight: 700;
}

.statdh-dropzone span {
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 550;
}

.statdh-dropzone small,
.statdh-deadline-note,
.statdh-field--inline > div > small {
  color: var(--order-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
}

.statdh-dropzone small {
  text-align: right;
}

.statdh-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.statdh-deadline-note {
  display: block;
  margin-top: 2px;
}

.statdh-field--inline {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(260px, 1fr);
  column-gap: 22px;
  row-gap: 9px;
  align-items: start;
}

.statdh-field--inline > label:first-child {
  grid-column: 1;
  grid-row: 1;
}

.statdh-field--inline > div {
  grid-column: 1;
  grid-row: 2;
}

.statdh-field--inline > div > small {
  display: block;
  margin-top: 7px;
  text-align: center;
}

.statdh-inline-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.statdh-field--inline .statdh-segments {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
}

.statdh-field--counter .statdh-counter,
.statdh-field--inline .statdh-counter {
  width: 166px;
}

.statdh-counter {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  height: 52px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  background: var(--order-paper);
  overflow: hidden;
}

.statdh-counter button {
  border: 0;
  color: var(--order-violet-dark);
  background: var(--order-wash);
  cursor: pointer;
  font-size: 18px;
  font-weight: 750;
}

.statdh-counter button:first-child {
  border-right: 1px solid var(--order-line);
}

.statdh-counter button:last-child {
  border-left: 1px solid var(--order-line);
}

.statdh-counter button:hover,
.statdh-counter button:focus-visible {
  color: #fff;
  background: var(--order-violet);
}

.statdh-counter input {
  width: 100%;
  border: 0;
  color: var(--order-navy);
  background: var(--order-paper);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}

.statdh-counter input::-webkit-inner-spin-button {
  appearance: none;
}

/* Writer category */
.statdh-writer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  background: var(--order-paper);
  overflow: hidden;
}

.statdh-writer-options label {
  min-width: 0;
  cursor: pointer;
}

.statdh-writer-options label > span {
  position: relative;
  display: block;
  min-height: 166px;
  padding: 21px 18px;
  border-right: 1px solid var(--order-line);
  color: var(--order-ink);
  background: var(--order-paper);
  transition: color .18s ease, background-color .18s ease;
}

.statdh-writer-options label:last-child > span {
  border-right: 0;
}

.statdh-writer-options strong {
  display: block;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.statdh-writer-options b {
  position: absolute;
  top: 22px;
  right: 16px;
  color: var(--order-violet-dark);
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.statdh-writer-options small {
  display: block;
  margin-top: 13px;
  color: var(--order-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
}

.statdh-writer-options input:checked + span {
  color: #fff;
  background: var(--order-violet);
}

.statdh-writer-options input:checked + span b,
.statdh-writer-options input:checked + span small {
  color: #fff;
}

/* Sticky research summary */
.statdh-order-summary {
  position: sticky;
  top: calc(var(--nova-header-height, 122px) + var(--nova-admin-offset, 0px) + 24px);
}

.statdh-summary-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--order-line-strong);
  border-top: 4px solid var(--order-teal);
  border-radius: var(--order-radius);
  color: var(--order-ink);
  background: var(--order-paper);
  box-shadow: none;
  overflow: hidden;
}

.statdh-summary-card::before {
  display: none;
}

.statdh-summary-eyebrow {
  margin: 0 0 11px;
  color: var(--order-teal-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.statdh-summary-card h2 {
  margin: 0;
  color: var(--order-navy);
  font-size: 28px;
  line-height: 1.15;
}

.statdh-summary-card ul {
  margin: 20px 0 22px;
  padding: 0;
  color: var(--order-copy);
  list-style: none;
}

.statdh-summary-card li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid #eaecf0;
  font-size: 16px;
  line-height: 1.4;
}

.statdh-summary-card li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--order-teal);
}

.statdh-summary-price,
.statdh-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--order-line);
}

.statdh-summary-price span,
.statdh-summary-price strong,
.statdh-summary-total span {
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 600;
}

.statdh-summary-price strong,
.statdh-summary-total strong {
  font-variant-numeric: tabular-nums;
}

.statdh-summary-total {
  border-top: 2px solid var(--order-navy);
}

.statdh-summary-total strong {
  color: var(--order-violet-dark);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.statdh-coupon {
  padding-top: 18px;
  border-top: 1px solid var(--order-line);
}

.statdh-coupon label {
  display: block;
  margin-bottom: 8px;
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 650;
}

.statdh-coupon > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.statdh-coupon input {
  min-width: 0;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--order-line);
  border-right: 0;
  border-radius: var(--order-radius) 0 0 var(--order-radius);
  color: var(--order-navy);
  background: #fff;
  font-size: 16px;
}

.statdh-coupon button {
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid var(--order-violet);
  border-radius: 0 var(--order-radius) var(--order-radius) 0;
  color: #fff;
  background: var(--order-violet);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.statdh-coupon small {
  display: block;
  min-height: 23px;
  padding-top: 7px;
  color: var(--order-muted);
  font-size: 14px;
  line-height: 1.4;
}

.statdh-coupon small.is-success {
  color: var(--order-success);
}

.statdh-coupon small.is-error {
  color: var(--order-danger);
}

.statdh-submit,
.statdh-action-button,
.statdh-profile-grid button,
.statdh-messages button,
.statdh-files button,
.statdh-login-card input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--order-navy);
  border-radius: var(--order-radius);
  color: #fff;
  background: var(--order-navy);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.statdh-submit {
  width: 100%;
  margin-top: 15px;
  border-color: var(--order-teal-dark);
  background: var(--order-teal-dark);
}

.statdh-submit:hover,
.statdh-submit:focus-visible,
.statdh-action-button:hover,
.statdh-action-button:focus-visible,
.statdh-profile-grid button:hover,
.statdh-messages button:hover,
.statdh-files button:hover,
.statdh-login-card input[type="submit"]:hover {
  border-color: var(--order-violet);
  background: var(--order-violet);
}

.statdh-submit:disabled {
  opacity: .62;
  cursor: wait;
}

.statdh-secure-note {
  margin: 14px 0 0;
  color: var(--order-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* Account step */
.statdh-account-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 25px;
  border-bottom: 1px solid var(--order-line);
}

.statdh-account-tabs button {
  min-height: 52px;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--order-muted);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.statdh-account-tabs button.is-active {
  border-bottom-color: var(--order-teal);
  color: var(--order-navy);
}

.statdh-account-panel {
  display: none;
  max-width: 720px;
}

.statdh-account-panel.is-active {
  display: grid;
  gap: 19px;
}

.statdh-account-panel .statdh-field {
  grid-template-columns: minmax(0, 1fr);
}

.statdh-account-phone {
  max-width: 720px;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.statdh-account-phone small {
  color: var(--order-muted);
  font-size: 14px;
  line-height: 1.6;
}

.statdh-forgot {
  justify-self: end;
  color: var(--order-violet-dark);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.statdh-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
}

.statdh-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--order-violet);
}

.statdh-check a {
  color: var(--order-violet-dark);
}

.statdh-account-connected {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 720px;
  padding: 20px;
  border: 1px solid #75e0d4;
  border-radius: var(--order-radius);
  color: var(--order-success);
  background: var(--order-teal-soft);
}

.statdh-account-connected > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--order-radius);
  color: #fff;
  background: var(--order-teal-dark);
  font-size: 18px;
  font-weight: 750;
}

.statdh-account-connected strong {
  font-size: 16px;
}

.statdh-account-connected p {
  margin: 3px 0 0;
  color: var(--order-copy);
  font-size: 16px;
}

.statdh-alert {
  width: min(1240px, 100%);
  margin: 0 auto 24px;
  padding: 15px 17px;
  border-radius: var(--order-radius);
  font-size: 16px;
  line-height: 1.5;
}

.statdh-alert--error {
  color: var(--order-danger);
  background: var(--order-danger-soft);
  border: 1px solid #fda29b;
}

/* Customer workspace navigation */
.statdh-dashboard {
  padding-top: 38px;
}

.statdh-dashboard-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--order-line);
}

.statdh-dashboard-nav a {
  padding: 14px 2px 13px;
  border-bottom: 3px solid transparent;
  color: var(--order-muted);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.statdh-dashboard-nav a:hover,
.statdh-dashboard-nav a:focus-visible,
.statdh-dashboard-nav a.is-active {
  color: var(--order-navy);
  border-bottom-color: var(--order-teal);
}

.statdh-dashboard-nav a:last-child {
  margin-left: auto;
}

.statdh-action-button {
  flex: 0 0 auto;
}

.statdh-order-filters {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--order-line);
}

.statdh-order-filters a {
  padding: 11px 2px 10px;
  border-bottom: 3px solid transparent;
  color: var(--order-muted);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.statdh-order-filters a.is-active {
  border-bottom-color: var(--order-violet);
  color: var(--order-violet-dark);
}

/* Order list */
.statdh-order-list {
  display: grid;
  gap: 12px;
}

.statdh-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px 130px;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--order-line);
  border-left: 4px solid var(--order-teal);
  border-radius: var(--order-radius);
  background: var(--order-paper);
}

.statdh-order-card__title {
  display: block;
  color: var(--order-navy);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statdh-order-card__title:hover,
.statdh-order-card__title:focus-visible {
  color: var(--order-violet-dark);
}

.statdh-order-card__main > p {
  margin: 7px 0 15px;
  color: var(--order-muted);
  font-size: 14px;
  line-height: 1.5;
}

.statdh-order-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.statdh-order-card__buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-copy);
  background: var(--order-paper);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.statdh-order-card__buttons a:hover,
.statdh-order-card__buttons a:focus-visible {
  border-color: var(--order-violet);
  color: var(--order-violet-dark);
}

.statdh-order-card__buttons b,
.statdh-order-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: var(--order-radius);
  color: var(--order-violet-dark);
  background: var(--order-violet-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.statdh-order-progress {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.statdh-order-progress small {
  color: var(--order-muted);
  font-size: 14px;
}

.statdh-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #fed7aa;
  border-radius: var(--order-radius);
  color: #9a3412;
  background: var(--order-violet-soft);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.statdh-status--paid,
.statdh-status--writer_assigned,
.statdh-status--in_progress {
  border-color: #75e0d4;
  color: var(--order-teal-dark);
  background: var(--order-teal-soft);
}

.statdh-status--approved {
  border-color: #75e0a7;
  color: var(--order-success);
  background: var(--order-success-soft);
}

.statdh-status--cancelled,
.statdh-status--refund_requested {
  border-color: #fda29b;
  color: var(--order-danger);
  background: var(--order-danger-soft);
}

.statdh-status--unpaid {
  border-color: #fec84b;
  color: var(--order-warning);
  background: var(--order-warning-soft);
}

.statdh-order-card__price {
  color: var(--order-navy);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Empty and login states */
.statdh-empty {
  padding: 52px 26px;
  border: 1px dashed var(--order-line-strong);
  border-radius: var(--order-radius);
  color: var(--order-muted);
  background: var(--order-paper);
  font-size: 16px;
  text-align: center;
}

.statdh-empty > span {
  color: var(--order-teal-dark);
  font-size: 28px;
}

.statdh-empty h2 {
  margin: 10px 0 8px;
  color: var(--order-navy);
  font-size: 30px;
  line-height: 1.2;
}

.statdh-empty p {
  margin: 0;
}

.statdh-login-card {
  max-width: 560px;
  margin-top: 54px;
  padding: 40px;
  border: 1px solid var(--order-line);
  border-top: 4px solid var(--order-teal);
  border-radius: var(--order-radius);
  background: var(--order-paper);
}

.statdh-login-card h1 {
  margin: 0 0 15px;
}

.statdh-login-card > p,
.statdh-login-card label {
  color: var(--order-copy);
  font-size: 16px;
}

.statdh-login-card .login-username,
.statdh-login-card .login-password,
.statdh-login-card .login-remember,
.statdh-login-card .login-submit {
  margin: 20px 0 0;
}

.statdh-login-card .login-username label,
.statdh-login-card .login-password label {
  display: grid;
  gap: 8px;
  font-weight: 650;
}

.statdh-login-card input[type="text"],
.statdh-login-card input[type="password"] {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-navy);
  background: #fff;
  font-size: 16px;
}

.statdh-login-card a {
  color: var(--order-violet-dark);
}

/* Order detail */
.statdh-order-detail {
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  background: var(--order-paper);
  overflow: hidden;
}

.statdh-order-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 34px;
  border-top: 4px solid var(--order-teal);
  background: var(--order-paper);
}

.statdh-order-detail h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  color: var(--order-navy);
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.08;
}

.statdh-order-detail header p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.statdh-order-detail header p small {
  color: var(--order-muted);
  font-size: 14px;
}

.statdh-order-detail header > strong {
  color: var(--order-violet-dark);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.statdh-back {
  color: var(--order-violet-dark);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.statdh-order-tabs {
  display: flex;
  gap: 26px;
  padding: 0 34px;
  border-top: 1px solid var(--order-line);
  border-bottom: 1px solid var(--order-line);
}

.statdh-order-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 2px;
  border-bottom: 3px solid transparent;
  color: var(--order-muted);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.statdh-order-tabs a.is-active {
  border-color: var(--order-teal);
  color: var(--order-navy);
}

/* Research progress line */
.statdh-progress-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 28px 34px 30px;
  border-top: 1px solid var(--order-line);
  background: var(--order-wash);
}

.statdh-progress-track span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 0 14px 0 0;
  color: var(--order-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.statdh-progress-track span::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 17px;
  left: 18px;
  right: -18px;
  height: 2px;
  background: var(--order-line);
}

.statdh-progress-track span:last-child::after {
  display: none;
}

.statdh-progress-track i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--order-line-strong);
  border-radius: var(--order-radius);
  color: var(--order-muted);
  background: var(--order-paper);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.statdh-progress-track span.is-done {
  color: var(--order-teal-dark);
}

.statdh-progress-track span.is-done::after {
  background: var(--order-teal);
}

.statdh-progress-track span.is-done i {
  border-color: var(--order-teal-dark);
  color: #fff;
  background: var(--order-teal-dark);
}

.statdh-progress-track span.is-current {
  color: var(--order-violet-dark);
  font-weight: 800;
}

.statdh-progress-track span.is-current i {
  border-color: var(--order-violet);
  background: var(--order-violet);
}

/* Order information */
.statdh-order-info {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  min-height: 520px;
}

.statdh-order-info__details {
  padding: 30px 34px 42px;
  border-right: 1px solid var(--order-line);
}

.statdh-order-info__details > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eaecf0;
}

.statdh-order-info__details span {
  color: var(--order-muted);
  font-size: 16px;
  font-weight: 650;
}

.statdh-order-info__details p {
  margin: 0;
  color: var(--order-ink);
  font-size: 16px;
  line-height: 1.65;
}

.statdh-order-info > aside {
  padding: 34px;
}

.statdh-order-info h2,
.statdh-messages h2,
.statdh-files h2 {
  margin: 0 0 26px;
  color: var(--order-navy);
  font-size: 30px;
  line-height: 1.15;
}

.statdh-addons {
  display: grid;
  border-top: 1px solid var(--order-line);
  counter-reset: addon;
}

.statdh-addons span {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--order-line);
  gap: 14px;
  color: var(--order-violet);
  background: var(--order-paper);
  font-size: 16px;
  counter-increment: addon;
}

.statdh-addons span::before {
  content: "0" counter(addon);
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 34px;
  border: 1px solid #fed7aa;
  border-radius: var(--order-radius);
  color: var(--order-violet-dark);
  background: var(--order-violet-soft);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.statdh-addons b {
  display: block;
  margin-left: 0;
  color: var(--order-navy);
  font-size: 16px;
  font-weight: 700;
}

.statdh-order-info aside > p {
  margin: 20px 0 0;
  color: var(--order-muted);
  font-size: 16px;
  line-height: 1.65;
}

.statdh-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--order-navy);
}

.statdh-review-actions h3,
.statdh-review-actions > p {
  grid-column: 1 / -1;
}

.statdh-review-actions h3 {
  margin: 0;
  color: var(--order-navy);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.statdh-review-actions > p {
  margin: 0 0 8px !important;
}

.statdh-review-actions form:first-of-type {
  grid-column: 1 / -1;
}

.statdh-review-action {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--order-line-strong);
  border-radius: var(--order-radius);
  color: var(--order-copy);
  background: var(--order-paper);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.statdh-review-action--approve {
  border-color: var(--order-teal-dark);
  color: #fff;
  background: var(--order-teal-dark);
}

.statdh-review-action--refund {
  border-color: #fda29b;
  color: var(--order-danger);
}

/* Messages */
.statdh-messages {
  padding: 34px 34px 56px;
}

.statdh-messages form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 32px;
}

.statdh-messages textarea {
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-navy);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
}

.statdh-message-list {
  border-top: 2px solid var(--order-navy);
}

.statdh-message-list article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 180px;
  gap: 20px;
  padding: 19px 5px;
  border-bottom: 1px solid var(--order-line);
}

.statdh-message-list article span {
  color: var(--order-violet-dark);
  font-size: 16px;
  font-weight: 700;
}

.statdh-message-list article p {
  margin: 0;
  color: var(--order-ink);
  font-size: 16px;
  line-height: 1.6;
}

.statdh-message-list article time {
  color: var(--order-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

/* Files */
.statdh-files {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  min-height: 480px;
}

.statdh-files > div,
.statdh-files > aside {
  padding: 34px;
}

.statdh-files > aside {
  border-left: 1px solid var(--order-line);
}

.statdh-file-list {
  display: grid;
  gap: 9px;
}

.statdh-file-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
}

.statdh-file-list article > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: var(--order-radius);
  color: var(--order-violet-dark);
  background: var(--order-violet-soft);
  font-size: 14px;
  font-weight: 800;
}

.statdh-file-list strong {
  display: block;
  color: var(--order-navy);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.statdh-file-list small {
  display: block;
  margin-top: 3px;
  color: var(--order-muted);
  font-size: 14px;
}

.statdh-file-list a {
  color: var(--order-violet-dark);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.statdh-files form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.statdh-files input[type="file"] {
  width: 100%;
  padding: 17px;
  border: 1px dashed var(--order-line-strong);
  border-radius: var(--order-radius);
  color: var(--order-copy);
  background: var(--order-wash);
  font-size: 14px;
}

/* Profile */
.statdh-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.statdh-profile-grid form {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 34px;
  border: 1px solid var(--order-line);
  border-top: 4px solid var(--order-teal);
  border-radius: var(--order-radius);
  background: var(--order-paper);
}

.statdh-profile-grid form + form {
  border-top-color: var(--order-violet);
}

.statdh-profile-grid h2 {
  margin: 0 0 6px;
  color: var(--order-navy);
  font-size: 30px;
  line-height: 1.15;
}

.statdh-profile-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 650;
}

.statdh-profile-grid input[type="text"],
.statdh-profile-grid input[type="email"],
.statdh-profile-grid input[type="tel"],
.statdh-profile-grid input[type="password"] {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  color: var(--order-navy);
  background: #fff;
  font-size: 16px;
  font-weight: 450;
}

.statdh-profile-grid input:disabled {
  color: var(--order-muted);
  background: var(--order-wash);
}

.statdh-profile-grid .statdh-check {
  display: flex;
  margin: 0;
  font-weight: 450;
}

.statdh-profile-grid button {
  justify-self: end;
}

/* Discounts */
.statdh-spend {
  color: var(--order-violet-dark);
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.statdh-discounts {
  padding: 40px;
  border: 1px solid var(--order-line);
  border-top: 4px solid var(--order-violet);
  border-radius: var(--order-radius);
  background: var(--order-paper);
}

.statdh-discount-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 42px;
  border-top: 2px solid var(--order-navy);
  border-bottom: 1px solid var(--order-line);
}

.statdh-discount-track > div {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--order-line);
  color: var(--order-muted);
  background: var(--order-wash);
}

.statdh-discount-track > div:last-child {
  border-right: 0;
}

.statdh-discount-track > div::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--order-line);
}

.statdh-discount-track > div.is-reached {
  color: var(--order-teal-dark);
  background: var(--order-teal-soft);
}

.statdh-discount-track > div.is-reached::before {
  background: var(--order-teal);
}

.statdh-discount-track span {
  color: inherit;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.statdh-discount-track strong {
  margin-top: 10px;
  color: var(--order-copy);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.statdh-discounts h2 {
  margin: 0 0 16px;
  color: var(--order-navy);
  font-size: 34px;
  line-height: 1.15;
}

.statdh-discounts > p {
  max-width: 780px;
  margin: 0;
  color: var(--order-copy);
  font-size: 18px;
  line-height: 1.7;
}

/* Shared focus visibility */
.statdh-order-page a:focus-visible,
.statdh-dashboard a:focus-visible,
.statdh-order-page button:focus-visible,
.statdh-dashboard button:focus-visible,
.statdh-portalbar a:focus-visible,
.statdh-currency select:focus-visible,
.statdh-files input[type="file"]:focus-visible,
.statdh-profile-grid input:focus-visible,
.statdh-login-card input:focus-visible {
  outline: 3px solid rgba(194, 65, 12, .4);
  outline-offset: 3px;
}

/* Tablet */
@media (max-width: 1080px) {
  .statdh-order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-order-summary {
    position: static;
  }

  .statdh-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    column-gap: 36px;
  }

  .statdh-summary-eyebrow,
  .statdh-summary-card h2,
  .statdh-summary-card ul {
    grid-column: 1;
  }

  .statdh-summary-price,
  .statdh-summary-total,
  .statdh-coupon,
  .statdh-submit,
  .statdh-secure-note {
    grid-column: 2;
  }

  .statdh-summary-price {
    grid-row: 1;
  }

  .statdh-summary-total {
    grid-row: 2;
  }

  .statdh-coupon {
    grid-row: 3 / span 2;
  }

  .statdh-order-card {
    grid-template-columns: minmax(0, 1fr) 210px 120px;
  }

  .statdh-order-info {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-order-info__details {
    border-right: 0;
    border-bottom: 1px solid var(--order-line);
  }

  .statdh-addons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--order-line);
  }

  .statdh-addons span {
    border-right: 1px solid var(--order-line);
  }
}

@media (max-width: 860px) {
  .statdh-order-page,
  .statdh-dashboard {
    padding: 44px 20px 84px;
  }

  .statdh-portalbar__inner {
    width: calc(100% - 40px);
  }

  .statdh-portalbar__actions {
    gap: 14px;
  }

  .statdh-form-step {
    padding: 32px 28px 38px;
  }

  .statdh-field--inline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .statdh-writer-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-writer-options label > span {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--order-line);
  }

  .statdh-writer-options label:last-child > span {
    border-bottom: 0;
  }

  .statdh-order-card {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .statdh-order-card__price {
    grid-column: 2;
    grid-row: 2;
  }

  .statdh-profile-grid,
  .statdh-files {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-files > aside {
    border-top: 1px solid var(--order-line);
    border-left: 0;
  }

  .statdh-message-list article {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .statdh-message-list article time {
    grid-column: 2;
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .statdh-portalbar__inner {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .statdh-portalbar__brand span {
    display: none;
  }

  .statdh-portalbar__actions {
    gap: 12px;
  }

  .statdh-portalbar__actions a {
    gap: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 14px;
  }

  .statdh-portalbar__actions a span {
    display: none;
  }

  .statdh-order-page,
  .statdh-dashboard {
    min-height: 0;
    padding: 34px 14px 68px;
    font-size: 16px;
  }

  .statdh-order-heading,
  .statdh-dashboard-head {
    display: grid;
    align-items: start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .statdh-order-heading h1,
  .statdh-dashboard h1 {
    font-size: 44px;
  }

  .statdh-order-heading > div > p:last-child {
    font-size: 18px;
  }

  .statdh-currency select {
    width: 100%;
  }

  .statdh-form-step {
    padding: 25px 18px 30px;
  }

  .statdh-step-label {
    margin-bottom: 26px;
  }

  .statdh-fields {
    gap: 21px;
  }

  .statdh-field--inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-field--inline > label:first-child,
  .statdh-field--inline > div,
  .statdh-inline-label,
  .statdh-field--inline .statdh-segments {
    grid-column: 1;
    grid-row: auto;
  }

  .statdh-inline-label {
    margin-top: 8px;
  }

  .statdh-field--counter .statdh-counter,
  .statdh-field--inline .statdh-counter {
    width: 100%;
  }

  .statdh-segments,
  .statdh-segments--academic,
  .statdh-segments--formats,
  .statdh-segments--deadlines,
  .statdh-segments--spacing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statdh-dropzone {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .statdh-dropzone small {
    text-align: center;
  }

  .statdh-summary-card {
    display: block;
    padding: 24px 20px;
  }

  .statdh-account-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .statdh-dashboard-nav {
    gap: 20px;
    margin-bottom: 32px;
    overflow-x: auto;
  }

  .statdh-dashboard-nav a:last-child {
    margin-left: 0;
  }

  .statdh-order-filters {
    overflow-x: auto;
  }

  .statdh-order-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 18px;
  }

  .statdh-order-card__title {
    white-space: normal;
  }

  .statdh-order-progress {
    flex-direction: row;
    align-items: center;
  }

  .statdh-order-card__price {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .statdh-login-card {
    margin-top: 20px;
    padding: 28px 20px;
  }

  .statdh-order-detail > header {
    display: block;
    padding: 26px 20px;
  }

  .statdh-order-detail h1 {
    font-size: 36px;
  }

  .statdh-order-detail header > strong {
    display: block;
    margin-top: 20px;
  }

  .statdh-order-tabs {
    gap: 22px;
    padding: 0 20px;
    overflow-x: auto;
  }

  .statdh-progress-track {
    display: grid;
    grid-auto-columns: 150px;
    grid-auto-flow: column;
    grid-template-columns: none;
    padding: 24px 20px 26px;
    overflow-x: auto;
  }

  .statdh-order-info__details,
  .statdh-order-info > aside,
  .statdh-messages,
  .statdh-files > div,
  .statdh-files > aside {
    padding: 26px 20px;
  }

  .statdh-order-info__details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

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

  .statdh-review-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-review-actions h3,
  .statdh-review-actions > p,
  .statdh-review-actions form:first-of-type {
    grid-column: 1;
  }

  .statdh-messages form {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-message-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .statdh-message-list article time {
    grid-column: 1;
  }

  .statdh-file-list article {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .statdh-file-list article > span {
    width: 42px;
    height: 42px;
  }

  .statdh-file-list a {
    grid-column: 2;
    justify-self: start;
  }

  .statdh-profile-grid form,
  .statdh-discounts {
    padding: 28px 20px;
  }

  .statdh-discount-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .statdh-discount-track > div {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid var(--order-line);
  }
}

@media (max-width: 430px) {
  .statdh-portalbar__actions {
    gap: 9px;
  }

  .statdh-portalbar__actions a {
    font-size: 14px;
  }

  .statdh-order-heading h1,
  .statdh-dashboard h1 {
    font-size: 44px;
  }

  .statdh-segments span {
    padding-inline: 9px;
    font-size: 16px;
  }

  .statdh-account-tabs button {
    font-size: 16px;
  }
}

.statdh-paypal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 28px;
  align-items: center;
  margin: 28px;
  padding: 28px;
  border: 1px solid var(--order-line);
  border-left: 4px solid var(--order-teal-dark);
  border-radius: var(--order-radius);
  background: var(--order-wash);
}

.statdh-paypal-panel h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; }
.statdh-paypal-panel p { margin: 8px 0 0; color: var(--order-copy); font-size: 16px; line-height: 1.65; }
.statdh-paypal-panel .statdh-order-kicker { margin: 0 0 12px; color: var(--order-teal-dark); }
.statdh-paypal-panel form { display: grid; gap: 16px; margin: 0; }
.statdh-paypal-panel form strong { color: var(--order-navy); font-size: 26px; line-height: 1.3; }
.statdh-paypal-panel .statdh-paypal-button { width: 100%; min-height: 52px; padding: 13px 18px; font-size: 16px; line-height: 1.5; white-space: normal; }
.statdh-paypal-panel .statdh-paypal-notice,
.statdh-paypal-panel .statdh-paypal-test-note { margin-top: 16px; padding: 12px 16px; border: 1px solid #fedf89; background: var(--order-warning-soft); color: var(--order-warning); }
.statdh-paypal-panel--paid { grid-template-columns: minmax(0, 1fr); border-left-color: var(--order-success); background: var(--order-success-soft); }
.statdh-paypal-panel--review { grid-template-columns: minmax(0, 1fr); border-left-color: var(--order-warning); background: var(--order-warning-soft); }
.statdh-paypal-panel .statdh-paypal-receipt { overflow-wrap: anywhere; font-size: 15px; }

@media (max-width: 800px) {
  .statdh-paypal-panel { grid-template-columns: minmax(0, 1fr); margin: 20px; padding: 22px; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .statdh-order-page *,
  .statdh-dashboard *,
  .statdh-portalbar * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Pricing transparency: all components come from the shared quote engine. */
.statdh-summary-card .statdh-rate-caption {
  margin: 20px 0 8px;
  color: var(--order-copy);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}
.statdh-price-breakdown { margin: 0; padding: 0; }
.statdh-price-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--order-line);
  color: var(--order-copy);
  font-size: 15px;
  line-height: 1.5;
}
.statdh-price-breakdown > div[hidden] { display: none; }
.statdh-price-breakdown dt, .statdh-price-breakdown dd { margin: 0; }
.statdh-price-breakdown dd { color: var(--order-navy); font-weight: 700; text-align: right; white-space: nowrap; }
.statdh-price-breakdown__subtotal { font-weight: 700; }
.statdh-summary-card .statdh-price-factors { margin: 16px 0 22px; font-size: 14px; line-height: 1.65; color: var(--order-copy); }
.statdh-pricing-notice { display: block; margin-top: 9px; color: #9a3412; font-size: 15px; line-height: 1.6; }
.statdh-pricing-notice:empty { display: none; }
.statdh-page-definition { grid-column: 1 / -1; max-width: 620px; color: var(--order-copy); font-size: 14px; line-height: 1.6; }
.statdh-segments input:disabled + span { background: var(--order-wash); color: #667085; cursor: not-allowed; text-decoration: line-through; border-color: var(--order-line); }
.statdh-submit:disabled { opacity: .6; cursor: not-allowed; }
.statdh-included-services { margin-top: 20px; padding: 24px; border: 1px solid var(--order-line); border-radius: var(--order-radius); background: #fff; }
.statdh-included-services h3 { margin: 0 0 14px; color: var(--order-navy); font-size: 20px; line-height: 1.4; }
.statdh-included-services ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.statdh-included-services li { font-size: 15px; line-height: 1.65; color: var(--order-copy); }
.statdh-included-services li::marker { color: var(--order-teal-dark); }
.statdh-included-services p { margin: 18px 0 0; font-size: 14px; line-height: 1.65; color: var(--order-copy); }
/* A long price breakdown must remain reachable on laptop-height viewports. */
@media (max-height: 1100px) { .statdh-order-summary { position: static; } }
