.customer-body { background: #f7f6fb; }
.customer-app { display: grid; grid-template-columns: minmax(13rem, 15.1rem) minmax(0, 1fr); min-block-size: 100vh; }
.customer-side {
  position: sticky; inset-block-start: 0; align-self: start; block-size: 100dvh;
  display: flex; flex-direction: column; padding: 1.25rem 1rem; overflow: auto;
  background: #1d1834; color: #fbfbfe; --focus: #e0d9fc;
}
.customer-brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; line-height: 1.4; max-inline-size: 100%; }
.customer-brand:hover { color: inherit; }
.customer-brand img { width: 2.7rem; height: 2.7rem; border-radius: .75rem; }
.customer-brand strong, .customer-brand small { display: block; }
.customer-brand strong { font-size: 1.16rem; font-weight: 900; }
.customer-brand small { font-size: .79rem; opacity: .8; }
.customer-review { border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; width: min(100% - 2rem, 35rem); max-height: 85dvh; color: var(--text); background: var(--white); }
.customer-review::backdrop { background: rgb(29 24 52 / 55%); }
.customer-review h2 { margin-block: 0 .6rem; }
.customer-review li { overflow-wrap: anywhere; }
.customer-side .customer-brand { margin: .25rem .4rem 1.35rem; }
.customer-side nav { display: grid; gap: .2rem; }
.customer-side nav a { display: flex; min-block-size: 2.75rem; align-items: center; gap: .65rem; border-radius: .65rem; padding: .35rem .7rem;
  color: #e4dff4; text-decoration: none; font-size: .94rem; }
.customer-side nav a:hover, .customer-side nav a[aria-current] { color: #fff; background: #453b70; }
.customer-side nav a[aria-current] { box-shadow: inset -.2rem 0 #b8cdea; font-weight: 750; }
.customer-side nav .icon { width: 1.14rem; height: 1.14rem; color: #d3caee; }
.customer-side-bottom { margin-block-start: auto; padding-block-start: 1rem; }
.customer-side-bottom a { color: #e6dffb; padding-inline: .5rem; }
.customer-main-column { min-inline-size: 0; }
.customer-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-block-size: 4.65rem; padding: .5rem clamp(1rem, 3vw, 2.5rem);
  border-block-end: 1px solid var(--line); background: var(--white);
}
.customer-top-title { display: grid; gap: .04rem; font-size: .81rem; color: var(--muted); line-height: 1.45; }
.customer-top-title strong { font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.customer-top-actions, .customer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.customer-top-actions { justify-content: flex-end; }
.customer-top-actions .button { min-block-size: 2.8rem; }
.customer-bell { text-decoration: none; }
.customer-all-menu, .customer-mobile-nav { display: none; }
.customer-content { max-inline-size: 90rem; margin-inline: auto; padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 2.6rem; }
.customer-page-title { margin-block-end: 1.15rem; }
.customer-page-title h1, .customer-auth h1, .customer-guest h1 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); line-height: 1.36; }
.customer-page-title p { margin-block-start: .22rem; color: var(--muted); }
.customer-hero { position: relative; isolation: isolate; overflow: hidden; min-block-size: 15rem;
  display: grid; grid-template-columns: 1.55fr minmax(7.5rem, .75fr); align-items: center; gap: .85rem;
  border: 1px solid #dcd5ef; border-radius: 1.15rem; padding: clamp(1.05rem,3vw,2.1rem);
  background: radial-gradient(ellipse at 18% 20%, #faf6ff 3%, #e8e1f7 65%, #e1d8f1 100%);
}
.customer-hero h2 { font-size: clamp(1.7rem, 3.35vw, 2.85rem); }
.customer-hero p { color: var(--muted); max-inline-size: 34rem; margin-block: .4rem .8rem; }
.customer-hero .customer-kicker { color: var(--primary-dark); font-size: .89rem; font-weight: 750; margin: 0 0 .25rem; }
.customer-hero-art { position: relative; display: grid; place-items: center; }
.customer-hero-art::before, .customer-hero-art::after {
  content: ""; position: absolute; z-index: -1; width: min(91%, 14.5rem); height: 45%; border: 1px solid #8172af55;
  border-radius: 50%; transform: rotate(-17deg);
}
.customer-hero-art::after { width: min(99%, 17.5rem); height: 56%; border-color: #8172af30; }
.customer-hero-art img { width: min(79%, 11rem); filter: drop-shadow(0 .55rem .65rem #59397638); }
.customer-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-block: 1rem; }
.customer-stat { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .9rem;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: .89rem; font-weight: 650; }
.customer-stat:hover { border-color: #9c91c5; }
.customer-stat strong { display: block; line-height: 1.25; font-size: 1.62rem; }
.customer-stat-icon { display: grid; place-items: center; flex: 0 0 2.7rem; block-size: 2.7rem; border-radius: .7rem; background: var(--lilac); color: var(--primary-dark); }
.customer-stat.sand .customer-stat-icon { background: #f6f0e5; color: #5d491c; }
.customer-stat.sage .customer-stat-icon { background: #eaf3e3; color: #2f5332; }
.customer-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: .9rem; align-items: start; }
.customer-card { min-inline-size: 0; padding: clamp(.85rem,2.2vw,1.5rem); margin-block: 0 1rem; border: 1px solid var(--line);
  background: var(--white); border-radius: 1rem; box-shadow: 0 .35rem 1.1rem #29204708; }
.customer-card h2 { font-size: clamp(1.1rem,1.9vw,1.4rem); margin-block: 0 .75rem; }
.customer-card h3 { font-size: 1.05rem; }
.customer-card h4 { margin: .75rem 0 .25rem; }
.customer-card .customer-actions { margin-block-start: .65rem; }
.customer-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); align-items: center; gap: .5rem .85rem;
  padding: .67rem 0; border-block-end: 1px solid var(--line); font-size: .9rem; }
.customer-row:last-child { border-block-end: none; }
.customer-row .row-title { display: block; text-decoration: none; color: var(--ink); font-weight: 740; overflow-wrap: anywhere; }
.customer-row .row-title:hover { text-decoration: underline; }
.customer-row small, .customer-inset small { display: block; color: var(--muted); }
.row-info { display: grid; justify-items: end; gap: .25rem; text-align: end; color: var(--muted); }
.customer-state { display: inline-flex; align-items: center; gap: .33rem; border-radius: 2rem; padding: .16rem .6rem; max-inline-size: 100%;
  font-size: .8rem; font-weight: 750; line-height: 1.55; color: #4a4662; background: #f0eef6; }
.customer-state i { inline-size: .42rem; block-size: .42rem; flex: 0 0 .42rem; border-radius: 50%; background: currentColor; }
.customer-state.violet { color: #4a408c; background: #eee8ff; }
.customer-state.good { color: #245632; background: #e6f4e8; }
.customer-state.attention { color: #754115; background: #fbefdd; }
.customer-code { display: inline-block; font: .78rem/1.6 ui-monospace, Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; max-inline-size: 100%; }
.customer-empty { border: 1px dashed #d9d3e7; border-radius: .75rem; padding: 1.05rem; color: var(--muted); background: #faf9fd; }
.customer-empty p { margin-block-end: .25rem; }
.customer-note { display: flex; gap: .55rem; align-items: flex-start; background: #f1eef9; color: #473d66; border-radius: .65rem;
  padding: .62rem .75rem; margin: .65rem 0; font-size: .9rem; }
.customer-note.attention { color: #754115; background: #fcf1e2; }
.customer-note .icon { margin-block-start: .18rem; width: 1rem; height: 1rem; }
.customer-prose { text-align: justify; white-space: pre-line; }
.customer-muted { color: var(--muted); }
.customer-filters { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(4,minmax(0,1fr)) auto; gap: .6rem; align-items: end; margin-block-end: .85rem; }
.customer-filters .button { min-block-size: 2.85rem; }
.customer-count { color: var(--muted); font-size: .9rem; }
.customer-field { min-inline-size: 0; text-align: start; display: grid; gap: .24rem; margin-block-end: .28rem; font-weight: 640; font-size: .91rem; }
.customer-field input, .customer-field select, .customer-field textarea { min-inline-size: 0; inline-size: 100%; min-block-size: 2.8rem; font-weight: 450; }
.customer-check { display: flex; align-items: center; min-block-size: 2.75rem; gap: .65rem; }
.customer-check input { flex: 0 0 1.05rem; block-size: 1.05rem; }
.customer-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .8rem; margin: .25rem 0 .55rem; }
.customer-fieldset { border: 1px solid var(--line); border-radius: .7rem; padding: .68rem; min-inline-size: 0; margin: .7rem 0; }
.customer-fieldset legend { font-weight: 760; padding-inline: .4rem; }
.customer-fieldset [data-remove-line] { min-block-size: 2.75rem; }
.customer-command { margin-block: .65rem; }
.customer-command.customer-inline { margin: 0; }
.customer-command .button { margin-block-start: .3rem; }
.customer-command.customer-inline .button { margin: 0; }
.customer-form-status { font-size: .9rem; margin-block: .55rem 0; color: var(--primary-dark); white-space: normal; }
.customer-form-status.is-error { color: var(--error); }
.customer-segments { display: flex; gap: .5rem; flex-wrap: wrap; margin-block-end: .6rem; }
.customer-actions { margin-block: .45rem .2rem; }
.customer-line-head, .customer-offer > header, .customer-thread li > div, .customer-timeline li > div {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.customer-order-counts { display: flex; gap: .35rem .55rem; flex-wrap: wrap; margin: .6rem 0; }
.customer-order-counts span { background: var(--bg); padding: .15rem .5rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .88rem; }
.customer-facts { margin-block: .65rem; display: grid; gap: .35rem; }
.customer-facts > div { display: grid; grid-template-columns: minmax(8rem,.4fr) minmax(0,1fr); column-gap: .6rem; border-block-end: 1px solid var(--line); padding-block: .29rem; }
.customer-facts dt { color: var(--muted); }
.customer-facts dd { margin: 0; overflow-wrap: anywhere; }
.customer-lines, .customer-thread, .customer-timeline { display: grid; gap: .45rem; list-style: none; padding: 0; margin-block: .65rem; }
.customer-lines li, .customer-thread li, .customer-timeline li { display: grid; gap: .16rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .65rem; }
.customer-thread li p, .customer-timeline li p { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-timeline { border-inline-start: 2px solid #dad0ef; padding-inline-start: .7rem; }
.customer-inset, .customer-offer, .customer-accordion { border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; margin-block: .55rem; }
.customer-accordion summary { cursor: pointer; min-block-size: 2.75rem; font-weight: 750; }
.customer-guest { max-inline-size: 58rem; margin: auto; padding: 1.25rem clamp(1rem,4vw,2rem); }
.customer-guest > .customer-brand { margin-block-end: 1.2rem; }
.customer-guest h1 { margin-block-end: 1rem; }
.customer-auth { display: grid; min-block-size: 100dvh; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.customer-auth-content { width: min(100%,36rem); margin-inline: auto; padding: clamp(1rem,4vw,2.5rem); display: grid; align-content: center; justify-items: start; gap: .85rem; }
.customer-auth-card { width: 100%; padding: clamp(1rem,3vw,2rem); background: var(--white); border: 1px solid var(--line); border-radius: 1rem; }
.customer-auth-card p { color: var(--muted); margin-block: .4rem .85rem; }
.customer-auth-card .customer-command .button { inline-size: 100%; }
.customer-auth-visual { position: relative; display: grid; place-items: center; background: #30254c; padding: clamp(.25rem,2.5vw,2rem); min-inline-size: 0; }
.customer-auth-visual img { inline-size: 100%; border-radius: 1.3rem; }

@media (max-width: 62rem) {
  .customer-app { grid-template-columns: minmax(11rem,12.5rem) minmax(0,1fr); }
  .customer-side { padding-inline: .6rem; }
  .customer-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 48rem) {
  .customer-app { display: block; }
  .customer-side, .customer-desktop-link { display: none; }
  .customer-content { padding-block-end: calc(5.5rem + env(safe-area-inset-bottom)); }
  .customer-all-menu { display: block; position: relative; }
  .customer-all-menu summary { list-style: none; display: grid; align-items: center; min-block-size: 2.75rem; padding: .2rem .55rem; border: 1px solid var(--line-strong); border-radius: .65rem; cursor: pointer; font-size: .83rem; }
  .customer-all-menu nav { position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 4; width: min(17rem,82vw); border: 1px solid var(--line);
    border-radius: .7rem; background: var(--white); box-shadow: var(--shadow); padding: .3rem; }
  .customer-all-menu nav a { display: flex; align-items: center; gap: .55rem; padding: .3rem .55rem; min-block-size: 2.75rem; text-decoration: none; }
  .customer-all-menu nav a[aria-current] { background: var(--lilac); border-radius: .4rem; }
  .customer-mobile-nav { position: fixed; z-index: 9; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: #fff;
    border-block-start: 1px solid var(--line); padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); }
  .customer-mobile-nav a { display: grid; justify-items: center; align-content: center; gap: .15rem; min-block-size: 3.3rem; text-align: center;
    color: var(--muted); text-decoration: none; font-size: .75rem; line-height: 1.4; border-radius: .55rem; }
  .customer-mobile-nav a[aria-current] { background: var(--lilac); color: var(--primary-dark); font-weight: 750; }
  .customer-body:has(input:focus,textarea:focus) .customer-mobile-nav { visibility: hidden; }
  .customer-auth { display: block; }
  .customer-auth-visual { display: none; }
  .customer-auth-content { padding-block: 2rem; }
}
@media (max-width: 34rem) {
  .customer-topbar { padding-inline: .75rem; }
  .customer-top-actions { gap: .35rem; }
  .customer-top-actions .button { font-size: .81rem; padding-inline: .45rem; }
  .customer-top-title strong { font-size: .9rem; }
  .customer-hero { grid-template-columns: minmax(0,1fr); min-block-size: auto; }
  .customer-hero-art { display: none; }
  .customer-columns { grid-template-columns: minmax(0,1fr); }
  .customer-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .customer-stat { padding: .6rem; gap: .4rem; font-size: .8rem; }
  .customer-stat-icon { flex-basis: 2.1rem; block-size: 2.1rem; }
  .customer-stat strong { font-size: 1.37rem; }
  .customer-filters, .customer-fields { grid-template-columns: minmax(0,1fr); }
  .customer-prose { text-align: start; }
  .customer-facts > div { grid-template-columns: minmax(0,1fr); }
  .customer-row.customer-draft-row { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .customer-side, .customer-topbar, .customer-mobile-nav, .customer-page-title, [data-print] { display: none; }
  .customer-app { display: block; }
  .customer-content, .customer-card { padding: 0; box-shadow: none; border: 0; }
}
