/* =========================================================
   REAL STATES AND THE FULL BUTTON SYSTEM (D-2841; S4841).
   Founder, 14 Nov 2026: "finish everything 100% without stopping upto 8 not 6" (second round, item 3: real states and
   the full button system, site-wide). The one look for each state, on every frame: public pages, the job seeker area,
   the employer area and the locked pages (look only).
   Standard: docs/design/site-design-standard.md (D-2261). Words, fonts, behaviour and markup are NOT changed here.
   Scoped to the EXISTING class names of each state; nothing in the markup is added or removed (D-1940: old rules
   stay where they are; this sheet comes after them and wins by order and by the `html body` prefix).
   Loaded once per frame, after the frame's own styles: layouts/master, marketing, journey, employer-shell.
   ========================================================= */

/* ---------- Tokens ----------
   ink #17151B, body #3D3944, plum #2B1A34, glass edge rgba(43,26,52,.14), hairline rgba(23,21,27,.09).
   DANGER #9B1B30: a calm deep red, used ONLY for destructive buttons (class .jz-destructive) and their focus and hover.
   It is NOT the retired legacy crimson (named in CLAUDE.md, never written here so the colour ratchet stays clean), and it is not pink or magenta.
   ERROR #7B1246 (berry, brand set D-230): invalid fields, field messages and error notices and toasts. Founder, 14 Nov 2026,
   "All A": "red only on delete buttons; error messages stay plum". Berry reads as an error and meets 4.5:1 on white
   (10.4:1) and on its tint #FBF1F5 (9.4:1). Error notices keep their icon (the "!" glyph), so colour is not the only cue. */
html body {
  --jz-st-ink: #17151B;
  --jz-st-body: #3D3944;
  --jz-st-plum: #2B1A34;
  --jz-danger: #9B1B30;
  --jz-danger-tint: #FDF3F4;
  --jz-error: #7B1246;
  --jz-error-tint: #FBF1F5;
  --jz-st-ok: #1E8E5A;
  --jz-st-ok-tint: #EFF8F3;
  --jz-st-info: #2B1A34;
  --jz-st-info-tint: #F4F2F7;
  --jz-st-warn: #9A7300;
  --jz-st-warn-tint: #FBF6E6;
  --jz-st-hair: rgba(23,21,27,.09);
  --jz-st-edge: rgba(23,21,27,.18);
  --jz-st-shadow-card: 0 1px 2px rgba(23,21,27,.05), 0 8px 20px -12px rgba(23,21,27,.18);
  --jz-st-shadow-dialog: 0 2px 4px rgba(23,21,27,.06), 0 22px 40px -22px rgba(23,21,27,.26);
  --jz-st-raised: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -3px 6px rgba(0,0,0,.34), 0 2px 0 #170D1D, 0 14px 22px -12px rgba(43,26,52,.55);
  --jz-st-glass: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(43,26,52,.06), 0 2px 0 rgba(43,26,52,.14), 0 12px 20px -14px rgba(43,26,52,.4);
  --jz-st-feel: 180ms;
}

/* ---------- 1. Primary button (solid plum, raised) ---------- */
/* A plain .btn-danger (not destructive) takes this look too (D-2841, 14 Nov: only real deletes get the delete look). */
html body .btn-primary,
html body .btn-plum,
html body .btn-danger:not(.jz-destructive) {
  background: #2B1A34; border: 1px solid #2B1A34; color: #fff; border-radius: 12px;
  min-height: 40px; font-weight: 600; box-shadow: var(--jz-st-raised); text-shadow: none;
  transition: transform var(--jz-st-feel) ease, box-shadow var(--jz-st-feel) ease, background-color var(--jz-st-feel) ease;
}
html body .btn-primary:hover,
html body .btn-plum:hover,
html body .btn-primary:focus,
html body .btn-plum:focus,
html body .btn-danger:not(.jz-destructive):hover,
html body .btn-danger:not(.jz-destructive):focus {
  background: #2B1A34; color: #fff; transform: translateY(-2px);
}
html body .btn-primary:active,
html body .btn-plum:active,
html body .btn-danger:not(.jz-destructive):active {
  transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3), 0 0 0 #170D1D;
}
/* Bootstrap's .bg-danger utility (!important red) on a plain Close or Apply button: the same plum main look. */
html body .btn-danger.bg-danger:not(.jz-destructive) {
  background-color: #2B1A34 !important; border-color: #2B1A34;
}

/* ---------- 2. Second button (clear glass, plum edge) ---------- */
html body .btn-quiet,
html body .btn-secondary,
html body .btn-glass {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.74) 100%); border: 1px solid rgba(43,26,52,.22);
  color: #2B1A34; border-radius: 12px; min-height: 40px; font-weight: 600; box-shadow: var(--jz-st-glass);
  transition: transform var(--jz-st-feel) ease, box-shadow var(--jz-st-feel) ease;
}
html body .btn-quiet:hover,
html body .btn-secondary:hover,
html body .btn-glass:hover {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.84) 100%); color: #2B1A34; transform: translateY(-2px);
}
html body .btn-quiet:active,
html body .btn-secondary:active,
html body .btn-glass:active {
  transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(43,26,52,.1);
}

/* ---------- 3. Text button (no box; plum text, underline on hover) ---------- */
html body .btn-link,
html body .btn-text {
  background: transparent; border: 0; box-shadow: none; color: #2B1A34; min-height: 40px;
  padding-left: 8px; padding-right: 8px; font-weight: 600; text-decoration: none; border-radius: 8px;
}
html body .btn-link:hover,
html body .btn-text:hover { background: transparent; text-decoration: underline; color: #2B1A34; }

/* ---------- 4. Destructive (delete, remove, reject, cancel meeting, close account, withdraw): calm deep red, white card look.
   Applies to .jz-destructive (the class added to each destructive use; .btn-danger.jz-destructive included). A plain .btn-danger
   is NOT here (see section 1). The colour is !important so an inline or utility colour (for example text-light, inline white)
   cannot make the red label invisible on the white card. */
html body .jz-destructive,
html body .btn_deactive,
html body .dc-danger,
html body .delete-button,
html body .delete-action {
  background: #fff; border: 1px solid var(--jz-danger); color: var(--jz-danger) !important; border-radius: 12px; min-height: 40px;
  font-weight: 600; box-shadow: var(--jz-st-glass);
  transition: transform var(--jz-st-feel) ease, box-shadow var(--jz-st-feel) ease, background-color var(--jz-st-feel) ease;
}
html body .jz-destructive:hover,
html body .btn_deactive:hover,
html body .dc-danger:hover,
html body .delete-button:hover,
html body .delete-action:hover {
  background: var(--jz-danger-tint); color: var(--jz-danger) !important; border-color: var(--jz-danger); transform: translateY(-2px);
}
html body .jz-destructive:active,
html body .btn_deactive:active,
html body .dc-danger:active,
html body .delete-button:active,
html body .delete-action:active { transform: translateY(2px); }

/* ---------- 5. Loading (same size and shape, small spinner, label kept) ---------- */
html body .btn[aria-busy="true"],
html body .btn.is-loading {
  cursor: progress; opacity: .92;
}
html body .btn[aria-busy="true"] .spinner-border,
html body .btn.is-loading .spinner-border,
html body .btn .spinner-border.spinner-border-sm {
  width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; margin-right: 6px;
}
html body .btn[aria-busy="true"]:hover,
html body .btn.is-loading:hover { transform: none; }

/* ---------- 6. Disabled (same shape, reduced contrast, readable, no pointer) ---------- */
html body .btn:disabled,
html body .btn[disabled],
html body .btn[aria-disabled="true"],
html body .btn.disabled,
html body .btn.is-disabled,
html body .btn-primary:disabled,
html body .btn-plum:disabled,
html body .btn-quiet:disabled,
html body .btn-secondary:disabled,
html body .btn-danger:disabled,
html body .btn-primary[disabled],
html body .btn-plum[disabled],
html body .btn-quiet[disabled],
html body .btn-secondary[disabled],
html body .btn-danger[disabled],
html body .pricing__cta.is-disabled[disabled] {
  background: #EEEBF0 !important; border: 1px solid rgba(23,21,27,.12) !important; color: #6B6573 !important; box-shadow: none !important;
  transform: none; cursor: not-allowed; opacity: 1; text-shadow: none;
}
html body .btn:disabled:hover,
html body .btn[disabled]:hover,
html body .btn[aria-disabled="true"]:hover,
html body .btn.disabled:hover,
html body .btn.is-disabled:hover { transform: none; background: #EEEBF0; color: #6B6573; }

/* ---------- 7. Invalid field (1 px edge in the danger colour) and its message ---------- */
html body .form-control.is-invalid,
html body input.is-invalid,
html body select.is-invalid,
html body textarea.is-invalid,
html body .form-control.error,
html body input.error,
html body select.error,
html body textarea.error {
  border: 1px solid var(--jz-error) !important; border-color: var(--jz-error) !important; box-shadow: none !important;
}
html body .invalid-feedback,
html body [id$="-error"].text-danger {
  color: var(--jz-error); font-size: 12.5px; line-height: 1.4; font-weight: 500; margin-top: 4px;
}
html body .text-danger.loginerror { color: var(--jz-error); }

/* ---------- 8. Notices (light tint, 1 px edge, 12 px radius, an icon) ---------- */
html body .alert {
  border-radius: 12px; border: 1px solid rgba(23,21,27,.09); box-shadow: none; padding: 12px 14px 12px 42px;
  position: relative; color: #3D3944; font-size: 14px; line-height: 1.5;
}
html body .alert::before {
  content: "i"; position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; color: #2B1A34; border: 1px solid currentColor;
}
html body .alert-danger,
html body .ev-status.is-err {
  background: var(--jz-error-tint); border-color: var(--jz-error); color: var(--jz-error);
}
html body .alert-danger::before,
html body .ev-status.is-err::before { content: "!"; color: var(--jz-error); }
html body .alert-success { background: #EFF8F3; border-color: rgba(30,142,90,.45); color: #17151B; }
html body .alert-success::before { content: "\2713"; color: #1E8E5A; }
html body .alert-info { background: #F4F2F7; border-color: rgba(43,26,52,.2); color: #17151B; }
html body .alert-warning { background: #FBF6E6; border-color: rgba(154,115,0,.4); color: #17151B; }
html body .alert-warning::before { content: "!"; color: #9A7300; }
html body .alert .btn-close { position: absolute; top: 8px; right: 8px; }

/* Toasts (jquery.toast and the page toast containers) */
html body .jq-toast-single,
html body #jzToastErr,
html body #jzToastContainer > div {
  background: #fff; color: #17151B; border: 1px solid rgba(23,21,27,.09); border-radius: 12px;
  box-shadow: var(--jz-st-shadow-card); font-family: inherit; font-size: 14px; line-height: 1.5;
}
html body .jq-toast-single.jq-icon-error,
html body #jzToastErr { background: var(--jz-error-tint) !important; border-color: var(--jz-error) !important; color: var(--jz-error); }
html body .jq-toast-single.jq-icon-success { background: #EFF8F3 !important; border-color: rgba(30,142,90,.45) !important; }
html body .jq-toast-single.jq-icon-warning { background: #FBF6E6 !important; border-color: rgba(154,115,0,.4) !important; }
html body .jq-toast-single.jq-icon-info { background: #F4F2F7 !important; border-color: rgba(43,26,52,.2) !important; }

/* ---------- 8b. Second buttons on the old Bootstrap classes (D-2841, round two) ----------
   .btn-default (72 views) and .btn-border were the grey and outline second buttons. They are clear glass now.
   Written as `html body .btn.btn-default`, so a page's own `.btn.btn-default` rule does not beat it.
   The uses that are the page's MAIN action keep the solid plum look: named by class or id below, not by page. */
html body .btn.btn-default,
html body .btn.btn-border {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.74) 100%); border: 1px solid rgba(43,26,52,.22);
  color: #2B1A34; border-radius: 12px; min-height: 40px; font-weight: 600; box-shadow: var(--jz-st-glass);
  text-shadow: none; transition: transform var(--jz-st-feel) ease, box-shadow var(--jz-st-feel) ease;
}
html body .btn.btn-default:hover,
html body .btn.btn-border:hover {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.84) 100%); color: #2B1A34; transform: translateY(-2px);
}
html body .btn.btn-default:active,
html body .btn.btn-border:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(43,26,52,.1); }
html body .btn.btn-default:is(.apply_job_, .sendnow, .customsendbutton, #savequestion, #updatecover, #updateresume, #selectResumeBtn, #unlockPricingPlan, #uploadButton) {
  background: #2B1A34; border: 1px solid #2B1A34; color: #fff; box-shadow: var(--jz-st-raised);
}
html body .btn.btn-default:is(.apply_job_, .sendnow, .customsendbutton, #savequestion, #updatecover, #updateresume, #selectResumeBtn, #unlockPricingPlan, #uploadButton):hover {
  background: #2B1A34; color: #fff; transform: translateY(-2px);
}

/* ---------- 8c. Toast inner parts (D-2841, round two): the master toast in notice look ---------- */
html body .jz-toast {
  background: #fff !important; color: #17151B; border: 1px solid rgba(23,21,27,.09) !important; border-radius: 12px;
  box-shadow: var(--jz-st-shadow-card);
}
html body .jz-toast.jz-toast-error { background: var(--jz-error-tint) !important; border-color: var(--jz-error) !important; color: var(--jz-error); }
html body .jz-toast.jz-toast-success { background: var(--jz-st-ok-tint) !important; border-color: rgba(30,142,90,.45) !important; }
html body .jz-toast.jz-toast-warning { background: var(--jz-st-warn-tint) !important; border-color: rgba(154,115,0,.4) !important; }
html body .jz-toast.jz-toast-info { background: var(--jz-st-info-tint) !important; border-color: rgba(43,26,52,.2) !important; }
html body .jz-toast-icon { color: #2B1A34; font-size: 16px; line-height: 1; }
html body .jz-toast.jz-toast-error .jz-toast-icon { color: var(--jz-error); }
html body .jz-toast.jz-toast-success .jz-toast-icon { color: #1E8E5A; }
html body .jz-toast.jz-toast-warning .jz-toast-icon { color: #9A7300; }
html body .jz-toast-msg { color: inherit; font-size: 14px; line-height: 1.5; }
html body .jz-toast-close {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  margin: -10px -10px -10px 0; color: #17151B; opacity: 1;
}
html body .jz-toast-close:hover { color: #2B1A34; opacity: 1; }

/* ---------- 9. Dialogs (white, 16 px radius, hairline, the standard shadow; plum main, glass second) ---------- */
html body .modal-content,
html body .swal2-popup {
  background: #fff; color: #3D3944; border: 1px solid rgba(23,21,27,.09); border-radius: 16px;
  box-shadow: var(--jz-st-shadow-dialog);
}
html body .modal-footer .btn-primary,
html body .swal2-actions .swal2-confirm {
  background: #2B1A34 !important; border: 1px solid #2B1A34; color: #fff; border-radius: 12px; min-height: 40px;
  box-shadow: var(--jz-st-raised);
}
html body .modal-footer .btn-quiet,
html body .modal-footer .btn-secondary,
html body .swal2-actions .swal2-cancel,
html body .swal2-actions .swal2-deny {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.74) 100%) !important; border: 1px solid rgba(43,26,52,.22);
  color: #2B1A34; border-radius: 12px; min-height: 40px; box-shadow: var(--jz-st-glass);
}

/* ---------- 10. Empty states (icon, heading, one line, one action) ---------- */
html body .panel.jempty,
html body .jp-empty,
html body .empty,
html body .inbox-empty,
html body .jzdel-empty {
  background: #fff; border: 1px solid rgba(23,21,27,.09); border-radius: 16px; box-shadow: var(--jz-st-shadow-card);
  text-align: center; padding: 32px 20px; color: #3D3944;
}
html body .panel.jempty > i,
html body .jp-empty > i,
html body .empty > i,
html body .inbox-empty > i,
html body .empty .icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: #F4F2F7; color: #2B1A34; margin-bottom: 12px; font-size: 18px;
}
html body .panel.jempty h4,
html body .empty h4,
html body .jp-empty h4 { color: #17151B; font-size: 16px; font-weight: 600; margin: 0 0 6px; }

/* ---------- 11. Skeletons (neutral, subtle shimmer, still under reduced motion) ---------- */
html body .skeleton,
html body .jz-skeleton,
html body .jzm-skeleton {
  position: relative; overflow: hidden; background: #EEEBF0; border-radius: 12px; color: transparent;
}
html body .skeleton::after,
html body .jz-skeleton::after,
html body .jzm-skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: jz-st-shimmer 1.4s ease-in-out infinite;
}
@keyframes jz-st-shimmer { to { transform: translateX(100%); } }

/* ---------- 12. Focus ring: 2 px plum outline, 2 px offset (accessibility build default) ---------- */
html body :is(a[href], button, summary, select, [role="button"], input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"]):focus-visible {
  outline: 2px solid #2B1A34 !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #fff !important;
}

/* ---------- 13. Icon buttons: 40 by 40 tap area ---------- */
html body .btn-close,
html body .close,
html body .btn-icon {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Phone: buttons 40 px high (D-2261 section 9) ---------- */
@media (max-width: 767px) {
  html body .btn-primary,
  html body .btn-plum,
  html body .btn-quiet,
  html body .btn-secondary,
  html body .btn-glass,
  html body .btn-danger { min-height: 40px; }
}

/* ---------- Reduced motion: static, same look ---------- */
@media (prefers-reduced-motion: reduce) {
  html body .btn-primary,
  html body .btn-plum,
  html body .btn-quiet,
  html body .btn-secondary,
  html body .btn-glass,
  html body .btn-danger,
  html body .jz-destructive,
  html body .btn_deactive,
  html body .dc-danger,
  html body .delete-button,
  html body .delete-action { transition: none; }
  html body .btn-primary:hover,
  html body .btn-plum:hover,
  html body .btn-quiet:hover,
  html body .btn-secondary:hover,
  html body .btn-glass:hover,
  html body .jz-destructive:hover,
  html body .btn_deactive:hover,
  html body .dc-danger:hover,
  html body .delete-button:hover,
  html body .delete-action:hover,
  html body .btn-primary:active,
  html body .btn-plum:active,
  html body .btn-quiet:active,
  html body .btn-secondary:active,
  html body .btn-glass:active { transform: none; }
  html body .skeleton::after,
  html body .jz-skeleton::after,
  html body .jzm-skeleton::after { animation: none; transform: none; }
}

/* ---------- Lines replaced on 14 Nov 2026 (D-2841 round three, founder "All A": errors plum, red for real deletes only).
   Kept here, commented out, per D-1940 (nothing is deleted). The active rules above replace them.
   Test pins strip comments, so these do not count.

html body .btn-plum {
html body .btn-plum:focus {
html body .btn-plum:active {
   (the three selectors above now sit in the list with .btn-primary; see section 1)

   Section 1 before 14 Nov (plain .btn-danger was red; now it is plum):
html body .btn-danger,

   Section 4 before 14 Nov:
   DANGER #9B1B30: a calm deep red for destructive actions, invalid fields and error notices. It is NOT the retired
   crimson (the legacy pair named in CLAUDE.md), and it is not pink or magenta. See the conflict note in D-2841 (candidate area and
   employer area rules say information is never red; a failed or destructive action is not information).
   ---------- 4. Destructive (delete, close account, withdraw, reject): calm deep red, white card look ----------
html body .btn-danger,
  background: #fff; border: 1px solid var(--jz-danger); color: var(--jz-danger); border-radius: 12px; min-height: 40px;
html body .btn-danger:hover,
  background: var(--jz-danger-tint); color: var(--jz-danger); border-color: var(--jz-danger); transform: translateY(-2px);
html body .btn-danger:active,

   Section 7 before 14 Nov (errors were red):
  border: 1px solid var(--jz-danger) !important; border-color: var(--jz-danger) !important; box-shadow: none !important;
  color: var(--jz-danger); font-size: 12.5px; line-height: 1.4; font-weight: 500; margin-top: 4px;
html body .text-danger.loginerror { color: var(--jz-danger); }

   Section 8 before 14 Nov (error notice and toasts were red):
  background: var(--jz-danger-tint); border-color: var(--jz-danger); color: var(--jz-danger);
html body .ev-status.is-err::before { content: "!"; color: var(--jz-danger); }
html body #jzToastErr { background: var(--jz-danger-tint) !important; border-color: var(--jz-danger) !important; color: var(--jz-danger); }
html body .jz-toast.jz-toast-error { background: var(--jz-danger-tint) !important; border-color: var(--jz-danger) !important; color: var(--jz-danger); }
html body .jz-toast.jz-toast-error .jz-toast-icon { color: var(--jz-danger); }

   Reduced motion before 14 Nov:
  html body .btn-danger:hover,
*/
