/* Nexus Grid static implementation aligned to the provided React template. */
:root {
  --bg: #fffaf5;
  --bg-warm: #fff3e8;
  --bg-soft: #fff7ed;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5f6673;
  --soft: #8a93a3;
  --border: #fed7aa;
  --border-strong: #fdba74;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-deep: #9a3412;
  --ai-blue: #2563eb;
  --ai-cyan: #0891b2;
  --ai-ink: #111827;
  --green: #059669;
  --green-soft: #ecfdf5;
  --sky-soft: #f0f9ff;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow: 0 22px 60px rgba(154, 52, 18, .12);
  --shadow-card: 0 10px 28px rgba(124, 45, 18, .06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  font-size: 15px;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: .9375rem;
  line-height: 1.55;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input {
  height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 160px;
  resize: vertical;
  padding: 12px 14px;
}

select {
  height: 44px;
  appearance: none;
  padding: 0 36px 0 12px;
  color: var(--text);
  font-size: .84rem;
  font-weight: 750;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: #a8b0bd;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, .16);
}

::selection {
  background: #fed7aa;
}

.hidden,
.workspace-panel-hidden {
  display: none !important;
}

.visually-hidden,
.legacy-interview-actions {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.compact-ui {
  font-size: .9rem;
}

.eyebrow {
  margin: 0;
  color: var(--orange-dark);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title {
  margin: .55rem 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-copy {
  max-width: 38rem;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.primary,
.secondary,
.home-auth-btn,
.public-workspace-btn,
.workspace-nav button,
.answer-mode-tabs button,
.overview-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 26px rgba(234, 88, 12, .22);
}

.primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .78);
  color: var(--orange-dark);
}

.secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-warm);
  color: var(--orange-deep);
}

.secondary.danger,
.danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: var(--danger);
}

.icon-only {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 130;
  width: max-content;
  max-width: 280px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  content: attr(data-tooltip);
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}

.brand-mark,
.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 40px;
  overflow: visible;
  border-radius: 0;
  background: url("./assets/kaixinmiandui-bear-logo.svg") center / contain no-repeat;
  color: #fff;
  filter: drop-shadow(0 8px 14px rgba(234, 88, 12, .14));
}

.brand-mark::before,
.app-icon::before {
  content: none;
}

.brand-mark::after,
.app-icon::after {
  content: none;
}

.home-brand,
.workspace-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.home-brand strong,
.workspace-sidebar-brand b {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
}

.home-brand small,
.workspace-sidebar-brand small {
  display: block;
  margin-top: 3px;
  color: #98a2b3;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
}

/* Public shell */
.home-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background:
    linear-gradient(rgba(249, 115, 22, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, .045) 1px, transparent 1px),
    linear-gradient(115deg, #fffaf5 0%, #fff4ea 48%, #fffaf5 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.home-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, .86) 0%, rgba(255, 250, 245, .38) 45%, rgba(255, 243, 232, .74) 100%);
  content: "";
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 62px;
  border-bottom: 1px solid rgba(254, 215, 170, .88);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.home-header {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 max(20px, calc((100vw - 1280px) / 2 + 24px));
}

.home-brand {
  justify-self: start;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.home-nav button,
.home-download-dropdown a,
.mobile-public-menu button:not(.primary),
.mobile-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: .65rem;
  background: transparent;
  color: var(--muted);
  padding: .42rem .7rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.home-download-menu {
  position: relative;
  display: inline-flex;
}

.home-download-menu > button {
  gap: 4px;
}

.home-download-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 45;
  min-width: 154px;
  padding: 6px;
  border: 1px solid rgba(254, 215, 170, .88);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}

.home-download-menu:hover .home-download-dropdown,
.home-download-menu:focus-within .home-download-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.home-download-dropdown a {
  width: 100%;
  gap: 7px;
  justify-content: flex-start;
  border-radius: 9px;
  color: var(--orange-dark);
  text-decoration: none;
}

.home-nav button:hover,
.home-download-dropdown a:hover,
.mobile-public-menu button:not(.primary):hover,
.mobile-download-link:hover {
  background: var(--bg-warm);
  color: var(--orange-dark);
}

.home-nav button.active,
.mobile-public-menu button.active {
  background: #fff1e4;
  color: var(--orange-deep);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.home-auth-btn {
  justify-self: end;
  min-height: 40px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(234, 88, 12, .2);
}

.public-account-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.public-account-chip {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 40px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 4px 12px 4px 5px;
  font-size: .82rem;
  font-weight: 900;
}

.public-account-chip span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: .76rem;
}

.public-account-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-actions {
  display: grid;
  gap: 8px;
  width: min(100%, 1280px);
  margin: 10px auto 0;
}

.mobile-account-actions span {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 11px 12px;
  font-size: .84rem;
  font-weight: 900;
}

.home-menu-btn {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--orange-dark);
}

.mobile-public-menu {
  position: sticky;
  top: 62px;
  z-index: 25;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 14px 20px;
}

.mobile-public-menu button:not(.primary) {
  justify-content: flex-start;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: .65rem .75rem;
}

.mobile-download-link {
  justify-content: flex-start;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: .65rem .75rem;
  text-decoration: none;
}

.mobile-public-menu .primary {
  width: min(100%, 1280px);
  margin: 8px auto 0;
}

.public-page {
  display: block;
}

.public-page.hidden {
  display: none !important;
}

#authView:not(.client-login-mode) .client-login-titlebar,
#authView:not(.client-login-mode) .client-login-preview {
  display: none !important;
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  width: min(100%, 1152px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(30px, 4.8vw, 40px) 20px clamp(24px, 4vw, 34px);
}

.auth-hero-main {
  max-width: 520px;
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.hero-kicker span {
  width: 40px;
  height: 1px;
  background: #fdba74;
}

.hero-main-title,
.auth-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 4.2vw, 3.28rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.14;
}

.hero-main-title span,
.auth-hero h1 span {
  color: var(--orange);
}

.hero-copy {
  max-width: 500px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.hero-ai-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin-top: 18px;
}

.hero-ai-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  border: 1px solid rgba(8, 145, 178, .18);
  border-radius: 999px;
  background: rgba(240, 249, 255, .92);
  color: #164e63;
  padding: 0 12px;
  font-size: .76rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(8, 145, 178, .08);
}

.hero-ai-flow iconify-icon {
  color: var(--ai-cyan);
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-cta .primary {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-size: .95rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 520px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}

.hero-stats div {
  min-width: 0;
  padding-right: 12px;
  color: var(--muted);
}

.hero-stats div + div {
  border-left: 1px solid var(--border);
  padding-left: 13px;
}

.hero-stats iconify-icon {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
}

.hero-stats strong {
  display: block;
  color: #2b3038;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.hero-stats span {
  display: block;
  margin-top: 3px;
  font-size: .75rem;
  line-height: 1.35;
}

.hero-visual-shell {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, .8);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .72) 0%, rgba(255, 244, 233, .92) 53%, rgba(255, 238, 218, .84) 100%);
  box-shadow: 0 20px 54px rgba(154, 52, 18, .09);
  padding: 20px;
}

.hero-visual-sun,
.hero-visual-dotfield,
.hero-visual-orbit {
  pointer-events: none;
  position: absolute;
}

.hero-visual-sun {
  border-radius: 999px;
  filter: blur(1px);
}

.hero-visual-sun-one {
  left: -76px;
  bottom: -94px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(251, 146, 60, .22), rgba(251, 146, 60, 0) 69%);
}

.hero-visual-sun-two {
  right: 92px;
  top: -105px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(254, 215, 170, .66), rgba(254, 215, 170, 0) 68%);
}

.hero-visual-dotfield {
  right: 18px;
  bottom: 18px;
  width: 105px;
  height: 74px;
  opacity: .52;
  background-image: radial-gradient(#fb923c 1.3px, transparent 1.3px);
  background-size: 11px 11px;
  mask-image: linear-gradient(135deg, transparent, #000 38%);
}

.hero-visual-orbit {
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 999px;
}

.hero-visual-orbit-one {
  right: -104px;
  top: 34px;
  width: 330px;
  height: 330px;
  transform: rotate(-18deg);
}

.hero-visual-orbit-two {
  right: -28px;
  top: 92px;
  width: 268px;
  height: 268px;
  border-color: rgba(251, 146, 60, .22);
  transform: rotate(26deg);
}

.hero-status-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 0 12px;
  font-size: .74rem;
  font-weight: 850;
}

.hero-status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}

.hero-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  height: 100%;
}

.hero-map-copy {
  max-width: 270px;
  padding-top: 4px;
}

.hero-map-copy h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.hero-map-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.hero-map-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  margin-top: 12px;
  border: 1px solid rgba(253, 186, 116, .84);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--orange-dark);
  padding: 0 10px;
  font-size: .68rem;
  font-weight: 850;
}

.confidence-ring {
  --ring-angle: 281deg;
  align-self: center;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(154px, 17vw, 184px);
  height: clamp(154px, 17vw, 184px);
  margin: 10px 0;
  border-radius: 999px;
}

.confidence-ring::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(var(--orange) 0deg var(--ring-angle), var(--border) var(--ring-angle) 360deg);
  box-shadow: 0 20px 45px rgba(234, 88, 12, .14), inset 0 0 0 1px rgba(255, 255, 255, .55);
  content: "";
  transform-origin: 50% 50%;
  will-change: transform, background;
}

.confidence-ring.is-loading::before {
  animation: confidenceRingLoad 2.2s cubic-bezier(.22, 1, .36, 1) both;
}

.confidence-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 8px 22px rgba(254, 215, 170, .48);
  text-align: center;
}

.confidence-ring strong {
  color: var(--text);
  font-size: clamp(2.35rem, 4.2vw, 3rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.confidence-ring strong span {
  color: var(--orange);
  font-size: .44em;
}

.confidence-ring em {
  max-width: 86%;
  overflow: hidden;
  color: var(--orange-dark);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.hero-radar-card {
  position: relative;
  border: 1px solid rgba(254, 215, 170, .82);
  border-radius: 12px;
  background: rgba(255, 250, 245, .9);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.hero-radar-card > div:first-child p {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
}

.hero-radar-card > div:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-signal {
  min-width: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  padding: .55rem .6rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(234, 88, 12, .08);
}

.hero-signal div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hero-signal b {
  overflow: hidden;
  color: #475467;
  font-size: .7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-signal i {
  display: block;
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffedd5;
}

.hero-signal i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
  will-change: width;
}

.hero-signal.is-loading i span::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: progressSweep .86s ease-in-out infinite;
  content: "";
}

.hero-signal:nth-child(1) i span {
  background: #10b981;
}

.hero-signal:nth-child(3) i span {
  background: #f59e0b;
}

.hero-signal p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.2;
}

/* Public trial */
.trial-stage {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(254, 215, 170, .8);
  border-bottom: 1px solid rgba(254, 215, 170, .8);
  background: linear-gradient(115deg, rgba(255, 247, 238, .98) 0%, rgba(255, 235, 214, .92) 49%, rgba(255, 248, 240, .98) 100%);
  padding: 28px 20px;
}

.trial-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(90deg, rgba(249, 115, 22, .06) 1px, transparent 1px), linear-gradient(rgba(249, 115, 22, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  content: "";
}

.trial-stage-orbit {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 999px;
}

.trial-stage-orbit-one {
  right: -120px;
  top: -165px;
  width: 480px;
  height: 480px;
}

.trial-stage-orbit-two {
  left: -145px;
  bottom: -220px;
  width: 360px;
  height: 360px;
  border-color: rgba(251, 146, 60, .13);
}

.trial-stage-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.trial-intro-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(253, 186, 116, .9);
  border-radius: 20px;
  background: rgba(255, 247, 238, .95);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(154, 52, 18, .07);
  backdrop-filter: blur(8px);
}

.trial-title {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(1.42rem, 1.85vw, 1.86rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.22;
}

.trial-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.62;
}

.trial-rule-card {
  margin-top: 14px;
  border: 1px solid rgba(253, 186, 116, .8);
  border-radius: 16px;
  background: rgba(255, 250, 245, .9);
  padding: 12px;
}

.trial-rule-title {
  margin: 0;
  color: var(--orange-dark);
  font-size: .96rem;
  font-weight: 900;
}

.trial-rule-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #374151;
  font-size: .9rem;
  line-height: 1.45;
}

.trial-rule-list li {
  display: flex;
  gap: 10px;
}

.trial-rule-list iconify-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #059669;
}

.trial-rule-list li:nth-child(3) iconify-icon {
  color: var(--orange);
}

.trial-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.trial-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 800;
}

.trial-status i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fb923c;
}

.trial-status.running i,
#guestListenBadge.running {
  background: #ecfdf5;
  color: #047857;
}

.trial-hint {
  color: var(--muted);
  font-size: .84rem;
}

.trial-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-warm);
  padding: 10px;
  box-shadow: 0 18px 42px rgba(154, 52, 18, .08);
}

.trial-console-grid {
  display: grid;
  min-height: 0;
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(254, 215, 170, .8);
  border-radius: 20px;
  background: var(--bg-warm);
  padding: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trial-pane,
.pane,
.workspace-card,
.public-card,
.step-card,
.plan-card,
.prep-step {
  min-width: 0;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.trial-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.trial-pane-head,
.pane-head,
.workspace-card-head,
.resume-box-head,
.role-result-head,
.records-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trial-pane-head {
  border-bottom: 1px solid #ffedd5;
  padding-bottom: 10px;
}

.trial-pane-head strong,
.pane-title-inline,
.workspace-card-head h2,
.resume-box-head h2,
.role-result-head h2,
.records-card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.trial-pane-head > span,
.listen-badge,
.answer-mode-label,
.result-badge,
.record-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 850;
}

.trial-text-card,
.trial-answer-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 150px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: var(--bg);
  padding: 12px;
}

.trial-text-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.trial-text-card b,
.trial-answer-card p,
.trial-answer-card b {
  margin: 0;
  color: var(--orange-dark);
  font-size: .74rem;
  font-weight: 900;
}

.trial-text-card span,
.trial-text-card p,
.trial-answer-card span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.trial-answer-card strong {
  white-space: pre-wrap;
}

.trial-text-card p,
.trial-answer-card > div {
  min-height: 0;
  overflow: auto;
}

.trial-answer-card {
  min-height: 220px;
  border-color: #e7c9aa;
  background: #fff1e4;
}

.trial-answer-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.trial-answer-card > div {
  margin-top: 10px;
  border-top: 1px solid rgba(249, 115, 22, .24);
  padding-top: 10px;
}

.trial-stage-compact .trial-text-card,
.trial-stage-compact .trial-answer-card {
  height: clamp(166px, 22vh, 210px);
  max-height: 210px;
  flex: 0 1 auto;
}

.trial-stage-compact .trial-console-grid {
  align-items: stretch;
}

.trial-stage-compact .trial-pane:nth-child(2) .trial-answer-card {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.trial-stage-compact .trial-pane:nth-child(2) .trial-answer-card > div,
.trial-stage-compact .trial-pane:nth-child(2) .trial-answer-card span {
  flex: 1 1 0;
  max-height: 100%;
}

.trial-stage-compact .trial-text-card p {
  flex: 1 1 auto;
  padding-right: 4px;
}

.trial-stage-compact .trial-answer-card strong {
  max-height: 3.2em;
  overflow: auto;
  padding-right: 4px;
}

.trial-stage-compact .trial-answer-card > div {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.trial-stage-compact .trial-answer-card span {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
}

.trial-wave,
.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff7ed;
  padding: 0 12px;
}

.trial-wave span,
.voice-wave span {
  width: 6px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fdba74;
  transform: translateX(var(--wave-shift, 0)) scaleY(var(--wave-scale, .42));
  transform-origin: center;
  opacity: var(--wave-opacity, .62);
}

.trial-stage.running .trial-wave span,
.transcript-pane.interview-listening .voice-wave span,
.transcript-pane.listening .voice-wave span {
  background: var(--orange);
  animation: interview-wave-bounce .62s ease-in-out infinite;
  animation-delay: var(--wave-delay, 0s);
}

.trial-wave span:nth-child(3n + 1),
.voice-wave span:nth-child(3n + 1) {
  --wave-delay: -.28s;
}

.trial-wave span:nth-child(3n + 2),
.voice-wave span:nth-child(3n + 2) {
  --wave-delay: -.14s;
}

.trial-wave span:nth-child(4n),
.voice-wave span:nth-child(4n) {
  --wave-delay: -.38s;
}

.trial-controls-card,
.interview-control-card {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(154, 52, 18, .06);
}

.trial-controls,
.interview-control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trial-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trial-gain-control {
  grid-column: 1 / -1;
}

.trial-controls-card .primary,
.interview-control-card .primary {
  width: min(100%, 24rem);
  min-height: 40px;
  margin: 10px auto 0;
}

.interview-control-card .primary {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
}

select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.trial-controls label,
.trial-answer-mode,
.interview-control-card label,
.role-input-card label,
.auth-form label {
  display: block;
  min-width: 0;
  color: #4b5563;
  font-size: .8rem;
  font-weight: 800;
}

.trial-controls label > span,
.trial-answer-mode > span,
.interview-control-card label > span,
.role-input-card label > span,
.auth-form label > span {
  display: block;
  margin-bottom: 7px;
}

.trial-answer-mode {
  margin-top: 10px;
}

.trial-stage-compact .trial-controls-card {
  padding: 8px;
}

.trial-stage-compact .trial-controls {
  gap: 6px;
}

.trial-stage-compact .trial-controls-card .primary {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: 36px;
  margin-top: 6px;
}

.trial-stage-compact .trial-controls label > span,
.trial-stage-compact .trial-answer-mode > span {
  margin-bottom: 5px;
}

.trial-stage-compact select {
  min-height: 34px;
}

.trial-stage-compact .trial-answer-mode {
  margin-top: 8px;
}

.trial-stage-compact .trial-wave {
  min-height: 36px;
  margin-top: 8px;
}

.trial-stage-compact .trial-wave span {
  height: 22px;
}

@keyframes interview-wave-bounce {
  0%, 100% {
    transform: translateX(var(--wave-shift, 0)) scaleY(var(--wave-idle, .32));
    opacity: var(--wave-low-opacity, .54);
  }
  45% {
    transform: translateX(var(--wave-shift, 0)) scaleY(var(--wave-peak, 1.85));
    opacity: var(--wave-high-opacity, 1);
  }
  72% {
    transform: translateX(var(--wave-shift, 0)) scaleY(var(--wave-mid, .88));
    opacity: var(--wave-mid-opacity, .86);
  }
}

@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 0 4px rgba(249, 115, 22, .14); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes confidenceRingLoad {
  0% {
    filter: saturate(1.08);
    transform: rotate(-112deg);
  }

  72% {
    filter: saturate(1.16);
    transform: rotate(276deg);
  }

  100% {
    filter: saturate(1);
    transform: rotate(360deg);
  }
}

@keyframes progressSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Public subpages */
.public-subpage {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 34px 20px 44px;
}

.page-intro {
  max-width: 44rem;
}

.step-card-grid,
.plan-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.plan-card,
.prep-step {
  padding: 16px;
  background: rgba(255, 255, 255, .9);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.step-card:hover,
.plan-card:hover,
.prep-step:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(234, 88, 12, .11);
}

.step-card > div,
.prep-step > div,
.plan-card > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-card span,
.prep-step span,
.plan-card > span,
.referral-steps span {
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  font-weight: 900;
}

.step-card iconify-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange);
}

.step-card h2,
.prep-step h3,
.plan-card h2 {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.prep-step h3 {
  margin-top: 12px;
}

.step-card p,
.prep-step p,
.plan-card p,
.public-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.home-feature-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
  padding: 42px 20px;
}

.home-feature-inner {
  display: grid;
  align-items: center;
  grid-template-columns: .75fr 1.25fr;
  gap: 32px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.home-feature-copy {
  max-width: 420px;
}

.tutorial-start-feature {
  width: 100%;
  padding: 0 0 4px;
}

.asr-engine-band {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 247, 237, .82));
}

.asr-engine-inner {
  align-items: stretch;
  grid-template-columns: .68fr 1.32fr;
}

.asr-engine-inner .home-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding-top: 8px;
}

.asr-engine-card {
  min-width: 0;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.asr-engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ffedd5;
  padding-bottom: 14px;
}

.asr-engine-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 0 12px;
  font-size: .82rem;
  font-weight: 900;
}

.asr-engine-head strong {
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 950;
  letter-spacing: 0;
  text-align: right;
}

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

.asr-engine-summary div {
  min-width: 0;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  background: #fffaf5;
  padding: 14px;
}

.asr-engine-summary b {
  display: block;
  color: var(--text);
  font-size: .92rem;
  font-weight: 950;
}

.asr-engine-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.asr-dialect-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.asr-dialect-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: rgba(255, 247, 237, .86);
  color: #9a3412;
  padding: 0 10px;
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

.membership-band .home-feature-inner {
  grid-template-columns: .62fr 1.38fr;
}

.member-tier-grid {
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-tier-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.member-tier-card.featured {
  border-color: #fdba74;
  background: #fff7ed;
}

.member-tier-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-tier-card > div span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 900;
}

.member-tier-card iconify-icon {
  color: var(--orange-dark);
}

.member-tier-card h3 {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 950;
}

.member-tier-card strong {
  display: block;
  margin-top: 8px;
  color: var(--orange-dark);
  font-size: .82rem;
}

.member-tier-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.58;
}

.member-tier-card small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: 16px;
  border-radius: 999px;
  background: #ffedd5;
  color: var(--orange-dark);
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 950;
}

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

.prep-step > div {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
}

.prep-step > div span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: .74rem;
}

.prep-step iconify-icon {
  color: var(--orange-dark);
  margin-top: 8px;
}

.public-two-col,
.referral-layout,
.contact-layout {
  display: grid;
  gap: 32px;
  margin-top: 42px;
  align-items: start;
  grid-template-columns: 1.05fr .95fr;
}

.referral-layout {
  grid-template-columns: .82fr 1.18fr;
}

.contact-layout {
  align-items: stretch;
  grid-template-columns: .9fr 1.1fr;
}

.public-subpage .split-page-intro {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: stretch;
}

.public-subpage .split-page-intro .section-title {
  max-width: 760px;
}

.public-subpage .split-page-intro .section-copy {
  max-width: 640px;
}

.tutorial-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: stretch;
}

.tutorial-check-card,
.activation-proof-card,
.referral-reward-card,
.support-proof-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(8, 145, 178, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(8, 145, 178, .08);
}

.tutorial-check-card span,
.activation-proof-card span,
.support-proof-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 7px;
  border-radius: 999px;
  background: rgba(8, 145, 178, .1);
  color: #155e75;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 900;
}

.tutorial-check-card strong,
.activation-proof-card strong,
.support-proof-card strong {
  color: var(--ai-ink);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.2;
}

.tutorial-check-card p,
.activation-proof-card p,
.referral-reward-card p,
.support-proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.tutorial-start-feature {
  display: grid;
  gap: 22px;
}

.tutorial-steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-tutorial-page .prep-step {
  display: grid;
  min-height: 178px;
  align-content: start;
  border-color: rgba(8, 145, 178, .18);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.public-tutorial-page .prep-step > div span {
  background: var(--ai-cyan);
}

.public-tutorial-page .prep-step iconify-icon {
  color: var(--ai-cyan);
}

.tutorial-detail-grid {
  grid-template-columns: .95fr 1.05fr;
  margin-top: 28px;
}

.public-activate-page .plan-grid {
  gap: 14px;
  align-items: stretch;
}

.public-activate-page .plan-card {
  display: grid;
  min-height: 230px;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100%;
  will-change: transform;
}

.public-activate-page .plan-card.featured {
  transform: none;
  box-shadow: 0 20px 38px rgba(234, 88, 12, .14);
}

.public-activate-page .plan-card:hover,
.public-activate-page .plan-card.featured:hover {
  transform: translate3d(0, -6px, 0) !important;
  border-color: rgba(249, 115, 22, .52);
  box-shadow: 0 22px 42px rgba(234, 88, 12, .18) !important;
}

.public-activate-page .plan-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(234, 88, 12, .18);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.public-activate-page .plan-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(234, 88, 12, .22);
}

.public-activate-page .plan-buy-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.public-activate-page .activate-panel-public {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  margin-top: 24px;
  background: linear-gradient(135deg, #fff7ed 0%, #f0f9ff 100%);
}

.referral-reward-card {
  border-color: rgba(249, 115, 22, .24);
  background: linear-gradient(135deg, #fff7ed 0%, #f0f9ff 100%);
}

.referral-reward-card span {
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 950;
}

.referral-reward-card strong {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.05;
}

.public-referral-page .referral-layout {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 22px;
}

.public-referral-page .referral-process-card {
  padding: 28px;
}

.public-referral-page .referral-steps {
  gap: 12px;
}

.public-referral-page .referral-steps div {
  background: #fff;
}

.public-contact-page .contact-layout {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 22px;
}

.public-contact-page .support-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-contact-page .qr-card {
  background: linear-gradient(135deg, #fff7ed 0%, #f0f9ff 100%);
}

.public-card {
  padding: 24px;
}

.public-card h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.public-copy-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.public-copy-list strong {
  color: var(--text);
}

.faq-title-row,
.contact-card-head,
.referral-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-title-row > iconify-icon {
  color: var(--orange);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 14px 18px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.faq-item[open] summary > iconify-icon {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
}

.plan-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ed;
  padding: 0 10px;
  font-size: .72rem;
}

.plan-card.featured {
  border-color: var(--border-strong);
  background: #fff;
}

.plan-card > div {
  margin-top: 20px;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.plan-card strong {
  color: var(--orange);
  font-size: 1.08rem;
  font-weight: 900;
}

.plan-card p {
  min-height: 72px;
  margin-top: 12px;
}

.public-activate-page .plan-card p {
  min-height: 0;
}

.plan-feature-list {
  display: grid;
  gap: 8px;
  align-content: end;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.35;
}

.plan-feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, .12);
}

.public-activate-page .plan-card.featured .plan-feature-list li::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .14);
}

.activate-panel-public {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 32px;
  align-items: center;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-warm);
  padding: 42px;
  box-shadow: 0 20px 55px rgba(154, 52, 18, .12);
}

.section-icon,
.license-ok-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
}

.activate-panel-public h2 {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.activate-panel-public p {
  max-width: 520px;
}

.activate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}

.activate-tags span,
.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.activate-tags iconify-icon {
  color: var(--green);
}

.public-activate-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(154, 52, 18, .07);
}

.public-activate-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-activate-title p {
  margin: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
}

.public-activate-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .74rem;
}

.public-activate-card input {
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  letter-spacing: .08em;
}

.public-activate-card .primary {
  width: 100%;
  margin-top: 12px;
}

.public-action-message,
.copy-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--orange-deep);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.45;
}

.referral-card-head {
  justify-content: flex-start;
}

.contact-card-head {
  justify-content: flex-start;
}

.referral-card-head > span,
.contact-card-head > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff7ed;
  color: var(--orange);
}

.contact-card-head > span {
  background: var(--orange);
  color: #fff;
}

.referral-card-head h2,
.contact-card-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.referral-code-box {
  margin-top: 28px;
  border-radius: 16px;
  background: #fff7ed;
  padding: 22px;
}

.referral-code-box p {
  margin: 0;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.referral-code-box strong {
  display: block;
  margin-top: 10px;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: .22em;
}

.referral-code-card .secondary {
  width: 100%;
  margin-top: 20px;
}

.referral-process-card > h2 {
  margin-top: 0;
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.referral-steps div {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff7ed;
  padding: 16px;
}

.referral-steps b {
  display: block;
  margin-top: 14px;
  color: #374151;
  font-size: .86rem;
}

.referral-steps div > iconify-icon {
  position: absolute;
  right: -14px;
  top: 50%;
  z-index: 2;
  color: #fdba74;
}

.referral-note {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
  color: #78350f;
  padding: 14px;
}

.support-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.support-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(255, 237, 213, .7);
  color: #374151;
  padding: 12px 14px;
  font-size: .86rem;
  font-weight: 750;
}

.support-list iconify-icon {
  color: var(--green);
}

.contact-list-card .primary {
  width: 100%;
  margin-top: 28px;
}

.qr-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border-strong);
  background: var(--bg-warm);
}

.qr-orbit {
  position: absolute;
  right: -64px;
  top: -64px;
  width: 192px;
  height: 192px;
  border: 22px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
}

.qr-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.qr-badge {
  margin-top: 20px;
  color: var(--orange-dark);
  font-size: .86rem;
  font-weight: 800;
}

.qr-placeholder {
  display: grid;
  min-width: 140px;
  justify-items: center;
  gap: 10px;
  border-radius: 16px;
  background: white;
  padding: 14px;
  color: var(--orange-deep);
  font-size: .68rem;
  font-weight: 800;
}

.qr-pattern {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  width: 118px;
  height: 118px;
  background: #fff7ed;
  padding: 6px;
}

.qr-pattern span {
  border-radius: 1px;
  background: #fed7aa;
}

.qr-pattern span.dark {
  background: var(--orange-deep);
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
  color: #98a2b3;
  padding: 24px max(20px, calc((100vw - 1280px) / 2 + 24px));
  font-size: .74rem;
}

.public-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.public-footer button {
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.public-footer button:hover {
  color: var(--orange-dark);
}

/* Auth drawer */
body.auth-drawer-open .home-shell {
  overflow-y: auto;
  overflow-x: hidden;
}

.auth-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  background: rgba(67, 20, 7, .25);
  backdrop-filter: blur(2px);
  animation: authBackdropFadeIn .22s ease-out both;
}

.auth-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(540px, calc(100vw - 28px));
  height: 100vh;
  overflow: hidden;
  background: #fffaf5;
  color: var(--text);
  box-shadow: -20px 0 60px rgba(124, 45, 18, .16);
  opacity: .98;
  transform: translate3d(calc(100% + 24px), 0, 0);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
  transform-origin: right center;
  will-change: transform;
}

.auth-drawer.drawer-open {
  opacity: 1;
  transform: translateX(0);
  animation: authDrawerSlideIn .78s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes authDrawerSlideIn {
  0% {
    opacity: .9;
    transform: translate3d(calc(100% + 24px), 0, 0);
  }

  70% {
    opacity: 1;
    transform: translate3d(-6px, 0, 0);
  }

  88% {
    transform: translate3d(1.5px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes authBackdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auth-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  padding: 14px 24px;
  backdrop-filter: blur(16px);
}

.auth-drawer-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 24px;
}

.auth-card-inner {
  max-width: 492px;
  margin: 0 auto;
  border: 1px solid rgba(254, 215, 170, .8);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  padding: 22px;
  box-shadow: 0 18px 45px rgba(154, 52, 18, .08);
}

.auth-title h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: clamp(1.34rem, 4vw, 1.76rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
}

.auth-title p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 243, 232, .7);
  padding: 0 6px;
}

.auth-tabs button {
  position: relative;
  min-height: 38px;
  background: transparent;
  color: #8a93a3;
  font-size: .84rem;
  font-weight: 850;
}

.auth-tabs button.active {
  color: var(--orange-dark);
}

.auth-tabs button.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--orange);
  content: "";
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-form-row {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-items: start;
}

.auth-form-row-7-3 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.auth-form label small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: .72rem;
  font-weight: 650;
}

.input-wrap {
  position: relative;
}

.input-wrap iconify-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  transform: translateY(-50%);
  color: #a87554;
}

.input-wrap input {
  height: 44px;
  border-radius: 14px;
  padding-left: 42px;
}

.captcha-row,
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.captcha-row input,
.code-row input,
.code-row .secondary {
  height: 44px;
  min-height: 44px;
  border-radius: 14px;
}

.auth-form-row .code-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.auth-form-row .code-row .secondary {
  padding: 0 7px;
  font-size: .72rem;
}

.captcha-image {
  display: grid;
  place-items: center;
  width: 118px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-warm);
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-form .primary {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 14px;
  font-size: .95rem;
}

.message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--orange-dark);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}

.auth-drawer-foot {
  max-width: 560px;
  margin: 12px auto 0;
  color: #98a2b3;
  font-size: .76rem;
  text-align: center;
}

body.auth-mode-login .auth-drawer-scroll {
  overflow-y: hidden;
}

body.auth-mode-login .auth-drawer-head {
  padding: 12px 20px;
}

body.auth-mode-login .auth-drawer-scroll {
  padding: 14px 20px;
}

body.auth-mode-login .auth-card-inner {
  padding: 12px 14px;
}

body.auth-mode-login .auth-title h2 {
  font-size: clamp(1.24rem, 3.8vw, 1.52rem);
}

body.auth-mode-login .auth-title p:not(.eyebrow) {
  font-size: .78rem;
  line-height: 1.38;
}

body.auth-mode-login .auth-tabs {
  margin-top: 12px;
}

body.auth-mode-login .auth-tabs button {
  min-height: 34px;
}

body.auth-mode-login .auth-form {
  gap: 8px;
  margin-top: 12px;
}

body.auth-mode-login .input-wrap input,
body.auth-mode-login .captcha-row input,
body.auth-mode-login .code-row input,
body.auth-mode-login .code-row .secondary {
  height: 36px;
  min-height: 36px;
  border-radius: 12px;
}

body.auth-mode-login .captcha-image {
  width: 104px;
  height: 36px;
  border-radius: 12px;
}

body.auth-mode-login .auth-form .primary {
  min-height: 38px;
  margin-top: 2px;
}

body.auth-mode-login .message {
  min-height: 16px;
  margin-top: 6px;
}

body.auth-mode-login .auth-drawer-foot {
  display: none;
}

.auth-drawer-foot button {
  background: transparent;
  color: var(--orange-dark);
  font-weight: 800;
}

.auth-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: 100%;
  height: 100%;
  background: rgba(67, 20, 7, .28);
  backdrop-filter: blur(5px);
}

.auth-success-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.auth-success-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(253, 186, 116, .86);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 58%, #fff7ed 100%);
  padding: 26px;
  box-shadow: 0 24px 70px rgba(124, 45, 18, .18);
  pointer-events: auto;
}

.auth-success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
}

.auth-success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(5, 150, 105, .12);
}

.auth-success-card h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1.52rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
}

.auth-success-card > p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.auth-success-profile {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-success-profile div {
  min-width: 0;
  border: 1px solid rgba(254, 215, 170, .86);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  padding: 12px;
}

.auth-success-profile dt {
  margin: 0;
  color: #a87554;
  font-size: .68rem;
  font-weight: 850;
}

.auth-success-profile dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--text);
  font-size: .92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-success-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-top: 20px;
}

.auth-success-actions button {
  min-height: 44px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 900;
}

.auth-success-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.auth-success-open .home-shell {
  overflow: hidden;
}

.purchase-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  width: 100%;
  height: 100%;
  background: rgba(67, 20, 7, .34);
  backdrop-filter: blur(6px);
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 12px;
  pointer-events: none;
}

.purchase-modal-card {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(253, 186, 116, .86);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 58%, #fff7ed 100%);
  padding: 18px;
  box-shadow: 0 26px 82px rgba(124, 45, 18, .22);
  pointer-events: auto;
}

.purchase-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
}

.purchase-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.purchase-modal-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(249, 115, 22, .22);
  border-radius: 16px;
  background: #ffedd5;
  color: var(--orange);
  box-shadow: 0 12px 24px rgba(234, 88, 12, .12);
}

.purchase-modal-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.16;
}

.purchase-modal-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.purchase-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 14px;
  margin-top: 14px;
}

.purchase-modal-main,
.purchase-modal-side {
  min-width: 0;
  border: 1px solid rgba(254, 215, 170, .86);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  padding: 12px;
}

.purchase-modal-main {
  display: grid;
  gap: 10px;
}

.purchase-plan-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #f0f9ff 100%);
  padding: 11px 12px;
}

.purchase-plan-summary span,
.purchase-block-title,
.purchase-result span {
  display: block;
  margin: 0;
  color: #a87554;
  font-size: .7rem;
  font-weight: 950;
}

.purchase-plan-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.purchase-plan-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}

.purchase-plan-summary b {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.purchase-block-title {
  margin-bottom: 8px;
}

.purchase-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.purchase-method-btn {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(253, 186, 116, .8);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.purchase-method-btn:hover:not(:disabled),
.purchase-method-btn.active {
  border-color: rgba(249, 115, 22, .68);
  box-shadow: 0 12px 24px rgba(234, 88, 12, .12);
  transform: translateY(-1px);
}

.purchase-method-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.purchase-method-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.purchase-method-main iconify-icon {
  flex: 0 0 auto;
  color: var(--orange);
}

.purchase-method-main b {
  overflow: hidden;
  font-size: .88rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-method-btn small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.purchase-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(249, 115, 22, .28);
  border-radius: 12px;
  color: var(--muted);
  padding: 12px;
  font-size: .82rem;
}

.purchase-qr-panel {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.purchase-qr-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 6px #fff7ed;
}

.purchase-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.purchase-qr-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  color: #b45309;
  font-size: .82rem;
  font-weight: 850;
  text-align: center;
}

.purchase-qr-copy strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.purchase-qr-copy p,
.purchase-message,
.purchase-safe-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

#purchasePaymentNote {
  white-space: pre-line;
  color: var(--text);
  font-size: .9rem;
  font-weight: 850;
}

.purchase-qr-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.purchase-flow-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-flow-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(253, 186, 116, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  padding: 9px 11px;
  font-size: .82rem;
  font-weight: 900;
}

.purchase-flow-list span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 5px #fff1e7;
}

.purchase-modal-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.purchase-code-side {
  justify-content: space-between;
}

.purchase-code-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.purchase-code-head h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1.25;
}

.purchase-code-head > span {
  flex: 0 0 auto;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green);
  padding: 7px 11px;
  font-size: .72rem;
  font-weight: 950;
}

.purchase-code-form {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(253, 186, 116, .78);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  padding: 14px;
}

.purchase-code-form label {
  color: #9a3412;
  font-size: .75rem;
  font-weight: 950;
}

.purchase-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.purchase-code-row input {
  width: 100%;
  height: 52px;
  min-width: 0;
  border: 1px solid rgba(253, 186, 116, .95);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.16rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
  outline: none;
}

.purchase-code-row input:focus {
  border-color: rgba(249, 115, 22, .88);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.purchase-code-row i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fdba74;
}

.purchase-code-form small {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 850;
}

.purchase-code-form button {
  min-height: 48px;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 950;
}

.purchase-code-form.is-success .purchase-code-row,
.purchase-code-form.is-success > label,
.purchase-code-form.is-success > small {
  display: none;
}

.purchase-success-actions {
  display: grid;
  gap: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  padding: 13px;
}

.purchase-success-actions p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #15803d;
  font-size: .9rem;
  font-weight: 950;
}

.purchase-success-actions strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.purchase-success-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.purchase-success-buttons button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.purchase-message {
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 12px;
  background: #fff7ed;
  color: #7c2d12;
  padding: 10px;
  font-weight: 800;
}

.purchase-paid-btn {
  display: none !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 950;
}

.purchase-result {
  display: grid;
  gap: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  padding: 12px;
}

.purchase-result strong {
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.purchase-result div {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 8px;
}

.purchase-result button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 900;
}

.purchase-safe-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: auto;
}

body.purchase-modal-open .home-shell {
  overflow: hidden;
}

.referral-input-wrap input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Workspace shell */
.client-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-warm);
  padding: 12px;
}

.workspace-frame {
  display: flex;
  flex-direction: row;
  width: min(100%, 1640px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, .9);
  border-radius: 26px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}

.workspace-sidebar {
  display: flex;
  flex: 0 0 256px;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(254, 215, 170, .8);
  padding: 24px 20px;
}

.workspace-sidebar-brand {
  padding: 0 8px 28px;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-nav button {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085;
  padding: 0 12px;
  text-align: left;
}

.workspace-nav button:hover {
  background: rgba(255, 255, 255, .75);
  color: var(--orange-dark);
}

.workspace-nav button.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(234, 88, 12, .18);
}

.sidebar-readiness {
  margin-top: auto;
  border: 1px solid rgba(254, 215, 170, .85);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  padding: 14px;
}

.sidebar-readiness p {
  margin: 0;
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
}

.sidebar-readiness div {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffedd5;
}

.sidebar-readiness div span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.sidebar-readiness small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}

.workspace-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(254, 215, 170, .8);
  background: rgba(255, 255, 255, .8);
  padding: 14px 28px;
  backdrop-filter: blur(10px);
}

.workspace-topbar p {
  margin: 0;
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 800;
}

.workspace-topbar h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
}

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

.account-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.account-panel-btn {
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 4px 6px;
  color: inherit;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.account-panel-btn:hover {
  background: #fff7ed;
  transform: translateY(-1px);
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffedd5;
  color: var(--orange-dark);
  font-size: .86rem;
  font-weight: 950;
}

.account-panel b {
  display: block;
  max-width: 128px;
  overflow: hidden;
  color: var(--text);
  font-size: .76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel small {
  display: block;
  color: #98a2b3;
  font-size: .68rem;
}

.notification-bell-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.notification-bell-btn:hover {
  border-color: #fb923c;
  background: #fff;
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  padding: 0 4px;
  font-size: .62rem;
  font-weight: 950;
  line-height: 13px;
  text-align: center;
}

.credit-panel {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  height: 34px;
  width: 252px;
  max-width: 252px;
  flex: 0 0 252px;
  min-width: 252px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 0 8px 0 14px;
  line-height: 1;
}

.credit-panel span {
  color: #9a3412;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.credit-panel b {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text);
  font-size: .92rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.credit-refresh-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--orange-dark);
  padding: 0;
}

.credit-refresh-btn:hover {
  border-color: #fb923c;
  background: #fff;
  color: var(--orange);
}

.credit-refresh-btn.is-loading iconify-icon {
  animation: spin .72s linear infinite;
}

.credit-claim-btn {
  min-width: 0;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: var(--orange-dark);
  padding: 0 7px;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.credit-claim-btn.is-available {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.credit-claim-btn.is-loading {
  opacity: .72;
}

.workspace-buy-btn {
  border-color: #fdba74;
  background: #ffedd5;
}

.workspace-topbar .secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: .74rem;
}

.workspace-logout {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
}

.workspace-logout:hover {
  background: var(--bg-warm);
  color: var(--orange-dark);
}

.workspace-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 18px;
}

.workspace-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(67, 20, 7, .32);
  backdrop-filter: blur(6px);
}

.workspace-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(78vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(253, 186, 116, .86);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 62%, #fff7ed 100%);
  box-shadow: 0 26px 82px rgba(124, 45, 18, .22);
}

.workspace-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(254, 215, 170, .86);
  padding: 18px 20px;
}

.workspace-modal-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 950;
}

.order-list,
.notification-list {
  display: grid;
  gap: 10px;
  max-height: calc(min(78vh, 680px) - 86px);
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.order-item,
.notification-item {
  border: 1px solid rgba(254, 215, 170, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  padding: 14px;
}

.order-item-head,
.notification-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-item h3,
.notification-item h3 {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
  font-weight: 950;
}

.order-item p,
.notification-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.order-code {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: var(--green);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.order-meta,
.notification-meta {
  color: #a87554;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.notification-item.unread {
  border-color: rgba(249, 115, 22, .38);
  background: #fff7ed;
}

.empty-state {
  border: 1px dashed rgba(249, 115, 22, .32);
  border-radius: 14px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
  font-size: .86rem;
  font-weight: 800;
}

.workspace-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 28px;
}

.workspace-content-inner {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.workspace-content.interview-panel-active {
  overflow-y: auto;
}

.workspace-content-inner.interview-panel-active {
  height: 100%;
  min-height: 0;
}

.workspace-content-inner.interview-panel-active .conversation-panel {
  height: calc(100vh - 132px);
  min-height: 0;
}

.workspace-content-inner.interview-panel-active .interview-stage {
  height: calc(100vh - 156px);
  min-height: 520px;
  align-items: stretch;
  overflow: hidden;
}

.overview-panel,
.resume-dock,
.role-analysis-panel,
.conversation-panel,
.record-history-panel {
  min-width: 0;
}

.overview-panel {
  display: grid;
  gap: 20px;
}

.overview-license-bar {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: minmax(170px, .9fr) minmax(330px, 1.35fr) minmax(168px, auto) minmax(132px, auto);
  border: 1px solid rgba(254, 215, 170, .8);
  border-radius: 16px;
  background: rgba(255, 255, 255, .75);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.license-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.license-ok-icon {
  width: 40px;
  height: 40px;
  background: var(--green-soft);
  color: var(--green);
}

.license-current p {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
}

.license-current small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-entry-card {
  display: grid;
  grid-template-columns: minmax(110px, .56fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(253, 186, 116, .72);
  border-radius: 8px;
  background: #fffaf5;
  padding: 10px;
}

.activation-entry-card .eyebrow {
  margin: 0 0 4px;
  font-size: .62rem;
}

.activation-entry-card h2 {
  margin: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.2;
}

.activation-entry-card small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-panel {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-radius: 12px;
  border: 1px solid rgba(253, 186, 116, .66);
  background: #fff;
  padding: 8px 10px;
}

.activation-panel iconify-icon {
  color: var(--orange);
}

.activation-panel input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activation-panel .primary {
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: .72rem;
  white-space: nowrap;
}

.referral-reset-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  justify-content: start;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  padding: 8px 12px;
  text-align: left;
}

.referral-reset-btn span {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 950;
}

.referral-reset-btn b {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-reset-btn small {
  color: var(--orange-dark);
  font-size: .62rem;
}

.referral-reset-btn.has-reward {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.referral-reset-btn.has-reward span {
  background: #10b981;
}

.license-badge,
.member-badge,
.sync-message {
  display: none;
}

.license-badge.referral-badge {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 44px;
  border: 1px solid rgba(20, 184, 166, .24);
  border-radius: 12px;
  background: #f0fdfa;
  color: #0f766e;
  padding: 8px 12px;
}

.license-badge.referral-badge span {
  font-size: .62rem;
  font-weight: 850;
}

.license-badge.referral-badge strong {
  color: var(--text);
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.sync-message:not(.hidden) {
  display: block;
  grid-column: 2 / -1;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 800;
}

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

.metric-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.metric-card p,
.metric-card span {
  margin: 0;
  font-size: .72rem;
  font-weight: 750;
  opacity: .72;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  margin-top: 4px;
}

.metric-orange { border-color: #fed7aa; background: #fff7ed; color: #431407; }
.metric-sky { border-color: #bae6fd; background: #f0f9ff; color: #082f49; }
.metric-emerald { border-color: #bbf7d0; background: #ecfdf5; color: #052e16; }
.metric-amber { border-color: #fde68a; background: #fffbeb; color: #451a03; }

.overview-main-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.workspace-card {
  background: #fff;
  padding: 20px;
}

.workspace-card-head > iconify-icon,
.role-result-head .result-badge,
.resume-box-head .result-badge {
  color: var(--orange);
}

.result-badge.done {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.next-step-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.next-step-list button {
  display: grid;
  grid-template-columns: 32px minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  padding: 14px;
  text-align: left;
}

.next-step-list button:hover {
  border-color: var(--border-strong);
  background: var(--bg-warm);
}

.next-step-list button > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  color: var(--orange-dark);
  font-size: .82rem;
  font-weight: 900;
}

.next-step-list b {
  font-size: .86rem;
}

.next-step-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  height: 128px;
  margin-top: 30px;
}

.week-bars div {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  height: 100%;
}

.week-bars span {
  display: block;
  min-height: 2px;
  border-radius: 7px 7px 0 0;
  background: #fed7aa;
}

.week-bars .active span {
  background: var(--orange);
}

.week-bars b {
  color: #98a2b3;
  font-size: .72rem;
  text-align: center;
}

.week-bars .active b {
  color: var(--orange-dark);
}

.rhythm-note {
  margin: 16px 0 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: #047857;
  padding: 10px 12px;
  font-size: .74rem;
}

/* Resume and role */
.resume-dock,
.role-analysis-panel {
  display: grid;
  align-items: stretch;
  gap: 20px;
  grid-template-columns: .82fr 1.18fr;
}

.resume-source-card > h2,
.role-input-card > h2,
.resume-box-head h2,
.role-result-head h2,
.records-card-head h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
}

.role-input-card > h2 {
  margin-top: 0;
}

.resume-source-card > p:not(.eyebrow),
.role-file-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  margin-top: 22px;
  border: 1px dashed #fb923c;
  border-radius: 16px;
  background: rgba(255, 237, 213, .5);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
}

.file-picker input,
.role-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.upload-cloud {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 8px 18px rgba(234, 88, 12, .11);
}

.file-picker b {
  margin-top: 12px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
}

.file-picker small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .74rem;
}

.resume-file-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 102px;
  min-height: 102px;
  max-height: 102px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px;
}

.resume-file-summary > div {
  min-width: 0;
}

.resume-file-summary iconify-icon {
  flex: 0 0 auto;
  color: var(--orange);
}

.resume-file-summary b {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-file-summary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

#resumeDock.has-resume .resume-file-summary span,
.resume-file-summary span[hidden] {
  display: none;
}

.resume-buttons,
.role-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.resume-buttons .primary,
.role-actions .primary {
  flex: 1 1 auto;
}

.analysis-progress {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 32px;
  margin-top: 12px;
  border: 1px solid rgba(253, 186, 116, .72);
  border-radius: 999px;
  background: #fff7ed;
  padding: 8px 10px 8px 12px;
}

.analysis-progress[hidden] {
  display: grid;
}

.analysis-progress > span {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffedd5;
}

.analysis-progress > span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .54), transparent);
  animation: progressSweep 1.15s ease-in-out infinite;
  content: "";
}

.analysis-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #10b981);
  transition: width .36s ease;
}

.analysis-progress b {
  color: var(--orange-dark);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.resume-safe-note,
.role-practice-note {
  margin-top: 18px;
  border-radius: 16px;
  background: var(--green-soft);
  color: #047857;
  padding: 14px;
  font-size: .74rem;
  line-height: 1.55;
}

.resume-safe-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.resume-safe-note iconify-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.role-cost-note {
  margin-top: -4px;
}

.resume-result-stack {
  display: contents;
  min-width: 0;
}

.resume-advantages-card {
  display: grid;
  align-self: stretch;
  grid-column: 2;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.resume-advantages {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
  gap: 0;
  margin: 18px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 16px;
  list-style: none;
}

.resume-advantages li {
  display: grid;
  flex: 1 0 auto;
  align-items: start;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  padding: 12px 0;
  font-size: .8rem;
  line-height: 1.6;
}

.resume-advantages li + li {
  border-top: 1px solid rgba(253, 186, 116, .58);
}

.resume-advantages li:first-child,
.role-info-block:first-child {
  padding-top: 0;
}

.resume-advantages li:last-child,
.role-info-block:last-child {
  padding-bottom: 0;
}

.resume-advantages li p {
  margin: 0;
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 900;
}

.resume-advantages li span {
  display: block;
  min-height: 0;
  margin-top: 0;
  overflow: visible;
  color: #374151;
  font-size: .82rem;
  line-height: 1.6;
}

.resume-result-waiting {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 142px;
  border-style: dashed !important;
  text-align: center;
}

.resume-result-waiting iconify-icon {
  color: var(--orange);
  animation: spin 1s linear infinite;
}

.resume-result-waiting b {
  margin-top: 8px;
  color: #374151;
  font-size: .84rem;
}

.resume-result-waiting span {
  margin-top: 4px;
  color: #98a2b3;
  font-size: .72rem;
}

.resume-result > div:first-child h2 {
  margin: 8px 0 0;
}

.resume-result {
  grid-column: 1 / -1;
}

.resume-result-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 18px;
}

.resume-questions {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-questions {
  align-content: start;
  height: 332px;
  min-height: 332px;
  max-height: 332px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 237, 213, .6);
  padding: 12px;
}

.resume-questions li {
  min-width: 0;
}

.resume-questions button,
.resume-placeholder-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: var(--bg);
  color: #374151;
  padding: 13px;
  text-align: left;
}

.resume-questions button.active {
  border-color: #fdba74;
  background: #ffedd5;
  color: #9a3412;
  box-shadow: 0 8px 18px rgba(234, 88, 12, .08);
}

.resume-questions button span {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 900;
}

.resume-placeholder-row span {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 900;
}

.resume-questions button b,
.resume-placeholder-row strong {
  min-width: 0;
  color: #374151;
  font-size: .84rem;
  line-height: 1.55;
}

.resume-answer-preview {
  min-width: 0;
  height: 332px;
  min-height: 332px;
  max-height: 332px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 16px;
  background: #1f2937;
  color: #fff;
  padding: 18px;
}

.resume-answer-preview > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-size: .72rem;
  font-weight: 900;
}

.resume-answer-preview strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: .86rem;
  line-height: 1.6;
}

.resume-answer-preview p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: .84rem;
  line-height: 1.65;
}

.resume-answer-preview small {
  display: block;
  margin-top: 14px;
  color: #fed7aa;
  font-size: .7rem;
}

.resume-result-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-bottom: 12px;
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 900;
}

.role-input-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-input-card input,
.role-input-card textarea {
  width: 100%;
}

.role-input-card textarea {
  height: 148px;
  min-height: 148px;
  max-height: 148px;
  overflow-y: auto;
  resize: none;
}

.role-input-card .role-file-note {
  margin-top: 0;
  line-height: 1.45;
}

.role-input-card .role-cost-note {
  margin-top: 0;
  padding: 12px 14px;
}

.role-input-card .role-actions {
  margin-top: auto;
}

.role-input-card .analysis-progress {
  margin-top: 0;
}

.role-result-card .role-practice-note {
  margin-top: 0;
  padding: 12px 14px;
}

.role-file-picker {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1px dashed #fb923c;
  border-radius: 12px;
  background: rgba(255, 237, 213, .6);
  color: var(--orange-dark);
  padding: 12px 14px;
  cursor: pointer;
}

.role-file-picker strong {
  overflow: hidden;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-result-card {
  display: grid;
  align-content: stretch;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.role-summary-text {
  max-width: 36rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.role-result-grid {
  display: flex;
  flex-direction: column;
  height: 430px;
  min-height: 430px;
  max-height: 430px;
  align-items: stretch;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 16px;
}

.role-info-block,
.role-placeholder {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 16px;
}

.role-info-block {
  display: grid;
  flex: 1 0 auto;
  align-items: start;
  min-height: 0;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.role-info-block + .role-info-block {
  border-top: 1px solid rgba(253, 186, 116, .58);
}

.role-info-block h3 {
  margin: 0;
  color: var(--orange-dark);
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.35;
}

.role-info-block ul {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
  padding-right: 4px;
  list-style: none;
}

.role-info-block li {
  position: relative;
  color: #475467;
  font-size: .82rem;
  line-height: 1.55;
  padding-left: 15px;
  word-break: break-word;
}

.role-info-block li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fb923c;
  content: "";
}

.role-placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 142px;
  border-style: dashed;
  color: #98a2b3;
  font-size: .84rem;
  font-weight: 750;
  text-align: center;
}

/* Interview */
.conversation-panel {
  height: 100%;
  min-height: 0;
}

.interview-stage {
  display: grid;
  height: 100%;
  min-height: 0;
  gap: 16px;
  border: 1px solid rgba(254, 215, 170, .85);
  border-radius: 28px;
  background: var(--bg-warm);
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: 0 18px 42px rgba(154, 52, 18, .08);
}

.pane {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
}

.interview-stage .pane {
  overflow: hidden;
}

.pane-head {
  flex: 0 0 auto;
  border-bottom: 1px solid #ffedd5;
  padding-bottom: 10px;
}

.pane-title-inline h2 {
  margin: 0;
  font-size: 1rem;
}

.listen-badge {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
}

.transcript-pane.interview-listening .listen-badge {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.text-panel {
  flex: 1 1 auto;
  min-height: 220px;
  min-width: 0;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: #374151;
  padding: 14px;
  font-size: .86rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.transcript-card {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px;
}

.text-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.text-card-head p {
  margin: 0;
  color: var(--orange-dark);
  font-size: .74rem;
  font-weight: 900;
}

.text-card-head span {
  color: #98a2b3;
  font-size: .68rem;
}

.transcript-card .text-panel {
  min-height: 0;
  flex: 1 1 0;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.transcript-output:focus,
.transcript-output:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .42);
}

.transcript-output[data-empty="true"]::before {
  display: block;
  color: #98a2b3;
  content: attr(data-placeholder);
}

.voice-wave {
  min-height: 48px;
}

.voice-wave b {
  margin-left: 8px;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.mic-slider-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: auto minmax(90px, 1fr) auto auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 8px 10px;
}

.mic-slider-row small,
.mic-slider-row output {
  color: #98a2b3;
  font-size: .68rem;
  font-weight: 800;
}

.mic-slider-row output {
  border-radius: 999px;
  background: #ffedd5;
  color: var(--orange-dark);
  padding: 2px 8px;
}

.interview-control-grid > label:first-child {
  overflow: hidden;
}

.interview-control-card .mic-slider-row output {
  display: none;
}

.mic-slider-row input[type="range"] {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 var(--gain-percent, 22%), var(--border) var(--gain-percent, 22%) 100%);
  padding: 0;
  box-shadow: none;
  appearance: none;
}

.mic-slider-row input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 4px 10px rgba(234, 88, 12, .25);
  appearance: none;
}

.interview-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interview-control-card .mic-slider-row,
.interview-control-grid select {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}

.interview-control-card .mic-slider-row {
  gap: 6px;
  grid-template-columns: auto minmax(44px, 1fr) auto;
  padding: 0 10px;
}

.interview-control-card .primary.is-stopping,
#interviewStartToggleBtn.is-stopping {
  background: #ef4444;
}

.answer-mode-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.interview-context-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 10px;
}

.interview-context-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.interview-context-strip span.linked {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.answer-mode-label {
  border-color: var(--border);
  background: var(--bg-warm);
  color: var(--orange-dark);
}

.answer-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 6px;
}

.answer-mode-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085;
  padding: 0 8px;
  font-size: .76rem;
  box-shadow: none;
}

.answer-mode-tabs button.active {
  border-color: var(--border);
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 5px 14px rgba(154, 52, 18, .07);
}

.workspace-answer-card {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #e7c9aa;
  border-radius: 16px;
  background: #fff1e4;
  color: var(--text);
  padding: 14px;
}

.workspace-answer-card > p,
.workspace-answer-card b {
  margin: 0;
  color: var(--orange-dark);
  font-size: .74rem;
  font-weight: 900;
}

.workspace-answer-card > strong {
  display: block;
  flex: 0 0 auto;
  max-height: 6.2em;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 7px;
  padding-right: 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.workspace-answer-card > div {
  min-height: 0;
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 10px;
  border-top: 1px solid rgba(253, 186, 116, .8);
  padding-top: 10px;
}

.workspace-answer-card span {
  display: block;
  margin-top: 7px;
  color: #344054;
  font-size: .86rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  margin-top: 12px;
  border-top: 1px solid #ffedd5;
  padding-top: 12px;
}

.conversation-panel .pane-foot {
  display: none;
}

.scroll-actions {
  display: flex;
  gap: 7px;
}

.pane-foot .secondary {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: .72rem;
}

.pane-foot .secondary.active {
  border-color: var(--orange);
  background: #fff1e4;
  color: var(--orange-dark);
}

.pane-foot .finish-record-btn {
  margin-left: auto;
  border-color: #fb923c;
  background: #fff7ed;
  color: #ea580c;
  white-space: nowrap;
}

.pane-foot .finish-record-btn:not(:disabled):hover,
.pane-foot .finish-record-btn.active {
  background: #ffedd5;
  color: #c2410c;
}

.pane-foot .finish-record-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.record-empty-row,
.record-empty-detail {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #98a2b3;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.record-empty-detail {
  min-height: 320px;
}

/* Records */
.records-card {
  overflow: hidden;
  padding: 0;
}

.records-card-head {
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.records-card-head .primary {
  min-height: 40px;
}

.record-count {
  margin: 16px 20px 0;
  border-color: var(--border);
  background: var(--bg-warm);
  color: var(--orange-dark);
}

.record-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 0;
}

.record-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #98a2b3;
  font-weight: 750;
  text-align: center;
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  transition: background-color .18s ease;
}

.record-row:hover {
  background: var(--bg);
}

.record-row.active {
  background: #fff7ed;
}

.record-row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.record-row-main > span:last-child {
  min-width: 0;
}

.record-row-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange);
}

.record-row strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .74rem;
}

.record-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.record-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 850;
}

.record-status-badge.done {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.record-row-actions .secondary {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: .72rem;
}

.overview-panel .workspace-card,
.resume-dock .workspace-card,
.role-analysis-panel .workspace-card,
.record-history-panel .workspace-card,
.metric-card,
.overview-license-bar,
.activation-entry-card,
.next-step-list button,
.file-picker,
.resume-file-summary,
.resume-safe-note,
.role-practice-note,
.resume-advantages,
.resume-questions,
.resume-answer-preview,
.role-file-picker,
.role-result-grid,
.role-info-block,
.role-placeholder,
.overview-order-card,
.overview-order-body,
.records-card {
  border-radius: 8px;
}

.overview-action-card {
  grid-column: 1 / -1;
}

.overview-order-card {
  grid-column: 1 / -1;
}

.overview-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.overview-action-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(253, 186, 116, .78);
  border-radius: 8px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: .8rem;
  font-weight: 900;
}

.overview-action-grid button:hover {
  border-color: var(--orange);
  background: #ffedd5;
}

.overview-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(253, 186, 116, .68);
  border-radius: 8px;
  background: #fff7ed;
  padding: 14px;
}

.overview-order-body > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.overview-order-body span {
  overflow: hidden;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-order-body strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.overview-order-body p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: right;
}

.resume-target-role {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.resume-target-role span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.resume-target-role input {
  width: 100%;
  border-color: rgba(253, 186, 116, .72);
  background: #fff7ed;
}

.resume-insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.resume-insight-strip span,
.records-score-row span,
.record-score-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(253, 186, 116, .68);
  border-radius: 8px;
  background: #fff7ed;
  padding: 10px;
}

.resume-insight-strip b,
.records-score-row b,
.record-score-grid b {
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 950;
}

.resume-insight-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-score-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(253, 186, 116, .7);
  border-radius: 8px;
  background: #fff7ed;
  padding: 14px;
}

.role-score-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.role-score-panel span#roleScoreNumber {
  color: var(--orange-dark);
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.role-score-panel small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.role-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.role-skill-tags span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, .42);
  border-radius: 999px;
  background: #fff;
  color: var(--orange-dark);
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-filter-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.records-filter-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.records-filter-toolbar span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}

.records-filter-toolbar input {
  width: 100%;
  min-height: 38px;
  border-color: rgba(253, 186, 116, .72);
  background: #fffaf5;
  color: var(--text);
  font-size: .78rem;
}

.records-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.records-score-row strong,
.record-score-grid strong {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 950;
}

.records-layout {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr);
  min-height: 520px;
}

.records-list-column {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.record-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  background: #fff;
  padding: 20px;
}

.record-detail.hidden {
  display: none;
}

.record-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.record-detail-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 950;
}

.record-detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.record-detail-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

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

.record-summary-card {
  border: 1px solid rgba(253, 186, 116, .68);
  border-radius: 8px;
  background: #fff7ed;
  padding: 14px;
}

.record-summary-card b,
.record-qa b {
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 950;
}

.record-summary-card p {
  margin: 8px 0 0;
  color: #475467;
  font-size: .8rem;
  line-height: 1.55;
}

.record-qa {
  display: grid;
  gap: 12px;
}

.record-qa section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
}

.record-qa pre {
  max-height: 180px;
  margin: 10px 0 0;
  overflow: auto;
  color: #344054;
  font: 500 .78rem/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: pre-wrap;
}

.record-detail .record-empty {
  min-height: 420px;
  border: 1px dashed rgba(253, 186, 116, .72);
  border-radius: 8px;
  background: #fffaf5;
  padding: 24px;
}

.record-detail .record-empty b {
  display: block;
  color: var(--text);
  font-size: .95rem;
}

.record-detail .record-empty span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: #065f46;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
  padding: 14px 16px;
  font-weight: 750;
}

.press-feedback {
  transform: scale(.98);
}

@media (min-width: 1280px) {
  .trial-stage-compact {
    min-height: min(520px, calc(100vh - 82px));
  }
}

@media (max-width: 1100px) {
  .auth-hero,
  .trial-stage-inner,
  .home-feature-inner,
  .public-two-col,
  .public-subpage .split-page-intro,
  .tutorial-hero-layout,
  .referral-layout,
  .public-referral-page .referral-layout,
  .contact-layout,
  .public-contact-page .contact-layout,
  .activate-panel-public,
  .public-activate-page .activate-panel-public,
  .overview-main-grid,
  .resume-dock,
  .role-analysis-panel,
  .interview-stage {
    grid-template-columns: 1fr;
  }

  .home-nav,
  .home-auth-btn,
  .public-account-actions {
    display: none;
  }

  .home-menu-btn {
    display: grid;
  }

  .trial-console-grid,
  .resume-result-layout,
  .overview-license-bar,
  .activation-entry-card,
  .overview-action-grid,
  .overview-order-body,
  .resume-insight-strip,
  .records-filter-toolbar,
  .records-score-row,
  .records-layout,
  .record-score-grid {
    grid-template-columns: 1fr;
  }

  .records-list-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .role-score-panel {
    grid-template-columns: 1fr;
  }

  .resume-advantages-card,
  .resume-result {
    grid-column: 1 / -1;
  }

  .resume-advantages {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .workspace-content.interview-panel-active {
    overflow-y: auto;
  }

  .workspace-content-inner.interview-panel-active,
  .interview-stage {
    height: auto;
  }

  .workspace-content-inner.interview-panel-active .conversation-panel {
    height: auto;
  }

  .workspace-content-inner.interview-panel-active .interview-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .workspace-content-inner.interview-panel-active .transcript-card,
  .workspace-content-inner.interview-panel-active .workspace-answer-card {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    flex: 0 0 auto;
  }

  .activation-panel input {
    width: 100%;
  }

  .overview-order-body p {
    text-align: left;
  }

  .asr-engine-inner,
  .membership-band .home-feature-inner {
    grid-template-columns: 1fr;
  }

  .asr-engine-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asr-engine-head strong {
    text-align: left;
  }

  .public-activate-page .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 900px) {
  .client-shell {
    padding: 8px;
  }

  .workspace-frame {
    flex-direction: column;
  }

  .workspace-sidebar {
    flex: 0 0 auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(254, 215, 170, .8);
    padding: 10px 12px;
  }

  .workspace-sidebar-brand,
  .sidebar-readiness {
    display: none;
  }

  .workspace-nav {
    flex-direction: row;
    gap: 6px;
  }

  .workspace-nav button {
    width: auto;
    flex: 0 0 auto;
  }

  .workspace-topbar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .workspace-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .workspace-content {
    padding: 18px 16px;
  }

  .step-card-grid,
  .member-tier-grid,
  .plan-grid,
  .public-activate-page .plan-grid,
  .metric-grid,
  .referral-steps,
  .tutorial-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .role-result-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
  }

  .qr-card-inner {
    grid-template-columns: 1fr;
  }

  .purchase-modal-body {
    grid-template-columns: 1fr;
  }

  .purchase-qr-panel {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .home-header {
    padding: 0 16px;
  }

  .purchase-modal {
    padding: 12px;
  }

  .purchase-modal-card {
    max-height: calc(100vh - 24px);
    border-radius: 18px;
    padding: 18px;
  }

  .purchase-modal-head {
    align-items: flex-start;
  }

  .purchase-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .purchase-method-list,
  .purchase-qr-panel,
  .purchase-result div {
    grid-template-columns: 1fr;
  }

  .purchase-qr-frame {
    width: min(240px, 100%);
    justify-self: center;
  }

  .auth-hero,
  .public-subpage,
  .trial-stage,
  .home-feature-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .asr-engine-summary {
    grid-template-columns: 1fr;
  }

  .asr-engine-head strong {
    font-size: 1.12rem;
  }

  .hero-visual-shell {
    min-height: 315px;
  }

  .hero-visual-inner {
    min-height: 285px;
  }

  .hero-main-title {
    font-size: clamp(1.95rem, 8.6vw, 2.4rem);
  }

  .hero-stats {
    margin-top: 24px;
  }

  .hero-ai-flow {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-ai-flow span {
    justify-content: center;
  }

  .trial-stage-compact {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .trial-stage-compact .trial-stage-inner {
    gap: 10px;
  }

  .trial-stage-compact .trial-intro-panel {
    border-radius: 16px;
    padding: 14px;
  }

  .trial-stage-compact .trial-title {
    margin-top: 6px;
    font-size: 1.18rem;
  }

  .trial-stage-compact .trial-copy {
    margin-top: 6px;
    font-size: .82rem;
    line-height: 1.38;
  }

  .trial-stage-compact .trial-rule-card {
    margin-top: 8px;
    padding: 8px;
  }

  .trial-stage-compact .trial-rule-list {
    gap: 4px;
    margin-top: 6px;
    font-size: .78rem;
    line-height: 1.3;
  }

  .trial-stage-compact .trial-status-row {
    gap: 8px;
    margin-top: 10px;
  }

  .trial-stage-compact .trial-status {
    min-height: 28px;
    padding: 0 10px;
    font-size: .78rem;
  }

  .resume-questions,
  .resume-answer-preview {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .trial-stage-compact .trial-hint {
    font-size: .75rem;
  }

  .trial-stage-compact .trial-console,
  .trial-stage-compact .trial-console-grid,
  .trial-stage-compact .trial-pane {
    border-radius: 14px;
  }

  .trial-stage-compact .trial-console {
    padding: 8px;
  }

  .trial-stage-compact .trial-console-grid {
    gap: 8px;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-stage-compact .trial-pane {
    padding: 9px;
  }

  .trial-stage-compact .trial-pane-head {
    flex-wrap: wrap;
    gap: 6px;
    min-height: 54px;
    padding-bottom: 7px;
  }

  .trial-stage-compact .trial-pane-head strong {
    font-size: .86rem;
  }

  .trial-stage-compact .trial-pane-head > span {
    min-height: 22px;
    padding: 0 8px;
    font-size: .64rem;
  }

  .trial-stage-compact .trial-text-card,
  .trial-stage-compact .trial-answer-card {
    height: clamp(118px, 23vh, 136px);
    min-height: 0;
    max-height: 136px;
    margin-top: 7px;
    border-radius: 12px;
    padding: 9px;
  }

  .trial-stage-compact .trial-text-card b,
  .trial-stage-compact .trial-answer-card p,
  .trial-stage-compact .trial-answer-card b {
    font-size: .66rem;
  }

  .trial-stage-compact .trial-text-card span,
  .trial-stage-compact .trial-text-card p,
  .trial-stage-compact .trial-answer-card span {
    font-size: .76rem;
    line-height: 1.35;
  }

  .trial-stage-compact .trial-answer-card strong {
    max-height: 2.7em;
    font-size: .84rem;
    line-height: 1.35;
  }

  .trial-stage-compact .trial-answer-card > div {
    margin-top: 6px;
    padding-top: 6px;
  }

  .trial-stage-compact .trial-wave {
    min-height: 30px;
    gap: 5px;
    margin-top: 6px;
    padding: 0 8px;
  }

  .trial-stage-compact .trial-wave span {
    width: 4px;
    height: 18px;
  }

  .trial-stage-compact .trial-controls-card {
    margin-top: 6px;
    padding: 7px;
  }

  .trial-stage-compact .trial-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-stage-compact .trial-controls label > span,
  .trial-stage-compact .trial-answer-mode > span {
    font-size: .68rem;
  }

  .trial-stage-compact .mic-slider-row {
    gap: 5px;
    grid-template-columns: auto minmax(46px, 1fr) auto auto;
    border-radius: 10px;
    padding: 5px 6px;
  }

  .trial-stage-compact .mic-slider-row small,
  .trial-stage-compact .mic-slider-row output {
    font-size: .6rem;
  }

  .trial-stage-compact .mic-slider-row output {
    padding: 2px 5px;
  }

  .trial-stage-compact select {
    height: 30px;
    min-height: 30px;
    padding: 0 22px 0 7px;
    font-size: .72rem;
    background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px;
    background-size: 5px 5px, 5px 5px;
  }

  .trial-stage-compact .trial-controls-card .primary {
    min-height: 32px;
    font-size: .76rem;
  }

  .trial-stage-compact .trial-answer-mode {
    margin-top: 6px;
  }

  .hero-signal-grid,
  .step-card-grid,
  .member-tier-grid,
  .plan-grid,
  .public-activate-page .plan-grid,
  .metric-grid,
  .auth-success-profile,
  .referral-steps,
  .tutorial-steps-grid,
  .public-contact-page .support-list,
  .trial-controls,
  .interview-control-grid {
    grid-template-columns: 1fr;
  }

  .resume-advantages {
    gap: 0;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
  }

  .role-result-grid {
    height: 390px;
    min-height: 390px;
    max-height: 390px;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    padding: 12px 14px;
  }

  .member-tier-card {
    padding: 14px;
  }

  .role-info-block {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }

  .resume-advantages li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }

  .auth-success-dialog {
    padding: 16px;
  }

  .auth-success-card {
    padding: 22px 18px 18px;
  }

  .auth-success-actions {
    grid-template-columns: 1fr;
  }

  .auth-card-inner,
  .auth-drawer-scroll {
    padding: 20px;
  }

  .auth-drawer-head {
    padding: 16px 20px;
  }

  .captcha-row,
  .code-row,
  .auth-form-row-7-3,
  .record-row {
    grid-template-columns: 1fr;
  }

  .captcha-row,
  .code-row {
    display: grid;
  }

  .captcha-image,
  .code-row .secondary {
    width: 100%;
  }

  .workspace-topbar {
    flex-direction: column;
  }

  .workspace-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-content-inner.interview-panel-active .transcript-card,
  .workspace-content-inner.interview-panel-active .workspace-answer-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .workspace-answer-card > strong {
    max-height: 4.65em;
  }

  .public-footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .record-row {
    display: grid;
    align-items: stretch;
  }

  .record-row-actions {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .auth-drawer {
    transition-duration: .34s !important;
  }

  .auth-drawer.drawer-open {
    animation-duration: .54s !important;
  }
}

/* Client-preview workspace skin */
#appView.workspace-shell {
  background:
    linear-gradient(90deg, rgba(255, 237, 213, .56) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 237, 213, .56) 0 1px, transparent 1px 100%),
    #fffaf5;
  background-size: 32px 32px;
  padding: 14px;
}

#appView .workspace-frame {
  width: min(100%, 1680px);
  border: 1px solid rgba(251, 146, 60, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(154, 52, 18, .12);
}

#appView .workspace-sidebar {
  flex: 0 0 236px;
  border-right: 1px solid rgba(253, 186, 116, .44);
  background: #fff7ed;
  padding: 18px 14px;
}

#appView .workspace-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(253, 186, 116, .52);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

#appView .workspace-sidebar-brand .app-icon {
  width: 38px;
  height: 38px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .18);
}

#appView .workspace-sidebar-brand b {
  color: #111827;
  font-size: .92rem;
  font-weight: 950;
}

#appView .workspace-sidebar-brand small {
  color: #c2410c;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: 0;
}

#appView .workspace-nav {
  gap: 8px;
  margin-top: 18px;
}

#appView .workspace-nav button {
  min-height: 44px;
  border-radius: 8px;
  color: #5f6673;
  font-size: .82rem;
  font-weight: 850;
  padding: 0 12px;
}

#appView .workspace-nav button:hover {
  border-color: rgba(253, 186, 116, .72);
  background: #fff;
  color: #c2410c;
}

#appView .workspace-nav button.active {
  border-color: #fb923c;
  background: #f97316;
  color: #fff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .22);
}

#appView .sidebar-readiness {
  border-radius: 8px;
  background: #fff;
}

#appView .workspace-main {
  background: #fffaf5;
}

#appView .workspace-topbar {
  flex-direction: row;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid rgba(253, 186, 116, .34);
  background: rgba(255, 255, 255, .88);
  padding: 12px 20px;
}

#appView .workspace-topbar p {
  color: #6b7280;
  font-size: .72rem;
  letter-spacing: 0;
}

#appView .workspace-topbar h1 {
  color: #111827;
  font-size: 1.28rem;
  letter-spacing: 0;
}

#appView .workspace-topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#appView .account-panel-btn,
#appView .credit-panel,
#appView .workspace-topbar .secondary,
#appView .workspace-logout,
#appView .notification-bell-btn {
  border: 1px solid rgba(253, 186, 116, .56);
  border-radius: 8px;
  background: #fff;
}

#appView .workspace-content {
  padding: 18px;
}

#appView .workspace-content-inner {
  max-width: 1180px;
  margin: 0 auto;
}

#appView .overview-panel,
#appView .resume-dock,
#appView .role-analysis-panel,
#appView .record-history-panel {
  gap: 14px;
}

#appView .overview-license-bar,
#appView .workspace-card,
#appView .metric-card,
#appView .records-card,
#appView .resume-source-card,
#appView .role-input-card {
  border: 1px solid rgba(253, 186, 116, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(154, 52, 18, .055);
}

#appView .overview-license-bar {
  align-items: stretch;
  grid-template-columns: minmax(150px, .72fr) minmax(320px, 1.32fr) minmax(150px, auto) minmax(118px, auto);
  padding: 12px;
}

#appView .activation-entry-card {
  background: #fff7ed;
}

#appView .activation-panel {
  min-height: 44px;
}

#appView .metric-grid {
  gap: 12px;
}

#appView .metric-card {
  min-height: 112px;
  padding: 14px;
}

#appView .metric-card p {
  color: #667085;
}

#appView .metric-card strong {
  margin-top: 10px;
  color: #111827;
  font-size: 1.46rem;
}

#appView .metric-card span {
  color: #667085;
}

#appView .overview-main-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 14px;
}

#appView .workspace-card {
  padding: 16px;
}

#appView .workspace-card-head,
#appView .resume-box-head,
#appView .role-result-head,
#appView .records-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#appView .eyebrow {
  color: #c2410c;
  font-size: .68rem;
  letter-spacing: 0;
}

#appView .workspace-card h2,
#appView .resume-source-card > h2,
#appView .role-input-card > h2,
#appView .records-card-head h2 {
  color: #111827;
  font-size: 1rem;
}

#appView .next-step-list {
  gap: 10px;
  margin-top: 14px;
}

#appView .next-step-list button,
#appView .overview-action-grid button,
#appView .records-filter-toolbar label,
#appView .resume-target-role input,
#appView .role-score-panel,
#appView .overview-order-body,
#appView .resume-insight-strip span,
#appView .records-score-row span,
#appView .record-score-grid span {
  border-radius: 8px;
}

#appView .next-step-list button {
  background: #fffaf5;
  padding: 12px;
}

#appView .week-bars {
  height: 112px;
  margin-top: 22px;
}

#appView .resume-dock,
#appView .role-analysis-panel {
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
}

#appView .file-picker {
  min-height: 138px;
  margin-top: 16px;
  border-radius: 8px;
}

#appView .resume-file-summary {
  height: 82px;
  min-height: 82px;
  max-height: 82px;
  border-radius: 8px;
}

#appView .resume-result-stack,
#appView .role-result-card {
  min-width: 0;
}

#appView .records-card {
  padding: 16px;
}

#appView .records-layout {
  min-height: 420px;
}

@media (max-width: 1080px) {
  #appView.workspace-shell {
    padding: 8px;
  }

  #appView .workspace-frame {
    flex-direction: row;
    border-radius: 14px;
  }

  #appView .workspace-sidebar {
    display: flex;
    flex: 0 0 118px;
    flex-direction: column;
    overflow-x: hidden;
    border-right: 1px solid rgba(253, 186, 116, .44);
    border-bottom: 0;
    padding: 10px 8px;
  }

  #appView .workspace-sidebar-brand {
    justify-content: center;
    padding: 8px;
  }

  #appView .workspace-sidebar-brand .app-icon {
    width: 42px;
    height: 42px;
  }

  #appView .workspace-sidebar-brand span:last-child {
    display: none;
  }

  #appView .workspace-nav {
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
  }

  #appView .workspace-nav button {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    gap: 6px;
    padding: 0 8px;
    font-size: .72rem;
  }

  #appView .sidebar-readiness {
    display: none;
  }

  #appView .workspace-topbar {
    align-items: center;
    flex-direction: row;
    min-height: 0;
    padding: 12px;
  }

  #appView .workspace-topbar-actions {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  #appView #workspaceHomeBtn,
  #appView #workspaceCreditClaimBtn {
    display: none;
  }

  #appView .account-panel-btn {
    min-width: 40px;
    padding: 4px;
  }

  #appView .account-panel span:last-child,
  #appView .credit-panel span {
    display: none;
  }

  #appView .credit-panel {
    min-height: 38px;
    padding: 0 8px;
  }

  #appView .workspace-buy-btn {
    min-width: 40px;
    padding: 0 9px;
    font-size: 0;
  }

  #appView .workspace-buy-btn iconify-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }

  #appView .workspace-content {
    padding: 12px;
  }

  #appView .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #appView .overview-main-grid,
  #appView .resume-dock,
  #appView .role-analysis-panel,
  #appView .records-layout {
    grid-template-columns: 1fr;
  }

  #appView .overview-license-bar,
  #appView .activation-entry-card,
  #appView .overview-action-grid,
  #appView .overview-order-body,
  #appView .resume-insight-strip,
  #appView .records-filter-toolbar,
  #appView .records-score-row,
  #appView .record-score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #appView .workspace-sidebar {
    flex-basis: 104px;
  }

  #appView .workspace-nav button {
    font-size: .68rem;
  }

  #appView .workspace-topbar .secondary,
  #appView .workspace-logout,
  #appView .notification-bell-btn {
    min-height: 36px;
  }

  #appView .account-panel span:last-child {
    display: none;
  }

  #appView .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop client web preview */
#appView.workspace-shell {
  --client-ink: #111827;
  --client-subtle: #667085;
  --client-line: rgba(253, 186, 116, .42);
  --client-panel: #ffffff;
  --client-canvas: #f8fafc;
  --client-warm: #fff7ed;
  background:
    linear-gradient(90deg, rgba(253, 186, 116, .28) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(253, 186, 116, .22) 0 1px, transparent 1px 100%),
    #fffaf5;
  background-size: 34px 34px;
  padding: 14px;
}

#appView .workspace-frame {
  position: relative;
  width: min(100%, 1500px);
  border-color: rgba(251, 146, 60, .36);
  border-radius: 12px;
  background: var(--client-canvas);
  box-shadow: 0 24px 70px rgba(124, 45, 18, .13);
}

#appView .workspace-sidebar {
  flex: 0 0 248px;
  border-right: 1px solid var(--client-line);
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  padding: 18px 14px;
}

#appView .workspace-sidebar-brand {
  gap: 11px;
  border: 1px solid var(--client-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

#appView .workspace-sidebar-brand .app-icon {
  width: 42px;
  height: 42px;
}

#appView .workspace-sidebar-brand b {
  color: var(--client-ink);
  font-size: 1rem;
  letter-spacing: 0;
}

#appView .workspace-sidebar-brand small {
  color: #c2410c;
  font-size: .68rem;
  letter-spacing: 0;
}

#appView .workspace-nav {
  gap: 8px;
  margin-top: 18px;
}

#appView .workspace-nav button {
  min-height: 44px;
  border-radius: 8px;
  color: var(--client-subtle);
  font-size: .84rem;
  font-weight: 900;
}

#appView .workspace-nav button iconify-icon {
  color: #f97316;
}

#appView .workspace-nav button.active {
  border-color: #f97316;
  background: #f97316;
  color: #fff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, .24);
}

#appView .workspace-nav button.active iconify-icon {
  color: #fff;
}

#appView .sidebar-readiness {
  border: 1px solid var(--client-line);
  border-radius: 8px;
  background: #fff;
}

#appView .workspace-main {
  background: #f8fafc;
}

#appView .workspace-topbar {
  min-height: 76px;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
  background: rgba(255, 255, 255, .92);
  padding: 12px 20px;
}

#appView .workspace-topbar p {
  color: #c2410c;
  font-size: .72rem;
  font-weight: 950;
}

#appView .workspace-topbar h1 {
  color: var(--client-ink);
  font-size: 1.34rem;
  font-weight: 950;
}

#appView #workspacePanelSubtitle {
  display: block;
  margin-top: 4px;
  color: var(--client-subtle);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}

#appView .workspace-topbar-actions {
  gap: 8px;
}

#appView .account-panel-btn,
#appView .credit-panel,
#appView .workspace-topbar .secondary,
#appView .workspace-logout,
#appView .notification-bell-btn {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fff;
}

#appView .workspace-buy-btn {
  border-color: rgba(249, 115, 22, .42);
  background: #fff7ed;
  color: #c2410c;
}

#appView .workspace-content {
  background: #f8fafc;
  padding: 18px;
}

#appView .workspace-content-inner {
  width: min(100%, 1220px);
  max-width: 1220px;
}

#appView .client-section-intro {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

#appView .client-section-intro > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: .74rem;
  font-weight: 950;
}

#appView .client-section-intro h2 {
  margin: 0;
  color: var(--client-ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.2;
}

#appView .client-section-intro p {
  margin: 5px 0 0;
  color: var(--client-subtle);
  font-size: .78rem;
  line-height: 1.45;
}

#appView .overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  grid-template-areas:
    "intro intro"
    "license metrics"
    "main main";
  gap: 14px;
  align-items: start;
}

#appView .overview-panel .client-section-intro {
  grid-area: intro;
}

#appView .overview-license-bar {
  grid-area: license;
  align-items: stretch;
  min-height: 178px;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
  border-color: rgba(249, 115, 22, .38);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(255, 255, 255, .96));
  padding: 14px;
}

#appView .activation-entry-card {
  min-height: 128px;
  border-color: rgba(249, 115, 22, .42);
  background: #fff;
}

#appView .referral-reset-btn {
  grid-column: 1 / -1;
  border-radius: 8px;
}

#appView .metric-grid {
  grid-area: metrics;
  grid-template-columns: 1fr;
  gap: 10px;
}

#appView .metric-card {
  min-height: 77px;
  border-color: rgba(226, 232, 240, .92);
  background: #fff;
  padding: 12px 14px;
}

#appView .metric-card strong {
  margin-top: 7px;
  font-size: 1.32rem;
}

#appView .overview-main-grid {
  grid-area: main;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 14px;
}

#appView .overview-action-card,
#appView .overview-order-card {
  grid-column: auto;
}

#appView .workspace-card,
#appView .records-card,
#appView .resume-source-card,
#appView .role-input-card,
#appView .role-result-card {
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

#appView .workspace-card {
  padding: 16px;
}

#appView .workspace-card-head h2,
#appView .resume-source-card > h2,
#appView .role-input-card > h2,
#appView .records-card-head h2 {
  color: var(--client-ink);
  font-size: 1.02rem;
}

#appView .eyebrow {
  color: #c2410c;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: 0;
}

#appView .next-step-list {
  gap: 10px;
  margin-top: 14px;
}

#appView .next-step-list button {
  border-color: rgba(226, 232, 240, .92);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

#appView .next-step-list button > span {
  border-radius: 8px;
  background: #fff7ed;
}

#appView .week-bars {
  height: 116px;
  margin-top: 22px;
}

#appView .overview-action-grid {
  gap: 10px;
}

#appView .overview-action-grid button,
#appView .overview-order-body,
#appView .role-score-panel,
#appView .resume-insight-strip span,
#appView .records-score-row span,
#appView .record-score-grid span {
  border-radius: 8px;
}

#appView .resume-dock,
#appView .role-analysis-panel {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 14px;
}

#appView .resume-source-card,
#appView .role-input-card {
  align-self: start;
}

#appView .file-picker {
  min-height: 148px;
  border-radius: 8px;
  background: #fff7ed;
}

#appView .resume-file-summary,
#appView .resume-safe-note,
#appView .role-practice-note,
#appView .role-file-picker,
#appView .role-result-grid,
#appView .role-info-block,
#appView .records-filter-toolbar label {
  border-radius: 8px;
}

#appView .resume-result-stack {
  display: grid;
  gap: 14px;
}

#appView .resume-insight-strip {
  gap: 10px;
}

#appView .resume-advantages {
  height: auto;
  min-height: 210px;
  max-height: none;
}

#appView .role-result-card {
  padding: 16px;
}

#appView .role-score-panel {
  grid-template-columns: 138px minmax(0, 1fr);
  margin-top: 14px;
  background: #fff7ed;
}

#appView .role-result-grid {
  margin-top: 14px;
}

#appView .record-history-panel {
  display: grid;
  gap: 14px;
}

#appView .record-history-panel .records-card {
  padding: 16px;
}

#appView .records-filter-toolbar {
  margin-top: 14px;
}

#appView .records-score-row {
  margin-top: 12px;
}

#appView .records-layout {
  min-height: 420px;
  margin-top: 14px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 8px;
  background: #fff;
}

#appView .records-list-column {
  background: #fff;
}

#appView .record-detail {
  background: #f8fafc;
}

#appView .record-row {
  border-color: rgba(226, 232, 240, .92);
}

#appView .record-row.active {
  background: #fff7ed;
}

@media (max-width: 1080px) {
  #appView .workspace-sidebar {
    flex-basis: 118px;
  }

  #appView .workspace-sidebar-brand span:last-child {
    display: none;
  }

  #appView .workspace-nav button {
    gap: 6px;
    padding: 0 8px;
    font-size: .72rem;
  }

  #appView .workspace-topbar {
    min-height: 76px;
  }

  #appView #workspacePanelSubtitle,
  #appView #workspaceHomeBtn,
  #appView #workspaceCreditClaimBtn,
  #appView .account-panel span:last-child,
  #appView .credit-panel span {
    display: none;
  }

  #appView .credit-panel {
    width: auto;
    min-width: 76px;
    flex: 0 0 auto;
  }

  #appView .workspace-buy-btn {
    min-width: 40px;
    font-size: 0;
  }

  #appView .workspace-buy-btn iconify-icon {
    font-size: 16px;
  }

  #appView .client-section-intro,
  #appView .overview-panel,
  #appView .overview-license-bar,
  #appView .overview-main-grid,
  #appView .resume-dock,
  #appView .role-analysis-panel,
  #appView .records-layout,
  #appView .records-filter-toolbar,
  #appView .records-score-row,
  #appView .overview-action-grid,
  #appView .overview-order-body,
  #appView .resume-insight-strip,
  #appView .record-score-grid {
    grid-template-columns: 1fr;
  }

  #appView .overview-panel {
    grid-template-areas:
      "intro"
      "license"
      "metrics"
      "main";
  }

  #appView .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #appView.workspace-shell {
    padding: 8px;
  }

  #appView .workspace-sidebar {
    flex-basis: 104px;
  }

  #appView .workspace-content {
    padding: 12px;
  }

  #appView .workspace-topbar h1 {
    font-size: 1.08rem;
  }

  #appView .client-section-intro {
    padding: 12px;
  }

  #appView .client-section-intro h2 {
    font-size: 1rem;
  }

  #appView .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Screenshot-faithful desktop client preview */
#authView.client-login-mode:not(.hidden) {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(430px, .92fr);
  grid-template-rows: 58px minmax(0, 1fr);
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #fff7f0;
  padding: 0;
}

#authView.client-login-mode .home-header,
#authView.client-login-mode .mobile-public-menu,
#authView.client-login-mode .public-page,
#authView.client-login-mode .auth-drawer-backdrop {
  display: none !important;
}

.client-login-titlebar,
.client-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border-bottom: 1px solid rgba(253, 186, 116, .34);
  background: rgba(255, 255, 255, .82);
  padding: 0 20px;
  -webkit-app-region: drag;
}

.client-login-titlebar button,
.client-window-bar button,
.client-login-titlebar input,
.client-window-bar input,
.client-login-titlebar select,
.client-window-bar select,
.client-login-titlebar textarea,
.client-window-bar textarea,
.client-window-controls {
  -webkit-app-region: no-drag;
}

.client-login-titlebar {
  grid-column: 1 / -1;
  grid-row: 1;
}

.client-login-titlebar > div:first-child,
.client-window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-login-titlebar .brand-mark,
.client-window-brand .app-icon {
  width: 31px;
  height: 31px;
}

.client-login-titlebar b,
.client-window-brand b {
  color: #111827;
  font-size: .95rem;
  font-weight: 950;
}

.client-login-titlebar i,
.client-window-brand i {
  color: #8a93a3;
  font-style: normal;
  font-size: .8rem;
  font-weight: 750;
}

.client-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.client-window-controls button {
  position: relative;
  width: 38px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .18s ease, color .18s ease;
}

.client-window-controls button:hover {
  background: rgba(15, 23, 42, .07);
}

.client-window-controls button:nth-child(3):hover {
  background: #ef4444;
}

.client-window-controls button::before,
.client-window-controls button::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}

.client-window-controls button:nth-child(1)::before { content: "–"; }
.client-window-controls button:nth-child(2)::before { content: "□"; }
.client-window-controls button:nth-child(2).is-maximized::before { content: "❐"; }
.client-window-controls button:nth-child(3)::before { content: "×"; }

.client-window-controls button:nth-child(3):hover::before {
  color: #fff;
}

.client-login-preview {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 15%, rgba(255, 196, 128, .34), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff6ee 54%, #ffe6d0 100%);
  padding: 70px 56px 46px;
}

.client-login-brand-panel {
  position: relative;
  height: 100%;
  min-height: 0;
}

.client-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.client-login-logo .brand-mark {
  width: 138px;
  height: 138px;
}

.client-login-logo strong {
  position: relative;
  color: #111827;
  font-size: clamp(3.4rem, 5.5vw, 5.6rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .95;
}

.client-login-logo strong::after {
  position: absolute;
  left: 4%;
  right: 8%;
  bottom: -18px;
  height: 8px;
  border-radius: 999px;
  background: #ff5a14;
  transform: rotate(-2deg);
  content: "";
}

.client-login-brand-panel > p {
  margin: 50px 0 0;
  color: #475467;
  font-size: 1.7rem;
  font-weight: 750;
  text-align: center;
}

.client-login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.client-login-feature-grid article {
  display: grid;
  justify-items: center;
  min-height: 170px;
  border: 1px solid rgba(253, 186, 116, .55);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  padding: 30px 18px 22px;
  text-align: center;
}

.client-login-feature-grid article > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff8a3d, #ff4b13);
  color: #fff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, .22);
}

.client-login-feature-grid b {
  margin-top: 16px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 950;
}

.client-login-feature-grid small {
  margin-top: 10px;
  color: #5f6673;
  font-size: .9rem;
  line-height: 1.55;
}

.client-login-note {
  position: absolute;
  left: 48px;
  bottom: 96px;
  color: #ff5a14;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.28;
  transform: rotate(-8deg);
}

.client-login-note::after {
  display: block;
  width: 220px;
  height: 54px;
  margin-top: -6px;
  border-bottom: 5px solid #ff5a14;
  border-radius: 0 0 50% 50%;
  transform: rotate(-9deg);
  content: "";
}

.client-login-bear {
  position: absolute;
  right: 28px;
  bottom: -28px;
  width: 270px;
  height: 245px;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(180deg, #ffb86e, #ff7a1a);
  box-shadow: 0 30px 55px rgba(249, 115, 22, .25);
}

.client-login-bear .brand-mark {
  position: absolute;
  left: 64px;
  top: 26px;
  width: 150px;
  height: 150px;
}

.client-login-bear::after {
  position: absolute;
  left: -58px;
  right: 28px;
  bottom: -4px;
  height: 86px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #fff, #f2f4f7);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
  content: "";
}

#authView.client-login-mode .auth-drawer {
  position: static;
  grid-column: 2;
  grid-row: 2;
  width: auto;
  height: auto;
  margin: 58px 48px 48px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
  opacity: 1;
  transform: none;
}

#authView.client-login-mode .auth-drawer-head {
  display: none;
}

#authView.client-login-mode .auth-drawer-scroll {
  display: flex;
  align-items: center;
  padding: 42px;
}

#authView.client-login-mode .auth-card-inner {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#authView.client-login-mode .auth-title {
  display: none;
}

#authView.client-login-mode .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 36px;
  border: 0;
  background: transparent;
  padding: 0;
}

#authView.client-login-mode #forgotTab {
  display: none;
}

#authView.client-login-mode .auth-tabs button {
  min-height: 54px;
  border-bottom: 4px solid #e5e7eb;
  color: #8a93a3;
  font-size: 1.45rem;
  font-weight: 950;
}

#authView.client-login-mode .auth-tabs button.active {
  border-color: #ff5a14;
  color: #ff5a14;
}

#authView.client-login-mode .auth-tabs button.active::after {
  display: none;
}

#authView.client-login-mode .auth-form {
  gap: 18px;
}

#authView.client-login-mode .auth-form label > span {
  display: none;
}

#authView.client-login-mode .input-wrap,
#authView.client-login-mode .captcha-row input,
#authView.client-login-mode .code-row input {
  min-height: 64px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 20px;
}

#authView.client-login-mode .input-wrap input,
#authView.client-login-mode .captcha-row input,
#authView.client-login-mode .code-row input {
  font-size: 1.02rem;
  font-weight: 700;
}

#authView.client-login-mode .captcha-row,
#authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
}

#authView.client-login-mode .captcha-image,
#authView.client-login-mode .code-row .secondary {
  height: 64px;
  border: 1px solid rgba(253, 186, 116, .58);
  border-radius: 14px;
  background: #fff7ed;
  color: #ff5a14;
  font-size: 1rem;
  font-weight: 950;
}

#authView.client-login-mode .captcha-image img {
  max-height: 44px;
}

.client-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  color: #667085;
  font-size: .9rem;
  font-weight: 800;
}

.client-login-options label {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.client-login-options input {
  accent-color: #ff5a14;
}

.client-login-options button {
  background: transparent;
  color: #667085;
  font-size: .9rem;
  font-weight: 800;
}

#authView.client-login-mode .auth-form > .primary {
  min-height: 72px;
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8a19, #ff4b13);
  font-size: 1.35rem;
  font-weight: 950;
}

#authView.client-login-mode .auth-drawer-foot {
  margin-top: 30px;
  color: #98a2b3;
}

#authView.client-login-mode .auth-drawer-foot::before,
#authView.client-login-mode .auth-drawer-foot::after {
  display: inline-block;
  width: 110px;
  height: 1px;
  margin: 0 14px 4px;
  background: #e5e7eb;
  content: "";
}

#authView.client-login-mode .auth-drawer-foot {
  font-size: 0;
}

#authView.client-login-mode .auth-drawer-foot button {
  display: none;
}

#authView.client-login-mode .auth-drawer-foot::after {
  content: "网页账号与客户端打通";
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  color: #98a2b3;
  font-size: .9rem;
  font-weight: 850;
}

#appView.workspace-shell {
  background: #fff7f0;
  padding: 0;
}

#appView .workspace-frame {
  display: grid !important;
  width: 100%;
  max-width: none;
  height: 100vh;
  margin: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 44px minmax(0, 1fr);
  border: 1px solid rgba(253, 186, 116, .34);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#appView .client-window-bar {
  grid-column: 1 / -1;
  grid-row: 1;
}

#appView .workspace-sidebar {
  grid-column: 1;
  grid-row: 2;
  width: auto;
  height: auto;
  border-right: 1px solid rgba(253, 186, 116, .42);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  padding: 28px 24px;
}

#appView .workspace-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  background: #fff;
}

#appView .workspace-sidebar-brand {
  border: 0;
  background: transparent;
  padding: 0 0 36px;
}

#appView .workspace-sidebar-brand .app-icon {
  width: 58px;
  height: 58px;
}

#appView .workspace-sidebar-brand b {
  font-size: 1.45rem;
}

#appView .workspace-sidebar-brand small {
  margin-top: 2px;
  color: #667085;
  font-size: .82rem;
}

#appView .workspace-nav {
  gap: 12px;
}

#appView .workspace-nav button {
  min-height: 60px;
  border-radius: 10px;
  color: #344054;
  font-size: 1rem;
  font-weight: 850;
  padding: 0 18px;
}

#appView .workspace-nav button iconify-icon {
  width: 24px;
  height: 24px;
}

#appView .workspace-nav button.active {
  position: relative;
  background: #fff1e5;
  color: #ff5a14;
  box-shadow: none;
}

#appView .workspace-nav button.active::before {
  position: absolute;
  left: -24px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #ff5a14;
  content: "";
}

#appView .sidebar-readiness {
  border-color: rgba(253, 186, 116, .46);
  background: #fff7ed;
  padding: 16px;
}

#appView .workspace-topbar {
  min-height: 92px;
  border-bottom: 0;
  background: #fff;
  padding: 22px 28px 12px;
}

#appView .workspace-topbar p {
  color: #667085;
  font-size: .82rem;
}

#appView .workspace-topbar h1 {
  font-size: 1.85rem;
}

#appView #workspacePanelSubtitle {
  color: #667085;
  font-size: .96rem;
}

#appView .workspace-content {
  background: #fff;
  padding: 0 28px 28px;
}

#appView .workspace-content-inner {
  width: 100%;
  max-width: none;
}

#appView .client-section-intro {
  display: none;
}

#appView .overview-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "metrics metrics metrics metrics"
    "chart chart actions actions"
    "orders orders codes codes";
  gap: 18px;
}

#appView .overview-license-bar {
  display: none;
}

#appView .metric-grid {
  grid-area: metrics;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#appView .metric-card {
  min-height: 136px;
  border: 1px solid rgba(253, 186, 116, .44);
  border-radius: 16px;
  background: #fff;
  padding: 22px 22px 18px 90px;
}

#appView .metric-card::before {
  left: 20px;
  top: 20px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff1e5;
}

#appView .metric-card p {
  color: #344054;
  font-size: 1rem;
}

#appView .metric-card strong {
  color: #111827;
  font-size: 1.9rem;
}

#appView .overview-main-grid {
  display: contents;
}

#appView .overview-main-grid > .workspace-card:first-child {
  display: none;
}

#appView .rhythm-card {
  grid-area: chart;
}

#appView .overview-action-card {
  grid-area: actions;
}

#appView .overview-table-card {
  grid-area: orders;
}

#appView .overview-order-card {
  grid-area: codes;
}

#appView .workspace-card,
#appView .records-card,
#appView .resume-source-card,
#appView .role-input-card,
#appView .role-result-card {
  border: 1px solid rgba(253, 186, 116, .44);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(124, 45, 18, .045);
}

#appView .workspace-card {
  padding: 22px;
}

#appView .workspace-card-head h2 {
  font-size: 1.2rem;
}

#appView .client-chart-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f4f7;
  padding: 4px;
}

#appView .client-chart-tabs button {
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  padding: 0 18px;
  font-size: .9rem;
  font-weight: 850;
}

#appView .client-chart-tabs button.active {
  background: #ff6a16;
  color: #fff;
}

#appView .client-line-chart {
  margin-top: 18px;
}

#appView .client-line-chart svg {
  width: 100%;
  height: auto;
}

#appView .chart-grid {
  fill: none;
  stroke: rgba(102, 112, 133, .18);
  stroke-width: 1;
}

#appView .chart-area {
  fill: rgba(255, 106, 22, .13);
}

#appView .chart-line {
  fill: none;
  stroke: #ff6a16;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appView .chart-point circle {
  fill: #fff;
  stroke: #ff6a16;
  stroke-width: 5;
}

#appView .chart-point text {
  fill: #fff;
  font-size: 16px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #ff6a16;
  stroke-width: 12px;
  stroke-linejoin: round;
}

#appView .client-line-chart > div {
  display: flex;
  justify-content: space-between;
  color: #667085;
  font-size: .82rem;
  padding: 0 20px;
}

#appView .week-bars {
  display: none;
}

#appView .overview-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#appView .overview-action-grid button {
  min-height: 96px;
  justify-content: flex-start;
  border-color: rgba(253, 186, 116, .44);
  background: #fffaf5;
  padding: 18px;
  font-size: 1rem;
}

#appView .overview-action-grid button:first-child {
  background: linear-gradient(135deg, #ff8a19, #ff4b13);
  color: #fff;
}

#appView .client-order-table {
  display: grid;
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 12px;
}

#appView .client-order-table > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .7fr .6fr;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #edf2f7;
  color: #344054;
  font-size: .9rem;
}

#appView .client-order-table > div:first-child {
  min-height: 42px;
  border-bottom: 0;
  background: #fff3e8;
  color: #667085;
  font-size: .82rem;
  font-weight: 850;
}

#appView .client-order-table span,
#appView .client-order-table b {
  padding: 0 14px;
}

#appView .client-order-table b {
  justify-self: start;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  padding: 5px 12px;
  font-size: .8rem;
}

#appView .client-order-table button {
  justify-self: start;
  background: transparent;
  color: #ff5a14;
  font-weight: 900;
}

#appView .overview-order-body {
  background: #f0fdf4;
}

#appView .resume-dock,
#appView .role-analysis-panel {
  grid-template-columns: minmax(380px, .42fr) minmax(0, .58fr);
  gap: 18px;
}

#appView .resume-source-card,
#appView .role-input-card,
#appView .role-result-card {
  padding: 22px;
}

#appView .resume-source-card > h2,
#appView .role-input-card > h2 {
  font-size: 1.2rem;
}

#appView .file-picker {
  min-height: 210px;
  border-radius: 12px;
  border-color: rgba(253, 186, 116, .62);
  background: #fffaf5;
}

#appView .resume-buttons .primary,
#appView .role-actions .primary {
  min-height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8a19, #ff4b13);
  font-size: 1.05rem;
}

#appView .resume-result-stack {
  gap: 14px;
}

#appView .resume-insight-strip {
  grid-template-columns: 1fr;
}

#appView .resume-insight-strip span {
  min-height: 112px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  background: #fff;
  padding: 18px;
}

#appView .resume-advantages {
  min-height: 0;
}

#appView .client-role-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .95fr);
  gap: 14px;
  margin-top: 14px;
}

#appView .client-requirement-list,
#appView .client-radar-card {
  border: 1px solid rgba(253, 186, 116, .44);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

#appView .client-requirement-list h3,
#appView .client-radar-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #111827;
  font-size: 1rem;
}

#appView .client-requirement-list p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  color: #475467;
}

#appView .client-requirement-list b {
  justify-self: start;
  border-radius: 8px;
  background: #fff1e5;
  color: #ff5a14;
  padding: 5px 9px;
  font-size: .78rem;
}

#appView .client-requirement-list b.bonus {
  background: #dcfce7;
  color: #16a34a;
}

#appView .client-radar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  color: #667085;
  font-size: .8rem;
}

#appView .client-radar svg {
  width: 230px;
  height: 190px;
}

#appView .client-radar span {
  position: absolute;
}

#appView .client-radar span:nth-child(1) { top: 2px; left: 50%; transform: translateX(-50%); }
#appView .client-radar span:nth-child(2) { right: 0; top: 76px; }
#appView .client-radar span:nth-child(3) { right: 28px; bottom: 18px; }
#appView .client-radar span:nth-child(4) { left: 28px; bottom: 18px; }
#appView .client-radar span:nth-child(5) { left: 0; top: 76px; }
#appView .radar-grid {
  fill: none;
  stroke: rgba(102, 112, 133, .22);
}
#appView .radar-fill {
  fill: rgba(255, 106, 22, .22);
}
#appView .radar-line {
  fill: none;
  stroke: #ff6a16;
  stroke-width: 4;
  stroke-linejoin: round;
}

#appView .record-history-panel {
  grid-template-columns: minmax(0, 1fr);
}

#appView .record-history-panel .records-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#appView .record-history-panel .records-card-head,
#appView .records-filter-toolbar,
#appView .records-score-row,
#appView .records-layout {
  grid-column: 1;
}

#appView .records-layout {
  min-height: 0;
  border: 0;
  background: transparent;
}

#appView .records-list-column {
  border: 1px solid rgba(253, 186, 116, .44);
  border-radius: 16px;
  background: #fff;
}

#appView .record-detail {
  grid-column: 2;
  grid-row: 1 / span 4;
  border: 1px solid rgba(253, 186, 116, .44);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

#appView .record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
}

#appView .record-row.active {
  background: #fff3e8;
}

@media (max-width: 980px) {
  #appView .workspace-frame {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  #appView .workspace-sidebar {
    padding: 18px 10px;
  }

  #appView .workspace-sidebar-brand span:last-child,
  #appView .sidebar-readiness {
    display: none;
  }

  #appView .workspace-nav button {
    justify-content: center;
    padding: 0;
    font-size: .72rem;
  }

  #appView .workspace-nav button iconify-icon {
    width: 18px;
  }

  #appView .overview-panel,
  #appView .metric-grid,
  #appView .resume-dock,
  #appView .role-analysis-panel,
  #appView .client-role-preview-grid,
  #appView .record-history-panel .records-card {
    grid-template-columns: 1fr;
  }

  #appView .overview-panel {
    grid-template-areas: "metrics" "chart" "actions" "orders" "codes";
  }

  #appView .record-detail {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  #authView.client-login-mode:not(.hidden) {
    grid-template-columns: 1fr;
    grid-template-rows: 58px minmax(0, 1fr);
    min-height: 100vh;
    overflow-y: auto;
  }

  #authView.client-login-mode .client-login-preview {
    display: none;
  }

  #authView.client-login-mode .auth-drawer {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    max-width: 560px;
    min-height: auto;
    margin: 22px auto;
  }

  #authView.client-login-mode .auth-drawer-scroll {
    padding: 28px;
  }

  #authView.client-login-mode .auth-tabs button {
    font-size: 1.15rem;
  }

  #authView.client-login-mode .captcha-row,
  #authView.client-login-mode .code-row {
    grid-template-columns: 1fr;
  }

  #authView.client-login-mode .captcha-image,
  #authView.client-login-mode .code-row .secondary {
    width: 100%;
  }
}

/* Usable-density pass for the embedded web preview */
@media (max-width: 1180px) {
  #appView .workspace-frame {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  #appView .workspace-sidebar {
    min-width: 0;
    overflow-y: auto;
    padding: 12px 8px;
  }

  #appView .workspace-sidebar-brand {
    justify-content: center;
    padding: 0 0 12px;
  }

  #appView .workspace-sidebar-brand .app-icon {
    width: 52px;
    height: 52px;
  }

  #appView .workspace-sidebar-brand span:last-child,
  #appView .sidebar-readiness {
    display: none !important;
  }

  #appView .workspace-nav {
    gap: 6px;
  }

  #appView .workspace-nav button {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    padding: 4px 2px;
    font-size: .68rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  #appView .workspace-nav button iconify-icon {
    width: 18px;
    height: 18px;
  }

  #appView .workspace-nav button.active::before {
    left: -8px;
    top: 10px;
    bottom: 10px;
  }

  #appView .workspace-topbar {
    min-height: 68px;
    padding: 10px 12px;
  }

  #appView .workspace-topbar p {
    font-size: .68rem;
  }

  #appView .workspace-topbar h1 {
    margin-top: 2px;
    font-size: 1.34rem;
  }

  #appView #workspacePanelSubtitle {
    display: none;
  }

  #appView .workspace-topbar-actions {
    gap: 6px;
  }

  #appView .account-panel-btn,
  #appView .notification-bell-btn,
  #appView .workspace-topbar .secondary,
  #appView .workspace-logout {
    min-width: 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  #appView .account-avatar {
    width: 30px;
    height: 30px;
  }

  #appView .account-panel span:last-child,
  #appView #workspaceHomeBtn,
  #appView #workspaceCreditClaimBtn {
    display: none !important;
  }

  #appView .credit-panel {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    flex-basis: 58px;
    height: 34px;
    padding: 0 4px;
  }

  #appView .credit-panel span,
  #appView .credit-refresh-btn {
    display: none !important;
  }

  #appView .credit-panel b {
    font-size: .82rem;
  }

  #appView .workspace-buy-btn {
    font-size: 0;
  }

  #appView .workspace-content {
    padding: 10px 12px 16px;
  }

  #appView .overview-panel {
    gap: 10px;
    grid-template-areas:
      "metrics"
      "chart"
      "actions"
      "orders"
      "codes";
  }

  #appView .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  #appView .metric-card {
    min-height: 88px;
    border-radius: 10px;
    padding: 12px 12px 10px 48px;
  }

  #appView .metric-card::before {
    left: 10px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  #appView .metric-card p {
    font-size: .78rem;
  }

  #appView .metric-card strong {
    margin-top: 5px;
    font-size: 1.28rem;
  }

  #appView .metric-card span {
    font-size: .68rem;
    line-height: 1.3;
  }

  #appView .workspace-card,
  #appView .records-card,
  #appView .resume-source-card,
  #appView .role-input-card,
  #appView .role-result-card {
    border-radius: 10px;
    padding: 14px;
  }

  #appView .workspace-card-head {
    align-items: flex-start;
  }

  #appView .workspace-card-head h2,
  #appView .resume-source-card > h2,
  #appView .role-input-card > h2,
  #appView .records-card-head h2 {
    font-size: .96rem;
  }

  #appView .eyebrow {
    font-size: .62rem;
  }

  #appView .client-chart-tabs {
    padding: 3px;
  }

  #appView .client-chart-tabs button {
    min-height: 28px;
    padding: 0 8px;
    font-size: .72rem;
  }

  #appView .client-line-chart {
    margin-top: 8px;
  }

  #appView .client-line-chart svg {
    max-height: 156px;
  }

  #appView .client-line-chart > div {
    padding: 0 4px;
    font-size: .66rem;
  }

  #appView .overview-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  #appView .overview-action-grid button {
    min-height: 68px;
    padding: 12px;
    font-size: .78rem;
  }

  #appView .client-order-table {
    overflow-x: auto;
  }

  #appView .client-order-table > div {
    min-width: 620px;
    min-height: 38px;
    font-size: .76rem;
  }

  #appView .overview-order-body {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 12px;
  }

  #appView .overview-order-body p {
    text-align: left;
    font-size: .72rem;
  }

  #appView .resume-dock,
  #appView .role-analysis-panel {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #appView .file-picker {
    min-height: 132px;
    padding: 18px 12px;
  }

  #appView .resume-file-summary {
    height: auto;
    min-height: 64px;
  }

  #appView .resume-buttons,
  #appView .role-actions {
    gap: 8px;
  }

  #appView .resume-buttons .primary,
  #appView .role-actions .primary {
    min-height: 46px;
    font-size: .88rem;
  }

  #appView .resume-insight-strip span {
    min-height: 78px;
    padding: 12px;
  }

  #appView .client-role-preview-grid,
  #appView .role-score-panel,
  #appView .role-result-grid {
    grid-template-columns: 1fr !important;
  }

  #appView .client-requirement-list,
  #appView .client-radar-card {
    padding: 12px;
  }

  #appView .client-radar {
    min-height: 190px;
  }

  #appView .record-history-panel .records-card {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #appView .record-detail {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: 14px;
  }

  #appView .records-filter-toolbar,
  #appView .records-score-row,
  #appView .record-score-grid {
    grid-template-columns: 1fr !important;
  }

  #appView .record-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }
}

@media (max-width: 560px) {
  #appView .workspace-frame {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  #appView .workspace-nav button {
    min-height: 48px;
    font-size: .62rem;
  }

  #appView .metric-grid,
  #appView .overview-action-grid {
    grid-template-columns: 1fr !important;
  }

  #appView .workspace-topbar-actions {
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Extra compact pass for the narrow in-app client preview. */
@media (max-width: 560px) {
  #appView .workspace-frame {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: 36px minmax(0, 1fr);
  }

  #appView .client-window-bar {
    min-height: 36px;
    padding: 0 10px;
  }

  #appView .client-window-brand .app-icon {
    width: 22px;
    height: 22px;
  }

  #appView .client-window-brand b {
    font-size: .84rem;
  }

  #appView .client-window-brand i {
    display: none;
  }

  #appView .workspace-sidebar {
    padding: 8px 5px;
  }

  #appView .workspace-sidebar-brand {
    padding-bottom: 8px;
  }

  #appView .workspace-sidebar-brand .app-icon {
    width: 46px;
    height: 46px;
  }

  #appView .workspace-nav {
    gap: 4px;
  }

  #appView .workspace-nav button {
    min-height: 45px;
    padding: 3px 1px;
    font-size: .6rem;
  }

  #appView .workspace-nav button iconify-icon {
    width: 16px;
    height: 16px;
  }

  #appView .workspace-topbar {
    min-height: 54px;
    padding: 7px 8px;
    gap: 8px;
  }

  #appView .workspace-topbar p,
  #appView #workspacePanelSubtitle,
  #appView #accountOrdersBtn,
  #appView #workspaceBuyBtn,
  #appView #workspaceHomeBtn {
    display: none !important;
  }

  #appView .workspace-topbar h1 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.15;
  }

  #appView .workspace-topbar-actions {
    flex: 0 0 auto;
    max-width: none;
    flex-wrap: nowrap;
    gap: 5px;
  }

  #appView .notification-bell-btn,
  #appView .workspace-logout {
    min-width: 30px;
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  #appView .credit-panel {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    flex-basis: 48px;
    height: 30px;
  }

  #appView .credit-panel b {
    font-size: .74rem;
  }

  #appView .workspace-content {
    padding: 8px 9px 12px;
  }

  #appView .overview-panel {
    gap: 8px;
  }

  #appView .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  #appView .metric-card {
    min-height: 74px;
    padding: 9px 8px 8px 38px;
  }

  #appView .metric-card::before {
    left: 8px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  #appView .metric-card p {
    font-size: .68rem;
    line-height: 1.15;
  }

  #appView .metric-card strong {
    margin-top: 3px;
    font-size: 1.02rem;
    line-height: 1.1;
  }

  #appView .metric-card span {
    margin-top: 2px;
    font-size: .58rem;
    line-height: 1.2;
  }

  #appView .workspace-card,
  #appView .records-card,
  #appView .resume-source-card,
  #appView .role-input-card,
  #appView .role-result-card {
    padding: 11px;
  }

  #appView .workspace-card-head {
    gap: 8px;
    margin-bottom: 9px;
  }

  #appView .workspace-card-head h2,
  #appView .resume-source-card > h2,
  #appView .role-input-card > h2,
  #appView .records-card-head h2 {
    font-size: .88rem;
  }

  #appView .eyebrow {
    font-size: .56rem;
  }

  #appView .client-chart-tabs button {
    min-height: 24px;
    padding: 0 6px;
    font-size: .65rem;
  }

  #appView .client-line-chart svg {
    max-height: 112px;
  }

  #appView .client-line-chart > div {
    font-size: .56rem;
  }

  #appView .overview-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  #appView .overview-action-grid button {
    min-height: 54px;
    padding: 9px;
    border-radius: 10px;
    font-size: .68rem;
  }

  #appView .client-order-table > div {
    min-height: 32px;
    font-size: .68rem;
  }

  #appView .overview-order-body {
    padding: 10px;
  }

  #appView .file-picker {
    min-height: 108px;
    padding: 14px 10px;
  }

  #appView .role-file-picker {
    gap: 8px;
    min-height: 40px;
    max-width: 100%;
    overflow: hidden;
    padding: 0 10px;
    font-size: .76rem;
    white-space: normal;
  }

  #appView .role-file-picker iconify-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
  }

  #appView .role-file-picker strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #appView .file-picker input,
  #appView .role-file-picker input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-height: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  #appView .resume-file-summary {
    min-height: 54px;
  }

  #appView input,
  #appView textarea,
  #appView select {
    border-radius: 9px;
    font-size: .78rem;
  }

  #appView input,
  #appView select {
    height: 36px;
  }

  #appView textarea {
    min-height: 104px;
  }

  #appView .resume-buttons .primary,
  #appView .role-actions .primary {
    min-height: 40px;
    font-size: .78rem;
  }

  #appView .resume-insight-strip span {
    min-height: 58px;
    padding: 9px;
  }

  #appView .client-radar {
    min-height: 146px;
  }

  #appView .records-filter-toolbar {
    gap: 7px;
  }

  #appView .records-score-row {
    gap: 8px;
  }

  #appView .record-detail {
    padding: 11px;
  }
}

/* Reference-locked desktop client preview.
   The selected mockups are 1600 x 1000 desktop-client screens. Keep that
   composition intact and scale the whole app instead of reflowing it. */
#appView.workspace-shell {
  --client-preview-scale: 1;
  --client-preview-scaled-width: 1600px;
  --client-preview-scaled-height: 1000px;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff7f0;
}

#appView.workspace-shell .workspace-frame {
  position: absolute;
  top: 0;
  left: max(0px, calc((100vw - var(--client-preview-scaled-width)) / 2));
  width: 1600px !important;
  min-width: 1600px !important;
  max-width: 1600px !important;
  height: 1000px !important;
  min-height: 1000px !important;
  max-height: 1000px !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  overflow: hidden;
  border: 1px solid rgba(253, 186, 116, .34);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: scale(var(--client-preview-scale));
  transform-origin: top left;
}

#appView.workspace-shell .client-window-bar {
  min-height: 44px !important;
  padding: 0 18px !important;
}

#appView.workspace-shell .client-window-brand .app-icon {
  width: 28px !important;
  height: 28px !important;
}

#appView.workspace-shell .client-window-brand b {
  font-size: 1rem !important;
}

#appView.workspace-shell .client-window-brand i {
  display: inline !important;
}

#appView.workspace-shell .workspace-sidebar {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 28px 24px !important;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
}

#appView.workspace-shell .workspace-sidebar-brand {
  justify-content: flex-start !important;
  padding: 0 0 36px !important;
}

#appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 58px !important;
  height: 58px !important;
}

#appView.workspace-shell .workspace-sidebar-brand span:last-child,
#appView.workspace-shell .sidebar-readiness {
  display: block !important;
}

#appView.workspace-shell .workspace-sidebar-brand b {
  font-size: 1.45rem !important;
}

#appView.workspace-shell .workspace-sidebar-brand small {
  display: block !important;
  font-size: .82rem !important;
}

#appView.workspace-shell .workspace-nav {
  gap: 12px !important;
}

#appView.workspace-shell .workspace-nav button {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  justify-items: stretch !important;
  align-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 60px !important;
  border-radius: 10px !important;
  padding: 0 18px !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#appView.workspace-shell .workspace-nav button iconify-icon {
  width: 24px !important;
  height: 24px !important;
}

#appView.workspace-shell .workspace-nav button.active::before {
  left: -24px !important;
  top: 8px !important;
  bottom: 8px !important;
}

#appView.workspace-shell .workspace-main {
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #fff !important;
}

#appView.workspace-shell .workspace-topbar {
  min-height: 92px !important;
  padding: 22px 28px 12px !important;
  gap: 18px !important;
}

#appView.workspace-shell .workspace-topbar p,
#appView.workspace-shell #workspacePanelSubtitle,
#appView.workspace-shell #accountOrdersBtn,
#appView.workspace-shell #workspaceBuyBtn,
#appView.workspace-shell #workspaceHomeBtn {
  display: flex !important;
}

#appView.workspace-shell .workspace-topbar p {
  font-size: .82rem !important;
}

#appView.workspace-shell .workspace-topbar h1 {
  margin-top: 2px !important;
  font-size: 1.85rem !important;
  line-height: 1.15 !important;
}

#appView.workspace-shell #workspacePanelSubtitle {
  display: block !important;
  font-size: .96rem !important;
}

#appView.workspace-shell .workspace-topbar-actions {
  flex-wrap: nowrap !important;
  max-width: none !important;
  gap: 10px !important;
}

#appView.workspace-shell .account-panel-btn,
#appView.workspace-shell .notification-bell-btn,
#appView.workspace-shell .workspace-topbar .secondary,
#appView.workspace-shell .workspace-logout {
  width: auto !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
}

#appView.workspace-shell .account-avatar {
  width: 38px !important;
  height: 38px !important;
}

#appView.workspace-shell .account-panel span:last-child,
#appView.workspace-shell #workspaceCreditClaimBtn {
  display: block !important;
}

#appView.workspace-shell #workspaceHomeBtn {
  display: none !important;
}

#appView.workspace-shell .credit-panel {
  width: auto !important;
  min-width: 132px !important;
  max-width: none !important;
  flex-basis: auto !important;
  height: 44px !important;
  padding: 0 12px !important;
}

#appView.workspace-shell .credit-panel span,
#appView.workspace-shell .credit-refresh-btn {
  display: inline-flex !important;
}

#appView.workspace-shell .credit-panel b {
  font-size: 1rem !important;
}

#appView.workspace-shell .workspace-buy-btn {
  font-size: .9rem !important;
}

#appView.workspace-shell .workspace-content {
  height: calc(1000px - 44px - 92px) !important;
  overflow: auto !important;
  padding: 0 28px 28px !important;
}

#appView.workspace-shell .overview-panel {
  gap: 18px !important;
  grid-template-areas:
    "metrics metrics metrics metrics"
    "chart chart actions actions"
    "orders orders codes codes" !important;
}

#appView.workspace-shell .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#appView.workspace-shell .metric-card {
  min-height: 136px !important;
  border-radius: 16px !important;
  padding: 22px 22px 18px 90px !important;
}

#appView.workspace-shell .metric-card::before {
  left: 20px !important;
  top: 20px !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
}

#appView.workspace-shell .metric-card p {
  font-size: 1rem !important;
}

#appView.workspace-shell .metric-card strong {
  margin-top: 6px !important;
  font-size: 1.9rem !important;
  line-height: 1.1 !important;
}

#appView.workspace-shell .metric-card span {
  margin-top: 4px !important;
  font-size: .86rem !important;
  line-height: 1.35 !important;
}

#appView.workspace-shell .workspace-card,
#appView.workspace-shell .records-card,
#appView.workspace-shell .resume-source-card,
#appView.workspace-shell .role-input-card,
#appView.workspace-shell .role-result-card {
  border-radius: 16px !important;
  padding: 22px !important;
}

#appView.workspace-shell .workspace-card-head {
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

#appView.workspace-shell .workspace-card-head h2,
#appView.workspace-shell .resume-source-card > h2,
#appView.workspace-shell .role-input-card > h2,
#appView.workspace-shell .records-card-head h2 {
  font-size: 1.2rem !important;
}

#appView.workspace-shell .eyebrow {
  font-size: .65rem !important;
}

#appView.workspace-shell .client-chart-tabs button {
  min-height: 36px !important;
  padding: 0 18px !important;
  font-size: .9rem !important;
}

#appView.workspace-shell .client-line-chart {
  margin-top: 18px !important;
}

#appView.workspace-shell .client-line-chart svg {
  max-height: none !important;
}

#appView.workspace-shell .client-line-chart > div {
  padding: 0 20px !important;
  font-size: .82rem !important;
}

#appView.workspace-shell .overview-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

#appView.workspace-shell .overview-action-grid button {
  min-height: 96px !important;
  border-radius: 12px !important;
  padding: 18px !important;
  font-size: 1rem !important;
}

#appView.workspace-shell .client-order-table {
  overflow: hidden !important;
}

#appView.workspace-shell .client-order-table > div {
  min-width: 0 !important;
  min-height: 44px !important;
  font-size: .9rem !important;
}

#appView.workspace-shell .resume-dock,
#appView.workspace-shell .role-analysis-panel {
  grid-template-columns: minmax(380px, .42fr) minmax(0, .58fr) !important;
  gap: 18px !important;
}

#appView.workspace-shell .file-picker {
  min-height: 210px !important;
  padding: 28px 20px !important;
}

#appView.workspace-shell .role-file-picker {
  gap: 10px !important;
  min-height: auto !important;
  padding: 12px 14px !important;
  font-size: .84rem !important;
}

#appView.workspace-shell .role-file-picker iconify-icon {
  width: 18px !important;
  height: 18px !important;
}

#appView.workspace-shell input,
#appView.workspace-shell select {
  height: 44px !important;
  border-radius: 12px !important;
  font-size: .9375rem !important;
}

#appView.workspace-shell textarea {
  min-height: 160px !important;
  border-radius: 12px !important;
  font-size: .9375rem !important;
}

#appView.workspace-shell .resume-buttons .primary,
#appView.workspace-shell .role-actions .primary {
  min-height: 60px !important;
  font-size: 1.05rem !important;
}

#appView.workspace-shell .resume-insight-strip span {
  min-height: 112px !important;
  padding: 18px !important;
}

#appView.workspace-shell .client-role-preview-grid,
#appView.workspace-shell .role-score-panel,
#appView.workspace-shell .role-result-grid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, .95fr) !important;
}

#appView.workspace-shell .client-requirement-list,
#appView.workspace-shell .client-radar-card {
  padding: 18px !important;
}

#appView.workspace-shell .client-radar {
  min-height: 260px !important;
}

#appView.workspace-shell .record-history-panel .records-card {
  grid-template-columns: minmax(0, 1fr) 420px !important;
  gap: 18px !important;
}

#appView.workspace-shell .record-detail {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  padding: 22px !important;
}

#appView.workspace-shell .records-filter-toolbar {
  grid-template-columns: 1.1fr .7fr .7fr minmax(220px, 1fr) auto !important;
  gap: 12px !important;
}

#appView.workspace-shell .records-score-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

#appView.workspace-shell .record-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#appView.workspace-shell .record-row {
  grid-template-columns: 32px 1.2fr .9fr .7fr .55fr .75fr !important;
  gap: 12px !important;
  padding: 12px 14px !important;
}

/* Desktop composition repair: fill the window instead of shrinking the mockup,
   and make every workspace module occupy its real content area. */
#appView.workspace-shell {
  --client-sidebar-width: 216px;
  overflow: auto;
  font-size: 15px;
}

#appView.workspace-shell .workspace-frame {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100vw !important;
  min-width: 1180px !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 760px !important;
  max-height: none !important;
  grid-template-columns: var(--client-sidebar-width) minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  transform: scale(var(--client-preview-scale));
  transform-origin: top left;
}

#appView.workspace-shell .workspace-sidebar {
  padding: 30px 20px !important;
}

#appView.workspace-shell .workspace-sidebar-brand {
  padding-bottom: 48px !important;
}

#appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 56px !important;
  height: 56px !important;
}

#appView.workspace-shell .workspace-sidebar-brand b {
  font-size: 1.42rem !important;
}

#appView.workspace-shell .workspace-nav {
  gap: 16px !important;
}

#appView.workspace-shell .workspace-nav button {
  min-height: 56px !important;
  gap: 16px !important;
  padding: 0 20px !important;
  font-size: 1.04rem !important;
  font-weight: 900 !important;
}

#appView.workspace-shell .workspace-nav button iconify-icon {
  width: 22px !important;
  height: 22px !important;
}

#appView.workspace-shell .sidebar-readiness {
  padding: 16px !important;
  font-size: .9rem !important;
}

#appView.workspace-shell .workspace-main {
  min-height: 0 !important;
}

#appView.workspace-shell .workspace-topbar {
  min-height: 96px !important;
  padding: 24px 26px 14px !important;
}

#appView.workspace-shell .workspace-topbar h1 {
  font-size: 2rem !important;
}

#appView.workspace-shell #workspacePanelSubtitle {
  font-size: 1rem !important;
}

#appView.workspace-shell .workspace-content {
  height: calc(100vh - 44px - 96px) !important;
  min-height: 620px !important;
  padding: 0 26px 26px !important;
}

#appView.workspace-shell .workspace-content-inner {
  height: 100%;
  min-height: 0;
}

#appView.workspace-shell [data-workspace-panel-section]:not(.workspace-panel-hidden) {
  min-height: 100%;
}

#appView.workspace-shell .metric-card p,
#appView.workspace-shell .metric-card span {
  font-size: .9rem !important;
}

#appView.workspace-shell .metric-card strong {
  font-size: 2rem !important;
}

#appView.workspace-shell .resume-dock,
#appView.workspace-shell .role-analysis-panel {
  height: 100%;
  min-height: 0;
  align-items: stretch !important;
  grid-template-columns: minmax(420px, .78fr) minmax(0, 1.22fr) !important;
  gap: 18px !important;
}

#appView.workspace-shell .resume-source-card,
#appView.workspace-shell .role-input-card {
  min-height: 0;
  overflow: auto;
}

#appView.workspace-shell .resume-result-stack {
  display: grid !important;
  min-width: 0;
  min-height: 0;
  grid-column: auto !important;
  grid-template-rows: minmax(0, .96fr) minmax(260px, .86fr);
  gap: 18px;
}

#appView.workspace-shell .resume-advantages-card,
#appView.workspace-shell .resume-result {
  grid-column: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  overflow: hidden;
}

#appView.workspace-shell .resume-advantages-card {
  grid-template-rows: auto auto minmax(0, 1fr);
}

#appView.workspace-shell .resume-insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#appView.workspace-shell .resume-insight-strip span {
  min-height: 92px !important;
}

#appView.workspace-shell .resume-advantages {
  min-height: 0;
  height: auto;
  margin-top: 14px;
}

#appView.workspace-shell .resume-result-layout {
  height: calc(100% - 58px);
  min-height: 0;
}

#appView.workspace-shell .resume-questions,
#appView.workspace-shell .resume-answer-preview {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

#appView.workspace-shell .role-result-card {
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

#appView.workspace-shell .role-score-panel {
  grid-template-columns: 180px minmax(0, 1fr) !important;
}

#appView.workspace-shell .client-role-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .92fr) !important;
}

#appView.workspace-shell .role-result-grid {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#appView.workspace-shell .conversation-panel {
  height: 100%;
  min-height: 0;
}

#appView.workspace-shell .interview-stage {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: stretch;
}

#appView.workspace-shell .interview-stage .pane {
  min-height: 0;
}

#appView.workspace-shell .transcript-card,
#appView.workspace-shell .workspace-answer-card {
  min-height: 0;
}

#appView.workspace-shell .workspace-content-inner.interview-panel-active .conversation-panel {
  height: 100% !important;
}

#appView.workspace-shell .record-history-panel {
  height: 100%;
  min-height: 0;
}

#appView.workspace-shell .record-history-panel .records-card {
  display: grid !important;
  height: 100%;
  min-height: 0;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  overflow: hidden;
}

#appView.workspace-shell .records-layout {
  display: grid !important;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr) !important;
  gap: 18px !important;
}

#appView.workspace-shell .records-list-column,
#appView.workspace-shell .record-list,
#appView.workspace-shell .record-detail {
  min-height: 0;
}

#appView.workspace-shell .record-list,
#appView.workspace-shell .record-detail {
  overflow: auto;
}

#appView.workspace-shell .record-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  height: 100%;
  min-width: 0;
}

#appView.workspace-shell .records-filter-toolbar {
  grid-template-columns: .9fr .72fr .72fr minmax(220px, 1fr) !important;
}

#appView.workspace-shell .records-score-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#appView.workspace-shell .data-sim-panel {
  height: 100%;
  min-height: 0;
  font-size: 1rem;
}

#appView.workspace-shell .data-sim-tabs button,
#appView.workspace-shell .data-sim-form,
#appView.workspace-shell .data-sim-form input,
#appView.workspace-shell .data-sim-form textarea,
#appView.workspace-shell .data-sim-form select,
#appView.workspace-shell .data-sim-form button {
  font-size: .98rem !important;
}

#appView.workspace-shell .data-sim-workspace:not(.hidden) {
  height: calc(100% - 58px);
  min-height: 0;
}

#appView.workspace-shell .data-sim-form {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

/* Integrated client shell: keep the real web/backend data flow, present it as the desktop client. */
body {
  background: #fff7f0;
}

#authView.client-login-mode:not(.hidden) {
  display: grid !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  grid-template-columns: minmax(560px, 1.06fr) minmax(500px, .94fr) !important;
  grid-template-rows: 58px minmax(0, 1fr) !important;
  overflow: hidden !important;
  background: #fffaf5 !important;
}

#authView.client-login-mode .client-login-titlebar {
  padding: 0 28px !important;
  border-bottom: 1px solid rgba(253, 186, 116, .28) !important;
  background: rgba(255, 255, 255, .9) !important;
}

#authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 34px !important;
  height: 34px !important;
}

#authView.client-login-mode .client-login-titlebar b {
  font-size: 1.05rem !important;
}

#authView.client-login-mode .client-login-titlebar i {
  border-left: 1px solid #d0d5dd;
  padding-left: 14px;
  font-size: .95rem !important;
}

#authView.client-login-mode .public-footer {
  display: none !important;
}

#authView.client-login-mode .client-login-preview {
  padding: min(8vh, 78px) 62px 0 !important;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 203, 128, .4), transparent 30%),
    radial-gradient(circle at 14% 78%, rgba(255, 237, 213, .72), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff7ef 52%, #ffe2c8 100%) !important;
}

#authView.client-login-mode .client-login-brand-panel {
  max-width: 760px;
  margin: 0 auto;
}

#authView.client-login-mode .client-login-logo {
  justify-content: flex-start !important;
  gap: 26px !important;
}

#authView.client-login-mode .client-login-logo .brand-mark {
  width: 142px !important;
  height: 142px !important;
  flex: 0 0 auto;
}

#authView.client-login-mode .client-login-logo strong {
  font-size: clamp(4.6rem, 6.1vw, 6.3rem) !important;
  line-height: .92 !important;
}

#authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 44px !important;
  font-size: clamp(1.75rem, 2.35vw, 2.25rem) !important;
  font-weight: 760 !important;
  text-align: center !important;
}

#authView.client-login-mode .client-login-feature-grid {
  gap: 24px !important;
  margin-top: 48px !important;
}

#authView.client-login-mode .client-login-feature-grid article {
  min-height: 168px !important;
  border-radius: 18px !important;
  padding: 28px 18px 20px !important;
  background: rgba(255, 255, 255, .64) !important;
}

#authView.client-login-mode .client-login-feature-grid article > span {
  width: 74px !important;
  height: 74px !important;
  border-radius: 22px !important;
}

#authView.client-login-mode .client-login-feature-grid b {
  font-size: 1.28rem !important;
}

#authView.client-login-mode .client-login-feature-grid small {
  max-width: 10.5em;
  font-size: 1rem !important;
}

#authView.client-login-mode .client-login-note {
  left: 44px !important;
  bottom: 98px !important;
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
}

#authView.client-login-mode .client-login-bear {
  right: -4px !important;
  bottom: -34px !important;
  width: 330px !important;
  height: 284px !important;
}

#authView.client-login-mode .client-login-bear .brand-mark {
  left: 78px !important;
  top: 24px !important;
  width: 178px !important;
  height: 178px !important;
}

#authView.client-login-mode .client-login-bear::after {
  left: -70px !important;
  right: 34px !important;
  height: 96px !important;
}

#authView.client-login-mode .auth-drawer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 58px 44px 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 237, 213, .55), transparent 34%),
    #fffaf5 !important;
  box-shadow: none !important;
}

#authView.client-login-mode .auth-drawer-scroll {
  display: block !important;
  width: min(100%, 670px) !important;
  max-height: calc(100dvh - 140px) !important;
  overflow: auto !important;
  border: 1px solid rgba(15, 23, 42, .04);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
  padding: 48px 58px 40px !important;
}

#authView.client-login-mode .auth-tabs {
  gap: 20px !important;
  margin-bottom: 38px !important;
}

#authView.client-login-mode .auth-tabs button {
  min-height: 58px !important;
  font-size: 1.7rem !important;
}

#authView.client-login-mode .auth-form {
  gap: 20px !important;
}

#authView.client-login-mode .input-wrap,
#authView.client-login-mode .captcha-row input,
#authView.client-login-mode .code-row input {
  min-height: 72px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
}

#authView.client-login-mode .input-wrap input,
#authView.client-login-mode .captcha-row input,
#authView.client-login-mode .code-row input {
  font-size: 1.16rem !important;
}

#authView.client-login-mode .input-wrap iconify-icon {
  color: #7d8797 !important;
}

#authView.client-login-mode .captcha-row,
#authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 190px !important;
  gap: 18px !important;
}

#authView.client-login-mode .captcha-image,
#authView.client-login-mode .code-row .secondary {
  height: 72px !important;
  border-radius: 16px !important;
  font-size: 1.08rem !important;
}

#authView.client-login-mode .client-login-options {
  margin: 2px 0 0 !important;
  font-size: 1.02rem !important;
}

#authView.client-login-mode .client-login-options label,
#authView.client-login-mode .client-login-options button {
  font-size: 1.02rem !important;
}

#authView.client-login-mode .client-login-options input {
  width: 18px;
  height: 18px;
}

#authView.client-login-mode .auth-form > .primary {
  min-height: 78px !important;
  margin-top: 18px !important;
  border-radius: 18px !important;
  font-size: 1.55rem !important;
}

#authView.client-login-mode .message {
  min-height: 24px;
  margin-top: 10px;
  font-size: .95rem;
}

#authView.client-login-mode .auth-drawer-foot {
  display: none !important;
}

.client-sync-foot {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  color: #7d8797;
  text-align: center;
}

.client-sync-foot p {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  gap: 16px;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 850;
}

.client-sync-foot p span {
  height: 1px;
  background: #e4e7ec;
}

.client-sync-foot > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.client-sync-foot > div > span {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #ff5a14;
}

.client-sync-foot small {
  color: #667085;
  font-size: .95rem;
  font-weight: 820;
}

#appView.workspace-shell {
  --client-sidebar-width: 258px !important;
  --client-preview-scale: 1 !important;
  --client-preview-scaled-width: 100vw !important;
  --client-preview-scaled-height: 100dvh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #fffaf5 !important;
  font-size: 16px !important;
}

#appView.workspace-shell .workspace-frame {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 100vw !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  grid-template-columns: var(--client-sidebar-width) minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 1px solid rgba(253, 186, 116, .28) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

#appView.workspace-shell .client-window-bar {
  min-height: 44px !important;
  padding: 0 24px !important;
  background: rgba(255, 255, 255, .94) !important;
}

#appView.workspace-shell .workspace-sidebar {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 26px 22px !important;
  border-right: 1px solid rgba(253, 186, 116, .34) !important;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
}

#appView.workspace-shell .workspace-sidebar-brand {
  gap: 12px !important;
  padding: 0 0 34px !important;
}

#appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 58px !important;
  height: 58px !important;
}

#appView.workspace-shell .workspace-sidebar-brand b {
  font-size: 1.52rem !important;
}

#appView.workspace-shell .workspace-sidebar-brand small {
  display: block !important;
  font-size: .86rem !important;
}

#appView.workspace-shell .workspace-nav {
  gap: 12px !important;
}

#appView.workspace-shell .workspace-nav button {
  min-height: 56px !important;
  gap: 15px !important;
  border-radius: 12px !important;
  padding: 0 18px !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
}

#appView.workspace-shell .workspace-nav button iconify-icon {
  width: 22px !important;
  height: 22px !important;
}

#appView.workspace-shell .workspace-main {
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

#appView.workspace-shell .workspace-topbar {
  min-height: 96px !important;
  padding: 22px 30px 14px !important;
  border-bottom: 1px solid rgba(253, 186, 116, .18) !important;
}

#appView.workspace-shell .workspace-topbar h1 {
  font-size: 2rem !important;
}

#appView.workspace-shell #workspacePanelSubtitle {
  font-size: 1rem !important;
}

#appView.workspace-shell .workspace-content {
  height: auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 30px 30px !important;
}

#appView.workspace-shell .workspace-content-inner {
  height: auto !important;
  min-height: 100% !important;
  max-width: none !important;
}

#appView.workspace-shell [data-workspace-panel-section]:not(.workspace-panel-hidden) {
  min-height: auto !important;
}

#appView.workspace-shell [data-workspace-panel-section].workspace-panel-hidden {
  display: none !important;
}

#appView.workspace-shell .overview-panel {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-areas:
    "metrics metrics metrics metrics"
    "chart chart actions actions"
    "orders orders codes codes" !important;
  gap: 18px !important;
  align-items: stretch !important;
}

#appView.workspace-shell .metric-grid {
  grid-area: metrics !important;
}

#appView.workspace-shell .overview-main-grid {
  display: contents !important;
}

#appView.workspace-shell .workspace-card,
#appView.workspace-shell .records-card,
#appView.workspace-shell .resume-source-card,
#appView.workspace-shell .role-input-card,
#appView.workspace-shell .role-result-card {
  border-radius: 16px !important;
  padding: 22px !important;
}

#appView.workspace-shell .resume-dock,
#appView.workspace-shell .role-analysis-panel {
  display: grid !important;
  height: auto !important;
  min-height: auto !important;
  grid-template-columns: minmax(360px, .46fr) minmax(0, .54fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

#appView.workspace-shell .resume-result-stack {
  display: grid !important;
  min-width: 0 !important;
  grid-template-rows: auto auto !important;
  gap: 18px !important;
}

#appView.workspace-shell .resume-advantages-card,
#appView.workspace-shell .resume-result,
#appView.workspace-shell .role-result-card {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#appView.workspace-shell .resume-advantages,
#appView.workspace-shell .resume-questions,
#appView.workspace-shell .resume-answer-preview,
#appView.workspace-shell .role-result-grid {
  max-height: 340px !important;
  min-height: 0 !important;
  overflow: auto !important;
}

#appView.workspace-shell .role-result-grid {
  height: auto !important;
}

#appView.workspace-shell .client-role-preview-grid,
#appView.workspace-shell .role-score-panel,
#appView.workspace-shell .role-result-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr) !important;
}

#appView.workspace-shell .conversation-panel {
  height: auto !important;
  min-height: auto !important;
}

#appView.workspace-shell .interview-stage {
  min-height: 560px !important;
}

#appView.workspace-shell .record-history-panel,
#appView.workspace-shell .data-sim-panel {
  height: auto !important;
  min-height: auto !important;
}

#appView.workspace-shell .record-history-panel .records-card {
  display: grid !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#appView.workspace-shell .records-layout {
  display: grid !important;
  min-height: 520px !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr) !important;
  gap: 0 !important;
}

#appView.workspace-shell .record-list,
#appView.workspace-shell .record-detail {
  max-height: 520px !important;
  overflow: auto !important;
}

#appView.workspace-shell .data-sim-workspace:not(.hidden) {
  height: auto !important;
  min-height: auto !important;
}

#appView.workspace-shell .data-sim-form {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

@media (max-width: 1180px) {
  #authView.client-login-mode:not(.hidden) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 54px auto auto !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: auto !important;
  }

  #authView.client-login-mode .client-login-preview {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: auto !important;
    padding: 38px 24px 30px !important;
  }

  #authView.client-login-mode .client-login-logo,
  #authView.client-login-mode .client-login-brand-panel > p,
  #authView.client-login-mode .client-login-feature-grid,
  #authView.client-login-mode .client-login-note,
  #authView.client-login-mode .client-login-bear {
    transform: none !important;
  }

  #authView.client-login-mode .client-login-feature-grid {
    grid-template-columns: 1fr !important;
  }

  #authView.client-login-mode .client-login-note,
  #authView.client-login-mode .client-login-bear {
    display: none !important;
  }

  #authView.client-login-mode .auth-drawer {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-items: start !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 24px !important;
  }

  #authView.client-login-mode .auth-drawer-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 32px 24px !important;
  }

  #appView.workspace-shell {
    overflow: auto !important;
  }

  #appView.workspace-shell .workspace-frame {
    width: 1180px !important;
    min-width: 1180px !important;
  }
}

@media (max-width: 680px) {
  #authView.client-login-mode .client-login-preview {
    padding: 24px 22px 12px !important;
  }

  #authView.client-login-mode .client-login-brand-panel {
    max-width: 100% !important;
  }

  #authView.client-login-mode .client-login-logo {
    justify-content: center !important;
    gap: 16px !important;
  }

  #authView.client-login-mode .client-login-logo .brand-mark {
    width: 96px !important;
    height: 96px !important;
  }

  #authView.client-login-mode .client-login-logo strong {
    font-size: 3.25rem !important;
  }

  #authView.client-login-mode .client-login-brand-panel > p {
    margin-top: 28px !important;
    font-size: 1.45rem !important;
  }

  #authView.client-login-mode .client-login-feature-grid {
    display: none !important;
  }

  #authView.client-login-mode .auth-drawer {
    padding: 16px 18px 28px !important;
  }

  #authView.client-login-mode .auth-drawer-scroll {
    border-radius: 22px !important;
    padding: 30px 20px !important;
  }

  #authView.client-login-mode .auth-tabs button {
    font-size: 1.35rem !important;
  }

  #authView.client-login-mode .captcha-row,
  #authView.client-login-mode .code-row {
    grid-template-columns: 1fr !important;
  }

  #authView.client-login-mode .client-sync-foot > div {
    gap: 10px !important;
  }
}

html.electron-client,
html.electron-client body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  min-height: 0 !important;
  grid-template-rows: 50px minmax(0, 1fr) !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  min-height: 50px !important;
  height: 50px !important;
}

@media (max-height: 900px) and (min-width: 900px) {
  html.electron-client #authView.client-login-mode .client-login-preview {
    padding-top: 34px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo {
    gap: 20px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
    width: 104px !important;
    height: 104px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo strong {
    font-size: clamp(3.45rem, 4.4vw, 4.55rem) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
    margin-top: 24px !important;
    font-size: 1.42rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid {
    gap: 14px !important;
    margin-top: 26px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article {
    min-height: 122px !important;
    padding: 18px 12px 14px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid b {
    margin-top: 10px !important;
    font-size: 1rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid small {
    margin-top: 6px !important;
    font-size: .8rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-note {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .client-login-bear {
    width: 220px !important;
    height: 182px !important;
    right: 18px !important;
    bottom: -36px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
    left: 52px !important;
    top: 18px !important;
    width: 120px !important;
    height: 120px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    padding: 24px 34px 24px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer-scroll {
    max-height: calc(100dvh - 72px) !important;
    overflow: hidden !important;
    padding: 26px 38px 24px !important;
  }

  html.electron-client #authView.client-login-mode .auth-tabs {
    margin-bottom: 18px !important;
  }

  html.electron-client #authView.client-login-mode .auth-tabs button {
    min-height: 40px !important;
    font-size: 1.22rem !important;
  }

  html.electron-client #authView.client-login-mode .auth-form {
    gap: 10px !important;
  }

  html.electron-client #authView.client-login-mode .input-wrap,
  html.electron-client #authView.client-login-mode .captcha-row input,
  html.electron-client #authView.client-login-mode .code-row input {
    min-height: 50px !important;
  }

  html.electron-client #authView.client-login-mode .captcha-image,
  html.electron-client #authView.client-login-mode .code-row .secondary {
    height: 50px !important;
  }

  html.electron-client #authView.client-login-mode .auth-form > .primary {
    min-height: 54px !important;
    margin-top: 4px !important;
    font-size: 1.16rem !important;
  }

  html.electron-client #authView.client-login-mode .message {
    min-height: 14px !important;
    margin-top: 2px !important;
    font-size: .82rem !important;
  }

  html.electron-client #authView.client-login-mode .client-sync-foot {
    display: none !important;
  }
}

/* Desktop client shell: fixed-size app canvas that matches the generated login reference. */
html.electron-client #authView.client-login-mode:not(.hidden) {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr) !important;
  grid-template-rows: 56px minmax(0, 1fr) !important;
  overflow: hidden !important;
  background: #fffaf6 !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  min-height: 56px !important;
  height: 56px !important;
  padding: 0 28px !important;
  background: rgba(255, 255, 255, .9) !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 32px !important;
  height: 32px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar b {
  font-size: 1rem !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar i {
  font-size: .9rem !important;
}

html.electron-client #authView.client-login-mode .client-window-controls {
  gap: 6px !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  padding: 54px 56px 0 !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 206, 139, .38), transparent 32%),
    radial-gradient(circle at 17% 80%, rgba(255, 237, 213, .72), transparent 43%),
    linear-gradient(135deg, #fff 0%, #fff6ee 52%, #ffe2c8 100%) !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  max-width: 720px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  justify-content: flex-start !important;
  gap: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 122px !important;
  height: 122px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(4.8rem, 6.4vw, 6.1rem) !important;
  line-height: .9 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 36px !important;
  font-size: 1.86rem !important;
  line-height: 1.25 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 42px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 156px !important;
  padding: 26px 18px 18px !important;
  border-radius: 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 72px !important;
  height: 72px !important;
  border-radius: 22px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 14px !important;
  font-size: 1.22rem !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 8px !important;
  font-size: .96rem !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  left: 56px !important;
  bottom: 86px !important;
  font-size: 2.25rem !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  width: 318px !important;
  height: 268px !important;
  right: 16px !important;
  bottom: -24px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  left: 74px !important;
  top: 26px !important;
  width: 166px !important;
  height: 166px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear::after {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 54px 46px 44px !important;
  padding: 0 !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08) !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 610px) !important;
  height: auto !important;
  max-height: calc(100dvh - 128px) !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 42px 50px 38px !important;
  scrollbar-width: none;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll::-webkit-scrollbar {
  display: none;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  margin-bottom: 34px !important;
  gap: 22px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 52px !important;
  font-size: 1.55rem !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 17px !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  display: flex !important;
  align-items: center !important;
  min-height: 62px !important;
  height: 62px !important;
  border: 1px solid #e4e7ec !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

html.electron-client #authView.client-login-mode .input-wrap {
  padding: 0 18px !important;
  gap: 16px !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  position: static !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  transform: none !important;
  color: #7d8797 !important;
}

html.electron-client #authView.client-login-mode .input-wrap input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}

html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 22px !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 16px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 62px !important;
  border-radius: 16px !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  margin-top: 0 !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 68px !important;
  margin-top: 8px !important;
  font-size: 1.42rem !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 14px !important;
  margin-top: 6px !important;
  font-size: .86rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot {
  display: grid !important;
  gap: 18px !important;
  margin-top: 24px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot p {
  gap: 14px !important;
  font-size: .96rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div {
  gap: 14px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div > span {
  gap: 8px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot iconify-icon {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot small {
  font-size: .88rem !important;
}

/* Electron keeps the client login shell, but the signed-in workspace should match the web workbench. */
html.electron-client #appView.workspace-shell {
  --client-preview-scale: 1 !important;
  --client-preview-scaled-width: 100vw !important;
  --client-preview-scaled-height: 100dvh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--bg-warm) !important;
  padding: 0 !important;
  font-size: 16px !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  grid-template-columns: 256px minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  box-shadow: none !important;
  transform: none !important;
}

html.electron-client #appView.workspace-shell .client-window-bar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid rgba(254, 215, 170, .8) !important;
  background: rgba(255, 255, 255, .88) !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(254, 215, 170, .8) !important;
  background: transparent !important;
  padding: 24px 20px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand {
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 8px 28px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 38px !important;
  height: 38px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand b {
  font-size: .95rem !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand small {
  display: block !important;
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .workspace-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 40px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  color: #667085 !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  text-align: left !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button.active {
  background: var(--orange) !important;
  color: #fff !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button.active::before {
  display: none !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button iconify-icon {
  width: 18px !important;
  height: 18px !important;
}

html.electron-client #appView.workspace-shell .sidebar-readiness {
  display: block !important;
  margin-top: auto !important;
  border-radius: 16px !important;
  padding: 14px !important;
  font-size: .78rem !important;
}

html.electron-client #appView.workspace-shell .workspace-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar {
  display: flex !important;
  min-height: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  border-bottom: 1px solid rgba(254, 215, 170, .8) !important;
  background: rgba(255, 255, 255, .8) !important;
  padding: 14px 28px !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar h1 {
  margin: 4px 0 0 !important;
  font-size: 1.08rem !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar p,
html.electron-client #appView.workspace-shell #workspacePanelSubtitle,
html.electron-client #appView.workspace-shell #accountOrdersBtn,
html.electron-client #appView.workspace-shell #workspaceBuyBtn,
html.electron-client #appView.workspace-shell #workspaceHomeBtn {
  display: flex !important;
}

html.electron-client #appView.workspace-shell #workspacePanelSubtitle {
  display: block !important;
  margin-top: 3px !important;
  color: var(--muted) !important;
  font-size: .74rem !important;
}

html.electron-client #appView.workspace-shell .workspace-content {
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 22px 28px !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner {
  width: min(100%, 1320px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 auto !important;
}

html.electron-client #appView.workspace-shell [data-workspace-panel-section]:not(.workspace-panel-hidden) {
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .overview-panel {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 20px !important;
  align-items: stretch !important;
}

html.electron-client #appView.workspace-shell .overview-main-grid {
  display: grid !important;
  grid-template-columns: 1.2fr .8fr !important;
  gap: 20px !important;
}

html.electron-client #appView.workspace-shell .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html.electron-client #appView.workspace-shell .metric-card {
  min-height: auto !important;
  border-radius: 16px !important;
  padding: 16px !important;
}

html.electron-client #appView.workspace-shell .metric-card strong {
  margin-top: 8px !important;
  font-size: 1.35rem !important;
}

html.electron-client #appView.workspace-shell .workspace-card,
html.electron-client #appView.workspace-shell .records-card,
html.electron-client #appView.workspace-shell .resume-source-card,
html.electron-client #appView.workspace-shell .role-input-card,
html.electron-client #appView.workspace-shell .role-result-card {
  border-radius: 16px !important;
  padding: 20px !important;
}

html.electron-client #appView.workspace-shell .overview-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .overview-action-grid button {
  min-height: 48px !important;
  justify-content: center !important;
  border-radius: 12px !important;
  padding: 12px !important;
  font-size: .78rem !important;
}

html.electron-client #appView.workspace-shell .resume-dock,
html.electron-client #appView.workspace-shell .role-analysis-panel {
  display: grid !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: .82fr 1.18fr !important;
  gap: 20px !important;
  align-items: stretch !important;
}

html.electron-client #appView.workspace-shell .resume-result-stack {
  display: contents !important;
  min-width: 0 !important;
}

html.electron-client #appView.workspace-shell .resume-insight-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

html.electron-client #appView.workspace-shell .resume-insight-strip span {
  min-height: auto !important;
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .resume-advantages,
html.electron-client #appView.workspace-shell .resume-questions,
html.electron-client #appView.workspace-shell .resume-answer-preview {
  max-height: none !important;
}

html.electron-client #appView.workspace-shell .role-result-card {
  display: grid !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .role-score-panel {
  grid-template-columns: 180px minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .client-role-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, .95fr) !important;
}

html.electron-client #appView.workspace-shell .role-result-grid {
  display: flex !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
  grid-template-columns: none !important;
  overflow-y: auto !important;
}

html.electron-client #appView.workspace-shell .workspace-content.interview-panel-active {
  overflow-y: auto !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active {
  height: 100% !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .conversation-panel {
  height: calc(100vh - 132px) !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .interview-stage {
  height: calc(100vh - 156px) !important;
  min-height: 520px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .conversation-panel {
  height: 100% !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .interview-stage {
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  border-radius: 28px !important;
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .record-history-panel,
html.electron-client #appView.workspace-shell .data-sim-panel {
  height: auto !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .record-history-panel .records-card {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html.electron-client #appView.workspace-shell .records-layout {
  display: grid !important;
  min-height: 520px !important;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr) !important;
  gap: 0 !important;
}

html.electron-client #appView.workspace-shell .record-list,
html.electron-client #appView.workspace-shell .record-detail {
  max-height: none !important;
  overflow: visible !important;
}

html.electron-client #appView.workspace-shell .record-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto !important;
  padding: 20px !important;
}

html.electron-client #appView.workspace-shell .records-filter-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .records-score-row,
html.electron-client #appView.workspace-shell .record-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .data-sim-workspace:not(.hidden) {
  height: auto !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .data-sim-form {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html.electron-client #appView.workspace-shell input,
html.electron-client #appView.workspace-shell select {
  height: 44px !important;
  border-radius: 12px !important;
}

html.electron-client #appView.workspace-shell textarea {
  border-radius: 12px !important;
}

@media (max-width: 1180px) {
  html.electron-client #appView.workspace-shell .workspace-frame {
    grid-template-columns: 108px minmax(0, 1fr) !important;
  }

  html.electron-client #appView.workspace-shell .workspace-sidebar-brand span:last-child,
  html.electron-client #appView.workspace-shell .sidebar-readiness {
    display: none !important;
  }

  html.electron-client #appView.workspace-shell .workspace-nav button {
    justify-content: center !important;
    padding: 0 !important;
  }
}

/* Restore the signed-in workbench to the web layout. The generated client mockup
   styles above are kept for the login shell only. */
#appView.workspace-shell,
html.electron-client #appView.workspace-shell {
  --client-preview-scale: 1 !important;
  --client-preview-scaled-width: 100vw !important;
  --client-preview-scaled-height: 100vh !important;
  position: static !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--bg-warm) !important;
  padding: 12px !important;
  font-size: 16px !important;
}

#appView.workspace-shell .workspace-frame,
html.electron-client #appView.workspace-shell .workspace-frame {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  width: min(100%, 1640px) !important;
  min-width: 0 !important;
  max-width: 1640px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  overflow: hidden !important;
  border: 1px solid rgba(254, 215, 170, .9) !important;
  border-radius: 26px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
  transform: none !important;
  transform-origin: initial !important;
}

#appView.workspace-shell .client-window-bar {
  display: none !important;
}

#appView.workspace-shell .workspace-sidebar,
html.electron-client #appView.workspace-shell .workspace-sidebar {
  display: flex !important;
  flex: 0 0 256px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(254, 215, 170, .8) !important;
  background: transparent !important;
  padding: 24px 20px !important;
}

#appView.workspace-shell .workspace-sidebar-brand,
html.electron-client #appView.workspace-shell .workspace-sidebar-brand {
  justify-content: flex-start !important;
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 8px 28px !important;
}

#appView.workspace-shell .workspace-sidebar-brand .app-icon,
html.electron-client #appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 38px !important;
  height: 38px !important;
}

#appView.workspace-shell .workspace-sidebar-brand b,
html.electron-client #appView.workspace-shell .workspace-sidebar-brand b {
  font-size: .95rem !important;
}

#appView.workspace-shell .workspace-sidebar-brand small,
html.electron-client #appView.workspace-shell .workspace-sidebar-brand small {
  display: block !important;
  font-size: .68rem !important;
}

#appView.workspace-shell .workspace-nav,
html.electron-client #appView.workspace-shell .workspace-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

#appView.workspace-shell .workspace-nav button,
html.electron-client #appView.workspace-shell .workspace-nav button {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 40px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  color: #667085 !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  text-align: left !important;
}

#appView.workspace-shell .workspace-nav button.active,
html.electron-client #appView.workspace-shell .workspace-nav button.active {
  background: var(--orange) !important;
  color: #fff !important;
}

#appView.workspace-shell .workspace-nav button.active::before,
html.electron-client #appView.workspace-shell .workspace-nav button.active::before {
  display: none !important;
}

#appView.workspace-shell .workspace-nav button iconify-icon,
html.electron-client #appView.workspace-shell .workspace-nav button iconify-icon {
  width: 18px !important;
  height: 18px !important;
}

#appView.workspace-shell .sidebar-readiness,
html.electron-client #appView.workspace-shell .sidebar-readiness {
  display: block !important;
  margin-top: auto !important;
  border-radius: 16px !important;
  padding: 14px !important;
}

#appView.workspace-shell .workspace-main,
html.electron-client #appView.workspace-shell .workspace-main {
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: transparent !important;
}

#appView.workspace-shell .workspace-topbar,
html.electron-client #appView.workspace-shell .workspace-topbar {
  display: flex !important;
  min-height: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  border-bottom: 1px solid rgba(254, 215, 170, .8) !important;
  background: rgba(255, 255, 255, .8) !important;
  padding: 14px 28px !important;
}

#appView.workspace-shell .workspace-topbar h1,
html.electron-client #appView.workspace-shell .workspace-topbar h1 {
  margin: 4px 0 0 !important;
  font-size: 1.08rem !important;
}

#appView.workspace-shell .workspace-topbar p,
#appView.workspace-shell #workspacePanelSubtitle,
#appView.workspace-shell #accountOrdersBtn,
#appView.workspace-shell #workspaceBuyBtn,
#appView.workspace-shell #workspaceHomeBtn,
html.electron-client #appView.workspace-shell .workspace-topbar p,
html.electron-client #appView.workspace-shell #workspacePanelSubtitle,
html.electron-client #appView.workspace-shell #accountOrdersBtn,
html.electron-client #appView.workspace-shell #workspaceBuyBtn,
html.electron-client #appView.workspace-shell #workspaceHomeBtn {
  display: flex !important;
}

#appView.workspace-shell #workspacePanelSubtitle,
html.electron-client #appView.workspace-shell #workspacePanelSubtitle {
  display: block !important;
  margin-top: 3px !important;
  color: var(--muted) !important;
  font-size: .74rem !important;
}

#appView.workspace-shell .workspace-content,
html.electron-client #appView.workspace-shell .workspace-content {
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 22px 28px !important;
}

#appView.workspace-shell .workspace-content-inner,
html.electron-client #appView.workspace-shell .workspace-content-inner {
  width: min(100%, 1320px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 auto !important;
}

#appView.workspace-shell [data-workspace-panel-section]:not(.workspace-panel-hidden),
html.electron-client #appView.workspace-shell [data-workspace-panel-section]:not(.workspace-panel-hidden) {
  min-height: 0 !important;
}

#appView.workspace-shell .client-section-intro,
html.electron-client #appView.workspace-shell .client-section-intro {
  display: grid !important;
  grid-column: 1 / -1 !important;
  gap: 4px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#appView.workspace-shell .client-section-intro h2,
html.electron-client #appView.workspace-shell .client-section-intro h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
}

#appView.workspace-shell .client-section-intro p,
html.electron-client #appView.workspace-shell .client-section-intro p {
  margin: 4px 0 0 !important;
  color: var(--muted) !important;
  font-size: .82rem !important;
  line-height: 1.6 !important;
}

#appView.workspace-shell .overview-panel,
html.electron-client #appView.workspace-shell .overview-panel {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 20px !important;
  align-items: stretch !important;
}

#appView.workspace-shell .overview-main-grid,
html.electron-client #appView.workspace-shell .overview-main-grid {
  display: grid !important;
  grid-template-columns: 1.2fr .8fr !important;
  gap: 20px !important;
}

#appView.workspace-shell .metric-grid,
html.electron-client #appView.workspace-shell .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#appView.workspace-shell .workspace-card,
#appView.workspace-shell .records-card,
#appView.workspace-shell .resume-source-card,
#appView.workspace-shell .role-input-card,
#appView.workspace-shell .role-result-card,
#appView.workspace-shell .metric-card,
html.electron-client #appView.workspace-shell .workspace-card,
html.electron-client #appView.workspace-shell .records-card,
html.electron-client #appView.workspace-shell .resume-source-card,
html.electron-client #appView.workspace-shell .role-input-card,
html.electron-client #appView.workspace-shell .role-result-card,
html.electron-client #appView.workspace-shell .metric-card {
  border-radius: 16px !important;
  padding: 20px !important;
}

#appView.workspace-shell .metric-card,
html.electron-client #appView.workspace-shell .metric-card {
  min-height: auto !important;
}

#appView.workspace-shell .metric-card strong,
html.electron-client #appView.workspace-shell .metric-card strong {
  margin-top: 8px !important;
  font-size: 1.35rem !important;
}

#appView.workspace-shell .overview-action-grid,
html.electron-client #appView.workspace-shell .overview-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.workspace-shell .overview-action-grid button,
html.electron-client #appView.workspace-shell .overview-action-grid button {
  min-height: 48px !important;
  justify-content: center !important;
  border-radius: 12px !important;
  padding: 12px !important;
  font-size: .78rem !important;
}

#appView.workspace-shell .resume-dock,
#appView.workspace-shell .role-analysis-panel,
html.electron-client #appView.workspace-shell .resume-dock,
html.electron-client #appView.workspace-shell .role-analysis-panel {
  display: grid !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: .82fr 1.18fr !important;
  gap: 20px !important;
  align-items: stretch !important;
}

#appView.workspace-shell .resume-result-stack,
html.electron-client #appView.workspace-shell .resume-result-stack {
  display: contents !important;
  min-width: 0 !important;
}

#appView.workspace-shell .resume-insight-strip,
html.electron-client #appView.workspace-shell .resume-insight-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

#appView.workspace-shell .resume-advantages,
#appView.workspace-shell .resume-questions,
#appView.workspace-shell .resume-answer-preview,
html.electron-client #appView.workspace-shell .resume-advantages,
html.electron-client #appView.workspace-shell .resume-questions,
html.electron-client #appView.workspace-shell .resume-answer-preview {
  max-height: none !important;
}

#appView.workspace-shell .role-result-card,
html.electron-client #appView.workspace-shell .role-result-card {
  display: grid !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

#appView.workspace-shell .role-score-panel,
html.electron-client #appView.workspace-shell .role-score-panel {
  grid-template-columns: 180px minmax(0, 1fr) !important;
}

#appView.workspace-shell .client-role-preview-grid,
html.electron-client #appView.workspace-shell .client-role-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, .95fr) !important;
}

#appView.workspace-shell .role-result-grid,
html.electron-client #appView.workspace-shell .role-result-grid {
  display: flex !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
  grid-template-columns: none !important;
  overflow-y: auto !important;
}

#appView.workspace-shell .workspace-content-inner.interview-panel-active,
html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active {
  height: 100% !important;
  min-height: 0 !important;
}

#appView.workspace-shell .workspace-content-inner.interview-panel-active .conversation-panel,
html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .conversation-panel {
  height: calc(100vh - 132px) !important;
  min-height: 0 !important;
}

#appView.workspace-shell .workspace-content-inner.interview-panel-active .interview-stage,
html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .interview-stage {
  height: calc(100vh - 156px) !important;
  min-height: 520px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

#appView.workspace-shell .conversation-panel,
html.electron-client #appView.workspace-shell .conversation-panel {
  height: 100% !important;
  min-height: 0 !important;
}

#appView.workspace-shell .interview-stage,
html.electron-client #appView.workspace-shell .interview-stage {
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  border-radius: 28px !important;
  padding: 12px !important;
}

#appView.workspace-shell .record-history-panel,
#appView.workspace-shell .data-sim-panel,
html.electron-client #appView.workspace-shell .record-history-panel,
html.electron-client #appView.workspace-shell .data-sim-panel {
  height: auto !important;
  min-height: 0 !important;
}

#appView.workspace-shell .record-history-panel .records-card,
html.electron-client #appView.workspace-shell .record-history-panel .records-card {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#appView.workspace-shell .records-layout,
html.electron-client #appView.workspace-shell .records-layout {
  display: grid !important;
  min-height: 520px !important;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr) !important;
  gap: 0 !important;
}

#appView.workspace-shell .record-list,
#appView.workspace-shell .record-detail,
html.electron-client #appView.workspace-shell .record-list,
html.electron-client #appView.workspace-shell .record-detail {
  max-height: none !important;
  overflow: visible !important;
}

#appView.workspace-shell .record-detail,
html.electron-client #appView.workspace-shell .record-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto !important;
  padding: 20px !important;
}

#appView.workspace-shell .records-filter-toolbar,
html.electron-client #appView.workspace-shell .records-filter-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.workspace-shell .records-score-row,
#appView.workspace-shell .record-score-grid,
html.electron-client #appView.workspace-shell .records-score-row,
html.electron-client #appView.workspace-shell .record-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#appView.workspace-shell .data-sim-workspace:not(.hidden),
html.electron-client #appView.workspace-shell .data-sim-workspace:not(.hidden) {
  height: auto !important;
  min-height: 0 !important;
}

#appView.workspace-shell .data-sim-form,
html.electron-client #appView.workspace-shell .data-sim-form {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#appView.workspace-shell input,
#appView.workspace-shell select,
html.electron-client #appView.workspace-shell input,
html.electron-client #appView.workspace-shell select {
  height: 44px !important;
  border-radius: 12px !important;
}

#appView.workspace-shell textarea,
html.electron-client #appView.workspace-shell textarea {
  border-radius: 12px !important;
}

html.electron-client #appView.workspace-shell {
  padding: 0 !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  grid-template-columns: 256px minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.electron-client #appView.workspace-shell .client-window-bar {
  display: flex !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid rgba(254, 215, 170, .8) !important;
  background: rgba(255, 255, 255, .9) !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

html.electron-client #appView.workspace-shell .workspace-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

@media (max-width: 980px) {
  #appView.workspace-shell .workspace-frame {
    border-radius: 0 !important;
  }

  #appView.workspace-shell .workspace-sidebar,
  html.electron-client #appView.workspace-shell .workspace-sidebar {
    flex-basis: 108px !important;
    padding: 20px 12px !important;
  }

  html.electron-client #appView.workspace-shell .workspace-frame {
    grid-template-columns: 108px minmax(0, 1fr) !important;
  }

  #appView.workspace-shell .workspace-sidebar-brand span:last-child,
  #appView.workspace-shell .sidebar-readiness,
  html.electron-client #appView.workspace-shell .workspace-sidebar-brand span:last-child,
  html.electron-client #appView.workspace-shell .sidebar-readiness {
    display: none !important;
  }

  #appView.workspace-shell .workspace-nav button,
  html.electron-client #appView.workspace-shell .workspace-nav button {
    justify-content: center !important;
    padding: 0 !important;
  }
}

#appView.workspace-shell [data-workspace-panel-section].workspace-panel-hidden,
html.electron-client #appView.workspace-shell [data-workspace-panel-section].workspace-panel-hidden {
  display: none !important;
}

#appView.workspace-shell #overviewPanel,
html.electron-client #appView.workspace-shell #overviewPanel {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
}

#appView.workspace-shell #overviewPanel > *,
#appView.workspace-shell #overviewPanel .overview-main-grid > *,
html.electron-client #appView.workspace-shell #overviewPanel > *,
html.electron-client #appView.workspace-shell #overviewPanel .overview-main-grid > * {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

#appView.workspace-shell #overviewPanel > .client-section-intro,
#appView.workspace-shell #overviewPanel > .overview-license-bar,
#appView.workspace-shell #overviewPanel > .metric-grid,
#appView.workspace-shell #overviewPanel > .overview-main-grid,
html.electron-client #appView.workspace-shell #overviewPanel > .client-section-intro,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar,
html.electron-client #appView.workspace-shell #overviewPanel > .metric-grid,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-main-grid {
  grid-column: 1 / -1 !important;
}

#appView.workspace-shell #overviewPanel > .overview-license-bar,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
  display: grid !important;
  min-height: auto !important;
  align-items: center !important;
  grid-template-columns: minmax(170px, .9fr) minmax(330px, 1.35fr) minmax(168px, auto) minmax(132px, auto) !important;
  border: 1px solid rgba(254, 215, 170, .8) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .75) !important;
  padding: 16px !important;
}

#appView.workspace-shell #overviewPanel > .metric-grid,
html.electron-client #appView.workspace-shell #overviewPanel > .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#appView.workspace-shell #overviewPanel .overview-main-grid,
html.electron-client #appView.workspace-shell #overviewPanel .overview-main-grid {
  display: grid !important;
  grid-template-columns: 1.2fr .8fr !important;
  gap: 20px !important;
}

#appView.workspace-shell #overviewPanel .overview-main-grid > .workspace-card:first-child,
html.electron-client #appView.workspace-shell #overviewPanel .overview-main-grid > .workspace-card:first-child {
  display: block !important;
}

/* Desktop client polish: fixed window size, compact login UI, no resize/maximize drift. */
html.electron-client,
html.electron-client body {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  font-size: 15px !important;
}

html.electron-client .client-window-controls {
  gap: 8px !important;
}

html.electron-client .client-window-controls button {
  width: 44px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

html.electron-client .client-window-controls button::before {
  font-size: 1.28rem !important;
}

html.electron-client .client-window-controls button[data-window-action="toggle-maximize"] {
  display: none !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  grid-template-columns: minmax(0, 1fr) minmax(384px, 420px) !important;
  grid-template-rows: 48px minmax(0, 1fr) !important;
  background: #fffaf6 !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 20px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 28px !important;
  height: 28px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar b {
  font-size: .92rem !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar i {
  font-size: .78rem !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 34px 38px 0 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  max-width: 540px !important;
  min-height: 0 !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  gap: 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 78px !important;
  height: 78px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(3rem, 5.2vw, 4rem) !important;
  line-height: .92 !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong::after {
  bottom: -8px !important;
  height: 7px !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 24px !important;
  font-size: 1.26rem !important;
  line-height: 1.45 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  gap: 12px !important;
  margin-top: 30px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 118px !important;
  border-radius: 14px !important;
  padding: 18px 12px 14px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 10px !important;
  font-size: .95rem !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 5px !important;
  font-size: .76rem !important;
  line-height: 1.45 !important;
}

html.electron-client #authView.client-login-mode .client-login-note,
html.electron-client #authView.client-login-mode .client-login-bear {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 28px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 390px) !important;
  max-height: calc(100vh - 84px) !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  padding: 28px 30px !important;
  box-shadow: 0 18px 48px rgba(124, 45, 18, .10) !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  gap: 14px !important;
  margin-bottom: 22px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 38px !important;
  border-bottom-width: 3px !important;
  font-size: 1.12rem !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 11px !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  min-height: 48px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
}

html.electron-client #authView.client-login-mode .input-wrap {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  width: 20px !important;
  height: 20px !important;
}

html.electron-client #authView.client-login-mode .input-wrap input,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  font-size: .9rem !important;
  font-weight: 750 !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 48px !important;
  border-radius: 14px !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-height: 34px !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  margin-top: 0 !important;
  font-size: .82rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options label,
html.electron-client #authView.client-login-mode .client-login-options button {
  font-size: .82rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options input {
  width: 15px !important;
  height: 15px !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 52px !important;
  margin-top: 5px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 16px !important;
  margin-top: 2px !important;
  font-size: .78rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot,
html.electron-client #authView.client-login-mode .auth-drawer-foot {
  display: none !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  min-width: 0 !important;
}

/* Compact density for every signed-in desktop-client workbench module. */
html.electron-client #appView.workspace-shell {
  font-size: 14px !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  grid-template-columns: 218px minmax(0, 1fr) !important;
  grid-template-rows: 42px minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .client-window-bar {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
}

html.electron-client #appView.workspace-shell .client-window-brand .app-icon {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #appView.workspace-shell .client-window-brand b {
  font-size: .86rem !important;
}

html.electron-client #appView.workspace-shell .client-window-brand i {
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar {
  padding: 16px 14px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand {
  gap: 8px !important;
  padding: 0 4px 16px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand .app-icon {
  width: 32px !important;
  height: 32px !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand b {
  font-size: .84rem !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar-brand small {
  margin-top: 1px !important;
  font-size: .6rem !important;
}

html.electron-client #appView.workspace-shell .workspace-nav {
  gap: 4px !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button {
  min-height: 34px !important;
  gap: 8px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-size: .76rem !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button iconify-icon {
  width: 15px !important;
  height: 15px !important;
}

html.electron-client #appView.workspace-shell .sidebar-readiness {
  border-radius: 12px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell .sidebar-readiness p {
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .sidebar-readiness div {
  height: 5px !important;
  margin-top: 6px !important;
}

html.electron-client #appView.workspace-shell .sidebar-readiness small {
  margin-top: 6px !important;
  font-size: .58rem !important;
  line-height: 1.35 !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar {
  min-height: 64px !important;
  gap: 10px !important;
  padding: 9px 16px !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar p {
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar h1 {
  margin-top: 2px !important;
  font-size: .96rem !important;
}

html.electron-client #appView.workspace-shell #workspacePanelSubtitle {
  max-width: 430px !important;
  margin-top: 1px !important;
  font-size: .66rem !important;
  line-height: 1.35 !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar-actions {
  gap: 6px !important;
}

html.electron-client #appView.workspace-shell .account-panel-btn {
  border-radius: 10px !important;
  padding: 3px 5px !important;
}

html.electron-client #appView.workspace-shell .account-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell .account-panel b {
  max-width: 76px !important;
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .account-panel small {
  font-size: .58rem !important;
}

html.electron-client #appView.workspace-shell .notification-bell-btn,
html.electron-client #appView.workspace-shell .workspace-logout {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

html.electron-client #appView.workspace-shell .notification-badge {
  min-width: 15px !important;
  height: 15px !important;
  font-size: .56rem !important;
  line-height: 11px !important;
}

html.electron-client #appView.workspace-shell .credit-panel {
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  height: 30px !important;
  flex-basis: 172px !important;
  gap: 5px !important;
  padding: 0 6px 0 10px !important;
}

html.electron-client #appView.workspace-shell .credit-panel span {
  font-size: .58rem !important;
}

html.electron-client #appView.workspace-shell .credit-panel b {
  font-size: .82rem !important;
}

html.electron-client #appView.workspace-shell .credit-refresh-btn,
html.electron-client #appView.workspace-shell .credit-claim-btn {
  height: 22px !important;
}

html.electron-client #appView.workspace-shell .credit-refresh-btn {
  width: 22px !important;
}

html.electron-client #appView.workspace-shell .credit-claim-btn {
  padding: 0 6px !important;
  font-size: .56rem !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar .secondary,
html.electron-client #appView.workspace-shell .workspace-buy-btn {
  min-height: 30px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .workspace-content {
  padding: 14px 16px !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner {
  width: min(100%, 1180px) !important;
}

html.electron-client #appView.workspace-shell .overview-panel,
html.electron-client #appView.workspace-shell .resume-dock,
html.electron-client #appView.workspace-shell .role-analysis-panel,
html.electron-client #appView.workspace-shell .record-history-panel,
html.electron-client #appView.workspace-shell .data-sim-panel {
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .client-section-intro {
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .client-section-intro > span {
  min-height: 28px !important;
  border-radius: 8px !important;
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .client-section-intro h2 {
  font-size: 1rem !important;
}

html.electron-client #appView.workspace-shell .client-section-intro p {
  margin-top: 2px !important;
  font-size: .68rem !important;
  line-height: 1.42 !important;
}

html.electron-client #appView.workspace-shell .workspace-card,
html.electron-client #appView.workspace-shell .records-card,
html.electron-client #appView.workspace-shell .resume-source-card,
html.electron-client #appView.workspace-shell .role-input-card,
html.electron-client #appView.workspace-shell .role-result-card,
html.electron-client #appView.workspace-shell .metric-card {
  border-radius: 12px !important;
  padding: 14px !important;
}

html.electron-client #appView.workspace-shell .workspace-card-head {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

html.electron-client #appView.workspace-shell .workspace-card-head h2,
html.electron-client #appView.workspace-shell .resume-source-card > h2,
html.electron-client #appView.workspace-shell .role-input-card > h2,
html.electron-client #appView.workspace-shell .records-card-head h2 {
  font-size: .98rem !important;
}

html.electron-client #appView.workspace-shell .eyebrow {
  font-size: .56rem !important;
}

html.electron-client #appView.workspace-shell p,
html.electron-client #appView.workspace-shell small,
html.electron-client #appView.workspace-shell span,
html.electron-client #appView.workspace-shell label,
html.electron-client #appView.workspace-shell li {
  line-height: 1.42 !important;
}

html.electron-client #appView.workspace-shell input,
html.electron-client #appView.workspace-shell select {
  height: 34px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell textarea {
  border-radius: 10px !important;
  padding: 10px !important;
  font-size: .72rem !important;
  line-height: 1.45 !important;
}

html.electron-client #appView.workspace-shell button.primary,
html.electron-client #appView.workspace-shell button.secondary,
html.electron-client #appView.workspace-shell .primary,
html.electron-client #appView.workspace-shell .secondary {
  min-height: 32px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-size: .7rem !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
  gap: 8px !important;
  grid-template-columns: minmax(120px, .8fr) minmax(260px, 1.4fr) minmax(128px, auto) minmax(102px, auto) !important;
  border-radius: 12px !important;
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .license-ok-icon {
  width: 32px !important;
  height: 32px !important;
}

html.electron-client #appView.workspace-shell .license-current {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .license-current p {
  font-size: .74rem !important;
}

html.electron-client #appView.workspace-shell .license-current small {
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card {
  grid-template-columns: minmax(92px, .54fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  border-radius: 10px !important;
  padding: 8px !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card h2 {
  font-size: .78rem !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card small {
  font-size: .58rem !important;
}

html.electron-client #appView.workspace-shell .activation-panel {
  gap: 6px !important;
  border-radius: 10px !important;
  padding: 6px 8px !important;
}

html.electron-client #appView.workspace-shell .activation-panel input {
  height: 28px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .activation-panel .primary {
  min-height: 28px !important;
  padding: 0 9px !important;
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .referral-reset-btn,
html.electron-client #appView.workspace-shell .license-badge.referral-badge {
  min-height: 36px !important;
  border-radius: 10px !important;
  padding: 7px 10px !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .metric-grid {
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .metric-card::before {
  display: none !important;
}

html.electron-client #appView.workspace-shell .metric-card {
  min-height: 86px !important;
}

html.electron-client #appView.workspace-shell .metric-card p,
html.electron-client #appView.workspace-shell .metric-card span {
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .metric-card strong {
  margin-top: 5px !important;
  font-size: 1.18rem !important;
}

html.electron-client #appView.workspace-shell #overviewPanel .overview-main-grid {
  grid-template-columns: 1.12fr .88fr !important;
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .next-step-list {
  gap: 8px !important;
  margin-top: 14px !important;
}

html.electron-client #appView.workspace-shell .next-step-list button {
  min-height: 44px !important;
  gap: 8px !important;
  border-radius: 10px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell .next-step-list button > span {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .week-bars {
  height: 88px !important;
  margin-top: 18px !important;
}

html.electron-client #appView.workspace-shell .client-chart-tabs button {
  min-height: 28px !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .overview-action-grid {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .overview-action-grid button {
  min-height: 42px !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .client-order-table > div {
  min-height: 36px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .resume-dock,
html.electron-client #appView.workspace-shell .role-analysis-panel {
  grid-template-columns: minmax(300px, .44fr) minmax(0, .56fr) !important;
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .file-picker {
  min-height: 126px !important;
  margin-top: 14px !important;
  border-radius: 12px !important;
  padding: 18px 14px !important;
}

html.electron-client #appView.workspace-shell .upload-cloud {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
}

html.electron-client #appView.workspace-shell .file-picker b {
  margin-top: 9px !important;
  font-size: .74rem !important;
}

html.electron-client #appView.workspace-shell .file-picker small {
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .resume-file-summary {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  margin-top: 12px !important;
  border-radius: 12px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell .resume-buttons,
html.electron-client #appView.workspace-shell .role-actions {
  gap: 8px !important;
  margin-top: 10px !important;
}

html.electron-client #appView.workspace-shell .analysis-progress {
  min-height: 28px !important;
  margin-top: 8px !important;
  padding: 6px 8px 6px 10px !important;
}

html.electron-client #appView.workspace-shell .resume-safe-note,
html.electron-client #appView.workspace-shell .role-practice-note {
  margin-top: 10px !important;
  border-radius: 12px !important;
  padding: 10px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .resume-insight-strip {
  gap: 8px !important;
  margin-top: 10px !important;
}

html.electron-client #appView.workspace-shell .resume-insight-strip span {
  padding: 9px !important;
}

html.electron-client #appView.workspace-shell .resume-advantages,
html.electron-client #appView.workspace-shell .resume-questions,
html.electron-client #appView.workspace-shell .resume-answer-preview {
  border-radius: 12px !important;
  padding: 10px !important;
  font-size: .68rem !important;
}

html.electron-client #appView.workspace-shell .role-input-card {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .role-input-card textarea {
  height: 116px !important;
  min-height: 116px !important;
  max-height: 116px !important;
}

html.electron-client #appView.workspace-shell .role-file-picker {
  border-radius: 10px !important;
  padding: 9px 10px !important;
}

html.electron-client #appView.workspace-shell .client-role-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(248px, .92fr) !important;
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .role-score-panel {
  grid-template-columns: 136px minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .role-result-grid {
  height: 350px !important;
  min-height: 350px !important;
  max-height: 350px !important;
}

html.electron-client #appView.workspace-shell .client-requirement-list,
html.electron-client #appView.workspace-shell .client-radar-card,
html.electron-client #appView.workspace-shell .role-info-block {
  border-radius: 10px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .conversation-panel {
  height: calc(100vh - 116px) !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner.interview-panel-active .interview-stage {
  height: calc(100vh - 136px) !important;
  min-height: 460px !important;
}

html.electron-client #appView.workspace-shell .interview-stage {
  gap: 10px !important;
  border-radius: 20px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell .interview-stage .pane {
  border-radius: 14px !important;
}

html.electron-client #appView.workspace-shell .pane-head {
  padding: 10px 12px !important;
}

html.electron-client #appView.workspace-shell .pane-body {
  padding: 10px 12px !important;
}

html.electron-client #appView.workspace-shell .mic-mode-grid,
html.electron-client #appView.workspace-shell .answer-mode-grid {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .records-card-head,
html.electron-client #appView.workspace-shell .records-filter-toolbar,
html.electron-client #appView.workspace-shell .records-score-row {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .records-layout {
  grid-template-columns: minmax(300px, .95fr) minmax(300px, 1.05fr) !important;
  min-height: 460px !important;
}

html.electron-client #appView.workspace-shell .record-row,
html.electron-client #appView.workspace-shell .record-detail {
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .record-score-grid {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .record-score-grid article,
html.electron-client #appView.workspace-shell .records-score-row article {
  border-radius: 10px !important;
  padding: 9px 10px !important;
}

html.electron-client #appView.workspace-shell .data-sim-tabs {
  gap: 6px !important;
  margin-bottom: 10px !important;
}

html.electron-client #appView.workspace-shell .data-sim-tabs button {
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell .data-sim-form {
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .data-sim-section,
html.electron-client #appView.workspace-shell .data-sim-fieldset,
html.electron-client #appView.workspace-shell .data-sim-preview-card {
  border-radius: 12px !important;
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .data-sim-field,
html.electron-client #appView.workspace-shell .data-sim-form label {
  gap: 5px !important;
  font-size: .66rem !important;
}

/* Final density pass after screenshot review. */
html.electron-client #authView.client-login-mode:not(.hidden) {
  grid-template-columns: minmax(0, 1fr) 370px !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  padding: 28px 32px 0 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  max-width: 500px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  gap: 14px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 58px !important;
  height: 58px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(2.45rem, 4.2vw, 3.15rem) !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 18px !important;
  font-size: 1.02rem !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  gap: 10px !important;
  margin-top: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 92px !important;
  padding: 14px 10px 12px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 38px !important;
  height: 38px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 20px !important;
  height: 20px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 8px !important;
  font-size: .8rem !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  font-size: .66rem !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  padding: 20px 24px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: 322px !important;
  border-radius: 18px !important;
  padding: 24px 24px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  margin-bottom: 18px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 34px !important;
  font-size: 1rem !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  min-height: 42px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 42px !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 46px !important;
  font-size: .92rem !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  grid-template-columns: 202px minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .workspace-sidebar {
  padding: 14px 12px !important;
}

html.electron-client #appView.workspace-shell .workspace-nav button {
  min-height: 32px !important;
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell .workspace-topbar {
  min-height: 58px !important;
  padding: 7px 14px !important;
}

html.electron-client #appView.workspace-shell .workspace-content {
  padding: 12px 14px !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
  min-height: 0 !important;
  align-items: center !important;
  grid-template-columns: minmax(112px, .72fr) minmax(260px, 1.55fr) minmax(120px, .72fr) minmax(108px, .6fr) !important;
  gap: 8px !important;
  padding: 10px !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > * {
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card {
  min-height: 58px !important;
  grid-template-columns: minmax(78px, .42fr) minmax(0, 1fr) !important;
  padding: 7px !important;
}

html.electron-client #appView.workspace-shell .activation-panel {
  min-height: 32px !important;
  padding: 4px 6px !important;
}

html.electron-client #appView.workspace-shell .activation-panel input {
  height: 24px !important;
}

html.electron-client #appView.workspace-shell .activation-panel .primary {
  min-height: 24px !important;
}

html.electron-client #appView.workspace-shell .referral-reset-btn,
html.electron-client #appView.workspace-shell .license-badge.referral-badge {
  min-height: 46px !important;
}

html.electron-client #appView.workspace-shell .metric-card {
  min-height: 74px !important;
}

html.electron-client #appView.workspace-shell .workspace-card,
html.electron-client #appView.workspace-shell .records-card,
html.electron-client #appView.workspace-shell .resume-source-card,
html.electron-client #appView.workspace-shell .role-input-card,
html.electron-client #appView.workspace-shell .role-result-card,
html.electron-client #appView.workspace-shell .metric-card {
  padding: 12px !important;
}

/* Restore the original web login composition, scaled to the fixed desktop window. */
html.electron-client #authView.client-login-mode:not(.hidden) {
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(468px, .96fr) !important;
  grid-template-rows: 48px minmax(0, 1fr) !important;
  overflow: hidden !important;
  background: #fffaf5 !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 20px !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  position: relative !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 42px 44px 0 !important;
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 203, 128, .38), transparent 30%),
    radial-gradient(circle at 14% 82%, rgba(255, 237, 213, .7), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff8f0 52%, #ffe3c8 100%) !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 570px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 90px !important;
  height: 90px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  position: relative !important;
  font-size: clamp(3.6rem, 6.2vw, 4.35rem) !important;
  line-height: .9 !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong::after {
  bottom: -8px !important;
  height: 6px !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin: 30px 0 0 !important;
  font-size: 1.45rem !important;
  line-height: 1.4 !important;
  font-weight: 760 !important;
  text-align: center !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 34px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 122px !important;
  border-radius: 16px !important;
  padding: 18px 10px 13px !important;
  background: rgba(255, 255, 255, .68) !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 50px !important;
  height: 50px !important;
  border-radius: 15px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 10px !important;
  font-size: .98rem !important;
  line-height: 1.2 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 6px !important;
  max-width: 10.5em !important;
  font-size: .76rem !important;
  line-height: 1.42 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  left: 36px !important;
  bottom: 54px !important;
  font-size: 1.8rem !important;
  line-height: 1.25 !important;
}

html.electron-client #authView.client-login-mode .client-login-note::after {
  width: 190px !important;
  height: 42px !important;
  border-bottom-width: 4px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  right: -52px !important;
  bottom: -36px !important;
  width: 250px !important;
  height: 218px !important;
  border-radius: 48% 48% 0 0 !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  left: 58px !important;
  top: 20px !important;
  width: 132px !important;
  height: 132px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear::after {
  left: -54px !important;
  right: 30px !important;
  bottom: -4px !important;
  height: 76px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 26px 34px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 237, 213, .56), transparent 34%),
    #fffaf5 !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  display: block !important;
  width: min(100%, 430px) !important;
  max-height: 594px !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  padding: 34px 40px 30px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 20px 58px rgba(15, 23, 42, .08) !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  gap: 16px !important;
  margin-bottom: 26px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 44px !important;
  border-bottom-width: 4px !important;
  font-size: 1.28rem !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 13px !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  min-height: 52px !important;
  border-radius: 15px !important;
  padding: 0 16px !important;
}

html.electron-client #authView.client-login-mode .input-wrap {
  gap: 12px !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  width: 21px !important;
  height: 21px !important;
}

html.electron-client #authView.client-login-mode .input-wrap input,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  font-size: .98rem !important;
  font-weight: 760 !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 136px !important;
  gap: 12px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 52px !important;
  border-radius: 15px !important;
  font-size: .92rem !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-height: 36px !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  margin-top: 1px !important;
  font-size: .86rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options label,
html.electron-client #authView.client-login-mode .client-login-options button {
  font-size: .86rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options input {
  width: 16px !important;
  height: 16px !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 56px !important;
  margin-top: 8px !important;
  border-radius: 16px !important;
  font-size: 1.14rem !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 16px !important;
  margin-top: 2px !important;
  font-size: .78rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot,
html.electron-client #authView.client-login-mode .auth-drawer-foot {
  display: grid !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot {
  gap: 13px !important;
  margin-top: 22px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot p {
  font-size: .92rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div > span {
  min-height: 46px !important;
}

/* Workbench density pass: align module interiors with the compact desktop shell. */
html.electron-client .client-window-controls button[data-window-action="toggle-maximize"] {
  display: grid !important;
}

html.electron-client #appView.workspace-shell .workspace-frame {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

html.electron-client #appView.workspace-shell .workspace-main,
html.electron-client #appView.workspace-shell .workspace-content,
html.electron-client #appView.workspace-shell .workspace-content-inner {
  min-width: 0 !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .workspace-content-inner {
  width: 100% !important;
  max-width: 1320px !important;
}

html.electron-client #appView.workspace-shell #resumeDock > .client-section-intro,
html.electron-client #appView.workspace-shell #roleAnalysisPanel > .client-section-intro,
html.electron-client #appView.workspace-shell #recordHistoryPanel > .client-section-intro {
  display: none !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
  display: grid !important;
  grid-template-columns: minmax(118px, .7fr) minmax(330px, 1.75fr) minmax(120px, .62fr) minmax(108px, .55fr) !important;
  align-items: stretch !important;
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell #memberBadge,
html.electron-client #appView.workspace-shell #activateMessage {
  display: none !important;
}

html.electron-client #appView.workspace-shell .license-current,
html.electron-client #appView.workspace-shell .activation-entry-card,
html.electron-client #appView.workspace-shell .referral-reset-btn,
html.electron-client #appView.workspace-shell .license-badge.referral-badge {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .license-current {
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card {
  grid-template-columns: minmax(80px, .34fr) minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card small,
html.electron-client #appView.workspace-shell .referral-reset-btn small {
  display: none !important;
}

html.electron-client #appView.workspace-shell .referral-reset-btn {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
}

html.electron-client #appView.workspace-shell .referral-reset-btn span {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #appView.workspace-shell .referral-reset-btn b {
  font-size: .72rem !important;
  white-space: nowrap !important;
}

html.electron-client #appView.workspace-shell .license-badge.referral-badge {
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  padding: 6px 10px !important;
}

html.electron-client #appView.workspace-shell .license-badge.referral-badge span {
  font-size: .56rem !important;
}

html.electron-client #appView.workspace-shell .license-badge.referral-badge strong {
  font-size: .82rem !important;
  line-height: 1.15 !important;
}

html.electron-client #appView.workspace-shell .resume-dock,
html.electron-client #appView.workspace-shell .role-analysis-panel {
  grid-template-columns: minmax(286px, .38fr) minmax(0, .62fr) !important;
  align-items: stretch !important;
}

html.electron-client #appView.workspace-shell .resume-result-stack {
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  grid-template-rows: minmax(128px, .4fr) minmax(260px, .6fr) !important;
  gap: 10px !important;
}

html.electron-client #appView.workspace-shell .resume-result {
  display: grid !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .resume-result-layout {
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(190px, .92fr) minmax(270px, 1.08fr) !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

html.electron-client #appView.workspace-shell .resume-questions,
html.electron-client #appView.workspace-shell .resume-answer-preview {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

html.electron-client #appView.workspace-shell .resume-questions {
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
}

html.electron-client #appView.workspace-shell .resume-questions button,
html.electron-client #appView.workspace-shell .resume-placeholder-row {
  border-radius: 10px !important;
  gap: 8px !important;
  padding: 8px 9px !important;
}

html.electron-client #appView.workspace-shell .resume-questions button b,
html.electron-client #appView.workspace-shell .resume-placeholder-row strong,
html.electron-client #appView.workspace-shell .resume-answer-preview p,
html.electron-client #appView.workspace-shell .resume-answer-preview strong {
  font-size: .7rem !important;
  line-height: 1.5 !important;
}

html.electron-client #appView.workspace-shell .resume-answer-preview {
  padding: 12px !important;
}

html.electron-client #appView.workspace-shell .resume-answer-preview strong {
  margin-top: 9px !important;
}

html.electron-client #appView.workspace-shell .resume-answer-preview p {
  margin-top: 8px !important;
}

html.electron-client #appView.workspace-shell .client-requirement-list p {
  gap: 7px !important;
  min-height: 0 !important;
  margin: 6px 0 0 !important;
  font-size: .66rem !important;
  line-height: 1.35 !important;
}

html.electron-client #appView.workspace-shell .client-requirement-list b {
  min-width: 34px !important;
  height: 20px !important;
  font-size: .58rem !important;
}

html.electron-client #appView.workspace-shell .client-requirement-list h3,
html.electron-client #appView.workspace-shell .client-radar-card h3 {
  font-size: .74rem !important;
  line-height: 1.25 !important;
}

html.electron-client #appView.workspace-shell .role-result-card {
  gap: 8px !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

html.electron-client #appView.workspace-shell .role-result-head {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .role-result-head h2 {
  font-size: .92rem !important;
}

html.electron-client #appView.workspace-shell .role-summary-text {
  margin-top: 3px !important;
  font-size: .66rem !important;
  line-height: 1.35 !important;
}

html.electron-client #appView.workspace-shell .role-score-panel {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .role-skill-tags {
  gap: 5px !important;
}

html.electron-client #appView.workspace-shell .role-skill-tags span {
  min-height: 24px !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  font-size: .62rem !important;
}

html.electron-client #appView.workspace-shell .client-role-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr) !important;
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .role-result-grid {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px 10px !important;
}

html.electron-client #appView.workspace-shell .role-info-block {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px 0 !important;
}

html.electron-client #appView.workspace-shell .role-info-block h3 {
  font-size: .7rem !important;
}

html.electron-client #appView.workspace-shell .role-info-block ul {
  gap: 4px !important;
}

html.electron-client #appView.workspace-shell .role-info-block li {
  font-size: .68rem !important;
  line-height: 1.42 !important;
}

html.electron-client #appView.workspace-shell .records-card {
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
}

html.electron-client #appView.workspace-shell .records-card-head {
  padding: 10px 12px !important;
}

html.electron-client #appView.workspace-shell .records-filter-toolbar {
  padding: 10px 12px !important;
}

html.electron-client #appView.workspace-shell .records-score-row {
  padding: 0 12px 8px !important;
}

html.electron-client #appView.workspace-shell .records-layout {
  min-height: 0 !important;
  grid-template-columns: minmax(330px, .82fr) minmax(320px, 1fr) !important;
}

html.electron-client #appView.workspace-shell .record-count {
  margin: 8px 10px 0 !important;
  font-size: .64rem !important;
}

html.electron-client #appView.workspace-shell .record-list {
  gap: 0 !important;
}

html.electron-client #appView.workspace-shell .record-row {
  min-height: 58px !important;
  gap: 8px !important;
  padding: 8px 10px !important;
}

html.electron-client #appView.workspace-shell .record-row-main {
  gap: 8px !important;
}

html.electron-client #appView.workspace-shell .record-row-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

html.electron-client #appView.workspace-shell .record-row strong {
  font-size: .72rem !important;
}

html.electron-client #appView.workspace-shell .record-row p {
  margin-top: 2px !important;
  font-size: .62rem !important;
  line-height: 1.35 !important;
}

html.electron-client #appView.workspace-shell .record-status-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  font-size: .6rem !important;
}

html.electron-client #appView.workspace-shell .record-row-actions {
  gap: 6px !important;
}

html.electron-client #appView.workspace-shell .record-row-actions .secondary {
  min-height: 26px !important;
  padding: 0 8px !important;
  font-size: .62rem !important;
}

@media (max-width: 1080px) {
  html.electron-client #appView.workspace-shell .workspace-frame {
    grid-template-columns: 184px minmax(0, 1fr) !important;
  }

  html.electron-client #appView.workspace-shell .workspace-sidebar {
    padding-inline: 10px !important;
  }

  html.electron-client #appView.workspace-shell .workspace-nav button {
    padding-inline: 8px !important;
  }

  html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
    grid-template-columns: minmax(100px, .65fr) minmax(270px, 1.75fr) minmax(104px, .58fr) minmax(92px, .52fr) !important;
  }

  html.electron-client #appView.workspace-shell .resume-dock,
  html.electron-client #appView.workspace-shell .role-analysis-panel {
    grid-template-columns: minmax(260px, .4fr) minmax(0, .6fr) !important;
  }

  html.electron-client #appView.workspace-shell .client-role-preview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Final compact corrections for the packaged desktop workbench. */
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
  grid-template-columns: 132px minmax(318px, 1fr) 130px 132px !important;
  grid-auto-flow: column !important;
  align-items: stretch !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .license-current,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .activation-entry-card,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .referral-reset-btn,
html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .license-badge.referral-badge {
  grid-column: auto !important;
  grid-row: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}

html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .activation-entry-card {
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px 10px !important;
}

html.electron-client #appView.workspace-shell .activation-entry-card h2 {
  font-size: .78rem !important;
  line-height: 1.15 !important;
}

html.electron-client #appView.workspace-shell .activation-panel {
  grid-template-columns: 16px minmax(0, 1fr) 48px !important;
  gap: 5px !important;
}

html.electron-client #appView.workspace-shell .activation-panel input {
  min-height: 30px !important;
  font-size: .68rem !important;
  padding: 0 7px !important;
}

html.electron-client #appView.workspace-shell .activation-panel .primary {
  min-height: 30px !important;
  padding: 0 8px !important;
  font-size: .66rem !important;
}

html.electron-client #appView.workspace-shell .records-layout {
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: minmax(0, .9fr) minmax(310px, 1fr) !important;
  align-items: start !important;
}

html.electron-client #appView.workspace-shell .records-list-column {
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .record-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  gap: 0 !important;
}

html.electron-client #appView.workspace-shell .record-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 52px !important;
  height: auto !important;
  gap: 8px !important;
  padding: 7px 10px !important;
}

html.electron-client #appView.workspace-shell .record-row-main {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 0 !important;
}

html.electron-client #appView.workspace-shell .record-row-main > span:last-child {
  min-width: 0 !important;
}

html.electron-client #appView.workspace-shell .record-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  min-width: 122px !important;
}

html.electron-client #appView.workspace-shell .record-row-actions .secondary {
  white-space: nowrap !important;
}

@media (max-width: 1080px) {
  html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar {
    grid-template-columns: 116px minmax(284px, 1fr) 112px 114px !important;
  }

  html.electron-client #appView.workspace-shell #overviewPanel > .overview-license-bar > .activation-entry-card {
    grid-template-columns: 62px minmax(0, 1fr) !important;
  }

  html.electron-client #appView.workspace-shell .activation-panel {
    grid-template-columns: 14px minmax(0, 1fr) 42px !important;
  }
}

/* Desktop client parity fixes: hide web-only exit action and restore resume analysis structure. */
html.electron-client #appView.workspace-shell #workspaceHomeBtn {
  display: none !important;
}

html.electron-client #appView.workspace-shell .resume-dock {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  gap: 12px !important;
}

html.electron-client #appView.workspace-shell .resume-source-card {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  min-height: 0 !important;
}

html.electron-client #appView.workspace-shell .resume-result-stack {
  display: contents !important;
}

html.electron-client #appView.workspace-shell .resume-advantages-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  min-height: 0 !important;
  max-height: none !important;
}

html.electron-client #appView.workspace-shell .resume-result {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html.electron-client #appView.workspace-shell .resume-result-layout {
  display: grid !important;
  grid-template-columns: minmax(290px, .9fr) minmax(390px, 1.1fr) !important;
  height: auto !important;
  min-height: 214px !important;
  max-height: 254px !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

html.electron-client #appView.workspace-shell .resume-questions,
html.electron-client #appView.workspace-shell .resume-answer-preview {
  height: 214px !important;
  min-height: 214px !important;
  max-height: 214px !important;
  overflow-y: auto !important;
}

@media (max-width: 1080px) {
  html.electron-client #appView.workspace-shell .resume-dock {
    grid-template-columns: minmax(276px, .82fr) minmax(0, 1.18fr) !important;
  }

  html.electron-client #appView.workspace-shell .resume-result-layout {
    grid-template-columns: minmax(252px, .9fr) minmax(320px, 1.1fr) !important;
  }
}

/* Desktop login page refinement: keep the approved composition, but give it client-like breathing room. */
html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 224, 189, .48), transparent 34%),
    linear-gradient(135deg, #fff7ef 0%, #fffaf6 52%, #fff1e3 100%) !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  width: min(calc(100vw - 56px), 1160px) !important;
  height: min(calc(100vh - 52px), 690px) !important;
  min-height: 0 !important;
  max-height: 690px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 186, 120, .42) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(124, 45, 18, .12) !important;
  grid-template-columns: minmax(0, .98fr) minmax(352px, 386px) !important;
  grid-template-rows: 42px minmax(0, 1fr) !important;
  background: #fffaf6 !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar b {
  font-size: .86rem !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar i {
  font-size: .74rem !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button {
  width: 38px !important;
  height: 32px !important;
  border-radius: 9px !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button::before {
  font-size: 1.12rem !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  padding: 28px 34px 0 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  max-width: 492px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  gap: 14px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 68px !important;
  height: 68px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(2.65rem, 4.85vw, 3.55rem) !important;
  line-height: .92 !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong::after {
  bottom: -6px !important;
  height: 5px !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 20px !important;
  font-size: 1.08rem !important;
  line-height: 1.42 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  gap: 10px !important;
  margin-top: 25px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 106px !important;
  height: 106px !important;
  max-height: 106px !important;
  border-radius: 13px !important;
  padding: 11px 8px 9px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 18px !important;
  height: 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 7px !important;
  font-size: .8rem !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 3px !important;
  font-size: .62rem !important;
  line-height: 1.34 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  left: 28px !important;
  bottom: 40px !important;
  font-size: 1.34rem !important;
  line-height: 1.24 !important;
}

html.electron-client #authView.client-login-mode .client-login-note::after {
  width: 148px !important;
  height: 30px !important;
  border-bottom-width: 3px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  right: -34px !important;
  bottom: -28px !important;
  width: 196px !important;
  height: 168px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  left: 46px !important;
  top: 17px !important;
  width: 98px !important;
  height: 98px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear::after {
  left: -38px !important;
  right: 24px !important;
  height: 58px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  padding: 22px 28px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 342px) !important;
  max-height: calc(100% - 10px) !important;
  border-radius: 20px !important;
  padding: 24px 26px 22px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  gap: 12px !important;
  margin-bottom: 18px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 34px !important;
  border-bottom-width: 3px !important;
  font-size: 1rem !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
}

html.electron-client #authView.client-login-mode .input-wrap {
  gap: 9px !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  width: 18px !important;
  height: 18px !important;
}

html.electron-client #authView.client-login-mode .input-wrap input,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  font-size: .84rem !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 112px !important;
  gap: 9px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 42px !important;
  border-radius: 12px !important;
  font-size: .8rem !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-height: 30px !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  font-size: .76rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options label,
html.electron-client #authView.client-login-mode .client-login-options button {
  font-size: .76rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options input {
  width: 14px !important;
  height: 14px !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 46px !important;
  margin-top: 4px !important;
  border-radius: 13px !important;
  font-size: .96rem !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 14px !important;
  font-size: .72rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot,
html.electron-client #authView.client-login-mode .auth-drawer-foot {
  display: none !important;
}

@media (max-width: 980px), (max-height: 640px) {
  html.electron-client #authView.client-login-mode:not(.hidden) {
    width: calc(100vw - 36px) !important;
    height: calc(100vh - 34px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(324px, 360px) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    padding: 22px 28px 0 !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article {
    min-height: 92px !important;
    height: 92px !important;
    max-height: 92px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-note,
  html.electron-client #authView.client-login-mode .client-login-bear {
    display: none !important;
  }
}

/* Proportional login scaling: preserve the original composition while leaving desktop margins. */
html.electron-client #authView.client-login-mode:not(.hidden) {
  width: min(calc(100vw - 56px), 1160px) !important;
  height: min(calc(100vh - 52px), 690px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 416px) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar > div:first-child {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  min-width: 0 !important;
}

html.electron-client #authView.client-login-mode .client-window-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  height: 100% !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 34px !important;
  min-width: 40px !important;
  min-height: 34px !important;
  border-radius: 9px !important;
  line-height: 1 !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="toggle-maximize"] {
  display: none !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button::before,
html.electron-client #authView.client-login-mode .client-window-controls button::after {
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 1.18rem !important;
  line-height: 1 !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  padding: 52px 44px 36px !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  max-width: 560px !important;
  height: 100% !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  justify-content: center !important;
  gap: 17px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: 108px !important;
  height: 108px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(3.7rem, 5.8vw, 4.35rem) !important;
  line-height: .94 !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong::after {
  bottom: -12px !important;
  height: 6px !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin-top: 39px !important;
  font-size: 1.32rem !important;
  line-height: 1.42 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  gap: 17px !important;
  margin-top: 36px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  min-height: 136px !important;
  height: 136px !important;
  max-height: 136px !important;
  border-radius: 15px !important;
  padding: 20px 12px 16px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 56px !important;
  height: 56px !important;
  border-radius: 17px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 24px !important;
  height: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 12px !important;
  font-size: .93rem !important;
  line-height: 1.2 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 6px !important;
  font-size: .72rem !important;
  line-height: 1.42 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  left: 38px !important;
  bottom: 64px !important;
  font-size: 1.62rem !important;
  line-height: 1.25 !important;
}

html.electron-client #authView.client-login-mode .client-login-note::after {
  width: 174px !important;
  height: 42px !important;
  border-bottom-width: 4px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  right: -18px !important;
  bottom: -26px !important;
  width: 224px !important;
  height: 202px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  left: 54px !important;
  top: 22px !important;
  width: 124px !important;
  height: 124px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear::after {
  left: -50px !important;
  right: 26px !important;
  height: 70px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  padding: 28px 34px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 374px) !important;
  max-height: calc(100% - 18px) !important;
  border-radius: 22px !important;
  padding: 28px 32px 26px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  gap: 14px !important;
  margin-bottom: 22px !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 38px !important;
  font-size: 1.1rem !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 11px !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
}

html.electron-client #authView.client-login-mode .input-wrap input,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  font-size: .9rem !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 126px !important;
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 48px !important;
  border-radius: 14px !important;
  font-size: .88rem !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-height: 34px !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
}

html.electron-client #authView.client-login-mode .client-login-options,
html.electron-client #authView.client-login-mode .client-login-options label,
html.electron-client #authView.client-login-mode .client-login-options button {
  font-size: .82rem !important;
}

@media (max-width: 980px), (max-height: 640px) {
  html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
    width: 84px !important;
    height: 84px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo strong {
    font-size: clamp(3rem, 5vw, 3.6rem) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article {
    min-height: 112px !important;
    height: 112px !important;
    max-height: 112px !important;
  }
}

@media (max-width: 980px), (max-height: 640px) {
  html.electron-client #authView.client-login-mode:not(.hidden) {
    width: calc(100vw - 36px) !important;
    height: calc(100vh - 34px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 44px minmax(0, 1fr) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 22px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer-scroll {
    width: min(100%, 360px) !important;
    max-height: calc(100% - 10px) !important;
  }
}

/* Final client login rebuild matching the approved preview composition. */
html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 221, 186, .42), transparent 34%),
    linear-gradient(135deg, #fff8f2 0%, #fffaf7 52%, #fff0e4 100%) !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: grid !important;
  width: min(calc(100vw - 56px), 1540px) !important;
  height: min(calc(100vh - 56px), 900px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1540px !important;
  max-height: 900px !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr) !important;
  grid-template-rows: 56px minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 190, 130, .42) !important;
  border-radius: 24px !important;
  background: rgba(255, 250, 246, .96) !important;
  box-shadow: 0 28px 86px rgba(124, 45, 18, .13) !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 22px !important;
  border-bottom: 1px solid rgba(255, 218, 186, .7) !important;
  background: rgba(255, 255, 255, .68) !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  height: 100% !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar b {
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar i {
  font-size: .86rem !important;
  font-weight: 760 !important;
}

html.electron-client #authView.client-login-mode .client-window-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  height: 100% !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 34px !important;
  min-width: 42px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1 !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="toggle-maximize"] {
  display: none !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button::before {
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #667085 !important;
  font-size: 1.18rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button::after {
  display: none !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="minimize"]::before {
  content: "-" !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="close"]::before {
  content: "×" !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: clamp(42px, 5vh, 70px) clamp(42px, 4.6vw, 72px) clamp(34px, 4vh, 52px) !important;
  background:
    radial-gradient(circle at 77% 17%, rgba(255, 204, 139, .42), transparent 31%),
    radial-gradient(circle at 10% 88%, rgba(255, 238, 219, .72), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff7ef 52%, #ffe4cb 100%) !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  position: relative !important;
  width: 100% !important;
  max-width: 720px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 1.5vw, 24px) !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: clamp(92px, 7.7vw, 138px) !important;
  height: clamp(92px, 7.7vw, 138px) !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  position: relative !important;
  color: #111827 !important;
  font-size: clamp(4rem, 5.5vw, 5.5rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: .94 !important;
  white-space: nowrap !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong::after {
  left: 4% !important;
  right: 8% !important;
  bottom: -13px !important;
  height: clamp(6px, .65vw, 9px) !important;
  border-radius: 999px !important;
  background: #ff5a14 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin: clamp(38px, 4.6vh, 52px) 0 0 !important;
  color: #475467 !important;
  font-size: clamp(1.28rem, 1.75vw, 1.72rem) !important;
  line-height: 1.42 !important;
  font-weight: 760 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.45vw, 24px) !important;
  width: 100% !important;
  margin-top: clamp(32px, 4.6vh, 54px) !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  height: clamp(140px, 15.8vh, 176px) !important;
  min-height: clamp(140px, 15.8vh, 176px) !important;
  max-height: none !important;
  border: 1px solid rgba(253, 186, 116, .58) !important;
  border-radius: clamp(16px, 1.2vw, 20px) !important;
  background: rgba(255, 255, 255, .68) !important;
  padding: clamp(22px, 2.6vh, 30px) clamp(12px, 1.2vw, 18px) clamp(16px, 2vh, 22px) !important;
  text-align: center !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  display: grid !important;
  place-items: center !important;
  width: clamp(58px, 4.7vw, 72px) !important;
  height: clamp(58px, 4.7vw, 72px) !important;
  border-radius: clamp(18px, 1.4vw, 22px) !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: clamp(24px, 2vw, 30px) !important;
  height: clamp(24px, 2vw, 30px) !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: clamp(12px, 1.6vh, 17px) !important;
  color: #111827 !important;
  font-size: clamp(.94rem, 1.02vw, 1.12rem) !important;
  line-height: 1.22 !important;
  font-weight: 950 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: clamp(6px, .9vh, 10px) !important;
  color: #5f6673 !important;
  font-size: clamp(.72rem, .82vw, .9rem) !important;
  line-height: 1.5 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  left: clamp(42px, 4.2vw, 72px) !important;
  bottom: clamp(56px, 8.4vh, 96px) !important;
  color: #ff5a14 !important;
  font-size: clamp(1.65rem, 2.25vw, 2.1rem) !important;
  line-height: 1.26 !important;
  font-weight: 800 !important;
}

html.electron-client #authView.client-login-mode .client-login-note::after {
  width: clamp(168px, 15vw, 226px) !important;
  height: clamp(36px, 5vh, 54px) !important;
  border-bottom-width: 5px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  right: clamp(-22px, 2vw, 34px) !important;
  bottom: -28px !important;
  width: clamp(232px, 18.4vw, 292px) !important;
  height: clamp(206px, 16.4vw, 260px) !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  left: 24% !important;
  top: 11% !important;
  width: 54% !important;
  height: 54% !important;
}

html.electron-client #authView.client-login-mode .client-login-bear::after {
  left: -22% !important;
  right: 10% !important;
  height: 36% !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(30px, 4.5vh, 58px) clamp(34px, 4vw, 66px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 237, 213, .58), transparent 34%),
    #fffaf5 !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  display: block !important;
  width: min(100%, 580px) !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border-radius: clamp(24px, 2vw, 30px) !important;
  padding: clamp(34px, 4.2vh, 52px) clamp(38px, 4.2vw, 56px) clamp(30px, 3.8vh, 46px) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 20px 58px rgba(15, 23, 42, .08) !important;
}

html.electron-client #authView.client-login-mode .auth-title {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2vw, 28px) !important;
  margin: 0 0 clamp(28px, 4vh, 42px) !important;
}

html.electron-client #authView.client-login-mode #forgotTab {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: clamp(44px, 5.2vh, 58px) !important;
  border: 0 !important;
  border-bottom: 4px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8a93a3 !important;
  font-size: clamp(1.16rem, 1.75vw, 1.7rem) !important;
  font-weight: 950 !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button.active {
  border-bottom-color: #ff5a14 !important;
  color: #ff5a14 !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: clamp(14px, 1.6vh, 18px) !important;
}

html.electron-client #authView.client-login-mode .auth-form label > span {
  display: none !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  height: clamp(54px, 6.2vh, 74px) !important;
  min-height: clamp(54px, 6.2vh, 74px) !important;
  max-height: clamp(54px, 6.2vh, 74px) !important;
  border: 1px solid #e4e7ec !important;
  border-radius: clamp(15px, 1.4vw, 18px) !important;
  background: #f8fafc !important;
  padding: 0 clamp(18px, 1.5vw, 24px) !important;
}

html.electron-client #authView.client-login-mode .input-wrap {
  gap: clamp(12px, 1vw, 16px) !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  width: clamp(19px, 1.5vw, 24px) !important;
  height: clamp(19px, 1.5vw, 24px) !important;
  color: #8a93a3 !important;
}

html.electron-client #authView.client-login-mode .input-wrap input,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  font-size: clamp(.98rem, 1.08vw, 1.2rem) !important;
  font-weight: 760 !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) clamp(122px, 12vw, 190px) !important;
  gap: clamp(12px, 1.5vw, 18px) !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: clamp(54px, 6.2vh, 74px) !important;
  border: 1px solid rgba(255, 186, 116, .55) !important;
  border-radius: clamp(15px, 1.4vw, 18px) !important;
  background: #fff7ed !important;
  color: #ff5a14 !important;
  font-size: clamp(.92rem, 1vw, 1.14rem) !important;
  font-weight: 900 !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-height: clamp(34px, 4.2vh, 48px) !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  margin-top: 0 !important;
  font-size: clamp(.84rem, .92vw, 1rem) !important;
}

html.electron-client #authView.client-login-mode .client-login-options label,
html.electron-client #authView.client-login-mode .client-login-options button {
  font-size: inherit !important;
}

html.electron-client #authView.client-login-mode .client-login-options input {
  width: clamp(15px, 1.2vw, 18px) !important;
  height: clamp(15px, 1.2vw, 18px) !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: clamp(58px, 7vh, 82px) !important;
  margin-top: clamp(8px, 1.3vh, 14px) !important;
  border-radius: clamp(16px, 1.5vw, 20px) !important;
  background: linear-gradient(135deg, #ff8a1f, #ff4b12) !important;
  box-shadow: 0 18px 32px rgba(249, 115, 22, .24) !important;
  font-size: clamp(1.08rem, 1.5vw, 1.45rem) !important;
  font-weight: 950 !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 14px !important;
  margin: 3px 0 0 !important;
  font-size: .78rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot {
  display: grid !important;
  gap: clamp(12px, 1.8vh, 18px) !important;
  margin-top: clamp(18px, 3vh, 32px) !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot p {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  color: #98a2b3 !important;
  font-size: clamp(.84rem, .95vw, 1rem) !important;
  font-weight: 800 !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot p span {
  height: 1px !important;
  background: #e5e7eb !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div > span {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  min-height: 46px !important;
  color: #8a93a3 !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot iconify-icon {
  color: #ff5a14 !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot small {
  font-size: clamp(.74rem, .85vw, .92rem) !important;
  font-weight: 760 !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-foot {
  display: none !important;
}

@media (max-width: 980px), (max-height: 680px) {
  html.electron-client #authView.client-login-mode:not(.hidden) {
    width: calc(100vw - 36px) !important;
    height: calc(100vh - 34px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 50px minmax(0, 1fr) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-titlebar {
    height: 50px !important;
    min-height: 50px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 22px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer-scroll {
    width: min(100%, 390px) !important;
    padding: 28px 30px !important;
  }

  html.electron-client #authView.client-login-mode .client-sync-foot,
  html.electron-client #authView.client-login-mode .auth-drawer-foot {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .auth-tabs {
    margin-bottom: 18px !important;
  }

  html.electron-client #authView.client-login-mode .auth-form {
    gap: 10px !important;
  }
}

/* Final correction: keep the preview-side logo, title, cards and note visible in the desktop client. */
html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
  min-width: 1280px !important;
  min-height: 800px !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  width: min(calc(100vw - 64px), 1224px) !important;
  height: min(calc(100vh - 56px), 744px) !important;
  max-width: 1224px !important;
  max-height: 744px !important;
  grid-template-columns: minmax(650px, 1.05fr) minmax(500px, .95fr) !important;
  grid-template-rows: 56px minmax(0, 1fr) !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  display: block !important;
  position: relative !important;
  padding: 54px 64px 42px !important;
  overflow: hidden !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 620px !important;
  height: 100% !important;
  margin: 0 auto !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 22px !important;
  min-height: 108px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  display: inline-block !important;
  width: 104px !important;
  height: 104px !important;
  flex: 0 0 104px !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  display: block !important;
  font-size: 4.85rem !important;
  line-height: .94 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  display: block !important;
  margin: 34px 0 0 !important;
  color: #475467 !important;
  font-size: 1.42rem !important;
  line-height: 1.35 !important;
  font-weight: 820 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 34px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  height: 148px !important;
  min-height: 148px !important;
  padding: 22px 12px 14px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  margin-top: 12px !important;
  font-size: .98rem !important;
  line-height: 1.15 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 6px !important;
  font-size: .75rem !important;
  line-height: 1.42 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  position: absolute !important;
  left: 34px !important;
  bottom: 58px !important;
  z-index: 3 !important;
  width: 258px !important;
  color: #ff5a14 !important;
  font-size: 1.82rem !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  transform: rotate(-7deg) !important;
}

html.electron-client #authView.client-login-mode .client-login-note::after {
  left: 2px !important;
  bottom: -26px !important;
  width: 238px !important;
  height: 42px !important;
  border-bottom-width: 5px !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  position: absolute !important;
  right: -54px !important;
  bottom: -34px !important;
  z-index: 1 !important;
  width: 226px !important;
  height: 204px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 42px 54px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 430px) !important;
  padding: 38px 46px 34px !important;
}

@media (max-width: 1279px), (max-height: 799px) {
  html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
    display: block !important;
    overflow: auto !important;
  }

  html.electron-client #authView.client-login-mode:not(.hidden) {
    position: absolute !important;
    top: 28px !important;
    left: 32px !important;
    transform: none !important;
    width: 1216px !important;
    height: 744px !important;
  }
}

/* Resizable desktop shell: keep normal window controls and prevent full-screen locking. */
html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
  min-width: 0 !important;
  min-height: 0 !important;
}

html.electron-client .client-window-controls button[data-window-action="toggle-maximize"],
html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="toggle-maximize"] {
  display: grid !important;
}

html.electron-client .client-window-controls button[data-window-action="toggle-maximize"]::before,
html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="toggle-maximize"]::before {
  content: "[]" !important;
  font-size: .9rem !important;
}

html.electron-client .client-window-controls button[data-window-action="toggle-maximize"].is-maximized::before,
html.electron-client #authView.client-login-mode .client-window-controls button[data-window-action="toggle-maximize"].is-maximized::before {
  content: "[ ]" !important;
  font-size: .8rem !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  width: min(calc(100vw - 64px), 1224px) !important;
  height: min(calc(100vh - 56px), 744px) !important;
}

@media (max-width: 1180px), (max-height: 720px) {
  html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
    display: block !important;
    overflow: auto !important;
  }

  html.electron-client #authView.client-login-mode:not(.hidden) {
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
    transform: none !important;
    width: 1132px !important;
    height: 688px !important;
    grid-template-columns: minmax(610px, 1fr) minmax(460px, .9fr) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    padding: 44px 52px 34px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    padding: 34px 42px !important;
  }
}

/* Restore web workbench layout requested by the user. */
body:has(#appView:not(.hidden)) .workspace-content-inner > [data-workspace-panel-section] > .client-section-intro {
  display: none !important;
}

body:has(#appView:not(.hidden)) #overviewPanel .overview-license-bar {
  display: grid !important;
  grid-template-columns: minmax(150px, .78fr) minmax(320px, 1.72fr) minmax(170px, .9fr) minmax(128px, .68fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  padding: 12px !important;
}

body:has(#appView:not(.hidden)) #overviewPanel .license-current,
body:has(#appView:not(.hidden)) #overviewPanel .activation-entry-card,
body:has(#appView:not(.hidden)) #overviewPanel #referralResetBtn,
body:has(#appView:not(.hidden)) #overviewPanel #licenseBadge {
  min-width: 0 !important;
  min-height: 70px !important;
  height: 100% !important;
}

body:has(#appView:not(.hidden)) #overviewPanel .activation-entry-card {
  grid-template-columns: minmax(96px, .52fr) minmax(0, 1.48fr) !important;
  gap: 8px !important;
  padding: 9px !important;
}

body:has(#appView:not(.hidden)) #overviewPanel .activation-entry-card h2,
body:has(#appView:not(.hidden)) #overviewPanel .activation-entry-card small {
  display: none !important;
}

body:has(#appView:not(.hidden)) #overviewPanel .activation-panel {
  min-width: 0 !important;
}

body:has(#appView:not(.hidden)) #overviewPanel #memberBadge {
  display: none !important;
}

body:has(#appView:not(.hidden)) #overviewPanel #activateMessage {
  grid-column: 1 / -1 !important;
}

body:has(#appView:not(.hidden)) #overviewPanel #referralResetBtn,
body:has(#appView:not(.hidden)) #overviewPanel #licenseBadge {
  padding: 10px 12px !important;
}

body:has(#appView:not(.hidden)) #overviewPanel #referralResetBtn small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:has(#appView:not(.hidden)) #resumeDock {
  align-items: start !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, .92fr) minmax(360px, 1.08fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-questions {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-height: 420px !important;
  overflow: auto !important;
  padding: 0 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-questions li,
body:has(#appView:not(.hidden)) #resumeDock .resume-questions button,
body:has(#appView:not(.hidden)) #resumeDock .resume-placeholder-row {
  width: 100% !important;
  min-height: 48px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-questions button {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 12px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-questions b,
body:has(#appView:not(.hidden)) #resumeDock .resume-question-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-answer-preview {
  display: grid !important;
  align-content: start !important;
  min-height: 260px !important;
  padding: 16px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-answer-preview p {
  max-height: 240px !important;
  overflow: auto !important;
  font-size: .86rem !important;
  line-height: 1.65 !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-result-grid {
  gap: 10px !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-info-block {
  padding: 14px 16px !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-info-block h3 {
  margin: 0 0 10px !important;
  font-size: .96rem !important;
  line-height: 1.25 !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-info-block p {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  margin: 8px 0 !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-info-block b {
  align-self: start !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

body:has(#appView:not(.hidden)) #roleAnalysisPanel .role-info-block span {
  color: #344054 !important;
  font-size: .84rem !important;
  line-height: 1.5 !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .records-card-head {
  padding: 16px 20px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .records-filter-toolbar {
  gap: 10px !important;
  padding: 12px 16px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .records-score-row {
  gap: 10px !important;
  padding: 10px 16px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-count {
  margin: 12px 16px 0 !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row {
  gap: 10px !important;
  padding: 10px 14px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row strong {
  font-size: .82rem !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row p {
  margin-top: 2px !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row-actions {
  gap: 6px !important;
}

body:has(#appView:not(.hidden)) #recordHistoryPanel .record-status-badge,
body:has(#appView:not(.hidden)) #recordHistoryPanel .record-row-actions .secondary {
  min-height: 28px !important;
  border-radius: 8px !important;
  padding: 0 9px !important;
  font-size: .68rem !important;
}

@media (max-width: 1180px) {
  body:has(#appView:not(.hidden)) #overviewPanel .overview-license-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-result-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Client auth viewport fit: keep the login/register shell inside normal desktop windows. */
html.electron-client body:has(#authView.client-login-mode:not(.hidden)) {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #fff7ef !important;
}

html.electron-client #authView.client-login-mode:not(.hidden) {
  position: fixed !important;
  inset: 14px !important;
  top: 14px !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr) !important;
  grid-template-rows: 48px minmax(0, 1fr) !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px 0 20px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar > div:first-child {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .client-login-titlebar .brand-mark {
  width: 25px !important;
  height: 25px !important;
}

html.electron-client #authView.client-login-mode .client-window-controls {
  gap: 8px !important;
}

html.electron-client #authView.client-login-mode .client-window-controls button {
  width: 38px !important;
  height: 30px !important;
  min-width: 38px !important;
  min-height: 30px !important;
  border-radius: 10px !important;
}

html.electron-client #authView.client-login-mode .client-login-preview {
  display: block !important;
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: clamp(24px, 4vh, 38px) clamp(30px, 4vw, 50px) clamp(22px, 3.5vh, 36px) !important;
  overflow: hidden !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  align-content: stretch !important;
}

html.electron-client #authView.client-login-mode .client-login-logo {
  gap: clamp(20px, 2.5vw, 30px) !important;
}

html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
  width: clamp(70px, 6.2vw, 96px) !important;
  height: clamp(70px, 6.2vw, 96px) !important;
  flex: 0 0 auto !important;
}

html.electron-client #authView.client-login-mode .client-login-logo strong {
  font-size: clamp(3.2rem, 4.8vw, 4.9rem) !important;
  line-height: .92 !important;
}

html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
  margin: clamp(18px, 3vh, 30px) 0 0 !important;
  font-size: clamp(1.18rem, 1.75vw, 1.62rem) !important;
  line-height: 1.35 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid {
  margin-top: clamp(20px, 3.2vh, 34px) !important;
  gap: clamp(10px, 1.4vw, 16px) !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article {
  height: clamp(112px, 15.5vh, 142px) !important;
  min-height: 0 !important;
  padding: clamp(14px, 2vh, 20px) 10px !important;
  border-radius: 16px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
  width: clamp(46px, 4.5vw, 60px) !important;
  height: clamp(46px, 4.5vw, 60px) !important;
  margin-bottom: 10px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid article > span iconify-icon {
  width: 24px !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid b {
  font-size: clamp(.98rem, 1.35vw, 1.2rem) !important;
  line-height: 1.15 !important;
}

html.electron-client #authView.client-login-mode .client-login-feature-grid small {
  margin-top: 7px !important;
  font-size: clamp(.76rem, .98vw, .9rem) !important;
  line-height: 1.45 !important;
}

html.electron-client #authView.client-login-mode .client-login-note {
  display: block !important;
  left: clamp(30px, 4vw, 52px) !important;
  bottom: clamp(22px, 4.5vh, 48px) !important;
  font-size: clamp(1.25rem, 2vw, 1.78rem) !important;
  line-height: 1.24 !important;
  transform: rotate(-8deg) !important;
}

html.electron-client #authView.client-login-mode .client-login-bear {
  display: block !important;
  right: clamp(-26px, .5vw, 8px) !important;
  bottom: -24px !important;
  width: clamp(178px, 18vw, 250px) !important;
  height: clamp(158px, 16.8vw, 226px) !important;
}

html.electron-client #authView.client-login-mode .client-login-bear .brand-mark {
  width: clamp(72px, 6.7vw, 96px) !important;
  height: clamp(72px, 6.7vw, 96px) !important;
}

html.electron-client #authView.client-login-mode .auth-drawer {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: clamp(18px, 3vh, 32px) clamp(18px, 2.8vw, 34px) !important;
  overflow: hidden !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-scroll {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: clamp(22px, 3.2vh, 34px) clamp(24px, 3vw, 36px) !important;
  border-radius: 22px !important;
  overflow: auto !important;
  scrollbar-width: thin !important;
}

html.electron-client #authView.client-login-mode .auth-card-inner {
  display: grid !important;
  gap: 0 !important;
  min-height: 0 !important;
}

html.electron-client #authView.client-login-mode .auth-title {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-tabs {
  gap: 16px !important;
  margin-bottom: clamp(16px, 2.4vh, 24px) !important;
}

html.electron-client #authView.client-login-mode .auth-tabs button {
  min-height: 42px !important;
  padding: 0 6px 12px !important;
  font-size: clamp(1rem, 1.35vw, 1.25rem) !important;
  line-height: 1.2 !important;
}

html.electron-client #authView.client-login-mode #forgotTab {
  display: none !important;
}

html.electron-client #authView.client-login-mode .auth-form {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .auth-form label {
  gap: 6px !important;
}

html.electron-client #authView.client-login-mode .auth-form label > span,
html.electron-client #authView.client-login-mode .auth-form small {
  font-size: .78rem !important;
}

html.electron-client #authView.client-login-mode .input-wrap,
html.electron-client #authView.client-login-mode .captcha-row input,
html.electron-client #authView.client-login-mode .code-row input {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  font-size: .98rem !important;
}

html.electron-client #authView.client-login-mode .input-wrap iconify-icon {
  width: 16px !important;
}

html.electron-client #authView.client-login-mode .captcha-row,
html.electron-client #authView.client-login-mode .code-row {
  grid-template-columns: minmax(0, 1fr) 122px !important;
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .captcha-image,
html.electron-client #authView.client-login-mode .code-row .secondary {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 10px !important;
  border-radius: 13px !important;
  font-size: .88rem !important;
}

html.electron-client #authView.client-login-mode .captcha-image img {
  max-width: 98px !important;
  max-height: 36px !important;
}

html.electron-client #authView.client-login-mode .client-login-options {
  margin: 2px 0 !important;
  font-size: .9rem !important;
}

html.electron-client #authView.client-login-mode .auth-form > .primary {
  min-height: 52px !important;
  margin-top: 4px !important;
  border-radius: 14px !important;
  font-size: 1.08rem !important;
}

html.electron-client #authView.client-login-mode .message {
  min-height: 12px !important;
  margin: 0 !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot {
  margin-top: 14px !important;
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot p {
  font-size: .84rem !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div {
  gap: 10px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot > div > span {
  min-height: 38px !important;
  gap: 4px !important;
}

html.electron-client #authView.client-login-mode .client-sync-foot iconify-icon {
  width: 18px !important;
}

html.electron-client #authView.client-login-mode .auth-drawer-foot {
  display: none !important;
}

@media (max-width: 1120px), (max-height: 660px) {
  html.electron-client #authView.client-login-mode:not(.hidden) {
    grid-template-columns: minmax(0, .95fr) minmax(340px, .82fr) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 18px 24px 14px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    grid-column: 2 !important;
    grid-row: 2 !important;
    padding: 14px 16px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer-scroll {
    width: min(100%, 420px) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo {
    gap: 16px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
    width: 58px !important;
    height: 58px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo strong {
    font-size: 2.8rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
    margin-top: 14px !important;
    font-size: 1rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid {
    margin-top: 16px !important;
    gap: 8px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article {
    height: 88px !important;
    padding: 10px 8px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 7px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid b {
    font-size: .88rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid small {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .client-login-note {
    left: 28px !important;
    bottom: 20px !important;
    font-size: 1.15rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-bear {
    right: -20px !important;
    bottom: -24px !important;
    width: 158px !important;
    height: 142px !important;
  }
}

@media (max-width: 820px) {
  html.electron-client #authView.client-login-mode:not(.hidden) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 46px 178px minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  html.electron-client #authView.client-login-mode .client-login-preview {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 14px 18px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-brand-panel {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo {
    justify-content: center !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo .brand-mark {
    width: 48px !important;
    height: 48px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-logo strong {
    font-size: 2.25rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-brand-panel > p {
    margin-top: 8px !important;
    text-align: center !important;
    font-size: .92rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid {
    margin-top: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article {
    height: 56px !important;
    padding: 7px 6px !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid article > span {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .client-login-feature-grid b {
    font-size: .78rem !important;
  }

  html.electron-client #authView.client-login-mode .client-login-note,
  html.electron-client #authView.client-login-mode .client-login-bear {
    display: none !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 12px 14px !important;
  }

  html.electron-client #authView.client-login-mode .auth-drawer-scroll {
    width: min(100%, 430px) !important;
    padding: 18px 20px !important;
  }
}

body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-table-head,
body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-row {
  display: grid !important;
  grid-template-columns: minmax(150px, .86fr) minmax(180px, 1.45fr) minmax(72px, .45fr) minmax(44px, .28fr) minmax(70px, .4fr) minmax(70px, .36fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-row-main {
  display: grid !important;
  grid-column: 1 / 6 !important;
  grid-row: 1 !important;
  grid-template-columns: minmax(150px, .86fr) minmax(180px, 1.45fr) minmax(72px, .45fr) minmax(44px, .28fr) minmax(70px, .4fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-row-actions {
  display: flex !important;
  grid-column: 6 !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  min-width: 0 !important;
}

body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-table-head span:nth-child(n+3),
body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-cell-duration,
body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-cell-score,
body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-cell-status {
  text-align: center !important;
  justify-self: center !important;
}

body:has(#appView.workspace-shell:not(.hidden)) #recordHistoryPanel .record-table-head span:nth-child(6) {
  text-align: center !important;
  justify-self: center !important;
}
