/**
 * Precify Design System
 * Shared tokens and primitives derived from the landing page palette.
 * Import via wp_enqueue_style( 'precision-precify-theme' ).
 */

:root {
  /* Brand colors */
  --pf-navy: #061d63;
  --pf-blue: #1538d6;
  --pf-teal: #08a7a4;
  --pf-green: #10b981;
  --pf-cyan: #0ea5e9;
  --pf-violet: #7c3aed;
  --pf-orange: #f97316;
  --pf-ink: #071a4b;
  --pf-text: #293b67;
  --pf-muted: #6e7c9f;
  --pf-line: #dbe7f6;
  --pf-soft: #f5f9ff;
  --pf-soft-2: #eef4fc;
  --pf-white: #ffffff;

  /* Layout */
  --pf-container-max: 1120px;
  --pf-container-pad: 40px;
  --pf-section-y: 60px;
  --pf-nav-h: 68px;
  --pf-radius: 14px;
  --pf-radius-sm: 10px;
  --pf-radius-lg: 16px;
  --pf-radius-pill: 999px;

  /* Shadows */
  --pf-shadow: 0 10px 28px rgba(16, 42, 103, 0.07);
  --pf-shadow-hover: 0 16px 36px rgba(16, 42, 103, 0.11);
  --pf-shadow-card: 0 8px 24px rgba(16, 42, 103, 0.06);

  /* Typography */
  --pf-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --pf-text-xs: 14px;
  --pf-text-sm: 15px;
  --pf-text-base: 17px;
  --pf-text-lg: 18px;
  --pf-text-xl: 22px;
  --pf-heading-sm: clamp(25px, 2.7vw, 34px);
  --pf-heading-md: clamp(27px, 3vw, 38px);
  --pf-heading-lg: clamp(34px, 3.5vw, 46px);

  /* Responsive application typography roles. */
  --pf-mobile-body: 16px;
  --pf-mobile-meta: 14px;
  --pf-mobile-control: 16px;
  --pf-mobile-card-title: 18px;
  --pf-mobile-section-title: 22px;
  --pf-mobile-page-title: 30px;

  /* Buttons */
  --pf-btn-h: 42px;
  --pf-btn-px: 18px;
  --pf-btn-radius: 12px;
  --pf-btn-font: 16px;

  /* Product-module aliases: one palette shared by creator, teacher and student UI. */
  --pe-blue: var(--pf-blue);
  --pe-cyan: var(--pf-cyan);
  --pe-teal: var(--pf-teal);
  --pe-violet: var(--pf-violet);
  --pe-orange: var(--pf-orange);
  --pe-green: var(--pf-green);
  --pe-text: var(--pf-ink);
  --pe-muted: var(--pf-muted);
  --pe-border: var(--pf-line);
  --pe-surface: var(--pf-white);
  --pe-shadow: var(--pf-shadow-card);
  --pe-radius: var(--pf-radius);
}

/* Readable, consistent typography across every active Precify frontend module. */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--pf-font) !important;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) {
  font-family: var(--pf-font) !important;
  font-size: 17px;
  line-height: 1.6;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,label,button,input,select,textarea,table,th,td,li,dt,dd,summary) {
  font-family: var(--pf-font) !important;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where(p,li,dd,blockquote) {
  font-size: 16px !important;
  line-height: 1.65;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where(small,label,th,td,button,input,select,textarea) {
  font-size: 14px !important;
  line-height: 1.5;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where(button,input,select,textarea) {
  font-size: 16px !important;
  line-height: 1.45;
}

:where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-spoken,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where([class*="kicker"],[class*="eyebrow"],[class*="badge"],[class*="status"],[class*="label"],[class*="meta"] span,[class*="note"],[class*="desc"],[class*="count"] span,[class*="score"] > span) {
  font-size: 14px !important;
  line-height: 1.5;
}

.pe-student-bottom-nav a,
.pe-spoken-sidebar small,
.pe-spoken-topic-grid small,
.pe-spoken-topic-grid em,
.pe-spoken-progress :where(dt,small),
.pe-eval-page :where(.pe-paper-progress span,.pe-question-paper-facts span),
.pe-result-page :where(.pe-answer-result-label,.pe-answer-question small,.pe-answer-meta strong) {
  font-size: 14px !important;
}

body .pe-result-page.pe-result-page :is(small,button,.pe-result-eyebrow,.pe-review-kicker,.pe-result-score span,.pe-result-feedback p,.pe-result-dashboard-btn,.pe-result-print-btn,.pe-review-stats span,.pe-answer-result-label,.pe-answer-question small,.pe-answer-meta span,.pe-answer-meta strong,.pe-answer-explanation),
body .pe-profile-page.pe-profile-page :is(small,label,.pe-profile-eyebrow,.pe-profile-account-badge,.pe-profile-row strong,.pe-password-panel summary span,.pe-password-field,.pe-profile-danger p),
body .pe-results-page.pe-results-page :is(small,.pe-results-eyebrow,.pe-results-count,.pe-results-overview span,.pe-result-heading small,.pe-result-meta span,.pe-result-status strong) {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Compact illustration text may be smaller than body copy, but never illegible. */
.precify-home-v6 .pf-hero-visual :where(p,span,small,text) {
  font-size: 14px !important;
}

/* Scientific and mathematical content keeps its specialized typeface. */
:where(.pe-math-token,.pe-math-frac,.pe-chem-formula,.katex,.MathJax) {
  font-family: "Cambria Math", "Times New Roman", serif !important;
}

/* ── Reusable primitives ─────────────────────────────── */

.pf-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pf-btn-h);
  padding: 10px var(--pf-btn-px);
  border: 1px solid var(--pf-navy);
  border-radius: var(--pf-btn-radius);
  color: var(--pf-navy);
  background: var(--pf-white);
  font-family: var(--pf-font);
  font-size: var(--pf-btn-font);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pf-theme-btn:hover {
  border-color: var(--pf-blue);
  color: var(--pf-blue);
  transform: translateY(-1px);
}

.pf-theme-btn--primary {
  border-color: var(--pf-blue);
  color: var(--pf-white);
  background: var(--pf-blue);
}

.pf-theme-btn--primary:hover {
  border-color: #102fc0;
  color: var(--pf-white);
  background: #102fc0;
}

.pf-theme-btn--navy {
  border-color: var(--pf-navy);
  color: var(--pf-white);
  background: var(--pf-navy);
}

.pf-theme-btn--navy:hover {
  border-color: #0a2f8f;
  color: var(--pf-white);
  background: #0a2f8f;
}

.pf-theme-btn--teal {
  border-color: var(--pf-teal);
  color: var(--pf-white);
  background: var(--pf-teal);
}

.pf-theme-btn--teal:hover {
  border-color: #06918e;
  color: var(--pf-white);
  background: #06918e;
}

.pf-theme-card {
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  background: var(--pf-white);
  box-shadow: var(--pf-shadow-card);
}

/* Shared graphical card accents used across plugin-owned frontend surfaces. */
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-blue { --pe-accent: var(--pe-blue); --pe-accent-soft: #edf3ff; }
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-cyan { --pe-accent: var(--pe-cyan); --pe-accent-soft: #eaf9ff; }
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-teal { --pe-accent: var(--pe-teal); --pe-accent-soft: #e9fbf8; }
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-violet { --pe-accent: var(--pe-violet); --pe-accent-soft: #f4efff; }
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-orange { --pe-accent: var(--pe-orange); --pe-accent-soft: #fff3e9; }
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-result-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) .pe-accent-green { --pe-accent: var(--pe-green); --pe-accent-soft: #ebfbf3; }

:where(.pf-auth,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) :where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.32);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :where(.pf-auth,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) *,
  :where(.pf-auth,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) *::before,
  :where(.pf-auth,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-exam-creator-dashboard) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.pf-theme-input,
.pf-theme-select,
.pf-theme-textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-white);
  color: var(--pf-ink);
  font-family: var(--pf-font);
  font-size: var(--pf-text-sm);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-theme-input:focus,
.pf-theme-select:focus,
.pf-theme-textarea:focus {
  outline: none;
  border-color: var(--pf-blue);
  box-shadow: 0 0 0 3px rgba(21, 56, 214, 0.12);
}

.pf-theme-textarea {
  min-height: 110px;
  resize: vertical;
}

.pf-theme-label {
  display: block;
  margin-bottom: 6px;
  color: var(--pf-text);
  font-family: var(--pf-font);
  font-size: var(--pf-text-sm);
  font-weight: 700;
}

.pf-theme-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #ccefed;
  border-radius: var(--pf-radius-pill);
  background: #f0fffd;
  color: #06766f;
  font-family: var(--pf-font);
  font-size: var(--pf-text-sm);
  font-weight: 800;
}

.pf-theme-section-title {
  margin: 0 0 10px;
  color: var(--pf-navy);
  font-family: var(--pf-font);
  font-size: var(--pf-heading-sm);
  line-height: 1.15;
  font-weight: 950;
}

.pf-theme-section-lead {
  margin: 0;
  color: var(--pf-text);
  font-family: var(--pf-font);
  font-size: var(--pf-text-base);
  line-height: 1.65;
  font-weight: 500;
}

.pf-theme-shell {
  width: min(var(--pf-container-max), calc(100% - var(--pf-container-pad)));
  margin-inline: auto;
}

.pf-theme-section {
  padding: var(--pf-section-y) 0;
}

.pf-theme-section--soft {
  background: var(--pf-soft);
}

@media (max-width: 700px) {
  :root {
    --pf-container-pad: 24px;
    --pf-section-y: 48px;
    --pf-text-base: var(--pf-mobile-body);
  }

  :where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) {
    font-size: var(--pf-mobile-body);
  }

  :where(.precify-home-v6,.pf-auth,.pf-auth-shell,.precision-support,.precision-ai-inquiry-form,.pe-dashboard,.pe-tests-page,.pe-exam-container,.pe-results-page,.pe-result-page,.pe-profile-page,.pe-student-leaderboard,.pe-eval-page,.pe-resources,.pe-analytics,.pe-ai-tutor,.pe-ai-teacher,.pe-iw-app,.pe-doc-app,.pe-subjective-import) :where(input,select,textarea) {
    font-size: var(--pf-mobile-control) !important;
  }
}

/* ── Shared form system ──────────────────────────────── */

.pf-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.pf-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.pf-field--full {
  grid-column: 1 / -1;
}

.pf-field > span,
.pf-field > .pf-theme-label {
  display: block;
  color: var(--pf-ink);
  font-family: var(--pf-font);
  font-size: var(--pf-text-sm);
  font-weight: 700;
}

.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="password"],
.pf-field input[type="tel"],
.pf-field input[type="search"],
.pf-field select,
.pf-field textarea,
.pf-form input[type="text"],
.pf-form input[type="email"],
.pf-form input[type="password"],
.pf-form input[type="tel"],
.pf-form select,
.pf-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-white);
  color: var(--pf-ink);
  font-family: var(--pf-font);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-field textarea,
.pf-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pf-field input::placeholder,
.pf-field textarea::placeholder,
.pf-form input::placeholder,
.pf-form textarea::placeholder {
  color: #8b9bb8;
}

.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus,
.pf-form input:not([type="checkbox"]):not([type="radio"]):focus,
.pf-form select:focus,
.pf-form textarea:focus {
  outline: none;
  border-color: var(--pf-blue);
  box-shadow: 0 0 0 3px rgba(21, 56, 214, 0.12);
}

.pf-field input:invalid:not(:placeholder-shown):not(:focus),
.pf-form input:not([type="checkbox"]):not([type="radio"]):invalid:not(:placeholder-shown):not(:focus) {
  border-color: #fda29b;
}

.pf-form .pf-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pf-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.pf-form .pf-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px;
  align-self: center;
  border: 1px solid var(--pf-line);
  border-radius: 4px;
  background: var(--pf-white);
  accent-color: var(--pf-blue);
  box-shadow: none !important;
  cursor: pointer;
}

.pf-form .pf-check input[type="checkbox"]:focus,
.pf-form .pf-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--pf-blue);
  outline-offset: 2px;
  box-shadow: none !important;
}

.pf-form .pf-check label {
  display: inline !important;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text);
  cursor: pointer;
}

.pf-notice {
  margin: 0;
  padding: 11px 14px;
  border-radius: var(--pf-radius-sm);
  font-size: var(--pf-text-sm);
  font-weight: 700;
  line-height: 1.45;
}

.pf-notice--success,
.precision-student-register__notice--success,
.precision-ai-inquiry-form__status[data-type="success"] {
  color: #0f6b4c;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.pf-notice--error,
.precision-student-register__notice--error,
.precision-ai-inquiry-form__status[data-type="error"] {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fda29b;
}

.pf-notice--pending,
.precision-student-register__notice--pending {
  color: var(--pf-blue);
  background: var(--pf-soft);
  border: 1px solid var(--pf-line);
}

.pf-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--pf-btn-h);
  padding: 10px var(--pf-btn-px);
  border: 1px solid var(--pf-blue);
  border-radius: var(--pf-btn-radius);
  color: var(--pf-white) !important;
  background: var(--pf-blue);
  font-family: var(--pf-font);
  font-size: var(--pf-btn-font);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pf-form-submit:hover,
.pf-form-submit:focus {
  background: #102fc0;
  border-color: #102fc0;
  transform: translateY(-1px);
}

.pf-form-submit:focus-visible {
  outline: 2px solid var(--pf-blue);
  outline-offset: 2px;
}

.pf-form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.pf-form-foot {
  margin: 0;
  color: var(--pf-muted);
  text-align: center;
  font-size: var(--pf-text-sm);
}

.pf-form-foot a {
  color: var(--pf-blue);
  font-weight: 800;
  text-decoration: none;
}

.pf-form-foot a:hover,
.pf-form-foot a:focus-visible {
  text-decoration: underline;
}

.pe-password-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.pe-password-toggle-btn:focus-visible {
  outline: 2px solid var(--pf-blue);
  outline-offset: 2px;
}

/* ── Auth / contact chrome ───────────────────────────── */

.pf-auth {
  min-height: 100vh;
  padding: 0 0 40px;
  color: var(--pf-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 167, 164, 0.1), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(21, 56, 214, 0.08), transparent 30%),
    linear-gradient(180deg, var(--pf-soft) 0%, var(--pf-white) 48%);
  font-family: var(--pf-font);
}

.pf-brand-lockup,
.precify-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none !important;
}

.precify-brand__mark {
  display: inline-block;
  width: 148px;
  font-family: var(--pf-font);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.precify-brand__image {
  display: block;
  width: 148px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.precify-brand--dark .precify-brand__image {
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
}

.precify-brand--light .precify-brand__stem {
  color: var(--pf-navy);
}

.precify-brand--light .precify-brand__accent {
  color: var(--pf-teal);
}

.precify-brand--dark .precify-brand__stem {
  color: #fff;
}

.precify-brand--dark .precify-brand__accent {
  color: #7ee7e4;
}

.pf-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--pf-container-max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 0;
}

.pf-auth-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none !important;
}

.pf-auth-shell {
  width: min(var(--pf-container-max), calc(100% - 32px));
  margin: 12px auto 0;
}

.pf-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}

.pf-auth-panel,
.pf-auth-card {
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-lg);
  background: var(--pf-white);
  box-shadow: var(--pf-shadow-card);
}

.pf-auth-panel {
  padding: 28px 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 167, 164, 0.1), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, var(--pf-white) 70%);
}

.pf-auth-panel h1,
.pf-auth-panel h2 {
  margin: 0 0 10px !important;
  color: var(--pf-navy);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 950;
}

.pf-auth-panel p {
  margin: 0 !important;
  color: var(--pf-text);
  font-size: var(--pf-text-base);
  line-height: 1.65;
  font-weight: 500;
}

.pf-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pf-auth-points span {
  padding: 7px 11px;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-pill);
  background: var(--pf-white);
  color: var(--pf-navy);
  font-size: 14px;
  font-weight: 800;
}

.pf-auth-card {
  display: grid;
  gap: 12px;
  padding: 26px 24px;
}

.pf-auth-card .pf-form-submit {
  margin-top: 2px;
}

.pf-auth-card .pf-form-foot {
  margin: 0;
  line-height: 1.4;
}

.pf-auth-card h3 {
  margin: 0 !important;
  color: var(--pf-navy);
  font-size: 22px;
  font-weight: 900;
}

.pf-role-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pf-role-card {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  background: var(--pf-soft);
  cursor: pointer;
  text-align: center;
}

.pf-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-role-card strong {
  color: var(--pf-navy);
  font-size: 15px;
  font-weight: 800;
}

.pf-role-card small {
  color: var(--pf-muted);
  font-size: 14px;
  font-weight: 600;
}

.pf-role-card:has(input:checked),
.pf-role-card:has(input:focus-visible) {
  border-color: var(--pf-blue);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(21, 56, 214, 0.12);
}

.pf-help-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.pf-help-chips button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-white);
  color: var(--pf-navy);
  font-family: var(--pf-font);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.pf-help-chips button:hover,
.pf-help-chips button:focus-visible,
.pf-help-chips button.is-active {
  border-color: var(--pf-blue);
  color: var(--pf-blue);
  background: #eef2ff;
}

@media (max-width: 840px) {
  .pf-auth-grid {
    grid-template-columns: 1fr;
  }

  .pf-auth-card {
    order: -1;
  }

  .pf-role-cards,
  .pf-help-chips {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pf-auth-bar,
  .pf-auth-shell {
    width: min(100% - 20px, var(--pf-container-max));
  }

  .pf-auth-panel,
  .pf-auth-card {
    padding: 20px 16px;
  }

  .pf-auth-panel h1,
  .pf-auth-panel h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .pf-role-cards {
    grid-template-columns: 1fr;
  }

  .precify-brand__mark {
    width: 118px;
    font-size: 22px;
  }

  .precify-brand__image {
    width: 118px;
  }
}
