:root {
  --bg: var(--rx-c-227-242-253-1000);
  --panel: var(--rx-c-255-255-255-550);
  --panel-soft: var(--rx-c-186-230-253-450);
  --ink: var(--rx-c-11-37-64-1000);
  --muted: var(--rx-c-63-98-132-1000);
  --line: var(--rx-c-255-255-255-600);
  --glass-line: var(--rx-c-125-211-252-550);
  --blue: var(--rx-c-2-132-199-1000);
  --cyan: var(--rx-c-8-145-178-1000);
  --green: var(--rx-c-22-163-74-1000);
  --amber: var(--rx-c-217-119-6-1000);
  --red: var(--rx-c-220-38-38-1000);
  --violet: var(--rx-c-124-58-237-1000);
  --indigo: var(--rx-c-79-70-229-1000);
  --teal: var(--rx-c-15-118-110-1000);
  --shadow: 0 20px 60px var(--rx-c-3-105-161-220);
  --glass-blur: saturate(160%) blur(18px);
}

/* Party directory: keep repeat CRM orders under one canonical party name. */
.party-directory-field .party-directory-hint {
  display: block;
  margin-top: 7px;
  color: var(--rx-c-159-181-203-1000);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.party-combobox-wrap {
  position: relative;
}

.party-directory-field > label {
  display: block;
  margin-bottom: 7px;
}

.party-combobox-wrap > input {
  padding-right: 44px;
}

.party-combobox-wrap > #partyDirectoryToggle {
  position: absolute;
  z-index: 3;
  top: 1px;
  right: 1px;
  width: 40px;
  height: calc(100% - 2px);
  min-height: 0;
  border: 0;
  border-left: 1px solid var(--rx-c-103-232-249-140);
  border-radius: 0 9px 9px 0;
  background: linear-gradient(180deg, var(--rx-c-15-42-72-960), var(--rx-c-7-25-47-960));
  color: var(--rx-c-163-230-53-1000);
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.party-combobox-wrap > #partyDirectoryToggle:hover {
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

.party-directory-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 310px;
  gap: 4px;
  overflow-y: auto;
  border: 1px solid var(--rx-c-103-232-249-300);
  border-radius: 13px;
  background: linear-gradient(160deg, var(--rx-c-8-30-55-990), var(--rx-c-15-23-42-990));
  padding: 7px;
  box-shadow: 0 20px 45px var(--rx-c-2-8-23-720), 0 0 0 1px var(--rx-c-163-230-53-50) inset;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.party-directory-menu > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 8px 10px;
  color: var(--rx-c-234-244-255-1000);
  text-align: left;
}

.party-directory-menu > button:hover,
.party-directory-menu > button.is-active {
  border-color: var(--rx-c-163-230-53-350);
  background: linear-gradient(90deg, var(--rx-c-163-230-53-140), var(--rx-c-34-211-238-60));
  transform: none;
}

.party-directory-menu > button strong,
.party-directory-menu > button small {
  display: block;
}

.party-directory-menu > button strong {
  color: var(--rx-c-248-250-252-1000);
  font-size: 13px;
  line-height: 1.25;
}

.party-directory-menu > button small {
  margin-top: 4px;
  color: var(--rx-c-143-176-202-1000);
  font-size: 10px;
  line-height: 1.3;
}

.party-directory-menu > button em {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--rx-c-103-232-249-220);
  border-radius: 999px;
  background: var(--rx-c-14-116-144-140);
  color: var(--rx-c-103-232-249-1000);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.party-directory-empty {
  border: 1px dashed var(--rx-c-251-191-36-300);
  border-radius: 9px;
  background: var(--rx-c-251-191-36-60);
  padding: 11px;
  color: var(--rx-c-253-230-138-1000);
  font-size: 11px;
  line-height: 1.4;
}

.party-directory-field .party-directory-hint.is-match {
  color: var(--green, var(--rx-c-163-230-53-1000));
}

.party-directory-field .party-directory-hint.is-warning {
  color: var(--rx-c-251-191-36-1000);
}

.new-party-confirm {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  align-self: end;
  gap: 10px;
  border: 1px solid var(--rx-c-251-191-36-280);
  border-radius: 10px;
  background: var(--rx-c-251-191-36-70);
  padding: 10px 12px;
  color: var(--rx-c-253-230-138-1000);
  cursor: pointer;
}

.new-party-confirm input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green, var(--rx-c-163-230-53-1000));
}

.new-party-confirm span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.party-order-history {
  display: grid;
  gap: 11px;
  border: 1px solid var(--rx-c-103-232-249-220);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--rx-c-8-47-73-560), var(--rx-c-15-23-42-700));
  padding: 14px;
}

.party-order-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.party-order-history h4 { margin: 3px 0 0; }
.party-order-history > header > strong {
  border: 1px solid var(--rx-c-163-230-53-340);
  border-radius: 999px;
  background: var(--rx-c-163-230-53-100);
  padding: 6px 9px;
  color: var(--green, var(--rx-c-163-230-53-1000));
  font-size: 11px;
  white-space: nowrap;
}

.party-history-list {
  display: grid;
  max-height: 430px;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.party-history-order {
  border: 1px solid var(--rx-c-148-163-184-170);
  border-radius: 11px;
  background: var(--rx-c-2-8-23-480);
  overflow: clip;
}

.party-history-order[open] { border-color: var(--rx-c-103-232-249-340); }
.party-history-order summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}
.party-history-order summary::-webkit-details-marker { display: none; }
.party-history-order summary span,
.party-history-order summary strong,
.party-history-order summary small { display: block; }
.party-history-order summary small { margin-top: 3px; color: var(--rx-c-145-169-193-1000); }
.party-history-order summary em {
  border-radius: 999px;
  background: var(--rx-c-103-232-249-100);
  padding: 5px 8px;
  color: var(--rx-c-103-232-249-1000);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.party-history-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--rx-c-148-163-184-140);
  padding: 12px;
}
.party-history-body section > span {
  color: var(--rx-c-125-211-252-1000);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.party-history-body section p {
  margin: 4px 0 0;
  color: var(--rx-c-219-234-254-1000);
  line-height: 1.45;
  white-space: pre-wrap;
}

.party-history-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.party-history-finance span {
  border-radius: 8px;
  background: var(--rx-c-30-41-59-740);
  padding: 8px;
  color: var(--rx-c-145-169-193-1000);
  font-size: 10px;
}
.party-history-finance strong {
  display: block;
  margin-top: 3px;
  color: var(--rx-c-248-250-252-1000);
  font-size: 12px;
}

@media (max-width: 680px) {
  .party-order-history > header { align-items: flex-start; flex-direction: column; }
  .party-history-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.party-cleanup-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--rx-c-103-232-249-240);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rx-c-8-47-73-720), var(--rx-c-30-41-59-780));
  padding: 16px;
}

/* Client master workspace. */
.client-command-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--rx-c-103-232-249-220);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 0, var(--rx-c-37-99-235-200), transparent 36%), linear-gradient(145deg, var(--rx-c-7-23-43-1000), var(--rx-c-13-36-64-1000));
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: 0 18px 48px var(--rx-c-2-8-23-300);
}
.client-command-panel h3 { margin: 4px 0; font-size: clamp(25px, 3vw, 38px); }
.client-command-panel > div:first-child > p { margin: 0; color: var(--rx-c-159-181-203-1000); }
.client-owner-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.client-owner-tab { position: relative; min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 4px 12px; overflow: hidden; border: 1px solid var(--rx-c-103-232-249-160); border-radius: 14px; background: linear-gradient(145deg, var(--rx-c-15-23-42-720), var(--rx-c-8-47-73-480)); padding: 12px 14px; color: var(--rx-c-168-189-209-1000); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.client-owner-tab::after { content: ""; position: absolute; inset: auto -24px -35px auto; width: 82px; height: 82px; border-radius: 50%; background: var(--rx-c-34-211-238-1000); opacity: .05; }
.client-owner-tab:hover { border-color: var(--rx-c-103-232-249-420); transform: translateY(-1px); }
.client-owner-tab span { color: var(--rx-c-248-250-252-1000); font-size: 15px; font-weight: 950; letter-spacing: .02em; }
.client-owner-tab small { grid-column: 1; color: var(--rx-c-120-147-170-1000); font-size: 10px; font-weight: 750; }
.client-owner-tab b { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 38px; border: 1px solid var(--rx-c-103-232-249-240); border-radius: 999px; background: var(--rx-c-34-211-238-90); padding: 7px 9px; color: var(--rx-c-103-232-249-1000); font-size: 14px; text-align: center; }
.client-owner-tab.active { border-color: var(--rx-c-163-230-53-580); background: linear-gradient(135deg, var(--rx-c-163-230-53-180), var(--rx-c-34-211-238-100)); box-shadow: inset 3px 0 0 var(--rx-c-163-230-53-1000), 0 12px 30px var(--rx-c-2-8-23-220), 0 0 22px var(--rx-c-163-230-53-80); }
.client-owner-tab.active span { color: var(--rx-c-217-249-157-1000); }
.client-owner-tab.active b { border-color: var(--rx-c-163-230-53-420); background: var(--rx-c-163-230-53-140); color: var(--rx-c-217-249-157-1000); }
.client-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.client-summary-grid > div { border: 1px solid var(--rx-c-148-163-184-160); border-radius: 13px; background: var(--rx-c-15-23-42-580); padding: 13px; }
.client-summary-grid span { display: block; color: var(--rx-c-145-169-193-1000); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.client-summary-grid strong { display: block; margin-top: 5px; color: var(--rx-c-248-250-252-1000); font-size: clamp(20px, 2.2vw, 31px); }
.client-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); gap: 10px; }
.client-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.client-profile-card { display: grid; gap: 10px; min-width: 0; border: 1px solid var(--rx-c-148-163-184-180); border-radius: 14px; background: var(--rx-c-11-27-49-1000); padding: 14px; color: var(--rx-c-234-244-255-1000); text-align: left; }
.client-profile-card:hover { border-color: var(--rx-c-103-232-249-450); box-shadow: 0 10px 24px var(--rx-c-2-8-23-200); }
.client-profile-card.followup-due { border-color: var(--rx-c-251-191-36-480); }
.client-profile-card header { display: flex; align-items: center; gap: 11px; }
.client-profile-card header > div { min-width: 0; flex: 1; }
.client-profile-card header > span,
.client-profile-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 1px solid var(--rx-c-103-232-249-350); border-radius: 14px; background: var(--rx-c-14-116-144-200); color: var(--rx-c-103-232-249-1000); font-weight: 900; }
.client-profile-card header strong,
.client-profile-card header small { display: block; }
.client-profile-card header strong { font-size: 15px; }
.client-profile-card header small { margin-top: 3px; color: var(--rx-c-145-169-193-1000); }
.client-simple-status { flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--client-tone) 38%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--client-tone) 9%, transparent); padding: 5px 8px; color: var(--client-tone); font-size: 9px; font-style: normal; font-weight: 900; }
.client-contact-line { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--rx-c-159-181-203-1000); font-size: 11px; overflow-wrap: anywhere; }
.client-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rx-c-148-163-184-130); border-bottom: 1px solid var(--rx-c-148-163-184-130); }
.client-kpis span { padding: 9px 8px; color: var(--rx-c-129-155-179-1000); font-size: 9px; }
.client-kpis span + span { border-left: 1px solid var(--rx-c-148-163-184-130); }
.client-kpis b { display: block; margin-bottom: 2px; color: var(--rx-c-248-250-252-1000); font-size: 16px; }
.client-money { display: flex; justify-content: space-between; gap: 10px; color: var(--rx-c-163-230-53-1000); font-size: 11px; font-weight: 800; }
.client-profile-card footer { display: flex; justify-content: space-between; gap: 8px; color: var(--rx-c-113-140-165-1000); font-size: 9px; }
.client-profile-card footer em { color: var(--rx-c-251-191-36-1000); font-style: normal; font-weight: 850; }
.client-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--client-tone, var(--rx-c-34-211-238-1000));
  box-shadow: 0 0 22px color-mix(in srgb, var(--client-tone, var(--rx-c-34-211-238-1000)) 55%, transparent);
}
.client-profile-card { position: relative; overflow: hidden; --client-tone: var(--rx-c-34-211-238-1000); }
.client-profile-card.collection-due { --client-tone: var(--rx-c-251-113-133-1000); }
.client-profile-card.followup-due { --client-tone: var(--rx-c-251-191-36-1000); }
.client-profile-card.live-client { --client-tone: var(--rx-c-56-189-248-1000); }
.client-profile-card.repeat-opportunity { --client-tone: var(--rx-c-163-230-53-1000); }
.client-profile-card.healthy-client { --client-tone: var(--rx-c-52-211-153-1000); }
.client-profile-card.needs-profile { --client-tone: var(--rx-c-167-139-250-1000); }
.client-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.client-tier { border: 1px solid color-mix(in srgb, var(--client-tone) 38%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--client-tone) 10%, transparent); padding: 5px 8px; color: var(--client-tone); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.client-health { display: flex; align-items: center; gap: 6px; color: var(--rx-c-159-181-203-1000); font-size: 10px; font-weight: 800; }
.client-health i { --size: 22px; position: relative; width: var(--size); height: var(--size); flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--client-tone) calc(var(--score) * 1%), var(--rx-c-148-163-184-130) 0); }
.client-health i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--rx-c-11-27-49-1000); }
.client-progress-stack { display: grid; gap: 8px; }
.client-progress-stack > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; }
.client-progress-stack span { color: var(--rx-c-142-168-191-1000); font-size: 10px; font-weight: 750; }
.client-progress-stack strong { color: var(--rx-c-234-244-255-1000); font-size: 10px; }
.client-progress-stack i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--rx-c-148-163-184-120); overflow: hidden; }
.client-progress-stack i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--client-tone), var(--rx-c-103-232-249-1000)); box-shadow: 0 0 10px color-mix(in srgb, var(--client-tone) 55%, transparent); }
.client-money { border: 0; border-radius: 0; background: transparent; padding: 1px 0; }
.client-money > span { color: var(--rx-c-217-249-157-1000); }
.client-money small { display: block; margin-bottom: 3px; color: var(--rx-c-120-147-169-1000); font-size: 8px; text-transform: uppercase; }
.client-next-action { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb, var(--client-tone) 26%, transparent); border-radius: 11px; background: linear-gradient(90deg, color-mix(in srgb, var(--client-tone) 12%, transparent), var(--rx-c-15-23-42-280)); padding: 10px; }
.client-next-action > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--client-tone) 18%, transparent); color: var(--client-tone); font-size: 15px; font-weight: 950; }
.client-next-action small,
.client-next-action strong { display: block; }
.client-next-action small { color: var(--rx-c-129-157-182-1000); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.client-next-action strong { margin-top: 2px; color: var(--rx-c-248-250-252-1000); font-size: 11px; line-height: 1.3; }
.client-next-action > b { color: var(--client-tone); font-size: 18px; }
.client-summary-grid > div { position: relative; overflow: hidden; }
.client-summary-grid > div::after { content: ""; position: absolute; width: 70px; height: 70px; right: -24px; bottom: -28px; border-radius: 50%; background: currentColor; opacity: .055; }
.client-summary-grid small { display: block; margin-top: 4px; color: var(--rx-c-113-140-165-1000); font-size: 9px; }
.client-summary-grid .relationships { color: var(--rx-c-103-232-249-1000); }
.client-summary-grid .live-work { color: var(--rx-c-56-189-248-1000); }
.client-summary-grid .collection { color: var(--rx-c-251-113-133-1000); }
.client-summary-grid .opportunity { color: var(--rx-c-163-230-53-1000); }
.client-summary-grid > div span,
.client-summary-grid > div strong { color: inherit; }
.client-profile-hero { display: flex; align-items: center; gap: 14px; border: 1px solid var(--rx-c-103-232-249-200); border-radius: 15px; background: linear-gradient(135deg, var(--rx-c-8-47-73-700), var(--rx-c-30-41-59-720)); padding: 15px; }
.client-profile-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
.client-profile-hero h3,
.client-profile-hero p { margin: 2px 0; }
.client-profile-hero > a,
.client-crm-id { margin-left: auto; border: 1px solid var(--rx-c-163-230-53-320); border-radius: 999px; padding: 7px 10px; color: var(--rx-c-163-230-53-1000); font-size: 11px; font-weight: 850; text-decoration: none; }
.client-order-history > div { display: grid; gap: 8px; max-height: 480px; overflow: auto; }

@media (max-width: 760px) {
  .client-owner-tabs { display: flex; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x proximity; }
  .client-owner-tab { min-width: 168px; flex: 1 0 168px; scroll-snap-align: start; }
  .client-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-toolbar { grid-template-columns: 1fr; }
  .client-card-grid { grid-template-columns: 1fr; }
  .client-profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .client-profile-hero > a,
  .client-crm-id { margin-left: 0; }
}

.party-cleanup-card h4,
.party-cleanup-card p {
  margin: 4px 0 0;
}

.party-cleanup-card p {
  max-width: 680px;
  color: var(--rx-c-169-189-208-1000);
  line-height: 1.45;
}

.party-cleanup-card button {
  flex: 0 0 auto;
  border-color: var(--rx-c-163-230-53-450);
  color: var(--green, var(--rx-c-163-230-53-1000));
}

.party-cleanup-form {
  display: grid;
  gap: 16px;
}

.party-cleanup-warning {
  border: 1px solid var(--rx-c-251-191-36-300);
  border-radius: 12px;
  background: var(--rx-c-251-191-36-80);
  padding: 13px 14px;
}

.party-cleanup-warning strong { color: var(--rx-c-253-230-138-1000); }
.party-cleanup-warning p { margin: 5px 0 0; color: var(--rx-c-216-202-164-1000); line-height: 1.45; }

.party-cleanup-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.party-cleanup-head h4,
.party-cleanup-head p { margin: 0; }
.party-cleanup-head p { margin-top: 4px; color: var(--rx-c-145-169-193-1000); }
.party-cleanup-head > strong { color: var(--green, var(--rx-c-163-230-53-1000)); white-space: nowrap; }

.party-cleanup-candidates {
  display: grid;
  max-height: 330px;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.party-cleanup-candidate {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--rx-c-148-163-184-180);
  border-radius: 11px;
  background: var(--rx-c-15-23-42-660);
  padding: 11px 12px;
  cursor: pointer;
}

.party-cleanup-candidate:hover,
.party-cleanup-candidate:has(input:checked) {
  border-color: var(--rx-c-163-230-53-480);
  background: var(--rx-c-163-230-53-80);
}

.party-cleanup-candidate input,
.party-crm-sync input {
  width: 18px !important;
  height: 18px;
  margin: 0;
  accent-color: var(--green, var(--rx-c-163-230-53-1000));
}

.party-cleanup-candidate span { min-width: 0; }
.party-cleanup-candidate strong,
.party-cleanup-candidate small { display: block; }
.party-cleanup-candidate small { margin-top: 3px; color: var(--rx-c-145-169-193-1000); }
.party-cleanup-candidate em { color: var(--rx-c-103-232-249-1000); font-size: 11px; font-style: normal; font-weight: 800; }

.party-crm-sync {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--rx-c-189-209-228-1000);
}

@media (max-width: 680px) {
  .party-cleanup-card,
  .party-cleanup-head { align-items: stretch; flex-direction: column; }
  .party-cleanup-card button { width: 100%; }
  .party-cleanup-candidate { grid-template-columns: auto minmax(0, 1fr); }
  .party-cleanup-candidate em { grid-column: 2; }
}

@keyframes chart-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chart-bar-reveal {
  from {
    opacity: 0.2;
    transform: scaleX(0.015);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes chart-copy-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes donut-settle {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes donut-segment-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .chart-card,
  html:not([data-motion="full"]) .chart-bar,
  html:not([data-motion="full"]) .chart-copy,
  html:not([data-motion="full"]) .donut-chart,
  html:not([data-motion="full"]) .donut-segment,
  html:not([data-motion="full"]) .donut-legend-row {
    animation: none !important;
    transition: none !important;
  }

  html:not([data-motion="full"]) .chart-card:hover {
    transform: none;
  }
}

/* =====================================================================
   V1.37.0 DESIGNER ARENA GAMIFICATION
   ===================================================================== */
@keyframes designer-avatar-charge {
  0%, 100% { box-shadow: 0 0 0 7px var(--rx-c-34-211-238-80), 0 0 34px var(--rx-c-34-211-238-220); }
  50% { box-shadow: 0 0 0 10px var(--rx-c-163-230-53-120), 0 0 52px var(--rx-c-163-230-53-280); }
}

@keyframes designer-save-toast-enter {
  0% { opacity: 0; transform: translate3d(30px, -8px, 0) scale(0.82); }
  65% { opacity: 1; transform: translate3d(-5px, 0, 0) scale(1.04); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.designer-game-hub {
  --game-accent: var(--rx-c-34-211-238-1000);
  --game-accent-soft: var(--rx-c-34-211-238-180);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(300px, 360px);
  grid-template-areas:
    "portrait core quest"
    "achievements achievements achievements";
  align-items: center;
  gap: 22px 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-accent) 48%, transparent);
  border-radius: 24px;
  margin: 18px;
  padding: 24px;
  background:
    radial-gradient(460px 280px at 8% 12%, var(--game-accent-soft), transparent 68%),
    radial-gradient(420px 260px at 92% 16%, var(--rx-c-79-70-229-240), transparent 72%),
    linear-gradient(135deg, var(--rx-c-6-21-45-1000), var(--rx-c-11-37-72-1000) 58%, var(--rx-c-17-29-77-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 22px 60px var(--rx-c-2-8-23-420), inset 0 1px 0 var(--rx-c-255-255-255-70);
}

.designer-game-hub.accent-violet {
  --game-accent: var(--rx-c-192-132-252-1000);
  --game-accent-soft: var(--rx-c-192-132-252-200);
}

.designer-game-hub.accent-lime {
  --game-accent: var(--rx-c-163-230-53-1000);
  --game-accent-soft: var(--rx-c-163-230-53-180);
}

.designer-game-hub::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--game-accent) 42%, transparent) 1px, transparent 1.5px);
  background-size: 19px 19px;
  mask-image: linear-gradient(90deg, var(--rx-c-0-0-0-1000), transparent 76%);
}

.designer-game-hub::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  right: -210px;
  top: -250px;
  border: 1px solid var(--rx-c-103-232-249-180);
  border-radius: 50%;
  box-shadow: 0 0 0 42px var(--rx-c-79-70-229-50), 0 0 0 88px var(--rx-c-34-211-238-30);
}

.designer-player-portrait {
  grid-area: portrait;
  display: grid;
  justify-items: center;
  align-self: stretch;
  align-content: center;
  gap: 12px;
}

.designer-avatar-ring {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: 34px;
  padding: 3px;
  background: linear-gradient(var(--rx-c-7-26-52-1000), var(--rx-c-7-26-52-1000)) padding-box,
    conic-gradient(from 20deg, var(--game-accent), var(--rx-c-163-230-53-1000), var(--rx-c-96-165-250-1000), var(--game-accent)) border-box;
  animation: designer-avatar-charge 2.8s ease-in-out infinite;
  transform: rotate(-2deg);
}

.designer-avatar-ring img,
.designer-avatar-ring > span {
  width: 100%;
  height: 100%;
  border-radius: 27px;
}

.designer-avatar-ring img {
  display: block;
  object-fit: cover;
  object-position: center 16%;
  background: var(--rx-c-255-255-255-1000);
  transform: rotate(2deg) scale(1.04);
}

.designer-avatar-ring > span {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--rx-c-18-57-95-1000), var(--rx-c-49-46-129-1000));
  color: var(--rx-c-255-255-255-1000);
  font-size: 54px;
  font-weight: 1000;
  letter-spacing: -0.06em;
  transform: rotate(2deg);
}

.designer-player-portrait > b {
  border: 1px solid color-mix(in srgb, var(--game-accent) 55%, transparent);
  border-radius: 999px;
  padding: 7px 13px;
  background: color-mix(in srgb, var(--game-accent) 17%, var(--rx-c-7-26-52-1000));
  color: var(--rx-c-255-255-255-1000);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: 0 0 18px var(--game-accent-soft);
}

.designer-player-core {
  grid-area: core;
  min-width: 0;
}

.designer-game-kicker {
  margin: 0 0 8px;
  color: var(--rx-c-103-232-249-1000);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.designer-player-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.designer-player-title-row h2 {
  margin: 0;
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.designer-player-title-row div > span {
  display: inline-flex;
  margin-top: 9px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--game-accent-soft);
  color: color-mix(in srgb, var(--game-accent) 78%, white);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.designer-player-title-row > strong {
  flex: 0 0 auto;
  color: var(--rx-c-190-242-100-1000);
  font-size: clamp(25px, 2.1vw, 36px);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 22px var(--rx-c-163-230-53-240);
}

.designer-game-intro {
  max-width: 620px;
  margin: 13px 0 16px;
  color: var(--rx-c-184-203-224-1000);
  font-size: 14px;
  font-weight: 700;
}

.designer-xp-line {
  display: grid;
  gap: 7px;
}

.designer-xp-line > div,
.designer-quest-progress > div {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--rx-c-103-232-249-200);
  border-radius: 999px;
  background: var(--rx-c-2-12-30-780);
  box-shadow: inset 0 2px 7px var(--rx-c-2-8-23-500);
}

.designer-xp-line > div span,
.designer-quest-progress > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--game-accent), var(--rx-c-163-230-53-1000));
  box-shadow: 0 0 18px var(--game-accent);
  transition: width 0.5s ease;
}

.designer-xp-line small {
  color: var(--rx-c-157-177-200-1000);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.designer-power-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.designer-power-stats > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 2px 7px;
  border: 1px solid var(--rx-c-103-232-249-140);
  border-radius: 11px;
  padding: 9px 10px;
  background: var(--rx-c-7-26-52-620);
}

.designer-power-stats span { grid-row: 1 / span 2; font-size: 19px; }
.designer-power-stats strong { color: var(--rx-c-255-255-255-1000); font-size: 18px; line-height: 1; }
.designer-power-stats small { color: var(--rx-c-143-167-191-1000); font-size: 9px; font-weight: 850; text-transform: uppercase; }

.designer-daily-quest {
  grid-area: quest;
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid var(--rx-c-251-191-36-350);
  border-radius: 19px;
  padding: 20px;
  background:
    radial-gradient(180px 140px at 100% 0%, var(--rx-c-251-191-36-140), transparent 75%),
    linear-gradient(145deg, var(--rx-c-49-23-67-750), var(--rx-c-13-31-65-860));
  box-shadow: inset 0 1px 0 var(--rx-c-254-240-138-80), 0 14px 34px var(--rx-c-2-8-23-280);
}

.designer-quest-tag {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--rx-c-251-191-36-140);
  color: var(--rx-c-253-230-138-1000);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.designer-daily-quest > i {
  position: absolute;
  align-self: start;
  justify-self: end;
  color: var(--rx-c-251-191-36-1000);
  font-size: 38px;
  font-style: normal;
  filter: drop-shadow(0 0 12px var(--rx-c-251-191-36-280));
}

.designer-daily-quest h3 {
  max-width: 250px;
  margin: 0;
  color: var(--rx-c-255-255-255-1000);
  font-size: 21px;
  line-height: 1.05;
}

.designer-daily-quest p {
  max-width: 270px;
  margin: 0;
  color: var(--rx-c-198-213-229-1000);
  font-size: 12px;
  line-height: 1.45;
}

.designer-quest-progress {
  width: 100%;
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.designer-quest-progress > div span {
  background: linear-gradient(90deg, var(--rx-c-245-158-11-1000), var(--rx-c-190-242-100-1000));
}

.designer-quest-progress > strong {
  color: var(--rx-c-253-230-138-1000);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.designer-achievement-rack {
  grid-area: achievements;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--rx-c-103-232-249-140);
  padding-top: 18px;
}

.designer-achievement {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rx-c-103-232-249-140);
  border-radius: 13px;
  padding: 10px;
  background: var(--rx-c-4-19-42-620);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.designer-achievement > span {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rx-c-100-116-139-140);
  font-size: 21px;
  filter: grayscale(1);
}

.designer-achievement div { min-width: 0; display: grid; gap: 3px; }
.designer-achievement strong { overflow: hidden; color: var(--rx-c-185-200-216-1000); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.designer-achievement small { color: var(--rx-c-112-135-158-1000); font-size: 8px; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }

.designer-achievement.earned {
  border-color: var(--rx-c-163-230-53-320);
  background: linear-gradient(135deg, var(--rx-c-77-124-15-220), var(--rx-c-8-47-73-480));
}

.designer-achievement.earned > span {
  background: var(--rx-c-163-230-53-140);
  filter: none;
  box-shadow: 0 0 17px var(--rx-c-163-230-53-140);
}

.designer-achievement.earned strong { color: var(--rx-c-255-255-255-1000); }
.designer-achievement.earned small { color: var(--rx-c-190-242-100-1000); }
.designer-achievement:hover { transform: translateY(-2px); border-color: var(--game-accent); }

.designer-personal-board {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 12px;
  padding: 3px 18px 18px;
}

.designer-personal-board .designer-page-stat,
.designer-personal-board .designer-page-stat-hero {
  position: relative;
  grid-column: auto;
  min-height: 108px;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--rx-c-103-232-249-200);
  border-radius: 15px;
  padding: 14px;
  background:
    radial-gradient(120px 90px at 100% 0%, var(--rx-c-34-211-238-120), transparent 75%),
    linear-gradient(145deg, var(--rx-c-12-43-77-940), var(--rx-c-9-29-55-960));
  box-shadow: 0 13px 28px var(--rx-c-2-8-23-240);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.designer-personal-board .designer-page-stat::before {
  content: "\2726";
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--rx-c-103-232-249-1000);
  font-size: 22px;
  text-shadow: 0 0 14px var(--rx-c-34-211-238-400);
}

.designer-personal-board .designer-page-stat:nth-child(1)::before { content: "\2605"; color: var(--rx-c-190-242-100-1000); }
.designer-personal-board .designer-page-stat:nth-child(2)::before { content: "\265B"; color: var(--rx-c-251-191-36-1000); }
.designer-personal-board .designer-page-stat:nth-child(3)::before { content: "\2694"; }
.designer-personal-board .designer-page-stat:nth-child(4)::before { content: "\25F7"; color: var(--rx-c-251-113-133-1000); }
.designer-personal-board .designer-page-stat:nth-child(5)::before { content: "\26A1"; color: var(--rx-c-163-230-53-1000); }
.designer-personal-board .designer-page-stat:nth-child(6)::before { content: "\21BB"; color: var(--rx-c-192-132-252-1000); }
.designer-personal-board .designer-page-stat:nth-child(7)::before { content: "\231B"; color: var(--rx-c-251-191-36-1000); }

.designer-personal-board .designer-page-stat:hover { transform: translateY(-3px); border-color: var(--rx-c-163-230-53-1000); }
.designer-personal-board .designer-page-stat strong,
.designer-personal-board .designer-page-stat-hero strong { color: var(--rx-c-255-255-255-1000) !important; font-size: 34px; line-height: 1; }
.designer-personal-board .designer-page-stat:first-child strong { color: var(--rx-c-163-230-53-1000) !important; }
.designer-personal-board .designer-page-stat span { color: var(--rx-c-165-243-252-1000); font-size: 10px; line-height: 1.25; text-transform: uppercase; }

.designer-quest-row td {
  transition: background 0.16s ease, border-color 0.16s ease;
}

.designer-quest-row:hover td {
  background: var(--rx-c-20-58-92-940) !important;
  border-color: var(--rx-c-163-230-53-220);
}

.designer-quest-row .designer-party-cell {
  position: relative;
  border-left: 5px solid var(--rx-c-34-211-238-1000);
}

.designer-quest-row.quest-overdue .designer-party-cell { border-left-color: var(--rx-c-251-113-133-1000); }
.designer-quest-row.quest-blocked .designer-party-cell { border-left-color: var(--rx-c-245-158-11-1000); }
.designer-quest-row.quest-waiting .designer-party-cell { border-left-color: var(--rx-c-148-163-184-1000); }
.designer-quest-row.quest-moving .designer-party-cell { border-left-color: var(--rx-c-163-230-53-1000); }

.designer-quest-index {
  width: fit-content;
  display: block;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--rx-c-34-211-238-110);
  color: var(--rx-c-103-232-249-1000);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.designer-save {
  min-width: 96px;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 1px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--rx-c-163-230-53-1000), var(--rx-c-101-163-13-1000));
  color: var(--rx-c-23-35-10-1000);
  box-shadow: 0 10px 22px var(--rx-c-163-230-53-180);
}

.designer-save > span { color: var(--rx-c-23-35-10-1000); font-size: 12px; font-weight: 1000; }
.designer-save > small { color: var(--rx-c-54-83-20-1000); font-size: 8px; font-weight: 950; letter-spacing: 0.07em; }
.designer-save:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 26px var(--rx-c-163-230-53-280); }

.designer-save-toast {
  position: fixed;
  z-index: 10000;
  top: 84px;
  right: 24px;
  min-width: 260px;
  display: grid;
  gap: 4px;
  opacity: 0;
  border: 1px solid var(--rx-c-163-230-53-620);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    radial-gradient(180px 90px at 100% 0%, var(--rx-c-163-230-53-200), transparent 70%),
    linear-gradient(145deg, var(--rx-c-10-35-65-1000), var(--rx-c-18-43-82-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 20px 55px var(--rx-c-2-8-23-550), 0 0 28px var(--rx-c-163-230-53-160);
  pointer-events: none;
}

.designer-save-toast.show { animation: designer-save-toast-enter 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.designer-save-toast > span { color: var(--rx-c-163-230-53-1000); font-size: 22px; font-weight: 1000; line-height: 1; }
.designer-save-toast > strong { font-size: 15px; }
.designer-save-toast > small { color: var(--rx-c-165-243-252-1000); font-size: 11px; }

@media (max-width: 1280px) {
  .designer-game-hub {
    grid-template-columns: 160px minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 20px;
  }
  .designer-avatar-ring { width: 138px; }
  .designer-power-stats { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .designer-personal-board { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
}

@media (max-width: 920px) {
  .designer-game-hub {
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-areas:
      "portrait core"
      "quest quest"
      "achievements achievements";
  }
  .designer-avatar-ring { width: 126px; border-radius: 27px; }
  .designer-avatar-ring img,
  .designer-avatar-ring > span { border-radius: 21px; }
  .designer-daily-quest { min-height: 0; }
  .designer-achievement-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .designer-game-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "core"
      "quest"
      "achievements";
    margin: 12px;
    padding: 18px;
    text-align: center;
  }
  .designer-player-title-row { align-items: center; flex-direction: column; }
  .designer-game-intro { margin-right: auto; margin-left: auto; }
  .designer-xp-line small { text-align: left; }
  .designer-power-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .designer-power-stats > div { justify-content: center; text-align: left; }
  .designer-daily-quest { justify-items: center; text-align: center; }
  .designer-daily-quest > i { position: static; }
  .designer-achievement-rack { grid-template-columns: 1fr; text-align: left; }
  .designer-personal-board { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px 12px 14px; }
  .designer-personal-board .designer-page-stat,
  .designer-personal-board .designer-page-stat-hero { min-height: 104px; }
  .designer-personal-board .designer-page-stat strong,
  .designer-personal-board .designer-page-stat-hero strong { font-size: 30px; }
  .designer-save-toast { right: 14px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .designer-avatar-ring,
  html:not([data-motion="full"]) .designer-save-toast.show {
    animation: none !important;
  }
  html:not([data-motion="full"]) .designer-save-toast.show { opacity: 1; transform: none; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--rx-c-125-211-252-850), transparent 60%),
    radial-gradient(1000px 640px at 108% 6%, var(--rx-c-56-189-248-600), transparent 58%),
    radial-gradient(900px 700px at 50% 118%, var(--rx-c-2-132-199-420), transparent 60%),
    linear-gradient(160deg, var(--rx-c-207-238-255-1000) 0%, var(--rx-c-169-219-255-1000) 42%, var(--rx-c-124-196-245-1000) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, var(--rx-c-37-99-235-120), transparent 32%),
    linear-gradient(315deg, var(--rx-c-22-163-74-120), transparent 28%),
    var(--bg);
}

.login-panel {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-lockup.compact {
  gap: 10px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--rx-c-17-24-39-1000);
  color: var(--rx-c-255-255-255-1000);
  font-weight: 800;
}

.compact .brand-mark {
  width: 42px;
  height: 42px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

.login-panel h1 {
  font-size: 30px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--rx-c-37-99-235-140);
}

.primary-action,
#refreshBtn,
#logoutBtn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.compact-action {
  min-height: 38px;
}

.primary-action,
#refreshBtn {
  color: var(--rx-c-255-255-255-1000);
  background: var(--blue);
}

#logoutBtn {
  width: 100%;
  color: var(--ink);
  background: var(--panel-soft);
}

.test-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: var(--rx-c-255-247-237-1000);
  color: var(--rx-c-154-52-18-1000);
  font-size: 13px;
  line-height: 1.4;
}

.icon-button,
.modal-actions button,
#markAllReadBtn,
.filter-row button,
.summary-row,
.card-open,
.sheet-link,
.designer-save,
#profileLogoutBtn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  color: var(--ink);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: grid-template-columns 0.18s ease;
}

.sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  background: var(--rx-c-255-255-255-1000);
  border-right: 1px solid var(--line);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rx-c-248-250-252-1000);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 14px;
  font-weight: 800;
}

.nav-tab.active {
  background: var(--panel-soft);
  color: var(--blue);
  border-color: var(--rx-c-199-215-254-1000);
}

@media (min-width: 981px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 82px 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    align-items: center;
    gap: 18px;
    padding: 18px 12px;
  }

  .app-shell.sidebar-collapsed .sidebar-head {
    width: 100%;
    display: grid;
    justify-items: center;
  }

  .app-shell.sidebar-collapsed .brand-text,
  .app-shell.sidebar-collapsed .session-card span,
  .app-shell.sidebar-collapsed .session-card strong,
  .app-shell.sidebar-collapsed #logoutBtn {
    display: none;
  }

  .app-shell.sidebar-collapsed .brand-lockup.compact {
    justify-content: center;
  }

  .app-shell.sidebar-collapsed .nav-tabs {
    width: 100%;
  }

  .app-shell.sidebar-collapsed .nav-tab {
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    text-align: center;
    font-size: 0;
  }

  .app-shell.sidebar-collapsed .nav-tab::before {
    content: attr(data-short);
    color: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .app-shell.sidebar-collapsed .session-card {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .session-card::before {
    content: "RX";
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
  }
}

/* =====================================================================
   V1.39.0 PROFESSIONAL FULL-PORTRAIT DESIGNER HERO
   ===================================================================== */
.designer-game-hub {
  grid-template-columns: clamp(300px, 28vw, 410px) minmax(0, 1fr);
  grid-template-areas: "portrait core";
  gap: clamp(26px, 3vw, 54px);
  min-height: 440px;
  padding: 0 clamp(28px, 3vw, 52px) 0 0;
  background:
    radial-gradient(560px 340px at 10% 28%, var(--game-accent-soft), transparent 72%),
    radial-gradient(520px 320px at 92% 12%, var(--rx-c-79-70-229-280), transparent 72%),
    linear-gradient(135deg, var(--rx-c-6-21-45-1000), var(--rx-c-11-37-72-1000) 58%, var(--rx-c-17-29-77-1000));
}

.designer-player-portrait {
  min-width: 0;
  min-height: 440px;
  align-self: stretch;
  align-content: stretch;
  justify-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 23px 0 0 23px;
}

.designer-player-portrait::before {
  display: none;
}

.designer-player-portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 64%, var(--rx-c-8-27-55-1000) 100%),
    linear-gradient(0deg, var(--rx-c-6-21-45-800), transparent 24%);
}

.designer-avatar-ring {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
}

.designer-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(1.04) contrast(1.03);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.designer-game-hub:hover .designer-avatar-ring img {
  transform: scale(1.018);
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

.designer-player-portrait > b {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  margin: 0;
  backdrop-filter: blur(12px);
}

.designer-player-core {
  align-self: center;
  padding-block: 34px;
}

.designer-player-title-row h2 {
  font-size: clamp(40px, 4vw, 62px);
}

.designer-player-title-row > strong {
  font-size: clamp(30px, 2.8vw, 46px);
}

.designer-game-intro {
  max-width: 760px;
  margin-block: 18px 24px;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
}

.designer-power-stats {
  gap: 12px;
  margin-top: 24px;
}

.designer-power-stats > div {
  min-height: 82px;
  padding: 14px;
}

.designer-power-stats span {
  font-size: 25px;
}

.designer-power-stats strong {
  font-size: 24px;
}

.designer-power-stats small {
  font-size: 10px;
}

@media (max-width: 1100px) {
  .designer-game-hub {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    min-height: 380px;
    padding-right: 24px;
  }

  .designer-player-portrait {
    min-height: 380px;
  }

  .designer-power-stats {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

@media (max-width: 760px) {
  .designer-game-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "core";
    gap: 0;
    padding: 0;
    text-align: left;
  }

  .designer-player-portrait {
    min-height: clamp(390px, 118vw, 560px);
    border-radius: 23px 23px 0 0;
  }

  .designer-player-portrait::after {
    background: linear-gradient(0deg, var(--rx-c-8-27-55-1000) 0%, transparent 28%);
  }

  .designer-avatar-ring {
    width: 100%;
    height: 100%;
  }

  .designer-avatar-ring img {
    border-radius: 0;
    object-position: center 22%;
  }

  .designer-player-core {
    padding: 24px 20px 28px;
  }

  .designer-player-title-row {
    flex-direction: row;
  }

  .designer-game-intro {
    margin-inline: 0;
  }
}

/* Final process timeline dark-theme override. */
.process-timeline-head p,
.process-timeline-card time,
.process-timeline-card footer span {
  color: var(--rx-c-159-178-204-1000);
}

.process-timeline-head > span {
  border-color: var(--rx-c-163-230-53-280);
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

.process-timeline::before {
  background: linear-gradient(180deg, var(--rx-c-34-211-238-820), var(--rx-c-163-230-53-680));
}

.process-timeline-dot span {
  border-color: var(--rx-c-34-211-238-420);
  background: var(--rx-c-34-211-238-160);
  color: var(--rx-c-165-243-252-1000);
  box-shadow: 0 0 18px var(--rx-c-34-211-238-200);
}

.process-timeline-card {
  border-color: var(--rx-c-103-232-249-130);
  background: var(--rx-c-21-47-82-720);
}

.process-timeline-card small {
  color: var(--rx-c-103-232-249-1000);
}

.process-timeline-card em {
  background: var(--rx-c-251-191-36-130);
  color: var(--rx-c-253-230-138-1000);
}

.process-status-route strong {
  background: var(--rx-c-34-211-238-120);
  color: var(--rx-c-223-250-254-1000);
}

.process-status-route b {
  color: var(--rx-c-163-230-53-1000);
}

.process-timeline-card footer p {
  color: var(--rx-c-219-234-254-1000);
}

.process-timeline-empty {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-21-47-82-550);
  color: var(--rx-c-159-178-204-1000);
}

/* Process timeline clarity and urgency pass. */
.process-timeline-block {
  border-color: var(--rx-c-103-232-249-240) !important;
  background: var(--rx-c-8-24-48-960) !important;
}

.process-timeline-head h4 {
  color: var(--rx-c-255-255-255-1000) !important;
}

.process-timeline-head p {
  color: var(--rx-c-219-234-254-1000) !important;
  font-size: 13px;
  font-weight: 800;
}

.process-timeline-card {
  border-color: var(--rx-c-103-232-249-300) !important;
  background: linear-gradient(145deg, var(--rx-c-18-52-91-960), var(--rx-c-10-31-61-980)) !important;
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-50), 0 14px 30px var(--rx-c-0-0-0-180);
}

.process-timeline-card small {
  color: var(--rx-c-103-232-249-1000) !important;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.07em;
}

.process-timeline-card time {
  color: var(--rx-c-224-242-254-1000) !important;
  font-size: 12px;
  font-weight: 950;
}

.process-status-route {
  gap: 8px;
}

.process-status-route strong {
  border: 1px solid var(--rx-c-103-232-249-280);
  background: var(--rx-c-34-211-238-160) !important;
  color: var(--rx-c-255-255-255-1000) !important;
  font-size: 12px;
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-60);
}

.process-status-route b {
  color: var(--rx-c-190-242-100-1000) !important;
  font-size: 14px;
  font-weight: 1000;
}

.process-timeline-card footer span {
  color: var(--rx-c-226-232-240-1000) !important;
  font-size: 12px;
  font-weight: 900;
}

.process-timeline-card footer p {
  color: var(--rx-c-255-255-255-1000) !important;
  font-size: 13px;
  font-weight: 850;
}

.process-timeline-card em {
  border: 1px solid var(--rx-c-251-191-36-420);
  background: var(--rx-c-251-191-36-180) !important;
  color: var(--rx-c-254-243-199-1000) !important;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.process-timeline-row.urgent .process-timeline-card {
  border-color: var(--rx-c-248-113-113-780) !important;
  background: linear-gradient(145deg, var(--rx-c-84-24-38-960), var(--rx-c-40-20-43-980)) !important;
  box-shadow: 0 0 0 1px var(--rx-c-248-113-113-220), 0 0 24px var(--rx-c-248-113-113-160), inset 0 1px 0 var(--rx-c-255-255-255-60);
}

.process-timeline-row.urgent .process-timeline-dot span {
  border-color: var(--rx-c-248-113-113-720) !important;
  background: var(--rx-c-248-113-113-180) !important;
  color: var(--rx-c-254-202-202-1000) !important;
  box-shadow: 0 0 20px var(--rx-c-248-113-113-280);
}

.process-timeline-card em.urgent {
  border-color: var(--rx-c-252-165-165-1000) !important;
  background: var(--rx-c-239-68-68-1000) !important;
  color: var(--rx-c-255-255-255-1000) !important;
  box-shadow: 0 0 18px var(--rx-c-239-68-68-280);
}

.process-timeline-row.urgent .process-status-route strong {
  border-color: var(--rx-c-248-113-113-480);
  background: var(--rx-c-248-113-113-180) !important;
}

/* Process timeline in the dark command-center theme. */
.process-timeline-head p,
.process-timeline-card time,
.process-timeline-card footer span {
  color: var(--rx-c-159-178-204-1000);
}

.process-timeline-head > span {
  border-color: var(--rx-c-163-230-53-280);
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

.process-timeline::before {
  background: linear-gradient(180deg, var(--rx-c-34-211-238-820), var(--rx-c-163-230-53-680));
}

.process-timeline-dot span {
  border-color: var(--rx-c-34-211-238-420);
  background: var(--rx-c-34-211-238-160);
  color: var(--rx-c-165-243-252-1000);
  box-shadow: 0 0 18px var(--rx-c-34-211-238-200);
}

.process-timeline-card {
  border-color: var(--rx-c-103-232-249-130);
  background: var(--rx-c-21-47-82-720);
}

.process-timeline-card small {
  color: var(--rx-c-103-232-249-1000);
}

.process-timeline-card em {
  background: var(--rx-c-251-191-36-130);
  color: var(--rx-c-253-230-138-1000);
}

.process-status-route strong {
  background: var(--rx-c-34-211-238-120);
  color: var(--rx-c-223-250-254-1000);
}

.process-status-route b {
  color: var(--rx-c-163-230-53-1000);
}

.process-timeline-card footer p {
  color: var(--rx-c-219-234-254-1000);
}

.process-timeline-empty {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-21-47-82-550);
  color: var(--rx-c-159-178-204-1000);
}

/* =====================================================================
   V1.41.1 CONTAINER-AWARE DESIGNER HERO RESPONSIVENESS
   Kept at the end so it wins over legacy responsive declarations above.
   ===================================================================== */
.designer-game-hub {
  container-name: designer-hero;
  container-type: inline-size;
  grid-template-columns: clamp(190px, 26%, 390px) minmax(0, 1fr);
  grid-template-areas: "portrait core";
  gap: clamp(18px, 2vw, 38px);
  min-width: 0;
  min-height: 470px;
  padding: 0 clamp(18px, 2vw, 38px) 0 0;
}

.designer-player-portrait {
  width: 100%;
  min-width: 0;
}

.designer-player-core {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  grid-template-areas: none;
  grid-template-rows: none;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
  padding-block: 26px;
}

.designer-score-stack {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.designer-score-stack .designer-player-title-row,
.designer-score-stack .designer-monthly-approved,
.designer-player-core .designer-approval-chart {
  grid-area: auto;
  min-width: 0;
}

.designer-score-stack .designer-player-title-row {
  align-self: auto;
}

.designer-score-stack .designer-player-title-row h2 {
  max-width: 100%;
  font-size: clamp(34px, 4.2cqi, 62px);
  overflow-wrap: anywhere;
}

.designer-score-stack .designer-monthly-approved {
  width: 100%;
  align-self: auto;
}

.designer-score-stack .designer-monthly-approved > strong {
  width: fit-content;
  max-width: 100%;
  font-size: clamp(112px, 18cqi, 245px);
  line-height: 0.78;
}

.designer-player-core .designer-approval-chart {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.designer-player-core .designer-approval-plot,
.designer-player-core .designer-approval-stage,
.designer-player-core .designer-approval-bars {
  max-width: 100%;
}

@container designer-hero (max-width: 1000px) {
  .designer-player-core {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 22px;
  }

  .designer-score-stack {
    gap: 8px;
  }

  .designer-score-stack .designer-player-title-row h2 {
    font-size: clamp(30px, 5.4cqi, 48px);
  }

  .designer-score-stack .designer-monthly-approved > strong {
    font-size: clamp(104px, 20cqi, 168px);
  }

  .designer-player-core .designer-approval-chart {
    padding-top: 2px;
  }

  .designer-player-core .designer-approval-y-axis,
  .designer-player-core .designer-approval-stage {
    height: 220px;
  }
}

@container designer-hero (max-width: 620px) {
  .designer-player-core {
    padding-block: 18px;
  }

  .designer-score-stack {
    justify-items: center;
  }

  .designer-score-stack .designer-player-title-row h2 {
    font-size: clamp(28px, 7cqi, 40px);
  }

  .designer-score-stack .designer-monthly-approved > strong {
    font-size: clamp(94px, 24cqi, 138px);
  }

  .designer-player-core .designer-approval-chart figcaption {
    margin-left: 34px;
  }

  .designer-player-core .designer-approval-plot {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 6px;
  }

  .designer-player-core .designer-approval-y-axis,
  .designer-player-core .designer-approval-stage {
    height: 205px;
  }

  .designer-player-core .designer-approval-axis-title {
    margin-left: 33px;
  }
}

@media (max-width: 760px) {
  .designer-game-hub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "core";
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .designer-player-core {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 18px 30px;
  }

  .designer-score-stack {
    justify-items: center;
  }

  .designer-score-stack .designer-player-title-row h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .designer-score-stack .designer-monthly-approved > strong {
    font-size: clamp(120px, 40vw, 184px);
  }
}

/* =====================================================================
   V1.41.0 APPROVED PAGES BY DATE — CINEMATIC 3D BARS
   ===================================================================== */
.designer-game-hub {
  min-height: 470px;
}

.designer-player-core {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(250px, 0.68fr) minmax(430px, 1.32fr);
  grid-template-areas:
    "player-title approval-chart"
    "approved-total approval-chart";
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: clamp(34px, 4vw, 72px);
  row-gap: 14px;
}

.designer-player-title-row {
  grid-area: player-title;
  align-self: end;
}

.designer-monthly-approved {
  grid-area: approved-total;
  align-self: start;
}

.designer-monthly-approved > strong {
  font-size: clamp(142px, 14vw, 245px);
}

.designer-approval-chart {
  grid-area: approval-chart;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px 2px 4px;
  color: var(--rx-c-255-255-255-1000);
  perspective: 900px;
}

.designer-approval-chart figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px 42px;
  letter-spacing: 0.12em;
}

.designer-approval-chart figcaption span {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 1000;
}

.designer-approval-chart figcaption strong {
  color: var(--rx-c-163-230-53-1000);
  font-size: clamp(10px, 0.82vw, 13px);
  font-weight: 1000;
}

.designer-approval-plot {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.designer-approval-y-axis {
  height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0 27px;
  color: var(--rx-c-191-219-254-720);
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.designer-approval-stage {
  position: relative;
  min-width: 0;
  height: 270px;
  isolation: isolate;
  transform: rotateX(0.6deg);
  transform-origin: bottom center;
}

.designer-approval-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 27px;
  background:
    radial-gradient(ellipse at 50% 102%, var(--rx-c-34-211-238-180), transparent 62%),
    linear-gradient(90deg, transparent, var(--rx-c-103-232-249-25) 50%, transparent);
  pointer-events: none;
}

.designer-approval-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rx-c-34-211-238-220), var(--rx-c-103-232-249-1000) 38%, var(--rx-c-163-230-53-1000) 76%, var(--rx-c-163-230-53-220));
  box-shadow: 0 0 9px var(--rx-c-34-211-238-800), 0 0 22px var(--rx-c-163-230-53-240);
  pointer-events: none;
}

.designer-approval-grid {
  position: absolute;
  z-index: -1;
  inset: 5px 0 26px;
  border-left: 1px solid var(--rx-c-103-232-249-200);
  background: repeating-linear-gradient(
    to bottom,
    var(--rx-c-125-211-252-150) 0,
    var(--rx-c-125-211-252-150) 1px,
    transparent 1px,
    transparent 25%
  );
  mask-image: linear-gradient(90deg, var(--rx-c-0-0-0-900), var(--rx-c-0-0-0-250));
}

.designer-approval-bars {
  position: absolute;
  z-index: 2;
  inset: 5px 0 27px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(4px, 1fr));
  gap: clamp(2px, 0.32vw, 6px);
}

.designer-approval-bar-column {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  outline: none;
}

.designer-approval-bar {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: min(68%, 18px);
  min-width: 5px;
  height: max(3px, calc(var(--bar-height) * 1%));
  border: 1px solid var(--rx-c-207-250-254-720);
  border-bottom: 0;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, var(--rx-c-8-145-178-1000) 0%, var(--rx-c-34-211-238-1000) 34%, var(--rx-c-163-230-53-1000) 76%, var(--rx-c-234-255-184-1000) 100%);
  box-shadow:
    0 0 8px var(--rx-c-34-211-238-560),
    0 0 20px var(--rx-c-163-230-53-180),
    inset 2px 0 2px var(--rx-c-255-255-255-260),
    inset -3px 0 4px var(--rx-c-8-47-73-500);
  transform-origin: center bottom;
  animation: designer-bar-rise 0.92s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(90ms + (var(--bar-index) * 24ms));
}

.designer-approval-bar::before {
  content: "";
  position: absolute;
  top: -5px;
  right: -1px;
  left: 2px;
  height: 6px;
  border: 1px solid var(--rx-c-236-254-255-820);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(135deg, var(--rx-c-236-252-203-1000), var(--rx-c-103-232-249-1000) 62%, var(--rx-c-14-116-144-1000));
  transform: skewX(-28deg);
  transform-origin: bottom left;
  box-shadow: 0 -2px 8px var(--rx-c-163-230-53-350);
}

.designer-approval-bar::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -5px;
  bottom: 0;
  width: 5px;
  border-radius: 0 2px 1px 0;
  background: linear-gradient(180deg, var(--rx-c-34-211-238-1000), var(--rx-c-7-89-133-1000) 78%);
  clip-path: polygon(0 4px, 100% 0, 100% 100%, 0 100%);
  box-shadow: 2px 0 5px var(--rx-c-2-8-23-480);
}

.designer-approval-bar > i {
  position: absolute;
  inset: 0 auto 0 14%;
  width: 18%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--rx-c-255-255-255-440);
  box-shadow: 0 0 5px var(--rx-c-255-255-255-500);
}

.designer-approval-bar.is-zero {
  opacity: 0.18;
  border-color: var(--rx-c-103-232-249-350);
  background: var(--rx-c-22-78-99-1000);
  box-shadow: 0 0 5px var(--rx-c-34-211-238-240);
}

.designer-approval-bar.is-zero::before,
.designer-approval-bar.is-zero::after,
.designer-approval-bar.is-zero > i {
  opacity: 0.25;
}

.designer-approval-date {
  position: absolute;
  bottom: -24px;
  color: var(--rx-c-186-230-253-740);
  font-size: clamp(7px, 0.56vw, 9px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.designer-approval-tooltip {
  position: absolute;
  z-index: 12;
  bottom: calc(7px + max(3px, calc(var(--bar-height) * 1%)));
  left: 50%;
  min-width: 86px;
  display: grid;
  justify-items: center;
  gap: 1px;
  opacity: 0;
  border: 1px solid var(--rx-c-163-230-53-580);
  border-radius: 10px;
  padding: 7px 9px;
  background: var(--rx-c-3-18-41-960);
  box-shadow: 0 12px 26px var(--rx-c-2-8-23-580), 0 0 16px var(--rx-c-34-211-238-220);
  transform: translate(-50%, 8px) scale(0.96);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.designer-approval-tooltip strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 17px;
  line-height: 1;
}

.designer-approval-tooltip small {
  color: var(--rx-c-165-243-252-1000);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.designer-approval-bar-column:hover,
.designer-approval-bar-column:focus-visible {
  z-index: 9;
}

.designer-approval-bar-column:hover .designer-approval-bar,
.designer-approval-bar-column:focus-visible .designer-approval-bar {
  filter: brightness(1.22) saturate(1.12);
  transform: translateY(-3px) scaleX(1.08);
}

.designer-approval-bar-column:hover .designer-approval-tooltip,
.designer-approval-bar-column:focus-visible .designer-approval-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.designer-approval-bar-column:nth-child(-n + 2) .designer-approval-tooltip {
  left: 0;
  transform: translate(0, 8px) scale(0.96);
  transform-origin: bottom left;
}

.designer-approval-bar-column:nth-child(-n + 2):hover .designer-approval-tooltip,
.designer-approval-bar-column:nth-child(-n + 2):focus-visible .designer-approval-tooltip {
  transform: translate(0, 0) scale(1);
}

.designer-approval-bar-column:nth-last-child(-n + 2) .designer-approval-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 8px) scale(0.96);
  transform-origin: bottom right;
}

.designer-approval-bar-column:nth-last-child(-n + 2):hover .designer-approval-tooltip,
.designer-approval-bar-column:nth-last-child(-n + 2):focus-visible .designer-approval-tooltip {
  transform: translate(0, 0) scale(1);
}

.designer-approval-axis-title {
  display: flex;
  justify-content: space-between;
  margin: 5px 0 0 42px;
  color: var(--rx-c-165-243-252-660);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.designer-approval-axis-title strong {
  color: var(--rx-c-163-230-53-1000);
}

@keyframes designer-bar-rise {
  0% { opacity: 0; transform: scaleY(0.03); filter: brightness(1.8); }
  72% { opacity: 1; transform: scaleY(1.06); filter: brightness(1.25); }
  100% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
}

@media (max-width: 1180px) {
  .designer-player-core {
    grid-template-columns: minmax(190px, 0.54fr) minmax(350px, 1.46fr);
    column-gap: 24px;
  }

  .designer-monthly-approved > strong {
    font-size: clamp(120px, 15vw, 190px);
  }

  .designer-approval-y-axis,
  .designer-approval-stage {
    height: 245px;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .designer-game-hub {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .designer-player-core {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player-title"
      "approved-total"
      "approval-chart";
    row-gap: 10px;
    padding-block: 24px;
  }

  .designer-player-title-row,
  .designer-monthly-approved {
    justify-self: center;
  }

  .designer-monthly-approved > strong {
    font-size: 130px;
  }

  .designer-approval-chart {
    padding-top: 4px;
  }
}

@media (max-width: 760px) {
  .designer-player-core {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player-title"
      "approved-total"
      "approval-chart";
    padding: 28px 18px 32px;
  }

  .designer-player-title-row,
  .designer-monthly-approved {
    justify-self: center;
  }

  .designer-player-title-row h2 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .designer-monthly-approved > strong {
    font-size: clamp(126px, 42vw, 190px);
  }

  .designer-approval-chart {
    padding-top: 12px;
  }

  .designer-approval-chart figcaption {
    margin-left: 36px;
  }

  .designer-approval-plot {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  .designer-approval-y-axis,
  .designer-approval-stage {
    height: 232px;
  }

  .designer-approval-axis-title {
    margin-left: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .designer-approval-bar {
    animation: none;
  }
}

/* =====================================================================
   V1.40.0 MONTHLY APPROVED-PAGES FOCUS
   ===================================================================== */
.designer-player-core {
  display: grid;
  align-content: center;
  gap: 24px;
}

.designer-player-title-row {
  justify-content: flex-start;
}

.designer-monthly-approved {
  position: relative;
  isolation: isolate;
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid var(--rx-c-163-230-53-580);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(360px 220px at 88% 10%, var(--rx-c-163-230-53-180), transparent 72%),
    linear-gradient(135deg, var(--rx-c-8-47-73-920), var(--rx-c-15-31-70-960));
  box-shadow:
    0 24px 50px var(--rx-c-2-8-23-320),
    0 0 34px var(--rx-c-163-230-53-100),
    inset 0 1px 0 var(--rx-c-255-255-255-80);
}

.designer-monthly-approved::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  aspect-ratio: 1;
  right: -105px;
  bottom: -150px;
  border: 1px solid var(--rx-c-103-232-249-180);
  border-radius: 50%;
  box-shadow: 0 0 0 36px var(--rx-c-79-70-229-60);
}

.designer-monthly-approved > p {
  margin: 0;
  color: var(--rx-c-163-230-53-1000);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 1000;
  letter-spacing: 0.15em;
}

.designer-monthly-approved > div {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-block: 8px 10px;
}

.designer-monthly-approved strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(92px, 10vw, 154px);
  font-weight: 1000;
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 2px var(--game-accent),
    0 0 34px var(--rx-c-163-230-53-220);
}

.designer-monthly-approved > div span {
  margin-bottom: 12px;
  color: var(--rx-c-103-232-249-1000);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.designer-monthly-approved > small {
  display: block;
  color: var(--rx-c-211-229-245-1000);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
}

@media (max-width: 760px) {
  .designer-player-core {
    gap: 18px;
  }

  .designer-monthly-approved {
    padding: 24px 20px;
  }

  .designer-monthly-approved strong {
    font-size: clamp(88px, 28vw, 126px);
  }

  .designer-monthly-approved > div span {
    margin-bottom: 8px;
    font-size: 20px;
  }
}

/* V1.40.1 — approved pages as one free-standing number */
.designer-monthly-approved {
  width: fit-content;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.designer-monthly-approved::after {
  display: none;
}

.designer-monthly-approved > strong {
  display: block;
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(150px, 18vw, 280px);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: -0.085em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 2px var(--game-accent),
    0 0 32px var(--rx-c-34-211-238-280),
    0 0 64px var(--rx-c-163-230-53-160);
}

@media (max-width: 760px) {
  .designer-monthly-approved > strong {
    font-size: clamp(132px, 43vw, 210px);
  }
}

.session-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rx-c-250-252-255-1000);
}

.session-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h2 {
  font-size: 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: var(--rx-c-236-253-245-1000);
  color: var(--rx-c-22-101-52-1000);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.error-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--rx-c-254-202-202-1000);
  border-radius: 8px;
  background: var(--rx-c-254-242-242-1000);
  color: var(--rx-c-153-27-27-1000);
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card,
.panel,
.order-card,
.alert-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px var(--rx-c-15-23-42-60);
}

.metric-card {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  text-align: left;
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 34px;
}

.metric-card em {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--blue);
}

.section-gap {
  margin-top: 14px;
}

.dashboard-month-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}

.dashboard-month-toolbar > div {
  display: grid;
  gap: 4px;
}

.dashboard-month-toolbar h3 {
  font-size: 20px;
}

.dashboard-month-toolbar > div > span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-month-control {
  width: min(240px, 100%);
  flex: 0 0 240px;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.analytics-panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.analytics-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
}

.analytics-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rx-c-125-211-252-420);
}

.analytics-panel-head h3,
.analytics-panel .chart-head h4 {
  margin: 0;
}

.analytics-panel-head h3 {
  font-size: 22px;
}

.analytics-panel-head > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.analytics-total-chip {
  min-width: 126px;
  display: grid;
  justify-items: end;
  gap: 1px;
  padding: 10px 13px;
  border: 1px solid var(--rx-c-14-165-233-240);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rx-c-224-242-254-780), var(--rx-c-255-255-255-520));
}

.analytics-total-chip strong {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.analytics-total-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analytics-grid,
.designer-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.chart-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--rx-c-103-184-226-460);
  border-radius: 14px;
  background:
    radial-gradient(420px 180px at 12% -16%, var(--rx-c-34-211-238-140), transparent 64%),
    linear-gradient(145deg, var(--rx-c-249-253-255-820), var(--rx-c-218-237-248-540));
  box-shadow:
    inset 0 1px 0 var(--rx-c-255-255-255-820),
    0 14px 34px var(--rx-c-15-76-112-90);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  animation: chart-card-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rx-c-34-211-238-760), var(--rx-c-99-102-241-620), transparent);
  opacity: 0.72;
}

.chart-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 190px;
  height: 190px;
  top: -125px;
  right: -70px;
  border: 1px solid var(--rx-c-56-189-248-200);
  border-radius: 50%;
  box-shadow: 0 0 0 22px var(--rx-c-99-102-241-25), 0 0 0 48px var(--rx-c-14-165-233-18);
  pointer-events: none;
}

.chart-card > * {
  position: relative;
  z-index: 1;
}

.chart-card:hover {
  transform: translateY(-2px);
  border-color: var(--rx-c-56-189-248-640);
  box-shadow:
    inset 0 1px 0 var(--rx-c-255-255-255-880),
    0 19px 42px var(--rx-c-15-76-112-140);
}

.analytics-panel .chart-card {
  min-height: 292px;
  padding: 18px;
}

.chart-head {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-head h4 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.chart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.chart-type-chip {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rx-c-2-132-199-180);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--rx-c-224-242-254-660);
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.bar-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 4px auto 0;
  overflow: visible;
  filter: saturate(92%);
}

.chart-track {
  fill: var(--rx-c-71-107-132-100);
  stroke: var(--rx-c-103-150-180-140);
  stroke-width: 0.75;
}

.chart-bar {
  transform-box: fill-box;
  transform-origin: left center;
  animation: chart-bar-reveal 760ms cubic-bezier(0.2, 0.78, 0.2, 1) var(--chart-delay, 100ms) both;
}

.chart-copy {
  animation: chart-copy-in 520ms ease-out var(--chart-delay, 120ms) both;
}

.chart-axis-label {
  fill: var(--rx-c-53-88-117-1000);
  font-size: 11px;
  font-weight: 800;
}

.chart-value {
  fill: var(--rx-c-11-32-56-1000);
  font-size: 11px;
  font-weight: 900;
}

.chart-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--rx-c-125-211-252-650);
  border-radius: 12px;
  background: var(--rx-c-240-249-255-440);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.donut-wrap {
  min-height: 205px;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
}

.donut-chart {
  width: 168px;
  height: 168px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  filter: saturate(90%) drop-shadow(0 12px 18px var(--rx-c-15-76-112-140));
  animation: donut-settle 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.donut-track {
  stroke: var(--rx-c-70-111-139-100);
}

.donut-segment {
  animation: donut-segment-in 620ms ease-out var(--chart-delay, 100ms) both;
}

.donut-total {
  fill: var(--ink);
  font-size: 27px;
  font-weight: 900;
}

.donut-caption {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donut-legend {
  display: grid;
  gap: 5px;
}

.donut-legend-row {
  min-width: 0;
  min-height: 25px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 3px 7px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  animation: chart-copy-in 460ms ease-out var(--chart-delay, 120ms) both;
}

.donut-legend-row:hover {
  background: var(--rx-c-224-242-254-520);
}

.donut-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.donut-legend-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-row strong {
  color: var(--ink);
  font-size: 11px;
}

.compact-chart {
  margin-bottom: 12px;
  padding: 12px 16px;
}

.compact-chart .bar-chart {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.panel-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header-line h3 {
  margin: 0;
}

.row-list {
  display: grid;
  gap: 8px;
}

.summary-row {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  background: var(--rx-c-248-250-252-1000);
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
}

.static-row {
  cursor: default;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 16px;
}

.panel h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.monthly-grid,
.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
  border-radius: 8px;
  background: var(--rx-c-248-250-252-1000);
  border: 1px solid var(--line);
}

.mini-stat strong {
  font-size: 22px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  margin-bottom: 14px;
}

.active-filter-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--rx-c-125-211-252-480);
  border-radius: 16px;
  background:
    radial-gradient(360px 150px at 2% -20%, var(--rx-c-34-211-238-120), transparent 64%),
    linear-gradient(155deg, var(--rx-c-255-255-255-620), var(--rx-c-224-244-255-340));
  box-shadow: 0 12px 30px var(--rx-c-3-105-161-100), inset 0 1px 0 var(--rx-c-255-255-255-720);
}

.active-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.active-filter-head h3,
.active-filter-head p {
  margin: 0;
}

.active-filter-head h3 {
  margin-top: 3px;
  font-size: 18px;
}

.active-filter-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--rx-c-14-165-233-220);
  border-radius: 999px;
  background: var(--rx-c-240-249-255-640);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-row button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
}

.filter-row button strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rx-c-125-211-252-200);
  color: var(--ink);
  font-size: 10px;
}

.filter-row button.selected {
  background: var(--panel-soft);
  border-color: var(--rx-c-199-215-254-1000);
  color: var(--blue);
}

.filter-row button.selected strong {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--rx-c-255-255-255-1000);
}

.active-status-tabs {
  margin-bottom: 0;
}

.designer-sheet-panel {
  padding: 0;
  overflow: hidden;
  border-color: var(--rx-c-186-230-253-1000);
  background:
    linear-gradient(180deg, var(--rx-c-240-253-255-1000) 0%, var(--rx-c-255-255-255-1000) 36%),
    var(--rx-c-255-255-255-1000);
}

.designer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--rx-c-186-230-253-1000);
  background: linear-gradient(135deg, var(--rx-c-236-254-255-1000), var(--rx-c-239-246-255-1000));
}

.designer-toolbar p {
  margin: 5px 0 0;
  color: var(--rx-c-15-118-110-1000);
  font-size: 13px;
  font-weight: 800;
}

.designer-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.designer-personal-tabs {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rx-c-186-230-253-1000);
  background: var(--rx-c-240-253-255-720);
}

.designer-personal-tabs button {
  min-width: 148px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 10px;
  background: var(--rx-c-255-255-255-1000);
  color: var(--rx-c-15-118-110-1000);
  font-size: 13px;
  font-weight: 900;
}

.designer-personal-tabs button strong {
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-3-105-161-1000);
  font-size: 12px;
}

.designer-personal-tabs button.selected {
  border-color: var(--rx-c-8-145-178-1000);
  background: linear-gradient(135deg, var(--rx-c-8-145-178-1000), var(--rx-c-37-99-235-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 10px 22px var(--rx-c-8-145-178-200);
}

.designer-personal-tabs button.selected strong {
  background: var(--rx-c-255-255-255-200);
  color: var(--rx-c-255-255-255-1000);
}

.designer-date-control {
  min-width: 210px;
  color: var(--rx-c-15-118-110-1000);
}

.designer-page-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
}

.designer-personal-board {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.designer-approved-summary {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.designer-approved-summary .designer-page-stat-hero {
  grid-column: auto;
  min-height: 74px;
  box-shadow: none;
}

.designer-approved-summary .designer-page-stat-hero strong {
  font-size: 30px;
}

.designer-page-stat {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-248-253-255-1000);
  padding: 12px;
}

.designer-page-stat.leader {
  background: var(--rx-c-236-254-255-1000);
  border-color: var(--rx-c-103-232-249-1000);
}

.designer-page-stat-hero {
  grid-column: span 2;
  min-height: 112px;
  background: linear-gradient(135deg, var(--rx-c-236-254-255-1000), var(--rx-c-239-246-255-1000));
  border-color: var(--rx-c-34-211-238-1000);
  box-shadow: 0 16px 34px var(--rx-c-8-145-178-130);
}

.designer-page-stat strong {
  color: var(--rx-c-15-23-42-1000);
  font-size: 24px;
}

.designer-page-stat-hero strong {
  color: var(--rx-c-14-116-144-1000);
  font-size: 46px;
  line-height: 1;
}

.designer-page-stat span {
  color: var(--rx-c-15-118-110-1000);
  font-size: 12px;
  font-weight: 900;
}

.designer-page-stat-hero span {
  font-size: 14px;
}

.designer-page-stat em {
  color: var(--rx-c-100-116-139-1000);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.designer-live-board,
.designer-eod-board,
.designer-month-board {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.designer-eod-board,
.designer-month-board {
  border-top: 1px solid var(--rx-c-186-230-253-1000);
  background: var(--rx-c-240-253-255-450);
}

.designer-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.designer-section-head h4 {
  margin: 0;
  color: var(--rx-c-15-23-42-1000);
  font-size: 16px;
}

.designer-section-head span,
.designer-section-head > strong {
  color: var(--rx-c-15-118-110-1000);
  font-size: 12px;
  font-weight: 900;
}

.designer-eod-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.designer-eod-header-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.designer-eod-filter-strip {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
}

.designer-month-control {
  min-width: 190px;
}

.designer-month-page-board {
  padding: 0;
}

.designer-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.designer-live-group {
  overflow: hidden;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  box-shadow: 0 10px 24px var(--rx-c-8-145-178-70);
}

.designer-live-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rx-c-224-242-254-1000);
  background: var(--rx-c-248-253-255-1000);
}

.designer-live-group-head strong {
  color: var(--rx-c-15-23-42-1000);
  font-size: 14px;
}

.designer-live-group-head span {
  color: var(--rx-c-14-116-144-1000);
  font-size: 12px;
  font-weight: 900;
}

.designer-live-orders {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}

.designer-live-order {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--rx-c-224-242-254-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  padding: 10px;
  text-align: left;
}

.designer-live-order-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.designer-live-order:hover {
  border-color: var(--rx-c-103-232-249-1000);
  background: var(--rx-c-236-254-255-1000);
}

.designer-live-order strong {
  color: var(--rx-c-15-23-42-1000);
  font-size: 13px;
}

.designer-live-order span {
  color: var(--rx-c-51-65-85-1000);
  font-size: 12px;
  line-height: 1.35;
}

.designer-live-order em {
  color: var(--rx-c-15-118-110-1000);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.designer-deadline-chip,
.designer-party-cell .designer-deadline-chip,
.designer-live-order .designer-deadline-chip,
.designer-eod-row .designer-deadline-chip {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--rx-c-220-38-38-130);
  color: var(--rx-c-185-28-28-1000);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.designer-live-order-title .designer-deadline-chip { flex: 0 0 auto; margin-top: 0; }
.designer-deadline-chip.on-time { background: var(--rx-c-22-163-74-130); color: var(--rx-c-21-128-61-1000); }
.designer-deadline-chip.due-today { background: var(--rx-c-217-119-6-160); color: var(--rx-c-180-83-9-1000); }
.designer-deadline-chip.missing { background: var(--rx-c-100-116-139-140); color: var(--rx-c-71-85-105-1000); }

.designer-eod-list {
  display: grid;
  gap: 10px;
}

.designer-eod-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(150px, 1fr) minmax(118px, 0.8fr) minmax(220px, 1.4fr) minmax(70px, 0.45fr) minmax(112px, 0.75fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  padding: 12px;
  text-align: left;
  box-shadow: 0 10px 24px var(--rx-c-8-145-178-60);
}

.designer-eod-row:hover {
  border-color: var(--rx-c-103-232-249-1000);
  background: var(--rx-c-236-254-255-1000);
}

.designer-eod-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.designer-eod-row span {
  color: var(--rx-c-100-116-139-1000);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.designer-eod-row strong {
  overflow-wrap: anywhere;
  color: var(--rx-c-15-23-42-1000);
  font-size: 12px;
  line-height: 1.35;
}

.designer-conversion-board {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.designer-conversion-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.designer-conversion-head h4 {
  margin: 0;
  color: var(--rx-c-15-23-42-1000);
  font-size: 16px;
}

.designer-conversion-head span {
  color: var(--rx-c-15-118-110-1000);
  font-size: 12px;
  font-weight: 900;
}

.designer-conversion-list {
  display: grid;
  gap: 10px;
}

.designer-conversion-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(170px, 1.5fr) repeat(3, minmax(74px, 0.7fr));
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  padding: 12px;
  box-shadow: 0 10px 24px var(--rx-c-8-145-178-70);
}

.designer-conversion-row.leader {
  border-color: var(--rx-c-34-211-238-1000);
  background: linear-gradient(135deg, var(--rx-c-236-254-255-1000), var(--rx-c-248-253-255-1000));
}

.designer-conversion-name {
  display: grid;
  gap: 3px;
}

.designer-conversion-name span,
.designer-conversion-track small,
.designer-conversion-score span {
  color: var(--rx-c-100-116-139-1000);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.designer-conversion-name strong {
  color: var(--rx-c-15-23-42-1000);
  font-size: 15px;
}

.designer-conversion-track {
  display: grid;
  gap: 7px;
}

.designer-conversion-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rx-c-224-242-254-1000);
}

.designer-conversion-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rx-c-6-182-212-1000), var(--rx-c-34-197-94-1000));
}

.designer-conversion-score {
  display: grid;
  gap: 2px;
}

.designer-conversion-score strong {
  color: var(--rx-c-14-116-144-1000);
  font-size: 20px;
  line-height: 1.1;
}

.designer-worklist {
  display: grid;
  padding: 16px;
}

.designer-grid-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  box-shadow: 0 12px 30px var(--rx-c-8-145-178-80);
}

.designer-table {
  width: 100%;
  min-width: 1665px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--rx-c-255-255-255-1000);
  table-layout: fixed;
}

.designer-approved-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--rx-c-255-255-255-1000);
  table-layout: fixed;
}

.designer-approved-table th,
.designer-approved-table td {
  vertical-align: middle;
  border-right: 1px solid var(--rx-c-219-234-254-1000);
  border-bottom: 1px solid var(--rx-c-219-234-254-1000);
  padding: 12px;
  color: var(--rx-c-51-65-85-1000);
  font-size: 13px;
  line-height: 1.42;
}

.designer-approved-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--rx-c-224-250-255-1000), var(--rx-c-239-246-255-1000));
  color: var(--rx-c-15-118-110-1000);
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.designer-approved-table th:nth-child(1),
.designer-approved-table td:nth-child(1) { width: 205px; }
.designer-approved-table th:nth-child(2),
.designer-approved-table td:nth-child(2) { width: 145px; text-align: center; }
.designer-approved-table th:nth-child(3),
.designer-approved-table td:nth-child(3) { width: 140px; text-align: center; }
.designer-approved-table th:nth-child(4),
.designer-approved-table td:nth-child(4) { width: 90px; text-align: center; }
.designer-approved-table th:nth-child(5),
.designer-approved-table td:nth-child(5) { width: 330px; }
.designer-approved-table th:nth-child(6),
.designer-approved-table td:nth-child(6) { width: 165px; text-align: center; }
.designer-approved-table th:nth-child(7),
.designer-approved-table td:nth-child(7) { width: 185px; text-align: center; }

.designer-approved-table tr:last-child td {
  border-bottom: 0;
}

.designer-approved-table th:last-child,
.designer-approved-table td:last-child {
  border-right: 0;
}

.designer-approved-party strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--rx-c-15-23-42-1000);
  font-size: 15px;
  font-weight: 900;
}

.designer-approved-party span {
  display: block;
  margin-top: 4px;
  color: var(--rx-c-100-116-139-1000);
  font-size: 11px;
  font-weight: 800;
}

.designer-approved-by,
.designer-approved-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--rx-c-204-251-241-1000);
  color: var(--rx-c-15-118-110-1000);
  font-size: 11px;
  font-weight: 900;
}

.designer-approved-status {
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-3-105-161-1000);
}

.designer-approved-pages {
  color: var(--rx-c-14-116-144-1000) !important;
  font-size: 18px !important;
  font-weight: 900;
}

.designer-approved-open {
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--rx-c-8-145-178-1000);
  background: var(--rx-c-8-145-178-1000);
  color: var(--rx-c-255-255-255-1000);
  font-size: 11px;
  font-weight: 900;
}

.designer-approved-actions {
  display: grid;
  gap: 7px;
}

.designer-approved-actions button {
  width: 100%;
}

.designer-approved-print-bind {
  min-height: 38px;
  padding: 0 10px;
  border-color: var(--rx-c-124-58-237-1000);
  background: linear-gradient(135deg, var(--rx-c-124-58-237-1000), var(--rx-c-37-99-235-1000));
  color: var(--rx-c-255-255-255-1000);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.designer-table th,
.designer-table td {
  vertical-align: middle;
  border-right: 1px solid var(--rx-c-219-234-254-1000);
  border-bottom: 1px solid var(--rx-c-219-234-254-1000);
  padding: 10px 12px;
  color: var(--rx-c-51-65-85-1000);
  font-size: 13px;
  line-height: 1.42;
}

.designer-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--rx-c-224-250-255-1000), var(--rx-c-239-246-255-1000));
  color: var(--rx-c-15-118-110-1000);
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.designer-table th:nth-child(1),
.designer-table td:nth-child(1) {
  width: 190px;
}

.designer-table th:nth-child(2),
.designer-table td:nth-child(2) {
  width: 132px;
  text-align: center;
}

.designer-table th:nth-child(3),
.designer-table td:nth-child(3) {
  width: 145px;
  text-align: center;
}

.designer-table th:nth-child(4),
.designer-table td:nth-child(4) {
  width: 310px;
  vertical-align: top;
  text-align: left;
}

.designer-table th:nth-child(5),
.designer-table td:nth-child(5) {
  width: 160px;
}

.designer-table th:nth-child(6),
.designer-table td:nth-child(6) {
  width: 240px;
  vertical-align: middle;
}

.designer-table th:nth-child(7),
.designer-table td:nth-child(7) {
  width: 112px;
  text-align: center;
}

.designer-table th:nth-child(8),
.designer-table td:nth-child(8) {
  width: 210px;
  vertical-align: middle;
}

.designer-table th:nth-child(9),
.designer-table td:nth-child(9) {
  width: 166px;
  text-align: center;
}

.designer-table tr:last-child td {
  border-bottom: 0;
}

.designer-table th:last-child,
.designer-table td:last-child {
  border-right: 0;
}

.designer-table select,
.designer-table input,
.designer-table textarea {
  width: 100%;
  height: 42px;
  min-height: 42px;
  min-width: 145px;
  border-color: var(--rx-c-186-230-253-1000);
  border-radius: 6px;
  background: var(--rx-c-251-253-255-1000);
  color: var(--rx-c-15-23-42-1000);
  font-size: 13px;
  outline: none;
}

.designer-status-select {
  position: relative;
  width: 100%;
}

.designer-status-select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--rx-c-15-118-110-1000);
  border-bottom: 2px solid var(--rx-c-15-118-110-1000);
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}

.designer-status-select select {
  appearance: none;
  min-width: 0;
  height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--rx-c-125-211-252-1000);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--rx-c-248-253-255-1000), var(--rx-c-236-254-255-1000));
  color: var(--rx-c-15-23-42-1000);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-align-last: left;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-900);
}

.designer-status-select select:focus {
  border-color: var(--rx-c-8-145-178-1000);
  box-shadow: 0 0 0 3px var(--rx-c-8-145-178-140);
}

.designer-table input {
  min-width: 96px;
  text-align: center;
  font-weight: 800;
}

.designer-table textarea {
  height: 42px;
  min-height: 42px;
  padding: 9px 10px;
  line-height: 1.35;
}

.designer-list-shell {
  overflow-x: auto;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
  box-shadow: 0 12px 30px var(--rx-c-8-145-178-80);
}

.designer-list-head,
.designer-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 150px minmax(260px, 1.25fr) 160px minmax(190px, 0.9fr) minmax(210px, 1fr) 150px;
  min-width: 1420px;
}

.designer-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--rx-c-224-250-255-1000), var(--rx-c-239-246-255-1000));
  border-bottom: 1px solid var(--rx-c-186-230-253-1000);
}

.designer-list-head span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--rx-c-15-118-110-1000);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.designer-list-row {
  align-items: stretch;
  border-bottom: 1px solid var(--rx-c-224-242-254-1000);
}

.designer-list-row:last-child {
  border-bottom: 0;
}

.designer-list-row > * {
  border-right: 1px solid var(--rx-c-224-242-254-1000);
  border-radius: 0;
}

.designer-list-row > *:last-child {
  border-right: 0;
}

.designer-party-cell,
.designer-plain-cell,
.designer-job-text,
.designer-list-actions {
  color: var(--rx-c-51-65-85-1000);
  font-size: 13px;
}

.designer-party-cell strong {
  display: block;
  color: var(--rx-c-15-23-42-1000);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.designer-party-cell span {
  display: none;
  min-height: 24px;
  align-items: center;
  margin-top: 7px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--rx-c-204-251-241-1000);
  color: var(--rx-c-15-118-110-1000);
  font-size: 10px;
  font-weight: 900;
}

.designer-job-text {
  padding-top: 14px !important;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--rx-c-31-41-55-1000);
  font-size: 12px;
  font-weight: 700;
}

.mobile-label {
  display: none;
}

.designer-list-row select,
.designer-list-row textarea {
  width: 100%;
  min-height: 100%;
  border: 0;
  border-right: 1px solid var(--rx-c-224-242-254-1000);
  background: var(--rx-c-251-253-255-1000);
}

.designer-list-row textarea {
  min-height: 92px;
  padding: 12px;
  line-height: 1.4;
}

.designer-list-actions {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
}

.designer-list-actions span {
  color: var(--rx-c-100-116-139-1000);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.designer-job-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(180px, 0.65fr) minmax(260px, 1.35fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rx-c-186-230-253-1000);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-920);
  box-shadow: 0 12px 30px var(--rx-c-8-145-178-90);
}

.designer-job-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rx-c-219-234-254-1000);
}

.designer-job-head strong {
  display: block;
  color: var(--rx-c-15-23-42-1000);
  font-size: 21px;
  font-weight: 900;
}

.designer-job-head span {
  display: block;
  margin-top: 5px;
  color: var(--rx-c-15-118-110-1000);
  font-size: 13px;
  font-weight: 800;
}

.designer-status-chip {
  min-height: 30px;
  display: inline-flex !important;
  align-items: center;
  margin-top: 0 !important;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--rx-c-204-251-241-1000);
  color: var(--rx-c-15-118-110-1000) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.designer-job-detail {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--rx-c-224-242-254-1000);
  border-radius: 8px;
  background: var(--rx-c-248-253-255-1000);
}

.designer-job-detail span,
.designer-editor-grid label {
  color: var(--rx-c-15-118-110-1000);
  font-size: 12px;
  font-weight: 900;
}

.designer-job-detail strong {
  overflow-wrap: anywhere;
  color: var(--rx-c-15-23-42-1000);
}

.designer-job-detail p {
  margin: 0;
  color: var(--rx-c-51-65-85-1000);
  line-height: 1.45;
  white-space: pre-wrap;
}

.designer-job-detail.wide,
.designer-editor-grid,
.designer-job-actions {
  grid-column: 1 / -1;
}

.designer-editor-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(240px, 1fr);
  gap: 12px;
}

.designer-editor-grid label {
  display: grid;
  gap: 7px;
}

.designer-editor-grid textarea {
  min-height: 76px;
  line-height: 1.4;
}

.designer-editor-grid .wide-field textarea {
  min-height: 112px;
}

.designer-job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  color: var(--rx-c-100-116-139-1000);
  font-size: 12px;
  font-weight: 800;
}

.designer-job-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.designer-save {
  width: 94px;
  min-height: 36px;
  padding: 0 12px;
  background: var(--rx-c-8-145-178-1000);
  color: var(--rx-c-255-255-255-1000);
  border-color: var(--rx-c-8-145-178-1000);
  text-align: center;
}

.designer-empty {
  padding: 34px;
  text-align: center;
  color: var(--rx-c-15-118-110-1000);
  font-weight: 800;
  border: 1px dashed var(--rx-c-125-211-252-1000);
  border-radius: 8px;
  background: var(--rx-c-240-253-255-1000);
}

.count-line {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.orders-list,
.alerts-list {
  display: grid;
  gap: 10px;
}

.alerts-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.alerts-list-footer button {
  min-height: 38px;
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 560px) {
  .alerts-list-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.order-card {
  overflow: hidden;
  padding: 0;
}

.card-open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  text-align: left;
  border: 0;
  background: transparent;
}

.order-main {
  min-width: 0;
}

.order-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-title strong {
  font-size: 17px;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.order-details {
  margin: 10px 0 0;
  color: var(--rx-c-55-65-81-1000);
  line-height: 1.45;
}

.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.status-pill {
  background: var(--rx-c-239-246-255-1000);
  color: var(--rx-c-29-78-216-1000);
}

.priority-pill {
  background: var(--rx-c-248-250-252-1000);
  color: var(--rx-c-71-85-105-1000);
}

.priority-pill.urgent {
  background: var(--rx-c-254-242-242-1000);
  color: var(--red);
}

.priority-pill.high {
  background: var(--rx-c-255-251-235-1000);
  color: var(--amber);
}

.money-stack {
  min-width: 132px;
  display: grid;
  gap: 5px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
}

.money-stack strong {
  color: var(--ink);
  font-size: 18px;
}

.alert-card {
  overflow: hidden;
  padding: 0;
}

.alert-card.unread {
  border-color: var(--rx-c-191-219-254-1000);
  background: var(--rx-c-239-246-255-1000);
}

.alert-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.alert-card p {
  margin: 0;
  color: var(--rx-c-55-65-81-1000);
  line-height: 1.45;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--rx-c-255-255-255-1000);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: stretch;
  justify-items: end;
  background: var(--rx-c-15-23-42-350);
}

.modal-panel {
  width: min(760px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--rx-c-255-255-255-1000);
  box-shadow: var(--shadow);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--rx-c-255-255-255-1000);
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 40px;
  height: 40px;
}

.modal-body {
  padding: 18px;
}

.modal-message {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--rx-c-254-202-202-1000);
  background: var(--rx-c-254-242-242-1000);
  color: var(--rx-c-153-27-27-1000);
  font-weight: 800;
}

.data-form {
  display: grid;
  gap: 14px;
}

.compact-form {
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.wide-field {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions button {
  min-height: 42px;
  padding: 0 16px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--rx-c-248-250-252-1000);
}

.detail-hero span,
.detail-hero p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--rx-c-248-250-252-1000);
  border: 1px solid var(--line);
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-item strong {
  overflow-wrap: anywhere;
}

.detail-block {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--rx-c-255-255-255-1000);
}

.detail-block h4 {
  margin: 0 0 8px;
}

.detail-block p {
  margin: 0;
  color: var(--rx-c-55-65-81-1000);
  line-height: 1.45;
  white-space: pre-wrap;
}

.process-timeline-block {
  overflow: hidden;
}

.process-timeline-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.process-timeline-head h4 {
  margin: 0 0 4px;
}

.process-timeline-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.process-timeline-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--rx-c-14-165-233-220);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--rx-c-224-242-254-700);
  color: var(--rx-c-3-105-161-1000);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.process-timeline {
  position: relative;
  display: grid;
  gap: 11px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rx-c-14-165-233-720), var(--rx-c-132-204-22-580));
}

.process-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.process-timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  padding-top: 4px;
}

.process-timeline-dot span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rx-c-14-165-233-420);
  border-radius: 999px;
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-3-105-161-1000);
  font-size: 10px;
  font-weight: 1000;
}

.process-timeline-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--rx-c-248-250-252-1000);
}

.process-timeline-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.process-timeline-card small,
.process-timeline-card time,
.process-timeline-card footer span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.process-timeline-card small {
  color: var(--rx-c-3-105-161-1000);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-timeline-card em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--rx-c-251-191-36-170);
  color: var(--rx-c-146-64-14-1000);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.process-status-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.process-status-route strong {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--rx-c-14-165-233-120);
  color: var(--rx-c-7-89-133-1000);
  font-size: 11px;
  font-weight: 950;
}

.process-status-route b {
  color: var(--muted);
}

.process-timeline-card footer {
  display: grid;
  gap: 6px;
}

.process-timeline-card footer p {
  margin: 0;
  color: var(--rx-c-55-65-81-1000);
  font-size: 12px;
  line-height: 1.45;
}

.process-timeline-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  background: var(--rx-c-248-250-252-1000);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.process-timeline-empty.error {
  border-color: var(--rx-c-239-68-68-300);
  color: var(--rx-c-185-28-28-1000);
}

.profile-panel {
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.avatar-large {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--rx-c-17-24-39-1000);
  color: var(--rx-c-255-255-255-1000);
  font-size: 24px;
  font-weight: 900;
}

#profileLogoutBtn,
#markAllReadBtn {
  min-height: 40px;
  padding: 0 14px;
}

#profileLogoutBtn {
  color: var(--rx-c-153-27-27-1000);
  background: var(--rx-c-254-242-242-1000);
  border-color: var(--rx-c-254-202-202-1000);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-head {
    align-items: center;
  }

  .nav-tabs {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .nav-tab {
    text-align: center;
  }

  .session-card {
    margin-top: 0;
  }

  .metric-grid,
  .dashboard-layout,
  .orders-toolbar,
  .designer-editor-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-month-toolbar,
  .panel-head-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-month-control {
    width: 100%;
    flex-basis: auto;
  }

  .designer-list-head {
    display: none;
  }

  .designer-list-shell {
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .designer-list-row {
    min-width: 0;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--rx-c-186-230-253-1000);
    border-radius: 8px;
    background: var(--rx-c-255-255-255-1000);
    box-shadow: 0 10px 24px var(--rx-c-8-145-178-80);
  }

  .designer-list-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--rx-c-224-242-254-1000);
  }

  .designer-list-row > *:last-child {
    border-bottom: 0;
  }

  .designer-page-stat-hero {
    grid-column: 1 / -1;
  }

  .designer-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .designer-conversion-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .designer-conversion-row {
    grid-template-columns: 1fr;
  }

  .designer-eod-row {
    grid-template-columns: 1fr;
  }

  .designer-conversion-score {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .mobile-label {
    display: block;
    margin-bottom: 5px;
    color: var(--rx-c-15-118-110-1000);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
}

/* =====================================================================
   V1.30.0 NEON WORKFLOW JOURNEY
   A game-map presentation layered over the existing live checkpoint data.
   ===================================================================== */
.manager-journey-map {
  position: relative;
  padding: 28px 22px 24px;
  border-color: var(--rx-c-56-189-248-220);
  background:
    radial-gradient(700px 260px at 50% -12%, var(--rx-c-59-130-246-200), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, var(--rx-c-34-211-238-80), transparent 72%),
    linear-gradient(180deg, var(--rx-c-5-19-41-1000) 0%, var(--rx-c-6-26-53-1000) 58%, var(--rx-c-7-26-50-1000) 100%);
  box-shadow: 0 22px 54px var(--rx-c-2-8-23-460), inset 0 1px 0 var(--rx-c-125-211-252-80);
}

.manager-journey-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--rx-c-56-189-248-35) 1px, transparent 1px),
    linear-gradient(90deg, var(--rx-c-56-189-248-35) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.manager-workflow-heading {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.manager-workflow-title h3 {
  margin: 0;
  color: var(--rx-c-248-250-252-1000);
  font-size: clamp(38px, 5vw, 64px);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: 0.035em;
  line-height: 0.9;
  text-shadow: 0 4px 0 var(--rx-c-148-163-184-1000), 0 9px 24px var(--rx-c-125-211-252-240);
}

.manager-workflow-title p {
  display: grid;
  grid-template-columns: minmax(46px, 120px) auto minmax(46px, 120px);
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
}

.manager-workflow-title p span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rx-c-190-242-100-750));
}

.manager-workflow-title p span:last-child {
  background: linear-gradient(90deg, var(--rx-c-190-242-100-750), transparent);
}

.manager-workflow-title p b {
  color: var(--rx-c-190-242-100-1000);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-shadow: 0 0 18px var(--rx-c-163-230-53-340);
}

.manager-journey-rail {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: 24px;
  padding: 5px 7px 72px;
  scrollbar-color: var(--rx-c-56-189-248-380) transparent;
}

.journey-checkpoint {
  --stage-color: var(--rx-c-56-215-255-1000);
  --stage-rgb: var(--rx-rgb-56-215-255);
  min-height: 420px;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: visible;
  border: 1px solid rgba(var(--stage-rgb), 0.72);
  border-radius: 18px;
  padding: 18px 14px 20px;
  background:
    radial-gradient(180px 190px at 50% 28%, rgba(var(--stage-rgb), 0.14), transparent 70%),
    linear-gradient(180deg, rgba(var(--stage-rgb), 0.075), var(--rx-c-3-14-33-970) 78%);
  box-shadow:
    0 0 0 1px rgba(var(--stage-rgb), 0.08),
    0 0 24px rgba(var(--stage-rgb), 0.16),
    inset 0 0 28px rgba(var(--stage-rgb), 0.045);
  filter: drop-shadow(0 12px 18px var(--rx-c-2-8-23-340));
  text-align: center;
}

.journey-checkpoint.journey-design { --stage-color: var(--rx-c-255-139-97-1000); --stage-rgb: var(--rx-rgb-255-139-97); }
.journey-checkpoint.journey-approval { --stage-color: var(--rx-c-156-244-91-1000); --stage-rgb: var(--rx-rgb-156-244-91); }
.journey-checkpoint.journey-production { --stage-color: var(--rx-c-192-120-255-1000); --stage-rgb: var(--rx-rgb-192-120-255); }
.journey-checkpoint.journey-launch { --stage-color: var(--rx-c-255-201-67-1000); --stage-rgb: var(--rx-rgb-255-201-67); }
.journey-checkpoint.journey-payment { --stage-color: var(--rx-c-75-188-255-1000); --stage-rgb: var(--rx-rgb-75-188-255); }
.journey-checkpoint.journey-finish { --stage-color: var(--rx-c-100-242-199-1000); --stage-rgb: var(--rx-rgb-100-242-199); }

.journey-checkpoint.blocked,
.journey-checkpoint.finish {
  border-color: rgba(var(--stage-rgb), 0.76);
  background:
    radial-gradient(190px 200px at 50% 30%, rgba(var(--stage-rgb), 0.18), transparent 72%),
    linear-gradient(180deg, rgba(var(--stage-rgb), 0.1), var(--rx-c-3-14-33-970) 80%);
}

.journey-checkpoint::after {
  top: -1px;
  right: 44px;
  bottom: auto;
  left: 44px;
  height: 2px;
  border-radius: 999px;
  background: var(--stage-color);
  box-shadow: 0 0 15px rgba(var(--stage-rgb), 0.92), 0 0 28px rgba(var(--stage-rgb), 0.5);
  opacity: 1;
}

.journey-checkpoint.blocked::after,
.journey-checkpoint.finish::after {
  background: var(--stage-color);
  box-shadow: 0 0 15px rgba(var(--stage-rgb), 0.92), 0 0 28px rgba(var(--stage-rgb), 0.5);
}

.journey-checkpoint:hover,
.journey-checkpoint:focus-visible {
  transform: translateY(-7px);
  border-color: var(--stage-color);
  box-shadow:
    0 0 0 1px rgba(var(--stage-rgb), 0.14),
    0 0 34px rgba(var(--stage-rgb), 0.3),
    inset 0 0 32px rgba(var(--stage-rgb), 0.07);
}

.journey-step-top {
  justify-content: center;
  min-height: 30px;
}

.journey-step-top b {
  padding: 7px 13px;
  border-color: rgba(var(--stage-rgb), 0.6);
  background: rgba(var(--stage-rgb), 0.15);
  color: var(--stage-color);
  box-shadow: 0 0 17px rgba(var(--stage-rgb), 0.2), inset 0 0 10px rgba(var(--stage-rgb), 0.08);
  font-size: 11px;
}

.journey-checkpoint.blocked .journey-step-top b {
  border-color: var(--rx-c-163-230-53-580);
  background: var(--rx-c-101-163-13-250);
  color: var(--rx-c-217-249-157-1000);
  box-shadow: 0 0 18px var(--rx-c-163-230-53-200), inset 0 0 10px var(--rx-c-163-230-53-80);
}

.journey-stage-visual {
  display: grid;
  grid-template-rows: 132px minmax(100px, 1fr);
  align-items: center;
  min-height: 250px;
}

.journey-stage-art.journey-photo-icon {
  position: static;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 19px var(--rx-c-2-8-23-420)) drop-shadow(0 0 12px rgba(var(--stage-rgb), 0.16));
}

.journey-stage-count {
  display: grid;
  place-items: center;
  padding: 0;
}

.journey-stage-count strong,
.journey-checkpoint.blocked .journey-stage-count strong,
.journey-checkpoint.finish .journey-stage-count strong {
  color: var(--stage-color);
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-shadow: 0 0 14px rgba(var(--stage-rgb), 0.48), 0 0 34px rgba(var(--stage-rgb), 0.26);
}

.journey-stage-copy {
  min-height: 58px;
  align-content: end;
  justify-items: center;
  text-align: center;
}

.journey-stage-copy strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 19px;
  line-height: 1.1;
}

.journey-stage-copy em {
  color: var(--rx-c-213-226-239-1000);
  font-size: 11.5px;
}

.journey-connector {
  top: 50%;
  right: -22px;
  width: 15px;
  height: 15px;
  border: 0;
  border-right: 4px solid var(--stage-color);
  border-bottom: 4px solid var(--stage-color);
  background: transparent;
  box-shadow: 5px 5px 12px rgba(var(--stage-rgb), 0.48);
  transform: translateY(-50%) rotate(-45deg);
}

.journey-connector::after {
  top: 6px;
  right: -11px;
  width: 10px;
  height: 10px;
  border: 0;
  border-right: 3px solid var(--stage-color);
  border-bottom: 3px solid var(--stage-color);
  transform: translate(-2px, -2px);
}

.journey-track-node {
  position: absolute;
  z-index: 3;
  bottom: -49px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 4px solid var(--stage-color);
  border-radius: 50%;
  background: var(--rx-c-7-26-50-1000);
  box-shadow: 0 0 0 5px rgba(var(--stage-rgb), 0.12), 0 0 20px rgba(var(--stage-rgb), 0.72);
  transform: translateX(-50%);
}

.journey-track-node i {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--stage-color);
  box-shadow: 0 0 12px rgba(var(--stage-rgb), 0.9);
}

.journey-track-node::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  left: 22px;
  width: 254px;
  height: 4px;
  background: linear-gradient(90deg, var(--stage-color), rgba(var(--stage-rgb), 0.34));
  box-shadow: 0 0 12px rgba(var(--stage-rgb), 0.58);
}

.journey-checkpoint:last-child .journey-track-node::after { display: none; }

@media (max-width: 720px) {
  .manager-journey-map { padding: 23px 17px 18px; }
  .manager-workflow-heading { margin-bottom: 24px; }
  .manager-workflow-title h3 { font-size: 40px; }
  .manager-workflow-title p { gap: 9px; }
  .manager-workflow-title p b { font-size: 13px; }
  .manager-journey-rail { grid-template-columns: repeat(7, 230px); gap: 22px; padding-bottom: 70px; }
  .journey-checkpoint { min-height: 410px; }
  .journey-track-node::after { width: 238px; }
}

@media (max-width: 620px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .designer-toolbar,
  .designer-job-head,
  .designer-job-actions,
  .card-open,
  .detail-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .metric-grid,
  .monthly-grid,
  .finance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .money-stack {
    justify-items: start;
  }

  .nav-tabs {
    grid-template-columns: 1fr;
  }
}

/* Stage handoff Order Details reconfirmation */
.stage-confirm-wrap {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--rx-c-125-211-252-620);
  border-radius: 10px;
  background: var(--rx-c-255-255-255-340);
}

.stage-confirm-wrap legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.stage-confirm-wrap .eyebrow {
  margin-bottom: 8px;
}

.binding-order-actions .binding-ready-action {
  grid-column: 1 / -1;
  justify-self: end;
}

.stage-confirm-wrap textarea {
  width: 100%;
  min-height: 110px;
}

.stage-mismatch {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rx-c-220-38-38-300);
  border-radius: 8px;
  background: var(--rx-c-254-226-226-720);
  color: var(--rx-c-180-35-24-1000);
  font-size: 0.85rem;
  font-weight: 800;
}

.stage-ack-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.stage-ack-wrap input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.stage-mismatch.hidden,
.stage-ack-wrap.hidden {
  display: none;
}

/* Designer login: full-width spreadsheet workboard matching the reference view. */
.app-shell.designer-session {
  display: block;
}

.designer-session .sidebar {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 52px);
  border-right: 0;
  border-bottom: 1px solid var(--rx-c-125-211-252-580);
  box-shadow: 0 8px 24px var(--rx-c-3-105-161-100);
}

.designer-session .sidebar-toggle,
.designer-session .session-card span {
  display: none;
}

.designer-session .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.designer-session .nav-tab {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.designer-session .session-card {
  width: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.designer-session .session-card strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-session #logoutBtn {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
}

.designer-session .workspace {
  width: 100%;
  padding: 20px clamp(14px, 2vw, 34px) 34px;
}

.designer-session .designer-grid-wrap {
  max-width: 100%;
}

.designer-session .designer-worklist {
  padding-right: 3px;
}

.designer-session .designer-table {
  min-width: 1594px;
}

.designer-session .designer-table th:nth-child(1),
.designer-session .designer-table td:nth-child(1) { width: 182px; }
.designer-session .designer-table th:nth-child(2),
.designer-session .designer-table td:nth-child(2) { width: 127px; }
.designer-session .designer-table th:nth-child(3),
.designer-session .designer-table td:nth-child(3) { width: 139px; }
.designer-session .designer-table th:nth-child(4),
.designer-session .designer-table td:nth-child(4) { width: 296px; }
.designer-session .designer-table th:nth-child(5),
.designer-session .designer-table td:nth-child(5) { width: 154px; }
.designer-session .designer-table th:nth-child(6),
.designer-session .designer-table td:nth-child(6) { width: 228px; }
.designer-session .designer-table th:nth-child(7),
.designer-session .designer-table td:nth-child(7) { width: 109px; }
.designer-session .designer-table th:nth-child(8),
.designer-session .designer-table td:nth-child(8) { width: 200px; }
.designer-session .designer-table th:nth-child(9),
.designer-session .designer-table td:nth-child(9) { width: 159px; }

@media (max-width: 620px) {
  .designer-session .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 14px;
  }

  .designer-session .nav-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }

  .designer-session .nav-tab {
    flex: 1 1 120px;
  }

  .designer-session .brand-text .eyebrow {
    display: none;
  }

  .designer-session .brand-text strong {
    font-size: 14px;
  }

  .designer-session .session-card strong {
    max-width: 82px;
    font-size: 11px;
  }

  .designer-session #logoutBtn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .designer-session .workspace {
    padding: 14px;
  }

  .designer-personal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
  }

  .designer-personal-tabs button {
    min-width: 0;
  }

  .designer-approved-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   SKY-BLUE GLASSMORPHISM THEME
   Frosted translucent surfaces layered over the sky-blue gradient body.
   ===================================================================== */

.login-screen {
  background:
    radial-gradient(720px 420px at 18% 8%, var(--rx-c-255-255-255-350), transparent 60%),
    radial-gradient(680px 520px at 100% 100%, var(--rx-c-2-132-199-280), transparent 55%);
}

.login-panel,
.sidebar,
.metric-card,
.panel,
.order-card,
.alert-card,
.session-card,
.modal-panel,
.modal-header,
.detail-hero,
.detail-item,
.detail-block,
.summary-row,
.mini-stat,
.sync-chip,
.test-note,
.empty-state,
.designer-sheet-panel,
.designer-grid-wrap,
.designer-list-shell,
.designer-page-stat,
.designer-job-card,
.designer-job-detail {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.login-panel {
  background: linear-gradient(160deg, var(--rx-c-255-255-255-620), var(--rx-c-224-244-255-400));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--rx-c-255-255-255-700);
}

.test-note {
  background: var(--rx-c-255-247-237-550);
  border: 1px solid var(--rx-c-251-191-36-450);
  color: var(--rx-c-146-64-14-1000);
}

select,
input,
textarea {
  background: var(--rx-c-255-255-255-450);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--rx-c-2-132-199-200);
}

.sidebar {
  background: linear-gradient(180deg, var(--rx-c-255-255-255-550), var(--rx-c-214-240-255-350));
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 30px var(--rx-c-3-105-161-80);
}

.brand-mark,
.avatar-large {
  background: linear-gradient(150deg, var(--rx-c-14-165-233-1000), var(--rx-c-3-105-161-1000));
  box-shadow: 0 8px 20px var(--rx-c-3-105-161-350);
}

.sidebar-toggle {
  background: var(--rx-c-255-255-255-450);
  border: 1px solid var(--line);
}

.nav-tab {
  border: 1px solid transparent;
}

.nav-tab:hover {
  background: var(--rx-c-255-255-255-350);
  color: var(--blue);
}

.nav-tab.active {
  background: linear-gradient(135deg, var(--rx-c-186-230-253-750), var(--rx-c-255-255-255-450));
  color: var(--blue);
  border-color: var(--glass-line);
  box-shadow: 0 6px 16px var(--rx-c-3-105-161-140);
}

.session-card {
  background: var(--rx-c-255-255-255-420);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.primary-action,
#refreshBtn {
  background: linear-gradient(135deg, var(--rx-c-14-165-233-1000), var(--rx-c-3-105-161-1000));
  box-shadow: 0 10px 24px var(--rx-c-3-105-161-350);
}

.primary-action:hover,
#refreshBtn:hover {
  filter: brightness(1.06);
}

#logoutBtn {
  background: var(--rx-c-186-230-253-400);
  color: var(--ink);
  border: 1px solid var(--line);
}

.icon-button,
.modal-actions button,
#markAllReadBtn,
.filter-row button,
.summary-row,
.card-open,
.sheet-link {
  background: var(--rx-c-255-255-255-420);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.metric-card,
.panel,
.order-card,
.alert-card {
  background: linear-gradient(160deg, var(--rx-c-255-255-255-550), var(--rx-c-224-244-255-320));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 14px 34px var(--rx-c-3-105-161-140),
    inset 0 1px 0 var(--rx-c-255-255-255-600);
}

.metric-card em {
  background: linear-gradient(90deg, var(--rx-c-14-165-233-1000), var(--rx-c-3-105-161-1000));
}

.summary-row,
.mini-stat,
.detail-hero,
.detail-item {
  background: var(--rx-c-255-255-255-340) !important;
  border: 1px solid var(--line);
}

.detail-block {
  background: var(--rx-c-255-255-255-440);
  border: 1px solid var(--line);
}

.sync-chip {
  background: var(--rx-c-220-252-231-550);
  border: 1px solid var(--rx-c-34-197-94-350);
}

.status-pill {
  background: var(--rx-c-224-242-254-700);
  color: var(--rx-c-3-105-161-1000);
}

.priority-pill {
  background: var(--rx-c-255-255-255-500);
}

.empty-state {
  background: var(--rx-c-255-255-255-350);
  border: 1px dashed var(--glass-line);
}

.alert-card.unread {
  background: linear-gradient(160deg, var(--rx-c-224-242-254-700), var(--rx-c-255-255-255-400));
  border-color: var(--glass-line);
}

.modal-layer {
  background: var(--rx-c-8-47-73-320);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-panel {
  background: linear-gradient(170deg, var(--rx-c-240-249-255-820), var(--rx-c-224-244-255-720));
  border-left: 1px solid var(--line);
}

.modal-header {
  background: var(--rx-c-240-249-255-650);
  border-bottom: 1px solid var(--line);
}

.designer-sheet-panel,
.designer-grid-wrap,
.designer-list-shell {
  background: linear-gradient(180deg, var(--rx-c-240-253-255-600), var(--rx-c-255-255-255-400));
  border-color: var(--glass-line);
}

.designer-page-stat,
.designer-job-card,
.designer-job-detail {
  background: var(--rx-c-255-255-255-400);
  border-color: var(--glass-line);
}

.designer-page-stat-hero {
  background: linear-gradient(135deg, var(--rx-c-224-254-255-700), var(--rx-c-224-242-254-500));
  border-color: var(--glass-line);
}

.error-box,
.modal-message {
  background: var(--rx-c-254-242-242-700);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Binding Team party-wise workflow */
.binding-overview,
.binding-party-card {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--rx-c-255-255-255-580), var(--rx-c-224-244-255-340));
  box-shadow: 0 14px 34px var(--rx-c-3-105-161-140), inset 0 1px 0 var(--rx-c-255-255-255-650);
}

.binding-overview {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 16px;
}

.binding-overview h3 {
  font-size: 24px;
}

.binding-overview > div > p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.binding-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.binding-summary {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rx-c-255-255-255-420);
}

.binding-summary strong {
  color: var(--blue);
  font-size: 28px;
}

.binding-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.binding-summary-active strong {
  color: var(--violet);
}

.binding-summary-ready strong {
  color: var(--green);
}

.binding-status-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.binding-status-tab {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  padding: 15px;
  border: 1px solid var(--rx-c-125-211-252-520);
  border-radius: 14px;
  background: var(--rx-c-255-255-255-450);
  color: var(--muted);
  text-align: left;
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-720);
}

.binding-status-tab::after {
  content: "";
  position: absolute;
  inset: auto 14px 9px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.binding-status-tab span {
  font-size: 13px;
  font-weight: 900;
}

.binding-status-tab strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--ink);
  font-size: 30px;
}

.binding-status-tab small {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.binding-status-tab.selected {
  border-color: var(--rx-c-124-58-237-420);
  background: linear-gradient(145deg, var(--rx-c-237-233-254-840), var(--rx-c-255-255-255-580));
  color: var(--rx-c-91-33-182-1000);
  box-shadow: 0 10px 24px var(--rx-c-124-58-237-130), inset 0 1px 0 var(--rx-c-255-255-255-800);
}

.binding-status-tab.selected::after {
  background: var(--violet);
}

.binding-tab-ready.selected {
  border-color: var(--rx-c-22-163-74-400);
  background: linear-gradient(145deg, var(--rx-c-220-252-231-840), var(--rx-c-255-255-255-580));
  color: var(--rx-c-22-101-52-1000);
  box-shadow: 0 10px 24px var(--rx-c-22-163-74-120), inset 0 1px 0 var(--rx-c-255-255-255-800);
}

.binding-tab-ready.selected::after {
  background: var(--green);
}

.binding-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.binding-section-head h3 {
  margin: 0;
  font-size: 20px;
}

.binding-section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.binding-party-list,
.binding-order-list {
  display: grid;
  gap: 14px;
}

.binding-party-card {
  overflow: hidden;
  border-radius: 16px;
}

.binding-party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--rx-c-255-255-255-300);
}

.binding-party-head h3 {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.binding-party-head > div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.binding-party-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.binding-count-chip,
.ready-count-chip {
  min-height: 30px;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.binding-count-chip {
  background: var(--rx-c-237-233-254-820);
  color: var(--violet) !important;
}

.ready-count-chip {
  background: var(--rx-c-220-252-231-820);
  color: var(--rx-c-21-128-61-1000) !important;
}

.binding-order-list {
  gap: 0;
}

.binding-order-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, 1.35fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--rx-c-186-230-253-720);
  background: var(--rx-c-255-255-255-180);
}

.binding-order-row:last-child {
  border-bottom: 0;
}

.binding-order-row.is-ready {
  grid-template-columns: minmax(280px, 1fr) minmax(190px, 0.35fr);
  background: var(--rx-c-240-253-244-280);
}

.binding-order-copy {
  min-width: 0;
}

.binding-order-copy > p {
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  color: var(--rx-c-51-65-85-1000);
  line-height: 1.45;
}

.binding-detail-link {
  min-height: 34px;
  margin-top: 11px;
  padding: 0 11px;
  color: var(--blue);
}

.binding-order-actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(210px, 1.25fr) auto;
  align-items: end;
  gap: 10px;
}

.binding-order-actions label {
  min-width: 0;
  font-size: 11px;
  text-transform: uppercase;
}

.binding-order-actions select,
.binding-order-actions input {
  width: 100%;
  min-width: 0;
  background: var(--rx-c-255-255-255-580);
  font-size: 13px;
  font-weight: 800;
}

.binding-order-actions button {
  min-height: 44px;
  white-space: nowrap;
}

.binding-ready-action {
  min-width: 190px;
}

.binding-ready-state {
  min-height: 100px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--rx-c-34-197-94-300);
  border-radius: 12px;
  background: var(--rx-c-220-252-231-580);
  color: var(--rx-c-22-101-52-1000);
  text-align: center;
}

.binding-ready-state > span:last-child {
  color: var(--rx-c-75-114-96-1000);
  font-size: 12px;
  font-weight: 800;
}

.ready-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rx-c-22-163-74-1000);
  color: var(--rx-c-255-255-255-1000);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .binding-overview,
  .binding-order-row,
  .binding-order-row.is-ready {
    grid-template-columns: 1fr;
  }

  .binding-order-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .binding-order-actions button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .binding-overview {
    padding: 16px;
  }

  .binding-summary-grid,
  .binding-order-actions {
    grid-template-columns: 1fr;
  }

  .binding-party-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .binding-party-counts {
    justify-content: flex-start;
  }

  .binding-order-row {
    padding: 15px;
  }
}

@media (max-width: 820px) {
  .analytics-grid,
  .designer-analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-panel .chart-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .analytics-panel {
    padding: 16px;
  }

  .analytics-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-total-chip {
    width: 100%;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    justify-items: start;
    gap: 8px;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .donut-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .chart-head {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .app-shell.binding-session {
    display: block;
  }

  .binding-session .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--rx-c-125-211-252-580);
    box-shadow: 0 8px 24px var(--rx-c-3-105-161-120);
  }

  .binding-session .sidebar-head {
    min-width: 0;
  }

  .binding-session .sidebar-toggle,
  .binding-session .session-card span {
    display: none;
  }

  .binding-session .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .binding-session .nav-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .binding-session .session-card {
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .binding-session .session-card strong {
    max-width: 90px;
    overflow: hidden;
    color: var(--blue);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .binding-session #logoutBtn {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .binding-session .workspace {
    padding: 14px;
  }

  .binding-session .topbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-bottom: 12px;
  }

  .binding-session .topbar h2 {
    font-size: 21px;
  }

  .binding-session .topbar-actions {
    display: flex;
    margin-left: auto;
  }

  .binding-session .sync-chip {
    display: none;
  }

  .binding-session #refreshBtn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .binding-session .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .binding-session .nav-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }

  .binding-session .nav-tab {
    flex: 1 1 120px;
  }

  .active-filter-panel {
    padding: 13px;
  }

  .active-filter-head {
    align-items: flex-start;
  }

  .active-filter-head h3 {
    font-size: 16px;
  }

  .active-status-tabs {
    gap: 7px;
  }

  .active-status-tabs button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .binding-session .compact .brand-mark {
    width: 38px;
    height: 38px;
  }

  .binding-session .brand-text .eyebrow {
    display: none;
  }

  .binding-session .brand-text strong {
    font-size: 14px;
  }

  .binding-session .topbar .eyebrow {
    display: none;
  }

  .binding-overview {
    gap: 15px;
    margin-bottom: 14px;
    padding: 15px;
  }

  .binding-overview h3 {
    font-size: 19px;
  }

  .binding-overview > div > p:last-child {
    margin-top: 6px;
    font-size: 12px;
  }

  .binding-status-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .binding-status-tab {
    min-height: 94px;
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 12px;
  }

  .binding-status-tab strong {
    grid-row: auto;
    grid-column: auto;
    font-size: 27px;
  }

  .binding-status-tab span {
    min-height: 30px;
    font-size: 11px;
    line-height: 1.25;
  }

  .binding-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 9px;
  }

  .binding-section-head h3 {
    font-size: 18px;
  }

  .binding-party-card {
    border-radius: 14px;
  }

  .binding-party-head {
    gap: 10px;
    padding: 14px;
  }

  .binding-party-head h3 {
    font-size: 18px;
  }

  .binding-order-row,
  .binding-order-row.is-ready {
    gap: 14px;
    padding: 14px;
  }

  .binding-order-copy > p {
    font-size: 13px;
  }

  .binding-order-copy .order-meta {
    display: grid;
    gap: 4px;
  }

  .binding-detail-link {
    width: 100%;
    min-height: 40px;
  }

  .binding-order-actions {
    grid-template-columns: 1fr;
    gap: 11px;
    padding-top: 14px;
    border-top: 1px solid var(--rx-c-125-211-252-450);
  }

  .binding-order-actions button {
    grid-column: auto;
    width: 100%;
    min-height: 50px;
    white-space: normal;
  }

  .binding-ready-state {
    min-height: 76px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    column-gap: 10px;
    padding: 12px;
    text-align: left;
  }

  .binding-ready-state .ready-check {
    grid-row: 1 / 3;
  }
}

/* ---- Pending tab ---- */
.pending-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rx-c-220-38-38-350);
  border-radius: 14px;
  background: var(--rx-c-254-226-226-620);
  color: var(--rx-c-153-27-27-1000);
  font-size: 13px;
  line-height: 1.4;
}
.pending-alert-banner strong { flex: 0 0 auto; }
.ai-metric-grid.role-limited { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
.pending-metric-card {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.pending-metric-card:hover,
.pending-metric-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--rx-c-2-132-199-550);
  box-shadow: 0 16px 36px var(--rx-c-3-105-161-200);
  outline: none;
}
.pending-metric-card[aria-pressed="true"] { border-color: var(--rx-c-2-132-199-520); }
.ai-metric-grid .metric-card strong { font-size: 30px; }
.ai-metric-grid .metric-card em {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.ai-insight-panel { margin-top: 12px; }
.ai-insight-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ai-insight-panel #aiGenerateBtn,
.ai-insight-panel #aiDownloadPdfBtn {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--blue);
  color: var(--rx-c-255-255-255-1000);
  font-weight: 800;
}
.ai-insight-panel #aiDownloadPdfBtn { background: linear-gradient(135deg, var(--rx-c-22-163-74-1000), var(--rx-c-15-118-110-1000)); }
.ai-insight-text {
  white-space: normal;
  line-height: 1.55;
  font-size: 14px;
  color: var(--ink);
}
.ai-insight-meta { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.ai-insight-status {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}
.ai-insight-status.error { color: var(--red); font-weight: 700; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ai-chat-panel { margin-top: 12px; }
.ai-chat-header { align-items: center; }
.ai-chat-clear {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 13px;
  background: var(--panel-soft);
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.ai-chat-suggestions {
  display: flex;
  gap: 8px;
  margin: 13px 0 10px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ai-chat-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--rx-c-2-132-199-250);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--rx-c-224-242-254-680);
  color: var(--rx-c-7-89-133-1000);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.ai-chat-suggestions button:hover,
.ai-chat-suggestions button:focus-visible,
.ai-chat-clear:hover,
.ai-chat-clear:focus-visible {
  border-color: var(--rx-c-2-132-199-600);
  outline: none;
}
.ai-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--rx-c-240-249-255-480);
  scroll-behavior: smooth;
}
.ai-chat-welcome {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 150px;
  text-align: center;
  color: var(--muted);
}
.ai-chat-welcome strong { color: var(--ink); font-size: 16px; }
.ai-chat-welcome span { font-size: 13px; }
.ai-chat-message {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 4px;
  max-width: min(86%, 760px);
}
.ai-chat-message.user { align-self: flex-end; }
.ai-chat-message > span {
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ai-chat-message.user > span { text-align: right; }
.ai-chat-message > div {
  border: 1px solid var(--glass-line);
  border-radius: 5px 15px 15px 15px;
  padding: 10px 12px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 7px 20px var(--rx-c-14-116-144-80);
}
.ai-chat-message.user > div {
  border-color: var(--rx-c-2-132-199-250);
  border-radius: 15px 5px 15px 15px;
  background: linear-gradient(135deg, var(--rx-c-2-132-199-1000), var(--rx-c-3-105-161-1000));
  color: var(--rx-c-255-255-255-1000);
}
.ai-chat-message.typing > div { color: var(--muted); font-style: italic; }
.ai-chat-dots { letter-spacing: 0.12em; }
.ai-chat-error,
.ai-chat-note {
  margin-top: 9px;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
}
.ai-chat-error { background: var(--rx-c-254-226-226-680); color: var(--red); }
.ai-chat-note { background: var(--rx-c-254-243-199-680); color: var(--rx-c-146-64-14-1000); }
.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 9px;
  margin-top: 11px;
}
.ai-chat-form textarea {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--rx-c-255-255-255-720);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.ai-chat-form textarea:focus {
  border-color: var(--rx-c-2-132-199-620);
  box-shadow: 0 0 0 3px var(--rx-c-14-165-233-110);
  outline: none;
}
.ai-chat-form button {
  min-width: 105px;
  border: 0;
  border-radius: 11px;
  padding: 0 17px;
  background: linear-gradient(135deg, var(--rx-c-2-132-199-1000), var(--rx-c-15-118-110-1000));
  color: var(--rx-c-255-255-255-1000);
  font: inherit;
  font-weight: 800;
}
.ai-chat-form button:disabled,
.ai-chat-suggestions button:disabled,
.ai-chat-clear:disabled { cursor: wait; opacity: 0.58; }
.ai-chat-disclaimer {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.ai-stuck-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 14px;
  padding: 2px 0 5px;
  scrollbar-width: thin;
}
.ai-stuck-tabs button { flex: 0 0 auto; }
.ai-stuck-tabs button strong {
  width: auto;
  min-width: 62px;
  padding: 0 8px;
  text-transform: uppercase;
}
.ai-stuck-list { display: flex; flex-direction: column; gap: 8px; }
.ai-stuck-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--panel-soft);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ai-stuck-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ai-stuck-row.warn { border-left: 4px solid var(--amber); }
.ai-stuck-row.critical { border-left: 4px solid var(--red); }
.ai-stuck-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-stuck-main strong { color: var(--ink); font-size: 15px; }
.ai-stuck-sub { color: var(--muted); font-size: 12px; font-weight: 600; }
.ai-stuck-stage { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ai-stage-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--rx-c-2-132-199-120);
  color: var(--blue);
  white-space: nowrap;
}
.ai-days { font-size: 12px; color: var(--muted); font-weight: 700; }
.ai-days em { font-style: normal; opacity: 0.75; }
.ai-balance { font-size: 16px; font-weight: 800; color: var(--teal); }
.ai-over-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ai-over-chip.warn { background: var(--rx-c-217-119-6-140); color: var(--amber); }
.ai-over-chip.critical { background: var(--rx-c-220-38-38-140); color: var(--red); }

@media (max-width: 720px) {
  .pending-alert-banner { align-items: flex-start; flex-direction: column; }
  .ai-insight-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .ai-insight-actions button { width: 100%; }
  .ai-chat-header { align-items: flex-start; }
  .ai-chat-clear { width: 100%; margin-top: 8px; }
  .ai-chat-log { min-height: 220px; max-height: 52vh; padding: 11px; }
  .ai-chat-message { max-width: 94%; }
  .ai-chat-form { grid-template-columns: 1fr; }
  .ai-chat-form button { min-height: 44px; }
  .ai-metric-grid.role-limited { grid-template-columns: 1fr 1fr; }
  .ai-stuck-row { grid-template-columns: 1fr auto; }
  .ai-stuck-row .ai-over-chip { grid-column: 2; justify-self: end; }
  .ai-stuck-stage { grid-row: 1; grid-column: 2; }
  .ai-stuck-main { grid-column: 1; grid-row: 1; }
}

/* Manager mission dashboard ------------------------------------------------ */
@keyframes manager-mission-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes manager-orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes manager-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--rx-c-163-230-53-420); }
  50% { box-shadow: 0 0 0 7px var(--rx-c-163-230-53-0); }
}

.manager-mission {
  --mission-navy: var(--rx-c-7-23-45-1000);
  --mission-navy-soft: var(--rx-c-16-39-68-1000);
  --mission-indigo: var(--rx-c-79-70-229-1000);
  --mission-cyan: var(--rx-c-34-211-238-1000);
  --mission-lime: var(--rx-c-163-230-53-1000);
  --mission-coral: var(--rx-c-251-113-133-1000);
  --mission-gold: var(--rx-c-251-191-36-1000);
  display: grid;
  gap: 14px;
  animation: manager-mission-enter 0.42s ease both;
}

.manager-mission button {
  font: inherit;
}

.manager-mission-hero {
  position: relative;
  isolation: isolate;
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--rx-c-125-211-252-200);
  border-radius: 28px;
  padding: 30px;
  background:
    radial-gradient(500px 340px at 88% 14%, var(--rx-c-79-70-229-550), transparent 66%),
    radial-gradient(420px 260px at 10% 110%, var(--rx-c-8-145-178-280), transparent 70%),
    linear-gradient(135deg, var(--rx-c-7-23-45-1000) 0%, var(--rx-c-16-39-68-1000) 52%, var(--rx-c-23-37-84-1000) 100%);
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 24px 70px var(--rx-c-7-23-45-280);
}

.manager-mission-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--rx-c-255-255-255-80) 1px, transparent 1px),
    linear-gradient(90deg, var(--rx-c-255-255-255-80) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, var(--rx-c-0-0-0-1000), transparent 78%);
}

.manager-mission-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  top: -190px;
  left: 42%;
  border-radius: 50%;
  background: var(--rx-c-34-211-238-160);
  filter: blur(4px);
}

.manager-hero-copy,
.manager-health-orbit,
.manager-hero-scoreboard {
  position: relative;
  z-index: 1;
}

.manager-live-flag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--rx-c-163-230-53-250);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--rx-c-163-230-53-90);
  color: var(--rx-c-217-249-157-1000);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manager-live-flag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mission-lime);
  animation: manager-live-pulse 1.7s ease-in-out infinite;
}

.manager-chapter {
  margin: 0 0 9px;
  color: var(--rx-c-103-232-249-1000);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-hero-copy h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 57px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.manager-hero-copy h3 em {
  color: var(--mission-lime);
  font-style: normal;
}

.manager-hero-copy > p:last-of-type {
  max-width: 690px;
  margin: 17px 0 0;
  color: var(--rx-c-203-213-225-1000);
  font-size: 15px;
  line-height: 1.62;
}

.manager-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}

.manager-primary-cta,
.manager-secondary-cta {
  min-height: 54px;
  border-radius: 14px;
  padding: 9px 17px;
  font-weight: 900;
}

.manager-primary-cta {
  min-width: 230px;
  display: grid;
  justify-items: start;
  gap: 1px;
  border: 0;
  background: linear-gradient(135deg, var(--mission-lime), var(--rx-c-190-242-100-1000));
  color: var(--rx-c-26-46-5-1000);
  box-shadow: 0 12px 34px var(--rx-c-163-230-53-200);
}

.manager-primary-cta span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-primary-cta strong {
  max-width: 240px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-secondary-cta {
  border: 1px solid var(--rx-c-255-255-255-230);
  background: var(--rx-c-255-255-255-60);
  color: var(--rx-c-255-255-255-1000);
}

.manager-primary-cta:hover,
.manager-secondary-cta:hover {
  transform: translateY(-1px);
}

.manager-health-orbit {
  --mission-progress: 0%;
  width: 210px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--mission-lime) var(--mission-progress), var(--rx-c-255-255-255-120) 0);
  box-shadow: 0 0 0 10px var(--rx-c-255-255-255-35), 0 0 50px var(--rx-c-34-211-238-140);
}

.manager-health-orbit::before {
  content: "";
  position: absolute;
  width: 166px;
  aspect-ratio: 1;
  border: 1px solid var(--rx-c-255-255-255-100);
  border-radius: 50%;
  background: var(--rx-c-16-34-62-1000);
}

.manager-health-core {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.manager-health-core strong {
  font-size: 44px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.manager-health-core span {
  color: var(--rx-c-165-243-252-1000);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manager-orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: manager-orbit-pulse 2.2s ease-in-out infinite;
}

.manager-orbit-dot.dot-one {
  top: 12px;
  right: 35px;
  background: var(--mission-cyan);
}

.manager-orbit-dot.dot-two {
  bottom: 17px;
  left: 28px;
  background: var(--mission-coral);
  animation-delay: 0.7s;
}

.manager-hero-scoreboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--rx-c-255-255-255-120);
  border-radius: 16px;
  background: var(--rx-c-255-255-255-55);
  backdrop-filter: blur(14px);
}

.manager-hero-scoreboard > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  border-right: 1px solid var(--rx-c-255-255-255-100);
}

.manager-hero-scoreboard > div:last-child {
  border-right: 0;
}

.manager-hero-scoreboard strong {
  font-size: 24px;
  line-height: 1;
}

.manager-hero-scoreboard span {
  overflow: hidden;
  color: var(--rx-c-148-163-184-1000);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.manager-hero-scoreboard .danger strong { color: var(--rx-c-253-164-175-1000); }
.manager-hero-scoreboard .success strong { color: var(--rx-c-190-242-100-1000); }

.manager-journey-map,
.manager-hurdle-panel {
  overflow: hidden;
  border: 1px solid var(--rx-c-255-255-255-680);
  border-radius: 24px;
  background: var(--rx-c-255-255-255-590);
  box-shadow: 0 16px 42px var(--rx-c-3-105-161-110);
  backdrop-filter: blur(18px);
}

.manager-journey-map {
  padding: 22px;
}

.manager-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.manager-section-heading h3 {
  margin: 2px 0 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.manager-map-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.manager-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mission-cyan);
  box-shadow: 0 0 0 4px var(--rx-c-34-211-238-140);
}

.manager-journey-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 4px 3px 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--rx-c-2-132-199-250) transparent;
}

.journey-checkpoint {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 10px;
  overflow: visible;
  border: 1px solid var(--rx-c-14-165-233-180);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(165deg, var(--rx-c-255-255-255-920), var(--rx-c-239-246-255-720));
  color: var(--ink);
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.journey-checkpoint::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--mission-cyan), var(--mission-lime));
  box-shadow: 0 0 16px var(--rx-c-34-211-238-280);
  opacity: 0.8;
}

.journey-checkpoint:hover,
.journey-checkpoint:focus-visible {
  z-index: 2;
  transform: translateY(-4px);
  border-color: var(--rx-c-79-70-229-440);
  box-shadow: 0 16px 30px var(--rx-c-3-105-161-150);
  outline: none;
}

.journey-checkpoint.blocked {
  border-color: var(--rx-c-251-113-133-420);
  background: linear-gradient(165deg, var(--rx-c-255-255-255-960), var(--rx-c-255-228-230-760));
}

.journey-checkpoint.blocked::after {
  background: linear-gradient(90deg, var(--mission-coral), var(--rx-c-251-146-60-1000));
  box-shadow: 0 0 16px var(--rx-c-251-113-133-300);
}

.journey-checkpoint.finish {
  border-color: var(--rx-c-132-204-22-360);
  background: linear-gradient(155deg, var(--rx-c-236-252-203-1000), var(--rx-c-240-253-244-800));
}

.journey-checkpoint.finish::after {
  background: linear-gradient(90deg, var(--mission-lime), var(--rx-c-250-204-21-1000));
  box-shadow: 0 0 18px var(--rx-c-163-230-53-340);
}

.journey-connector {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 2px;
  top: 32px;
  right: -13px;
  background: var(--rx-c-2-132-199-340);
}

.journey-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--rx-c-2-132-199-480);
}

.journey-checkpoint:last-child .journey-connector { display: none; }

.journey-step-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 26px;
}

.journey-step-top i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-3-105-161-1000);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.journey-checkpoint.blocked .journey-step-top i {
  background: var(--rx-c-255-228-230-1000);
  color: var(--rx-c-190-18-60-1000);
}

.journey-checkpoint.finish .journey-step-top i {
  background: var(--rx-c-217-249-157-1000);
  color: var(--rx-c-63-98-18-1000);
}

.journey-step-top b {
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid var(--rx-c-132-204-22-420);
  background: var(--rx-c-163-230-53-180);
  color: var(--rx-c-63-98-18-1000);
  box-shadow: 0 0 18px var(--rx-c-163-230-53-130);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.journey-checkpoint.blocked .journey-step-top b {
  border-color: var(--rx-c-132-204-22-420);
  background: var(--rx-c-163-230-53-220);
  color: var(--rx-c-63-98-18-1000);
}

.journey-stage-visual {
  position: relative;
  display: block;
  min-height: 220px;
}

.journey-stage-art {
  --art-primary: var(--mission-cyan);
  --art-secondary: var(--mission-lime);
  --art-wash: var(--rx-c-34-211-238-100);
  width: 70px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rx-c-103-232-249-120);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 18%, var(--rx-c-163-230-53-160), transparent 30%),
    linear-gradient(145deg, var(--rx-c-34-211-238-90), var(--rx-c-79-70-229-80));
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-60), 0 10px 24px var(--rx-c-2-8-23-160);
  animation: journey-art-float 4.2s ease-in-out infinite;
}

.journey-stage-art.journey-photo-icon {
  position: absolute;
  top: -4px;
  right: -3px;
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 18px var(--rx-c-2-8-23-360));
  transform-origin: center;
}

.journey-checkpoint:nth-child(2n) .journey-stage-art { animation-delay: -1.3s; }
.journey-checkpoint:nth-child(3n) .journey-stage-art { animation-delay: -2.6s; }

.journey-stage-art.design {
  --art-primary: var(--rx-c-129-140-248-1000);
  --art-secondary: var(--rx-c-34-211-238-1000);
  --art-wash: var(--rx-c-129-140-248-120);
}

.journey-stage-art.approval {
  --art-primary: var(--rx-c-34-211-238-1000);
  --art-secondary: var(--rx-c-163-230-53-1000);
  --art-wash: var(--rx-c-163-230-53-100);
}

.journey-stage-art.production {
  --art-primary: var(--rx-c-56-189-248-1000);
  --art-secondary: var(--rx-c-250-204-21-1000);
  --art-wash: var(--rx-c-56-189-248-110);
}

.journey-stage-art.launch {
  --art-primary: var(--rx-c-34-211-238-1000);
  --art-secondary: var(--rx-c-251-146-60-1000);
  --art-wash: var(--rx-c-251-146-60-100);
}

.journey-stage-art.payment {
  --art-primary: var(--rx-c-129-140-248-1000);
  --art-secondary: var(--rx-c-250-204-21-1000);
  --art-wash: var(--rx-c-129-140-248-120);
}

.journey-stage-art.finish {
  --art-primary: var(--rx-c-163-230-53-1000);
  --art-secondary: var(--rx-c-250-204-21-1000);
  --art-wash: var(--rx-c-163-230-53-120);
}

.journey-stage-art svg {
  width: 64px;
  height: 50px;
  overflow: visible;
  transition: transform 0.18s ease;
}

.journey-checkpoint:hover .journey-stage-art svg,
.journey-checkpoint:focus-visible .journey-stage-art svg {
  transform: scale(1.08) rotate(-2deg);
}

.journey-checkpoint:hover .journey-photo-icon,
.journey-checkpoint:focus-visible .journey-photo-icon {
  transform: translateY(-3px) scale(1.035);
}

.journey-stage-art .art-wash { fill: var(--art-wash); }
.journey-stage-art .art-solid { fill: var(--art-primary); }
.journey-stage-art .art-accent { fill: var(--art-secondary); }
.journey-stage-art .art-stroke,
.journey-stage-art .art-accent-stroke,
.journey-stage-art .art-accent-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-stage-art .art-stroke { stroke: var(--art-primary); stroke-width: 3; }
.journey-stage-art .art-accent-stroke { stroke: var(--art-secondary); stroke-width: 4; }
.journey-stage-art .art-accent-mark { stroke: var(--rx-c-23-35-10-1000); stroke-width: 2.5; }

@keyframes journey-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.journey-stage-copy {
  display: grid;
  gap: 3px;
  min-height: 52px;
  align-content: end;
}

.journey-stage-copy small {
  color: var(--rx-c-100-116-139-1000);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-stage-copy strong {
  font-size: 17px;
  line-height: 1.12;
}

.journey-stage-copy em {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 650;
}

.journey-stage-count {
  display: block;
  min-width: 0;
  padding-top: 84px;
}

.journey-stage-count strong {
  color: var(--ink);
  font-size: 156px;
  line-height: 0.78;
  letter-spacing: -0.09em;
  text-shadow: 0 0 24px var(--rx-c-34-211-238-180);
}

.journey-stage-count small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-checkpoint.blocked .journey-stage-count strong {
  color: var(--rx-c-253-164-175-1000);
  text-shadow: 0 0 22px var(--rx-c-251-113-133-220);
}

.journey-checkpoint.finish .journey-stage-count strong {
  color: var(--rx-c-217-249-157-1000);
  text-shadow: 0 0 22px var(--rx-c-163-230-53-220);
}

.manager-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 14px;
}

.manager-hurdle-panel {
  padding: 22px;
}

.manager-hurdle-heading > span {
  border: 1px solid var(--rx-c-251-113-133-220);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--rx-c-255-228-230-700);
  color: var(--rx-c-190-18-60-1000);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.manager-hurdle-list {
  display: grid;
  gap: 8px;
}

.manager-hurdle-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--rx-c-148-163-184-220);
  border-radius: 16px;
  padding: 10px 11px;
  background: var(--rx-c-248-250-252-740);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.manager-hurdle-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rx-c-56-189-248-1000);
}

.manager-hurdle-row.urgent::before { background: var(--mission-gold); }
.manager-hurdle-row.overdue::before { background: var(--mission-coral); }
.manager-hurdle-row.critical::before { background: var(--rx-c-225-29-72-1000); }

.manager-hurdle-row:hover {
  transform: translateX(2px);
  border-color: var(--rx-c-14-165-233-380);
  background: var(--rx-c-255-255-255-900);
}

.manager-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 10px;
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-3-105-161-1000);
  font-size: 11px;
  font-weight: 950;
}

.manager-hurdle-row.critical .manager-rank,
.manager-hurdle-row.overdue .manager-rank {
  background: var(--rx-c-255-228-230-1000);
  color: var(--rx-c-190-18-60-1000);
}

.manager-party-open {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 0.9fr);
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.manager-party-title,
.manager-route {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.manager-party-title strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-party-title small,
.manager-route small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-route {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.manager-route small,
.manager-route strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.manager-route b { color: var(--blue); }
.manager-route strong { color: var(--teal); }

.manager-hurdle-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.manager-hurdle-tags > b {
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.manager-time-chip { background: var(--rx-c-224-242-254-1000); color: var(--rx-c-3-105-161-1000); }
.critical .manager-time-chip,
.overdue .manager-time-chip { background: var(--rx-c-255-228-230-1000); color: var(--rx-c-190-18-60-1000); }
.manager-priority-chip.urgent { background: var(--rx-c-254-243-199-1000); color: var(--rx-c-180-83-9-1000); }
.manager-priority-chip.high { background: var(--rx-c-237-233-254-1000); color: var(--rx-c-109-40-217-1000); }
.manager-owner-chip { background: var(--rx-c-254-226-226-1000); color: var(--rx-c-185-28-28-1000); }

.manager-clear-button {
  min-height: 39px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  padding: 0 11px;
  background: var(--mission-navy);
  color: var(--rx-c-255-255-255-1000);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.manager-clear-button b {
  color: var(--mission-lime);
  font-size: 15px;
}

.manager-clear-button.view {
  background: var(--rx-c-224-242-254-1000);
  color: var(--rx-c-7-89-133-1000);
}

.manager-clear-button.view b { color: var(--rx-c-2-132-199-1000); }

.manager-view-all {
  width: 100%;
  margin-top: 11px;
  border: 1px dashed var(--rx-c-2-132-199-300);
  border-radius: 12px;
  padding: 11px;
  background: var(--rx-c-224-242-254-460);
  color: var(--rx-c-3-105-161-1000);
  font-size: 11px;
  font-weight: 900;
}

.manager-empty-quest {
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px dashed var(--rx-c-132-204-22-450);
  border-radius: 16px;
  background: var(--rx-c-236-252-203-450);
  text-align: center;
}

.manager-empty-quest span {
  color: var(--rx-c-77-124-15-1000);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.manager-empty-quest p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.manager-quest-board {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid var(--rx-c-99-102-241-220);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(230px 180px at 100% 0%, var(--rx-c-79-70-229-540), transparent 68%),
    linear-gradient(155deg, var(--rx-c-16-27-53-1000), var(--rx-c-17-28-62-1000) 58%, var(--rx-c-30-27-75-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 18px 46px var(--rx-c-30-27-75-260);
}

.manager-quest-board .eyebrow { color: var(--rx-c-165-180-252-1000); }

.manager-quest-board h3 {
  margin: 2px 0 0;
  font-size: 27px;
}

.manager-quest-intro {
  margin: 8px 0 18px;
  color: var(--rx-c-170-181-202-1000);
  font-size: 12px;
  line-height: 1.55;
}

.manager-quest-list {
  display: grid;
  gap: 8px;
}

.manager-quest-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rx-c-255-255-255-100);
  border-radius: 13px;
  padding: 10px;
  background: var(--rx-c-255-255-255-55);
  color: var(--rx-c-255-255-255-1000);
  text-align: left;
}

.manager-quest-list button:hover {
  border-color: var(--rx-c-165-180-252-400);
  background: var(--rx-c-255-255-255-90);
}

.manager-quest-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rx-c-99-102-241-260);
  color: var(--rx-c-199-210-254-1000);
  font-size: 10px;
  font-weight: 950;
}

.manager-quest-list button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.manager-quest-list strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-quest-list small {
  overflow: hidden;
  color: var(--rx-c-148-163-184-1000);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-quest-list b {
  border-radius: 999px;
  padding: 5px 6px;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.manager-quest-list b.hot { background: var(--rx-c-251-113-133-160); color: var(--rx-c-253-164-175-1000); }
.manager-quest-list b.warm { background: var(--rx-c-251-191-36-160); color: var(--rx-c-253-230-138-1000); }
.manager-quest-list b.go { background: var(--rx-c-34-211-238-160); color: var(--rx-c-103-232-249-1000); }
.manager-quest-list b.done { background: var(--rx-c-163-230-53-140); color: var(--rx-c-190-242-100-1000); }

.manager-next-win {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border: 1px solid var(--rx-c-163-230-53-200);
  border-radius: 14px;
  padding: 13px;
  background: var(--rx-c-163-230-53-75);
}

.manager-next-win span {
  color: var(--rx-c-190-242-100-1000);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.manager-next-win strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-next-win p {
  margin: 0;
  color: var(--rx-c-203-213-225-1000);
  font-size: 10px;
  line-height: 1.4;
}

.manager-hold-bay {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--rx-c-245-158-11-360);
  border-radius: 24px;
  padding: 20px 22px;
  background:
    radial-gradient(320px 140px at 100% 0%, var(--rx-c-245-158-11-130), transparent 72%),
    linear-gradient(145deg, var(--rx-c-255-251-235-900), var(--rx-c-255-255-255-640));
  box-shadow: 0 14px 36px var(--rx-c-146-64-14-100);
}

.manager-hold-bay::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: repeating-linear-gradient(-45deg, var(--rx-c-245-158-11-1000) 0 7px, var(--rx-c-254-243-199-1000) 7px 14px);
}

.manager-hold-bay.empty {
  border-color: var(--rx-c-148-163-184-300);
  background: var(--rx-c-248-250-252-660);
  box-shadow: 0 12px 30px var(--rx-c-15-23-42-60);
}

.manager-hold-bay.empty::before {
  background: repeating-linear-gradient(-45deg, var(--rx-c-148-163-184-1000) 0 7px, var(--rx-c-226-232-240-1000) 7px 14px);
}

.manager-hold-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.manager-hold-head h3 {
  margin: 1px 0 2px;
  color: var(--rx-c-120-53-15-1000);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.manager-hold-bay.empty .manager-hold-head h3 { color: var(--ink); }

.manager-hold-head > div:nth-child(2) > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.manager-hold-symbol {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--rx-c-245-158-11-340);
  border-radius: 14px;
  background: var(--rx-c-254-243-199-1000);
  box-shadow: inset 0 0 0 4px var(--rx-c-255-255-255-480);
}

.manager-hold-symbol i {
  width: 5px;
  height: 17px;
  border-radius: 3px;
  background: var(--rx-c-180-83-9-1000);
}

.manager-hold-count {
  min-width: 96px;
  display: grid;
  justify-items: end;
  border: 1px solid var(--rx-c-245-158-11-270);
  border-radius: 13px;
  padding: 8px 11px;
  background: var(--rx-c-255-255-255-720);
  color: var(--rx-c-146-64-14-1000);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.manager-hold-count strong {
  color: var(--rx-c-180-83-9-1000);
  font-size: 22px;
  line-height: 1;
}

.manager-hold-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manager-hold-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rx-c-245-158-11-220);
  border-radius: 15px;
  padding: 10px;
  background: var(--rx-c-255-255-255-730);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.manager-hold-row:hover {
  transform: translateY(-1px);
  border-color: var(--rx-c-217-119-6-420);
  box-shadow: 0 10px 22px var(--rx-c-146-64-14-90);
}

.manager-hold-row-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 9px;
  background: var(--rx-c-254-243-199-1000);
}

.manager-hold-row-mark i {
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: var(--rx-c-217-119-6-1000);
}

.manager-hold-party {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.manager-hold-party strong,
.manager-hold-party small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-hold-party strong { font-size: 13px; }
.manager-hold-party small { color: var(--muted); font-size: 9px; font-weight: 700; }

.manager-hold-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.manager-hold-meta b {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--rx-c-254-243-199-1000);
  color: var(--rx-c-180-83-9-1000);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.manager-hold-meta small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.manager-hold-resume {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--rx-c-180-83-9-230);
  border-radius: 10px;
  padding: 0 10px;
  background: var(--rx-c-120-53-15-1000);
  color: var(--rx-c-255-255-255-1000);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.manager-hold-resume b { color: var(--rx-c-253-230-138-1000); font-size: 14px; }
.manager-hold-resume.view { background: var(--rx-c-254-243-199-1000); color: var(--rx-c-146-64-14-1000); }

.manager-hold-view-all,
.manager-hold-empty {
  width: 100%;
  border: 1px dashed var(--rx-c-217-119-6-320);
  border-radius: 12px;
  padding: 10px;
  background: var(--rx-c-254-243-199-480);
  color: var(--rx-c-146-64-14-1000);
  font-size: 10px;
  font-weight: 900;
}

.manager-hold-empty {
  display: grid;
  justify-items: start;
  gap: 2px;
  border-color: var(--rx-c-148-163-184-300);
  background: var(--rx-c-255-255-255-560);
  color: var(--ink);
  text-align: left;
}

.manager-hold-empty span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.hold-resume-note {
  display: grid;
  gap: 3px;
  border: 1px solid var(--rx-c-245-158-11-320);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--rx-c-255-251-235-1000);
}

.hold-resume-note strong { color: var(--rx-c-146-64-14-1000); font-size: 12px; }
.hold-resume-note span { color: var(--rx-c-161-98-7-1000); font-size: 11px; line-height: 1.45; }

@media (max-width: 1240px) {
  .manager-story-grid { grid-template-columns: 1fr; }
  .manager-quest-board { position: static; }
  .manager-quest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manager-hold-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .manager-mission-hero {
    grid-template-columns: minmax(0, 1fr) 175px;
    padding: 24px;
  }

  .manager-health-orbit { width: 165px; }
  .manager-health-orbit::before { width: 130px; }
  .manager-health-core strong { font-size: 35px; }
  .manager-party-open { grid-template-columns: 1fr; gap: 7px; }
  .manager-hurdle-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .manager-hurdle-tags { grid-column: 2; justify-content: flex-start; }
  .manager-clear-button { grid-column: 3; grid-row: 1 / span 2; }
  .manager-hold-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .manager-hold-meta { grid-column: 2; justify-items: start; text-align: left; }
  .manager-hold-resume { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 720px) {
  .manager-mission-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    border-radius: 22px;
    padding: 21px;
  }

  .manager-hero-copy h3 { font-size: clamp(32px, 11vw, 46px); }
  .manager-hero-actions { display: grid; grid-template-columns: 1fr; }
  .manager-primary-cta,
  .manager-secondary-cta { width: 100%; }
  .manager-health-orbit { width: 160px; justify-self: start; margin-left: 11px; }
  .manager-health-orbit::before { width: 126px; }
  .manager-hero-scoreboard { grid-template-columns: 1fr 1fr; }
  .manager-hero-scoreboard > div:nth-child(2) { border-right: 0; }
  .manager-hero-scoreboard > div:nth-child(-n + 2) { border-bottom: 1px solid var(--rx-c-255-255-255-100); }
  .manager-journey-map,
  .manager-hurdle-panel,
  .manager-quest-board { border-radius: 19px; padding: 17px; }
  .manager-section-heading { align-items: flex-start; flex-direction: column; }
  .manager-map-legend { display: none; }
  .manager-journey-rail { grid-template-columns: repeat(7, 260px); }
  .manager-hurdle-row { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .manager-hurdle-tags { grid-column: 2; }
  .manager-clear-button { width: 100%; grid-column: 1 / -1; grid-row: auto; }
  .manager-quest-list { grid-template-columns: 1fr; }
  .manager-hold-bay { border-radius: 19px; padding: 17px; }
  .manager-hold-head { grid-template-columns: 42px minmax(0, 1fr); }
  .manager-hold-count { grid-column: 1 / -1; width: 100%; justify-items: start; }
  .manager-hold-row { grid-template-columns: 30px minmax(0, 1fr); }
  .manager-hold-meta { grid-column: 2; }
  .manager-hold-resume { width: 100%; grid-column: 1 / -1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .manager-mission,
  html:not([data-motion="full"]) .manager-live-flag span,
  html:not([data-motion="full"]) .manager-orbit-dot,
  html:not([data-motion="full"]) .journey-stage-art {
    animation: none !important;
  }

  html:not([data-motion="full"]) .journey-checkpoint,
  html:not([data-motion="full"]) .manager-hurdle-row,
  html:not([data-motion="full"]) .manager-primary-cta,
  html:not([data-motion="full"]) .manager-secondary-cta {
    transition: none !important;
  }

  html:not([data-motion="full"]) .manager-hold-row { transition: none !important; }
}

/* =====================================================================
   GLOBAL MISSION CONTROL THEME
   Extends the Manager Mission navy / indigo / cyan / lime palette across
   every application surface while preserving amber and coral alerts.
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: var(--rx-c-7-23-45-1000);
  --panel: var(--rx-c-10-29-54-900);
  --panel-soft: var(--rx-c-20-48-82-820);
  --ink: var(--rx-c-248-250-252-1000);
  --muted: var(--rx-c-167-189-210-1000);
  --line: var(--rx-c-103-232-249-160);
  --glass-line: var(--rx-c-34-211-238-280);
  --blue: var(--rx-c-34-211-238-1000);
  --cyan: var(--rx-c-103-232-249-1000);
  --green: var(--rx-c-163-230-53-1000);
  --amber: var(--rx-c-251-191-36-1000);
  --red: var(--rx-c-251-113-133-1000);
  --violet: var(--rx-c-129-140-248-1000);
  --indigo: var(--rx-c-99-102-241-1000);
  --teal: var(--rx-c-45-212-191-1000);
  --shadow: 0 22px 60px var(--rx-c-2-8-23-380);
  --glass-blur: saturate(145%) blur(18px);
  --mc-deep: var(--rx-c-7-23-45-1000);
  --mc-navy: var(--rx-c-11-31-58-1000);
  --mc-surface: var(--rx-c-16-39-68-1000);
  --mc-surface-2: var(--rx-c-21-47-82-1000);
  --mc-indigo: var(--rx-c-49-46-129-1000);
  --mc-lime: var(--rx-c-163-230-53-1000);
  --mc-cyan: var(--rx-c-34-211-238-1000);
}

html {
  scrollbar-color: var(--rx-c-34-211-238-420) var(--rx-c-7-23-45-720);
}

body {
  background:
    radial-gradient(880px 520px at 76% -8%, var(--rx-c-79-70-229-380), transparent 64%),
    radial-gradient(720px 520px at 5% 5%, var(--rx-c-8-145-178-200), transparent 68%),
    radial-gradient(900px 640px at 50% 115%, var(--rx-c-34-211-238-120), transparent 66%),
    linear-gradient(145deg, var(--rx-c-6-19-38-1000) 0%, var(--rx-c-11-31-58-1000) 48%, var(--rx-c-23-37-84-1000) 100%);
  background-attachment: fixed;
  color: var(--ink);
}

::selection {
  background: var(--rx-c-163-230-53-320);
  color: var(--rx-c-255-255-255-1000);
}

.workspace {
  background:
    linear-gradient(var(--rx-c-103-232-249-25) 1px, transparent 1px),
    linear-gradient(90deg, var(--rx-c-103-232-249-25) 1px, transparent 1px);
  background-size: 40px 40px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
}

.eyebrow {
  color: var(--cyan);
}

label,
.count-line {
  color: var(--muted);
}

/* Login */
.login-screen {
  background:
    radial-gradient(620px 420px at 18% 6%, var(--rx-c-34-211-238-200), transparent 64%),
    radial-gradient(700px 520px at 100% 100%, var(--rx-c-79-70-229-420), transparent 66%),
    linear-gradient(145deg, var(--rx-c-6-19-38-1000), var(--rx-c-11-31-58-1000) 48%, var(--rx-c-23-37-84-1000));
}

.login-panel {
  border-color: var(--rx-c-103-232-249-250);
  background:
    radial-gradient(300px 170px at 100% 0%, var(--rx-c-79-70-229-270), transparent 70%),
    linear-gradient(155deg, var(--rx-c-11-31-58-960), var(--rx-c-16-39-68-900));
  box-shadow: 0 28px 80px var(--rx-c-2-8-23-480), inset 0 1px 0 var(--rx-c-103-232-249-100);
}

.login-panel .brand-mark,
.brand-mark,
.avatar-large {
  background: linear-gradient(145deg, var(--mc-lime), var(--rx-c-101-163-13-1000));
  color: var(--rx-c-19-32-5-1000);
  box-shadow: 0 10px 28px var(--rx-c-163-230-53-220);
}

.test-note {
  border-color: var(--rx-c-251-191-36-280);
  background: var(--rx-c-120-53-15-260);
  color: var(--rx-c-253-230-138-1000);
}

/* Shell and navigation */
.sidebar,
.designer-session .sidebar {
  border-color: var(--rx-c-103-232-249-140);
  background:
    radial-gradient(260px 220px at 0% 0%, var(--rx-c-34-211-238-120), transparent 72%),
    linear-gradient(180deg, var(--rx-c-5-18-36-980), var(--rx-c-11-31-58-980)) !important;
  box-shadow: 12px 0 40px var(--rx-c-2-8-23-260);
}

.sidebar-toggle {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-34-211-238-80);
  color: var(--cyan);
}

.nav-tab {
  color: var(--rx-c-147-171-195-1000);
}

.nav-tab:hover {
  border-color: var(--rx-c-34-211-238-140);
  background: var(--rx-c-34-211-238-70);
  color: var(--cyan);
}

.nav-tab.active {
  border-color: var(--rx-c-163-230-53-280);
  background: linear-gradient(135deg, var(--rx-c-163-230-53-170), var(--rx-c-34-211-238-80));
  color: var(--rx-c-217-249-157-1000);
  box-shadow: inset 3px 0 0 var(--mc-lime), 0 10px 24px var(--rx-c-2-8-23-200);
}

.session-card {
  border-color: var(--rx-c-103-232-249-160);
  background: var(--rx-c-16-39-68-720);
}

.session-card span { color: var(--cyan); }

#logoutBtn {
  border-color: var(--rx-c-251-113-133-180);
  background: var(--rx-c-251-113-133-90);
  color: var(--rx-c-254-205-211-1000);
}

.topbar {
  border-bottom: 1px solid var(--rx-c-103-232-249-100);
  padding-bottom: 14px;
}

.topbar h2 {
  color: var(--rx-c-255-255-255-1000);
  letter-spacing: -0.03em;
}

.sync-chip {
  border-color: var(--rx-c-163-230-53-280);
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

/* Controls */
select,
input,
textarea,
.designer-table select,
.designer-table input,
.designer-table textarea,
.designer-list-row select,
.designer-list-row textarea,
.binding-order-actions select,
.binding-order-actions input,
.ai-chat-form textarea {
  border-color: var(--rx-c-103-232-249-200);
  background: var(--rx-c-6-19-38-760);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--rx-c-103-232-249-35);
}

select option {
  background: var(--mc-navy);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--rx-c-111-138-164-1000);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.7) sepia(0.25) hue-rotate(120deg);
}

select:focus,
input:focus,
textarea:focus,
.designer-status-select select:focus {
  border-color: var(--rx-c-163-230-53-700);
  box-shadow: 0 0 0 3px var(--rx-c-163-230-53-130);
}

.primary-action,
#refreshBtn,
.designer-save,
.binding-ready-action,
.ai-insight-panel #aiGenerateBtn,
.ai-chat-form button {
  border: 0;
  background: linear-gradient(135deg, var(--mc-lime), var(--rx-c-132-204-22-1000));
  color: var(--rx-c-23-35-10-1000);
  box-shadow: 0 11px 28px var(--rx-c-163-230-53-180);
}

#refreshBtn {
  background: linear-gradient(135deg, var(--mc-cyan), var(--rx-c-8-145-178-1000));
  color: var(--rx-c-4-24-39-1000);
  box-shadow: 0 11px 28px var(--rx-c-34-211-238-180);
}

.primary-action:hover,
#refreshBtn:hover,
.designer-save:hover,
.binding-ready-action:hover {
  filter: brightness(1.08);
}

.icon-button,
.modal-actions button,
#markAllReadBtn,
.filter-row button,
.summary-row,
.card-open,
.sheet-link,
.designer-approved-open,
.ai-chat-clear {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-21-47-82-720);
  color: var(--ink);
}

.modal-actions .primary-action {
  background: linear-gradient(135deg, var(--mc-lime), var(--rx-c-132-204-22-1000));
  color: var(--rx-c-23-35-10-1000);
}

/* Shared panels */
.metric-card,
.panel,
.order-card,
.alert-card,
.active-filter-panel,
.chart-card,
.binding-overview,
.binding-party-card,
.designer-sheet-panel,
.manager-journey-map,
.manager-hurdle-panel,
.manager-hold-bay {
  border-color: var(--rx-c-103-232-249-170);
  background:
    radial-gradient(340px 160px at 100% 0%, var(--rx-c-79-70-229-150), transparent 72%),
    linear-gradient(155deg, var(--rx-c-11-31-58-940), var(--rx-c-16-39-68-870));
  box-shadow: 0 18px 44px var(--rx-c-2-8-23-300), inset 0 1px 0 var(--rx-c-103-232-249-55);
}

.metric-card span,
.dashboard-month-toolbar > div > span,
.mini-stat span,
.summary-row span,
.order-meta,
.money-stack,
.detail-hero span,
.detail-hero p,
.detail-item span,
.manager-map-legend {
  color: var(--muted);
}

.metric-card strong,
.mini-stat strong,
.money-stack strong,
.summary-row strong,
.detail-item strong {
  color: var(--ink);
}

.metric-card em {
  background: linear-gradient(90deg, var(--mc-lime), var(--mc-cyan));
}

.summary-row,
.mini-stat,
.detail-hero,
.detail-item {
  border-color: var(--rx-c-103-232-249-130) !important;
  background: var(--rx-c-21-47-82-620) !important;
}

.summary-row:hover,
.card-open:hover {
  background: var(--rx-c-31-62-102-780) !important;
}

.active-filter-panel {
  background:
    radial-gradient(420px 180px at 0% 0%, var(--rx-c-34-211-238-110), transparent 68%),
    linear-gradient(155deg, var(--rx-c-11-31-58-940), var(--rx-c-16-39-68-880));
}

.active-filter-head > span,
.analytics-total-chip {
  border-color: var(--rx-c-34-211-238-220);
  background: var(--rx-c-34-211-238-80);
  color: var(--cyan);
}

.filter-row button {
  color: var(--rx-c-186-208-227-1000);
}

.filter-row button:hover {
  border-color: var(--rx-c-34-211-238-340);
  background: var(--rx-c-34-211-238-100);
  color: var(--rx-c-255-255-255-1000);
}

.filter-row button.selected {
  border-color: var(--rx-c-163-230-53-350);
  background: linear-gradient(135deg, var(--rx-c-163-230-53-180), var(--rx-c-34-211-238-100));
  color: var(--rx-c-217-249-157-1000);
}

.filter-row button.selected strong {
  background: linear-gradient(135deg, var(--mc-lime), var(--rx-c-132-204-22-1000));
  color: var(--rx-c-23-35-10-1000);
}

/* Charts and analytics */
.chart-card {
  background:
    radial-gradient(420px 180px at 12% -16%, var(--rx-c-34-211-238-130), transparent 64%),
    linear-gradient(145deg, var(--rx-c-16-39-68-900), var(--rx-c-11-31-58-940));
  box-shadow: inset 0 1px 0 var(--rx-c-103-232-249-60), 0 16px 38px var(--rx-c-2-8-23-280);
}

.chart-card:hover {
  border-color: var(--rx-c-163-230-53-340);
  box-shadow: inset 0 1px 0 var(--rx-c-103-232-249-80), 0 20px 46px var(--rx-c-2-8-23-340);
}

.chart-type-chip {
  border-color: var(--rx-c-34-211-238-200);
  background: var(--rx-c-34-211-238-80);
  color: var(--cyan);
}

.chart-track {
  fill: var(--rx-c-103-232-249-60);
  stroke: var(--rx-c-103-232-249-140);
}

.chart-axis-label { fill: var(--rx-c-159-182-202-1000); }
.chart-value { fill: var(--rx-c-248-250-252-1000); }
.donut-track { stroke: var(--rx-c-103-232-249-100); }
.donut-legend-row:hover { background: var(--rx-c-34-211-238-70); }
.chart-empty { border-color: var(--rx-c-34-211-238-240); background: var(--rx-c-7-23-45-400); }

/* Order cards, alerts, details, and profile */
.order-card,
.alert-card {
  overflow: hidden;
}

.order-card:hover,
.alert-card:hover {
  border-color: var(--rx-c-34-211-238-340);
  box-shadow: 0 20px 48px var(--rx-c-2-8-23-350), 0 0 0 1px var(--rx-c-34-211-238-60);
}

.card-open {
  background: transparent;
  color: var(--ink);
}

.order-details,
.alert-card p,
.detail-block p,
.binding-order-copy > p,
.designer-job-detail p {
  color: var(--rx-c-183-201-217-1000);
}

.status-pill {
  border: 1px solid var(--rx-c-34-211-238-230);
  background: var(--rx-c-34-211-238-110);
  color: var(--rx-c-103-232-249-1000);
}

.priority-pill {
  border: 1px solid var(--rx-c-129-140-248-220);
  background: var(--rx-c-99-102-241-130);
  color: var(--rx-c-199-210-254-1000);
}

.priority-pill.urgent {
  border-color: var(--rx-c-251-113-133-250);
  background: var(--rx-c-251-113-133-120);
  color: var(--rx-c-253-164-175-1000);
}

.priority-pill.high {
  border-color: var(--rx-c-251-191-36-250);
  background: var(--rx-c-251-191-36-120);
  color: var(--rx-c-253-230-138-1000);
}

.alert-card.unread {
  border-color: var(--rx-c-34-211-238-320);
  background: linear-gradient(155deg, var(--rx-c-14-71-96-720), var(--rx-c-16-39-68-900));
}

.empty-state,
.designer-empty {
  border-color: var(--rx-c-34-211-238-250);
  background: var(--rx-c-7-23-45-450);
  color: var(--muted);
}

.profile-panel .avatar-large { color: var(--rx-c-23-35-10-1000); }

#profileLogoutBtn {
  border-color: var(--rx-c-251-113-133-220);
  background: var(--rx-c-251-113-133-100);
  color: var(--rx-c-253-164-175-1000);
}

/* Modal and forms */
.modal-layer {
  background: var(--rx-c-2-8-23-740);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-panel {
  border-left-color: var(--rx-c-103-232-249-200);
  background:
    radial-gradient(420px 220px at 100% 0%, var(--rx-c-79-70-229-220), transparent 70%),
    linear-gradient(165deg, var(--rx-c-9-26-50-1000), var(--rx-c-16-39-68-1000) 65%, var(--rx-c-23-37-84-1000));
  box-shadow: -24px 0 70px var(--rx-c-2-8-23-500);
}

.modal-header {
  border-color: var(--rx-c-103-232-249-140);
  background: var(--rx-c-7-23-45-900);
}

.detail-block {
  border-color: var(--rx-c-103-232-249-140);
  background: var(--rx-c-16-39-68-680);
}

.stage-confirm-wrap {
  border-color: var(--rx-c-34-211-238-240);
  background: var(--rx-c-16-39-68-580);
}

.hold-resume-note {
  border-color: var(--rx-c-251-191-36-280);
  background: var(--rx-c-120-53-15-250);
}

.hold-resume-note strong { color: var(--rx-c-253-230-138-1000); }
.hold-resume-note span { color: var(--rx-c-252-211-77-1000); }

.error-box,
.modal-message,
.ai-chat-error {
  border-color: var(--rx-c-251-113-133-300);
  background: var(--rx-c-136-19-55-280);
  color: var(--rx-c-254-205-211-1000);
}

/* Pending and AI */
.pending-alert-banner {
  border-color: var(--rx-c-251-113-133-320);
  background: var(--rx-c-136-19-55-250);
  color: var(--rx-c-254-205-211-1000);
}

.ai-chat-suggestions button {
  border-color: var(--rx-c-34-211-238-220);
  background: var(--rx-c-34-211-238-80);
  color: var(--rx-c-165-243-252-1000);
}

.ai-chat-log {
  border-color: var(--rx-c-34-211-238-180);
  background: var(--rx-c-5-18-36-580);
}

.ai-chat-message > div {
  border-color: var(--rx-c-103-232-249-160);
  background: var(--rx-c-21-47-82-860);
  color: var(--ink);
}

.ai-chat-message.user > div {
  border-color: var(--rx-c-163-230-53-240);
  background: linear-gradient(135deg, var(--rx-c-79-70-229-1000), var(--rx-c-14-116-144-1000));
}

.ai-chat-note {
  background: var(--rx-c-120-53-15-250);
  color: var(--rx-c-253-230-138-1000);
}

.ai-stuck-row {
  border-color: var(--rx-c-103-232-249-150);
  background: var(--rx-c-16-39-68-720);
}

.ai-stage-pill {
  background: var(--rx-c-34-211-238-110);
  color: var(--cyan);
}

.ai-insight-panel #aiDownloadPdfBtn {
  background: linear-gradient(135deg, var(--rx-c-45-212-191-1000), var(--rx-c-15-118-110-1000));
  color: var(--rx-c-3-44-42-1000);
}

/* Binding workflow */
.binding-overview,
.binding-party-card {
  border-color: var(--rx-c-103-232-249-170);
}

.binding-summary,
.binding-status-tab,
.binding-party-head,
.binding-order-row {
  border-color: var(--rx-c-103-232-249-130);
  background: var(--rx-c-16-39-68-660);
}

.binding-status-tab { color: var(--muted); }
.binding-status-tab strong { color: var(--ink); }

.binding-status-tab.selected {
  border-color: var(--rx-c-129-140-248-400);
  background: linear-gradient(145deg, var(--rx-c-79-70-229-320), var(--rx-c-16-39-68-740));
  color: var(--rx-c-199-210-254-1000);
  box-shadow: 0 12px 28px var(--rx-c-2-8-23-260), inset 0 1px 0 var(--rx-c-165-180-252-80);
}

.binding-tab-ready.selected {
  border-color: var(--rx-c-163-230-53-340);
  background: linear-gradient(145deg, var(--rx-c-101-163-13-250), var(--rx-c-16-39-68-740));
  color: var(--rx-c-217-249-157-1000);
}

.binding-party-head {
  border-bottom-color: var(--rx-c-103-232-249-130);
}

.binding-count-chip {
  background: var(--rx-c-129-140-248-150);
  color: var(--rx-c-199-210-254-1000) !important;
}

.ready-count-chip {
  background: var(--rx-c-163-230-53-130);
  color: var(--rx-c-217-249-157-1000) !important;
}

.binding-order-row,
.binding-order-row.is-ready {
  border-bottom-color: var(--rx-c-103-232-249-120);
  background: var(--rx-c-7-23-45-280);
}

.binding-ready-state {
  border-color: var(--rx-c-163-230-53-280);
  background: var(--rx-c-101-163-13-130);
  color: var(--rx-c-217-249-157-1000);
}

.binding-ready-state > span:last-child { color: var(--rx-c-185-213-138-1000); }
.ready-check { background: var(--mc-lime); color: var(--rx-c-23-35-10-1000); }

/* Designer workboards and tables */
.designer-sheet-panel,
.designer-grid-wrap,
.designer-list-shell {
  border-color: var(--rx-c-103-232-249-170);
  background: linear-gradient(165deg, var(--rx-c-11-31-58-950), var(--rx-c-16-39-68-880));
}

.designer-toolbar {
  border-bottom-color: var(--rx-c-103-232-249-150);
  background: linear-gradient(135deg, var(--rx-c-49-46-129-450), var(--rx-c-14-116-144-220));
}

.designer-toolbar p,
.designer-date-control,
.designer-section-head span,
.designer-section-head > strong,
.designer-conversion-head span,
.designer-live-group-head span,
.designer-job-head span,
.designer-job-detail span,
.designer-editor-grid label {
  color: var(--rx-c-165-243-252-1000);
}

.designer-personal-tabs,
.designer-eod-board,
.designer-month-board {
  border-color: var(--rx-c-103-232-249-130);
  background: var(--rx-c-7-23-45-260);
}

.designer-personal-tabs button {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-21-47-82-720);
  color: var(--rx-c-165-243-252-1000);
}

.designer-personal-tabs button strong {
  background: var(--rx-c-34-211-238-100);
  color: var(--cyan);
}

.designer-personal-tabs button.selected {
  border-color: var(--rx-c-163-230-53-360);
  background: linear-gradient(135deg, var(--rx-c-79-70-229-1000), var(--rx-c-14-116-144-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 12px 28px var(--rx-c-2-8-23-300);
}

.designer-page-stat,
.designer-live-group,
.designer-live-order,
.designer-eod-filter-strip,
.designer-eod-row,
.designer-conversion-row,
.designer-job-card,
.designer-job-detail {
  border-color: var(--rx-c-103-232-249-150);
  background: var(--rx-c-16-39-68-720);
  box-shadow: 0 12px 28px var(--rx-c-2-8-23-220);
}

.designer-page-stat.leader,
.designer-page-stat-hero,
.designer-conversion-row.leader {
  border-color: var(--rx-c-163-230-53-300);
  background: linear-gradient(135deg, var(--rx-c-79-70-229-320), var(--rx-c-14-116-144-240));
}

.designer-page-stat strong,
.designer-page-stat-hero strong,
.designer-section-head h4,
.designer-conversion-head h4,
.designer-conversion-name strong,
.designer-live-group-head strong,
.designer-live-order strong,
.designer-eod-row strong,
.designer-job-head strong,
.designer-job-detail strong,
.designer-approved-party strong,
.designer-party-cell strong {
  color: var(--ink);
}

.designer-page-stat-hero strong,
.designer-conversion-score strong,
.designer-approved-pages {
  color: var(--mc-lime) !important;
}

.designer-page-stat span,
.designer-live-order em {
  color: var(--cyan);
}

.designer-page-stat em,
.designer-live-order span,
.designer-eod-row span,
.designer-conversion-name span,
.designer-conversion-track small,
.designer-conversion-score span,
.designer-approved-party span,
.designer-list-actions span,
.designer-job-actions,
.designer-plain-cell,
.designer-job-text {
  color: var(--muted);
}

.designer-live-group-head,
.designer-list-head,
.designer-table th,
.designer-approved-table th {
  border-color: var(--rx-c-103-232-249-160);
  background: linear-gradient(135deg, var(--rx-c-49-46-129-820), var(--rx-c-14-116-144-620));
  color: var(--rx-c-236-254-255-1000);
}

.designer-live-order:hover,
.designer-eod-row:hover {
  border-color: var(--rx-c-163-230-53-320);
  background: var(--rx-c-24-57-92-880);
}

.designer-grid-wrap,
.designer-list-shell,
.designer-table,
.designer-approved-table {
  background: var(--rx-c-7-23-45-760);
}

.designer-table th,
.designer-table td,
.designer-approved-table th,
.designer-approved-table td,
.designer-list-row,
.designer-list-row > * {
  border-color: var(--rx-c-103-232-249-120);
}

.designer-table td,
.designer-approved-table td,
.designer-party-cell,
.designer-plain-cell,
.designer-job-text,
.designer-list-actions {
  color: var(--rx-c-191-208-223-1000);
  background: var(--rx-c-10-29-54-720);
}

.designer-table tbody tr:nth-child(even) td,
.designer-approved-table tbody tr:nth-child(even) td,
.designer-list-row:nth-child(odd) > * {
  background: var(--rx-c-16-39-68-720);
}

.designer-status-select::after {
  border-color: var(--mc-lime);
}

.designer-status-select select {
  border-color: var(--rx-c-103-232-249-220);
  background: linear-gradient(180deg, var(--rx-c-16-39-68-960), var(--rx-c-7-23-45-960));
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--rx-c-103-232-249-50);
}

.designer-list-row select,
.designer-list-row textarea {
  border-color: var(--rx-c-103-232-249-120);
  background: var(--rx-c-6-19-38-720);
}

.designer-approved-by,
.designer-status-chip {
  background: var(--rx-c-45-212-191-130);
  color: var(--rx-c-153-246-228-1000) !important;
}

.designer-approved-status {
  background: var(--rx-c-34-211-238-110);
  color: var(--cyan);
}

.designer-conversion-bar {
  background: var(--rx-c-34-211-238-100);
}

.designer-conversion-bar span {
  background: linear-gradient(90deg, var(--mc-cyan), var(--mc-lime));
}

/* Manager mission supporting surfaces */
.manager-journey-map,
.manager-hurdle-panel {
  background:
    radial-gradient(420px 180px at 100% 0%, var(--rx-c-79-70-229-170), transparent 70%),
    linear-gradient(155deg, var(--rx-c-11-31-58-950), var(--rx-c-16-39-68-900));
}

.journey-checkpoint {
  border-color: var(--rx-c-103-232-249-160);
  background: linear-gradient(160deg, var(--rx-c-21-47-82-900), var(--rx-c-7-23-45-900));
  color: var(--ink);
}

.journey-checkpoint.blocked {
  border-color: var(--rx-c-251-113-133-320);
  background: linear-gradient(160deg, var(--rx-c-76-29-58-680), var(--rx-c-7-23-45-900));
}

.journey-checkpoint.finish {
  border-color: var(--rx-c-163-230-53-340);
  background: linear-gradient(155deg, var(--rx-c-77-124-15-350), var(--rx-c-7-23-45-900));
}

.journey-step-top i {
  background: var(--rx-c-34-211-238-110);
  color: var(--cyan);
}

.journey-checkpoint.blocked .journey-step-top i {
  background: var(--rx-c-251-113-133-130);
  color: var(--rx-c-253-164-175-1000);
}

.journey-checkpoint.finish .journey-step-top i {
  background: var(--rx-c-163-230-53-160);
  color: var(--rx-c-217-249-157-1000);
}

.journey-step-top b {
  border-color: var(--rx-c-163-230-53-420);
  background: var(--rx-c-163-230-53-160);
  color: var(--rx-c-217-249-157-1000);
}

.journey-checkpoint.blocked .journey-step-top b {
  border-color: var(--rx-c-163-230-53-480);
  background: var(--rx-c-163-230-53-200);
  color: var(--rx-c-217-249-157-1000);
}

.journey-stage-copy small,
.journey-stage-copy em,
.journey-stage-count small {
  color: var(--muted);
}

.journey-stage-copy strong,
.journey-stage-count strong {
  color: var(--ink);
}

.manager-hurdle-row {
  border-color: var(--rx-c-103-232-249-140);
  background: var(--rx-c-16-39-68-680);
}

.manager-hurdle-row:hover {
  border-color: var(--rx-c-34-211-238-340);
  background: var(--rx-c-24-57-92-880);
}

.manager-party-open,
.manager-hold-party {
  color: var(--ink);
}

.manager-party-title small,
.manager-route small,
.manager-hold-party small,
.manager-hold-meta small {
  color: var(--muted);
}

.manager-route strong { color: var(--rx-c-153-246-228-1000); }
.manager-rank { background: var(--rx-c-34-211-238-100); color: var(--cyan); }
.manager-hurdle-row.critical .manager-rank,
.manager-hurdle-row.overdue .manager-rank { background: var(--rx-c-251-113-133-130); color: var(--rx-c-253-164-175-1000); }
.manager-time-chip { background: var(--rx-c-34-211-238-100); color: var(--cyan); }
.critical .manager-time-chip,
.overdue .manager-time-chip { background: var(--rx-c-251-113-133-120); color: var(--rx-c-253-164-175-1000); }

.manager-hold-bay,
.manager-hold-bay.empty {
  border-color: var(--rx-c-251-191-36-280);
  background:
    radial-gradient(340px 160px at 100% 0%, var(--rx-c-245-158-11-130), transparent 70%),
    linear-gradient(155deg, var(--rx-c-51-35-24-860), var(--rx-c-11-31-58-940));
  box-shadow: 0 18px 44px var(--rx-c-2-8-23-300), inset 0 1px 0 var(--rx-c-251-191-36-50);
}

.manager-hold-head h3,
.manager-hold-bay.empty .manager-hold-head h3 { color: var(--rx-c-253-230-138-1000); }
.manager-hold-head > div:nth-child(2) > p:last-child { color: var(--muted); }
.manager-hold-symbol,
.manager-hold-row-mark { border-color: var(--rx-c-251-191-36-240); background: var(--rx-c-245-158-11-130); }
.manager-hold-symbol i,
.manager-hold-row-mark i { background: var(--rx-c-251-191-36-1000); }
.manager-hold-count { border-color: var(--rx-c-251-191-36-240); background: var(--rx-c-120-53-15-220); color: var(--rx-c-253-230-138-1000); }
.manager-hold-count strong { color: var(--rx-c-251-191-36-1000); }

.manager-hold-row {
  border-color: var(--rx-c-251-191-36-180);
  background: var(--rx-c-41-36-37-720);
}

.manager-hold-row:hover {
  border-color: var(--rx-c-251-191-36-360);
  box-shadow: 0 12px 28px var(--rx-c-2-8-23-250);
}

.manager-hold-meta b { background: var(--rx-c-245-158-11-130); color: var(--rx-c-253-230-138-1000); }
.manager-hold-resume { border-color: var(--rx-c-251-191-36-240); background: var(--rx-c-251-191-36-1000); color: var(--rx-c-43-24-4-1000); }
.manager-hold-resume b { color: var(--rx-c-43-24-4-1000); }
.manager-hold-resume.view { background: var(--rx-c-245-158-11-130); color: var(--rx-c-253-230-138-1000); }
.manager-hold-view-all,
.manager-hold-empty { border-color: var(--rx-c-251-191-36-240); background: var(--rx-c-120-53-15-180); color: var(--rx-c-253-230-138-1000); }
.manager-hold-empty span { color: var(--muted); }

@media (max-width: 980px) {
  .sidebar,
  .designer-session .sidebar {
    border-bottom-color: var(--rx-c-103-232-249-140);
    box-shadow: 0 12px 34px var(--rx-c-2-8-23-260);
  }
}

/* Final cascade placement for the v1.30 workflow presentation. */
.manager-journey-map {
  position: relative;
  padding: 28px 22px 24px;
  border-color: var(--rx-c-56-189-248-220);
  background:
    radial-gradient(700px 260px at 50% -12%, var(--rx-c-59-130-246-200), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, var(--rx-c-34-211-238-80), transparent 72%),
    linear-gradient(180deg, var(--rx-c-5-19-41-1000) 0%, var(--rx-c-6-26-53-1000) 58%, var(--rx-c-7-26-50-1000) 100%);
  box-shadow: 0 22px 54px var(--rx-c-2-8-23-460), inset 0 1px 0 var(--rx-c-125-211-252-80);
}

.manager-section-heading.manager-workflow-heading {
  display: grid;
  place-items: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.manager-workflow-title {
  width: min(100%, 560px);
}

.manager-workflow-title h3 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.035em;
}

.manager-journey-rail {
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: 24px;
  margin-top: -22px;
  padding: 44px 7px 72px;
  scrollbar-color: var(--rx-c-56-189-248-380) transparent;
}

.journey-checkpoint,
.journey-checkpoint.blocked,
.journey-checkpoint.finish {
  min-height: 420px;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border-color: rgba(var(--stage-rgb), 0.76);
  border-radius: 18px;
  padding: 18px 14px 20px;
  background:
    radial-gradient(190px 200px at 50% 30%, rgba(var(--stage-rgb), 0.18), transparent 72%),
    linear-gradient(180deg, rgba(var(--stage-rgb), 0.1), var(--rx-c-3-14-33-970) 80%);
  box-shadow:
    0 0 0 1px rgba(var(--stage-rgb), 0.08),
    0 0 24px rgba(var(--stage-rgb), 0.16),
    inset 0 0 28px rgba(var(--stage-rgb), 0.045);
  text-align: center;
}

.journey-checkpoint::after,
.journey-checkpoint.blocked::after,
.journey-checkpoint.finish::after {
  top: -1px;
  right: 44px;
  bottom: auto;
  left: 44px;
  height: 2px;
  background: var(--stage-color);
  box-shadow: 0 0 15px rgba(var(--stage-rgb), 0.92), 0 0 28px rgba(var(--stage-rgb), 0.5);
  opacity: 1;
}

.journey-checkpoint:hover,
.journey-checkpoint:focus-visible {
  transform: translateY(-7px);
  border-color: var(--stage-color);
  box-shadow: 0 0 34px rgba(var(--stage-rgb), 0.3), inset 0 0 32px rgba(var(--stage-rgb), 0.07);
}

.journey-step-top { justify-content: center; min-height: 30px; }
.journey-step-top b {
  padding: 7px 13px;
  border-color: rgba(var(--stage-rgb), 0.6);
  background: rgba(var(--stage-rgb), 0.15);
  color: var(--stage-color);
  box-shadow: 0 0 17px rgba(var(--stage-rgb), 0.2), inset 0 0 10px rgba(var(--stage-rgb), 0.08);
  font-size: 11px;
}
.journey-checkpoint.blocked .journey-step-top b {
  border-color: var(--rx-c-163-230-53-580);
  background: var(--rx-c-101-163-13-250);
  color: var(--rx-c-217-249-157-1000);
}

.journey-stage-visual {
  display: grid;
  grid-template-rows: 132px minmax(100px, 1fr);
  align-items: center;
  min-height: 250px;
}
.journey-stage-art.journey-photo-icon {
  position: static;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 19px var(--rx-c-2-8-23-420)) drop-shadow(0 0 12px rgba(var(--stage-rgb), 0.16));
}
.journey-stage-count { display: grid; place-items: center; padding: 0; }
.journey-stage-count strong,
.journey-checkpoint.blocked .journey-stage-count strong,
.journey-checkpoint.finish .journey-stage-count strong {
  color: var(--stage-color);
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-shadow: 0 0 14px rgba(var(--stage-rgb), 0.48), 0 0 34px rgba(var(--stage-rgb), 0.26);
}
.journey-stage-copy { min-height: 58px; align-content: end; justify-items: center; text-align: center; }
.journey-stage-copy strong { color: var(--rx-c-255-255-255-1000); font-size: 19px; line-height: 1.1; }
.journey-stage-copy em { color: var(--rx-c-213-226-239-1000); font-size: 11.5px; }

.journey-connector {
  top: 50%;
  right: -22px;
  width: 15px;
  height: 15px;
  border: 0;
  border-right: 4px solid var(--stage-color);
  border-bottom: 4px solid var(--stage-color);
  background: transparent;
  box-shadow: 5px 5px 12px rgba(var(--stage-rgb), 0.48);
  transform: translateY(-50%) rotate(-45deg);
}
.journey-connector::after {
  top: 6px;
  right: -11px;
  width: 10px;
  height: 10px;
  border: 0;
  border-right: 3px solid var(--stage-color);
  border-bottom: 3px solid var(--stage-color);
  transform: translate(-2px, -2px);
}

@media (max-width: 720px) {
  .manager-journey-map { padding: 23px 17px 18px; }
  .manager-section-heading.manager-workflow-heading { margin-bottom: 24px; }
  .manager-workflow-title h3 { font-size: 40px; }
  .manager-journey-rail { grid-template-columns: repeat(7, 230px); gap: 22px; margin-top: -20px; padding: 40px 7px 70px; }
  .journey-checkpoint,
  .journey-checkpoint.blocked,
  .journey-checkpoint.finish { min-height: 410px; }
}

/* =====================================================================
   V1.31.0 UNIFIED OPERATIONAL LIST THEME
   Deep command-blue surfaces with mission-lime structure and interaction.
   ===================================================================== */
:root {
  --list-navy: var(--rx-c-7-26-50-1000);
  --list-navy-raised: var(--rx-c-13-43-76-1000);
  --list-navy-hover: var(--rx-c-18-56-93-1000);
  --list-lime: var(--rx-c-163-230-53-1000);
  --list-lime-soft: var(--rx-c-163-230-53-180);
  --list-lime-line: var(--rx-c-163-230-53-300);
}

.orders-list,
.alerts-list,
.row-list,
.ai-stuck-list,
.binding-party-list,
.binding-order-list,
.designer-live-orders,
.designer-eod-list,
.designer-conversion-list,
.designer-worklist,
.manager-hurdle-list {
  gap: 10px;
}

.order-card,
.alert-card,
.summary-row,
.donut-legend-row,
.ai-stuck-row,
.binding-party-card,
.binding-order-row,
.binding-order-row.is-ready,
.designer-live-group,
.designer-live-order,
.designer-eod-row,
.designer-conversion-row,
.designer-job-card,
.manager-hurdle-row {
  border-color: var(--list-lime-line);
  background:
    radial-gradient(360px 110px at 100% 0%, var(--rx-c-163-230-53-75), transparent 72%),
    linear-gradient(145deg, var(--rx-c-7-26-50-980), var(--rx-c-13-43-76-920));
  box-shadow: inset 0 1px 0 var(--rx-c-217-249-157-45), 0 10px 26px var(--rx-c-2-8-23-220);
}

.order-card,
.binding-party-card,
.designer-live-group,
.designer-job-card {
  border-left: 3px solid var(--rx-c-163-230-53-720);
}

.binding-order-row,
.binding-order-row.is-ready,
.designer-live-order,
.designer-eod-row {
  border-left: 2px solid var(--rx-c-163-230-53-500);
}

.order-card:hover,
.alert-card:hover,
.summary-row:hover,
.donut-legend-row:hover,
.ai-stuck-row:hover,
.binding-party-card:hover,
.binding-order-row:hover,
.designer-live-group:hover,
.designer-live-order:hover,
.designer-eod-row:hover,
.designer-conversion-row:hover,
.designer-job-card:hover,
.manager-hurdle-row:hover {
  border-color: var(--rx-c-163-230-53-620);
  background:
    radial-gradient(380px 120px at 100% 0%, var(--rx-c-163-230-53-150), transparent 72%),
    linear-gradient(145deg, var(--rx-c-9-34-61-990), var(--rx-c-18-56-93-940));
  box-shadow: 0 15px 34px var(--rx-c-2-8-23-300), 0 0 0 1px var(--rx-c-163-230-53-80);
}

.card-open,
.binding-order-copy,
.designer-live-order,
.designer-eod-row,
.designer-job-card {
  color: var(--rx-c-248-250-252-1000);
}

.order-title strong,
.binding-party-head h4,
.binding-order-copy strong,
.designer-live-group-head strong,
.designer-live-order strong,
.designer-eod-row strong,
.designer-job-head strong,
.designer-party-cell strong,
.ai-stuck-row strong,
.manager-party-title strong {
  color: var(--rx-c-248-250-252-1000);
}

.order-meta,
.order-details,
.binding-order-copy > p,
.designer-live-order span,
.designer-eod-row span,
.designer-job-text,
.designer-plain-cell,
.ai-stuck-row p,
.manager-party-title small {
  color: var(--rx-c-169-190-210-1000);
}

.status-pill,
.designer-status-chip,
.designer-approved-by,
.ai-stage-pill,
.binding-count-chip,
.ready-count-chip,
.binding-ready-state {
  border: 1px solid var(--rx-c-163-230-53-340);
  background: var(--rx-c-101-163-13-180);
  color: var(--rx-c-217-249-157-1000) !important;
}

.alert-card.unread {
  border-color: var(--rx-c-163-230-53-500);
  background:
    radial-gradient(380px 120px at 100% 0%, var(--rx-c-163-230-53-140), transparent 72%),
    linear-gradient(145deg, var(--rx-c-7-26-50-980), var(--rx-c-13-43-76-940));
}

.ai-stuck-row.warn { border-left-color: var(--amber); }
.ai-stuck-row.critical { border-left-color: var(--red); }

.binding-party-head,
.designer-live-group-head,
.designer-list-head,
.designer-table th,
.designer-approved-table th {
  border-color: var(--rx-c-163-230-53-280);
  background: linear-gradient(135deg, var(--rx-c-13-43-76-980), var(--rx-c-50-82-37-720));
  color: var(--rx-c-239-255-212-1000);
}

.binding-status-tab.selected,
.binding-tab-ready.selected,
.designer-personal-tabs button.selected {
  border-color: var(--rx-c-163-230-53-500);
  background: linear-gradient(135deg, var(--rx-c-77-124-15-340), var(--rx-c-13-43-76-960));
  color: var(--rx-c-217-249-157-1000);
  box-shadow: 0 12px 28px var(--rx-c-2-8-23-280), inset 0 1px 0 var(--rx-c-217-249-157-80);
}

.designer-list-shell,
.designer-grid-wrap,
.designer-table,
.designer-approved-table {
  border-color: var(--rx-c-163-230-53-200);
  background: var(--list-navy);
}

.designer-list-row,
.designer-list-row > *,
.designer-table td,
.designer-approved-table td {
  border-color: var(--rx-c-163-230-53-140);
  background: var(--rx-c-7-26-50-960);
}

.designer-list-row:nth-child(odd) > *,
.designer-table tbody tr:nth-child(even) td,
.designer-approved-table tbody tr:nth-child(even) td {
  background: var(--rx-c-13-43-76-880);
}

.designer-list-row:hover > *,
.designer-table tbody tr:hover td,
.designer-approved-table tbody tr:hover td {
  border-color: var(--rx-c-163-230-53-340);
  background: var(--rx-c-18-56-93-940);
}

.sheet-link,
.designer-approved-open,
.binding-detail-link,
.designer-save,
.binding-ready-action {
  border-color: var(--rx-c-163-230-53-380);
}

.sheet-link,
.designer-approved-open,
.binding-detail-link {
  background: var(--rx-c-101-163-13-140);
  color: var(--rx-c-217-249-157-1000);
}

.designer-save,
.binding-ready-action {
  background: linear-gradient(135deg, var(--list-lime), var(--rx-c-132-204-22-1000));
  color: var(--rx-c-23-35-10-1000);
}

/* =====================================================================
   V1.31.1 RESPONSIVE SEVEN-STAGE WORKFLOW
   Fit every checkpoint across desktop/tablet; keep readable phone scroll.
   ===================================================================== */
.manager-journey-rail {
  --journey-gap: clamp(6px, 0.85vw, 18px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--journey-gap);
  overflow-x: hidden;
}

.journey-checkpoint,
.journey-checkpoint.blocked,
.journey-checkpoint.finish {
  min-width: 0;
  min-height: clamp(300px, 31vw, 420px);
  gap: clamp(6px, 0.7vw, 10px);
  border-radius: clamp(12px, 1.35vw, 18px);
  padding: clamp(8px, 1vw, 14px);
}

.journey-checkpoint::after,
.journey-checkpoint.blocked::after,
.journey-checkpoint.finish::after {
  right: clamp(14px, 2.7vw, 44px);
  left: clamp(14px, 2.7vw, 44px);
}

.journey-step-top {
  min-width: 0;
  min-height: clamp(23px, 2.2vw, 30px);
}

.journey-step-top b {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(4px, 0.5vw, 7px) clamp(5px, 0.75vw, 13px);
  font-size: clamp(7px, 0.7vw, 11px);
  text-overflow: ellipsis;
}

.journey-stage-visual {
  display: grid;
  grid-template-rows: clamp(60px, 8.2vw, 132px) minmax(70px, 1fr);
  align-items: center;
  min-width: 0;
  min-height: clamp(158px, 19.5vw, 250px);
}

.journey-stage-art.journey-photo-icon {
  position: static;
  display: block;
  width: clamp(56px, 7.8vw, 132px);
  height: clamp(56px, 7.8vw, 132px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.journey-stage-count {
  display: grid;
  min-width: 0;
  padding: 0;
  place-items: center;
}

.journey-stage-count strong,
.journey-checkpoint.blocked .journey-stage-count strong,
.journey-checkpoint.finish .journey-stage-count strong {
  color: var(--stage-color, var(--rx-c-248-250-252-1000));
  max-width: 100%;
  line-height: 0.78;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
}

.journey-stage-count strong.digits-1 { font-size: clamp(54px, 7.7vw, 144px); }
.journey-stage-count strong.digits-2 { font-size: clamp(46px, 6.8vw, 132px); }
.journey-stage-count strong.digits-3 { font-size: clamp(36px, 5.5vw, 104px); }

.journey-stage-copy {
  min-width: 0;
  min-height: clamp(44px, 5vw, 58px);
}

.journey-stage-copy strong {
  max-width: 100%;
  font-size: clamp(10px, 1.1vw, 19px);
  overflow-wrap: anywhere;
}

.journey-stage-copy em {
  max-width: 100%;
  font-size: clamp(7px, 0.7vw, 11.5px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.journey-connector {
  right: clamp(-17px, -0.8vw, -9px);
  width: clamp(8px, 0.8vw, 15px);
  height: clamp(8px, 0.8vw, 15px);
  border-right-width: clamp(2px, 0.25vw, 4px);
  border-bottom-width: clamp(2px, 0.25vw, 4px);
}

.journey-connector::after {
  top: 50%;
  right: clamp(-8px, -0.58vw, -5px);
  width: clamp(6px, 0.58vw, 10px);
  height: clamp(6px, 0.58vw, 10px);
  border-right-width: clamp(2px, 0.2vw, 3px);
  border-bottom-width: clamp(2px, 0.2vw, 3px);
  transform: translateY(-50%);
}

.journey-track-node {
  left: 0;
  width: 100%;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.journey-track-node i {
  inset: auto;
  top: 0;
  left: 50%;
  width: clamp(18px, 2vw, 28px);
  height: clamp(18px, 2vw, 28px);
  border: clamp(3px, 0.28vw, 4px) solid var(--stage-color);
  border-radius: 50%;
  background: var(--rx-c-7-26-50-1000);
  box-shadow: 0 0 0 5px rgba(var(--stage-rgb), 0.12), 0 0 20px rgba(var(--stage-rgb), 0.72);
  transform: translateX(-50%);
}

.journey-track-node i::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--stage-color);
  box-shadow: 0 0 12px rgba(var(--stage-rgb), 0.9);
}

.journey-track-node::after {
  top: clamp(8px, 0.82vw, 12px);
  left: 50%;
  width: calc(100% + var(--journey-gap));
}

@media (min-width: 721px) and (max-width: 1050px) {
  .manager-journey-map { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 720px) {
  .manager-journey-rail {
    --journey-gap: 22px;
    grid-template-columns: repeat(7, 230px);
    gap: var(--journey-gap);
    overflow-x: auto;
  }

  .journey-checkpoint,
  .journey-checkpoint.blocked,
  .journey-checkpoint.finish {
    min-height: 410px;
    gap: 10px;
    border-radius: 18px;
    padding: 18px 14px 20px;
  }

  .journey-step-top { min-height: 30px; }
  .journey-step-top b { padding: 7px 13px; font-size: 11px; }
  .journey-stage-visual { grid-template-rows: 132px minmax(100px, 1fr); min-height: 250px; }
  .journey-stage-art.journey-photo-icon { width: 132px; height: 132px; }
  .journey-stage-count strong.digits-1 { font-size: 144px; }
  .journey-stage-count strong.digits-2 { font-size: 132px; }
  .journey-stage-count strong.digits-3 { font-size: 104px; }
  .journey-stage-copy { min-height: 58px; }
  .journey-stage-copy strong { font-size: 19px; }
  .journey-stage-copy em { font-size: 11.5px; }
  .journey-connector { right: -22px; width: 15px; height: 15px; border-right-width: 4px; border-bottom-width: 4px; }
  .journey-connector::after { right: -11px; width: 10px; height: 10px; border-right-width: 3px; border-bottom-width: 3px; }
  .journey-track-node i { width: 28px; height: 28px; border-width: 4px; }
  .journey-track-node::after { top: 8px; }
}

/* =====================================================================
   V1.32.0 WORKFLOW LABELS AND WHITE STAGE COUNTS
   ===================================================================== */
.journey-stage-count strong,
.journey-checkpoint.blocked .journey-stage-count strong,
.journey-checkpoint.finish .journey-stage-count strong {
  color: var(--rx-c-255-255-255-1000);
  -webkit-text-stroke: clamp(1.5px, 0.04em, 3px) var(--stage-color);
  paint-order: stroke fill;
  text-shadow:
    0 0 6px rgba(var(--stage-rgb), 0.95),
    0 0 18px rgba(var(--stage-rgb), 0.62),
    0 0 38px rgba(var(--stage-rgb), 0.32);
}

.manager-story-grid.manager-story-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.manager-story-grid-single .manager-quest-board {
  position: relative;
  top: auto;
}

.manager-story-grid-single .manager-quest-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .manager-story-grid-single .manager-quest-list { grid-template-columns: 1fr; }
}

/* =====================================================================
   V1.32.1 WORKFLOW-TO-LIST HURDLE HIGHLIGHTING
   ===================================================================== */
.active-count-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workflow-hurdle-summary,
.workflow-hurdle-marker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rx-c-54-83-20-1000);
  border-radius: 999px;
  background: var(--rx-c-247-254-231-1000);
  color: var(--rx-c-16-24-5-1000);
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.workflow-hurdle-summary {
  padding: 7px 11px;
  font-size: 10px;
  box-shadow: 0 0 18px var(--rx-c-163-230-53-280);
}

.workflow-hurdle-marker {
  min-height: 26px;
  padding: 0 10px;
  font-size: 10px;
}

.order-card.workflow-hurdle,
.order-card.workflow-hurdle:hover {
  border: 2px solid var(--rx-c-217-249-157-1000);
  border-left: 8px solid var(--rx-c-54-83-20-1000);
  background: linear-gradient(135deg, var(--rx-c-236-252-203-1000), var(--rx-c-163-230-53-1000) 58%, var(--rx-c-132-204-22-1000));
  box-shadow:
    0 0 0 2px var(--rx-c-163-230-53-200),
    0 14px 34px var(--rx-c-54-83-20-340),
    0 0 28px var(--rx-c-163-230-53-240);
}

.order-card.workflow-hurdle .card-open,
.order-card.workflow-hurdle .card-open:hover {
  background: var(--rx-c-255-255-255-60) !important;
  color: var(--rx-c-16-24-5-1000);
}

.order-card.workflow-hurdle .order-title strong,
.order-card.workflow-hurdle .order-meta,
.order-card.workflow-hurdle .order-details,
.order-card.workflow-hurdle .money-stack,
.order-card.workflow-hurdle .money-stack strong {
  color: var(--rx-c-16-24-5-1000) !important;
}

.order-card.workflow-hurdle .status-pill,
.order-card.workflow-hurdle .priority-pill {
  border: 1px solid var(--rx-c-16-24-5-420);
  background: var(--rx-c-255-255-255-480);
  color: var(--rx-c-16-24-5-1000) !important;
}

@media (max-width: 620px) {
  .workflow-hurdle-summary { width: 100%; justify-content: center; }
  .order-card.workflow-hurdle { border-left-width: 6px; }
}

/* =====================================================================
   V1.33.0 TODAY'S TASK HERO AND CLICKABLE SUMMARY TOTALS
   ===================================================================== */
.manager-mission-hero {
  min-height: 0;
}

.manager-today-task {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.2vw, 18px);
  margin-bottom: 18px;
}

.manager-today-task span {
  color: var(--mission-lime);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.manager-today-task strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 0 24px var(--rx-c-34-211-238-220);
}

.manager-task-title em {
  display: block;
  margin-top: 10px;
  font-size: clamp(54px, 5.4vw, 86px);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-shadow: 0 0 18px var(--rx-c-163-230-53-300), 0 0 38px var(--rx-c-163-230-53-160);
}

.manager-hero-copy > p:last-of-type {
  max-width: 760px;
  font-size: clamp(15px, 1.15vw, 18px);
}

.manager-hero-scoreboard > button {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--rx-c-255-255-255-100);
  border-radius: 0;
  padding: clamp(18px, 1.5vw, 25px) clamp(15px, 1.4vw, 24px);
  background: transparent;
  color: var(--rx-c-255-255-255-1000);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.manager-hero-scoreboard > button:last-child {
  border-right: 0;
}

.manager-hero-scoreboard > button:hover,
.manager-hero-scoreboard > button:focus-visible {
  z-index: 1;
  outline: none;
  background: var(--rx-c-163-230-53-120);
  box-shadow: inset 0 -4px 0 var(--mission-lime), 0 0 26px var(--rx-c-163-230-53-130);
}

.manager-hero-scoreboard > button:active {
  transform: translateY(1px);
}

.manager-hero-scoreboard > button strong {
  font-size: clamp(38px, 3.8vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.manager-hero-scoreboard > button span {
  font-size: clamp(10px, 0.78vw, 13px);
}

.manager-hero-scoreboard > button.danger strong { color: var(--rx-c-253-164-175-1000); }
.manager-hero-scoreboard > button.success strong { color: var(--rx-c-190-242-100-1000); }

@media (max-width: 620px) {
  .manager-today-task {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .manager-today-task strong { font-size: 32px; }
  .manager-task-title em {
    display: block;
    margin-top: 9px;
    font-size: clamp(48px, 14vw, 58px);
    line-height: 0.9;
  }
  .manager-hero-scoreboard > button:nth-child(2) { border-right: 0; }
  .manager-hero-scoreboard > button:nth-child(-n + 2) { border-bottom: 1px solid var(--rx-c-255-255-255-100); }
  .manager-hero-scoreboard > button strong { font-size: clamp(38px, 13vw, 52px); }
}

/* =====================================================================
   V1.34.0 DESIGNER WORKSPACE CLARITY AND CONTRAST
   ===================================================================== */
.designer-sheet-panel {
  border: 1px solid var(--rx-c-163-230-53-320);
  background:
    radial-gradient(900px 300px at 50% -10%, var(--rx-c-56-189-248-120), transparent 70%),
    linear-gradient(165deg, var(--rx-c-6-24-46-1000), var(--rx-c-10-37-66-1000) 58%, var(--rx-c-7-26-50-1000));
  box-shadow: 0 24px 60px var(--rx-c-2-8-23-380), inset 0 1px 0 var(--rx-c-217-249-157-60);
}

.designer-toolbar {
  padding: 22px 24px;
  border-bottom: 1px solid var(--rx-c-163-230-53-300);
  background:
    radial-gradient(520px 130px at 100% 0%, var(--rx-c-163-230-53-100), transparent 72%),
    linear-gradient(135deg, var(--rx-c-30-58-138-820), var(--rx-c-8-81-108-640));
}

.designer-toolbar h3 {
  margin: 0;
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(23px, 1.65vw, 30px);
  letter-spacing: -0.025em;
}

.designer-toolbar p {
  margin-top: 7px;
  color: var(--rx-c-191-247-255-1000);
  font-size: 14px;
  font-weight: 800;
}

.designer-live-board,
.designer-eod-board,
.designer-month-board {
  gap: 17px;
  padding: 22px;
}

.designer-eod-board,
.designer-month-board {
  border-top: 1px solid var(--rx-c-163-230-53-250);
  background: var(--rx-c-4-18-36-540);
}

.designer-section-head {
  align-items: center;
  gap: 18px;
}

.designer-section-head-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rx-c-190-242-100-1000);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--rx-c-190-242-100-1000), var(--rx-c-132-204-22-1000));
  color: var(--rx-c-23-35-10-1000);
  box-shadow: 0 8px 20px var(--rx-c-101-163-13-220), inset 0 1px 0 var(--rx-c-255-255-255-420);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  outline: none;
  background: var(--rx-c-217-249-157-1000);
  box-shadow: 0 0 0 3px var(--rx-c-163-230-53-180), 0 10px 24px var(--rx-c-101-163-13-280);
}

.designer-section-head h4 {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(20px, 1.35vw, 25px);
  letter-spacing: -0.02em;
}

.designer-section-head span,
.designer-section-head > strong,
.designer-section-controls > strong {
  color: var(--rx-c-191-247-255-1000);
  font-size: 13px;
  line-height: 1.4;
}

.designer-section-controls > strong {
  color: var(--rx-c-217-249-157-1000);
  font-size: 16px;
}

.designer-date-control,
.chart-sort {
  color: var(--rx-c-217-249-157-1000);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.designer-date-control select,
.designer-date-control input,
.chart-sort select {
  min-height: 44px;
  border: 1px solid var(--rx-c-103-232-249-350);
  background: var(--rx-c-7-26-50-1000);
  color: var(--rx-c-255-255-255-1000);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 var(--rx-c-255-255-255-40);
}

.designer-live-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.designer-live-group {
  border: 1px solid var(--rx-c-163-230-53-480);
  border-left: 4px solid var(--rx-c-163-230-53-1000);
  border-radius: 13px;
  background: var(--rx-c-7-26-50-1000);
  box-shadow: 0 16px 34px var(--rx-c-2-8-23-340), 0 0 0 1px var(--rx-c-163-230-53-40);
}

.designer-live-group-head {
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rx-c-163-230-53-280);
  background: linear-gradient(135deg, var(--rx-c-13-56-92-1000), var(--rx-c-49-82-38-1000));
}

.designer-live-group-head strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 16px;
  letter-spacing: 0.01em;
}

.designer-live-group-head span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--rx-c-163-230-53-160);
  color: var(--rx-c-217-249-157-1000);
  font-size: 12px;
}

.designer-live-orders {
  gap: 10px;
  max-height: 420px;
  padding: 11px;
  background: var(--rx-c-3-16-32-720);
  scrollbar-color: var(--rx-c-34-211-238-700) var(--rx-c-7-26-50-800);
}

.designer-live-order {
  min-height: 104px;
  gap: 7px;
  border: 1px solid var(--rx-c-103-232-249-300);
  border-left: 4px solid var(--rx-c-163-230-53-820);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(145deg, var(--rx-c-13-43-76-1000), var(--rx-c-16-54-87-1000));
  box-shadow: 0 9px 20px var(--rx-c-2-8-23-240);
}

.designer-live-order:hover,
.designer-live-order:focus-visible {
  outline: none;
  border-color: var(--rx-c-190-242-100-1000);
  border-left-color: var(--rx-c-190-242-100-1000);
  background: linear-gradient(145deg, var(--rx-c-18-56-93-1000), var(--rx-c-23-72-109-1000));
  box-shadow: 0 0 0 2px var(--rx-c-163-230-53-140), 0 12px 26px var(--rx-c-2-8-23-320);
}

.designer-live-order-title {
  gap: 10px;
}

.designer-live-order strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 15px;
  line-height: 1.25;
}

.designer-live-order > span {
  color: var(--rx-c-214-231-245-1000);
  font-size: 13px;
  line-height: 1.42;
}

.designer-live-order em {
  color: var(--rx-c-103-232-249-1000);
  font-size: 12px;
  line-height: 1.3;
}

.designer-deadline-chip,
.designer-live-order .designer-deadline-chip,
.designer-eod-row .designer-deadline-chip {
  min-height: 27px;
  padding: 0 9px;
  font-size: 9px;
  line-height: 1.15;
}

.designer-deadline-chip.on-time {
  border: 1px solid var(--rx-c-134-239-172-350);
  background: var(--rx-c-22-163-74-240);
  color: var(--rx-c-187-247-208-1000);
}

.designer-deadline-chip.due-today {
  border: 1px solid var(--rx-c-251-191-36-380);
  background: var(--rx-c-217-119-6-240);
  color: var(--rx-c-253-230-138-1000);
}

.designer-deadline-chip.overdue,
.designer-deadline-chip.is-overdue {
  border: 1px solid var(--rx-c-251-113-133-420);
  background: var(--rx-c-190-24-93-240);
  color: var(--rx-c-254-205-211-1000);
}

.designer-eod-filter-strip {
  gap: 14px;
  border: 1px solid var(--rx-c-103-232-249-250);
  border-radius: 13px;
  padding: 14px;
  background: linear-gradient(135deg, var(--rx-c-13-43-76-960), var(--rx-c-10-50-62-840));
}

.designer-eod-list {
  gap: 12px;
}

.designer-eod-row {
  min-height: 92px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--rx-c-103-232-249-280);
  border-left: 5px solid var(--rx-c-163-230-53-820);
  border-radius: 12px;
  padding: 14px 16px;
  background:
    radial-gradient(360px 100px at 100% 0%, var(--rx-c-163-230-53-80), transparent 70%),
    linear-gradient(145deg, var(--rx-c-11-41-72-1000), var(--rx-c-16-53-84-1000));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 11px 25px var(--rx-c-2-8-23-260);
}

.designer-eod-row:hover,
.designer-eod-row:focus-visible {
  outline: none;
  border-color: var(--rx-c-190-242-100-1000);
  border-left-color: var(--rx-c-190-242-100-1000);
  background: linear-gradient(145deg, var(--rx-c-18-56-93-1000), var(--rx-c-23-72-109-1000));
  box-shadow: 0 0 0 2px var(--rx-c-163-230-53-130), 0 14px 30px var(--rx-c-2-8-23-320);
}

.designer-eod-row span {
  color: var(--rx-c-142-223-240-1000);
  font-size: 11px;
  letter-spacing: 0.055em;
}

.designer-eod-row strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .designer-eod-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 720px) {
  .designer-toolbar,
  .designer-live-board,
  .designer-eod-board,
  .designer-month-board { padding: 17px; }
  .designer-section-head { align-items: flex-start; }
  .designer-section-head,
  .designer-section-controls,
  .designer-eod-header-controls { flex-direction: column; }
  .designer-section-controls,
  .designer-eod-header-controls,
  .designer-date-control,
  .designer-month-control { width: 100%; min-width: 0; }
  .designer-live-grid { grid-template-columns: 1fr; }
  .designer-eod-filter-strip { align-items: stretch; flex-direction: column; }
  .designer-eod-row { grid-template-columns: 1fr; }
}

/* High-contrast deadline states complete the V1.34.0 clarity pass. */
.designer-deadline-chip,
.designer-live-order .designer-deadline-chip,
.designer-eod-row .designer-deadline-chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.025em;
}

.designer-deadline-chip.overdue,
.designer-deadline-chip.is-overdue {
  color: var(--rx-c-255-255-255-1000);
  background: linear-gradient(135deg, var(--rx-c-190-24-93-960), var(--rx-c-225-29-72-900));
  border-color: var(--rx-c-251-113-133-1000);
  box-shadow: 0 0 16px var(--rx-c-244-63-94-220);
  text-shadow: 0 1px 1px var(--rx-c-76-5-25-750);
}

.designer-deadline-chip.due-today,
.designer-deadline-chip.is-due-today {
  color: var(--rx-c-32-17-0-1000);
  background: linear-gradient(135deg, var(--rx-c-250-204-21-1000), var(--rx-c-251-146-60-1000));
  border-color: var(--rx-c-253-230-138-1000);
  box-shadow: 0 0 16px var(--rx-c-250-204-21-200);
  text-shadow: none;
}

.designer-deadline-chip.on-time,
.designer-deadline-chip.is-on-time {
  color: var(--rx-c-5-46-22-1000);
  background: linear-gradient(135deg, var(--rx-c-190-242-100-1000), var(--rx-c-74-222-128-1000));
  border-color: var(--rx-c-217-249-157-1000);
  box-shadow: 0 0 16px var(--rx-c-163-230-53-180);
  text-shadow: none;
}

.designer-live-orders {
  overflow-x: hidden;
}

.designer-live-order-title {
  align-items: flex-start;
  flex-wrap: wrap;
}

.designer-live-order-title > strong {
  flex: 1 1 105px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-live-order-title .designer-deadline-chip {
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
  padding-top: 7px;
  padding-bottom: 7px;
  white-space: normal;
  text-align: center;
}

/* =====================================================================
   V1.35.0 RESPONSIVE FRONT DASHBOARD COMMAND HERO
   ===================================================================== */
.manager-mission-hero {
  min-height: clamp(520px, 34vw, 650px);
  grid-template-columns: minmax(0, 1fr) clamp(250px, 19vw, 330px);
  grid-template-rows: auto auto;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
  border: 2px solid var(--rx-c-96-165-250-520);
  border-radius: clamp(24px, 2vw, 36px);
  padding: clamp(34px, 3.4vw, 62px);
  background:
    radial-gradient(620px 500px at 83% 18%, var(--rx-c-76-29-149-720), transparent 67%),
    radial-gradient(430px 330px at 96% 42%, var(--rx-c-34-211-238-180), transparent 70%),
    radial-gradient(480px 280px at 8% 108%, var(--rx-c-14-165-233-140), transparent 74%),
    linear-gradient(125deg, var(--rx-c-2-12-33-1000) 0%, var(--rx-c-6-22-49-1000) 48%, var(--rx-c-13-23-64-1000) 100%);
  box-shadow:
    0 28px 80px var(--rx-c-2-8-23-580),
    inset 0 1px 0 var(--rx-c-224-242-254-120),
    0 0 38px var(--rx-c-37-99-235-120);
}

.manager-mission-hero::before {
  opacity: 0.38;
  background-image:
    radial-gradient(circle, var(--rx-c-34-211-238-280) 1px, transparent 1.4px),
    linear-gradient(120deg, transparent 49.6%, var(--rx-c-96-165-250-130) 50%, transparent 50.4%);
  background-size: 18px 18px, 220px 220px;
  mask-image: linear-gradient(90deg, transparent 3%, var(--rx-c-0-0-0-1000) 42%, var(--rx-c-0-0-0-1000) 88%, transparent 100%);
}

.manager-mission-hero::after {
  width: clamp(420px, 35vw, 680px);
  height: clamp(420px, 35vw, 680px);
  top: 50%;
  right: clamp(-250px, -11vw, -90px);
  left: auto;
  transform: translateY(-52%);
  border: 1px solid var(--rx-c-96-165-250-220);
  background:
    radial-gradient(circle, transparent 0 44%, var(--rx-c-34-211-238-50) 44.5% 45%, transparent 45.5% 58%, var(--rx-c-167-139-250-80) 58.5% 59%, transparent 59.5%);
  filter: none;
}

.manager-hero-copy {
  align-self: center;
  min-width: 0;
}

.manager-today-task {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 0 clamp(32px, 3vw, 48px);
}

.manager-today-task .manager-task-label,
.manager-today-task .manager-task-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.manager-today-task .manager-task-label {
  border: 1px solid var(--rx-c-96-165-250-380);
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--rx-c-2-13-38-520);
  color: var(--rx-c-183-242-56-1000);
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px var(--rx-c-30-64-175-120);
}

.manager-today-task > i {
  width: 1px;
  height: 36px;
  background: linear-gradient(transparent, var(--rx-c-125-211-252-720), transparent);
}

.manager-today-task .manager-task-date {
  color: var(--rx-c-255-255-255-1000);
}

.manager-today-task svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.manager-task-date svg {
  width: 29px;
  height: 29px;
  color: var(--rx-c-34-211-238-1000);
  filter: drop-shadow(0 0 7px var(--rx-c-34-211-238-380));
}

.manager-today-task .manager-task-date strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(28px, 2.3vw, 44px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 0 24px var(--rx-c-96-165-250-220);
}

.manager-hero-copy .manager-task-title {
  max-width: 1120px;
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(48px, 4.15vw, 80px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.manager-hero-copy .manager-task-title em {
  display: block;
  margin-top: 5px;
  color: var(--rx-c-163-230-53-1000);
  font-size: 1.04em;
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.058em;
  text-shadow: 0 0 20px var(--rx-c-163-230-53-220), 0 0 44px var(--rx-c-163-230-53-100);
}

.manager-hero-copy > p:last-of-type {
  max-width: 900px;
  margin-top: clamp(22px, 2vw, 32px);
  color: var(--rx-c-185-202-224-1000);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 650;
  line-height: 1.45;
}

.manager-health-orbit {
  width: clamp(240px, 18vw, 330px);
  border: 1px solid var(--rx-c-125-211-252-740);
  background: conic-gradient(from 0deg, var(--rx-c-217-249-157-1000) 0%, var(--rx-c-163-230-53-1000) var(--mission-animated-progress, var(--mission-progress)), var(--rx-c-255-255-255-140) var(--mission-animated-progress, var(--mission-progress)) 100%);
  box-shadow:
    0 0 0 13px var(--rx-c-59-130-246-110),
    0 0 0 24px var(--rx-c-99-102-241-70),
    0 0 42px var(--rx-c-34-211-238-380),
    0 0 82px var(--rx-c-124-58-237-260);
}

.manager-health-orbit::before {
  width: calc(100% - 48px);
  border: 1px solid var(--rx-c-103-232-249-140);
  background:
    radial-gradient(circle at 50% 38%, var(--rx-c-37-99-235-130), transparent 45%),
    var(--rx-c-7-22-48-1000);
  box-shadow: inset 0 0 40px var(--rx-c-15-23-42-750);
}

.manager-health-core {
  gap: 8px;
}

.manager-health-core strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(54px, 4.5vw, 78px);
  font-weight: 1000;
  text-shadow: 0 0 25px var(--rx-c-255-255-255-180);
}

.manager-health-core span {
  color: var(--rx-c-103-232-249-1000);
  font-size: clamp(11px, 0.9vw, 16px);
}

.manager-orbit-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 14px currentColor;
}

.manager-hero-scoreboard {
  min-height: clamp(132px, 9vw, 172px);
  border: 1px solid var(--rx-c-96-165-250-480);
  border-radius: 21px;
  background:
    radial-gradient(420px 130px at 0% 50%, var(--rx-c-14-165-233-120), transparent 75%),
    radial-gradient(420px 130px at 100% 50%, var(--rx-c-163-230-53-100), transparent 75%),
    var(--rx-c-8-31-70-680);
  box-shadow:
    -6px 0 18px var(--rx-c-34-211-238-260),
    6px 0 18px var(--rx-c-163-230-53-190),
    inset 0 1px 0 var(--rx-c-255-255-255-70);
}

.manager-hero-scoreboard > button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 25px);
  border: 0;
  border-right: 1px solid var(--rx-c-96-165-250-220);
  border-radius: 0;
  padding: clamp(18px, 1.6vw, 28px);
  background: transparent;
  color: var(--rx-c-255-255-255-1000);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.manager-hero-scoreboard > button:last-child {
  border-right: 0;
}

.manager-hero-scoreboard > button:hover,
.manager-hero-scoreboard > button:focus-visible {
  z-index: 1;
  outline: none;
  background: var(--rx-c-34-211-238-90);
  box-shadow: inset 0 -4px 0 var(--rx-c-163-230-53-1000), inset 0 0 26px var(--rx-c-59-130-246-80);
  transform: translateY(-2px);
}

.manager-score-icon {
  width: clamp(62px, 5vw, 86px);
  aspect-ratio: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--rx-c-4-20-48-760);
  white-space: normal;
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 12%, transparent), 0 0 20px color-mix(in srgb, currentColor 18%, transparent);
}

.manager-score-icon svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manager-score-icon.journey { color: var(--rx-c-56-189-248-1000); }
.manager-score-icon.hurdle { color: var(--rx-c-251-113-133-1000); }
.manager-score-icon.updated { color: var(--rx-c-34-211-238-1000); }
.manager-score-icon.finished { color: var(--rx-c-163-230-53-1000); }

.manager-hero-scoreboard > button > .manager-score-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
  overflow: visible;
  color: inherit;
  white-space: normal;
}

.manager-hero-scoreboard > button .manager-score-copy strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: clamp(42px, 3.7vw, 68px);
  font-weight: 1000;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.manager-hero-scoreboard > button .manager-score-copy > span {
  overflow: visible;
  color: var(--rx-c-168-186-209-1000);
  font-size: clamp(11px, 0.85vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: normal;
}

.manager-hero-scoreboard > button.danger .manager-score-copy strong { color: var(--rx-c-251-113-133-1000); }
.manager-hero-scoreboard > button.success .manager-score-copy strong { color: var(--rx-c-163-230-53-1000); }
.manager-hero-scoreboard > button:nth-child(3) .manager-score-copy strong { color: var(--rx-c-56-189-248-1000); }

@media (max-width: 1200px) {
  .manager-mission-hero {
    min-height: 500px;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
    padding: 34px;
  }

  .manager-health-orbit { width: 210px; }
  .manager-health-core strong { font-size: 54px; }
  .manager-hero-scoreboard > button { gap: 13px; padding: 20px 16px; }
  .manager-score-icon { width: 61px; }
}

@media (max-width: 900px) {
  .manager-mission-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 28px 22px;
    padding: 28px;
  }

  .manager-today-task { margin-bottom: 28px; }
  .manager-today-task .manager-task-label { padding: 10px 15px; }
  .manager-hero-copy .manager-task-title { font-size: clamp(42px, 6vw, 56px); }
  .manager-health-orbit { width: 172px; }
  .manager-health-orbit::before { width: calc(100% - 36px); }
  .manager-health-core strong { font-size: 44px; }
  .manager-hero-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-hero-scoreboard > button:nth-child(2) { border-right: 0; }
  .manager-hero-scoreboard > button:nth-child(-n + 2) { border-bottom: 1px solid var(--rx-c-96-165-250-220); }
  .manager-hero-scoreboard > button { min-height: 118px; }
  .manager-score-icon { width: 66px; }
}

@media (max-width: 680px) {
  .manager-mission-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    border-radius: 24px;
    padding: 24px;
  }

  .manager-today-task {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
  }

  .manager-today-task > i { display: none; }
  .manager-today-task .manager-task-label { width: fit-content; }
  .manager-today-task .manager-task-date { width: 100%; }
  .manager-today-task .manager-task-date strong { font-size: 28px; }
  .manager-hero-copy .manager-task-title { font-size: clamp(38px, 11.5vw, 52px); }
  .manager-hero-copy .manager-task-title em { margin-top: 7px; font-size: 1em; }
  .manager-hero-copy > p:last-of-type { margin-top: 20px; font-size: 16px; }
  .manager-health-orbit { width: 180px; justify-self: center; margin: 0; }
  .manager-health-core strong { font-size: 47px; }
  .manager-hero-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-hero-scoreboard > button { min-height: 128px; flex-direction: column; align-items: flex-start; gap: 13px; padding: 17px; }
  .manager-score-icon { width: 56px; }
  .manager-hero-scoreboard > button .manager-score-copy { gap: 7px; }
  .manager-hero-scoreboard > button .manager-score-copy strong { font-size: 43px; }
  .manager-hero-scoreboard > button .manager-score-copy > span { font-size: 10px; }
}

@media (max-width: 420px) {
  .manager-mission-hero { padding: 19px; }
  .manager-today-task .manager-task-label { padding: 9px 13px; font-size: 12px; }
  .manager-today-task .manager-task-date strong { font-size: 25px; }
  .manager-task-date svg { width: 25px; height: 25px; }
  .manager-hero-copy .manager-task-title { font-size: clamp(35px, 11.6vw, 45px); }
  .manager-hero-scoreboard { grid-template-columns: 1fr; }
  .manager-hero-scoreboard > button { min-height: 102px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--rx-c-96-165-250-220); }
  .manager-hero-scoreboard > button:last-child { border-bottom: 0; }
  .manager-score-icon { width: 59px; }
}

/* =====================================================================
   V1.36.0 HERO COUNT-UP AND ACCELERATING FLOW METER
   ===================================================================== */
@keyframes manager-number-lock {
  0% { transform: translateY(-2px) scale(1.08); filter: brightness(1.35); }
  55% { transform: translateY(1px) scale(0.97); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@keyframes manager-meter-accelerate {
  0% { transform: scale(0.9) rotate(-5deg); filter: brightness(0.72) saturate(0.8); }
  46% { transform: scale(0.97) rotate(-2deg); filter: brightness(1) saturate(1); }
  76% { transform: scale(1.045) rotate(1.4deg); filter: brightness(1.38) saturate(1.2); }
  100% { transform: scale(1) rotate(0); filter: brightness(1) saturate(1); }
}

@keyframes manager-meter-core-accelerate {
  0% { transform: scale(0.78); opacity: 0.45; }
  58% { transform: scale(1.04); opacity: 1; }
  82% { transform: scale(0.98); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes manager-meter-lock {
  0% { transform: scale(1.04); }
  55% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

.manager-health-core strong[data-count-target],
.manager-score-copy strong[data-count-target] {
  display: inline-block;
  min-width: 1.5ch;
  font-variant-numeric: tabular-nums;
  transform-origin: center left;
  will-change: transform, filter, contents;
}

.manager-health-core strong[data-count-target] {
  transform-origin: center;
}

[data-count-target].is-counting {
  filter: brightness(1.25) drop-shadow(0 0 10px currentColor);
}

[data-count-target].is-settled {
  animation: manager-number-lock 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manager-health-orbit.is-accelerating {
  animation: manager-meter-accelerate 1.78s cubic-bezier(0.35, 0, 0.22, 1) both;
  will-change: transform, filter;
}

.manager-health-orbit.is-accelerating .manager-health-core {
  animation: manager-meter-core-accelerate 1.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manager-health-orbit.is-accelerating .manager-orbit-dot {
  box-shadow: 0 0 10px currentColor, 0 0 24px currentColor;
}

.manager-health-orbit.is-stabilized {
  animation: manager-meter-lock 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) [data-count-target].is-counting,
  html:not([data-motion="full"]) [data-count-target].is-settled,
  html:not([data-motion="full"]) .manager-health-orbit.is-accelerating,
  html:not([data-motion="full"]) .manager-health-orbit.is-accelerating .manager-health-core,
  html:not([data-motion="full"]) .manager-health-orbit.is-stabilized {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* =====================================================================
   V1.38.0 CLEAN DESIGNER PLAYER PROFILE
   ===================================================================== */
.designer-toolbar.designer-toolbar-personal {
  justify-content: flex-end;
  padding-block: 14px;
}

.designer-game-hub {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  grid-template-areas: "portrait core";
  gap: 30px;
  min-height: 286px;
  padding: 24px 34px 18px;
}

.designer-player-portrait {
  position: relative;
  align-content: end;
  isolation: isolate;
}

.designer-player-portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 205px;
  aspect-ratio: 1;
  bottom: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--game-accent-soft), transparent 68%);
  filter: blur(2px);
}

.designer-avatar-ring {
  width: min(235px, 100%);
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  transform: none;
}

.designer-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  transform: none;
  filter: drop-shadow(0 18px 24px var(--rx-c-2-8-23-460));
}

.designer-avatar-ring > span {
  border-radius: 32px;
  transform: none;
}

.designer-player-portrait > b {
  position: relative;
  z-index: 1;
  margin-top: -10px;
}

.designer-player-title-row {
  align-items: center;
}

.designer-player-title-row h2 {
  font-size: clamp(32px, 3vw, 48px);
}

.designer-game-intro {
  max-width: 720px;
}

@media (max-width: 920px) {
  .designer-game-hub {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas: "portrait core";
    gap: 20px;
    padding: 22px;
  }

  .designer-avatar-ring {
    width: 165px;
    border-radius: 0;
  }

  .designer-avatar-ring img,
  .designer-avatar-ring > span {
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  .designer-toolbar.designer-toolbar-personal {
    justify-content: stretch;
  }

  .designer-toolbar-personal .designer-toolbar-controls {
    width: 100%;
  }

  .designer-toolbar-personal .designer-date-control {
    flex: 1 1 140px;
  }

  .designer-game-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "core";
    min-height: 0;
    padding: 20px 18px 24px;
  }

  .designer-avatar-ring {
    width: min(210px, 72vw);
  }

  .designer-player-title-row {
    flex-direction: row;
    align-items: center;
  }

  .designer-player-title-row h2 {
    font-size: clamp(29px, 10vw, 40px);
  }
}

/* =====================================================================
   V1.39.0 PROFESSIONAL FULL-PORTRAIT DESIGNER HERO — FINAL OVERRIDES
   ===================================================================== */
.designer-game-hub {
  grid-template-columns: clamp(300px, 28vw, 410px) minmax(0, 1fr);
  grid-template-areas: "portrait core";
  gap: clamp(26px, 3vw, 54px);
  min-height: 440px;
  padding: 0 clamp(28px, 3vw, 52px) 0 0;
  background:
    radial-gradient(560px 340px at 10% 28%, var(--game-accent-soft), transparent 72%),
    radial-gradient(520px 320px at 92% 12%, var(--rx-c-79-70-229-280), transparent 72%),
    linear-gradient(135deg, var(--rx-c-6-21-45-1000), var(--rx-c-11-37-72-1000) 58%, var(--rx-c-17-29-77-1000));
}

.designer-player-portrait {
  min-width: 0;
  min-height: 440px;
  align-self: stretch;
  align-content: stretch;
  justify-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 23px 0 0 23px;
}

.designer-player-portrait::before {
  display: none;
}

.designer-player-portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 64%, var(--rx-c-8-27-55-1000) 100%),
    linear-gradient(0deg, var(--rx-c-6-21-45-800), transparent 24%);
}

.designer-avatar-ring {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
}

.designer-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 24%;
  background: transparent;
  transform: none;
  filter: saturate(1.04) contrast(1.03);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.designer-game-hub:hover .designer-avatar-ring img {
  transform: scale(1.018);
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

.designer-player-portrait > b {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  margin: 0;
  backdrop-filter: blur(12px);
}

.designer-player-core {
  align-self: center;
  padding-block: 34px;
}

.designer-player-title-row h2 {
  font-size: clamp(40px, 4vw, 62px);
}

.designer-player-title-row > strong {
  font-size: clamp(30px, 2.8vw, 46px);
}

.designer-game-intro {
  max-width: 760px;
  margin-block: 18px 24px;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
}

.designer-power-stats {
  gap: 12px;
  margin-top: 24px;
}

.designer-power-stats > div {
  min-height: 82px;
  padding: 14px;
}

.designer-power-stats span {
  font-size: 25px;
}

.designer-power-stats strong {
  font-size: 24px;
}

.designer-power-stats small {
  font-size: 10px;
}

@media (max-width: 1100px) {
  .designer-game-hub {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    min-height: 380px;
    padding-right: 24px;
  }

  .designer-player-portrait {
    min-height: 380px;
  }

  .designer-power-stats {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

@media (max-width: 760px) {
  .designer-game-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "core";
    gap: 0;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .designer-player-portrait {
    min-height: clamp(390px, 118vw, 560px);
    border-radius: 23px 23px 0 0;
  }

  .designer-player-portrait::after {
    background: linear-gradient(0deg, var(--rx-c-8-27-55-1000) 0%, transparent 28%);
  }

  .designer-avatar-ring {
    width: 100%;
    height: 100%;
  }

  .designer-avatar-ring img {
    object-position: center 22%;
  }

  .designer-player-core {
    padding: 24px 20px 28px;
  }

  .designer-player-title-row {
    flex-direction: row;
  }

  .designer-game-intro {
    margin-inline: 0;
  }
}

/* Final process timeline dark-theme override. */
.process-timeline-head p,
.process-timeline-card time,
.process-timeline-card footer span {
  color: var(--rx-c-159-178-204-1000);
}

.process-timeline-head > span {
  border-color: var(--rx-c-163-230-53-280);
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

.process-timeline::before {
  background: linear-gradient(180deg, var(--rx-c-34-211-238-820), var(--rx-c-163-230-53-680));
}

.process-timeline-dot span {
  border-color: var(--rx-c-34-211-238-420);
  background: var(--rx-c-34-211-238-160);
  color: var(--rx-c-165-243-252-1000);
  box-shadow: 0 0 18px var(--rx-c-34-211-238-200);
}

.process-timeline-card {
  border-color: var(--rx-c-103-232-249-130);
  background: var(--rx-c-21-47-82-720);
}

.process-timeline-card small {
  color: var(--rx-c-103-232-249-1000);
}

.process-timeline-card em {
  background: var(--rx-c-251-191-36-130);
  color: var(--rx-c-253-230-138-1000);
}

.process-status-route strong {
  background: var(--rx-c-34-211-238-120);
  color: var(--rx-c-223-250-254-1000);
}

.process-status-route b {
  color: var(--rx-c-163-230-53-1000);
}

.process-timeline-card footer p {
  color: var(--rx-c-219-234-254-1000);
}

.process-timeline-empty {
  border-color: var(--rx-c-103-232-249-180);
  background: var(--rx-c-21-47-82-550);
  color: var(--rx-c-159-178-204-1000);
}

/* Process timeline urgent badges should stay readable in narrow modals. */
.process-timeline-card header {
  align-items: flex-start !important;
  gap: 10px 12px !important;
  flex-wrap: wrap !important;
}

.process-timeline-card header > div {
  min-width: 0;
}

.process-timeline-card em {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

/* Responses query board. */
.response-panel,
.response-list-panel {
  padding: 18px;
}

.response-panel .panel-header-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.response-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rx-c-34-211-238-350);
  background: var(--rx-c-34-211-238-120);
  color: var(--rx-c-14-116-144-1000);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.response-form textarea {
  min-height: 116px;
}

.response-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.response-actions span,
.response-list-panel .panel-header-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.response-list {
  display: grid;
  gap: 10px;
}

.response-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.response-filter-row button {
  min-height: 34px;
  border: 1px solid var(--rx-c-103-232-249-220);
  border-radius: 999px;
  background: var(--rx-c-15-23-42-620);
  color: var(--rx-c-186-230-253-1000);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.response-filter-row button:hover,
.response-filter-row button.active {
  border-color: var(--rx-c-163-230-53-620);
  background: var(--rx-c-163-230-53-160);
  color: var(--rx-c-217-249-157-1000);
  box-shadow: 0 0 18px var(--rx-c-163-230-53-120);
}

.response-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--rx-c-148-163-184-240);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--rx-c-15-23-42-920), var(--rx-c-8-24-48-960));
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 14px 30px var(--rx-c-15-23-42-160);
}

.response-card.high {
  border-color: var(--rx-c-251-191-36-480);
}

.response-card.urgent {
  border-color: var(--rx-c-248-113-113-720);
  box-shadow: 0 0 0 1px var(--rx-c-248-113-113-160), 0 18px 34px var(--rx-c-127-29-29-180);
}

.response-card.resolved {
  opacity: 0.72;
}

.response-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.response-card-title strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.response-card p {
  margin: 8px 0 0;
  color: var(--rx-c-224-242-254-1000);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.response-section,
.response-priority,
.response-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.05em;
}

.response-section {
  border: 1px solid var(--rx-c-103-232-249-320);
  background: var(--rx-c-34-211-238-140);
  color: var(--rx-c-207-250-254-1000);
}

.response-section.design {
  border-color: var(--rx-c-167-139-250-400);
  background: var(--rx-c-124-58-237-180);
  color: var(--rx-c-221-214-254-1000);
}

.response-section.print-bind {
  border-color: var(--rx-c-251-191-36-420);
  background: var(--rx-c-251-191-36-160);
  color: var(--rx-c-253-230-138-1000);
}

.response-section.dispatch {
  border-color: var(--rx-c-163-230-53-420);
  background: var(--rx-c-163-230-53-140);
  color: var(--rx-c-217-249-157-1000);
}

.response-priority.normal {
  background: var(--rx-c-34-211-238-160);
  color: var(--rx-c-165-243-252-1000);
}

.response-priority.high {
  background: var(--rx-c-251-191-36-180);
  color: var(--rx-c-253-230-138-1000);
}

.response-priority.urgent {
  background: var(--rx-c-239-68-68-1000);
  color: var(--rx-c-255-255-255-1000);
  box-shadow: 0 0 16px var(--rx-c-239-68-68-240);
}

.response-status.open {
  background: var(--rx-c-163-230-53-140);
  color: var(--rx-c-217-249-157-1000);
}

.response-status.resolved {
  background: var(--rx-c-148-163-184-180);
  color: var(--rx-c-203-213-225-1000);
}

.response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--rx-c-186-230-253-1000);
  font-size: 11px;
  font-weight: 900;
}

.response-card button {
  min-height: 38px;
  border: 1px solid var(--rx-c-163-230-53-400);
  border-radius: 999px;
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.response-card.resolved button {
  border-color: var(--rx-c-34-211-238-350);
  background: var(--rx-c-34-211-238-120);
  color: var(--rx-c-165-243-252-1000);
}

@media (max-width: 720px) {
  .response-card {
    grid-template-columns: 1fr;
  }

  .response-card button {
    justify-self: start;
  }
}

/* Designer login query desk. */
.designer-query-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
  border-color: var(--rx-c-103-232-249-240);
  background: linear-gradient(145deg, var(--rx-c-8-24-48-960), var(--rx-c-15-23-42-940));
  color: var(--rx-c-255-255-255-1000);
}

.designer-query-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--rx-c-34-211-238-1000), var(--rx-c-163-230-53-1000), var(--rx-c-129-140-248-1000));
}

.designer-query-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.designer-query-head span {
  color: var(--rx-c-103-232-249-1000);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.designer-query-head h3 {
  margin: 3px 0 0;
  color: var(--rx-c-255-255-255-1000);
  font-size: 20px;
}

.designer-query-head p {
  margin: 5px 0 0;
  color: var(--rx-c-203-213-225-1000);
  font-size: 13px;
  font-weight: 800;
}

.designer-query-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--rx-c-163-230-53-340);
  border-radius: 999px;
  background: var(--rx-c-163-230-53-120);
  color: var(--rx-c-217-249-157-1000);
}

.designer-query-stats strong {
  font-size: 18px;
}

.designer-query-stats span {
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.05em;
}

.designer-query-list {
  display: grid;
  gap: 8px;
}

.designer-query-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--rx-c-103-232-249-200);
  border-radius: 13px;
  background: var(--rx-c-15-23-42-640);
}

.designer-query-card.urgent {
  border-color: var(--rx-c-248-113-113-550);
}

.designer-query-card.high {
  border-color: var(--rx-c-251-191-36-420);
}

.designer-query-card strong {
  color: var(--rx-c-255-255-255-1000);
  font-size: 13px;
}

.designer-query-card p {
  margin: 4px 0 0;
  color: var(--rx-c-219-234-254-1000);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.designer-query-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.designer-query-empty {
  padding: 12px;
  border: 1px dashed var(--rx-c-103-232-249-240);
  border-radius: 12px;
  color: var(--rx-c-203-213-225-1000);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .designer-query-head,
  .designer-query-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .designer-query-tags {
    justify-content: flex-start;
  }
}

.response-deadline {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--rx-c-251-191-36-440);
  border-radius: 999px;
  background: var(--rx-c-251-191-36-140);
  color: var(--rx-c-253-230-138-1000) !important;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}


.response-filter-row button[data-response-filter="RESOLVED"].active,
.response-filter-row button[data-response-filter="RESOLVED"]:hover,
.response-filter-row button[data-preview-response-filter="RESOLVED"].active,
.response-filter-row button[data-preview-response-filter="RESOLVED"]:hover {
  border-color: var(--rx-c-148-163-184-580);
  background: var(--rx-c-148-163-184-180);
  color: var(--rx-c-226-232-240-1000);
}

.response-card[hidden] {
  display: none !important;
}

/* === MOTION SYSTEM v1 === */
:root {
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-motion="calm"] {
  --motion-fast: 140ms;
  --motion-base: 200ms;
  --motion-slow: 260ms;
}

html[data-motion="off"] {
  --motion-fast: 1ms;
  --motion-base: 1ms;
  --motion-slow: 1ms;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 1ms !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(root) {
  animation-name: rx-view-old-forward;
}

::view-transition-new(root) {
  animation-name: rx-view-new-forward;
}

html[data-view-direction="backward"]::view-transition-old(root) {
  animation-name: rx-view-old-backward;
}

html[data-view-direction="backward"]::view-transition-new(root) {
  animation-name: rx-view-new-backward;
}

@keyframes rx-view-old-forward {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes rx-view-new-forward {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes rx-view-old-backward {
  to { opacity: 0; transform: translateY(8px); }
}

@keyframes rx-view-new-backward {
  from { opacity: 0; transform: translateY(-8px); }
}

.view.view-enter {
  animation: rx-view-enter 240ms var(--ease-out) both;
}

html[data-view-direction="backward"] .view.view-enter {
  animation-name: rx-view-enter-backward;
}

@keyframes rx-view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rx-view-enter-backward {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

#screenTitle.title-crossfade {
  animation: rx-title-crossfade var(--motion-base) var(--ease-out) both;
}

@keyframes rx-title-crossfade {
  0% { opacity: .2; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.view.is-entering > *,
.view.is-entering .panel,
.view.is-entering .order-card,
.view.is-entering .journey-checkpoint {
  animation: rx-stagger-enter var(--motion-slow) var(--ease-out) both;
  animation-delay: min(calc(var(--i, 0) * 30ms), 330ms);
}

@keyframes rx-stagger-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-tabs {
  position: relative;
  isolation: isolate;
}

.nav-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--pill-width, 0);
  height: var(--pill-height, 0);
  border: 1px solid var(--rx-c-163-230-53-420);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rx-c-34-211-238-140), var(--rx-c-163-230-53-160));
  box-shadow: 0 0 18px var(--rx-c-163-230-53-100);
  pointer-events: none;
  transform: translate(var(--pill-x, 0), var(--pill-y, 0));
  transition: transform var(--motion-base) var(--ease-spring), width var(--motion-base) var(--ease-spring), height var(--motion-base) var(--ease-spring);
}

.nav-tab {
  position: relative;
  z-index: 1;
  transition: color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.nav-tab.active {
  background: transparent;
}

.modal-layer {
  opacity: 0;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: opacity var(--motion-base) var(--ease-out), backdrop-filter var(--motion-base) var(--ease-out);
}

.modal-layer .modal-panel {
  opacity: 0;
  transform: scale(.96) translateY(10px);
  transform-origin: center right;
  transition: opacity var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-spring);
}

.modal-layer.is-open {
  opacity: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-layer.is-open .modal-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-layer.is-closing {
  opacity: 0;
}

.modal-layer.is-closing .modal-panel {
  opacity: 0;
  transform: scale(.98) translateY(8px);
}

.primary-action,
.nav-tab,
#refreshBtn,
.filter-row button,
.action-link,
.modal-actions button,
[class*="status-tab"] {
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}

.primary-action:active,
.nav-tab:active,
#refreshBtn:active,
.filter-row button:active,
.action-link:active,
.modal-actions button:active,
[class*="status-tab"]:active {
  transform: scale(.97);
}

.primary-action,
#statusForm button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.rx-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--rx-c-255-255-255-380);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rx-ripple .55s var(--ease-out) forwards;
}

@keyframes rx-ripple {
  to { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

#refreshBtn.is-syncing::before {
  content: "↻";
  display: inline-block;
  margin-right: 6px;
  animation: rx-spin .8s linear infinite;
}

@keyframes rx-spin { to { transform: rotate(360deg); } }

#syncState.sync-success {
  animation: rx-sync-success 600ms var(--ease-out);
}

#syncState.sync-failed {
  color: var(--red);
  border-color: var(--red);
  animation: rx-sync-failed 420ms ease-in-out;
}

@keyframes rx-sync-success {
  40% { color: var(--rx-c-23-35-10-1000); border-color: var(--green); background: var(--green); box-shadow: 0 0 18px var(--rx-c-163-230-53-420); }
}

@keyframes rx-sync-failed {
  0%, 100% { transform: translateX(0); }
  16%, 50%, 84% { transform: translateX(-4px); }
  33%, 67% { transform: translateX(4px); }
}

.submit-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 1em;
}

.submit-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: rx-submit-dot .8s ease-in-out infinite alternate;
}

.submit-dots i:nth-child(2) { animation-delay: 120ms; }
.submit-dots i:nth-child(3) { animation-delay: 240ms; }

@keyframes rx-submit-dot {
  to { opacity: .28; transform: translateY(-3px); }
}

.submit-success > span {
  display: inline-block;
  font-size: 1.25em;
  animation: rx-submit-check var(--motion-base) var(--ease-spring);
}

@keyframes rx-submit-check {
  from { opacity: 0; transform: scale(.4) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.skeleton-shell {
  display: grid;
  gap: 18px;
  padding-block: 8px;
}

.skeleton-metrics,
.skeleton-journey-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skeleton-journey-row { grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.skeleton-order-list { display: grid; gap: 12px; }

.skeleton {
  overflow: hidden;
  border: 1px solid var(--rx-c-103-232-249-100);
  border-radius: 14px;
  background: linear-gradient(105deg, var(--rx-c-16-39-68-720) 25%, var(--rx-c-49-46-129-620) 42%, var(--rx-c-16-39-68-720) 60%);
  background-size: 240% 100%;
  animation: rx-skeleton 1.35s linear infinite;
}

.skeleton-metric { height: 112px; }
.skeleton-journey { height: 190px; }
.skeleton-order { height: 112px; }

@keyframes rx-skeleton { to { background-position: -160% 0; } }

.skeleton-replaced {
  animation: rx-skeleton-replaced 200ms var(--ease-out);
}

@keyframes rx-skeleton-replaced {
  from { opacity: .2; }
  to { opacity: 1; }
}

.motion-preference {
  grid-column: 1 / -1;
  margin: 8px 0;
  padding: 16px;
  border: 1px solid var(--rx-c-103-232-249-180);
  border-radius: 12px;
}

.motion-preference legend { padding: 0 6px; color: var(--cyan); font-weight: 800; }
.motion-preference p { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.motion-segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.motion-segments button { min-height: 38px; border-radius: 8px; }
.motion-segments button.selected { color: var(--rx-c-23-35-10-1000); border-color: var(--green); background: var(--green); font-weight: 900; }

@media (hover: hover) {
  .primary-action:hover,
  .nav-tab:hover,
  #refreshBtn:hover,
  .filter-row button:hover,
  .action-link:hover,
  .modal-actions button:hover,
  [class*="status-tab"]:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 640px) {
  .modal-layer { align-items: end; justify-items: stretch; }
  .modal-layer .modal-panel {
    width: 100%;
    max-height: min(88dvh, 760px);
    height: auto;
    border: 1px solid var(--rx-c-103-232-249-180);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transform-origin: bottom center;
  }
  .modal-layer.is-open .modal-panel { transform: translateY(0); }
  .modal-layer.is-closing .modal-panel { transform: translateY(100%); }
  .skeleton-metrics { grid-template-columns: 1fr; }
  .skeleton-journey-row { grid-template-columns: repeat(7, 180px); overflow: hidden; }
}

html[data-motion="calm"] ::view-transition-old(root),
html[data-motion="calm"] ::view-transition-new(root),
html[data-motion="calm"] .view.view-enter,
html[data-motion="calm"] #screenTitle.title-crossfade {
  transform: none !important;
}

html[data-motion="calm"] .rx-ripple,
html[data-motion="calm"] .view.is-entering > *,
html[data-motion="calm"] .view.is-entering .panel,
html[data-motion="calm"] .view.is-entering .order-card,
html[data-motion="calm"] .view.is-entering .journey-checkpoint {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *,
  html:not([data-motion="full"]) *::before,
  html:not([data-motion="full"]) *::after {
    scroll-behavior: auto !important;
  }
}

/* === MOTION SYSTEM v1.1 FINAL FIXES === */
.views-area {
  min-width: 0;
  view-transition-name: rx-workspace;
}

#screenTitle { view-transition-name: rx-title; }
.nav-pill { view-transition-name: rx-nav-pill; }

::view-transition-old(root),
::view-transition-new(root) { animation: none !important; }

::view-transition-old(rx-workspace),
::view-transition-new(rx-workspace) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(rx-workspace) { animation-name: rx-view-old-forward; }
::view-transition-new(rx-workspace) { animation-name: rx-view-new-forward; }
html[data-view-direction="backward"]::view-transition-old(rx-workspace) { animation-name: rx-view-old-backward; }
html[data-view-direction="backward"]::view-transition-new(rx-workspace) { animation-name: rx-view-new-backward; }

::view-transition-old(rx-title),
::view-transition-new(rx-title) {
  animation-duration: var(--motion-fast);
  animation-timing-function: var(--ease-out);
}

::view-transition-old(rx-title) { animation-name: rx-title-out; }
::view-transition-new(rx-title) { animation-name: rx-title-in; }
@keyframes rx-title-out { to { opacity: 0; } }
@keyframes rx-title-in { from { opacity: 0; } }

.nav-tab.active {
  border-color: var(--rx-c-163-230-53-280);
  background: linear-gradient(135deg, var(--rx-c-163-230-53-170), var(--rx-c-34-211-238-80));
}
.nav-tabs.pill-ready .nav-tab.active { background: transparent; }

.view.motion-seen .manager-mission,
.view.motion-seen .chart-card,
.view.motion-seen .chart-copy,
.view.motion-seen .chart-bar,
.view.motion-seen .donut-segment,
.view.motion-seen .finance-sparkline polyline,
.view.motion-seen .finance-sparkline circle,
.view.motion-seen .sales-person-sparkline polyline,
.view.motion-seen .sales-person-sparkline circle,
.view.motion-seen .sales-trend-line,
.view.motion-seen .sales-trend-last,
.view.motion-seen .finance-donut-advance,
.view.motion-seen .sales-status-donut circle:not(.status-track),
.view.motion-seen .sales-person-rate .rate-value,
.view.motion-seen .sales-tracker-progress b,
.view.motion-seen .sales-top-row > i > b,
.view.motion-seen .designer-workflow-stage,
.view.motion-seen .designer-league-player,
.view.motion-seen .designer-race-track > i,
.view.motion-seen .manager-hold-content {
  animation: none !important;
  opacity: 1 !important;
}

.view.motion-seen .chart-bar,
.view.motion-seen .sales-tracker-progress b,
.view.motion-seen .sales-top-row > i > b,
.view.motion-seen .designer-race-track > i { transform: scaleX(1) !important; }

.view.motion-seen .finance-sparkline polyline,
.view.motion-seen .sales-person-sparkline polyline,
.view.motion-seen .sales-trend-line { stroke-dasharray: 100 0 !important; }

.skeleton-shell {
  opacity: 1;
  transition: opacity 150ms var(--ease-out);
}
.skeleton-shell.skeleton-exit { opacity: 0; }
.skeleton-designer-tabs { display: flex; gap: 14px; align-items: end; min-height: 100px; }
.skeleton-portrait { width: 72px; height: 86px; border-radius: 36px 36px 12px 12px; }
.skeleton-table-list,
.skeleton-binding-list { display: grid; gap: 12px; }
.skeleton-binding { min-height: 150px; }

.load-error-panel {
  width: min(100%, 560px);
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 32px auto;
  padding: 30px;
  border: 1px solid var(--rx-c-251-113-133-280);
  border-radius: 18px;
  background: var(--rx-c-41-18-38-720);
  text-align: center;
}
.load-error-panel h3,
.load-error-panel p { margin: 0; }
.load-error-panel p { max-width: 46ch; color: var(--muted); }
.load-error-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--rx-c-251-113-133-150); color: var(--red); font-size: 26px; font-weight: 950; }

.modal-grab-handle { display: none; }

.motion-preference { position: relative; }
.motion-confirmation {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: -38px;
  padding: 8px 12px;
  border: 1px solid var(--rx-c-163-230-53-320);
  border-radius: 999px;
  background: var(--rx-c-16-39-68-1000);
  color: var(--green);
  box-shadow: var(--shadow);
  animation: rx-motion-confirm 1.2s var(--ease-out) both;
}
@keyframes rx-motion-confirm { 0%, 100% { opacity: 0; transform: translateY(4px); } 15%, 80% { opacity: 1; transform: translateY(0); } }

:where(button, [href], input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--green) !important;
  outline-offset: 2px !important;
}

.mobile-nav,
.mobile-more-layer { display: none; }

html[data-motion="calm"] [data-count-target].is-counting,
html[data-motion="calm"] [data-count-target].is-settled,
html[data-motion="calm"] .manager-health-orbit,
html[data-motion="calm"] .manager-health-orbit.is-accelerating,
html[data-motion="calm"] .manager-health-orbit.is-stabilized,
html[data-motion="calm"] .manager-health-orbit .manager-health-core,
html[data-motion="calm"] .analytics-point,
html[data-motion="calm"] .finance-sparkline circle,
html[data-motion="calm"] .sales-person-sparkline circle,
html[data-motion="calm"] .sales-trend-last,
html[data-motion="calm"] .manager-mission,
html[data-motion="calm"] .manager-live-flag span,
html[data-motion="calm"] .manager-orbit-dot,
html[data-motion="calm"] .journey-stage-art,
html[data-motion="calm"] .manager-board-live i,
html[data-motion="calm"] .manager-hold-content,
html[data-motion="calm"] .designer-workflow-stage,
html[data-motion="calm"] .designer-league-player,
html[data-motion="calm"] .designer-league-progress i,
html[data-motion="calm"] .designer-race-track > i {
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

html[data-motion="calm"] .nav-pill,
html[data-motion="calm"] .mobile-nav-pill { transition-duration: 1ms !important; }
html[data-motion="calm"] .modal-layer .modal-panel,
html[data-motion="calm"] .mobile-more-sheet { transform: none !important; }
html[data-motion="calm"] :where(button, .action-link):hover,
html[data-motion="calm"] :where(button, .action-link):active { transform: none !important; }
html[data-motion="calm"] #syncState.sync-failed,
html[data-motion="calm"] .submit-success > span { animation: none !important; transform: none !important; }
html[data-motion="calm"] .motion-confirmation { animation: rx-calm-confirm 1.2s ease both; transform: none !important; }
@keyframes rx-calm-confirm { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }

@keyframes rx-off-feedback { 0%, 100% { opacity: .42; } 50% { opacity: 1; } }
html[data-motion="off"] #refreshBtn.is-syncing::before,
html[data-motion="off"] .submit-dots i,
html[data-motion="off"] .skeleton {
  animation: rx-off-feedback 1.2s ease-in-out infinite !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .app-shell,
  .app-shell.designer-session,
  .app-shell.binding-session { display: block; min-height: 100dvh; }

  .sidebar,
  .designer-session .sidebar,
  .binding-session .sidebar { display: none !important; }

  .workspace,
  .designer-session .workspace,
  .binding-session .workspace {
    width: 100%;
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
  }

  .topbar,
  .designer-session .topbar,
  .binding-session .topbar {
    position: sticky;
    z-index: 14;
    top: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: -12px -12px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--rx-c-103-232-249-130);
    background: var(--rx-c-7-23-45-880);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .topbar > div:first-child { min-width: 0; }
  .topbar .eyebrow { margin-bottom: 1px; font-size: 9px; }
  .topbar h2,
  .binding-session .topbar h2 { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 6px; margin-left: auto; }
  .sync-chip { max-width: 76px; min-height: 28px; overflow: hidden; padding: 0 8px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  #refreshBtn,
  #addOrderBtn { width: 34px; min-width: 34px; min-height: 34px; padding: 0; font-size: 0; }
  #refreshBtn::after { content: "↻"; font-size: 18px; }
  #refreshBtn.is-syncing::after { display: none; }
  #refreshBtn.is-syncing::before { margin: 0; font-size: 18px; }
  #addOrderBtn::after { content: "+"; font-size: 23px; line-height: 1; }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(var(--mobile-tab-count, 5), minmax(0, 1fr));
    align-items: start;
    padding: 5px 5px env(safe-area-inset-bottom);
    border-top: 1px solid var(--rx-c-103-232-249-180);
    background: var(--rx-c-5-18-36-960);
    box-shadow: 0 -12px 30px var(--rx-c-2-8-23-420);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .mobile-nav.hidden { display: none !important; }
  .mobile-nav-pill {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 0;
    width: var(--pill-width, 0);
    height: 52px;
    border: 1px solid var(--rx-c-163-230-53-300);
    border-radius: 13px;
    background: var(--rx-c-163-230-53-100);
    transform: translateX(var(--pill-x, 0));
    transition: transform var(--motion-base) var(--ease-spring), width var(--motion-base) var(--ease-spring);
    pointer-events: none;
    view-transition-name: rx-mobile-pill;
  }
  .mobile-nav-tab {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--rx-c-145-169-193-1000);
    padding: 2px;
    font-size: 9px;
    font-weight: 850;
  }
  .mobile-nav-tab svg,
  .mobile-more-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-tab.active { color: var(--green); }
  .mobile-tab-badge { position: absolute; top: 2px; right: max(7px, 18%); min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: var(--rx-c-255-255-255-1000); padding: 0 4px; font-size: 8px; }

  .mobile-more-layer {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    align-items: end;
    background: var(--rx-c-2-8-23-720);
    opacity: 0;
    transition: opacity var(--motion-base) var(--ease-out);
  }
  .mobile-more-layer.hidden { display: none !important; }
  .mobile-more-layer.is-open { opacity: 1; }
  .mobile-more-sheet {
    max-height: 78dvh;
    overflow: auto;
    border: 1px solid var(--rx-c-103-232-249-180);
    border-radius: 20px 20px 0 0;
    background: linear-gradient(165deg, var(--rx-c-9-26-50-1000), var(--rx-c-16-39-68-1000) 68%, var(--rx-c-23-37-84-1000));
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform var(--motion-base) var(--ease-spring);
  }
  .mobile-more-layer.is-open .mobile-more-sheet { transform: translateY(0); }
  .mobile-sheet-handle,
  .modal-grab-handle { width: 44px; height: 5px; margin: 2px auto 10px; border-radius: 99px; background: var(--rx-c-255-255-255-320); }
  .mobile-more-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .mobile-more-sheet header h3 { margin: 0; }
  #mobileMoreClose { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; }
  .mobile-more-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mobile-more-tab { position: relative; min-height: 64px; display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; color: var(--ink); text-align: left; }
  .mobile-more-tab.active { border-color: var(--green); color: var(--green); }
  .mobile-more-logout { width: 100%; min-height: 44px; margin-top: 12px; border-color: var(--rx-c-251-113-133-260); color: var(--rx-c-254-205-211-1000); background: var(--rx-c-251-113-133-80); }

  .modal-grab-handle { display: block; flex: 0 0 auto; cursor: grab; touch-action: none; }
  .modal-layer.is-open .modal-panel { transform: translateY(var(--modal-drag-y, 0)); }
  .modal-panel.is-dragging { transition: none !important; }
  .modal-header { touch-action: pan-x; }
}


/* ---- Staff OTP login (v1.67.0) ---- */
.otp-login .login-form { margin-top: 30px; }
.otp-phone-row { display: flex; align-items: stretch; gap: 8px; }
.otp-phone-row input { flex: 1; min-width: 0; }
.otp-prefix {
  display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-weight: 800;
}
.otp-code { letter-spacing: 0.5em; font-size: 22px; text-align: center; font-weight: 800; }
.otp-hint { margin: 0; color: var(--muted); font-size: 14px; }
.otp-link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--cyan); font-weight: 700; font-size: 13px; text-align: left;
}
.otp-link:disabled { color: var(--muted); cursor: default; }
.otp-switch { margin-top: 14px; }
.otp-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.otp-profile {
  display: grid; gap: 2px; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit;
}
.otp-profile strong { font-size: 15px; }
.otp-profile span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.otp-profile[aria-checked="true"] { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan) inset; }
.otp-profile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
