.customer-center {
 max-width: 1280px;
 margin: auto;
 padding: 24px clamp(12px,3vw,32px) 40px;
}
.customer-center > h1 {
 margin: 0 0 12px; color: #142942; font-size: clamp(23px,3vw,32px);
 font-weight: 650; letter-spacing: -.02em;
}
.customer-center-layout > nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.customer-center-layout > nav a {
 display: inline-flex; gap: 6px; align-items: center; padding: 9px 12px;
 border-radius: 8px; color: #142942; text-decoration: none; font-weight: 500;
}
.customer-center-layout > nav a[aria-current],
.customer-center-layout > nav a:hover { background: #edf6f6; color: #17676d; }
.customer-center [data-center-count]:not([hidden]), .live-thread-count {
 background: #17676d; color: white; font-size: .72rem; font-weight: 700;
 padding: 1px 6px; border-radius: 999px;
}
.customer-center-content { min-width: 0; }
.customer-center-content > .order-center,
.customer-center-content > .account-page { padding-top: 0; }
body.customer-signed-in .header .desktop-cta { display: none; }
.customer-center-content > .live-consult { max-width: none; padding: 0; margin: 0; }
.customer-center .live-header[hidden] { display: none; }
.customer-center .live-message-notice {
 margin: 0 0 10px; padding: 8px 12px; border-radius: 8px;
 background: #dceeee; color: #17676d; font-size: .9rem; font-weight: 500;
}
.customer-center .live-message-notice[hidden] { display: none; }
.customer-center .live-layout {
 grid-template-columns: clamp(205px,26%,280px) minmax(0,1fr);
 gap: 12px;
 height: clamp(420px,calc(100dvh - 210px),850px);
}
.customer-center .live-layout > * { border: 0; background: #f5f8f8; min-height: 0; }
.customer-center .live-layout > nav { overflow: auto; scrollbar-gutter: stable; padding: 12px 8px; }
.customer-center .live-platform {
 display: flex; justify-content: space-between; gap: 6px; padding: 10px 8px; margin-bottom: 10px;
 font-weight: 600; color: #17676d; text-decoration: none; border-radius: 8px;
}
.customer-center .live-platform:hover { background: #e7f2f2; }
.customer-center .live-unread-filter { margin-left: 8px; color: #425a6a; }
.customer-center .live-thread-row {
 display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; align-items: center;
 margin: 0 0 4px; padding: 9px 7px; border: 0; background: transparent;
}
.customer-center .live-thread-row:hover,
.customer-center .live-thread-row[aria-pressed=true] { background: #e2efee; }
.live-thread-avatar {
 display: grid; place-items: center; width: 34px; height: 34px;
 border-radius: 8px; background: #d7e9e8; color: #17676d; font-weight: 700;
}
.live-thread-text { min-width: 0; }
.live-thread-text strong,.live-thread-text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live-thread-text strong { font-weight: 600; }
.live-thread-text small,.live-thread-meta small { color: #425a6a; }
.live-thread-meta { text-align: right; font-size: .82rem; }
.customer-center [data-thread] { display: flex; flex-direction: column; overflow: auto; overflow-wrap: anywhere; }
.customer-center [data-thread] > h2 { margin: 0 0 5px; font-size: 1.15rem; font-weight: 600; }
.customer-center [data-thread] > :not(.live-history) { flex-shrink: 0; }
.customer-center .live-history { flex: 1 1 auto; max-height: none; min-height: 70px; background: transparent; padding: 0; }
.customer-center .live-disabled, .customer-center [data-thread] > .live-status:empty { display: none; }
.customer-center [data-compose] { background: #eaf0f0; border-radius: 10px; padding: 10px; }
.customer-center [data-compose] textarea { border: 0; box-sizing: border-box; padding: 8px; max-height: 25dvh; font-size: 16px; }
.customer-center [data-compose] button, .customer-center .live-back { border: 0; }
.customer-center .live-quote,.customer-center .live-order { border: 0; }
@media (min-width: 701px) {
 .customer-center .live-back { display: none; }
}
@media (max-width: 700px) {
 .customer-center { padding: 16px 12px 28px; }
 .customer-center-layout > nav { margin-bottom: 12px; }
 .customer-center-layout > nav a { font-size: .85rem; padding: 8px; }
 .customer-center .live-layout { display: block; height: auto; }
 .customer-center .live-layout > nav { max-height: 62dvh; }
 .customer-center .live-layout[data-view="thread"] > nav,
 .customer-center .live-layout[data-view="list"] > [data-thread] { display: none; }
 .customer-center .live-layout[data-view="thread"] > [data-thread] {
  position: fixed; z-index: 100; inset: var(--chat-viewport-top, 0px) 0 auto;
  box-sizing: border-box; width: 100%; height: var(--chat-viewport-height, 100dvh);
  border-radius: 0; padding-bottom: max(14px, env(safe-area-inset-bottom));
 }
 .customer-center .live-back { display: block; align-self: start; margin-bottom: 8px; }
 .customer-center-content > .order-center,.customer-center-content > .account-page { padding-inline: 0; }
}

.account-personal { max-width: 900px; padding: 20px clamp(14px, 3vw, 28px); border-radius: 14px; background: #f5f8f8; }
.account-personal-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.account-personal-header h2 { margin: 0; }
.account-personal-header p { margin: 6px 0 0; overflow-wrap: anywhere; color: #425a6a; }
.account-personal h3 { margin: 22px 0 10px; }
.account-personal .account-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.account-personal .account-grid label { min-width: 0; }
.account-personal .account-grid :is(input, select) { max-width: 100%; }
.account-personal .account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.account-personal #account-status { color: #17676d; }
.account-personal #account-error:empty { display: none; }
.account-personal label { display: block; font-size: 14px; font-weight: 600; margin: 8px 0; color: #142942; }
.account-personal .account-grid :is(input:not([type=checkbox]), select) {
 display: block; box-sizing: border-box; width: 100%; padding: 10px;
 margin-top: 6px; border: 0; border-radius: 8px; background: white; color: #142942;
}
.account-personal-header .account-text { margin-top: 0; }

.account-personal,
.customer-center-content > .order-center {
 box-sizing: border-box;
 max-width: 900px;
 margin-inline: auto;
}

.customer-center-content > .order-center { padding: 0 0 24px; }
.customer-center .order-center h1 { margin: 0 0 8px; font-size: 1.5rem; }
.customer-center .order-center > p { margin: 0 0 16px; color: #425a6a; }
.customer-center .order-center > label { display: inline-flex; align-items: center; gap: 8px; }
.customer-center .order-center select {
 border: 0; background: #edf6f6; color: #17676d;
}
.customer-center .order-grid { gap: 12px; margin-top: 16px; }
.customer-center .order-list-card,
.customer-center .order-detail {
 padding: clamp(14px, 3vw, 24px); border: 0; border-radius: 14px; background: #f5f8f8;
}
.customer-center .order-detail { max-width: none; margin: 16px 0 0; }
.customer-center .order-list-card:hover { background: #edf6f6; box-shadow: none; }
.customer-center .order-list-card:focus-visible { outline: 2px solid #17676d; outline-offset: 2px; box-shadow: none; }
.customer-center .order-list-card h2,
.customer-center .order-detail h2 { font-size: 1.15rem; }
.customer-center .order-review-result,
.customer-center .order-timeline,
.customer-center [data-lifecycle] { border: 0; }
.customer-center .order-timeline li { border: 0; }

html { scrollbar-gutter: stable; }
.customer-center > h1,
.customer-center > .customer-center-layout { max-width: 960px; margin-inline: auto; }
.customer-center .account-personal,
.customer-center-content > .order-center { max-width: none; }
.customer-center .live-layout > nav .live-platform {
 width: 100%; min-height: 42px; margin: 0 0 12px;
 padding: 8px 12px; text-align: center; background: #dceeee; border: 0; color: #17676d;
}
.customer-center .live-layout > nav .live-platform:hover { background: #cee5e4; }
.account-personal .account-name-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.account-personal .account-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.account-family-name .account-check { font-size: 13px; font-weight: 400; margin-bottom: 0; }
@media (max-width: 600px) {
 .account-personal .account-name-grid,
 .account-personal .account-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Healinq Clarity — customer center implementation. */
.customer-center {
 --cc-ink:#173746; --cc-text:#38515d; --cc-muted:#71858e; --cc-line:#dce6e9;
 --cc-soft:#e8f2f1; --cc-canvas:#f4f7f7; --cc-accent:#287e84;
 max-width:1180px; padding:20px clamp(14px,2.5vw,28px) 32px; color:var(--cc-text);
}
.customer-center>h1,.customer-center>.customer-center-layout { max-width:none; }
.customer-center>h1 { margin:0 0 10px; color:var(--cc-ink); font-size:26px; font-weight:650; }
.customer-center-layout>nav { gap:5px; margin-bottom:14px; }
.customer-center-layout>nav a {
 min-height:34px; box-sizing:border-box; padding:7px 11px; border-radius:8px;
 color:var(--cc-ink); font-size:13px; font-weight:550;
}
.customer-center-layout>nav a[aria-current],.customer-center-layout>nav a:hover { background:var(--cc-soft); color:#1f6f74; }
.customer-center [data-center-count]:not([hidden]) { background:var(--cc-accent); font-size:10px; font-weight:600; }

/* Messages: calm two-column workspace, lighter than the institution console. */
.customer-center .live-layout {
 grid-template-columns:260px minmax(0,1fr); gap:0; height:clamp(500px,calc(100dvh - 190px),780px);
 overflow:hidden; border:1px solid var(--cc-line); border-radius:10px; background:#fff;
}
.customer-center .live-layout>* { border:0; border-radius:0; background:#fff; }
.customer-center .live-layout>nav {
 padding:12px 10px; overflow:auto; border-right:1px solid var(--cc-line); background:#f8fafa;
}
.customer-center .live-layout>nav .live-platform {
 min-height:36px; margin:0 0 10px; padding:8px 10px; border:1px solid #d4e5e4;
 border-radius:8px; background:#edf6f5; color:#226e73; font-size:12px; font-weight:600;
}
.customer-center .live-unread-filter { margin:4px 8px 10px; color:var(--cc-muted); font-size:12px; }
.customer-center .live-thread-row { grid-template-columns:32px minmax(0,1fr) auto; gap:8px; margin:0 0 3px; padding:9px 8px; border-radius:8px; }
.customer-center .live-thread-row:hover,.customer-center .live-thread-row[aria-pressed=true] { background:#e4f0ef; }
.customer-center .live-thread-avatar { width:32px; height:32px; border-radius:8px; font-size:12px; }
.customer-center .live-thread-text strong { color:var(--cc-ink); font-size:12px; font-weight:600; }
.customer-center .live-thread-text small,.customer-center .live-thread-meta small { color:var(--cc-muted); font-size:10px; }
.customer-center [data-thread] { min-width:0; overflow:hidden; background:#fff; }
.customer-center .live-thread-head { min-height:58px; box-sizing:border-box; padding:12px 16px; border-bottom:1px solid var(--cc-line); }
.customer-center .live-thread-identity h2 { color:var(--cc-ink); font-size:15px; font-weight:600; }
.customer-center .live-thread-identity .live-status { font-size:11px; }
.customer-center .live-history {
 flex:1; min-height:0; max-height:none; margin:0; padding:18px 20px; border-radius:0; background:var(--cc-canvas);
}
.customer-center .live-history article { max-width:72%; margin-bottom:10px; padding:9px 12px; border:1px solid #e1e9ea; border-radius:9px; box-shadow:0 1px 2px #17374608; }
.customer-center .live-history .live-mine { border-color:#d0e6e2; background:#dcefeb; }
.customer-center .live-history article>small:first-child { color:var(--cc-muted); font-size:10px; }
.customer-center .live-history article p { color:var(--cc-ink); font-size:13px; line-height:1.55; }
.customer-center [data-compose].live-compose {
 flex:none; display:flex; align-items:center; flex-wrap:wrap; gap:7px 9px;
 margin:0; padding:10px 14px; border-top:1px solid var(--cc-line); border-radius:0; background:#fff;
}
.customer-center .live-compose-field { flex:0 0 100%; }
.customer-center [data-compose] textarea {
 width:100%; height:54px; min-height:54px; margin:0; padding:9px 10px; resize:none;
 border:1px solid #d6e1e4; border-radius:8px; background:#fbfcfc; color:var(--cc-ink); font-size:13px;
}
.customer-center .live-translation-preview { flex:0 0 100%; margin:0; padding:8px 10px; border-left-width:2px; background:#f1f7f6; font-size:12px; }
.customer-center .live-translation-actions { margin:0; gap:6px; }
.customer-center .live-translation-actions small { color:var(--cc-muted); font-size:10px; }
.customer-center .live-translation-actions button,.customer-center .live-compose-actions button,.customer-center .live-attachment {
 min-height:32px; box-sizing:border-box; padding:6px 10px; border:1px solid #d5e1e4;
 border-radius:7px; background:#fff; color:#476874; font-size:11px; cursor:pointer;
}
.customer-center .live-compose-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
.customer-center .live-attachment input { display:none; }
.customer-center [data-file] { max-width:130px; overflow:hidden; color:var(--cc-muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.customer-center .live-send { padding-inline:15px!important; border-color:var(--cc-accent)!important; background:var(--cc-accent)!important; color:#fff!important; }
.customer-center .live-compose-status { margin:0; color:#39777a; font-size:10px; }
.customer-center .live-compose-status:empty { display:none; }

/* Orders and personal information share the same restrained information surfaces. */
.customer-center-content>.order-center,.customer-center .account-personal { max-width:none; margin:0; }
.customer-center .order-center h1,.customer-center .account-personal-header h2 { color:var(--cc-ink); font-size:20px; font-weight:650; }
.customer-center .order-center>p,.customer-center .account-personal-header p { color:var(--cc-muted); font-size:12px; }
.customer-center .order-center select { min-height:34px; padding:6px 30px 6px 10px; border:1px solid var(--cc-line); border-radius:8px; background:#fff; font-size:12px; }
.customer-center .order-grid { gap:14px; }
.customer-center .order-empty {
 display:flex; align-items:center; gap:12px; grid-column:1/-1; width:100%; box-sizing:border-box;
 padding:16px; border:1px dashed #cddcdf; border-radius:10px; background:#fbfcfc;
}
.customer-center .order-empty>span { display:grid; place-items:center; width:34px; height:34px; border-radius:8px; background:var(--cc-soft); color:var(--cc-accent); }
.customer-center .order-empty strong { display:block; margin-bottom:3px; color:var(--cc-ink); font-size:13px; font-weight:600; }
.customer-center .order-empty p { margin:0; color:var(--cc-muted); font-size:12px; line-height:1.6; }
.customer-center .order-list-card,.customer-center .order-detail,.customer-center .account-personal {
 padding:18px; border:1px solid var(--cc-line); border-radius:10px; background:#fff; box-shadow:0 1px 2px #17374608;
}
.customer-center .account-personal-header { margin-bottom:14px; }
.customer-center .account-personal h3 { margin:18px 0 8px; color:var(--cc-ink); font-size:14px; }
.customer-center .account-personal label { color:var(--cc-text); font-size:12px; font-weight:550; }
.customer-center .account-personal .account-grid :is(input:not([type=checkbox]),select) {
 min-height:36px; padding:8px 10px; border:1px solid #d6e1e4; border-radius:7px; background:#fbfcfc; font-size:13px;
}
.customer-center .account-personal .account-actions button { min-height:34px; padding:7px 12px; border-radius:8px; font-size:12px; }

@media(max-width:700px) {
 .customer-center { padding:14px 12px 24px; }
 .customer-center>h1 { font-size:22px; }
 .customer-center-layout>nav { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
 .customer-center-layout>nav::-webkit-scrollbar { display:none; }
 .customer-center-layout>nav a { flex:0 0 auto; }
 .customer-center .live-layout { display:block; height:auto; border-radius:9px; }
 .customer-center .live-layout>nav { max-height:calc(100dvh - 205px); border-right:0; }
 .customer-center .live-layout[data-view="thread"]>[data-thread] { background:#fff; }
 .customer-center .live-thread-head { min-height:54px; padding:10px 12px; }
 .customer-center .live-history { padding:14px 12px; }
 .customer-center .live-history article { max-width:88%; }
 .customer-center [data-compose].live-compose { padding:9px 10px max(9px,env(safe-area-inset-bottom)); }
 .customer-center .live-compose-actions { margin-left:0; }
 .customer-center .live-translation-actions { margin-right:auto; }
 .customer-center .order-list-card,.customer-center .order-detail,.customer-center .account-personal { padding:15px; }
}
