/* ProBody.ONE · account and administration */
body:has(> .login-shell),
body:has(> .auth-shell),
body:has(> .login-form-wrap) { margin: 0; }

:where(.auth-shell, .login-shell) {
  --auth-ink: #202722;
  --auth-muted: #626d65;
  --auth-line: #dce2da;
  --auth-orange: #ff8b53;
  --auth-dark: #1d2422;
  margin: 0;
  color: var(--auth-ink);
  font: 14px/1.55 "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

:where(.auth-shell, .login-shell) *,
:where(.auth-shell, .login-shell) *::before,
:where(.auth-shell, .login-shell) *::after { box-sizing: border-box; }

:where(.auth-shell, .login-shell) :where(h1, h2, h3, p) { margin: 0; }
:where(.auth-shell, .login-shell) :where(h1, h2, h3) { font-weight: 650; line-height: 1.2; }
:where(.auth-shell, .login-shell) h1 { font-size: clamp(28px, 3.3vw, 40px); letter-spacing: -1.35px; }
:where(.auth-shell, .login-shell) h2 { font-size: 21px; letter-spacing: -.65px; }
:where(.auth-shell, .login-shell) h3 { font-size: 16px; letter-spacing: -.25px; }
:where(.auth-shell, .login-shell) p { overflow-wrap: anywhere; }
:where(.auth-shell, .login-shell) a { color: inherit; text-underline-offset: 4px; }
:where(.auth-shell, .login-shell) :where(button, input, select, textarea) { font: inherit; }
:where(.auth-shell, .login-shell) :where(button, a) { touch-action: manipulation; }
:where(.auth-shell, .login-shell) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #b7511a;
  outline-offset: 4px;
}
:where(.auth-sidebar, .login-story) :where(a, button):focus-visible { outline-color: #ffb78e; }
:where(.auth-shell, .login-shell) :where(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .6; }
:where(.auth-shell, .login-shell) :where(label, input, select, textarea, form) { min-width: 0; }
:where(.auth-shell, .login-shell) [hidden] { display: none !important; }

/* Login */
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: #fff; }
.login-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(35px, 5.5vw, 82px);
  color: #f7f7f1;
  background: radial-gradient(ellipse at 110% 90%, #3b493b 0, transparent 57%), #1d2422;
}
.login-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 490px;
  height: 490px;
  right: -300px;
  top: 150px;
  border: 1px solid #ff9b6540;
  border-radius: 50%;
  box-shadow: 0 0 0 45px #ff9b6505, 0 0 0 90px #ff9b6507, 0 0 0 135px #ff9b6505;
}
.login-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .23;
  background-image: radial-gradient(#aeb9a8 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(145deg, transparent 35%, #000);
  pointer-events: none;
}
.auth-brand { display: inline-flex; align-items: center; text-decoration: none; max-width: 100%; }
.auth-brand img { display: block; width: 180px; max-width: 100%; height: auto; }
.login-story .auth-brand img { width: 238px; }
.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(70px, 12vh, 130px);
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffb48b;
}
.login-kicker::before { content: ""; width: 25px; height: 2px; background: #ff8b53; }
.login-story .login-heading { max-width: 540px; font-size: clamp(36px, 4.15vw, 64px); line-height: 1.06; letter-spacing: -2.2px; text-wrap: balance; }
.login-heading :where(em, span) { color: #ffab7e; font-style: normal; }
.login-description { max-width: 420px; margin-top: 25px !important; color: #c3cdc5; font-size: 16px; line-height: 1.75; }
.login-points { display: grid; gap: 14px; margin: 38px 0 0; padding: 0; list-style: none; color: #dce4db; font-size: 13px; }
.login-points > :where(li, p, div) { display: flex; align-items: flex-start; gap: 12px; }
.login-points > :where(li, p, div)::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff0d;
  color: #ffb184;
  font-size: 11px;
}
.login-story .auth-footnote { margin-top: auto; padding-top: 54px; color: #aab6ad; font-size: 11px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 60px 38px; background: #fcfdfb; }
.login-form { width: 100%; max-width: 398px; }
.login-form :where(h1, h2) { margin-bottom: 12px; font-size: 34px; letter-spacing: -1.1px; }
.login-form > :where(p, .auth-muted) { margin-bottom: 30px; }
.login-form > .login-kicker { margin-top: 0; margin-bottom: 17px; color: #91512e; font-size: 10px; letter-spacing: 1.65px; }
.login-form > .login-kicker::before { width: 20px; background: #d97741; }
.login-form form { margin-top: 26px; }
.login-form .auth-field { margin-top: 19px; }
.login-form .auth-button { width: 100%; min-height: 49px; margin-top: 25px; }
.login-form .auth-alert { margin: 22px 0; }
.login-form .auth-footnote { margin-top: 25px; text-align: center; font-size: 12px; }
body > .login-form-wrap { min-height: 100vh; min-height: 100svh; color: #202722; font: 14px/1.55 "Segoe UI", Arial, sans-serif; }
body > .login-form-wrap .auth-card { box-sizing: border-box; max-width: 540px; }
body > .login-form-wrap h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; }
body > .login-form-wrap .auth-button { margin-top: 10px; }
.auth-demo-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--auth-line); font-size: 12px; color: var(--auth-muted); }
.auth-demo-links > :where(p, span, small) { flex-basis: 100%; }
.auth-demo-links a { font-weight: 600; }

/* Signed-in workspace */
.auth-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: #f5f6f3; }
.auth-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; min-width: 0; height: 100vh; height: 100svh; padding: 32px 18px 24px; background: var(--auth-dark); color: #f6f6f2; }
.auth-sidebar .auth-brand { margin: 3px 8px 39px; }
.auth-nav { display: flex; flex-direction: column; gap: 5px; }
.auth-nav a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 13px; border-radius: 7px; color: #cbd4cc; text-decoration: none; font-size: 13px; font-weight: 550; }
.auth-nav a:hover { background: #303a33; color: #fff; }
.auth-nav :where(a.active, a[aria-current="page"]) { background: #384239; color: #fff; box-shadow: inset 3px 0 #ff8b53; }
.auth-nav svg { flex-shrink: 0; width: 18px; height: 18px; }
.auth-sidebar > :where(.auth-muted, .auth-footnote) { margin-top: auto; padding: 20px 9px 0; color: #aeb9b0; font-size: 11px; }
.auth-sidebar form { margin-top: auto; padding-top: 24px; }
.auth-sidebar .auth-button-secondary { width: 100%; color: #dfe7df; border-color: #4a554c; background: transparent; }
.auth-sidebar .auth-button-secondary:hover { background: #354036; }
.auth-main { min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 73px; padding: 17px 36px; border-bottom: 1px solid var(--auth-line); background: #fcfdfb; font-size: 12px; color: #626e64; }
.auth-top > :where(div, form) { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.auth-top > div:first-child { display: block; }
.auth-top > div:first-child > .auth-muted { font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; }
.auth-top h1 { margin-top: 3px; font-size: 23px; letter-spacing: -.7px; color: #29362c; }
.auth-top .auth-actions { justify-content: flex-end; margin-top: 0; }
.auth-user-name { font-size: 13px; font-weight: 600; color: #29382c; overflow-wrap: anywhere; }
.auth-top .auth-button-secondary { padding: 6px 12px; min-height: 34px; font-size: 12px; }
.auth-content { width: 100%; max-width: 1400px; margin: 0 auto; padding: 34px 36px 54px; }
.auth-content > h1 { margin: 3px 0 10px; }
.auth-content > .auth-muted { margin-bottom: 28px; }
.auth-content > :where(.auth-card, .auth-grid, .auth-alert, .auth-success) + :where(.auth-card, .auth-grid, .auth-alert, .auth-success) { margin-top: 22px; }
.auth-content > :where(header, .auth-page-intro) { margin-bottom: 26px; }
.auth-content > :where(header, .auth-page-intro) p { margin-top: 9px; }
.auth-card { min-width: 0; padding: 27px; border: 1px solid #dfe4dc; border-radius: 13px; background: #fff; box-shadow: 0 3px 11px #25352603; }
.auth-card > h2 { margin-bottom: 10px; }
.auth-card > h3 { margin-bottom: 9px; }
.auth-card > :where(.auth-muted, p) { margin-bottom: 23px; }
.auth-card > form { margin-top: 21px; }
.auth-card > .auth-grid { margin-top: 20px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.auth-grid > * { min-width: 0; }
.auth-grid > .auth-field { margin-bottom: 0; }
.auth-grid > div:empty { display: block; }
form > .auth-grid + :where(.auth-button, .auth-button-secondary) { margin-top: 23px; }
.auth-full { grid-column: 1 / -1; }
.auth-muted { color: var(--auth-muted); font-size: 13px; line-height: 1.65; }
.auth-footnote { color: var(--auth-muted); font-size: 12px; line-height: 1.6; }
.auth-content > .auth-footnote { margin-top: 25px; }
.auth-card dl { display: grid; gap: 0; margin: 23px 0; }
.auth-card dt { padding-top: 13px; color: #697565; font-size: 11px; }
.auth-card dt:first-child { padding-top: 0; }
.auth-card dd { margin: 4px 0 0; padding-bottom: 13px; border-bottom: 1px solid #e7ece2; color: #344730; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.auth-card dd:last-child { padding-bottom: 0; border-bottom: 0; }

/* Team members expand in place, with a separate password section. */
.auth-user { min-width: 0; margin-top: 12px; border: 1px solid #dce3d7; border-radius: 9px; background: #fff; }
.auth-user summary { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; min-height: 58px; padding: 16px 43px 16px 17px; list-style: none; cursor: pointer; border-radius: 9px; transition: background .15s ease; }
.auth-user summary::-webkit-details-marker { display: none; }
.auth-user summary::after { content: ""; position: absolute; right: 20px; top: 23px; width: 7px; height: 7px; border: solid #73816a; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.auth-user[open] > summary::after, .auth-user details[open] > summary::after { transform: rotate(225deg); top: 26px; }
.auth-user summary:hover { background: #f5f8f0; }
.auth-user > summary strong { color: #34492e; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.auth-user > summary > .auth-muted { font-size: 11px; overflow-wrap: anywhere; }
.auth-user[open] > summary { border-bottom: 1px solid #e1e8dc; border-radius: 9px 9px 0 0; background: #f7f9f3; }
.auth-user > p { margin: 17px; }
.auth-user > p:last-child { padding: 14px 0 2px; border-top: 1px solid #e7ece2; font-size: 12px; }
.auth-user > form { margin: 0; padding: 0 17px 19px; }
.auth-user > form > .auth-muted { margin-top: 17px; font-size: 12px; }
.auth-user > details { margin: 0 17px 17px; padding-top: 2px; border-top: 1px solid #e1e8dc; }
.auth-user > details > summary { min-height: 49px; padding: 13px 32px 13px 0; color: #92512c; font-size: 12px; font-weight: 600; }
.auth-user > details > summary:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.auth-user > details > summary::after { right: 8px; top: 19px; }
.auth-user > details[open] > summary::after { top: 22px; }
.auth-user > details > form { padding-top: 8px; }
.auth-user .auth-actions { margin-top: 18px; }

/* Forms */
.auth-field { display: grid; align-content: start; gap: 7px; margin: 0 0 18px; }
.auth-field > :where(label, span),
label.auth-field { color: #3f4b42; font-size: 12px; font-weight: 600; }
:where(.auth-card, .login-form) label:not(.auth-field):not(.auth-check) { display: grid; gap: 7px; color: #3f4b42; font-size: 12px; font-weight: 600; }
.auth-field :where(small, .auth-muted) { color: #6a746c; font-size: 11px; font-weight: 400; line-height: 1.5; }
:where(.auth-shell, .login-shell) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cbd4c8;
  border-radius: 7px;
  background: #fff;
  color: #243329;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease;
}
:where(.auth-shell, .login-shell) :where(input, textarea)::placeholder { color: #788279; opacity: 1; }
:where(.auth-shell, .login-shell) :where(input, select, textarea):hover:not(:disabled) { border-color: #99a995; }
:where(.auth-shell, .login-shell) :where(input, select, textarea):focus { border-color: #a65329; box-shadow: 0 0 0 3px #dd8b5920; }
:where(.auth-shell, .login-shell) :where(input, textarea)[readonly] { background: #f4f6f1; color: #687365; }
:where(.auth-shell, .login-shell) textarea { min-height: 98px; resize: vertical; }
:where(.auth-shell, .login-shell) :where(input[type="checkbox"], input[type="radio"]) { width: 17px; height: 17px; margin: 0; accent-color: #394d36; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0; color: #4a574b; font-size: 13px; font-weight: 400; }
.auth-check input { flex: 0 0 auto; margin-top: 2px !important; }
.auth-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auth-button,
.auth-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  max-width: 100%;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ff985f;
  color: #252b24 !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.auth-button:hover { background: #f98546; }
.auth-button:active { background: #ed7a39; }
.auth-button-secondary { border-color: #d4ddd0; background: #f8faf5; color: #41523e !important; }
.auth-button-secondary:hover { background: #eaf0e5; border-color: #b9c7b3; }
.auth-sidebar .auth-button-secondary { color: #dfe7df !important; }
.auth-danger { color: #982f28 !important; border-color: #e9c1b9; background: #fff5f2; }
.auth-danger:hover { background: #ffe9e1; border-color: #cc8d80; }
.auth-alert,
.auth-success { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #e5b4a8; border-left: 3px solid #b74f37; border-radius: 7px; background: #fff2ed; color: #903d2d; font-size: 13px; overflow-wrap: anywhere; }
.auth-success { border-color: #c5d6bd; border-left-color: #567f40; background: #edf5e7; color: #3e6032; }
.auth-alert :where(p, ul), .auth-success :where(p, ul) { margin: 0; }
.auth-alert a, .auth-success a { font-weight: 600; }
.auth-badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; background: #edf1e7; color: #4f6543; font-size: 10px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.auth-badge[data-role="admin"] { background: #ffeddf; color: #8d471f; }
.auth-badge[data-state="inactive"] { background: #f1eeea; color: #6e6256; }

/* Tables keep their own horizontal scroll area at narrow widths. */
.auth-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #e0e6dc; border-radius: 9px; scrollbar-width: thin; scrollbar-color: #b7c2b1 #f3f5ef; }
.auth-card .auth-table-wrap { margin-top: 23px; }
.auth-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.auth-table :where(th, td) { padding: 14px 15px; border-bottom: 1px solid #e6ebe2; text-align: left; vertical-align: middle; }
.auth-table th { background: #f6f8f2; color: #63725c; font-size: 10px; font-weight: 650; letter-spacing: .35px; white-space: nowrap; }
.auth-table tbody tr:last-child td { border-bottom: 0; }
.auth-table tbody tr:hover { background: #fcfdf9; }
.auth-table td { color: #3d4d3b; }
.auth-table td > :where(small, .auth-muted) { display: block; margin-top: 3px; font-size: 11px; }
.auth-table td:first-child { font-weight: 600; }
.auth-table :where(code, time) { font-size: 11px; font-variant-numeric: tabular-nums; }
.auth-table :where(form, .auth-actions) { display: flex; align-items: center; gap: 7px; margin: 0; }
.auth-table .auth-actions { flex-wrap: wrap; }
.auth-table :where(.auth-button, .auth-button-secondary) { min-height: 34px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.auth-table :where(input, select) { min-width: 112px !important; min-height: 34px !important; padding: 7px 9px !important; font-size: 12px !important; }
.auth-table label { margin: 0; }
.auth-table td[colspan] { padding: 29px 16px; font-weight: 400; color: #6b7767; }

@media (min-width: 1600px) {
  .login-story { padding-left: max(82px, calc((100vw - 1480px) / 2)); }
  .login-form-wrap { justify-content: flex-start; padding-left: 110px; }
}
@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .auth-sidebar { padding-inline: 14px; }
  .auth-sidebar .auth-brand img { width: 163px; }
  .auth-content { padding: 29px 24px 45px; }
  .auth-top { padding-inline: 24px; }
  .auth-card { padding: 22px; }
  .auth-grid { gap: 18px; }
  .login-story { padding: 40px; }
  .login-story .login-heading { font-size: 45px; }
  .login-story .auth-brand img { width: 204px; }
  .login-form-wrap { padding: 45px 32px; }
}
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-sidebar { position: static; height: auto; padding: 21px 22px 15px; }
  .auth-sidebar .auth-brand { margin: 0 0 19px; }
  .auth-sidebar .auth-brand img { width: 169px; }
  .auth-nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .auth-nav a { min-height: 40px; padding: 9px 12px; font-size: 12px; }
  .auth-nav :where(a.active, a[aria-current="page"]) { box-shadow: inset 0 -2px #ff8b53; }
  .auth-sidebar > :where(.auth-muted, .auth-footnote) { margin-top: 10px; padding: 10px 0 0; }
  .auth-sidebar form { margin-top: 12px; padding-top: 0; }
  .auth-sidebar form .auth-button-secondary { width: auto; }
  .auth-top { min-height: 64px; padding: 13px 22px; }
  .auth-content { padding: 27px 22px 40px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .login-story { padding: 31px 34px 35px; }
  .login-story .auth-brand img { width: 192px; }
  .login-kicker { margin-top: 33px; margin-bottom: 14px; font-size: 10px; }
  .login-story .login-heading { max-width: 560px; font-size: 37px; letter-spacing: -1.2px; }
  .login-description { max-width: 580px; margin-top: 16px !important; font-size: 14px; }
  .login-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; margin-top: 24px; font-size: 12px; }
  .login-story .auth-footnote { padding-top: 24px; }
  .login-form-wrap { padding: 42px 30px 50px; }
  .login-form { max-width: 480px; }
  .login-form :where(h1, h2) { font-size: 30px; }
}
@media (max-width: 600px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .auth-grid > div:empty { display: none; }
  .auth-content { padding: 24px 15px 36px; }
  .auth-content > .auth-muted { margin-bottom: 21px; }
  .auth-content > :where(.auth-card, .auth-grid, .auth-alert, .auth-success) + :where(.auth-card, .auth-grid, .auth-alert, .auth-success) { margin-top: 17px; }
  .auth-card { padding: 20px 17px; border-radius: 10px; }
  .auth-top { padding: 13px 17px; flex-wrap: wrap; gap: 9px; }
  .auth-top > :where(div, form) { gap: 8px; }
  .auth-top .auth-actions { justify-content: flex-start; }
  .auth-top h1 { font-size: 22px; }
  .auth-sidebar { padding: 21px 17px 14px; }
  .auth-nav { gap: 3px; }
  .auth-nav a { padding-inline: 9px; }
  :where(.auth-shell, .login-shell) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
  .auth-table { min-width: 610px; }
  .auth-table :where(th, td) { padding: 12px; }
  .auth-actions { gap: 9px; }
  .auth-card .auth-actions > :where(.auth-button, .auth-button-secondary) { flex: 1 1 auto; }
  .login-story { padding: 25px 25px 27px; }
  .login-story .auth-brand img { width: 160px; }
  .login-kicker { margin-top: 21px; font-size: 9px; letter-spacing: 1.45px; }
  .login-story .login-heading { font-size: 28px; letter-spacing: -.9px; }
  .login-description { margin-top: 12px !important; font-size: 12px; line-height: 1.6; }
  .login-story .login-points, .login-story .auth-footnote { display: none; }
  .login-form-wrap { padding: 29px 25px 32px; }
  .login-form :where(h1, h2) { font-size: 28px; }
  .login-form > :where(p, .auth-muted) { margin-bottom: 23px; }
  .login-form > .login-kicker { margin-bottom: 12px; font-size: 9px; }
  .login-form .auth-field { margin-top: 16px; margin-bottom: 16px; }
  .login-form .auth-button { margin-top: 7px; }
  .login-form .auth-footnote { margin-top: 18px; margin-bottom: 0; font-size: 11px; }
  .auth-user summary { padding-left: 13px; }
  .auth-user > summary > strong { flex-basis: 100%; }
  .auth-user > form { padding-inline: 13px; }
  .auth-user > :where(p, details) { margin-inline: 13px; }
  .auth-alert, .auth-success { padding: 12px 13px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.auth-shell, .login-shell) * { scroll-behavior: auto !important; transition: none !important; }
}
