/* Buttons and links */
.button {
  min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 400; line-height: 1.2; text-align: center; transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: none;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: #bd5233; border-color: #bd5233; color: #fff; }
.button--primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.button--secondary { background: var(--sage-pale); border-color: #bfd0c1; color: var(--sage-dark); }
.button--secondary:hover { border-color: var(--sage); color: var(--sage-darker); background: var(--sage-soft); }
.button--info { background: var(--info-soft); border-color: #b7d3d9; color: var(--info); }
.button--info:hover { background: #d9eaed; border-color: #7faab4; color: #285863; }
.button--warning { background: var(--warning-soft); border-color: #e3c28a; color: #8d5c18; }
.button--warning:hover { background: #f7e4c1; border-color: #ca984d; color: #714610; }
.button--edit { background: var(--cream); border-color: #dfc39d; color: #945628; }
.button--edit:hover { background: var(--cream-deep); border-color: #c89c67; color: #78421d; }
.button--analytics { background: var(--clay-soft); border-color: #e1b6a7; color: var(--clay-dark); }
.button--analytics:hover { background: #f5dcd3; border-color: #cd8e78; color: #873b26; }
.button--light { background: #fff; border-color: rgba(255,255,255,.65); color: var(--sage-dark); }
.button--ghost { background: var(--surface-muted); border-color: transparent; color: var(--ink-soft); }
.button--ghost:hover { background: var(--cream); border-color: var(--cream-deep); color: var(--ink); }
.button--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button--danger:hover { background: #8e342c; border-color: #8e342c; }
.button--danger-soft { background: var(--danger-soft); border-color: #dfaaa4; color: var(--danger); }
.button--danger-soft:hover { background: #f2d7d2; border-color: #c98078; color: #8e342c; }
.button--success { background: var(--success); border-color: var(--success); color: #fff; }
.button--success:hover { background: #2f6543; border-color: #2f6543; color: #fff; }
.button--text { min-height: 40px; padding-inline: 12px; background: var(--cream); border-color: var(--cream-deep); color: var(--clay-dark); }
.button--text:hover { background: var(--cream-deep); border-color: #d8bd99; color: #873b26; }
.button--compact { min-height: 40px; padding: 7px 13px; font-size: .88rem; }
.button--small { min-height: 36px; padding: 6px 11px; font-size: .82rem; }
.button--large { min-height: 54px; padding-inline: 25px; }
.button--block, .button--full { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { opacity: .58; cursor: not-allowed; transform: none; }
.button-row, .button-group, .hero-actions, .status-card__actions, .cta-panel__actions, .paywall-card__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--clay-dark); font-weight: 400; }
.text-link:hover { color: var(--sage-dark); }
.icon-button {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--sage-dark);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition); box-shadow: none;
}
.icon-button:hover { background: var(--sage-soft); border-color: var(--sage); transform: translateY(-1px); }
.icon-button--edit { border-color: #dec49f; background: var(--cream); color: #945628; }
.icon-button--edit:hover { border-color: #c89c67; background: var(--cream-deep); color: #78421d; }
.icon-button--save { border-color: #b7d5c0; background: var(--success-soft); color: var(--success); }
.icon-button--save:hover { border-color: #8fbea0; background: #d8eadc; color: #2f6543; }
.icon-button--info { border-color: #b7d3d9; background: var(--info-soft); color: var(--info); }
.icon-button--info:hover { border-color: #7faab4; background: #d9eaed; color: #285863; }
.icon-button--warning { border-color: #e3c28a; background: var(--warning-soft); color: var(--warning); }
.icon-button--warning:hover { border-color: #ca984d; background: #f7e4c1; color: #8d5c18; }
.icon-button--danger { border-color: #e0aaa4; background: var(--danger-soft); color: var(--danger); }
.icon-button--danger:hover { border-color: #c98078; background: #f2d7d2; color: #8e342c; }

/* Forms */
form { margin: 0; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 400; }
label > span:first-child { font-size: .91rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); outline: 0; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #929a95; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(83,107,88,.1); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--sage-dark); }
input[type="file"] { padding: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field--full, .field--full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 18px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-block-start: 22px; }
.field-help, label small, .form-note { display: block; font-weight: 400; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.check-field, .checkbox-row, .switch-field {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer;
}
.check-field input, .checkbox-row input, .switch-field input { margin-block-start: 3px; flex: none; }
.switch-field { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper-deep); }
.switch-field--compact { padding: 6px 9px; font-size: .85rem; }

/* Shared legal consent disclosure (checkout and partnership applications) */
.legal-consent {
  min-width: 0;
  display: grid;
  gap: 15px;
}
.legal-consent__check {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}
.legal-consent__check input {
  width: 18px;
  height: 18px;
  margin-block-start: 4px;
  accent-color: var(--clay);
}
.legal-disclosure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.legal-disclosure summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--sage-dark);
  font-size: .84rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.legal-disclosure summary::-webkit-details-marker { display: none; }
.legal-disclosure summary::after {
  content: "+";
  margin-inline-start: auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--sage-dark);
  background: var(--sage-soft);
  font-size: 1.1rem;
  line-height: 1;
}
.legal-disclosure[open] summary::after { content: "−"; }
.legal-disclosure summary:hover {
  color: var(--clay);
  background: rgba(205, 97, 59, .04);
}
.legal-disclosure summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sage);
}
.legal-disclosure summary > span:not(.legal-disclosure__icon) {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.legal-disclosure__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  color: var(--sage-dark);
  background: var(--sage-soft);
}
.legal-disclosure__icon svg { width: 17px; height: 17px; }
.legal-disclosure__content {
  max-height: 380px;
  overflow: auto;
  padding: 4px 18px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.9;
  scrollbar-gutter: stable;
}
.legal-disclosure__content section { padding-block-start: 15px; }
.legal-disclosure__content section + section {
  margin-block-start: 16px;
  border-block-start: 1px solid var(--border);
}
.legal-disclosure__content h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}
.search-field { position: relative; display: block; min-width: min(100%, 300px); }
.search-field > svg { position: absolute; inset-inline-start: 13px; inset-block-start: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-inline-start: 43px; }
.search-field--wide { width: min(100%, 620px); }
.compact-select { min-width: 155px; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 52px; }
.password-toggle { position: absolute; inset-inline-end: 4px; inset-block-end: 4px; border: 0; background: transparent; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.form-security-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px; background: var(--sage-pale); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .85rem; }

/* International phone input */
.phone-input-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}
[data-phone-field] {
  --phone-field-height: 48px;
  width: 100%;
  min-width: 0;
  min-height: var(--phone-field-height);
  display: grid;
  grid-template-columns: clamp(132px, 30%, 158px) minmax(0, 1fr);
  grid-template-areas: "country national";
  align-items: stretch;
  position: relative;
  overflow: visible;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  direction: ltr;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
[data-phone-field]:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(83,107,88,.1);
}
.phone-country-picker {
  grid-area: country;
  min-width: 0;
  position: relative;
  direction: ltr;
}
[data-phone-country],
.phone-country-picker__trigger,
[data-phone-national] {
  min-width: 0;
  min-height: calc(var(--phone-field-height) - 2px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
[data-phone-country] {
  width: 100%;
  height: 100%;
  padding-block: 8px;
  padding-inline: 12px 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.phone-country-picker.is-enhanced [data-phone-country] {
  width: 1px;
  height: 1px;
  min-height: 1px;
  position: absolute;
  inset: 50% auto auto 50%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}
.phone-country-picker__trigger {
  width: 100%;
  height: 100%;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px);
  color: var(--ink);
  cursor: pointer;
  direction: ltr;
}
.phone-country-picker__trigger[hidden],
.phone-country-picker__menu[hidden] { display: none; }
.phone-country-picker__trigger:hover,
.phone-country-picker.is-open .phone-country-picker__trigger {
  background: var(--paper-deep);
}
.phone-country-picker__flag {
  width: 23px;
  height: 17px;
  display: block;
  flex: 0 0 23px;
  overflow: hidden;
  border: 1px solid rgba(34, 55, 44, .12);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(34, 55, 44, .08);
}
.phone-country-picker__selection {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.phone-country-picker__label {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--ink);
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-country-picker__code {
  flex: 0 0 auto;
  color: var(--muted);
  direction: ltr;
  font-size: .69rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  unicode-bidi: isolate;
  white-space: nowrap;
}
html[dir="rtl"] .phone-country-picker__label {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .phone-country-picker__selection {
  direction: rtl;
}
html[dir="rtl"] .phone-country-picker__trigger {
  flex-direction: row-reverse;
}
html[dir="ltr"] .phone-country-picker__label {
  direction: ltr;
  text-align: left;
}
html[dir="ltr"] .phone-country-picker__selection {
  direction: ltr;
}
.phone-country-picker__chevron {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 12px;
  color: var(--muted);
}
.phone-country-picker__chevron svg {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform var(--transition);
}
.phone-country-picker.is-open .phone-country-picker__chevron svg {
  transform: rotate(-90deg);
}
.phone-country-picker__menu {
  width: min(268px, calc(100vw - 24px));
  max-width: none;
  position: absolute;
  z-index: 80;
  inset: calc(100% + 8px) auto auto 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(31, 48, 40, .18);
  direction: ltr;
}
.phone-country-picker__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
  padding: 7px;
  border-bottom: 1px solid var(--border);
  background: var(--paper-deep);
}
.phone-country-picker__search {
  min-width: 0;
  position: relative;
  display: block;
}
.phone-country-picker__search > svg {
  width: 17px;
  height: 17px;
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 12px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.phone-country-picker__search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px 8px 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: .8rem;
  text-align: start;
}
html[dir="rtl"] .phone-country-picker__search > svg {
  inset-inline: auto 12px;
}
html[dir="rtl"] .phone-country-picker__search input {
  padding: 8px 38px 8px 10px;
}
.phone-country-picker__close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.phone-country-picker__close:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.phone-country-picker__close svg { width: 18px; height: 18px; }
.phone-country-picker__options {
  max-height: min(310px, 48vh);
  overflow: auto;
  padding: 5px;
  scrollbar-gutter: stable;
}
.phone-country-picker__option {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  grid-template-areas: "flag identity";
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  direction: ltr;
  text-align: left;
}
.phone-country-picker__option > .phone-country-picker__flag { grid-area: flag; }
.phone-country-picker__option-identity {
  grid-area: identity;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
html[dir="rtl"] .phone-country-picker__option {
  grid-template-columns: minmax(0, 1fr) 23px;
  grid-template-areas: "identity flag";
}
html[dir="rtl"] .phone-country-picker__option-identity {
  direction: rtl;
}
html[dir="ltr"] .phone-country-picker__option-identity {
  direction: ltr;
}
.phone-country-picker__option[hidden] { display: none; }
.phone-country-picker__option:hover,
.phone-country-picker__option:focus-visible {
  outline: none;
  background: var(--sage-pale);
}
.phone-country-picker__option[aria-selected="true"] {
  background: var(--sage-soft);
  color: var(--sage-dark);
}
.phone-country-picker__option-name {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[dir="rtl"] .phone-country-picker__option-name {
  direction: rtl;
  text-align: right;
}
html[dir="ltr"] .phone-country-picker__option-name {
  direction: ltr;
  text-align: left;
}
.phone-country-picker__option-code {
  flex: 0 0 auto;
  color: var(--muted);
  direction: ltr;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.phone-country-picker__empty {
  margin: 0;
  padding: 20px 14px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}
[data-phone-national],
html[dir="rtl"] [data-phone-national][dir="ltr"] {
  grid-area: national;
  padding: 9px 13px;
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
[data-phone-country]:focus,
.phone-country-picker__trigger:focus,
[data-phone-national]:focus,
html[dir="rtl"] [data-phone-national][dir="ltr"]:focus {
  border-color: transparent;
  box-shadow: none;
}
.phone-country-picker__trigger:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--sage);
  outline-offset: -3px;
}
[data-phone-full][type="hidden"] { display: none; }
[data-phone-field]:has([aria-invalid="true"]) {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(169,67,57,.09);
}
[data-phone-field]:has(:disabled) {
  background: var(--paper-deep);
  opacity: .78;
}
html[dir="rtl"] [data-phone-country] {
  text-align: right;
}
html[dir="ltr"] [data-phone-country] {
  text-align: left;
}
.input-with-icon [data-phone-field] [data-phone-national],
html[dir="rtl"] .input-with-icon [data-phone-field] [data-phone-national][dir="ltr"] {
  min-height: calc(var(--phone-field-height) - 2px);
  padding: 9px 13px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 520px) {
  [data-phone-field] {
    grid-template-columns: clamp(126px, 42%, 146px) minmax(0, 1fr);
  }
  [data-phone-country] {
    padding-inline: 9px 25px;
    font-size: .8rem;
  }
  .phone-country-picker__trigger {
    padding-inline: 7px;
    gap: 5px;
  }
  .phone-country-picker__label { font-size: .7rem; }
  .phone-country-picker__code { font-size: .66rem; }
  [data-phone-national],
  html[dir="rtl"] [data-phone-national][dir="ltr"],
  .input-with-icon [data-phone-field] [data-phone-national],
  html[dir="rtl"] .input-with-icon [data-phone-field] [data-phone-national][dir="ltr"] {
    padding-inline: 9px;
    font-size: .86rem;
  }
  .phone-country-picker__menu {
    width: min(252px, calc(100vw - 20px));
  }
}

/* Generic surfaces */
.card, .panel, .box, .admin-card, .card-panel, .auth-card, .support-form-card, .contact-card, .faq-contact-card, .checkout-form-card, .order-summary {
  background: rgba(255,255,255,.93); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.card, .panel, .box, .card-panel { padding: 26px; }
.panel-heading, .admin-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-block-end: 22px;
}
.panel-heading h2, .admin-card__head h2, .admin-card__head h3 { margin: 0; }
.panel-heading--outside { margin-block-end: 18px; }
.badge, .status-pill, .status-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: var(--cream); color: var(--ink-soft); font-size: .75rem; font-weight: 400; line-height: 1.2;
}
.numeric-value {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.badge--success, .status-pill--active, .status-pill--paid, .status-pill--published, .status-pill--approved, .status-pill--completed, .status-pill--resolved, .status-pill--answered, .status-pill--succeeded, .status-pill--refunded, .status-pill--success { background: var(--success-soft); color: var(--success); }
.badge--warning, .status-pill--pending, .status-pill--reviewing, .status-pill--draft, .status-pill--machine, .status-pill--partially_refunded, .status-pill--created, .status-pill--warning { background: var(--warning-soft); color: var(--warning); }
.status-pill--failed, .status-pill--cancelled, .status-pill--blocked, .status-pill--dispute_lost, .status-pill--lost, .status-pill--archived, .status-pill--suspended, .status-pill--rejected, .status-pill--excluded, .status-pill--dismissed, .status-pill--danger, .status-pill--stale { background: var(--danger-soft); color: var(--danger); }
.status-badge--active, .status-badge--paid, .status-badge--published, .status-badge--completed, .status-badge--succeeded, .status-badge--approved, .status-badge--resolved, .status-badge--refunded { background: var(--success-soft); color: var(--success); }
.status-badge--pending, .status-badge--review, .status-badge--reviewing, .status-badge--draft, .status-badge--partially_refunded { background: var(--warning-soft); color: var(--warning); }
.status-badge--failed, .status-badge--cancelled, .status-badge--blocked, .status-badge--suspended, .status-badge--expired, .status-badge--dismissed { background: var(--danger-soft); color: var(--danger); }
.status-pill--open, .status-pill--review, .status-pill--disputed, .status-pill--needs_response, .status-pill--under_review, .status-pill--warning_needs_response, .status-pill--warning_under_review, .status-pill--info { background: var(--info-soft); color: var(--info); }
.status-pill--won, .status-pill--warning_closed, .status-pill--prevented, .status-pill--dispute_won { background: var(--success-soft); color: var(--success); }
.status-pill--inactive, .status-pill--missing, .status-pill--closed { background: #ecefeb; color: var(--muted); }
.status-pill--urgent, .status-pill--high { background: var(--danger-soft); color: var(--danger); }
.status-pill--normal { background: var(--info-soft); color: var(--info); }
.status-pill--low { background: var(--sage-soft); color: var(--sage); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.status-dot.is-active, .status-line .status-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.feature-icon, .test-mode-icon, .empty-state__icon, .file-icon, .session-icon, .feed-icon, .admin-stat-card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; flex: none; background: var(--sage-soft); color: var(--sage-dark);
}
.feature-icon svg, .test-mode-icon svg { width: 25px; height: 25px; }
.empty-state { min-height: 190px; padding: 32px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state--compact { min-height: 120px; }
.empty-state p { margin: 12px 0; }
.empty-state > svg { width: 38px; height: 38px; color: var(--sage); }
.alert, .notice, .inline-notice, .success-panel, .warning-panel {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--cream); color: var(--ink-soft);
}
.notice--info { background: var(--info-soft); border-color: #c7dfe3; }
.success-panel { background: var(--success-soft); color: var(--success); border-color: #c9e0cf; }
.warning-panel { background: var(--warning-soft); color: #80500f; border-color: #ead3aa; }
.alert--success { background: var(--success-soft); color: var(--success); border-color: #c9e0cf; }
.alert--error { background: var(--danger-soft); color: var(--danger); border-color: #edc9c4; }
.alert--warning { background: var(--warning-soft); color: var(--warning); border-color: #ead3aa; }
.flash-stack {
  position: fixed;
  z-index: 3000;
  inset-block-start: 92px;
  inset-inline: 18px;
  width: min(calc(100vw - 36px),480px);
  margin-inline: auto;
  display: grid;
  gap: 10px;
}
.flash-stack .alert {
  min-height: 58px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34,48,41,.13);
}
.flash-stack .alert__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: currentColor;
}
.flash-stack .alert__icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.flash-stack .alert > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  line-height: 1.65;
}
.flash-stack .alert .icon-button {
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
  flex: 0 0 36px;
  border: 0;
  background: transparent;
  color: currentColor;
}

/* Public header and footer are maintained in chrome.css. */

/* Cookie consent */
.cookie-banner { position: fixed; z-index: 2500; inset-inline: 16px; inset-block-end: 16px; width: min(calc(100% - 32px), 740px); margin-inline: auto; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.97); box-shadow: var(--shadow-lg); }
.cookie-banner__content { display: flex; align-items: center; gap: 14px; }
.cookie-banner__content p { margin: 0; }
.cookie-banner__actions { display: flex; gap: 10px; margin-block-start: 15px; }

/* Common tables */
.responsive-table, .table-scroll, .table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: middle; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; background: var(--paper-deep); }
html[dir="rtl"] th { letter-spacing: 0; }
td { color: var(--ink-soft); }
td small { display: block; margin-block-start: 3px; }
tbody tr:hover { background: rgba(247,239,227,.45); }
.table-primary { color: var(--ink); font-weight: 400; }
.table-actions { display: flex; align-items: center; gap: 7px; }
.inline-form { display: flex; align-items: center; gap: 8px; min-width: 245px; }
.inline-form select { min-height: 40px; }

/* Accordion */
.accordion-list { display: grid; gap: 12px; }
.faq-item, .accordion { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); overflow: clip; }
.faq-item summary, .accordion summary { list-style: none; cursor: pointer; padding: 17px 20px; color: var(--ink); font-weight: 400; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq-item summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .accordion summary::after { content: "+"; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font-size: 1.2rem; }
.faq-item[open] summary::after, .accordion[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 20px 18px; }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* Page hero */
.page-hero {
  padding: 0;
  background: transparent;
  border: 0;
}
.page-hero__panel {
  position: relative;
  height: var(--page-hero-height,240px);
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 !important;
  background-color: var(--page-hero-end,#536B58);
  background-image:
    linear-gradient(90deg,
      color-mix(in srgb,var(--page-hero-start,#34493A) 72%,transparent),
      color-mix(in srgb,var(--page-hero-start,#34493A) 42%,transparent) 50%,
      color-mix(in srgb,var(--page-hero-end,#536B58) 72%,transparent)),
    var(--page-hero-background),
    linear-gradient(112deg,var(--page-hero-start,#34493A),var(--page-hero-end,#536B58));
  background-position: center,var(--page-hero-position,center),center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--page-hero-text,#FFFDF9);
  box-shadow: none !important;
  isolation: isolate;
}
.page-hero__panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb,var(--page-hero-start,#34493A) 58%,transparent) 0,
    color-mix(in srgb,var(--page-hero-start,#34493A) 34%,transparent) 45%,
    transparent 76%);
}
.page-hero__panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(15,25,20,.08),transparent 45%,rgba(15,25,20,.16));
}
.page-hero__layout {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  padding-block: 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  place-items: center;
}
.page-hero__copy {
  width: min(100%,940px);
  min-width: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: inherit;
  direction: ltr;
  text-align: center;
  text-shadow: 0 2px 14px rgba(17,28,23,.28);
}
html[dir="rtl"] .page-hero__copy {
  direction: rtl;
  text-align: center;
}
.page-hero h1 {
  width: 100%;
  max-width: 900px;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: clamp(2rem,3.6vw,2.75rem);
  line-height: 1.22;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.page-hero p {
  width: 100%;
  max-width: 820px;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb,var(--page-hero-text,#FFFDF9) 80%,transparent);
  font-size: clamp(.92rem,1.25vw,1.04rem);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .8rem; margin-block-end: 16px; }

/* Miscellaneous reusable */
.meta-line, .label-row, .status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); }
.check-list li svg { color: var(--success); margin-block-start: 3px; }
.progress-track, .mini-progress { height: 8px; border-radius: var(--radius-pill); background: var(--cream-deep); overflow: hidden; }
.progress-track > span, .mini-progress > span { display: block; height: 100%; background: var(--clay); border-radius: inherit; }
.circular-progress, .score-ring {
  --score: 0; width: 154px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--clay) calc(var(--score) * 1%), var(--cream-deep) 0);
  position: relative;
}
.circular-progress::before, .score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: var(--white); }
.circular-progress > *, .score-ring > * { position: relative; z-index: 1; text-align: center; }
.score-ring--small { width: 132px; }
.status-card { width: min(100%, 780px); min-width: 0; max-width: 100%; margin: 48px auto; padding: clamp(20px,4vw,44px); overflow-wrap: anywhere; text-align: center; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-lg); }
.status-card__icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.status-card--cancel .status-card__icon { background: var(--warning-soft); color: var(--warning); }
.status-card h1 { font-size: clamp(1.5rem,3.5vw,2.5rem); line-height: 1.4; }
.status-card p { line-height: 1.85; }
.status-card > *, .status-card .summary-list > div > * { min-width: 0; max-width: 100%; }
.status-card .summary-list > div { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); text-align: start; align-items: start; }
.status-card .summary-list dd { text-align: end; }
.status-card__actions { justify-content: center; margin-top: 24px; }
.status-card__actions .button { min-width: 0; max-width: 100%; min-height: 46px; white-space: normal; text-align: center; line-height: 1.7; }
.error-page__content { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); align-items: center; gap: clamp(24px,4vw,50px); }
.system-page-view.section{padding-block:clamp(24px,5vw,64px);background:var(--system-bg,#f7efe3)}
.system-page-view .error-page__content{width:min(var(--system-content-width,1080px),calc(100% - 32px));margin-inline:auto;padding:clamp(20px,4vw,48px);min-height:0;border:1px solid color-mix(in srgb,var(--system-accent,#c9613e) 22%,transparent);border-radius:var(--radius-lg);background:var(--system-card,#fffdf9);box-shadow:var(--shadow-lg)}
.system-page-view .error-page__content > *{min-width:0;max-width:100%}
.system-page-view__copy{overflow-wrap:anywhere}
.system-page-view h1{font-size:var(--system-title-size,42px);line-height:1.4;margin:12px 0 16px;overflow-wrap:anywhere}
.system-page-view__title--align-start{text-align:start}
.system-page-view__title--align-center{text-align:center}
.system-page-view__title--align-end{text-align:end}
.system-page-view__text{max-width:100%;color:var(--ink-soft);font-size:var(--system-text-size,17px);line-height:1.85;overflow-wrap:anywhere}
.system-page-view__text--align-start{text-align:start}
.system-page-view__text--align-center{text-align:center}
.system-page-view__text--align-end{text-align:end}
.system-page-view__text>:first-child{margin-block-start:0}
.system-page-view__text>:last-child{margin-block-end:0}
.system-page-view__text p{margin:0 0 1em;color:inherit;font-size:inherit;line-height:inherit}
.system-page-view__text :is(h2,h3,h4){margin:1.15em 0 .45em;color:var(--ink);line-height:1.35}
.system-page-view__text :is(ul,ol){margin:.8em 0;padding-inline-start:1.55em;text-align:start}
.system-page-view__text li+li{margin-block-start:.35em}
.system-page-view__text blockquote{margin:1em 0;padding:.8em 1em;border-inline-start:4px solid var(--system-accent,#c9613e);background:color-mix(in srgb,var(--system-accent,#c9613e) 8%,transparent)}
.system-page-view__text a{color:var(--system-accent,#c9613e);text-decoration:underline;text-underline-offset:.18em}
.system-page-view__text figure{max-width:100%;margin:1.1em 0;text-align:center}
.system-page-view__text img{display:block;max-width:100%;height:auto;margin-inline:auto;border-radius:var(--radius-sm)}
.system-page-view__text figcaption{margin-block-start:.45em;color:var(--muted);font-size:.8em}
.system-page-view__text table{display:block;width:100%;max-width:100%;margin:1em 0;overflow-x:auto;border-collapse:collapse}
.system-page-view__text :is(th,td){min-width:6rem;padding:.6em .75em;border:1px solid color-mix(in srgb,var(--system-accent,#c9613e) 20%,var(--border));text-align:start;vertical-align:top;overflow-wrap:normal}
.system-page-view__text th{background:color-mix(in srgb,var(--system-accent,#c9613e) 8%,transparent)}
.system-page-view__text pre{max-width:100%;padding:1em;overflow:auto;border-radius:var(--radius-sm);background:#1f2f27;color:#e2eee5;text-align:start;direction:ltr}
.system-page-view .eyebrow{color:var(--system-accent,#c9613e)}
.system-page-view .button--primary{background:var(--system-accent,#c9613e);border-color:var(--system-accent,#c9613e)}
.system-page-view .error-page__custom-visual{display:block;width:min(var(--system-image-width,360px),100%);max-width:100%;height:auto;max-height:400px;object-fit:contain}
.system-page-view__fallback{display:grid;place-items:center;width:min(var(--system-image-width,260px),100%);max-width:100%;aspect-ratio:1;margin-inline:auto;border-radius:38% 62% 55% 45%;background:color-mix(in srgb,var(--system-accent,#c9613e) 14%,white);color:var(--system-accent,#c9613e)}
.system-page-view__fallback svg{width:42%;height:42%}
.system-page-view--align-center .error-page__content{grid-template-columns:minmax(0,1fr);text-align:center}
.system-page-view--align-center .button-row{justify-content:center}
.system-page-view--align-center .error-page__visual{order:-1;width:min(100%,400px);margin-inline:auto}
.system-page-view .system-page-view__actions--align-start{justify-content:flex-start}
.system-page-view .system-page-view__actions--align-center{justify-content:center}
.system-page-view .system-page-view__actions--align-end{justify-content:flex-end}
.system-page-view__actions{margin-top:24px}
.system-page-view__actions .button{min-width:0;max-width:100%;min-height:46px;white-space:normal;line-height:1.7;text-align:center}
.error-page__visual { min-width: 0; min-height: 0; display: grid; place-items: center; padding: clamp(16px,2.5vw,28px); position: relative; border-radius: var(--radius-lg); background: linear-gradient(160deg,var(--sage-soft),var(--cream)); overflow: hidden; }
@media (max-width: 820px) {
  .system-page-view .error-page__content { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .system-page-view .error-page__visual { order: -1; width: min(100%,240px); min-height: 0; margin-inline: auto; padding: 16px; }
  .system-page-view .error-page__custom-visual { max-height: 220px; }
  .system-page-view__fallback { width: min(var(--system-image-width,160px),160px,100%); }
  .system-page-view h1 { font-size: min(var(--system-title-size,42px),clamp(24px,5.5vw,36px)); }
  .system-page-view__text { font-size: min(var(--system-text-size,17px),18px); }
}
@media (max-width: 620px) {
  .system-page-view .error-page__content { padding: 22px 18px; border-radius: 20px; }
  .system-page-view__actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .system-page-view__actions .button { width: 100%; }
  .status-card .summary-list > div { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .status-card .summary-list dd { text-align: start; }
}
.error-road { position: absolute; width: 130%; height: 100px; inset-inline-start: -20%; inset-block-end: 46px; border-block: 22px solid var(--sage-dark); transform: rotate(-14deg); }
.error-road::after { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 4px dashed var(--paper); }
.error-sign, .error-lock, .error-clock, .error-tools { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%,-65%); width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50% 50% 50% 14px; background: var(--clay); color: #fff; font-size: 1.8rem; font-weight: 400; box-shadow: var(--shadow-md); }
html[dir="rtl"] .error-sign, html[dir="rtl"] .error-lock, html[dir="rtl"] .error-clock, html[dir="rtl"] .error-tools { transform: translate(50%,-65%); }
.error-lock svg, .error-clock svg, .error-tools svg { width: 48px; height: 48px; }

/* Question feedback states. */
.feedback-card--correct, .feedback-card.is-correct, .question-feedback.is-correct { border-color: #b8d9c3; background: var(--success-soft); }
.feedback-card--wrong, .feedback-card.is-wrong, .question-feedback.is-wrong { border-color: #e7c98e; background: var(--warning-soft); }
.preview-question__option.is-correct, .answer-option.is-correct { border-color: var(--success); background: var(--success-soft); }
.preview-question__option.is-wrong, .answer-option.is-wrong { border-color: var(--danger); background: var(--danger-soft); }



/* Page-level managed content */
.managed-page-section {
  padding-block: clamp(46px,7vw,78px);
}
.managed-page-section__container {
  width: 100%;
}
.managed-page-section--wide .managed-page-section__container {
  max-width: min(1380px, calc(100% - 32px));
}
.managed-page-section--narrow .managed-page-section__container {
  max-width: min(820px, calc(100% - 32px));
}
.managed-page-section__header {
  max-width: 780px;
  margin-block-end: 30px;
}
.managed-page-section__header h1 {
  margin: 7px 0 12px;
}
.managed-page-section__header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.96rem,1.4vw,1.08rem);
  line-height: 1.8;
}
.managed-page-section__content {
  padding: clamp(22px,4vw,38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.managed-page-blank {
  min-height: clamp(220px,32vh,420px);
}
.managed-page-blank--auth {
  min-height: 260px;
}
@media (max-width: 620px) {
  .managed-page-section { padding-block: 44px; }
  .managed-page-section__content { padding: 20px 17px; }
  .managed-page-blank { min-height: 210px; }
}
.user-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(52,73,58,.16);
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}
.user-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.user-avatar--header { width: 28px; height: 28px; border-color: rgba(255,255,255,.34); border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; font-size: .6rem; }
.user-avatar--header-menu { width: 34px; height: 34px; border-color: #d8dfda; border-radius: 50%; background: var(--sage-pale); color: var(--sage-dark); font-size: .64rem; }
.user-avatar--account-menu { width: 48px; height: 48px; border-color: #cfd9d2; border-radius: 50%; background: #fff; color: var(--sage-dark); font-size: .78rem; box-shadow: 0 5px 14px rgba(34,48,41,.1); }
.user-avatar--mobile { width: 28px; height: 28px; border-radius: 9px; font-size: .58rem; }
.user-avatar--drawer { width: 31px; height: 31px; border-radius: 10px; font-size: .62rem; }
.user-avatar--dashboard { width: 29px; height: 29px; border-color: rgba(255,255,255,.32); border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; font-size: .58rem; }
.user-avatar--admin-topbar { width: 38px; height: 38px; border-radius: 12px; font-size: .68rem; }
.user-avatar--admin-list { width: 39px; height: 39px; border-radius: 12px; }
.user-avatar--admin-hero { width: 62px; height: 62px; border-color: rgba(255,255,255,.26); border-radius: 19px; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; }
.page-share{width:min(var(--container),calc(100% - 32px));margin:28px auto;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-sm)}
.page-share__label,.page-share__buttons,.page-share__button{display:flex;align-items:center;gap:9px}
.page-share__label{grid-column:1;grid-row:1;justify-self:start;font-weight:800}.page-share__label svg{width:21px}
.page-share__buttons{grid-column:2;grid-row:1;flex-wrap:wrap;justify-content:center}
.page-share__button{min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:var(--cream);color:var(--ink);font:inherit;font-size:.86rem;font-weight:700;line-height:1.4;text-decoration:none;cursor:pointer}
.page-share__button:hover,.page-share__button:focus-visible,.page-share__button.is-copied{border-color:var(--sage);background:var(--sage);color:#fff}
.page-share__buttons svg{width:18px;height:18px}
.app-store-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.app-store-button{display:flex;align-items:center;gap:9px;min-width:155px;padding:9px 13px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:#18201c;color:#fff!important;text-decoration:none}
.app-store-button svg{width:25px;height:25px}.app-store-button span{display:grid;line-height:1.15}.app-store-button small{font-size:.67rem;opacity:.74}.app-store-button strong{font-size:.91rem}
.app-store-button--image{min-width:0;padding:0;border:0;border-radius:10px;background:transparent;overflow:hidden}
.app-store-button--image:hover{opacity:.9}.app-store-button--image:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.app-store-button__image{display:block;width:auto;height:48px;max-width:min(210px,100%);object-fit:contain}
@media(max-width:680px){.page-share{display:flex;align-items:center;flex-direction:column;text-align:center}.page-share__buttons{width:100%;justify-content:center}.page-share__button span{display:none}.page-share__button{justify-content:center;min-width:42px;padding-inline:10px}.app-store-buttons{display:grid;grid-template-columns:1fr}.app-store-button{width:100%}.app-store-button--image{width:max-content;max-width:100%;justify-self:start}.app-store-button__image{height:46px}}
.content-watermark-frame{position:relative!important;isolation:isolate}
.content-watermark-layer{position:absolute;z-index:4;display:block;overflow:hidden;pointer-events:none;user-select:none;line-height:normal}
.content-watermark{position:absolute;z-index:1;display:grid;place-items:center;max-width:72%;padding:.28em .55em;color:#fff;font-size:var(--content-watermark-size,28px);font-weight:900;line-height:1.2;letter-spacing:.04em;text-align:center;text-shadow:0 1px 5px rgba(0,0,0,.78);opacity:var(--content-watermark-opacity,.18);pointer-events:none;user-select:none;transform:rotate(-18deg)}
.content-watermark img{display:block!important;width:min(var(--content-watermark-image-size,112px),42vw)!important;max-width:100%!important;max-height:110px!important;object-fit:contain!important;filter:drop-shadow(0 1px 4px rgba(0,0,0,.55))}
.content-watermark-frame--center>.content-watermark,.content-watermark--center{inset:50% auto auto 50%;transform:translate(-50%,-50%) rotate(-18deg)}
.content-watermark-frame--top-left>.content-watermark,.content-watermark--top-left{inset:var(--content-watermark-edge,28px) auto auto var(--content-watermark-edge,28px)}
.content-watermark-frame--top-right>.content-watermark,.content-watermark--top-right{inset:var(--content-watermark-edge,28px) var(--content-watermark-edge,28px) auto auto}
.content-watermark--middle-left{inset:50% auto auto var(--content-watermark-edge,28px);transform:translateY(-50%) rotate(-18deg)}
.content-watermark--middle-right{inset:50% var(--content-watermark-edge,28px) auto auto;transform:translateY(-50%) rotate(-18deg)}
.content-watermark-frame--bottom-left>.content-watermark,.content-watermark--bottom-left{inset:auto auto var(--content-watermark-edge,28px) var(--content-watermark-edge,28px)}
.content-watermark-frame--bottom-right>.content-watermark,.content-watermark--bottom-right{inset:auto var(--content-watermark-edge,28px) var(--content-watermark-edge,28px) auto}

/* Shared by the theory-test catalogue and its administration preview. */
.test-category-notice {
  min-width: 0;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--test-notice-text, #34493a) 16%, transparent);
  border-radius: var(--radius-md, 20px);
  background: var(--test-notice-background, #e7eee7);
  color: var(--test-notice-text, #34493a);
  text-align: center;
}
.test-category-notice__copy { min-width: 0; }
.test-category-notice .test-category-notice__copy h2 {
  margin: 0;
  color: inherit;
  font-size: var(--test-notice-title-size, 20px);
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.test-category-notice .test-category-notice__copy p {
  margin: 4px 0 0;
  color: inherit;
  font-size: var(--test-notice-description-size, 14px);
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.test-category-notice-editor__fields { margin-block-start: 20px; }
.test-category-notice-editor__fields .form-field--full { grid-column: 1 / -1; }
.test-category-notice-editor__help { margin-block: 16px 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.test-category-notice-editor__preview { margin-block-start: 22px; }
.test-category-notice-editor__preview > h3 { margin-block: 0 12px; font-size: .9rem; }
.test-category-notice-editor__preview[hidden], .test-category-notice [hidden] { display: none; }
@media (max-width: 600px) {
  .test-category-notice { min-height: 56px; padding: 10px 12px; }
  .test-category-notice-editor__fields { grid-template-columns: minmax(0, 1fr); }
}
