@font-face {
  font-family: Vazirmatn;
  src: url("/assets/Vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--text, #191b1e);
  background: var(--page-bg, #f6f6f5);
  line-height: 1.7;
  font-weight: 400;
  --technical-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html[lang="en"] { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }

* { box-sizing: border-box; }

body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header { background: var(--header-bg, var(--surface, #fff)); color: var(--header-text, inherit); border-bottom: 1px solid var(--border, #e9e9e8); }
.header-inner { direction: ltr; width: min(100% - 48px, 1160px); min-height: 66px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--brand-accent, #d51d36); }
.language-toggle { min-height: 36px; padding: 5px 13px; border: 1px solid var(--border, #dfe1e3); border-radius: 7px; background: var(--header-bg, var(--surface, #fff)); color: var(--header-text, var(--text, #42484e)); font-family: Vazirmatn, system-ui, sans-serif; font-size: 13px; font-weight: 500; }
.language-toggle:hover { background: color-mix(in srgb, var(--header-bg, #fff), var(--header-text, #191b1e) 12%); }

.page-shell { width: min(100% - 40px, 820px); margin: 72px auto 52px; flex: 1; }
.page-intro { width: 100%; text-align: center; margin-inline: auto; }
.page-intro h1 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.5; margin: 0 0 12px; font-weight: 700; }
.page-intro p { color: var(--muted, #74777b); margin: 0; font-size: 14px; }

.progress-nav { width: min(100%, 590px); margin: 47px auto 41px; }
.stepper { direction: inherit; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.stepper-item { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: var(--muted, #999da2); font-size: 12px; white-space: nowrap; }
.stepper-item:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -12px; width: 24px; border-top: 1px solid var(--border, #dedfdf); transform: translateY(-50%); }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-soft, #e9eaeb); color: var(--muted, #898d92); font: 700 11px/1 "Segoe UI", Tahoma, sans-serif; }
.stepper-item.is-active { color: var(--text, #16181b); font-weight: 600; }
.stepper-item.is-active .step-number { background: var(--brand-accent, #d51d36); color: #fff; }
.stepper-item.is-done { color: var(--muted, #686d73); }
.stepper-item.is-done .step-number { background: var(--surface, #fff); border: 1px solid var(--brand-accent, #e5a0aa); color: var(--accent-text, var(--brand-accent, #a62e3d)); }

.card { text-align: start; background: var(--surface, #fff); border: 1px solid var(--border, #e6e7e8); border-radius: 16px; box-shadow: 0 12px 28px rgba(18, 21, 27, .055); padding: 39px 42px 42px; margin-inline: auto; }
.card-narrow { max-width: 570px; }
.card-wide { max-width: 780px; }
.eyebrow { color: var(--accent-text, var(--brand-accent, #c61d34)); font-weight: 500; font-size: 12px; margin: 0 0 10px; }
.card h2 { font-size: 20px; line-height: 1.65; margin: 0 0 9px; font-weight: 600; }
.card-description { color: var(--muted, #74777b); font-size: 14px; margin: 0; }
.field-group { margin-top: 35px; }
.field-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.field-group input, .field-group textarea { display: block; width: 100%; border: 1px solid var(--border, #dfe1e3); border-radius: 10px; background: var(--surface-soft, #fcfcfc); color: var(--text, #202327); outline: 0; transition: border-color .15s, box-shadow .15s; }
.field-group input { height: 48px; padding: 10px 15px; }
.technical { direction: ltr; unicode-bidi: isolate; font-family: var(--technical-font); font-weight: 400; }
.field-group .technical { font-size: 13px; font-weight: 400; line-height: 1.65; }
#session-input, #credential-input { direction: ltr; text-align: left; }
#cdk-input { direction: ltr; text-align: left; }
html[lang="fa"] #cdk-input:placeholder-shown { direction: rtl; text-align: right; }
.field-group textarea { min-height: 240px; resize: vertical; padding: 14px 16px; }
.field-group input::placeholder, .field-group textarea::placeholder { font-family: Vazirmatn, Tahoma, sans-serif; }
html[lang="en"] .field-group input::placeholder, html[lang="en"] .field-group textarea::placeholder { font-family: inherit; }
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--muted, #9ca0a4); opacity: 1; }
.field-group input:focus, .field-group textarea:focus { border-color: var(--focus, #a2a8ac); box-shadow: 0 0 0 3px rgba(47, 86, 111, .09); }
.field-error { margin: 10px 0 0; color: var(--negative, #b4233a); font-size: 13px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 43px; padding: 9px 19px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.button-primary { background: var(--brand-primary, #178652); border-color: var(--brand-primary, #178652); color: var(--on-primary, #fff); }
.button-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-primary, #178652), black 15%); border-color: var(--brand-primary, #178652); }
.button-secondary { background: var(--surface, #fff); border-color: var(--border, #d6d8da); color: var(--text, #33383d); }
.button-secondary:hover:not(:disabled) { background: var(--surface-soft, #f6f7f7); }
.button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid var(--focus, #2d729b); outline-offset: 3px; }

.summary-list { border: 1px solid var(--border, #e4e5e6); border-radius: 12px; background: var(--surface-soft, #fcfcfc); margin: 31px 0 0; padding: 0 19px; }
.summary-list > div { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.summary-list > div + div { border-top: 1px solid var(--border, #ececed); }
.summary-list dt { color: var(--muted, #74777b); font-size: 13px; }
.summary-list dd { margin: 0; font-size: 13px; font-weight: 500; text-align: end; overflow-wrap: anywhere; }
.summary-list dd.technical { font-weight: 400; }
#step-confirm [data-tone="positive"] { color: var(--positive, #178652); }
#step-confirm [data-tone="negative"] { color: var(--negative, #b4233a); }
#step-confirm [data-tone="neutral"] { color: var(--muted, #74777b); }
.notice { margin: 21px 0 0; padding: 14px 17px; border: 1px solid var(--border, #e4e6e8); border-radius: 10px; background: var(--surface-soft, #fafafa); color: var(--muted, #62676c); font-size: 13px; }

/* Package C: existing components, confined to product identification/account details. */
#step-cdk .product-confirmation { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border: 1px solid var(--border, #d6e9de); border-radius: 12px; background: var(--surface-soft, #eaf5ef); }
#step-cdk .product-confirmation p { margin: 3px 0; overflow-wrap: anywhere; font-size: 12px; color: var(--muted, #62676c); }
#step-cdk .product-details { min-width: 0; }
#step-cdk .product-check { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--positive, #178652); }
#step-cdk .product-confirmation .product-valid { color: var(--positive, #117345); font-size: 11px; font-weight: 500; }
#step-cdk .product-confirmation .product-name { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text, #191b1e); font-size: 14px; font-weight: 600; }
#step-cdk #identified-plan { font-size: 12px; font-weight: 500; }
#step-session .credential-guide { margin-top: 20px; padding: 16px; border: 1px solid var(--border, #e4e6e8); border-radius: 12px; background: var(--page-bg, #f6f6f5); }
#step-session .credential-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: guide; color: var(--muted, #62676c); font-size: 13px; }
#step-session .credential-guide li { position: relative; padding-inline-start: 32px; counter-increment: guide; }
#step-session .credential-guide li::before { content: counter(guide); position: absolute; inset-inline-start: 0; top: 2px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--brand-accent, #e5a0aa); border-radius: 50%; background: var(--surface, #fff); color: var(--accent-text, var(--brand-accent, #c61d34)); font-size: 10px; }
#step-session .credential-guide li + li { margin-top: 15px; }
#step-session .credential-guide li p { margin: 0 0 8px; }
#step-session .guide-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 7px 12px; text-decoration: none; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
#step-session .guide-hint { font-size: 12px; color: var(--muted, #62676c); margin: 12px 0; }
#step-session .guide-alternatives { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#step-session #cookie-methods { margin-top: 12px; }

.result-card { min-height: 305px; }
.result-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.result-heading h2 { margin: 0; }
.result-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--surface-soft, #eceff1); color: var(--muted, #58616a); font-size: 18px; font-weight: 700; }
.result-card.is-success .result-symbol { background: var(--surface-soft, #e8f5ed); color: var(--positive, #178652); }
.result-card.is-error .result-symbol { background: var(--surface-soft, #fff0f1); color: var(--negative, #bf2439); }
.result-card.is-warning .result-symbol { background: var(--surface-soft, #fff5e6); color: var(--warning, #966119); }
.verification-box { margin-top: 24px; padding: 19px; border-radius: 11px; border: 1px solid var(--border, #dce9e2); background: var(--surface-soft, #f8fbf9); }
.verification-box p { font-size: 13px; color: var(--positive, #4e5d53); margin: 0 0 15px; }
.verification-box .verification-expiry { color: var(--muted, #656a6e); font-size: 12px; }
.result-card.is-success #result-notice { border-color: var(--border, #cee7d8); background: var(--surface-soft, #f3faf5); color: var(--positive, #286347); }
.site-footer { color: var(--muted, #a0a4a8); font-size: 12px; text-align: center; padding: 24px 16px 33px; }

/* Package D: scoped three-stage branch and approved unified credential card. */
html[data-flow="managed"] body { min-width: 0; }
.stepper.managed-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.managed-stepper .stepper-item:nth-child(3)::after { display: none; }
html[data-flow="managed"] #step-result { max-width: 570px; }
.managed-note { color: var(--muted, #74777b); font-size: 12px; margin: 18px 0 0; }
.managed-badge { color: var(--positive, #178652); border: 1px solid var(--border, #c8ded5); border-radius: 4px; padding: 1px 7px; font-size: 11px; white-space: nowrap; }
.delivery-card { margin-top: 30px; border: 1px solid var(--border, #e0e2e1); border-radius: 12px; overflow: hidden; }
.delivery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 12px; }
.delivery-header h3 { margin: 0; font-size: 13px; font-weight: 600; }
.delivery-header p { color: var(--muted, #898d92); margin: 2px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.delivery-header > div { min-width: 0; }
.delivery-header .button { min-height: 40px; font-size: 11px; padding: 8px 12px; flex: 0 0 auto; }
.delivery-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border-top: 1px solid var(--border, #e0e2e1); }
.delivery-field { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.delivery-field > span { color: var(--muted, #898d92); font-size: 11px; }
.delivery-field bdi { font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
.delivery-controls { direction: ltr; display: flex; flex: 0 0 auto; align-items: center; gap: 3px; }
.delivery-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 4px; border: 0; background: transparent; color: var(--muted, #737a7a); font-size: 10px; border-radius: 5px; }
.delivery-controls .control-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.delivery-controls [data-feedback="copied"] .control-label, .delivery-controls [data-feedback="copyFailed"] .control-label { position: static; width: auto; height: auto; clip-path: none; }
.delivery-controls [data-feedback="copied"] { color: var(--positive, #117345); }
#copy-all::after { content: "⧉"; margin-inline-start: 7px; }
.delivery-controls button:hover { background: var(--surface-soft, #eaf5ef); color: var(--positive, #117345); }
.delivery-footer { margin: 0; padding: 12px; border-top: 1px solid var(--border, #e0e2e1); background: var(--page-bg, #f6f6f5); color: var(--muted, #898d92); font-size: 10px; }
@media (max-width: 600px) {
  .managed-stepper .stepper-item > span:last-child { white-space: normal; text-align: center; }
  .delivery-field { display: block; }
  .delivery-field > span, .delivery-field bdi { display: block; }
  .delivery-row { align-items: flex-end; }
  .delivery-header { gap: 8px; }
}
/* End Package D */
/* Claude destination controls only; existing layout/tokens remain unchanged. */
#organization-input, #organization-confirmation { direction: ltr; text-align: left; }
#organization-fields label:not(:first-child) { margin-top: 18px; }
#organization-destination { overflow-wrap: anywhere; }
.organization-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.organization-consent input { width: 20px; min-width: 20px; height: 20px; margin: 3px 0 0; }
/* End Claude destination controls */
@media (max-width: 600px) {
  .stepper-item[data-step="2"] > span:last-child { white-space: normal; max-width: 55px; text-align: center; line-height: 1.4; }
  .header-inner { width: min(100% - 32px, 1160px); min-height: 58px; }
  .page-shell { width: min(100% - 28px, 820px); margin-top: 47px; margin-bottom: 32px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 13px; line-height: 1.9; }
  .progress-nav { margin: 35px auto 27px; }
  .stepper-item { gap: 5px; font-size: 10px; }
  .step-number { width: 25px; height: 25px; font-size: 10px; }
  .stepper-item:not(:last-child)::after { width: 10px; inset-inline-end: -5px; }
  .card { padding: 27px 21px 29px; border-radius: 14px; }
  .card h2 { font-size: 18px; }
  .field-group { margin-top: 26px; }
  .field-group textarea { min-height: 220px; }
  .actions { margin-top: 25px; }
  .actions .button { min-height: 46px; }
  .summary-list { padding-inline: 14px; }
  .summary-list > div { align-items: flex-start; }
  .summary-list dd { max-width: 61%; }
}

@media (max-width: 360px) {
  .stepper-item { font-size: 9px; gap: 3px; }
  .step-number { width: 23px; height: 23px; }
  .card { padding-inline: 17px; }
}

#brand-logo { object-fit: contain; width: 40px; height: auto; max-height: 40px; }
.tenant-support { text-align: center; margin: -12px auto 20px; color: var(--brand-primary, #178652); font-size: 14px; }
