.customer-hub{--customer-glow:color-mix(in srgb,var(--accent) 14%,transparent);font-size:16px}.customer-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-bottom:14px;color:var(--muted);text-decoration:none}.customer-back:hover{color:var(--accent)}.customer-back svg{width:20px}.customer-hero{padding:26px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at 90% 0,var(--customer-glow),transparent 65%),var(--surface);box-shadow:0 14px 38px #00000012;position:relative;overflow:hidden}.customer-hero:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--accent),transparent 75%)}.customer-identity{display:flex;align-items:center;gap:20px;min-width:0}.customer-identity>div:last-child{min-width:0}.customer-avatar{display:grid;place-items:center;flex-shrink:0;width:76px;aspect-ratio:1;border:1px solid var(--accent);border-radius:22px;background:linear-gradient(145deg,var(--customer-glow),var(--soft));color:var(--accent);font-size:26px;font-weight:800;box-shadow:inset 0 0 24px var(--customer-glow)}.customer-identity h1{font-size:clamp(25px,3vw,36px);line-height:1.2;margin:7px 0 12px;overflow-wrap:anywhere}.customer-identity .eyebrow{font-size:16px}.customer-contact{display:flex;flex-wrap:wrap;gap:10px 24px;color:var(--muted);line-height:1.5}.customer-contact span{display:flex;gap:9px;align-items:center;overflow-wrap:anywhere;min-width:0}.customer-contact svg{width:18px;flex-shrink:0}.customer-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.customer-hub .button,.customer-hub input,.customer-notes-form{font-size:16px}.customer-hub .button{min-height:46px}.customer-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.customer-kpis>div{display:flex;flex-direction:column;gap:6px}.customer-kpis span,.customer-kpis small{font-size:16px;color:var(--muted);line-height:1.4}.customer-kpis strong{font-size:clamp(24px,2.5vw,32px);letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.customer-hub-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;margin-top:26px;align-items:start}.customer-workspace,.customer-context{min-width:0}.customer-context{display:grid;gap:18px}.customer-context .panel{padding:22px;border-radius:20px}.customer-context h2{font-size:19px;display:flex;gap:10px;align-items:center;margin:0 0 14px}.customer-context h2 svg{width:21px;color:var(--accent);flex-shrink:0}.customer-context p,.customer-context small{font-size:16px;line-height:1.6;color:var(--muted)}.customer-context .button{width:100%;margin-top:10px;white-space:normal;text-align:left}.customer-notes small{display:block;margin-top:14px}.customer-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}.customer-tabs button{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.customer-tabs svg{width:21px}.customer-tabs button.active{background:var(--customer-glow);border-color:var(--accent);color:var(--ink);box-shadow:inset 0 -2px var(--accent)}.customer-service-filters{display:flex;flex-wrap:wrap;gap:9px}.customer-service-filters .button{background:var(--surface);padding:9px 13px}.customer-service-filters [aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.customer-service-filters span{border-radius:7px;background:var(--soft);padding:2px 7px;font-variant-numeric:tabular-nums}.customer-search{display:flex;gap:10px;margin:18px 0 12px}.customer-search .search-field{flex:1;min-width:0;margin:0}.customer-help{font-size:16px;line-height:1.6;color:var(--muted);margin:12px 0 18px}.customer-service-list{display:grid;gap:16px}.customer-service{display:flex;gap:16px;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);transition:border-color .18s,box-shadow .18s}.customer-service:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:0 8px 28px #00000012}.customer-service.due{border-inline-start:3px solid var(--accent)}.customer-service-mark{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:13px;background:var(--customer-glow);color:var(--accent)}.customer-service-mark svg{width:22px}.customer-service-main{flex:1;min-width:0}.customer-service-heading{display:flex;gap:12px;align-items:start;justify-content:space-between}.customer-reference{font-size:16px;color:var(--muted);line-height:1.5}.customer-service h3{font-size:21px;line-height:1.4;margin:6px 0 10px;overflow-wrap:anywhere}.customer-service .badge{font-size:16px;white-space:nowrap}.customer-components{list-style:none;padding:0;margin:2px 0 16px;display:flex;gap:6px 12px;flex-wrap:wrap;color:var(--muted);font-size:16px}.customer-components li:before{content:'·';color:var(--accent);margin-right:7px}.customer-service-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0 18px}.customer-service-facts>div{display:flex;flex-direction:column;gap:6px}.customer-service-facts span,.customer-service-facts small{font-size:16px;color:var(--muted)}.customer-service-facts strong{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.customer-service-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.customer-renewal-status{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--muted);line-height:1.5}.customer-renewal-status svg{width:18px;flex-shrink:0}.customer-hub button:focus-visible,.customer-back:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.customer-notes-form p{line-height:1.6}.customer-notes-form textarea{display:block;width:100%;font:inherit;line-height:1.6;margin-top:10px;resize:vertical}.customer-note-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:16px}.customer-note-comparison{margin-top:16px;padding:18px;background:var(--soft);border-radius:14px;border:1px solid var(--line)}.customer-note-comparison p{white-space:pre-wrap;overflow-wrap:anywhere}.customer-hub .pagination{flex-wrap:wrap}.customer-hub .pagination span{font-size:16px}.customer-hub .table-wrap{max-width:100%}
@media(min-width:1500px){.customer-hero{display:grid;grid-template-columns:1fr auto;gap:0 24px}.customer-hero-actions{align-content:center;margin-top:0;max-width:410px}.customer-kpis{grid-column:1/-1}}
@media(max-width:1150px){.customer-hub-layout{grid-template-columns:minmax(0,1fr)}.customer-context{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.customer-hero{padding:20px;border-radius:20px}.customer-identity{gap:14px;align-items:start}.customer-avatar{width:50px;border-radius:15px;font-size:20px}.customer-contact{flex-direction:column;gap:9px}.customer-hero-actions{display:grid;grid-template-columns:1fr 1fr}.customer-hero-actions>button:first-child{grid-column:1/-1}.customer-hero-actions .button{padding:10px;justify-content:center}.customer-hero .eyebrow{letter-spacing:0}.customer-identity h1{font-size:25px}.customer-kpis{gap:20px 14px}.customer-kpis strong{font-size:24px}.customer-context{grid-template-columns:1fr}.customer-service{padding:18px 16px;gap:0}.customer-service-mark{display:none}.customer-service-heading{flex-wrap:wrap}.customer-service h3{font-size:21px}.customer-service-facts{grid-template-columns:1fr;gap:16px}.customer-tabs button{flex:1;justify-content:center;padding:10px;line-height:1.4}.customer-search{flex-wrap:wrap}.customer-search .search-field{flex-basis:210px}.customer-search .button{flex:1}.customer-service-actions .button{flex:1;justify-content:center}.customer-hub .pagination{gap:12px}.customer-hub .pagination>div{width:100%;display:flex}.customer-hub .pagination .button{flex:1}}
@media(prefers-reduced-motion:reduce){.customer-hub *{transition:none!important;animation:none!important}}
.customer-service-filters [aria-pressed=true]{color:var(--ink);box-shadow:inset 0 -2px var(--accent)}
@media(max-width:680px){.customer-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.customer-hero-actions .button,.customer-service-actions .button{min-width:0;white-space:normal;line-height:1.4}.customer-hero-actions .button{flex-direction:column;gap:6px}.customer-hero-actions .button:first-child{flex-direction:row}.customer-hero .eyebrow{font-size:16px;line-height:1.5}.customer-contact span{overflow-wrap:anywhere}}

.customer-held-note{font-size:16px;line-height:1.5;color:var(--muted);padding:12px 14px;background:var(--soft);border-inline-start:3px solid var(--accent);border-radius:0 10px 10px 0}.customer-more-filters{font-size:16px;min-width:0}.customer-more-filters summary{display:flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;cursor:pointer;list-style:none}.customer-more-filters summary:after{content:"＋";margin-left:8px}.customer-more-filters[open]{flex-basis:100%}.customer-more-filters[open] summary{width:fit-content}.customer-more-filters[open] summary:after{content:"−"}.customer-more-filters>div{display:flex;flex-wrap:wrap;gap:9px;margin-top:9px}.customer-more-filters summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Source history: customer-scoped, readable and compact on narrow screens. */
.customer-source{font-size:16px;line-height:1.5;min-width:0}.customer-source-toolbar,.customer-source-filters>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.customer-source label{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--muted)}.customer-source select{width:100%;max-width:100%;min-width:0;min-height:46px;font-size:16px}.customer-source-filters{margin:12px 0}.customer-source-filters summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--accent)}.customer-source-filters>div{padding:10px 0}.customer-source-orders{list-style:none;display:grid;gap:12px;padding:0;margin:0}.customer-source-orders li{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:16px;min-width:0}.customer-source-heading{display:flex;justify-content:space-between;gap:10px;align-items:start;flex-wrap:wrap}.customer-source-heading strong{font-size:18px;overflow-wrap:anywhere;flex:1;min-width:120px}.customer-source .badge{font-size:16px;white-space:normal}.customer-source-category{display:block;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.customer-source-order-bottom{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:12px}.customer-source-order-bottom>span{color:var(--muted)}.customer-source-pager{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:16px}.customer-source-detail{font-size:16px;line-height:1.6}.customer-source-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-source-detail dt{color:var(--muted)}.customer-source-detail dd{margin:3px 0 0;overflow-wrap:anywhere;font-weight:600}.customer-source-modal .modal-heading button{min-width:44px;min-height:44px;font-size:16px}.customer-source-modal .modal-heading button svg{width:22px;height:22px}.customer-source [aria-busy=true]{opacity:.7}
@media(max-width:680px){.customer-source-detail dl{grid-template-columns:1fr}.customer-tabs button{flex:0 1 auto;max-width:100%;text-align:left;justify-content:flex-start}.customer-source-order-bottom .button{margin-left:auto}.customer-source .customer-service-filters{gap:6px}.customer-source .customer-service-filters .button{padding:8px 9px;gap:6px}}
