.customers-page { font-size: 15px; line-height: 1.5; --muted: #53675f; }
.customers-page [hidden] { display: none !important; }
.customers-page .button { min-height: 44px; font-size: 13px; }
.customers-page .button:disabled { cursor: default; }
.customers-page :is(button, a, input, textarea):focus-visible { outline: 3px solid #ba780c; outline-offset: 3px; }
.customers-page :is(input, textarea) { font-size: 16px; }
.customers-page a { color: var(--green); }
.customers-page h3 { font-size: 17px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 14px; background: #fff; }
.skip-link:focus { top: 12px; }
.customer-header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 18px clamp(18px, 4vw, 54px); color: #fff; background: #10382e; }
.customer-header .brand { padding: 0; flex-shrink: 0; }
.customer-header .brand strong { color: #fff; }
.customer-header .brand small { font-size: 11px; }
.customer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.customer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; color: #dcebe5; border-radius: 8px; text-decoration: none; font-size: 14px; }
.customer-nav a[aria-current="page"] { color: #fff; background: #295248; box-shadow: inset 0 -3px #e6ad57; }
.customer-nav a:hover { background: #295248; }
.customer-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; font-size: 13px; }
.customer-workspace { max-width: 1600px; margin: auto; padding: 32px clamp(16px, 4vw, 54px) 60px; }
.customer-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.customer-heading h1 { margin-bottom: 12px; }
.customer-intro { max-width: 680px; margin: 0; color: var(--muted); }
.customer-refresh { display: grid; justify-items: end; gap: 6px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.customer-refresh .button { margin-top: 3px; }
.customer-status:not(:empty) { margin-bottom: 16px; padding: 12px 16px; border: 1px solid #c9ded2; border-radius: 10px; background: #eaf5ee; color: #164733; }
.customer-status[data-tone="error"] { border-color: #e3b9b0; background: #fff1ec; color: #873226; }
.customer-status[data-tone="warning"] { border-color: #e0c184; background: #fff5dc; color: #644707; }
.customer-columns { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.6fr); gap: 22px; align-items: start; }
.customer-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 35px #183b3008; }
.customer-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.customer-panel-heading h2 { margin-bottom: 0; overflow-wrap: anywhere; }
.customer-list-panel .customer-panel-heading h2 { font-size: 23px; }
.customers-page label { display: block; margin-bottom: 7px; color: #203c32; font-size: 14px; font-weight: 700; }
.customer-search-controls { display: flex; gap: 8px; }
.customer-search-controls input { min-width: 0; }
.customer-meta, .customer-help { color: var(--muted); font-size: 13px; }
.customer-meta { margin: 12px 0; }
.customer-help { margin: 10px 0 16px; }
.customer-list, .customer-references, .reference-results { margin: 0; padding: 0; list-style: none; }
.customer-list { display: grid; gap: 8px; }
.customer-list a { display: block; padding: 13px; border: 1px solid #dfe7e4; border-radius: 9px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.customer-list a:hover { background: #f3f8f5; }
.customer-list a[aria-current="true"] { border-color: #387861; background: #eaf4ed; box-shadow: inset 3px 0 #205a44; }
.customer-list strong, .customer-list span { display: block; }
.customer-list span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.customer-empty { padding: 30px 5px; color: var(--muted); }
.customer-empty p { margin-bottom: 0; }
.customer-pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.customer-form > input, .customer-form > textarea, .customer-field-grid { margin-bottom: 16px; }
.customer-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional-label, .required-label { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.customer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0 0; }
.customer-actions .customer-meta { margin: 0; }
.customer-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.customer-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.customer-section-heading h3 { margin-bottom: 0; }
.customer-tag { display: inline-block; border: 1px solid #bfd3c7; padding: 4px 8px; border-radius: 6px; color: #244e3b; background: #edf5ef; font-size: 12px; }
.customer-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.customer-flags .customer-tag { border-color: #e0c184; color: #644707; background: #fff5dc; }
.customer-notice { padding: 16px; margin: 18px 0; border: 1px solid #dfbf82; border-radius: 10px; color: #5b420e; background: #fff7e4; }
.customer-notice p:last-child { margin-bottom: 0; }
.customer-reference-choice { padding: 15px; border: 1px solid #b4ccbd; border-radius: 10px; background: #f1f7f3; margin-top: 12px; }
.customer-facts { margin: 10px 0; }
.customer-facts div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; margin: 5px 0; font-size: 13px; }
.customer-facts dt { color: var(--muted); }
.customer-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-references li { padding: 13px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.customer-references .customer-tag { margin: 6px 0; }
.reference-results { display: grid; gap: 8px; }
.reference-results button { display: block; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.reference-results button:hover { background: #f3f8f5; }
.reference-results strong, .reference-results span { display: block; overflow-wrap: anywhere; }
.reference-results span { font-size: 13px; margin-top: 3px; color: var(--muted); }
.customer-activity { margin: 25px 0 0; padding: 0; list-style: none; }
.customer-activity > li { border-top: 1px solid var(--line); padding: 18px 0; }
.customer-activity h4 { margin: 0 0 5px; font-size: 15px; }
.customer-activity .customer-meta { margin: 4px 0 10px; }
.customer-note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; margin: 9px 0; }
.customer-activity blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #aec8b9; background: #f4f7f5; }
.customer-activity a { text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .customer-account { margin-left: 0; }
  .customer-columns { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.3fr); gap: 16px; }
  .customer-panel { padding: 18px; }
  .customer-field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .customer-header { gap: 14px; padding: 16px; }
  .customer-header .brand { display: flex; }
  .customer-nav { order: 3; width: 100%; }
  .customer-account { margin-left: auto; }
  .customer-account span { max-width: 130px; overflow-wrap: anywhere; }
  .customer-heading { flex-direction: column; gap: 16px; }
  .customer-refresh { justify-items: start; }
  .customer-columns { grid-template-columns: 1fr; }
  .customer-list { max-height: 370px; overflow: auto; padding: 3px; }
  .customer-workspace { padding-top: 24px; }
  .customer-nav a { padding-inline: 8px; font-size: 13px; }
  .customer-facts div { grid-template-columns: 85px minmax(0, 1fr); }
  .customer-actions .button { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) { .customers-page .button { transition: none; } .customers-page .button:hover { transform: none; } }
@media (forced-colors: active) { .customer-list a[aria-current="true"], .customer-nav a[aria-current="page"] { outline: 2px solid Highlight; } }
