/* Customer workspace: execution forms retain their existing layout and contracts. */
body.customer-console {
  --bg: #f5f7fb;
  --panel-soft: #f8f9fc;
  --ink: #17213a;
  --muted: #64718a;
  --line: #e0e6ef;
  --brand: #0038ff;
  --brand-dark: #002bc5;
  --accent: #0038ff;
  --accent-soft: #edf2ff;
  --shadow: 0 8px 28px rgba(29, 48, 88, .05);
  --shadow-soft: none;
  letter-spacing: -.025em;
}
.customer-console .shell { grid-template-columns: 238px minmax(0, 1fr); }
.customer-console .shell.side-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.customer-console .side { background: white; color: var(--ink); border-color: var(--line); padding: 28px 18px; gap: 30px; }
.customer-console .brand-mark { background: var(--brand); color: white; box-shadow: none; }
.customer-console .brand-text span, .customer-console .side-footer { color: var(--muted); }
.customer-console .side-toggle { background: white; border-color: var(--line); color: var(--muted); }
.customer-console .side-toggle:hover { background: var(--accent-soft); color: var(--brand); }
.customer-console .nav { gap: 5px; }
.customer-console .nav button { color: var(--muted); min-height: 46px; padding: 12px 16px; font-weight: 600; }
.customer-console .nav button:hover { background: var(--bg); border-color: transparent; color: var(--ink); }
.customer-console .nav button.active { background: var(--accent-soft); color: var(--brand); border-color: transparent; box-shadow: none; }
.customer-console .nav button[data-tab="commission"] { margin-top: 16px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 20px; }
.customer-console .nav button[data-tab="commission"].active { border-radius: 8px; }
.customer-console .main { padding: 0 40px 48px; }
.customer-console .topbar { margin: 0 -40px 34px; padding: 18px 40px; background: #fff; box-shadow: none; }
.customer-console .topbar h1 { font-size: 18px; }
.customer-console .topbar p { font-size: 12px; }
.customer-console :is(button, a, input, textarea, select):focus-visible { outline: 3px solid #85a4ff; outline-offset: 3px; }
.customer-console .btn { border-radius: 7px; }
.customer-console .btn.primary { background: var(--brand); border-color: var(--brand); color: white; box-shadow: none; }
.customer-console .btn.primary:hover { background: var(--brand-dark); }
.customer-console .tab-panel { max-width: 1180px; margin-inline: auto; }
.customer-home { row-gap: 32px; }
.customer-home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 0 2px; }
.customer-kicker { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 500; }
.customer-home-heading h2, .customer-commission-intro h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; letter-spacing: -.055em; font-weight: 750; }
.customer-home-heading h2 br { display: none; }
.customer-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.customer-section-title h3 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.customer-section-title > span { font-size: 12px; color: var(--muted); }
#customerOwnedCount { color: var(--brand); margin-left: 6px; font-size: 17px; }
.customer-owned-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.customer-employee { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.customer-employee-person { display: flex; align-items: center; gap: 18px; padding: 24px 22px 20px; }
.customer-employee-photo { width: 82px; height: 100px; object-fit: cover; object-position: center 20%; border-radius: 8px; background: var(--bg); flex: 0 0 auto; }
.customer-employee-person h4 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.04em; }
.customer-employee-person p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; word-break: keep-all; }
.customer-employee-person .pill { margin-top: 11px; font-size: 11px; padding: 3px 7px; }
.customer-employee-actions { padding: 0 22px 18px; }
.customer-employee-actions > .btn { width: 100%; min-height: 44px; font-weight: 650; }
.customer-employee-reason { font-size: 12px; color: var(--muted); line-height: 1.5; margin: -4px 0 12px; }
.customer-employee-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.customer-text-button, .customer-profile-commission { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.customer-text-button:hover, .customer-profile-commission:hover { color: var(--brand); }
.customer-employee-links [data-customer-customize] { color: var(--brand); }
.customer-console .customer-home .next-action { padding: 18px 22px; border: 1px solid #dce5ff; background: #edf2ff; box-shadow: none; }
.customer-home .next-action h2 { font-size: 16px; }
.customer-home .next-action p { font-size: 13px; }
.customer-recent { padding-top: 2px; }
.customer-job { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 17px 0; border-top: 1px solid var(--line); }
.customer-job strong { font-size: 14px; display: block; font-weight: 600; overflow-wrap: anywhere; }
.customer-job time { font-size: 12px; color: var(--muted); }
.customer-job .pill { font-size: 11px; }
.customer-empty { padding: 30px; background: white; border: 1px dashed #cbd5e8; border-radius: 10px; grid-column: 1 / -1; }
.customer-empty h4 { margin: 0 0 8px; font-size: 19px; }
.customer-empty p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.customer-empty-line { padding: 20px 0; margin: 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.customer-expand { margin-top: 8px; }
.customer-offers { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.customer-offer.customer-offer-single { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
.customer-offer-single .customer-offer-label { grid-column: 1 / -1; }
.customer-offer-single .customer-offer-link { grid-column: 2; grid-row: 2 / 4; align-self: center; }
.customer-commission-entry { min-width: 0; }
.customer-employee-choice { margin-bottom: 20px; }
.customer-employee-choice label { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.customer-employee-choice select { width: 100%; font-size: 16px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.customer-offer { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 26px 26px 26px 0; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.customer-offer + .customer-offer { padding-left: 30px; border-left: 1px solid var(--line); }
.customer-offer-label { font-size: 13px; color: var(--brand); font-weight: 650; }
.customer-offer strong { margin: 16px 0 12px; font-size: clamp(20px, 2.1vw, 27px); letter-spacing: -.045em; line-height: 1.35; }
.customer-offer > span:not(.customer-offer-label):not(.customer-offer-link) { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 320px; word-break: keep-all; }
.customer-offer-link { font-size: 13px; font-weight: 650; color: var(--brand); margin-top: 24px; text-decoration: underline; text-underline-offset: 5px; }
.customer-offer:hover .customer-offer-link { color: var(--brand-dark); }
.customer-companions { padding-top: 24px; border-top: 1px solid var(--line); }
.customer-companions h3 { font-size: 16px; color: var(--muted); }
#customerCompanionGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.customer-companion { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; }
.customer-companion img { width: 44px; height: 50px; object-fit: cover; object-position: center 20%; border-radius: 6px; }
.customer-companion div { flex: 1; min-width: 0; }
.customer-companion strong { display: block; font-size: 14px; }
.customer-companion p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.customer-companion .btn { font-size: 11px; padding: 8px 10px; flex-shrink: 0; }
.customer-commission-intro { margin: 4px 0 14px; }
.customer-commission-intro h2 br { display: none; }
.customer-commission-intro > p:last-child { font-size: 14px; color: var(--muted); margin-top: 16px; line-height: 1.6; word-break: keep-all; }
.customer-commission-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; margin-top: 24px; align-items: start; }
.customer-commission-context { padding: 12px 0; }
.customer-commission-context h3 { font-size: 23px; margin: 0 0 14px; letter-spacing: -.04em; }
.customer-commission-context p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 310px; word-break: keep-all; }
.customer-commission-context ul { list-style: none; padding: 8px 0 16px; margin: 0; }
.customer-commission-context li { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 12px 0; line-height: 1.6; }
.customer-commission-context a { font-size: 13px; color: var(--brand); text-underline-offset: 4px; }
.customer-profile-commission { padding: 12px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .customer-console .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .customer-console .main { padding-inline: 26px; }
  .customer-console .topbar { margin-inline: -26px; padding-inline: 26px; }
  .customer-owned-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-home-heading h2 br { display: block; }
  .customer-commission-layout { gap: 26px; }
}
@media (max-width: 900px) {
  .customer-console .shell, .customer-console .shell.side-collapsed { grid-template-columns: minmax(0, 1fr); }
  .customer-console .side, .customer-console .shell.side-collapsed .side { padding: 16px 20px 0; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .customer-console .side-toggle { display: none; }
  .customer-console .brand-mark { width: 32px; height: 32px; font-size: 13px; border-radius: 6px; }
  .customer-console .brand-text { display: flex; align-items: baseline; gap: 10px; }
  .customer-console .brand-text strong { font-size: 17px; }
  .customer-console .nav { display: flex; overflow-x: auto; margin: 0 -20px; padding: 0 14px 6px; gap: 3px; scrollbar-width: thin; }
  .customer-console .nav button, .customer-console .shell.side-collapsed .nav button { width: auto; flex-shrink: 0; white-space: nowrap; min-height: 40px; padding: 10px 12px; font-size: 13px; }
  .customer-console .nav button[data-tab="commission"] { margin: 0; border-top: 0; border-radius: 8px; }
  .customer-console .side-footer { display: block; position: absolute; top: 22px; right: 20px; margin: 0; }
  .customer-console .side-footer > span { display: none !important; }
  .customer-console .side-footer .btn { font-size: 11px; padding: 6px 9px; min-height: 0; }
  .customer-console .main { padding: 0 24px 40px; }
  .customer-console .topbar { position: static; margin: 0 -24px 26px; padding: 14px 24px; flex-direction: row; align-items: center; gap: 12px; }
  .customer-console .topbar h1 { font-size: 15px; }
  .customer-console .topbar p { display: none; }
  .customer-home-heading h2 { font-size: 31px; }
  .customer-owned-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-commission-layout { gap: 24px; grid-template-columns: 1fr; margin-top: 8px; }
  .customer-commission-context ul { display: none; }
  .customer-commission-context p { max-width: none; margin-bottom: 10px; }
  .customer-commission-context h3 { font-size: 20px; }
}
@media (max-width: 600px) {
  .customer-console .main { padding-inline: 20px; }
  .customer-console .topbar { margin-inline: -20px; padding-inline: 20px; }
  .customer-console .topbar .actions { gap: 6px; }
  .customer-console .topbar .btn { font-size: 11px; padding: 8px; }
  .customer-home { row-gap: 28px; }
  .customer-home-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .customer-home-heading h2 { font-size: 32px; }
  .customer-home-heading h2 br, .customer-commission-intro h2 br { display: block; }
  .customer-home-heading > .btn { font-size: 12px; padding: 9px 12px; }
  .customer-kicker { font-size: 12px; margin-bottom: 10px; }
  .customer-section-title h3 { font-size: 18px; }
  .customer-section-title > span { display: none; }
  .customer-owned-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .customer-employee-person { padding: 20px 20px 16px; gap: 20px; }
  .customer-employee-photo { width: 78px; height: 94px; }
  .customer-employee-actions { padding: 0 20px 18px; }
  .customer-employee-person h4 { font-size: 24px; }
  .customer-console .customer-home .next-action { padding: 18px; }
  .customer-job { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .customer-job time { grid-row: 2; font-size: 11px; }
  .customer-job .pill { grid-column: 2; grid-row: 1 / 3; }
  .customer-offers { grid-template-columns: 1fr; }
  .customer-offer.customer-offer-single { display: flex; }
  .customer-offer, .customer-offer + .customer-offer { padding: 24px 0; border-left: 0; }
  .customer-offer + .customer-offer { border-top: 1px solid var(--line); }
  .customer-offer strong { font-size: 24px; margin-top: 12px; }
  .customer-offer-link { margin-top: 18px; }
  #customerCompanionGrid { grid-template-columns: minmax(0, 1fr); }
  .customer-commission-intro h2 { font-size: 32px; }
  .customer-commission-intro > p:last-child { font-size: 13px; max-width: 240px; }
  .customer-commission-context { padding: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-console .main { scroll-behavior: auto; }
}
