/* FitzPro Liquid Glass · production presentation layer */
:root {
  --lg-ink: #111827;
  --lg-ink-soft: #344054;
  --lg-muted: #667085;
  --lg-blue: #087cff;
  --lg-blue-deep: #0057c8;
  --lg-cyan: #38c8ff;
  --lg-mint: #84f0cf;
  --lg-line: rgba(255, 255, 255, .72);
  --lg-line-dark: rgba(113, 137, 168, .20);
  --lg-glass: rgba(255, 255, 255, .58);
  --lg-glass-strong: rgba(255, 255, 255, .78);
  --lg-glass-solid: rgba(250, 252, 255, .92);
  --lg-shadow: 0 30px 80px rgba(42, 68, 102, .16), 0 8px 24px rgba(42, 68, 102, .08);
  --lg-shadow-soft: 0 18px 46px rgba(42, 68, 102, .11), 0 2px 8px rgba(42, 68, 102, .05);
  --lg-inset: inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(90, 122, 158, .08);
  --lg-radius-xl: 32px;
  --lg-radius-lg: 24px;
  --lg-radius-md: 17px;
  --lg-blur: 30px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(112, 142, 174, .16);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-page,
.pagination-edge,
.pagination-ellipsis {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 760;
}

.pagination-page,
.pagination-edge {
  border: 1px solid rgba(116, 145, 176, .2);
  background: rgba(255, 255, 255, .66);
  color: #29415c;
  box-shadow: 0 8px 18px rgba(50, 89, 128, .07);
}

.pagination-page:hover,
.pagination-edge:hover {
  border-color: rgba(28, 116, 238, .36);
  background: rgba(255, 255, 255, .92);
}

.pagination-page.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #2097ff, #0758d5);
  box-shadow: 0 10px 22px rgba(17, 103, 224, .24);
}

.pagination-edge { padding: 0 14px; }
.pagination-edge.is-disabled { opacity: .42; }
.pagination-mobile-status { display: none; color: #60758b; font-size: 12px; font-weight: 720; }

@media (max-width: 560px) {
  .pagination { justify-content: space-between; gap: 7px; }
  .pagination-pages { display: none; }
  .pagination-mobile-status { display: inline-flex; }
  .pagination-edge { min-height: 44px; padding: 0 13px; }
}

html {
  min-height: 100%;
  background: #edf5ff;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--lg-ink);
  background:
    radial-gradient(circle at 9% 14%, rgba(115, 206, 255, .38), transparent 31%),
    radial-gradient(circle at 92% 7%, rgba(145, 255, 224, .27), transparent 27%),
    radial-gradient(circle at 82% 86%, rgba(100, 144, 255, .25), transparent 33%),
    linear-gradient(145deg, #f9fcff 0%, #edf6ff 45%, #f4f7ff 100%);
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,255,255,.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.30) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), transparent 70%);
}

.liquid-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .58;
  animation: lg-float 18s ease-in-out infinite alternate;
}

.atmosphere-orb-one {
  width: 38vw;
  height: 38vw;
  min-width: 420px;
  min-height: 420px;
  left: -14vw;
  top: -14vw;
  background: radial-gradient(circle at 60% 60%, rgba(107, 207, 255, .70), rgba(90, 148, 255, .10) 66%, transparent 72%);
}

.atmosphere-orb-two {
  width: 34vw;
  height: 34vw;
  min-width: 360px;
  min-height: 360px;
  right: -11vw;
  top: 12vh;
  animation-delay: -7s;
  background: radial-gradient(circle at 42% 50%, rgba(119, 241, 207, .55), rgba(96, 200, 255, .08) 68%, transparent 73%);
}

.atmosphere-orb-three {
  width: 42vw;
  height: 42vw;
  min-width: 460px;
  min-height: 460px;
  left: 34vw;
  bottom: -28vw;
  animation-delay: -12s;
  background: radial-gradient(circle at 50% 35%, rgba(122, 143, 255, .42), rgba(255, 255, 255, .06) 70%, transparent 74%);
}

.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

@keyframes lg-float {
  from { transform: translate3d(-2%, -1%, 0) scale(.96); }
  to { transform: translate3d(4%, 3%, 0) scale(1.06); }
}

@keyframes lg-enter {
  from { opacity: 0; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating navigation glass */
.topbar {
  width: min(1540px, calc(100% - 28px));
  height: auto;
  min-height: 64px;
  margin: 14px auto 0;
  padding: 0;
  top: 14px;
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  background: rgba(247, 251, 255, .62);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
  backdrop-filter: blur(var(--lg-blur)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(175%);
}

.topbar-shell {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 12px;
}

.brand {
  min-width: 216px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--lg-ink);
}

.brand:hover { color: var(--lg-ink); }

.brand-mark,
.login-brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #48caff 0%, #087cff 48%, #1450c8 100%);
  box-shadow: 0 10px 25px rgba(8, 124, 255, .28), inset 0 1px 1px rgba(255,255,255,.62);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy b {
  font-size: 15px;
  letter-spacing: .02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--lg-muted);
  font-size: 10px;
  font-weight: 700;
}

.nav {
  min-width: 0;
  justify-content: center;
  gap: 5px;
}

.nav a,
.logout-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 9px 14px;
  color: var(--lg-ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
}

.nav a:hover,
.logout-button:hover {
  color: #004da9;
  border-color: rgba(255,255,255,.72);
  background: rgba(255, 255, 255, .58);
  box-shadow: var(--lg-inset), 0 8px 20px rgba(52, 87, 128, .08);
}

.account { gap: 8px; }

.account-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 14px;
  color: var(--lg-ink-soft);
  background: rgba(255,255,255,.44);
  box-shadow: var(--lg-inset);
}

.account-badge i,
.login-signal-row i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #31c982;
  box-shadow: 0 0 0 4px rgba(49, 201, 130, .12);
}

.shell {
  max-width: 1500px;
  padding: 30px 32px 64px;
}

.shell > * {
  animation: lg-enter .48s cubic-bezier(.2, .8, .2, 1) both;
}

.shell > *:nth-child(2) { animation-delay: .05s; }
.shell > *:nth-child(3) { animation-delay: .10s; }

/* Shared glass material */
.lookup-panel,
.filter-panel,
.form-grid,
.table-wrap,
.panel,
.org-panel,
.profile-panel,
.form-section,
.admin-sidebar,
.admin-section-head,
.admin-content-panel,
.admin-overview-grid a,
.metric-strip,
.stat,
.manager-suggestions {
  border: 1px solid var(--lg-line);
  background: var(--lg-glass);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.page-head h1,
.compact-result-head h2,
.admin-sidebar-head h1,
.admin-section-head h2,
.login-card h1,
.login-card h2 {
  color: var(--lg-ink);
  font-family: "SF Pro Rounded", "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: -.035em;
}

.eyebrow {
  color: #1674d9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Controls */
input,
select,
textarea {
  border: 1px solid rgba(133, 157, 188, .26);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
  box-shadow: var(--lg-inset), 0 8px 20px rgba(44, 74, 111, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(91, 134, 187, .38);
  background: rgba(255,255,255,.76);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8,124,255,.65);
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 4px rgba(8,124,255,.13), 0 12px 26px rgba(30, 92, 164, .10), var(--lg-inset);
}

button,
.primary,
.ghost,
.link-button {
  border-radius: 14px;
}

.primary {
  border-color: rgba(255,255,255,.36);
  color: #fff;
  background: linear-gradient(180deg, #2796ff 0%, #087cff 52%, #0064d8 100%);
  box-shadow: 0 14px 28px rgba(8,124,255,.27), inset 0 1px 1px rgba(255,255,255,.48);
}

.primary:hover {
  border-color: rgba(255,255,255,.48);
  background: linear-gradient(180deg, #3aa1ff 0%, #0b7ff8 50%, #005bc5 100%);
  box-shadow: 0 17px 34px rgba(8,124,255,.32), inset 0 1px 1px rgba(255,255,255,.55);
  transform: translateY(-1px);
}

.ghost,
.link-button,
button {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.58);
  box-shadow: var(--lg-inset), 0 8px 20px rgba(50,80,117,.07);
}

.ghost:hover,
.link-button:hover,
button:hover {
  border-color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.82);
  box-shadow: var(--lg-inset), 0 12px 25px rgba(50,80,117,.11);
}

/* Login experience */
.is-guest .liquid-atmosphere { z-index: 0; }

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 56px);
  background: transparent;
}

.login-card {
  width: min(980px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 36px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 44px 120px rgba(35, 70, 112, .22), var(--lg-inset);
  backdrop-filter: blur(36px) saturate(175%);
  -webkit-backdrop-filter: blur(36px) saturate(175%);
  animation: lg-enter .68s cubic-bezier(.16, .84, .27, 1) both;
}

.login-intro,
.login-form-pane {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 4%, rgba(120, 224, 255, .92), transparent 35%),
    radial-gradient(circle at 90% 84%, rgba(104, 240, 207, .40), transparent 37%),
    linear-gradient(145deg, #178bf4 0%, #075fc3 52%, #123e8f 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42);
}

.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22);
}

.login-intro::before {
  width: 300px;
  height: 300px;
  right: -130px;
  top: -110px;
}

.login-intro::after {
  width: 180px;
  height: 180px;
  left: -80px;
  bottom: -90px;
}

.login-brand-lockup,
.login-intro-copy,
.login-signal-row { position: relative; z-index: 1; }

.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}

.login-brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 15px;
  background: rgba(255,255,255,.18);
  font-size: 21px;
  backdrop-filter: blur(12px);
}

.login-intro .eyebrow {
  color: rgba(255,255,255,.72);
}

.login-intro h1 {
  max-width: 460px;
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 830;
}

.login-intro-copy > p:last-child {
  max-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.8;
}

.login-signal-row {
  display: flex;
  gap: 22px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 720;
}

.login-signal-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.login-signal-row i {
  background: #8affcf;
  box-shadow: 0 0 0 4px rgba(138,255,207,.12), 0 0 14px rgba(138,255,207,.68);
}

.login-form-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 52px);
  background: rgba(255,255,255,.50);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.86);
}

.login-form-head { margin-bottom: 30px; }

.login-form-head h2 {
  margin: 4px 0 8px;
  font-size: 31px;
  line-height: 1.1;
}

.liquid-login-form { gap: 18px; }
.liquid-login-form label { color: var(--lg-ink-soft); }
.liquid-login-form input { height: 48px; padding: 0 16px; }

.liquid-login-form .primary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 18px 0 20px;
}

.liquid-login-form .primary b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  font-size: 16px;
}

.login-footnote {
  margin: 24px 0 0;
  color: #8794a7;
  font-size: 11px;
  text-align: center;
}

.guest-entry-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #8a97a9;
  font-size: 11px;
  font-weight: 760;
}

.guest-entry-divider::before,
.guest-entry-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(117, 143, 174, .24));
}

.guest-entry-divider::after {
  transform: scaleX(-1);
}

.guest-entry-form { margin: 0; }

.guest-entry-button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 17px;
  color: #17466f;
  text-align: left;
  background: linear-gradient(135deg, rgba(238, 250, 255, .82), rgba(232, 255, 247, .68));
  box-shadow: var(--lg-inset), 0 10px 28px rgba(41, 98, 139, .09);
}

.guest-entry-button:hover {
  color: #064f9a;
  border-color: rgba(255, 255, 255, 1);
  background: linear-gradient(135deg, rgba(245, 253, 255, .96), rgba(235, 255, 248, .92));
  transform: translateY(-1px);
}

.guest-entry-button > span:nth-child(2) { display: grid; gap: 3px; }
.guest-entry-button strong { font-size: 13px; font-weight: 820; }
.guest-entry-button small { color: #6f8399; font-size: 10px; font-weight: 650; }
.guest-entry-button > b { justify-self: end; font-size: 16px; }

.guest-entry-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(64, 167, 213, .18);
  border-radius: 12px;
  color: #0873c9;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 18px;
}

.role-guest .account-badge {
  color: #075e59;
  background: rgba(226, 255, 246, .55);
}

.role-guest .account-badge i,
.readonly-note i {
  background: #24b995;
  box-shadow: 0 0 0 4px rgba(36, 185, 149, .12);
}

.readonly-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #557086;
  font-size: 12px;
  font-weight: 760;
}

.readonly-note i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

/* Search and profile */
.lookup-panel.search-panel {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(280px, 1.35fr) minmax(220px, .9fr) minmax(190px, .72fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
}

.search-filter-panel label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.search-filter-panel label small {
  color: #7b8da3;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .04em;
}

.search-filter-panel input,
.search-filter-panel select {
  height: 50px;
  border-radius: 16px;
  border-color: rgba(171, 190, 214, .54);
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 20px rgba(47,87,128,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-filter-panel input {
  min-width: 0;
}

.search-filter-panel select {
  padding-right: 34px;
}

.search-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.search-filter-actions .primary,
.search-filter-actions .ghost {
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 16px;
  white-space: nowrap;
}

.search-filter-hint {
  grid-column: 1 / -1;
  margin: -2px 2px 0;
  color: #6f8299;
  font-size: 11px;
}

.search-result-summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 2px 14px;
  color: #53687f;
}

.search-result-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 720;
}

.search-result-count b {
  color: #075eb7;
  font-size: 20px;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.active-filter-chips span {
  padding: 5px 9px;
  border: 1px solid rgba(112,154,205,.18);
  border-radius: 999px;
  background: rgba(224,239,255,.62);
  color: #315b86;
  font-size: 11px;
  font-weight: 760;
}

.search-result-summary small {
  margin-left: auto;
  color: #7a8ca1;
}

.search-start-guide,
.customer-directory {
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  background: rgba(255,255,255,.52);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.search-start-guide {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(480px, 1.25fr);
  align-items: center;
  gap: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(91,224,198,.19), transparent 33%),
    linear-gradient(135deg, rgba(224,242,255,.64), rgba(255,255,255,.54) 58%, rgba(236,242,255,.62));
}

.search-start-copy h2,
.customer-directory-heading h2 {
  margin: 5px 0 0;
  color: var(--lg-ink);
  font-family: "SF Pro Rounded", "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: -.03em;
}

.search-start-copy h2 {
  max-width: 420px;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.24;
}

.search-start-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-start-options > div {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 20px;
  background: rgba(255,255,255,.55);
  box-shadow: var(--lg-inset), 0 12px 28px rgba(50,80,117,.07);
}

.search-start-options span {
  color: #1674d9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

.search-start-options strong {
  color: #1b2b3d;
  font-size: 15px;
}

.search-start-options p {
  margin: 0;
  color: #687b91;
  font-size: 12px;
  line-height: 1.65;
}

.customer-directory {
  overflow: hidden;
  padding: 20px;
}

.customer-directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 4px 17px;
}

.customer-directory-heading h2 {
  font-size: 23px;
}

.customer-directory-heading > p {
  margin: 0 0 2px;
  color: #71849a;
  font-size: 11px;
}

.customer-result-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-result-list > li {
  min-width: 0;
}

.customer-result-columns,
.customer-result-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(240px, 1.25fr) minmax(150px, .72fr) 116px;
  align-items: center;
  gap: 16px;
}

.customer-result-columns {
  padding: 0 18px 5px;
  color: #7c8da1;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .08em;
}

.customer-result-row {
  min-height: 67px;
  padding: 11px 16px 11px 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  color: #31445a;
  background: rgba(255,255,255,.58);
  box-shadow: var(--lg-inset), 0 7px 18px rgba(47,87,128,.055);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.customer-result-row:hover {
  color: #172a40;
  border-color: rgba(93,164,246,.38);
  background: rgba(255,255,255,.82);
  box-shadow: var(--lg-inset), 0 13px 28px rgba(47,87,128,.11);
  transform: translateX(3px);
}

.customer-result-row:focus-visible {
  outline: 3px solid rgba(8,124,255,.28);
  outline-offset: 2px;
}

.customer-result-row small {
  display: none;
}

.customer-result-name {
  overflow: hidden;
  color: #15263a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-result-department {
  overflow: hidden;
  color: #455b73;
  font-size: 13px;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-business-line i {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(80,135,205,.18);
  border-radius: 999px;
  color: #24527d;
  background: rgba(210,232,255,.65);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.customer-business-line[data-business-line="iPhone"] i {
  color: #196053;
  border-color: rgba(69,185,153,.20);
  background: rgba(195,241,225,.66);
}

.customer-business-line[data-business-line="Watch"] i {
  color: #93415e;
  border-color: rgba(220,112,150,.20);
  background: rgba(247,191,210,.64);
}

.customer-business-line[data-business-line="iPhone/Watch"] i {
  color: #345696;
  border-color: rgba(92,128,203,.20);
  background: rgba(185,208,255,.68);
}

.customer-result-action {
  justify-self: end;
  color: #086bcf;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.customer-result-action b {
  margin-left: 5px;
  font-size: 15px;
  transition: transform .2s ease;
}

.customer-result-row:hover .customer-result-action b {
  display: inline-block;
  transform: translateX(2px);
}

.detail-navigation {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 12px;
}

.empty-state-panel .ghost {
  width: max-content;
  display: block;
  margin: -18px auto 24px;
}

.profile-panel.compact-profile-panel {
  overflow: hidden;
  border-color: rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.54);
  box-shadow: var(--lg-shadow), var(--lg-inset);
}

.compact-result-head {
  border-bottom-color: rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 82% 12%, rgba(118, 238, 210, .24), transparent 30%),
    linear-gradient(135deg, rgba(193,229,255,.65), rgba(255,255,255,.62) 55%, rgba(231,239,255,.66));
  backdrop-filter: blur(22px) saturate(150%);
}

.compact-result-head h2 {
  font-weight: 820;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.identity-strip span {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.56);
  box-shadow: var(--lg-inset), 0 8px 18px rgba(50,80,117,.06);
  backdrop-filter: blur(12px);
}

.summary-chips span:first-child {
  border-color: rgba(82, 158, 255, .28);
  color: #0758b7;
  background: rgba(211,234,255,.62);
}

.info-block {
  border-color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.68);
  box-shadow: var(--lg-inset), 0 12px 28px rgba(50,80,117,.07);
  backdrop-filter: blur(18px);
}

.visit-record-item,
.relationship-list a {
  border-color: rgba(142,165,194,.16);
  background: rgba(244,249,255,.68);
}

.profile-actions {
  background: rgba(255,255,255,.42);
  border-top-color: rgba(255,255,255,.72);
}

/* Admin glass stack */
.admin-workbench { gap: 22px; }

.admin-sidebar {
  top: 96px;
  border-radius: 24px;
  background: rgba(247,251,255,.58);
}

.admin-side-nav a {
  border: 1px solid transparent;
  border-radius: 14px;
}

.admin-side-nav a:hover {
  border-color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.52);
  box-shadow: var(--lg-inset);
}

.admin-side-nav a.active {
  border-color: rgba(255,255,255,.74);
  color: #0058bd;
  background: linear-gradient(135deg, rgba(207,235,255,.80), rgba(255,255,255,.55));
  box-shadow: var(--lg-inset), 0 12px 26px rgba(35,105,185,.11);
}

.admin-section-head {
  border-radius: 24px;
  background: rgba(255,255,255,.54);
}

.admin-content-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-overview-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.admin-overview-grid a::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: rgba(8,124,255,.68);
  font-size: 18px;
}

.admin-overview-grid a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.74);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
}

.form-section,
.table-wrap,
.panel {
  border-radius: 20px;
}

table { background: rgba(255,255,255,.48); }

th {
  color: #536274;
  background: rgba(237,245,253,.82);
  backdrop-filter: blur(12px);
}

td { background: rgba(255,255,255,.50); }
tr:hover td { background: rgba(239,247,255,.82); }

.notice,
.alert {
  border-color: rgba(255,255,255,.72);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
  backdrop-filter: blur(20px);
}

.notice { background: rgba(222, 251, 236, .78); }
.alert { background: rgba(255, 231, 229, .82); }

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .topbar,
  .login-card,
  .lookup-panel,
  .filter-panel,
  .form-grid,
  .table-wrap,
  .panel,
  .profile-panel,
  .form-section,
  .admin-sidebar,
  .admin-section-head,
  .admin-overview-grid a {
    background: rgba(250,252,255,.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --lg-line-dark: rgba(53,74,99,.48); }
  input, select, textarea, .table-wrap { border-color: var(--lg-line-dark); }
}

@media (max-width: 1100px) {
  .brand { min-width: 48px; }
  .brand-copy { display: none; }
  .account-badge { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 20px);
    top: 10px;
    margin-top: 10px;
    border-radius: 20px;
  }

  .topbar-shell {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .brand { order: 1; min-width: auto; }
  .account { order: 2; margin-left: auto; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }

  .shell { padding: 24px 14px 48px; }

  .login-shell { padding: 12px; }
  .login-card {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .login-intro { min-height: 300px; padding: 30px; border-radius: 22px; }
  .login-intro h1 { font-size: 40px; }
  .login-form-pane { padding: 30px 24px; border-radius: 22px; }

  .admin-workbench { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-side-nav { display: flex; overflow-x: auto; }
  .admin-side-nav a { min-width: max-content; }

  .profile-panel.compact-profile-panel { border-radius: 24px; }

  .lookup-panel.search-filter-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .search-filter-actions > * {
    flex: 1;
  }

  .search-filter-hint {
    margin-top: 0;
  }

  .search-result-summary small {
    width: 100%;
    margin-left: 0;
  }

  .search-start-guide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .search-start-options {
    grid-template-columns: 1fr;
  }

  .customer-directory {
    padding: 14px;
    border-radius: 22px;
  }

  .customer-directory-heading {
    display: block;
  }

  .customer-directory-heading > p {
    margin-top: 7px;
  }

  .customer-result-columns {
    display: none;
  }

  .customer-result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 14px;
    padding: 14px;
  }

  .customer-result-row small {
    display: block;
    margin-bottom: 2px;
    color: #8797a9;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .06em;
  }

  .customer-result-department {
    white-space: normal;
  }

  .customer-result-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .customer-business-line {
    grid-column: 1;
  }
}

/* Customer dossier · sectioned, source-aware detail view */
.profile-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 11px 13px 11px 16px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  color: var(--lg-ink-soft);
  background: rgba(255, 255, 255, .48);
  box-shadow: var(--lg-shadow-soft), var(--lg-inset);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

.profile-detail-toolbar p {
  min-width: 0;
  margin: 0;
  color: var(--lg-muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.profile-detail-toolbar .ghost {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border-color: rgba(74, 128, 190, .18);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--lg-inset);
}

.profile-panel.profile-dossier {
  --profile-blue: #087cff;
  position: relative;
  display: block;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  background: rgba(247, 251, 255, .56);
  box-shadow: var(--lg-shadow), var(--lg-inset);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}

.profile-dossier-hero {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 156px;
  padding: clamp(22px, 2.8vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, .74);
  background:
    radial-gradient(circle at 87% 2%, rgba(111, 238, 213, .32), transparent 33%),
    radial-gradient(circle at 6% 100%, rgba(73, 166, 255, .27), transparent 38%),
    linear-gradient(132deg, rgba(204, 235, 255, .82), rgba(255, 255, 255, .70) 48%, rgba(226, 239, 255, .78));
}

.profile-dossier-identity,
.profile-identity {
  min-width: 0;
}

.profile-dossier-identity .eyebrow,
.profile-identity .eyebrow {
  margin: 0 0 7px;
  color: #0b67c6;
  font-size: 10px;
}

.profile-dossier-identity h2,
.profile-identity h1 {
  max-width: 100%;
  margin: 0;
  color: #0d1c2e;
  font-family: "SF Pro Rounded", "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 880;
  letter-spacing: -.055em;
  line-height: .98;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78);
}

.profile-dossier-subtitle,
.profile-identity > p:last-child {
  max-width: 720px;
  margin: 9px 0 0;
  color: #52647a;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.5;
}

.profile-quickfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.profile-quickfacts > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .80);
  border-radius: 16px;
  background: rgba(255, 255, 255, .51);
  box-shadow: var(--lg-inset), 0 10px 24px rgba(44, 79, 118, .07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.profile-quickfacts dt,
.profile-fact-grid dt {
  margin: 0 0 4px;
  color: #718096;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .04em;
  line-height: 1.35;
}

.profile-quickfacts dd {
  margin: 0;
  color: #1b2b40;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .36);
}

.profile-section-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #3e536c;
  font-size: 11px;
  font-weight: 790;
  line-height: 1.25;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.profile-section-nav a:hover {
  color: #075daf;
  border-color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .67);
  box-shadow: var(--lg-inset), 0 8px 20px rgba(48, 82, 122, .07);
  transform: translateY(-1px);
}

.profile-section-nav a span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 1px solid rgba(72, 133, 199, .18);
  border-radius: 9px;
  color: #0873df;
  background: rgba(215, 237, 255, .72);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.profile-domain-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  padding: 20px;
}

.profile-domain-section {
  --section-accent: #087cff;
  --section-tint: rgba(221, 239, 255, .38);
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 252px) minmax(0, 1fr);
  column-gap: clamp(18px, 2.2vw, 30px);
  row-gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2vw, 25px);
  border: 1px solid rgba(115, 153, 198, .27);
  border-color: color-mix(in srgb, var(--section-accent), transparent 67%);
  border-radius: 24px;
  background:
    linear-gradient(100deg, var(--section-tint), rgba(255, 255, 255, .76) 42%, rgba(255, 255, 255, .58));
  box-shadow: var(--lg-inset), 0 18px 42px rgba(45, 73, 107, .10), 0 5px 14px rgba(45, 73, 107, .07);
  box-shadow:
    var(--lg-inset),
    0 18px 42px color-mix(in srgb, var(--section-accent), transparent 87%),
    0 5px 14px rgba(45, 73, 107, .07);
  scroll-margin-top: 104px;
}

.profile-domain-section > :not(.profile-domain-header) {
  grid-column: 2;
}

.profile-domain-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--section-accent), color-mix(in srgb, var(--section-accent), transparent 75%));
}

.profile-domain-section.is-personal {
  --section-accent: #087cff;
  --section-tint: rgba(206, 234, 255, .48);
  grid-column: 1 / -1;
}

.profile-domain-section.is-organization {
  --section-accent: #19a87a;
  --section-tint: rgba(205, 245, 230, .46);
  grid-column: 1 / -1;
}

.profile-domain-section.is-communication {
  --section-accent: #d98018;
  --section-tint: rgba(255, 234, 202, .45);
  grid-column: 1 / -1;
}

.profile-domain-section.is-background {
  --section-accent: #6d67d8;
  --section-tint: rgba(226, 224, 255, .46);
  grid-column: 1 / -1;
}

.profile-domain-header {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 6;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  padding: 2px clamp(17px, 2vw, 24px) 2px 3px;
  border-right: 1px solid rgba(115, 153, 198, .21);
  border-right-color: color-mix(in srgb, var(--section-accent), transparent 78%);
  border-bottom: 0;
}

.profile-domain-title {
  min-width: 0;
}

.profile-domain-title p,
.profile-domain-kicker,
.profile-domain-number {
  margin: 0 0 5px;
  color: var(--section-accent);
  font-size: 10px;
  font-weight: 880;
  letter-spacing: .12em;
  line-height: 1.25;
}

.profile-domain-title h3,
.profile-domain-header h2 {
  margin: 0;
  color: #17283c;
  font-family: "SF Pro Rounded", "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 840;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.profile-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 13px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--lg-inset);
}

.profile-source > span {
  grid-row: 1 / span 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--section-accent), transparent 78%);
  border-radius: 8px;
  color: color-mix(in srgb, var(--section-accent), #1c3148 18%);
  background: color-mix(in srgb, var(--section-accent), white 88%);
  font-size: 9px;
  font-weight: 880;
  letter-spacing: .05em;
  white-space: nowrap;
}

.profile-source strong {
  min-width: 0;
  color: #34475d;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-source small {
  min-width: 0;
  color: #75859a;
  font-size: 9px;
  font-weight: 620;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.is-communication .profile-fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.is-background .profile-fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-fact-grid > div {
  min-width: 0;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(153, 174, 199, .19);
  border-color: color-mix(in srgb, var(--section-accent), transparent 86%);
  border-radius: 14px;
  background: rgba(255, 255, 255, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.profile-fact-grid > .is-wide,
.profile-fact-grid > .wide {
  grid-column: 1 / -1;
}

.profile-fact-grid dd {
  margin: 0;
  color: #24364b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.profile-fact-grid a {
  color: #086bcf;
  text-decoration: underline;
  text-decoration-color: rgba(8, 107, 207, .25);
  text-underline-offset: 3px;
}

.profile-fact-grid a:hover {
  color: #004d9e;
  text-decoration-color: currentColor;
}

.profile-note,
.profile-source-note,
.profile-empty-state {
  margin: 11px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(151, 171, 195, .15);
  border-radius: 14px;
  color: #596b80;
  background: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 640;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.profile-note strong,
.profile-source-note strong {
  color: #34475c;
  font-weight: 820;
}

.profile-note > span {
  display: block;
  margin-bottom: 5px;
  color: #40546b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
}

.profile-note > p,
.profile-source-note > p {
  margin: 0;
  white-space: pre-wrap;
}

.profile-source-note > strong {
  display: block;
  margin-bottom: 5px;
}

.profile-relationship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.profile-relationship-list,
.profile-domain-section .relationship-list > div,
.profile-relationship-grid > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(153, 174, 199, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .48);
}

.profile-relationship-list h4,
.profile-domain-section .relationship-list h4,
.profile-relationship-grid h3 {
  margin: 0 0 9px;
  color: #687a8f;
  font-size: 11px;
  font-weight: 820;
}

.profile-relationship-list ul,
.profile-domain-section .relationship-list ul,
.profile-relationship-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-relationship-list li,
.profile-domain-section .relationship-list li,
.profile-relationship-grid li {
  margin: 0;
}

.profile-relationship-list a,
.profile-domain-section .relationship-list a,
.profile-relationship-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(113, 151, 194, .12);
  border-radius: 11px;
  color: #1e5f9d;
  background: rgba(245, 250, 255, .67);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.profile-relationship-list a:hover,
.profile-domain-section .relationship-list a:hover,
.profile-relationship-grid a:hover {
  border-color: rgba(8, 124, 255, .18);
  color: #074e93;
  background: rgba(232, 244, 255, .86);
}

.profile-relationship-list a::after,
.profile-domain-section .relationship-list a::after,
.profile-relationship-grid a::after {
  content: "›";
  flex: 0 0 auto;
  color: #70a6dc;
  font-size: 16px;
  font-weight: 700;
}

.profile-relationship-list > span,
.profile-domain-section .relationship-list > div > span,
.profile-relationship-grid .is-empty {
  color: #8290a2;
  font-size: 11px;
  line-height: 1.45;
}

.profile-relationship-grid a > span {
  flex: 0 1 auto;
  color: #74869a;
  font-size: 10px;
  font-weight: 680;
  text-align: right;
}

.profile-relationship-grid .is-empty {
  padding: 9px 0;
}

.visit-timeline,
.profile-visit-timeline {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.visit-timeline-item,
.profile-visit-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(126px, .30fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px 18px;
  min-width: 0;
  padding: 14px 15px 14px 19px;
  border: 1px solid rgba(171, 149, 109, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .53);
}

.visit-timeline-item::before,
.profile-visit-timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: color-mix(in srgb, var(--section-accent), white 18%);
}

.visit-timeline-meta,
.profile-visit-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.visit-timeline-meta time,
.visit-timeline-meta strong,
.profile-visit-meta time {
  color: #42556c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.visit-timeline-item p,
.profile-visit-timeline > li > div:last-child p {
  min-width: 0;
  margin: 0;
  color: #2f4258;
  font-size: 11px;
  font-weight: 640;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.visit-source-badge,
.profile-visit-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(210, 134, 39, .18);
  border-radius: 9px;
  color: #8a5317;
  background: rgba(255, 236, 209, .73);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.3;
  white-space: nowrap;
}

.profile-visit-timeline > li > div:last-child {
  min-width: 0;
}

.profile-visit-timeline > li > div:last-child > strong {
  display: block;
  margin-bottom: 4px;
  color: #3b4e64;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid rgba(137, 157, 183, .15);
}

.profile-subsection-heading h3 {
  margin: 0;
  color: #30445b;
  font-size: 13px;
  font-weight: 840;
}

.profile-subsection-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(210, 134, 39, .15);
  border-radius: 9px;
  color: #8a5317;
  background: rgba(255, 236, 209, .64);
  font-size: 9px;
  font-weight: 850;
}

.profile-personal-contact-heading {
  margin-top: 4px;
}

.is-personal .profile-personal-contact-heading > span {
  border-color: rgba(8, 124, 255, .16);
  color: #075ba9;
  background: rgba(218, 238, 255, .70);
}

.profile-personal-contact-facts {
  margin-top: 10px;
}

.profile-primary-subsection {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.profile-dossier .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-dossier .profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 0 16px 17px;
  border: 0;
  background: transparent;
}

.profile-dossier .profile-actions .ghost,
.profile-dossier .profile-actions .primary {
  min-height: 42px;
  padding: 10px 16px;
}

.profile-section-nav a:focus-visible,
.profile-detail-toolbar a:focus-visible,
.profile-domain-section a:focus-visible,
.profile-dossier .profile-actions a:focus-visible,
.profile-dossier .profile-actions button:focus-visible {
  outline: 3px solid rgba(8, 124, 255, .34);
  outline-offset: 3px;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .profile-domain-section::before { background: var(--section-accent); }
  .profile-source > span {
    border-color: rgba(8, 124, 255, .20);
    color: #0758a9;
    background: rgba(222, 239, 255, .82);
  }
  .visit-timeline-item::before,
  .profile-visit-timeline > li::before { background: var(--section-accent); }
}

@media (max-width: 1080px) {
  .profile-dossier-hero {
    grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
    padding: 24px;
  }

  .is-communication .profile-fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lookup-panel.search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-name-field,
  .search-filter-hint {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .search-start-guide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .search-start-copy,
  .search-start-options,
  .search-start-options > div {
    min-width: 0;
  }

  .profile-dossier-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-domain-section {
    grid-template-columns: 1fr;
  }

  .profile-domain-section > :not(.profile-domain-header) {
    grid-column: 1;
  }

  .profile-domain-header {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(137, 157, 183, .17);
  }

  .profile-source {
    width: min(58%, 430px);
  }
}

@media (max-width: 820px) {
  .profile-detail-toolbar {
    align-items: flex-start;
  }

  .profile-dossier-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 23px 20px;
  }

  .profile-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-domain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .profile-domain-section,
  .profile-domain-section.is-personal,
  .profile-domain-section.is-organization,
  .profile-domain-section.is-communication,
  .profile-domain-section.is-background {
    grid-column: 1;
    scroll-margin-top: 88px;
  }

  .profile-domain-header {
    display: flex;
  }

  .profile-source {
    width: min(62%, 420px);
  }

  .profile-fact-grid,
  .is-communication .profile-fact-grid,
  .is-background .profile-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-timeline-item,
  .profile-visit-timeline > li {
    grid-template-columns: minmax(116px, .34fr) minmax(0, 1fr);
  }

  .visit-source-badge,
  .profile-visit-meta > span {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .profile-detail-toolbar {
    display: grid;
    padding: 12px;
    border-radius: 16px;
  }

  .profile-detail-toolbar .ghost {
    width: 100%;
    text-align: center;
  }

  .profile-panel.profile-dossier {
    border-radius: 23px;
  }

  .profile-dossier-hero {
    min-height: 0;
    padding: 25px 19px;
  }

  .profile-dossier-identity h2,
  .profile-identity h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .profile-quickfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-fact-grid,
  .is-communication .profile-fact-grid,
  .is-background .profile-fact-grid,
  .profile-relationship-grid {
    grid-template-columns: 1fr;
  }

  .profile-section-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .profile-section-nav::-webkit-scrollbar { display: none; }

  .profile-section-nav a {
    min-width: max-content;
    scroll-snap-align: start;
  }

  .profile-domain-section {
    padding: 19px 16px;
    border-radius: 19px;
  }

  .profile-domain-header {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .profile-source {
    width: 100%;
  }

  .profile-fact-grid > div {
    min-height: 0;
  }

  .visit-timeline-item,
  .profile-visit-timeline > li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .visit-source-badge,
  .profile-visit-meta > span {
    grid-column: 1;
  }

  .profile-dossier .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 12px 13px;
  }

  .profile-dossier .profile-actions > * {
    width: 100%;
    text-align: center;
  }
}
