/* Inline customer file: scope all rules, inherit MH type and color tokens. */
.customer-detail{min-width:0;max-width:100%;color:var(--ink)}
.customer-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:26px}
.customer-detail button{min-height:44px;font-size:12px}.customer-detail button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.customer-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:30px}
.customer-detail-heading>div{min-width:0}.customer-detail-heading h1{max-width:28ch;overflow-wrap:anywhere;margin-bottom:14px}.customer-detail-heading>button{flex-shrink:0}
.customer-detail-origin{font-size:12px;color:var(--muted);margin:0 0 10px}.customer-detail-status{display:inline-block;padding:6px 10px;background:var(--surface-soft);color:var(--ink-secondary);border-radius:5px;font-size:12px;overflow-wrap:anywhere;max-width:100%}
.customer-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.customer-detail-section{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--panel-shadow,none);padding:20px 22px;margin-bottom:18px}.customer-detail-section h2{font-size:16px;letter-spacing:-.025em;margin-bottom:17px}.customer-detail-section h3{font-size:14px;margin-bottom:12px;overflow-wrap:anywhere}.customer-detail-section p{font-size:12px;max-width:85ch;overflow-wrap:anywhere}
.customer-detail dl{margin:0;display:grid;gap:13px;font-size:12px}.customer-detail dl>div{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(0,1.25fr);gap:14px}.customer-detail dt{color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.customer-detail dd{margin:0;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
.customer-detail .customer-detail-caption{font-size:11px;color:var(--muted);line-height:1.75;margin-top:17px}.customer-detail-caption span{display:block;overflow-wrap:anywhere}
.customer-detail-subscription+.customer-detail-subscription{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.customer-detail-subscription-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:13px}.customer-detail-subscription-head h3{margin:0;color:var(--accent-deep)}
.customer-detail .customer-detail-account-email{margin:0 0 12px;color:var(--muted);font-size:12px}
.customer-detail-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.customer-detail-accounts article{min-width:0}.customer-detail-accounts h3{font-weight:600}
.customer-detail .customer-detail-notes{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0;line-height:1.8}
.customer-detail-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:18px;flex-wrap:wrap}.customer-detail-section-head span{font-size:11px;color:var(--muted)}
.customer-detail-private{border-top:2px solid var(--accent)}
.customer-detail-agreement{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr);gap:28px;padding:22px 0;border-top:1px solid var(--line)}.customer-detail-agreement>div>span,.customer-detail-agreement small{display:block;font-size:11px;color:var(--muted);line-height:1.7}.customer-detail-agreement>div>strong{display:block;font-size:28px;font-weight:550;letter-spacing:-.04em;margin:10px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.customer-detail-payment-state{padding-top:22px;border-top:1px solid var(--line)}.customer-detail-payment-state>strong{display:block;font-size:13px;margin-bottom:8px}.customer-detail-payment-state h3{font-size:16px}.customer-detail-payment-state p{margin-bottom:0}
.customer-detail-payment-state .customer-detail-section-head{align-items:center;margin-bottom:8px}.customer-detail-payment-state h3{margin:0;font-size:14px}.customer-detail-payment-state strong{font-size:11px;font-weight:500;color:var(--muted)}.customer-detail-payment-state p{margin:0}
.customer-detail-technical{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--panel-shadow,none);padding:0 22px;margin-bottom:18px}.customer-detail-technical summary{cursor:pointer;font-size:12px;font-weight:500;color:var(--ink-secondary);padding:18px 0;min-height:56px}.customer-detail-technical summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.customer-detail-technical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:4px 0 22px}.customer-detail-technical-grid>section{min-width:0}.customer-detail-technical h3{font-size:13px;margin-bottom:12px;overflow-wrap:anywhere}.customer-detail-event-sources{border-top:1px solid var(--line);padding:18px 0}.customer-detail-event-sources ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.customer-detail-event-sources li{min-width:0}.customer-detail-event-sources li>strong{display:block;font-size:12px;margin-bottom:10px}
.customer-detail-timeline{list-style:none;padding:0;margin:6px 0 0}.customer-detail-timeline li{position:relative;padding:0 0 24px 20px;border-left:1px solid var(--line);margin-left:3px}.customer-detail-timeline li:before{content:'';position:absolute;left:-3px;top:5px;width:5px;height:5px;border-radius:50%;background:var(--muted)}.customer-detail-timeline li>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;font-size:13px}.customer-detail-timeline strong{font-weight:500}.customer-detail-timeline time{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.customer-detail-timeline p{margin:7px 0;font-size:12px}.customer-detail-timeline small{font-size:10px;color:var(--muted);line-height:1.7}.customer-detail-timeline .customer-detail-caption{margin:8px 0 0}
.customer-detail .customer-detail-stamp{font-size:11px;color:var(--muted);line-height:1.8;margin:0;border-top:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere}
.customer-detail-warning,.customer-detail-error{border-left:2px solid var(--accent);padding:12px 16px;background:var(--paper);color:var(--ink)}
.customer-detail-tasks{list-style:none;padding:0;margin:14px 0 0}.customer-detail-tasks li{display:grid;grid-template-columns:minmax(0,1fr) auto auto minmax(80px,.35fr);gap:14px;align-items:center;border-top:1px solid var(--line);padding:8px 0}.customer-detail-tasks button{text-align:left;overflow-wrap:anywhere;line-height:1.5}.customer-detail-tasks span,.customer-detail-tasks time{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.customer-detail [data-customer-tasks] .customer-detail-section-head{align-items:center}.customer-detail [data-customer-tasks] h2{margin:0}
@media(max-width:700px){.customer-detail-tasks li{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 14px}.customer-detail-tasks button{grid-column:1/-1}.customer-detail-tasks li>span:last-child{grid-column:1/-1}.customer-detail [data-customer-tasks] .customer-detail-section-head{gap:8px}}
@media(max-width:1000px){.customer-detail-grid{grid-template-columns:1fr;gap:0}.customer-detail-accounts{grid-template-columns:1fr}.customer-detail-accounts article+article{border-top:1px solid var(--line);padding-top:22px}}
@media(max-width:600px){.customer-detail-heading{flex-direction:column;gap:18px}.customer-detail-heading h1{font-size:29px}.customer-detail-agreement{grid-template-columns:1fr;gap:20px}.customer-detail-private{padding-left:15px;padding-right:15px}.customer-detail dl>div{grid-template-columns:minmax(90px,.75fr) minmax(0,1.25fr);gap:10px}.customer-detail-section-head{gap:0;margin-bottom:14px}.customer-detail-section-head h2{margin-bottom:8px}.customer-detail-timeline li>div{flex-direction:column;gap:6px}.customer-detail-nav{gap:8px}.customer-detail-nav button{padding:10px}}
@media(prefers-reduced-motion:reduce){.customer-detail *{transition:none;animation:none}}
@media(max-width:600px){.customer-detail-section{padding:18px 16px}.customer-detail-technical{padding:0 16px}.customer-detail-technical-grid,.customer-detail-event-sources ul{grid-template-columns:1fr;gap:20px}}
