:root {
  --bg: #eef5ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-soft: rgba(249, 252, 255, 0.9);
  --line: rgba(111, 143, 192, 0.22);
  --text: #1d3553;
  --muted: #6880a1;
  --primary: #77b7ff;
  --primary-strong: #4f9dff;
  --success: #3bc89b;
  --warning: #f4c85d;
  --danger: #ff6f88;
  --supply-accent: #efc24f;
  --supply-accent-strong: #dcab2c;
  --demand-accent: #76b7ff;
  --demand-accent-strong: #4f9dff;
  --shadow: 0 18px 44px rgba(90, 124, 171, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(118, 183, 255, 0.2) 0%, transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 220, 128, 0.24) 0%, transparent 24%),
    radial-gradient(circle at 76% 84%, rgba(118, 183, 255, 0.14) 0%, transparent 25%),
    linear-gradient(180deg, #f5faff 0%, #ebf4ff 52%, #f8fbff 100%);
  color: var(--text);
}

body {
  padding: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5f8fd7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.subtitle,
.muted {
  color: var(--muted);
}

.page-shell {
  padding: 16px;
}

.page-header,
.toolbar,
.summary-grid,
.board-grid,
.login-card,
.card,
.modal-panel {
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.compact-header {
  min-height: 68px;
}

.compact-header h1 {
  font-size: 24px;
}

.compact-header .subtitle {
  margin: 2px 0 0;
  font-size: 13px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(118, 183, 255, 0.16), rgba(255, 230, 156, 0.2));
  border: 1px solid rgba(120, 156, 204, 0.18);
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.36) inset,
    0 12px 24px rgba(101, 138, 188, 0.18);
}

.login-brand-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand-logo {
  width: 74px;
  height: 74px;
}

.page-header h1,
.login-card h1,
.modal-header h2 {
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.pill-count,
.tag,
.column-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  background: rgba(118, 183, 255, 0.18);
  color: #4f88d2;
}

.status-pill.live-ok {
  background: rgba(59, 200, 155, 0.16);
  color: #288b6a;
}

.status-pill.live-warn {
  background: rgba(244, 200, 93, 0.18);
  color: #a77812;
}

.last-updated-pill {
  background: linear-gradient(135deg, rgba(255, 244, 198, 0.78), rgba(219, 236, 255, 0.9));
  color: #486b97;
}

.user-card {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0;
  min-height: 24px;
}

.customer-parent-import-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.customer-import-result {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.customer-import-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.customer-import-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 53, 71, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-import-metric span {
  color: var(--muted-text);
  font-size: 12px;
}

.customer-import-metric strong {
  font-size: 18px;
}

.customer-import-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-color);
}

.customer-import-list.is-error {
  color: #b3261e;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  min-width: 92px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid rgba(117, 150, 197, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.96));
  box-shadow: 0 18px 36px rgba(52, 95, 151, 0.16);
  z-index: 20;
  max-height: min(70vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.user-menu-item {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.user-menu-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-menu-item-parent {
  align-items: center;
  justify-content: space-between;
}

.user-menu-item-parent[aria-expanded="true"] {
  background: rgba(118, 183, 255, 0.16);
}

.user-menu-chevron {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.user-menu-item-parent[aria-expanded="true"] .user-menu-chevron {
  color: #35679f;
  transform: rotate(180deg);
}

.user-menu-subpanel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 0 0 10px;
  border-left: 2px solid rgba(118, 183, 255, 0.2);
}

.user-menu-subitem {
  padding-left: 14px;
  background: rgba(248, 251, 255, 0.9);
}

.user-menu-item:hover {
  background: rgba(118, 183, 255, 0.12);
}

.external-sheet-preview-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(118, 183, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(239, 194, 79, 0.2), transparent 26%),
    linear-gradient(180deg, #f4f9ff 0%, #eaf4ff 54%, #f8fbff 100%);
}

.external-sheet-preview-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px 16px;
}

.external-sheet-stage {
  max-width: 980px;
  margin: 0 auto;
}

.external-sheet-paper {
  overflow: hidden;
  border: 1px solid rgba(111, 143, 192, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 64px rgba(74, 109, 158, 0.18);
}

.external-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background:
    linear-gradient(135deg, rgba(79, 157, 255, 0.13), rgba(239, 194, 79, 0.16)),
    rgba(247, 251, 255, 0.96);
  border-bottom: 1px solid rgba(111, 143, 192, 0.18);
}

.external-sheet-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.external-sheet-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid rgba(120, 156, 204, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
}

.external-sheet-brand p,
.external-sheet-date span,
.external-sheet-summary span,
.external-sheet-section-title p,
.external-sheet-fields dt,
.external-sheet-item-main p,
.external-sheet-footer span,
.external-sheet-footer p {
  margin: 0;
  color: var(--muted);
}

.external-sheet-brand p {
  margin-bottom: 5px;
  color: #5f8fd7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.external-sheet-brand h1 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.18;
}

.external-sheet-date {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.external-sheet-date span {
  font-size: 13px;
  font-weight: 700;
}

.external-sheet-date strong {
  color: #486b97;
  font-size: 15px;
}

.external-sheet-summary {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.4fr 1.5fr;
  gap: 10px;
  padding: 18px 32px;
  background: rgba(250, 253, 255, 0.92);
  border-bottom: 1px solid rgba(111, 143, 192, 0.14);
}

.external-sheet-summary div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(111, 143, 192, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.external-sheet-summary span {
  font-size: 12px;
  font-weight: 700;
}

.external-sheet-summary strong {
  overflow-wrap: anywhere;
  color: #25466c;
  font-size: 18px;
}

.external-sheet-section {
  padding: 28px 32px 4px;
}

.external-sheet-section + .external-sheet-section {
  padding-top: 22px;
}

.external-sheet-section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.external-sheet-section-title > div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.external-sheet-section-title h2 {
  margin: 0;
  color: #213c5f;
  font-size: 21px;
}

.external-sheet-section-title p {
  max-width: 460px;
  text-align: right;
  font-size: 13px;
  line-height: 1.7;
}

.external-sheet-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.external-sheet-type-pill.is-supply {
  background: rgba(239, 194, 79, 0.18);
  color: #b27f12;
}

.external-sheet-type-pill.is-demand {
  background: rgba(118, 183, 255, 0.2);
  color: #3f82cf;
}

.external-sheet-list {
  display: grid;
  gap: 12px;
}

.external-sheet-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(111, 143, 192, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.external-sheet-item.is-supply {
  border-left: 5px solid var(--supply-accent);
}

.external-sheet-item.is-demand {
  border-left: 5px solid var(--demand-accent);
}

.external-sheet-item-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(238, 245, 255, 0.94);
  color: #52749d;
  font-size: 14px;
  font-weight: 900;
}

.external-sheet-item-main {
  min-width: 0;
}

.external-sheet-item-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.external-sheet-item-title h3 {
  margin: 0;
  color: #1f3b5e;
  font-size: 18px;
  line-height: 1.32;
}

.external-sheet-item-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(59, 200, 155, 0.14);
  color: #27886a;
  font-size: 12px;
  font-weight: 800;
}

.external-sheet-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.external-sheet-fields div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(244, 249, 255, 0.88);
}

.external-sheet-fields dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

.external-sheet-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #25466c;
  font-size: 14px;
  font-weight: 800;
}

.external-sheet-item-main p {
  font-size: 14px;
  line-height: 1.7;
}

.external-sheet-footer {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 32px 28px;
  background: rgba(244, 249, 255, 0.82);
  border-top: 1px solid rgba(111, 143, 192, 0.16);
}

.external-sheet-footer > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(111, 143, 192, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.external-sheet-footer strong {
  display: block;
  margin: 5px 0;
  color: #213c5f;
  font-size: 18px;
}

.external-sheet-footer-note strong {
  font-size: 15px;
}

@media (max-width: 760px) {
  .external-sheet-preview-shell {
    padding: 14px;
  }

  .external-sheet-paper {
    border-radius: 14px;
  }

  .external-sheet-head,
  .external-sheet-section-title,
  .external-sheet-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .external-sheet-head,
  .external-sheet-summary,
  .external-sheet-section,
  .external-sheet-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .external-sheet-brand h1 {
    font-size: 23px;
  }

  .external-sheet-date {
    justify-items: start;
  }

  .external-sheet-summary,
  .external-sheet-fields,
  .external-sheet-footer {
    grid-template-columns: 1fr 1fr;
  }

  .external-sheet-section-title {
    gap: 8px;
  }

  .external-sheet-section-title p {
    max-width: none;
    text-align: left;
  }

  .external-sheet-item {
    grid-template-columns: 1fr;
  }

  .external-sheet-item-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .external-sheet-summary,
  .external-sheet-fields,
  .external-sheet-footer {
    grid-template-columns: 1fr;
  }

  .external-sheet-brand {
    align-items: flex-start;
  }

  .external-sheet-brand img {
    width: 48px;
    height: 48px;
  }
}

.external-sheet-simple-page {
  min-height: 100vh;
  margin: 0;
  background: #eef5ff;
  color: #17365c;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.external-sheet-simple-wrap {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: 28px 14px;
}

.external-sheet-editor-card {
  width: min(720px, 100%);
  border: 1px solid rgba(111, 143, 192, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(74, 109, 158, 0.1);
  padding: 16px;
}

.external-sheet-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.external-sheet-editor-head p,
.external-sheet-editor-head h2 {
  margin: 0;
}

.external-sheet-editor-head p {
  margin-bottom: 3px;
  color: #5f8fd7;
  font-size: 12px;
  font-weight: 800;
}

.external-sheet-editor-head h2 {
  color: #17365c;
  font-size: 18px;
}

.external-sheet-editor-head button {
  border: 0;
  border-radius: 999px;
  background: #4f9dff;
  color: #fff;
  padding: 9px 14px;
  font-weight: 800;
}

.external-sheet-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.external-sheet-editor-grid label {
  display: grid;
  gap: 5px;
}

.external-sheet-editor-grid span {
  color: #6880a1;
  font-size: 12px;
  font-weight: 700;
}

.external-sheet-editor-grid input {
  width: 100%;
  border: 1px solid rgba(111, 143, 192, 0.22);
  border-radius: 9px;
  background: #fff;
  color: #17365c;
  padding: 9px 10px;
  outline: none;
}

.external-sheet-editor-grid input:focus {
  border-color: #4f9dff;
  box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.12);
}

.external-sheet-editor-grid .external-sheet-check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(111, 143, 192, 0.16);
  border-radius: 9px;
  background: rgba(248, 251, 255, 0.72);
  color: #17365c;
}

.external-sheet-editor-grid .external-sheet-check-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  accent-color: #4f82bf;
}

.external-sheet-editor-grid .external-sheet-check-option span {
  color: #315174;
  font-size: 13px;
}

.external-sheet-simple-card {
  width: min(720px, 100%);
  border: 1px solid rgba(111, 143, 192, 0.2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(74, 109, 158, 0.14);
  overflow: hidden;
}

.external-sheet-simple-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(111, 143, 192, 0.16);
  background: linear-gradient(135deg, #f7fbff, #fff8df);
}

.external-sheet-simple-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.external-sheet-simple-head p,
.external-sheet-simple-head h1 {
  margin: 0;
}

.external-sheet-simple-head p {
  margin-bottom: 4px;
  color: #5f8fd7;
  font-size: 13px;
  font-weight: 700;
}

.external-sheet-simple-head h1 {
  font-size: 26px;
  line-height: 1.2;
}

.external-sheet-simple-section {
  padding: 20px 24px 0;
}

.external-sheet-simple-section h2 {
  margin: 0 0 10px;
  color: #244a78;
  font-size: 18px;
}

.external-sheet-simple-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: simple-sheet;
}

.external-sheet-simple-list li {
  counter-increment: simple-sheet;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 143, 192, 0.14);
  border-radius: 10px;
  background: #f8fbff;
}

.external-sheet-simple-list li::before {
  content: counter(simple-sheet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #4f82bf;
  font-size: 13px;
  font-weight: 800;
}

.external-sheet-simple-list strong {
  display: block;
  grid-column: 2;
  margin-bottom: 4px;
  color: #16395f;
  font-size: 16px;
}

.external-sheet-simple-list span {
  display: block;
  grid-column: 2;
  color: #587294;
  font-size: 14px;
  line-height: 1.55;
}

.external-sheet-simple-foot {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(111, 143, 192, 0.16);
  background: #f8fbff;
}

.external-sheet-simple-foot strong {
  color: #16395f;
  font-size: 17px;
}

.external-sheet-simple-foot span {
  color: #6880a1;
  font-size: 13px;
}

@media (max-width: 520px) {
  .external-sheet-simple-wrap {
    padding: 10px;
  }

  .external-sheet-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .external-sheet-editor-grid {
    grid-template-columns: 1fr;
  }

  .external-sheet-simple-head,
  .external-sheet-simple-section,
  .external-sheet-simple-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .external-sheet-simple-head h1 {
    font-size: 22px;
  }

  .external-sheet-simple-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

.external-sheet-app-wrap {
  gap: 14px;
}

.external-sheet-app-header {
  width: min(980px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: stretch;
}

.external-sheet-app-title {
  flex: 1;
  border: 1px solid rgba(111, 143, 192, 0.2);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(74, 109, 158, 0.1);
}

.external-sheet-app-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.external-sheet-app-page .external-sheet-editor-card,
.external-sheet-app-page .external-sheet-simple-card,
.external-sheet-two-column {
  width: min(980px, 100%);
}

.external-sheet-filter-card {
  display: grid;
  gap: 12px;
}

.external-sheet-filter-grid {
  grid-template-columns: 150px 130px 160px minmax(180px, 1fr);
}

.external-sheet-editor-grid select {
  width: 100%;
  border: 1px solid rgba(111, 143, 192, 0.22);
  border-radius: 9px;
  background: #fff;
  color: #17365c;
  padding: 9px 10px;
  outline: none;
}

.external-sheet-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.external-sheet-toolbar button {
  min-height: 38px;
}

.external-sheet-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.external-sheet-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.external-sheet-list-head h2 {
  margin: 0;
  color: #17365c;
  font-size: 18px;
}

.external-sheet-list-head span {
  color: #6880a1;
  font-size: 13px;
  font-weight: 700;
}

.external-source-entry-list {
  display: grid;
  gap: 8px;
  max-height: 650px;
  overflow: auto;
  padding-right: 2px;
}

.external-source-entry {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(111, 143, 192, 0.14);
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
  cursor: pointer;
}

.external-source-entry.is-selected {
  border-color: rgba(79, 157, 255, 0.42);
  background: #eef6ff;
}

.external-source-entry input {
  width: 16px;
  height: 16px;
}

.external-source-entry-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.external-source-entry-type.is-supply {
  background: rgba(239, 194, 79, 0.18);
  color: #a77812;
}

.external-source-entry-type.is-demand {
  background: rgba(118, 183, 255, 0.2);
  color: #3f82cf;
}

.external-source-entry strong,
.external-source-entry small {
  grid-column: 3;
  min-width: 0;
}

.external-source-entry strong {
  color: #17365c;
  font-size: 14px;
}

.external-source-entry small {
  color: #587294;
  line-height: 1.45;
}

.external-sheet-empty {
  margin: 0;
  border: 1px dashed rgba(111, 143, 192, 0.28);
  border-radius: 10px;
  color: #6880a1;
  padding: 16px;
  text-align: center;
}

.external-sheet-history-list {
  display: grid;
  gap: 10px;
}

.external-sheet-history-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(111, 143, 192, 0.14);
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.external-sheet-history-item strong {
  color: #17365c;
}

.external-sheet-history-item span {
  color: #6880a1;
  font-size: 13px;
}

.external-sheet-history-item pre {
  max-height: 180px;
  overflow: auto;
  margin: 4px 0 0;
  border-radius: 8px;
  background: #fff;
  color: #244a78;
  padding: 10px;
  white-space: pre-wrap;
  font: 13px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.external-sheet-app-page .toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  border-radius: 999px;
  background: rgba(23, 54, 92, 0.92);
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(31, 59, 94, 0.22);
}

@media (max-width: 860px) {
  .external-sheet-app-header,
  .external-sheet-two-column {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .external-sheet-app-actions {
    justify-content: stretch;
  }

  .external-sheet-app-actions > * {
    flex: 1;
  }

  .external-sheet-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .external-sheet-filter-grid {
    grid-template-columns: 1fr;
  }

  .external-source-entry {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .external-source-entry-type {
    grid-column: 2;
    justify-self: start;
  }

  .external-source-entry strong,
  .external-source-entry small {
    grid-column: 2;
  }
}

.shared-my-menu-item.is-active,
.shared-my-menu-item.is-active:hover {
  background: rgba(118, 183, 255, 0.18);
  color: #244f83;
  cursor: default;
}

.settings-overview-card {
  padding: 16px 18px;
}

.settings-page-subtitle {
  margin: 6px 0 0;
  line-height: 1.6;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.settings-action-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(117, 150, 197, 0.2);
  box-shadow: 0 12px 28px rgba(90, 124, 171, 0.12);
}

.settings-action-card h3 {
  margin: 0 0 8px;
}

.settings-action-card p {
  margin: 0;
}

.settings-card-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(235, 246, 255, 0.86), rgba(255, 252, 228, 0.78));
  border: 1px solid rgba(117, 150, 197, 0.16);
}

.settings-card-value span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-card-value strong {
  font-size: 28px;
  color: #274b77;
}

.settings-card-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.settings-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.wecom-checkbox-row {
  align-items: center;
}

.wecom-checkbox-row .checkbox-field {
  padding-top: 0;
  justify-content: flex-start;
}

.customer-library-tabs {
  margin-bottom: 0;
}

.customer-library-toolbar {
  margin-bottom: 14px;
}

.customer-library-compact-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 150px) auto;
  gap: 10px;
  align-items: end;
}

.customer-library-toolbar-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.customer-library-toolbar-actions .primary-button,
.customer-library-toolbar-actions .secondary-button,
.customer-library-toolbar-actions .ghost-button {
  white-space: nowrap;
}

.customer-library-list,
.customer-success-list {
  display: grid;
  gap: 12px;
}

.customer-library-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.96));
  box-shadow: 0 8px 20px rgba(90, 124, 171, 0.07);
}

.customer-library-row-name {
  flex: 1 1 220px;
  min-width: 0;
  overflow: hidden;
  color: #274b77;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-library-row-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-library-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
}

.customer-library-row-actions .secondary-button,
.customer-library-row-actions .danger-button {
  padding: 7px 11px;
  font-size: 12px;
}

.customer-library-item,
.customer-success-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 255, 0.94));
  box-shadow: 0 10px 24px rgba(90, 124, 171, 0.08);
}

.customer-library-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-library-item-head h3 {
  margin: 0 0 6px;
}

.customer-library-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.customer-success-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.customer-success-form {
  margin-top: 12px;
}

.settings-card-actions .primary-button,
.settings-card-actions .secondary-button,
.settings-card-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.settings-modal-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.card,
.login-card,
.toolbar,
.summary-card,
.modal-panel,
.inset-card,
.entry-card,
.user-item,
.role-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 250, 255, 0.9) 100%);
  border: 1px solid rgba(117, 150, 197, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.compact-toolbar {
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(118, 183, 255, 0.16), rgba(255, 230, 156, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.92));
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.compact-filters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.success-filters-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
}

.field,
.checkbox-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field select[multiple] {
  min-height: 132px;
  padding: 10px 12px;
}

.field span,
.checkbox-field span {
  color: var(--muted);
  font-size: 12px;
}

.compact-field span {
  font-size: 10px;
}

.checkbox-field {
  flex-direction: row;
  align-items: end;
  gap: 8px;
  justify-content: center;
  padding-top: 20px;
}

.compact-checkbox-field {
  padding-top: 18px;
}

.field-date-range {
  min-width: 0;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.date-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  cursor: pointer;
}

.date-input-shell:focus-within {
  border-color: rgba(79, 157, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.12);
}

.date-input-shell:focus-visible {
  outline: none;
  border-color: rgba(79, 157, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.12);
}

.short-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.date-input-shell .short-date-display {
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  pointer-events: none;
}

.short-date-display.is-empty {
  color: var(--muted);
}

.date-range-separator {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(118, 183, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(118, 183, 255, 0.16);
}

.field textarea {
  resize: vertical;
  min-height: 82px;
}

.choice-field {
  gap: 8px;
}

.entry-form-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.customer-field {
  position: relative;
  gap: 8px;
}

.customer-field-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-suggestion-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(117, 150, 197, 0.24);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(84, 118, 168, 0.16);
}

.customer-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 12px;
  background: rgba(245, 250, 255, 0.9);
  color: var(--text);
  text-align: left;
}

.customer-suggestion-item:hover {
  background: rgba(233, 244, 255, 0.96);
  border-color: rgba(118, 183, 255, 0.3);
}

.customer-suggestion-item strong {
  font-size: 13px;
}

.customer-suggestion-item span {
  color: var(--muted);
  font-size: 12px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.radio-option input {
  margin: 0;
}

.price-hint {
  margin: 2px 0 0;
  color: #5378a6;
  font-size: 12px;
  line-height: 1.35;
}

.image-upload-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.image-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(118, 183, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(235, 246, 255, 0.9), rgba(255, 252, 228, 0.82));
  text-align: center;
  color: #36577c;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.image-dropzone strong {
  font-size: 14px;
}

.image-dropzone span {
  font-size: 12px;
  color: var(--muted);
}

.image-dropzone:hover,
.image-dropzone.is-dragover {
  border-color: rgba(118, 183, 255, 0.82);
  box-shadow: 0 10px 24px rgba(110, 159, 219, 0.12);
  transform: translateY(-1px);
}

.image-upload-browse-button {
  margin-top: 4px;
}

.image-upload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.image-upload-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(117, 150, 197, 0.18);
}

.image-upload-item.is-dragging {
  opacity: 0.55;
}

.image-upload-item.is-drag-target {
  border-color: rgba(118, 183, 255, 0.82);
  box-shadow: 0 0 0 2px rgba(118, 183, 255, 0.14);
}

.image-upload-item-preview {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(239, 247, 255, 0.85);
  cursor: pointer;
}

.image-upload-item-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-upload-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(25, 41, 67, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.image-upload-item-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.image-upload-item-meta strong,
.image-upload-item-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-upload-item-meta span {
  color: var(--muted);
  font-size: 12px;
}

.image-upload-remove-button {
  align-self: flex-end;
  flex-shrink: 0;
}

.image-upload-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.image-upload-cover-button {
  color: #5378a6;
}

.toolbar-actions,
.modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.compact-toolbar-actions .primary-button,
.compact-toolbar-actions .secondary-button,
.compact-toolbar-actions .ghost-button,
.compact-toolbar-actions .danger-button {
  padding: 8px 12px;
  font-size: 13px;
}

.full-span {
  grid-column: 1 / -1;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.entry-action-button,
.entry-edit-button,
.entry-flag-button,
.icon-button {
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.entry-action-button:hover,
.entry-edit-button:hover,
.entry-flag-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.entry-action-button:disabled,
.entry-edit-button:disabled,
.entry-flag-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.primary-button {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.96), rgba(125, 190, 255, 0.94));
  color: #193150;
}

.supply-create-button {
  background: #fff0bf;
  color: #8b6710;
  border: 1px solid rgba(220, 171, 44, 0.36);
  box-shadow: 0 8px 18px rgba(239, 194, 79, 0.12);
}

.supply-create-button:hover {
  background: #ffe7a5;
}

.demand-create-button {
  background: #dceeff;
  color: #35679f;
  border: 1px solid rgba(79, 157, 255, 0.28);
  box-shadow: 0 8px 18px rgba(118, 183, 255, 0.12);
}

.demand-create-button:hover {
  background: #cae5ff;
}

.secondary-button {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.18), rgba(118, 183, 255, 0.06));
  color: #467fca;
}

.secondary-button.is-active,
.primary-button.is-active {
  box-shadow: 0 10px 22px rgba(90, 124, 171, 0.16);
}

.ghost-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(236, 243, 255, 0.7));
  color: var(--text);
}

.danger-button {
  background: rgba(255, 111, 136, 0.14);
  color: #cc536b;
}

.entry-action-button {
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(71, 93, 126, 0.96), rgba(42, 61, 89, 0.96));
  color: #f4f8ff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(34, 48, 72, 0.18);
}

.entry-action-button:hover {
  background: linear-gradient(135deg, rgba(49, 69, 100, 0.98), rgba(29, 45, 71, 0.98));
  color: #ffffff;
}

.entry-edit-button {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(118, 183, 255, 0.18);
  color: #3b6ea8;
  font-size: 11px;
  font-weight: 600;
}

.entry-edit-button:hover {
  background: rgba(118, 183, 255, 0.28);
  color: #244d79;
}

.entry-flag-button {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 229, 163, 0.3);
  color: #9f7516;
  font-size: 11px;
  font-weight: 600;
}

.entry-flag-button.is-active,
.entry-flag-button:hover {
  background: rgba(255, 111, 136, 0.18);
  color: #b9475d;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.board-summary-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.summary-card {
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(118, 183, 255, 0.12), rgba(255, 229, 163, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.94));
}

.summary-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 12px;
}

.summary-card strong {
  font-size: 20px;
}

.compact-summary-card {
  min-height: 58px;
}

.live-feed-card {
  --live-feed-card-height: 56px;
  --live-feed-stage-height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px;
  min-height: var(--live-feed-card-height);
  height: var(--live-feed-card-height);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(118, 183, 255, 0.16), rgba(255, 229, 163, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.96));
}

.live-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}

.live-feed-head > span {
  margin-bottom: 0;
}

.live-feed-head > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #35506f;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-feed-tag.is-created {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.2), rgba(231, 244, 255, 0.88));
  color: #35679f;
}

.live-feed-tag.is-success {
  background: linear-gradient(135deg, rgba(116, 216, 170, 0.24), rgba(220, 248, 235, 0.88));
  color: #2f8768;
}

.live-feed-text {
  display: block;
  font-size: 15px !important;
  line-height: 1.35;
  color: #284a75;
}

.live-feed-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.live-feed-marquee {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow: hidden;
  width: 100%;
  min-height: var(--live-feed-stage-height);
  height: var(--live-feed-stage-height);
  padding: 0;
  isolation: isolate;
}

.live-feed-track {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100%;
  isolation: isolate;
}

.live-feed-stage {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.live-feed-slot {
  width: 100%;
  min-height: 100%;
  height: 100%;
}

.live-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "tag text time";
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(117, 150, 197, 0.18);
  color: #284a75;
  box-shadow: 0 5px 12px rgba(83, 124, 176, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.live-feed-item.is-created {
  background: linear-gradient(135deg, rgba(230, 242, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.live-feed-item.is-success {
  background: linear-gradient(135deg, rgba(228, 250, 241, 0.95), rgba(255, 255, 255, 0.92));
}

.live-feed-item.is-empty {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-feed-item-tag {
  grid-area: tag;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(118, 183, 255, 0.18);
  color: #35679f;
  line-height: 1;
}

.live-feed-item.is-success .live-feed-item-tag {
  background: rgba(116, 216, 170, 0.2);
  color: #2f8768;
}

.live-feed-item-text {
  grid-area: text;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  line-height: 1.2;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-feed-item-time {
  grid-area: time;
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

.analysis-nav-card,
.analysis-panel {
  padding: 14px 16px;
  margin-bottom: 12px;
}

.analysis-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.analysis-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 183, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.analysis-tab.is-active {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.18), rgba(255, 225, 143, 0.2));
  color: var(--text);
}

.analysis-filter-stack {
  display: grid;
  gap: 12px;
}

.analysis-preset-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.analysis-preset-button {
  border: 1px solid rgba(118, 183, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-weight: 700;
}

.analysis-preset-button.is-active {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.18), rgba(255, 225, 143, 0.2));
  border-color: rgba(118, 183, 255, 0.36);
  color: var(--text);
}

.analysis-filters-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.analysis-ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  min-width: 0;
}

.analysis-highlight-section {
  padding: 14px 16px;
  margin-bottom: 12px;
}

.analysis-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.leaderboard-highlight-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96));
  box-shadow: 0 18px 32px rgba(31, 56, 88, 0.08);
}

.leaderboard-highlight-card.is-supply {
  background:
    linear-gradient(180deg, rgba(255, 242, 207, 0.82), rgba(255, 252, 241, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96));
}

.leaderboard-highlight-card.is-demand {
  background:
    linear-gradient(180deg, rgba(219, 235, 255, 0.8), rgba(243, 248, 255, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96));
}

.leaderboard-highlight-card.is-completed {
  background:
    linear-gradient(180deg, rgba(219, 248, 234, 0.78), rgba(242, 253, 248, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96));
}

.leaderboard-highlight-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.leaderboard-highlight-head h4 {
  margin: 0;
  font-size: 18px;
}

.leaderboard-highlight-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  background: rgba(118, 183, 255, 0.14);
}

.leaderboard-highlight-tag.is-supply {
  background: rgba(239, 194, 79, 0.18);
}

.leaderboard-highlight-tag.is-demand {
  background: rgba(118, 183, 255, 0.18);
}

.leaderboard-highlight-tag.is-completed {
  background: rgba(92, 191, 145, 0.18);
}

.leaderboard-champion-block {
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(117, 150, 197, 0.14);
  display: grid;
  gap: 8px;
}

.leaderboard-champion-block.is-supply {
  background: linear-gradient(180deg, rgba(255, 237, 183, 0.82), rgba(255, 248, 223, 0.96));
}

.leaderboard-champion-block.is-demand {
  background: linear-gradient(180deg, rgba(214, 232, 255, 0.86), rgba(239, 247, 255, 0.96));
}

.leaderboard-champion-block.is-completed {
  background: linear-gradient(180deg, rgba(209, 246, 227, 0.84), rgba(238, 252, 245, 0.96));
}

.leaderboard-champion-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.leaderboard-champion-crown {
  font-size: 18px;
}

.leaderboard-champion-name {
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.leaderboard-champion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.leaderboard-champion-count {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.leaderboard-champion-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.leaderboard-champion-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.leaderboard-ladder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.leaderboard-ladder-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(117, 150, 197, 0.12);
}

.leaderboard-ladder-user {
  display: grid;
  gap: 4px;
}

.leaderboard-ladder-user strong {
  font-size: 14px;
  color: var(--text);
}

.leaderboard-ladder-user span {
  font-size: 12px;
  color: var(--muted);
}

.leaderboard-ladder-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.leaderboard-highlight-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  border: 1px dashed rgba(117, 150, 197, 0.22);
  padding: 18px;
}

.report-chart {
  min-height: 360px;
}

.report-line-chart {
  display: grid;
  gap: 14px;
}

.report-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.report-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.report-chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.34);
}

.report-chart-legend-dot.is-supply {
  background: #e3b341;
}

.report-chart-legend-dot.is-demand {
  background: #5b8def;
}

.report-chart-legend-dot.is-completed {
  background: #3fbf8c;
}

.report-chart-legend-dot.is-price-range {
  background: linear-gradient(180deg, #ff6f88, #ffc66d 52%, #3fbf8c);
}

.report-chart-legend-dot.is-price-high {
  background: #ff6f88;
}

.report-chart-legend-dot.is-price-low {
  background: #3fbf8c;
}

.report-chart-range {
  font-size: 12px;
  color: var(--muted);
}

.report-line-surface {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 255, 0.88));
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.report-line-svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-line-grid-row line {
  stroke: rgba(117, 150, 197, 0.18);
  stroke-dasharray: 4 6;
}

.report-line-grid-row text,
.report-line-axis-date {
  fill: #7a8ca7;
  font-size: 12px;
}

.report-line-axis {
  stroke: rgba(117, 150, 197, 0.32);
  stroke-width: 1;
}

.report-line-path {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-line-point {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.report-line-point:hover {
  transform: scale(1.15);
}

.product-price-filter-stack {
  width: 100%;
}

.product-price-filters-grid {
  grid-template-columns: 160px 160px 160px minmax(520px, 1fr);
  max-width: none;
  width: 100%;
  align-items: end;
}

.product-price-classifier-grid {
  grid-column: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.product-price-classifier-field {
  min-width: 0;
}

.product-price-filter-empty {
  min-height: 46px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.product-price-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.price-range-chart {
  min-height: 390px;
}

.price-range-surface {
  overflow-x: auto;
}

.price-range-svg {
  min-width: 720px;
}

.price-range-bar {
  fill: url("#priceRangeGradient");
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.5;
  filter: drop-shadow(0 8px 12px rgba(91, 109, 138, 0.16));
}

.price-range-day.is-clickable {
  cursor: pointer;
}

.price-range-day.is-clickable .price-range-bar {
  transition: transform 0.18s ease, filter 0.18s ease, stroke 0.18s ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.price-range-day.is-clickable:hover .price-range-bar,
.price-range-day.is-clickable:focus .price-range-bar,
.price-range-day.is-clickable:focus-visible .price-range-bar {
  stroke: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 14px 22px rgba(91, 109, 138, 0.24));
  transform: translateY(-3px);
}

.price-range-max-tick {
  stroke: #ff5f7d;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.price-range-min-tick {
  stroke: #31a774;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.product-price-table {
  min-width: 860px;
}

.product-price-low {
  color: #24875b;
  font-weight: 800;
}

.product-price-high {
  color: #c74860;
  font-weight: 800;
}

.product-price-spread {
  color: #a66c0a;
  font-weight: 800;
}

.product-price-source-cell {
  display: grid;
  gap: 3px;
}

.product-price-source-cell strong {
  color: var(--text);
}

.product-price-source-cell span {
  color: var(--muted);
  font-size: 12px;
}

.report-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-chart-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
}

.report-chart-date {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}

.report-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-bar {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.report-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.report-bar-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.report-bar-supply .report-bar-fill {
  background: linear-gradient(90deg, rgba(255, 225, 143, 0.72), rgba(255, 239, 191, 0.86));
}

.report-bar-demand .report-bar-fill {
  background: linear-gradient(90deg, rgba(118, 183, 255, 0.66), rgba(207, 231, 255, 0.88));
}

.report-bar-completed .report-bar-fill {
  background: linear-gradient(90deg, rgba(116, 216, 170, 0.58), rgba(199, 246, 226, 0.84));
}

.report-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.report-table th,
.report-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(117, 150, 197, 0.12);
  font-size: 13px;
}

.report-table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.42);
}

.customer-public-table {
  min-width: 1030px;
  table-layout: fixed;
}

.customer-crm-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.customer-crm-table th {
  height: 42px;
  border-bottom: 1px solid rgba(117, 150, 197, 0.18);
  background: #f6f8fb;
  color: #526074;
  font-size: 12px;
  letter-spacing: 0;
}

.customer-crm-table td {
  border-bottom: 1px solid rgba(117, 150, 197, 0.1);
  background: #fff;
}

.customer-crm-table tbody tr:hover td {
  background: #f8fbff;
}

.customer-crm-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-public-main-table {
  min-width: 980px;
}

.customer-public-table th {
  text-align: center;
  white-space: nowrap;
}

.customer-public-table td {
  vertical-align: middle;
  height: 44px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.customer-public-table td:nth-child(2),
.customer-public-table td:nth-child(3),
.customer-public-table td:nth-child(4),
.customer-public-table td:nth-child(5),
.customer-public-table td:nth-child(6),
.customer-public-table td:nth-child(7) {
  text-align: center;
}

.customer-public-main-table td:nth-child(2),
.customer-public-main-table td:nth-child(3),
.customer-public-main-table td:nth-child(4),
.customer-public-main-table td:nth-child(5) {
  text-align: center;
}

.customer-public-table .customer-public-col-name {
  width: 340px;
}

.customer-public-main-table .customer-public-col-name {
  width: 360px;
}

.customer-name-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1f4f86;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.customer-name-link:hover,
.customer-name-link:focus-visible {
  color: #123a66;
  text-decoration: underline;
}

.customer-public-table .customer-public-col-owner {
  width: 120px;
}

.customer-public-table .customer-public-col-cooperation {
  width: 96px;
}

.customer-public-table .customer-public-col-city {
  width: 96px;
}

.customer-public-table .customer-public-col-followup {
  width: 150px;
}

.customer-public-table .customer-public-col-date {
  width: 130px;
}

.customer-public-table .customer-public-col-claim {
  width: 110px;
}

.customer-public-table .customer-public-col-actions {
  width: 230px;
}

.customer-public-main-table .customer-public-col-actions {
  width: 330px;
}

.customer-private-table {
  table-layout: fixed;
  width: 100%;
}

.customer-private-table {
  min-width: 0;
}

.report-table-wrap:has(.customer-private-table) {
  overflow-x: hidden;
}

.customer-private-table th {
  text-align: center;
  white-space: nowrap;
}

.customer-private-table td {
  vertical-align: middle;
  height: 44px;
  padding-top: 7px;
  padding-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-private-table td:nth-child(n + 4) {
  text-align: center;
}

.customer-private-table td.customer-actions-cell {
  overflow: visible;
}

.customer-private-table tr {
  position: relative;
}

.customer-private-table tr:has(.customer-row-more-menu[open]) {
  z-index: 30;
}

.customer-private-table .customer-private-col-parent {
  width: 14%;
}

.customer-private-table .customer-private-col-select {
  width: 42px;
}

.customer-private-table .customer-private-col-name {
  width: 16%;
}

.customer-private-table .customer-private-col-owner {
  width: 7%;
}

.customer-private-table .customer-private-col-cooperation {
  width: 5%;
}

.customer-private-table .customer-private-col-city {
  width: 7%;
}

.customer-private-table .customer-private-col-contact {
  width: 8%;
}

.customer-private-table .customer-private-col-phone {
  width: 11%;
}

.customer-private-table .customer-private-col-followup {
  width: 7%;
}

.customer-private-table .customer-private-col-recycle {
  width: 7%;
}

.customer-private-table .customer-private-col-actions {
  width: 15%;
}

.customer-select-cell {
  text-align: center;
}

.customer-select-cell input,
.customer-private-table th input[type="checkbox"] {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.customer-private-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.customer-private-stats-table {
  min-width: 760px;
}

.customer-private-stats-table .customer-private-stats-col-city {
  width: 120px;
}

.customer-private-stats-table .customer-private-stats-col-department {
  width: 180px;
}

.customer-private-stats-table .customer-private-stats-col-user {
  width: 180px;
}

.customer-private-stats-table .customer-private-stats-col-number {
  width: 110px;
}

.customer-private-stats-table td:nth-child(n + 4),
.customer-private-stats-table th:nth-child(n + 4) {
  text-align: right;
}

.customer-private-stats-table tr.is-over-limit td {
  background: rgba(239, 68, 68, 0.08);
}

.customer-private-stats-user-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted-text);
  font-size: 12px;
}

.customer-name-cell {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-weight: 700;
}

.customer-name-cell.is-secondary {
  color: #475569;
  font-weight: 650;
}

.customer-table-muted {
  color: #56657a;
}

.customer-table-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 0.55rem;
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 999px;
  background: #f8fafc;
  color: #526074;
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-table-pill.is-done {
  border-color: #b8d8c1;
  background: #f3faf6;
  color: #276749;
}

.customer-table-pill.is-neutral {
  border-color: #d4dce8;
  background: #f8fafc;
  color: #64748b;
}

.customer-table-pill.is-open {
  border-color: #b7c9e8;
  background: #f4f8ff;
  color: #2d5487;
}

.customer-table-pill.is-warning {
  border-color: #e8cf9f;
  background: #fff8ed;
  color: #8a5a17;
}

.customer-nowrap-cell,
.customer-actions-cell {
  white-space: nowrap;
}

.customer-favorite-followup-link {
  display: inline-flex;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1f4f86;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-favorite-followup-link:hover,
.customer-favorite-followup-link:focus-visible {
  color: #123a66;
  text-decoration: underline;
}

.customer-followup-table tr.is-followup-focused td {
  background: #fff8e6;
  transition: background 0.2s ease;
}

.report-table-empty {
  text-align: center !important;
  color: var(--muted);
}

.security-section {
  display: grid;
  gap: 14px;
}

.security-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.security-summary-danger {
  border-color: rgba(201, 75, 75, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 239, 239, 0.9), rgba(255, 249, 249, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.94));
}

.security-summary-danger strong {
  color: #b54747;
}

.security-analysis-grid {
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
}

.security-subpanel-full {
  grid-column: 1 / -1;
}

.security-subpanel {
  display: grid;
  gap: 10px;
  align-content: start;
  align-self: start;
}

.section-title-compact {
  margin-bottom: 0;
}

.section-title-compact h4 {
  margin: 0;
  font-size: 16px;
}

.security-table-row-danger {
  background:
    linear-gradient(180deg, rgba(255, 243, 243, 0.94), rgba(255, 250, 250, 0.98));
}

.security-user-cell,
.security-detail-cell {
  display: grid;
  gap: 4px;
}

.security-user-cell strong,
.security-detail-cell strong {
  color: var(--text);
}

.security-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 111, 136, 0.24), rgba(255, 228, 234, 0.92));
  color: #b9475d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.security-event-badge-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(68, 168, 118, 0.16), rgba(235, 250, 242, 0.95));
  color: #2f8f5b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.security-status-ok {
  color: #2f8f5b;
  font-weight: 700;
}

.ranking-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.ranking-table th,
.ranking-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(117, 150, 197, 0.12);
  font-size: 13px;
  vertical-align: middle;
}

.ranking-table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.42);
}

.ranking-table-empty {
  text-align: center !important;
  color: var(--muted);
}

.analysis-report-stack {
  display: grid;
  gap: 12px;
}

.analysis-push-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.analysis-push-checkbox {
  min-height: 46px;
  margin: 0;
  align-self: stretch;
}

.analysis-push-actions {
  justify-content: flex-end;
}

.analysis-push-note {
  margin: 0;
}

.analysis-matrix-table {
  min-width: 760px;
}

.analysis-matrix-table th,
.analysis-matrix-table td {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.analysis-matrix-table th.analysis-matrix-name,
.analysis-matrix-table td.analysis-matrix-name {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 160px;
  text-align: left;
  background: rgba(247, 250, 255, 0.98);
}

.analysis-matrix-table thead th.analysis-matrix-name {
  z-index: 2;
}

.analysis-matrix-user {
  display: grid;
  gap: 4px;
}

.analysis-matrix-user strong {
  color: var(--text);
}

.analysis-matrix-user span {
  font-size: 12px;
  color: var(--muted);
}

.analysis-matrix-total {
  font-weight: 800;
  color: var(--primary);
}

.analysis-matrix-footer {
  font-weight: 800;
  background: rgba(240, 246, 255, 0.96) !important;
}

.analysis-business-table {
  min-width: 600px;
}

.analysis-business-table th,
.analysis-business-table td {
  padding: 8px 10px;
  font-size: 12px;
}

.analysis-business-name {
  min-width: 148px;
}

.analysis-business-date {
  min-width: 92px;
}

.analysis-business-table th.analysis-business-date,
.analysis-business-table td.analysis-business-date {
  text-align: center;
}

.analysis-business-table .analysis-matrix-user {
  gap: 2px;
}

.analysis-business-table .analysis-matrix-user span {
  font-size: 11px;
}

.analysis-business-summary-row td {
  font-weight: 800;
}

.rank-cell {
  width: 88px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(118, 183, 255, 0.12);
  color: var(--text);
  font-weight: 800;
}

.rank-badge.is-top-1 {
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.92), rgba(255, 239, 191, 0.98));
}

.rank-badge.is-top-2 {
  background: linear-gradient(135deg, rgba(208, 221, 244, 0.96), rgba(241, 246, 255, 0.98));
}

.rank-badge.is-top-3 {
  background: linear-gradient(135deg, rgba(230, 182, 146, 0.92), rgba(245, 220, 202, 0.98));
}

.ranking-user-name {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.ranking-user-account {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.ranking-meta-text {
  color: var(--muted);
}

.ranking-count {
  font-weight: 800;
  color: var(--text);
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.board-column {
  padding: 10px;
  min-height: 360px;
}

.compact-board-column {
  border-radius: 14px;
}

.supply-panel {
  background:
    linear-gradient(180deg, rgba(255, 239, 191, 0.6), rgba(255, 248, 226, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.94));
  border-color: rgba(239, 194, 79, 0.28);
}

.demand-panel {
  background:
    linear-gradient(180deg, rgba(207, 231, 255, 0.62), rgba(237, 246, 255, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.94));
  border-color: rgba(118, 183, 255, 0.28);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.no-column-title {
  gap: 10px;
  justify-content: flex-start;
}

.column-accent {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.column-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.no-column-title .pill-count {
  margin-left: auto;
}

.supply-header .column-accent {
  background: linear-gradient(90deg, rgba(239, 194, 79, 0.9), rgba(255, 239, 191, 0.6));
}

.supply-header h2 {
  color: var(--supply-accent);
}

.demand-header .column-accent {
  background: linear-gradient(90deg, rgba(118, 183, 255, 0.9), rgba(207, 231, 255, 0.62));
}

.demand-header h2 {
  color: var(--demand-accent);
}

.supply-header .pill-count {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.8));
  color: var(--supply-accent);
}

.demand-header .pill-count {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.24), rgba(231, 244, 255, 0.84));
  color: var(--demand-accent);
}

.pill-count {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-board-nav {
  display: none;
}

.mobile-board-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(117, 150, 197, 0.14);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mobile-board-nav-button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.mobile-board-nav-button.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(83, 124, 176, 0.12);
  transform: translateY(-1px);
}

.mobile-board-nav-button.is-active.is-supply {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.42), rgba(255, 246, 211, 0.92));
  color: var(--supply-accent);
}

.mobile-board-nav-button.is-active.is-demand {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.24), rgba(231, 244, 255, 0.92));
  color: var(--demand-accent);
}

.mobile-board-nav-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.entry-card {
  position: relative;
  padding: 8px 10px 7px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  border: 1px solid rgba(117, 150, 197, 0.16);
  overflow: hidden;
}

.supply-panel .entry-card {
  background:
    linear-gradient(135deg, rgba(255, 246, 217, 0.96), rgba(255, 255, 255, 0.88));
}

.demand-panel .entry-card {
  background:
    linear-gradient(135deg, rgba(233, 244, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.entry-card-actions,
.inline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.entry-card-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.entry-card-line + .entry-card-line {
  margin-top: 5px;
}

.entry-card-line-primary {
  justify-content: space-between;
  align-items: center;
}

.entry-card-clickable {
  cursor: pointer;
}

.entry-card-clickable:hover {
  box-shadow: 0 12px 24px rgba(83, 124, 176, 0.1);
}

.entry-card-completed {
  border-color: rgba(138, 150, 169, 0.2);
  background:
    linear-gradient(135deg, rgba(239, 242, 247, 0.96), rgba(250, 251, 253, 0.92)) !important;
  box-shadow: none;
}

.entry-card-completed .entry-image-thumb {
  opacity: 0.72;
  border-color: rgba(152, 163, 180, 0.24);
  box-shadow: none;
}

.entry-card-completed .entry-type-text,
.entry-card-completed .entry-condition-text,
.entry-card-completed .entry-price,
.entry-card-completed .entry-price-main,
.entry-card-completed .entry-price-suggest,
.entry-card-completed .entry-card-title-row h3 {
  color: #667487;
}

.entry-card-completed .entry-price-divider,
.entry-card-completed .entry-note,
.entry-card-completed .compact-chip {
  color: #7f8a99;
}

.entry-card-completed .compact-chip {
  background: rgba(255, 255, 255, 0.86);
}

.entry-card-completed .tag-status {
  background: rgba(125, 136, 151, 0.16);
  color: #697687;
}

.entry-card-completed.entry-card-clickable:hover {
  box-shadow: 0 8px 16px rgba(118, 129, 148, 0.08);
}

.entry-image-button {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 2px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.entry-image-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(83, 124, 176, 0.08);
}

.entry-image-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(24, 40, 68, 0.74);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.entry-image-zoom-hint {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  padding: 2px 4px;
  border-radius: 8px;
  background: rgba(24, 40, 68, 0.72);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.entry-image-button:hover .entry-image-zoom-hint,
.entry-image-button:focus-visible .entry-image-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.entry-card-main {
  flex: 1;
  min-width: 0;
}

.entry-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.entry-card-title-row h3 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-type-text,
.entry-condition-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.entry-type-text {
  color: #345a86;
}

.entry-condition-text {
  color: #8a6710;
}

.entry-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: #274b77;
  text-align: right;
}

.entry-price-main {
  color: #274b77;
}

.entry-price-divider {
  color: rgba(84, 110, 146, 0.65);
}

.entry-price-suggest {
  color: #9a7114;
}

.entry-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.entry-card-line-tertiary {
  justify-content: space-between;
  align-items: center;
}

.entry-card-actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.compact-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.compact-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-note {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-entries-filters {
  grid-template-columns: 1.6fr 1fr 1fr auto;
  align-items: end;
}

.my-entries-actions {
  justify-content: flex-start;
}

.my-entries-table-card {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.my-entries-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.my-entries-table-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.my-entries-table-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.my-entries-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.my-entries-page-info {
  min-width: 92px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.my-entries-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.my-entries-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.my-entries-table th,
.my-entries-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-entries-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.my-entries-table th:nth-child(1),
.my-entries-table td:nth-child(1) {
  width: 6%;
}

.my-entries-table th:nth-child(2),
.my-entries-table td:nth-child(2) {
  width: 7%;
}

.my-entries-table th:nth-child(3),
.my-entries-table td:nth-child(3) {
  width: 9%;
}

.my-entries-table th:nth-child(4),
.my-entries-table td:nth-child(4) {
  width: 22%;
}

.my-entries-table th:nth-child(5),
.my-entries-table td:nth-child(5) {
  width: 13%;
}

.my-entries-table th:nth-child(6),
.my-entries-table td:nth-child(6) {
  width: 10%;
}

.my-entries-table th:nth-child(7),
.my-entries-table td:nth-child(7),
.my-entries-table th:nth-child(8),
.my-entries-table td:nth-child(8) {
  width: 6.5%;
}

.my-entries-table th:nth-child(9),
.my-entries-table td:nth-child(9) {
  width: 9%;
}

.my-entries-table th:nth-child(10),
.my-entries-table td:nth-child(10) {
  width: 11%;
}

.my-entry-row.is-closed td,
.my-entry-row.is-completed td {
  background: #fafafa;
  color: #64748b;
}

.my-entry-type,
.my-entry-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.my-entry-type.is-supply {
  background: #eaf4ff;
  color: #2563a7;
}

.my-entry-type.is-demand {
  background: #fff3e5;
  color: #a35210;
}

.my-entry-status.is-open {
  background: #edf7f3;
  color: #386758;
}

.my-entry-status.is-completed {
  background: #ecfdf3;
  color: #247048;
}

.my-entry-status.is-closed {
  background: #f1f5f9;
  color: #64748b;
}

.my-entry-title-button {
  appearance: none;
  display: block;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-entry-title-button:hover {
  color: #2563a7;
}

.my-entry-subtext {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-entry-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.my-entry-actions button {
  flex: 1 1 58px;
  min-width: 0;
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
}

.my-entry-actions .entry-republish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4355a6;
  border-radius: 999px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.my-entries-empty-cell {
  padding: 28px 16px !important;
  text-align: center !important;
  color: #64748b;
  font-weight: 700;
}

.tag {
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 11px;
}

.tag-supply {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.82));
  color: var(--supply-accent);
}

.tag-demand {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.28), rgba(231, 244, 255, 0.84));
  color: var(--demand-accent);
}

.tag-status {
  background: rgba(255, 111, 136, 0.14);
  color: #c2556b;
}

.tag-match {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.22), rgba(229, 241, 255, 0.92));
  color: #35679f;
}

.tag-match-high {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.42), rgba(255, 246, 211, 0.92));
  color: #8a6710;
}

.tag-match-alert {
  background: linear-gradient(135deg, rgba(255, 121, 121, 0.96), rgba(225, 29, 72, 0.92));
  color: #fff7f7;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.18);
}

.tag-match-high-alert {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(190, 24, 93, 0.92));
  color: #fff7f7;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.22);
}

.tag-match-pending {
  background: rgba(118, 183, 255, 0.16);
  color: #467fca;
}

.tag-match-followed {
  background: rgba(59, 200, 155, 0.16);
  color: #288b6a;
}

.tag-match-confirmed {
  background: rgba(255, 225, 143, 0.3);
  color: #8a6710;
}

.tag-urgent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 119, 87, 0.28), rgba(255, 223, 209, 0.9));
  color: #9f1f20;
  font-weight: 800;
}

.tag-urgent-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(255, 97, 59, 0.25));
}

.tag-partner-existing {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.82));
  color: #8a6710;
}

.tag-partner-new {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.28), rgba(231, 244, 255, 0.84));
  color: #35679f;
}

.tag-customer-pending {
  background: rgba(236, 243, 255, 0.92);
  color: #5378a6;
}

.tag-customer-existing {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.82));
  color: #8a6710;
}

.tag-customer-new {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.28), rgba(231, 244, 255, 0.84));
  color: #35679f;
}

.tag-customer-blacklist {
  background: linear-gradient(135deg, rgba(255, 111, 136, 0.24), rgba(255, 228, 234, 0.92));
  color: #b9475d;
}

.tag-customer-protected {
  background: linear-gradient(135deg, rgba(255, 145, 84, 0.24), rgba(255, 238, 223, 0.94));
  color: #bc5f1f;
}

.customer-hint-danger {
  color: #b9475d;
  font-weight: 700;
}

.customer-field-demo-shell {
  display: grid;
  gap: 14px;
}

.customer-field-demo-header {
  align-items: flex-start;
}

.customer-field-demo-header h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.customer-field-demo-header .subtitle {
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
}

.customer-field-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 225, 143, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 244, 255, 0.76));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.customer-field-demo-hero h2 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.customer-field-demo-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.customer-field-flow {
  display: grid;
  gap: 10px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: customer-field-flow;
}

.customer-field-flow li {
  counter-increment: customer-field-flow;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.customer-field-flow li::before {
  content: counter(customer-field-flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.92), rgba(118, 183, 255, 0.88));
  color: #193150;
  font-weight: 900;
}

.customer-field-flow strong,
.customer-field-flow span {
  grid-column: 2;
}

.customer-field-flow strong {
  margin-bottom: -4px;
}

.customer-field-flow span {
  color: var(--muted);
  font-size: 13px;
}

.customer-field-demo-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-field-demo-summary article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(117, 150, 197, 0.14);
  box-shadow: 0 12px 26px rgba(90, 124, 171, 0.08);
}

.customer-field-demo-summary span,
.customer-field-demo-summary small {
  display: block;
  color: var(--muted);
}

.customer-field-demo-summary strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.customer-field-demo-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 18px;
  background: rgba(246, 251, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(90, 124, 171, 0.08);
}

.customer-field-demo-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
}

.customer-field-demo-nav a:hover {
  background: rgba(118, 183, 255, 0.18);
}

.customer-field-section {
  display: grid;
  gap: 14px;
}

.customer-field-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.customer-field-section-head h2,
.customer-field-demo-rules h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.customer-field-table {
  min-width: 980px;
}

.customer-field-table td:nth-child(1),
.customer-field-table th:nth-child(1) {
  width: 58px;
  text-align: center;
}

.customer-field-table td:nth-child(2) {
  color: #173250;
  font-weight: 800;
}

.customer-field-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-strong);
}

.customer-field-demo-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-field-demo-rules ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.customer-field-demo-rules strong {
  color: var(--text);
}

.customer-create-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.customer-create-demo-main,
.customer-create-demo-side {
  display: grid;
  gap: 14px;
}

.customer-create-demo-side {
  position: sticky;
  top: 12px;
}

.customer-create-demo-card {
  display: grid;
  gap: 16px;
}

.customer-create-demo-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.customer-create-demo-section-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.customer-create-demo-section-head p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.customer-create-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.customer-create-search-input input {
  min-height: 44px;
  font-weight: 800;
}

.customer-candidate-list {
  display: grid;
  gap: 8px;
}

.customer-candidate-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(117, 150, 197, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.customer-candidate-item strong {
  font-size: 14px;
}

.customer-candidate-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.customer-candidate-item.is-selected {
  border-color: rgba(79, 157, 255, 0.48);
  background: linear-gradient(135deg, rgba(231, 244, 255, 0.98), rgba(255, 247, 219, 0.78));
  box-shadow: 0 10px 20px rgba(90, 124, 171, 0.1);
}

.customer-create-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-create-form-grid .field span b,
.customer-create-choice-block > span b {
  color: #c2556b;
  font-weight: 900;
}

.customer-create-form-wide {
  grid-column: 1 / -1;
}

.customer-create-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-create-choice-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.76);
}

.customer-create-choice-block > span {
  color: var(--muted);
  font-size: 12px;
}

.customer-create-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-create-chip-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.customer-create-chip-group input {
  accent-color: var(--primary-strong);
}

.customer-create-upload-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-create-upload-demo div {
  display: grid;
  gap: 6px;
  min-height: 78px;
  align-content: center;
  padding: 14px;
  border: 1px dashed rgba(117, 150, 197, 0.34);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.74);
}

.customer-create-upload-demo span {
  color: var(--muted);
  font-size: 12px;
}

.customer-create-demo-actions {
  position: sticky;
  bottom: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 18px;
  background: rgba(246, 251, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(90, 124, 171, 0.12);
  z-index: 4;
}

.customer-create-official-card,
.customer-create-risk-card,
.customer-create-required-card {
  display: grid;
  gap: 12px;
}

.customer-create-official-card h3,
.customer-create-risk-card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.customer-create-official-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.customer-create-official-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(117, 150, 197, 0.1);
}

.customer-create-official-card dt {
  color: var(--muted);
  font-size: 12px;
}

.customer-create-official-card dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.customer-create-risk-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-create-risk-card li {
  padding: 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.66);
}

.customer-create-risk-card li.is-ok {
  border: 1px solid rgba(59, 200, 155, 0.2);
}

.customer-create-risk-card li.is-warn {
  border: 1px solid rgba(244, 200, 93, 0.28);
  background: rgba(255, 248, 224, 0.72);
}

.customer-create-required-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-create-required-tags span {
  display: inline-flex;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(118, 183, 255, 0.14);
  color: #35679f;
  font-size: 12px;
  font-weight: 800;
}

.customer-create-preview-shell {
  display: grid;
  gap: 10px;
}

.customer-create-preview-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 4px 0 18px;
}

.customer-create-visual-panel {
  position: sticky;
  top: 10px;
  min-height: calc(100vh - 104px);
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 226, 143, 0.36), transparent 28%),
    radial-gradient(circle at 85% 72%, rgba(118, 183, 255, 0.34), transparent 32%),
    linear-gradient(160deg, #173250 0%, #224f82 52%, #4f9dff 100%);
  box-shadow: 0 22px 50px rgba(36, 78, 126, 0.24);
}

.customer-create-visual-panel::after {
  content: "CUSTOMER";
  position: absolute;
  right: -28px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.customer-create-visual-orb {
  position: absolute;
  inset: auto -90px -90px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 225, 143, 0.48), rgba(255, 225, 143, 0));
}

.customer-create-visual-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(14, 36, 68, 0.22);
}

.customer-create-visual-panel .eyebrow {
  color: rgba(255, 240, 191, 0.92);
}

.customer-create-visual-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.customer-create-visual-panel p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  line-height: 1.65;
  font-size: 14px;
}

.customer-create-visual-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.customer-create-visual-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.customer-create-visual-steps span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffe28f;
  box-shadow: 0 0 0 5px rgba(255, 226, 143, 0.14);
}

.customer-create-live-panel {
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.94));
}

.customer-create-live-form {
  gap: 12px;
}

.customer-create-live-section {
  display: grid;
  gap: 10px;
}

.customer-create-live-section.is-highlight {
  border-color: rgba(79, 157, 255, 0.28);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 225, 143, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(231, 244, 255, 0.9), rgba(255, 255, 255, 0.88));
}

.customer-create-flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(232, 244, 255, 0.68);
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.customer-create-flow-strip span {
  padding: 7px 8px;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 900;
}

.customer-create-flow-strip span.is-active {
  color: #193150;
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.92), rgba(118, 183, 255, 0.74));
  box-shadow: 0 10px 20px rgba(90, 124, 171, 0.12);
}

.customer-create-section-card {
  padding: 12px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.customer-official-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.customer-official-candidates {
  display: grid;
  gap: 6px;
}

.customer-official-candidate {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  text-align: left;
}

.customer-official-candidate strong {
  font-size: 13px;
}

.customer-official-candidate span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.customer-official-candidate.is-selected {
  border-color: rgba(118, 183, 255, 0.72);
  background: linear-gradient(135deg, rgba(231, 244, 255, 0.96), rgba(255, 247, 219, 0.9));
  box-shadow: 0 0 0 3px rgba(118, 183, 255, 0.12);
}

.customer-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-checkbox-group {
  gap: 8px;
}

.customer-checkbox-group .radio-option {
  background: rgba(255, 255, 255, 0.72);
}

.customer-checkbox-group input {
  accent-color: var(--primary-strong);
}

.customer-create-check-panel {
  display: grid;
  gap: 9px;
}

.customer-create-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-contact-demo-list {
  display: grid;
  gap: 12px;
}

.customer-contact-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(232, 244, 255, 0.68);
  border: 1px solid rgba(117, 150, 197, 0.12);
}

.customer-contact-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  padding: 7px 10px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-weight: 900;
}

.customer-contact-tab.is-active {
  color: #193150;
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.92), rgba(118, 183, 255, 0.74));
  box-shadow: 0 10px 20px rgba(90, 124, 171, 0.1);
}

.customer-contact-tab span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.customer-contact-demo-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 252, 255, 0.82));
}

.customer-contact-demo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.customer-contact-demo-head strong {
  color: var(--text);
}

.customer-existing-contact-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
}

.customer-existing-contact-list {
  display: grid;
  gap: 6px;
  align-content: start;
}

.customer-existing-contact-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-align: left;
}

.customer-existing-contact-item.is-active {
  border-color: rgba(118, 183, 255, 0.68);
  background: rgba(231, 244, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(118, 183, 255, 0.1);
}

.customer-existing-contact-item span {
  color: var(--muted);
  font-size: 12px;
}

.customer-existing-contact-detail {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.customer-blacklist-item {
  border-color: rgba(255, 111, 136, 0.26);
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.92), rgba(255, 241, 244, 0.96));
}

.customer-protected-item {
  border-color: rgba(255, 145, 84, 0.24);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(255, 244, 235, 0.96));
}

.entry-card-urgent {
  border: 2px solid rgba(231, 66, 66, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 232, 235, 0.98), rgba(255, 246, 248, 0.94)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 30px rgba(231, 66, 66, 0.2),
    0 0 0 1px rgba(255, 120, 120, 0.18) inset;
}

.entry-card-urgent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #ff7c57 0%, #ff4747 52%, #c81f27 100%);
  box-shadow: 4px 0 14px rgba(231, 66, 66, 0.14);
}

.entry-card-urgent-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 244, 224, 0.98), rgba(255, 212, 196, 0.96));
  border: 1px solid rgba(231, 66, 66, 0.22);
  box-shadow:
    0 8px 16px rgba(231, 66, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset;
  font-size: 15px;
  line-height: 1;
}

.entry-card-urgent .entry-card-line-primary {
  padding-right: 26px;
}

.entry-card-urgent .entry-image-thumb {
  border-color: rgba(231, 66, 66, 0.45);
  box-shadow: 0 10px 20px rgba(231, 66, 66, 0.12);
}

.entry-card-urgent .entry-type-text,
.entry-card-urgent .entry-price {
  color: #9d1f25;
}

.entry-card-urgent .entry-card-title-row h3 {
  color: #7e2026;
}

.entry-card-urgent .entry-note {
  color: #8b5560;
}

.entry-card-completed.entry-card-urgent {
  border: 1px solid rgba(138, 150, 169, 0.2);
  background:
    linear-gradient(135deg, rgba(239, 242, 247, 0.96), rgba(250, 251, 253, 0.92)) !important;
  box-shadow: none;
}

.entry-card-completed.entry-card-urgent::before,
.entry-card-completed .entry-card-urgent-badge {
  display: none;
}

.entry-card-completed.entry-card-urgent .entry-card-line-primary {
  padding-right: 0;
}

.tag-condition-new {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.8));
  color: #8a6710;
}

.tag-condition-pull {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.28), rgba(231, 244, 255, 0.84));
  color: #386ca8;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(111, 143, 192, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.login-page::before {
  left: 4%;
  top: 8%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(118, 183, 255, 0.32), rgba(118, 183, 255, 0.06) 52%, transparent 74%),
    repeating-radial-gradient(
      circle at center,
      rgba(118, 183, 255, 0.08) 0 2px,
      transparent 2px 20px
    );
  filter: blur(4px);
}

.login-page::after {
  right: 6%;
  bottom: 8%;
  width: 500px;
  height: 340px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(118, 183, 255, 0.1), transparent 42%),
    linear-gradient(45deg, rgba(255, 225, 143, 0.12), transparent 48%),
    repeating-linear-gradient(
      90deg,
      rgba(118, 183, 255, 0.06) 0,
      rgba(118, 183, 255, 0.06) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(118, 183, 255, 0.05) 0,
      rgba(118, 183, 255, 0.05) 1px,
      transparent 1px,
      transparent 24px
    ),
    radial-gradient(circle at 82% 28%, rgba(255, 225, 143, 0.16), transparent 18%);
  opacity: 0.7;
  transform: rotate(-8deg);
}

.login-brand-wall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.brand-watermark {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.12;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: blur(0.2px);
}

.brand-samsung {
  left: 5%;
  top: 16%;
  font-size: 44px;
  color: rgba(57, 111, 191, 0.18);
  transform: rotate(-14deg);
}

.brand-hynix {
  right: 8%;
  top: 18%;
  font-size: 38px;
  color: rgba(235, 121, 73, 0.16);
  letter-spacing: 0.08em;
  text-transform: none;
  transform: rotate(12deg);
}

.brand-nvidia {
  left: 8%;
  bottom: 18%;
  font-size: 40px;
  color: rgba(101, 169, 77, 0.17);
  transform: rotate(-10deg);
}

.brand-intel {
  right: 14%;
  bottom: 28%;
  font-size: 46px;
  color: rgba(79, 157, 255, 0.14);
  letter-spacing: 0.04em;
  text-transform: none;
  transform: rotate(8deg);
}

.brand-micron {
  left: 38%;
  top: 8%;
  font-size: 30px;
  color: rgba(72, 128, 191, 0.12);
  transform: rotate(-4deg);
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
}

.login-wrapper::before,
.login-wrapper::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-wrapper::before {
  left: -68px;
  top: 18px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(118, 183, 255, 0.18);
  box-shadow:
    0 0 0 14px rgba(118, 183, 255, 0.05),
    0 0 0 28px rgba(118, 183, 255, 0.025);
}

.login-wrapper::after {
  right: -42px;
  bottom: 34px;
  width: 132px;
  height: 132px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(118, 183, 255, 0.12), rgba(255, 225, 143, 0.14)),
    repeating-linear-gradient(
      90deg,
      rgba(118, 183, 255, 0.08) 0,
      rgba(118, 183, 255, 0.08) 1px,
      transparent 1px,
      transparent 18px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(118, 183, 255, 0.07) 0,
      rgba(118, 183, 255, 0.07) 1px,
      transparent 1px,
      transparent 18px
    );
  transform: rotate(12deg);
  opacity: 0.8;
}

.login-card {
  padding: 26px 28px;
}

.ai-login-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.94));
}

.ai-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(118, 183, 255, 0.12), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(255, 225, 143, 0.12), transparent 22%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(118, 183, 255, 0.035) 18px,
      rgba(118, 183, 255, 0.035) 19px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 18px,
      rgba(118, 183, 255, 0.03) 18px,
      rgba(118, 183, 255, 0.03) 19px
    );
  opacity: 0.9;
}

.ai-login-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(118, 183, 255, 0.14), rgba(118, 183, 255, 0.02) 58%, transparent 72%);
  box-shadow:
    0 0 0 10px rgba(118, 183, 255, 0.04),
    0 0 0 20px rgba(118, 183, 255, 0.02);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.login-form-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
  gap: 12px;
}

.login-portal-notice {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 159, 67, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.18), rgba(255, 107, 53, 0.12));
  box-shadow: 0 18px 40px rgba(255, 107, 53, 0.12);
}

.login-portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.16);
  color: #ff7a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-portal-notice h2 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.login-portal-notice p {
  margin: 0;
}

.login-portal-link {
  text-align: center;
  text-decoration: none;
}

.login-portal-url {
  word-break: break-all;
}

.login-form-grid .field,
.login-form-grid .full-width,
.login-form-grid .form-error,
.login-form-grid .form-success {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.login-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px auto 18px;
  max-width: 320px;
}

.login-switch-button {
  border: 1px solid rgba(118, 183, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-weight: 700;
  transition: all 0.15s ease;
}

.login-switch-button.is-active {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.96), rgba(125, 190, 255, 0.94));
  color: #193150;
  box-shadow: 0 10px 22px rgba(118, 183, 255, 0.14);
}

.portal-login-disabled .login-switch {
  display: none;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.full-width {
  width: 100%;
}

.form-error {
  margin: 0;
  color: #ff9cab;
}

.form-success {
  margin: 0;
  color: #2f8c6c;
}

.login-success-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px 0 4px;
  text-align: center;
}

.login-success-panel h2,
.login-success-panel p {
  margin: 0;
}

.login-success-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(88, 194, 137, 0.92), rgba(125, 190, 255, 0.88));
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(88, 194, 137, 0.24);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(98, 124, 163, 0.3);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-panel-wide {
  width: min(1160px, calc(100% - 32px));
}

.users-management-panel {
  width: min(1440px, calc(100% - 24px));
}

.modal-panel-image-viewer {
  width: min(1120px, calc(100% - 32px));
}

.modal-panel-detail {
  width: min(900px, calc(100% - 32px));
}

.modal-header,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.image-viewer-stage {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.image-viewer-nav {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: #36577c;
  box-shadow: 0 12px 24px rgba(80, 112, 154, 0.16);
}

.image-viewer-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.image-viewer-viewport {
  position: relative;
  min-height: min(70vh, 720px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(118, 183, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(255, 210, 117, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(245, 250, 255, 0.96), rgba(232, 242, 255, 0.92));
  border: 1px solid rgba(117, 150, 197, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}

.image-viewer-viewport.is-zoomed {
  cursor: grab;
}

.image-viewer-viewport.is-panning {
  cursor: grabbing;
}

.image-viewer-image {
  width: auto;
  max-width: 100%;
  max-height: calc(min(70vh, 720px) - 32px);
  object-fit: contain;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.92), rgba(255, 252, 228, 0.82));
  border: 1px solid rgba(117, 150, 197, 0.18);
  box-shadow: 0 12px 28px rgba(79, 116, 168, 0.14);
  transform-origin: center center;
  transition: transform 0.16s ease;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

.image-viewer-viewport.is-panning .image-viewer-image {
  transition: none;
}

.image-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(117, 150, 197, 0.16);
}

.image-viewer-toolbar .ghost-button,
.image-viewer-toolbar .secondary-button {
  min-height: 36px;
  padding: 8px 14px;
}

.image-viewer-zoom-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(118, 183, 255, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.image-viewer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.image-viewer-meta strong {
  font-size: 14px;
}

.image-viewer-meta span {
  color: var(--muted);
  font-size: 12px;
}

.image-viewer-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.image-viewer-thumb {
  border: 1px solid rgba(117, 150, 197, 0.18);
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
}

.image-viewer-thumb.is-active {
  border-color: rgba(118, 183, 255, 0.8);
  box-shadow: 0 0 0 2px rgba(118, 183, 255, 0.16);
}

.image-viewer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-detail-summary,
.entry-detail-section {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.entry-detail-section + .entry-detail-section,
.entry-detail-summary + .entry-detail-section {
  margin-top: 12px;
}

.entry-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.entry-detail-top strong {
  font-size: 24px;
  color: #274b77;
}

.entry-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.entry-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(235, 246, 255, 0.86), rgba(255, 252, 228, 0.78));
}

.entry-detail-meta-item span {
  font-size: 12px;
  color: var(--muted);
}

.entry-detail-meta-item strong {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-chip-private {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.24), rgba(255, 244, 214, 0.86));
  color: #7c5a0d;
}

.compact-chip-danger {
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
}

.wecom-diagnostic-suggestion {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
}

.compact-chip-link {
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(82, 130, 196, 0.2);
}

.compact-chip-link:hover {
  background: rgba(232, 241, 255, 0.96);
  color: #325a93;
}

.entry-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.entry-detail-image-button {
  position: relative;
  border: 1px solid rgba(117, 150, 197, 0.18);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.entry-detail-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.entry-detail-image-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(24, 40, 68, 0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.entry-detail-image-zoom-hint {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 40, 68, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(24, 40, 68, 0.18);
  pointer-events: none;
}

.entry-detail-notes {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.entry-match-list {
  display: grid;
  gap: 12px;
}

.entry-match-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 249, 255, 0.94));
  box-shadow: 0 10px 24px rgba(90, 124, 171, 0.08);
}

.entry-match-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-match-card-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 133, 201, 0.32);
  box-shadow: 0 14px 28px rgba(90, 124, 171, 0.14);
}

.entry-match-card-clickable:focus-visible {
  outline: 3px solid rgba(74, 128, 214, 0.28);
  outline-offset: 2px;
}

.entry-match-card-head,
.entry-match-card-score,
.entry-match-reason-row,
.entry-match-meta-row,
.entry-match-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-match-card-head {
  align-items: flex-start;
  justify-content: space-between;
}

.entry-match-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.entry-match-card-title strong {
  font-size: 15px;
  color: #274b77;
}

.entry-match-card-score {
  align-items: center;
  justify-content: flex-end;
}

.entry-match-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.entry-match-score.is-high {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.42), rgba(255, 246, 211, 0.92));
  color: #8a6710;
}

.entry-match-score.is-medium {
  background: linear-gradient(135deg, rgba(118, 183, 255, 0.22), rgba(229, 241, 255, 0.92));
  color: #35679f;
}

.entry-match-score.is-low {
  background: rgba(225, 233, 245, 0.9);
  color: #607087;
}

.entry-match-reason-row,
.entry-match-meta-row {
  margin-top: 10px;
}

.entry-match-actions {
  margin-top: 12px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.inset-card {
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.user-list,
.role-permission-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-management-head {
  gap: 14px;
  align-items: flex-end;
}

.user-page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(117, 150, 197, 0.16);
}

.user-page-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.user-page-tab.is-active {
  background: linear-gradient(135deg, rgba(56, 114, 255, 0.92), rgba(79, 176, 255, 0.9));
  color: #fff;
  box-shadow: 0 8px 18px rgba(63, 114, 230, 0.18);
}

.user-page-panel {
  display: none;
}

.user-page-panel.is-active {
  display: block;
}

.user-stats-summary {
  margin-bottom: 14px;
}

.user-stats-total-card,
.user-stats-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(117, 150, 197, 0.16);
}

.user-stats-total-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-stats-total-card strong,
.user-stats-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: var(--primary);
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.user-stats-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-stats-card span,
.user-stats-total-card span {
  color: var(--muted);
  font-weight: 700;
}

.user-stats-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.user-management-filter-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(190px, 1.15fr) minmax(190px, 1.15fr) minmax(220px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.user-filter-actions {
  align-self: end;
  justify-content: flex-start;
}

.user-filter-hint {
  margin: -2px 0 0;
  font-size: 12px;
}

.user-item,
.role-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.user-item-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.user-item-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.user-item-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.user-item-inline-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.user-item-inline-checkbox {
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  align-self: stretch;
  white-space: nowrap;
}

.user-item-actions {
  grid-column: 1 / -1;
}

.org-directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-directory-item {
  margin-bottom: 0;
}

.role-card h3,
.inset-card h3 {
  margin-top: 0;
}

.role-permission-toolbar {
  gap: 16px;
  align-items: flex-end;
}

.role-permission-toolbar-actions {
  width: 100%;
  justify-content: flex-end;
}

.role-permission-select-field {
  min-width: 220px;
}

.role-permission-toolbar-note {
  margin: 6px 0 0;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.permission-item strong {
  display: block;
  margin-bottom: 4px;
}

.required-mark {
  color: var(--danger);
  font-style: normal;
  margin-left: 4px;
}

.custom-fields-section {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(117, 150, 197, 0.14);
}

.entry-price-field-wrap {
  display: grid;
  gap: 6px;
}

.entry-price-quantity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.entry-w-price-field {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.entry-w-price-field input {
  width: 18px;
  height: 18px;
  align-self: center;
}

.entry-price-helper,
.entry-suggested-preview {
  margin: 0;
}

.entry-draft-status {
  margin: 2px 0 0;
  font-size: 13px;
}

.entry-draft-status.is-success {
  color: #2f8c6c;
}

.entry-draft-status.is-error {
  color: #d65478;
}

.draft-list {
  display: grid;
  gap: 12px;
}

.draft-item {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(117, 150, 197, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 250, 255, 0.94));
  box-shadow: 0 10px 22px rgba(90, 124, 171, 0.08);
}

.draft-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.draft-item-head h4 {
  margin: 0 0 6px;
  color: var(--text);
}

.draft-item-meta,
.draft-item-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.draft-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.draft-item-time {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.draft-empty {
  margin: 0;
  padding: 28px 20px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(117, 150, 197, 0.22);
}

.entry-suggested-preview {
  color: #9a7114;
  font-weight: 700;
}

@media (max-width: 720px) {
  .entry-price-quantity-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .draft-item-head {
    flex-direction: column;
  }
}

.compact-section-title {
  margin-bottom: 12px;
}

.compact-section-title h3,
.publish-config-field-head h3 {
  margin: 0;
}

.custom-entry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-choice-group {
  gap: 10px;
}

.checkbox-option {
  background: rgba(255, 255, 255, 0.82);
}

.publish-config-toolbar {
  margin-bottom: 16px;
  align-items: flex-end;
}

.publish-config-toolbar-actions {
  justify-content: flex-end;
}

.publish-config-product-field {
  min-width: 180px;
}

.publish-config-field-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publish-config-field-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(117, 150, 197, 0.18);
}

.publish-config-field-head {
  margin-bottom: 12px;
}

.publish-config-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 1fr;
  gap: 12px;
  align-items: end;
}

.publish-config-required-field {
  justify-content: flex-start;
  padding-top: 22px;
}

.entry-detail-custom-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  min-width: 220px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(59, 200, 155, 0.18);
  border: 1px solid rgba(59, 200, 155, 0.28);
  color: #237a5d;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.toast.toast-error {
  background: rgba(255, 111, 136, 0.18);
  border-color: rgba(255, 111, 136, 0.28);
  color: #b84d62;
}

.oa-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.oa-guide-card {
  display: grid;
  gap: 16px;
}

.oa-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.oa-guide-header h2 {
  margin: 2px 0 4px;
  color: #1f3350;
  font-size: 22px;
}

.oa-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.oa-guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 164px;
  border: 1px solid rgba(117, 150, 197, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.oa-guide-step.is-current {
  border-color: rgba(37, 99, 235, 0.38);
  background: #eff6ff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.oa-guide-step.is-done {
  border-color: rgba(22, 163, 74, 0.24);
  background: #f0fdf4;
}

.oa-guide-step.is-warn {
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
}

.oa-step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f4f86;
  color: #fff;
  font-weight: 900;
}

.oa-guide-step h3 {
  margin: 2px 0 6px;
  color: #1f3350;
  font-size: 15px;
}

.oa-guide-step p {
  min-height: 42px;
  margin: 0 0 10px;
  color: #52657f;
  line-height: 1.5;
}

.oa-guide-step .customer-management-form-actions {
  justify-content: flex-start;
}

.oa-config-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.oa-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.oa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(117, 150, 197, 0.24);
  border-radius: 8px;
  padding: 6px 10px;
  background: #f8fbff;
  color: #1f3350;
  font-weight: 800;
}

.oa-badge small {
  color: #64748b;
  font-weight: 700;
}

.oa-badge.is-ok {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
  color: #166534;
}

.oa-badge.is-warn {
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
  color: #92400e;
}

.oa-badge.is-bad {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

.oa-filter-grid {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
}

.oa-checkbox-field label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3350;
  font-weight: 800;
}

.oa-table td {
  vertical-align: top;
}

.oa-target-cell {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.oa-target-cell small {
  max-width: 260px;
  color: #64748b;
  line-height: 1.45;
}

.oa-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  font-size: 12px;
}

.oa-status-badge.is-synced,
.oa-status-badge.is-sent {
  background: #ecfdf5;
  color: #047857;
}

.oa-status-badge.is-missing_tax,
.oa-status-badge.is-missing_owner_oa,
.oa-status-badge.is-owner_missing,
.oa-status-badge.is-needs_binding,
.oa-status-badge.is-needs_review,
.oa-status-badge.is-created_unbound,
.oa-status-badge.is-suspended,
.oa-status-badge.is-dead_letter {
  background: #fff7ed;
  color: #c2410c;
}

.oa-status-badge.is-failed {
  background: #fef2f2;
  color: #b91c1c;
}

.oa-status-badge.is-not_synced,
.oa-status-badge.is-pending {
  background: #f1f5f9;
  color: #475569;
}

.oa-outbox-raw-error {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  line-height: 1.45;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.oa-issues-grid,
.oa-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oa-issue-list {
  display: grid;
  gap: 10px;
}

.oa-issue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: start;
  border: 1px solid rgba(117, 150, 197, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.oa-issue-item strong {
  color: #1f3350;
}

.oa-issue-item span {
  color: #1f4f86;
  font-weight: 900;
}

.oa-issue-item small {
  grid-column: 1 / -1;
  color: #64748b;
  line-height: 1.5;
  word-break: break-word;
}

.oa-detail-content {
  display: grid;
  gap: 14px;
}

.oa-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.oa-detail-card,
.oa-detail-target {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(117, 150, 197, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.oa-detail-card h4,
.oa-detail-target h4 {
  margin: 0;
  color: #1f3350;
}

.oa-detail-card dl,
.oa-detail-target dl {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.oa-detail-card dt,
.oa-detail-target dt {
  color: #64748b;
}

.oa-detail-card dd,
.oa-detail-target dd {
  margin: 0;
  color: #1f3350;
  word-break: break-word;
}

@media (max-width: 760px) {
  .oa-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oa-guide-header {
    flex-direction: column;
  }

  .oa-config-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .oa-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .oa-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oa-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oa-detail-grid,
  .oa-issues-grid,
  .oa-field-grid {
    grid-template-columns: 1fr;
  }

  .filters-grid,
  .success-filters-grid,
  .analysis-filters-grid,
  .analysis-grid,
  .compact-grid,
  .summary-grid,
  .board-grid,
  .settings-overview-grid,
  .entry-card-body,
  .my-entries-filters,
  .user-management-filter-grid,
  .user-item-grid,
  .permission-grid,
  .entry-detail-meta,
  .entry-detail-images,
  .custom-entry-fields,
  .publish-config-grid,
  .entry-detail-custom-fields {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .page-header,
  .entry-card-line-primary,
  .entry-card-line-tertiary,
  .publish-config-toolbar,
  .role-permission-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-library-compact-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-library-toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .customer-library-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .customer-library-row-name {
    flex-basis: 100%;
  }

  .header-actions,
  .toolbar-actions,
  .publish-config-toolbar-actions,
  .role-permission-toolbar-actions {
    justify-content: flex-start;
  }

  .user-management-head,
  .user-page-tabs {
    align-items: stretch;
  }

  .user-page-tabs {
    flex-wrap: wrap;
  }

  .user-stats-grid {
    grid-template-columns: 1fr;
  }

  .user-item-inline-group {
    grid-template-columns: 1fr;
  }

  .user-card {
    align-items: flex-start;
  }

  .entry-card-actions {
    justify-content: flex-start;
  }

  .brand-samsung,
  .brand-hynix,
  .brand-nvidia,
  .brand-intel,
  .brand-micron {
    font-size: 24px;
    opacity: 0.08;
  }
}

@media (max-width: 900px) {
  body.board-page .mobile-board-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: sticky;
    top: calc(8px + env(safe-area-inset-top));
    z-index: 5;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(117, 150, 197, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  body.board-page .mobile-board-grid[data-mobile-board-tab="supply"] [data-board-panel="demand"] {
    display: none;
  }

  body.board-page .mobile-board-grid[data-mobile-board-tab="demand"] [data-board-panel="supply"] {
    display: none;
  }

  .my-entries-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .my-entries-pagination {
    justify-content: flex-start;
  }

  .my-entries-table-wrap {
    overflow: visible;
  }

  .my-entries-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .my-entries-table thead {
    display: none;
  }

  .my-entries-table,
  .my-entries-table tbody,
  .my-entries-table tr,
  .my-entries-table td {
    display: block;
    width: 100%;
  }

  .my-entries-table tr {
    overflow: hidden;
    border: 1px solid rgba(117, 150, 197, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(83, 124, 176, 0.06);
  }

  .my-entries-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(117, 150, 197, 0.12);
    text-align: left;
    white-space: normal;
  }

  .my-entries-table td:last-child {
    border-bottom: none;
  }

  .my-entries-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
  }

  .my-entries-table td:nth-child(4),
  .my-entries-table td:nth-child(10),
  .my-entries-empty-cell {
    grid-template-columns: 1fr;
  }

  .my-entries-table td:nth-child(4)::before,
  .my-entries-table td:nth-child(10)::before,
  .my-entries-empty-cell::before {
    content: none;
  }

  .my-entry-title-button {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .my-entry-subtext {
    white-space: normal;
  }

  .my-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .my-entry-actions button,
  .my-entry-actions .entry-republish-button {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    padding: 7px 8px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px;
  }

  .customer-field-demo-hero,
  .customer-field-demo-rules,
  .customer-create-demo-layout,
  .customer-create-choice-grid,
  .customer-create-preview-stage,
  .customer-create-flow-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-create-visual-panel {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 16px;
  }

  .customer-create-visual-logo {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
  }

  .customer-create-visual-panel h2 {
    font-size: 28px;
  }

  .customer-create-visual-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-create-live-panel {
    padding: 14px;
  }

  .customer-contact-tabs {
    flex-direction: column;
  }

  .customer-management-nav-card {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-management-nav-actions {
    width: 100%;
  }

  .customer-management-nav-actions .primary-button {
    width: 100%;
  }

  .customer-list-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-field-demo-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-create-demo-side,
  .customer-create-demo-actions {
    position: static;
  }

  .customer-create-search-row,
  .customer-create-form-grid,
  .customer-create-upload-demo,
  .customer-official-search-row,
  .customer-form-grid-3,
  .customer-existing-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-field-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .compact-header {
    min-height: 0;
  }

  .compact-header h1 {
    font-size: 20px;
    line-height: 1.2;
  }

  .eyebrow {
    margin-bottom: 6px;
    letter-spacing: 0.1em;
  }

  .user-page-tabs {
    display: flex;
    width: 100%;
  }

  .user-page-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .brand-block,
  .login-brand-with-logo {
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .login-brand-logo {
    width: 56px;
    height: 56px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .header-actions > * {
    min-width: 0;
  }

  #liveStatus,
  #headerLastUpdated {
    grid-column: span 3;
  }

  .header-actions .user-card,
  .header-actions .user-menu,
  .header-actions #logoutButton {
    grid-column: span 2;
  }

  .header-actions .status-pill,
  .header-actions .ghost-button,
  .header-actions .secondary-button,
  .header-actions .primary-button,
  .header-actions .user-menu,
  .header-actions .user-menu-trigger {
    width: 100%;
  }

  .header-actions .status-pill,
  .header-actions .ghost-button,
  .header-actions .secondary-button,
  .header-actions .primary-button,
  .header-actions .user-menu-trigger {
    justify-content: center;
  }

  .header-actions .status-pill,
  .header-actions .ghost-button,
  .header-actions .secondary-button,
  .header-actions .primary-button,
  .header-actions .user-menu-trigger,
  .header-actions .user-card {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.25;
  }

  .header-actions .status-pill,
  .header-actions .last-updated-pill {
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-card {
    min-height: 0;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(117, 150, 197, 0.18);
  }

  .user-card strong {
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu-panel {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .user-menu-subpanel {
    margin-left: 0;
    padding-left: 8px;
  }

  .toolbar,
  .settings-overview-card,
  .analysis-nav-card,
  .analysis-panel,
  .board-column,
  .summary-card,
  .live-feed-card,
  .entry-detail-summary,
  .entry-detail-section,
  .custom-fields-section,
  .inset-card,
  .publish-config-field-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .toolbar {
    gap: 8px;
    margin-bottom: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .compact-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .compact-filters-grid .field-search {
    grid-column: 1 / -1;
  }

  .compact-filters-grid .field-date-range,
  .success-filters-grid .field-date-range,
  .my-entries-filters .field-date-range {
    grid-column: 1 / -1;
  }

  .compact-field {
    gap: 4px;
  }

  .compact-field span {
    font-size: 8px;
    line-height: 1.2;
  }

  .compact-filters-grid .field input,
  .compact-filters-grid .field select,
  .compact-filters-grid .field textarea {
    font-size: 14px;
  }

  .date-range-inputs {
    gap: 6px;
  }

  .toolbar-actions,
  .modal-actions,
  .publish-config-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .compact-toolbar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .toolbar-actions > *,
  .modal-actions > *,
  .publish-config-toolbar-actions > * {
    width: 100%;
  }

  .compact-toolbar-actions .primary-button,
  .compact-toolbar-actions .secondary-button,
  .compact-toolbar-actions .ghost-button,
  .compact-toolbar-actions .danger-button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 8px 10px;
    font-size: 16px;
  }

  .radio-group {
    gap: 8px;
  }

  .radio-option {
    width: 100%;
    justify-content: flex-start;
  }

  .live-feed-head,
  .section-title,
  .modal-header,
  .entry-detail-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-feed-item {
    max-width: 100%;
  }

  .entry-card {
    padding: 10px;
  }

  .entry-card-line {
    gap: 10px;
  }

  .entry-card-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .entry-card-title-row h3 {
    flex-basis: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .entry-price {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .entry-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-action-button,
  .entry-edit-button,
  .entry-flag-button,
  .entry-watch-button,
  .entry-close-button,
  .entry-card-actions .danger-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .entry-note {
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.4;
  }

  .login-page {
    padding: 12px;
  }

  .login-wrapper {
    width: 100%;
  }

  .login-wrapper::before,
  .login-wrapper::after,
  .login-page::before,
  .login-page::after {
    display: none;
  }

  .brand-watermark {
    opacity: 0.05;
  }

  .login-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .login-form-grid .field,
  .login-form-grid .full-width,
  .login-form-grid .form-error {
    max-width: none;
  }

  .modal {
    align-items: end;
  }

  .modal-panel,
  .modal-panel-wide,
  .modal-panel-image-viewer,
  .modal-panel-detail {
    width: 100%;
    max-width: none;
    max-height: min(100dvh, 100vh);
    margin: 0;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .modal-header {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -14px 14px;
    padding: 16px 14px 10px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
    border-radius: 22px 22px 0 0;
  }

  .modal-header > div {
    min-width: 0;
  }

  .settings-action-card {
    padding: 16px 14px;
  }

  .settings-card-value strong {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-form-inline-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .image-upload-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-detail-top strong {
    font-size: 22px;
  }

  .image-viewer-stage {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .image-viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .image-viewer-viewport {
    min-height: min(62vh, 420px);
    padding: 10px;
    border-radius: 18px;
  }

  .image-viewer-image {
    max-height: calc(min(62vh, 420px) - 20px);
    border-radius: 16px;
  }

  .image-viewer-toolbar {
    justify-content: flex-start;
    gap: 6px;
    padding: 8px;
  }

  .image-viewer-toolbar .ghost-button,
  .image-viewer-toolbar .secondary-button {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 84px;
  }

  .image-viewer-zoom-label {
    width: 100%;
    justify-content: center;
  }

  .image-viewer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-filters-grid {
    max-width: none;
  }

  .product-price-classifier-grid {
    grid-column: auto;
  }

  .security-analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-push-config-grid {
    grid-template-columns: 1fr;
  }

  .report-chart-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .report-chart-date {
    padding-top: 0;
  }

  .report-table-wrap {
    overflow: visible;
  }

  .report-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .report-table thead {
    display: none;
  }

  .report-table,
  .report-table tbody,
  .report-table tr,
  .report-table td {
    display: block;
    width: 100%;
  }

  .report-table tr {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(117, 150, 197, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(83, 124, 176, 0.06);
  }

  .report-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(117, 150, 197, 0.12);
    text-align: right;
  }

  .report-table td:last-child {
    border-bottom: none;
  }

  .report-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
    text-align: left;
  }

  .report-table td:first-child {
    background: rgba(118, 183, 255, 0.08);
    font-weight: 700;
  }

  .security-table-row-danger td:first-child {
    background: rgba(255, 111, 136, 0.1);
  }

  .report-table-empty {
    display: block !important;
    text-align: center !important;
  }

  .report-table-empty::before {
    content: none !important;
  }

  .analysis-ranking-grid,
  .customer-management-report-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .analysis-ranking-grid > .analysis-panel,
  .customer-management-report-grid > .analysis-panel,
  .analysis-ranking-grid .section-title,
  .customer-management-report-grid .section-title {
    min-width: 0;
  }

  .analysis-ranking-grid .ranking-table-wrap,
  .customer-management-report-grid .ranking-table-wrap {
    overflow: visible;
  }

  .analysis-ranking-grid .ranking-table,
  .customer-management-report-grid .ranking-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .analysis-ranking-grid .ranking-table thead,
  .customer-management-report-grid .ranking-table thead {
    display: none;
  }

  .analysis-ranking-grid .ranking-table,
  .analysis-ranking-grid .ranking-table tbody,
  .analysis-ranking-grid .ranking-table tr,
  .analysis-ranking-grid .ranking-table td,
  .customer-management-report-grid .ranking-table,
  .customer-management-report-grid .ranking-table tbody,
  .customer-management-report-grid .ranking-table tr,
  .customer-management-report-grid .ranking-table td {
    display: block;
    width: 100%;
  }

  .analysis-ranking-grid .ranking-table tr,
  .customer-management-report-grid .ranking-table tr {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(117, 150, 197, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(83, 124, 176, 0.06);
  }

  .analysis-ranking-grid .ranking-table td,
  .customer-management-report-grid .ranking-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(117, 150, 197, 0.12);
    text-align: right;
    white-space: normal;
  }

  .analysis-ranking-grid .ranking-table td:last-child,
  .customer-management-report-grid .ranking-table td:last-child {
    border-bottom: none;
  }

  .analysis-ranking-grid .ranking-table td::before,
  .customer-management-report-grid .ranking-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
  }

  .analysis-ranking-grid .ranking-table td:first-child,
  .customer-management-report-grid .ranking-table td:first-child {
    background: rgba(118, 183, 255, 0.08);
    font-weight: 700;
  }

  .analysis-ranking-grid .ranking-table-empty,
  .customer-management-report-grid .ranking-table-empty {
    display: block !important;
    text-align: center !important;
  }

  .analysis-ranking-grid .ranking-table-empty::before,
  .customer-management-report-grid .ranking-table-empty::before {
    content: none !important;
  }

  .customer-management-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.9);
  }

  .customer-management-report-grid .customer-management-report-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-management-report-grid .customer-management-report-table td {
    width: auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 9px 10px;
    text-align: left;
  }

  .customer-management-report-grid .customer-management-report-table td:first-child,
  .customer-management-report-grid .customer-management-report-table td:nth-child(2),
  .customer-management-report-grid .customer-management-report-table .ranking-table-empty {
    grid-column: 1 / -1;
  }

  .customer-management-report-grid .customer-management-report-table td::before {
    font-size: 11px;
    line-height: 1.2;
  }

  .customer-management-report-grid .customer-management-report-table .ranking-count {
    background: rgba(255, 224, 124, 0.14);
  }

  #entryForm > .modal-actions,
  .user-wecom-binding-actions {
    position: sticky;
    bottom: calc(-16px - env(safe-area-inset-bottom));
    z-index: 2;
    margin: 4px -14px calc(-16px - env(safe-area-inset-bottom));
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.84), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(117, 150, 197, 0.16);
    backdrop-filter: blur(12px);
  }

  #entryForm > .modal-actions {
    grid-template-columns: 0.9fr 1fr 1fr;
    gap: 8px;
  }

  #entryForm > .modal-actions > * {
    min-height: 44px;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
  }

  #entryForm {
    padding-bottom: 8px;
  }

  .entry-card-actions .entry-action-button,
  .entry-card-actions .entry-edit-button,
  .entry-card-actions .entry-flag-button,
  .entry-card-actions .entry-watch-button,
  .entry-card-actions .entry-close-button,
  .entry-card-actions .danger-button,
  .entry-watch-button,
  .entry-watch-summary-button,
  .entry-close-button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .customer-management-page .header-actions #customerPageStatus {
    grid-column: 1 / -1;
    min-height: 38px;
    white-space: normal;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .status-pill,
  .header-actions .ghost-button,
  .header-actions .secondary-button,
  .header-actions .primary-button,
  .header-actions .user-menu-trigger,
  .header-actions .user-card {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .compact-header h1 {
    font-size: 18px;
  }

  .summary-card strong {
    font-size: 18px;
  }

  .compact-filters-grid {
    gap: 6px;
  }

  .date-range-inputs {
    grid-template-columns: 1fr;
  }

  .date-range-separator {
    display: none;
  }

  .compact-toolbar-actions {
    gap: 6px;
  }

  .compact-toolbar-actions .primary-button,
  .compact-toolbar-actions .secondary-button,
  .compact-toolbar-actions .ghost-button,
  .compact-toolbar-actions .danger-button {
    min-height: 38px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .entry-card-actions {
    grid-template-columns: 1fr;
  }

  .image-upload-gallery,
  .entry-detail-images {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  body.board-page {
    min-height: 100vh;
    overflow: hidden;
  }

  body.board-page > .page-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
  }

  body.board-page > .page-shell > .board-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.board-page > .page-shell > .board-grid > .board-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  body.board-page > .page-shell > .board-grid > .board-column > .entry-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
  }

  body.board-page > .page-shell > .board-grid > .board-column > .entry-list > .entry-card {
    flex: 0 0 auto;
  }

  body.board-page > .page-shell > .board-grid .entry-card,
  body.board-page > .page-shell > .board-grid .entry-card-line,
  body.board-page > .page-shell > .board-grid .entry-card-main,
  body.board-page > .page-shell > .board-grid .entry-card-title-row {
    min-width: 0;
  }

  body.board-page > .page-shell > .board-grid .entry-price {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
  }

  body.board-page > .page-shell > .board-grid .entry-price-main {
    display: inline-block;
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.board-page > .page-shell > .toolbar .field-item-condition {
    display: none;
  }

  body.board-page > .page-shell > .toolbar .board-filters-grid {
    grid-template-columns:
      minmax(220px, 1.35fr)
      minmax(120px, 0.8fr)
      minmax(120px, 0.8fr)
      minmax(128px, 0.85fr)
      minmax(180px, 1.2fr);
  }

  body.board-page > .page-shell > .toolbar .board-filters-grid .field-date-range,
  body.board-page > .page-shell > .toolbar .board-filters-grid .field-search {
    grid-column: auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  body.board-page .page-header,
  body.board-page > .page-shell > .toolbar {
    flex-direction: row;
    align-items: center;
  }

  body.board-page > .page-shell > .board-grid,
  body.board-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.board-page > .page-shell > .board-grid .entry-card-line-primary,
  body.board-page > .page-shell > .board-grid .entry-card-line-tertiary {
    flex-direction: row;
    align-items: center;
  }

  body.board-page > .page-shell > .board-grid .entry-card-actions {
    justify-content: flex-end;
  }
}

.customer-management-page .page-shell {
  gap: 1rem;
}

.customer-management-toolbar {
  display: grid;
  gap: 0.75rem;
}

.customer-management-note {
  margin: 0;
  color: #5b6475;
  font-size: 0.95rem;
  line-height: 1.6;
}

.customer-workbench {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.customer-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-workbench-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #111827;
}

.customer-workbench-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.customer-workbench-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.customer-workbench-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #f3f6fb;
}

.customer-workbench-card span,
.customer-workbench-card small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.customer-workbench-card strong {
  color: #111827;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.customer-workbench-card.is-warning strong {
  color: #b45309;
}

.customer-workbench-card.is-hidden {
  display: none;
}

.customer-workbench-focus {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.customer-focus-summary {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #eff6ff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.customer-focus-summary:hover {
  border-color: rgba(37, 99, 235, 0.34);
  background: #dbeafe;
}

.customer-focus-summary:disabled {
  cursor: default;
}

.customer-focus-summary span,
.customer-focus-summary small {
  color: #475569;
  font-size: 0.86rem;
}

.customer-focus-summary strong {
  min-width: 28px;
  color: #1d4ed8;
  font-size: 1.45rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.customer-focus-summary.is-empty {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.customer-focus-summary.is-empty strong {
  color: #64748b;
}

.customer-focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.customer-focus-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 3px solid #64748b;
  border-radius: 8px;
  background: #f8fafc;
}

.customer-focus-item.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.customer-focus-item.is-danger {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.customer-focus-item.is-attention {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.customer-focus-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-focus-item span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-focus-item strong {
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.35;
}

.customer-focus-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.customer-management-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.customer-management-tab-button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-management-tab-button:hover {
  background: #eef2ff;
  border-color: rgba(79, 70, 229, 0.2);
}

.customer-management-tab-button.is-active {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border-color: transparent;
  color: #fff;
}

.customer-management-panel {
  display: grid;
  gap: 1rem;
}

.customer-management-panel > .card {
  padding: 14px;
}

.customer-management-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.customer-create-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-create-flow span,
.customer-create-fieldset label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(236, 243, 255, 0.92);
  color: #456d9f;
  font-size: 12px;
  font-weight: 700;
}

.customer-create-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  border-radius: 8px;
}

.customer-create-fieldset legend {
  padding: 0 5px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 700;
}

.customer-create-fieldset input {
  margin: 0;
}

.customer-management-nav-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.customer-management-nav-card .customer-management-tabs {
  flex: 1 1 auto;
  min-width: 0;
}

.customer-management-nav-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.customer-create-inline-card {
  margin-bottom: 12px;
}

.customer-management-filter-card {
  margin-bottom: 12px;
  padding: 14px;
}

.customer-list-filter-bar {
  margin: 6px 0 12px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.customer-list-filter-bar .field {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 8px;
}

.customer-list-filter-bar .field span {
  margin: 0;
  white-space: nowrap;
}

.customer-list-filter-bar select,
.customer-list-filter-bar input {
  min-width: 0;
}

.customer-management-form-full {
  grid-column: 1 / -1;
}

.customer-management-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.customer-qcc-search {
  display: grid;
  grid-template-columns: minmax(240px, 50%) auto;
  justify-content: start;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-qcc-results {
  display: grid;
  gap: 8px;
}

.customer-qcc-result,
.customer-qcc-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
}

.customer-qcc-selected {
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
}

.customer-qcc-result strong,
.customer-qcc-selected strong,
.customer-qcc-result span,
.customer-qcc-selected span,
.customer-qcc-result p {
  display: block;
}

.customer-qcc-result strong,
.customer-qcc-selected strong {
  color: #111827;
  word-break: break-word;
}

.customer-qcc-result span,
.customer-qcc-selected span,
.customer-qcc-result p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 640px) {
  .customer-qcc-search,
  .customer-qcc-result {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.customer-management-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.customer-management-section-head h3 {
  margin: 0;
}

@media (max-width: 640px) {
  .oa-guide-steps {
    grid-template-columns: 1fr;
  }

  .oa-guide-step {
    min-height: 0;
  }
}

.customer-private-scope-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-private-scope-controls .secondary-button {
  min-height: 30px;
  padding: 5px 10px;
}

.customer-private-scope-controls .secondary-button.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
  color: #1d4ed8;
}

.customer-private-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(117, 150, 197, 0.2);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.86rem;
}

.customer-private-batch-toolbar.hidden {
  display: none;
}

.customer-private-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-private-batch-actions .secondary-button,
.customer-private-batch-actions .danger-button {
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.customer-management-table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
}

.customer-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.86rem;
}

.customer-pagination-info {
  min-width: 138px;
  text-align: center;
  white-space: nowrap;
}

.customer-page-size-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.customer-page-number-list {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.customer-page-number {
  min-width: 32px;
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(117, 150, 197, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.customer-page-number:hover {
  border-color: rgba(37, 99, 235, 0.5);
  color: #1d4ed8;
}

.customer-page-number.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  cursor: default;
}

.customer-page-ellipsis {
  min-width: 20px;
  text-align: center;
  color: #94a3b8;
}

.customer-page-jump-field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.customer-page-jump-field input {
  width: 68px;
  min-height: 32px;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(117, 150, 197, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.customer-page-size-field select {
  min-width: 76px;
  min-height: 32px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(117, 150, 197, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.customer-row-actions {
  flex-wrap: nowrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.customer-row-actions .ghost-button,
.customer-row-actions .secondary-button,
.customer-row-actions .primary-button,
.customer-row-actions .danger-button {
  min-height: 30px;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.customer-public-row-actions {
  justify-content: center;
  gap: 0.35rem;
}

.customer-private-row-actions {
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.customer-private-row-actions .ghost-button,
.customer-private-row-actions .secondary-button,
.customer-private-row-actions .danger-button,
.customer-private-row-actions .compact-action-button {
  min-height: 28px;
  padding: 0.25rem 0.42rem;
  font-size: 0.74rem;
}

.customer-private-row-action-trigger {
  min-height: 28px;
  padding: 0.25rem 0.42rem;
  border: 1px solid rgba(117, 150, 197, 0.35);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.customer-private-row-action-trigger:hover,
.customer-private-row-action-trigger[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
}

.customer-private-row-action-menu {
  position: fixed;
  z-index: 120;
  display: grid;
  min-width: 96px;
  padding: 4px;
  border: 1px solid rgba(117, 150, 197, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.customer-private-row-action-menu.hidden {
  display: none;
}

.customer-private-row-action-menu button {
  min-height: 30px;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.customer-private-row-action-menu button:hover {
  background: #f1f5f9;
}

.customer-private-row-action-menu button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.customer-batch-operation-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(117, 150, 197, 0.2);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-batch-operation-summary {
  color: #334155;
  font-weight: 700;
}

.customer-batch-operation-items {
  display: grid;
  max-height: 220px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.customer-batch-operation-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.customer-batch-operation-items li:first-child {
  border-top: 0;
}

.customer-batch-operation-items strong {
  color: #111827;
  font-size: 0.86rem;
}

.customer-batch-operation-items span {
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.customer-table-date-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  cursor: pointer;
}

.customer-table-date-link:hover {
  text-decoration: underline;
}

.customer-row-more-menu {
  position: relative;
  z-index: 40;
}

.customer-row-more-menu summary {
  min-height: 28px;
  padding: 0.25rem 0.42rem;
  border: 1px solid rgba(117, 150, 197, 0.35);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.74rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.customer-row-more-menu summary::-webkit-details-marker {
  display: none;
}

.customer-row-more-menu[open] summary {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
}

.customer-row-more-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 80;
  display: grid;
  min-width: 82px;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid rgba(117, 150, 197, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.customer-row-more-menu button {
  min-height: 28px;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.customer-row-more-menu button:hover {
  background: #f1f5f9;
}

.customer-private-preview-modal-panel {
  max-width: 620px;
}

.customer-private-group-select-list {
  display: grid;
  gap: 8px;
}

.customer-private-group-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.customer-private-group-select-row:last-child {
  border-bottom: 0;
}

.customer-private-group-select-row div {
  min-width: 0;
}

.customer-private-group-select-row strong,
.customer-private-group-select-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-private-group-select-row span {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.82rem;
}

.user-crm-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.user-crm-table {
  min-width: 1430px;
  table-layout: fixed;
}

.user-crm-table th,
.user-crm-table td {
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: nowrap;
}

.user-crm-col-user {
  width: 110px;
}

.user-crm-col-account {
  width: 120px;
}

.user-crm-col-phone {
  width: 130px;
}

.user-crm-col-branch {
  width: 150px;
}

.user-crm-col-department {
  width: 120px;
}

.user-crm-col-role {
  width: 120px;
}

.user-crm-col-manager {
  width: 110px;
}

.user-crm-col-reports {
  width: 72px;
}

.user-crm-col-wecom {
  width: 145px;
}

.user-crm-col-status {
  width: 110px;
}

.user-crm-col-actions {
  width: 350px;
}

.user-nowrap-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-nowrap-cell > * {
  max-width: 100%;
}

.user-table-muted {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.user-table-control {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 5px 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
}

.oa-user-mapping-table {
  min-width: 980px;
  table-layout: fixed;
}

.oa-user-mapping-table th,
.oa-user-mapping-table td {
  height: 44px;
  padding: 7px 9px;
}

.oa-user-mapping-table .customer-management-table-actions {
  justify-content: flex-start;
  gap: 6px;
}

.oa-user-mapping-table .secondary-button,
.oa-user-mapping-table .ghost-button {
  min-height: 30px;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
}

.oa-user-mapping-col-user {
  width: 145px;
}

.oa-user-mapping-col-account {
  width: 210px;
}

.oa-user-mapping-col-oa-id {
  width: 185px;
}

.oa-user-mapping-col-phone {
  width: 135px;
}

.oa-user-mapping-col-status {
  width: 110px;
}

.oa-user-mapping-col-notes {
  width: 210px;
}

.oa-user-mapping-col-actions {
  width: 140px;
}

.oa-user-mapping-table th {
  white-space: nowrap;
}

.oa-user-mapping-table td {
  overflow: hidden;
}

.oa-user-mapping-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-table-person {
  display: grid;
  gap: 6px;
}

.user-table-name-control {
  font-weight: 800;
  color: #111827;
}

.user-table-username-control {
  color: #475569;
}

.user-table-inline-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.user-table-org-stack {
  display: grid;
  gap: 6px;
}

.user-table-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  justify-content: center;
}

.user-table-report-count {
  display: grid;
  gap: 4px;
}

.user-table-report-count strong {
  color: #111827;
  font-size: 18px;
  line-height: 1;
}

.user-table-report-count span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.user-table-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.user-table-active-toggle input {
  margin: 0;
}

.user-table-note {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.user-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: flex-start;
  white-space: nowrap;
}

.user-table-actions button {
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}

.user-wecom-cell {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
}

.user-wecom-risk-text {
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.user-wecom-binding-snapshot {
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.user-wecom-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  color: #334155;
  font-size: 12px;
}

.user-wecom-snapshot-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-wecom-binding-actions {
  justify-content: flex-end;
  gap: 8px;
}

.user-report-count-button {
  min-width: 36px;
  padding-inline: 8px;
}

.user-edit-active-field {
  align-self: end;
}

.customer-public-row-actions .ghost-button,
.customer-public-row-actions .secondary-button,
.customer-public-row-actions .danger-button {
  min-width: 44px;
  min-height: 28px;
  border-radius: 999px;
  border-width: 1px;
  box-shadow: none;
  font-weight: 650;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.customer-public-row-actions .ghost-button {
  border-color: #d7dee8;
  background: #f8fafc;
  color: #405064;
}

.customer-public-row-actions .ghost-button:hover:not(:disabled) {
  border-color: #aeb9c9;
  background: #eef3f8;
  color: #1f2937;
}

.customer-public-row-actions .secondary-button {
  border-color: #9db8e7;
  background: #edf4ff;
  color: #244c82;
}

.customer-public-row-actions .secondary-button:hover:not(:disabled) {
  border-color: #7f9fd3;
  background: #dceaff;
  color: #183b68;
}

.customer-public-row-actions .danger-button {
  border-color: #e7b9b1;
  background: #fff4f2;
  color: #9b3a2e;
}

.customer-public-row-actions .danger-button:hover:not(:disabled) {
  border-color: #d99a90;
  background: #ffe8e4;
  color: #7f2f25;
}

.customer-public-row-actions .ghost-button:focus-visible,
.customer-public-row-actions .secondary-button:focus-visible,
.customer-public-row-actions .danger-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.16);
}

.customer-recycle-inline {
  display: block;
  margin-top: 3px;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-status-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}

.customer-status-pill.is-public {
  background: #ecfeff;
  color: #155e75;
}

.customer-status-pill.is-private {
  background: #eff6ff;
  color: #1d4ed8;
}

.customer-status-pill.is-blacklisted {
  background: #fef2f2;
  color: #b91c1c;
}

.customer-status-pill.is-pending {
  background: #fff7ed;
  color: #c2410c;
}

.customer-status-pill.is-cooperated {
  background: #ecfdf5;
  color: #047857;
}

.customer-activity-list {
  display: grid;
  gap: 10px;
}

.customer-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-activity-item div {
  display: grid;
  gap: 3px;
}

.customer-activity-item strong {
  color: #111827;
}

.customer-activity-item span,
.customer-activity-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-followup-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 110px 168px minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-followup-name {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-followup-user,
.customer-followup-time,
.customer-followup-content {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-followup-content {
  overflow-wrap: anywhere;
  white-space: normal;
}

.customer-followup-table {
  min-width: 1080px;
  table-layout: fixed;
}

#customerFollowUpList,
#customerDetailFollowUps {
  overflow-x: auto;
}

.customer-followup-table th {
  text-align: center;
  white-space: nowrap;
}

.customer-followup-table td {
  height: 46px;
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: middle;
}

.customer-followup-table td:nth-child(2),
.customer-followup-table td:nth-child(3),
.customer-followup-table td:nth-child(4),
.customer-followup-table td:nth-child(5),
.customer-followup-table td:nth-child(7) {
  text-align: center;
}

.customer-followup-col-customer {
  width: 260px;
}

.customer-followup-col-type {
  width: 98px;
}

.customer-followup-col-contact {
  width: 210px;
}

.customer-followup-col-user {
  width: 110px;
}

.customer-followup-col-time {
  width: 168px;
}

.customer-followup-col-next {
  width: 118px;
}

.customer-followup-col-actions {
  width: 120px;
}

.customer-followup-table-content {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer-followup-muted {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.customer-followup-table .customer-management-table-actions {
  justify-content: center;
}

.customer-followup-table .customer-name-link {
  text-align: left;
}

#customerCooperationList,
#customerRecycleList {
  overflow-x: auto;
}

.customer-cooperation-table,
.customer-recycle-table {
  table-layout: fixed;
}

.customer-cooperation-table {
  min-width: 1080px;
}

.customer-recycle-table {
  min-width: 1240px;
}

.customer-cooperation-table th,
.customer-recycle-table th {
  text-align: center;
  white-space: nowrap;
}

.customer-cooperation-table td,
.customer-recycle-table td {
  height: 46px;
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: middle;
}

.customer-cooperation-table td:nth-child(3),
.customer-cooperation-table td:nth-child(4),
.customer-cooperation-table td:nth-child(5),
.customer-cooperation-table td:nth-child(6),
.customer-cooperation-table td:nth-child(8),
.customer-recycle-table td:nth-child(2),
.customer-recycle-table td:nth-child(3),
.customer-recycle-table td:nth-child(4),
.customer-recycle-table td:nth-child(6),
.customer-recycle-table td:nth-child(7) {
  text-align: center;
}

.customer-cooperation-col-customer {
  width: 250px;
}

.customer-cooperation-col-product {
  width: 230px;
}

.customer-cooperation-col-trade {
  width: 150px;
}

.customer-cooperation-col-date {
  width: 118px;
}

.customer-cooperation-col-owner,
.customer-cooperation-col-user,
.customer-recycle-col-owner {
  width: 110px;
}

.customer-cooperation-col-actions,
.customer-recycle-col-actions {
  width: 118px;
}

.customer-recycle-col-customer {
  width: 300px;
}

.customer-recycle-col-recycle,
.customer-recycle-col-cooperation {
  width: 168px;
}

.customer-recycle-col-reason {
  width: 260px;
}

.customer-recycle-col-status {
  width: 118px;
}

.customer-recycle-reason {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.customer-recycle-reason strong,
.customer-recycle-reason span {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.customer-recycle-reason strong {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.customer-recycle-reason span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
  -webkit-line-clamp: 1;
}

.customer-record-table-content {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer-record-muted {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.customer-cooperation-product-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-cooperation-source-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.customer-cooperation-source-pill.is-kingdee {
  background: #ecfdf5;
  color: #047857;
}

.customer-cooperation-source-pill.is-excel {
  background: #fff7ed;
  color: #c2410c;
}

.customer-cooperation-source-pill.is-manual {
  background: #f1f5f9;
  color: #475569;
}

.customer-cooperation-order-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 180px)) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.customer-cooperation-order-keyword input {
  min-width: 0;
}

.customer-cooperation-order-table th,
.customer-cooperation-order-table td {
  vertical-align: middle;
}

.customer-cooperation-order-table td:nth-child(4),
.customer-cooperation-order-table td:nth-child(5),
.customer-cooperation-order-table td:nth-child(6),
.customer-cooperation-order-table td:nth-child(7) {
  text-align: center;
}

.customer-cooperation-order-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-cooperation-order-main strong,
.customer-cooperation-order-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cooperation-order-main strong {
  color: #111827;
  font-size: 0.92rem;
}

.customer-cooperation-order-main small {
  color: #64748b;
  font-size: 0.78rem;
}

.customer-cooperation-products {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  min-width: 0;
}

.customer-cooperation-products span,
.customer-cooperation-products em {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cooperation-products em {
  color: #475569;
  font-weight: 700;
}

.customer-order-type-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.customer-order-type-pill.is-sales {
  background: #e0f2fe;
  color: #075985;
}

.customer-order-type-pill.is-purchase {
  background: #dcfce7;
  color: #166534;
}

.customer-table-pill.is-draft {
  background: #eef2ff;
  color: #3730a3;
}

.customer-table-pill.is-muted {
  background: #f1f5f9;
  color: #475569;
}

.integration-center-page .page-shell {
  gap: 14px;
}

.integration-brief-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.integration-brief-card h2 {
  margin: 2px 0 0;
  color: #111827;
  font-size: 1.2rem;
}

.integration-brief-card .muted {
  margin: 6px 0 0;
  max-width: 720px;
}

.integration-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.integration-tabs-card {
  padding: 10px;
}

.integration-action-card {
  display: grid;
  gap: 12px;
}

.integration-structure-card {
  display: grid;
  gap: 14px;
}

.integration-structure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.integration-structure-map,
.integration-completion-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.integration-structure-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.integration-structure-arrow {
  position: relative;
  height: 2px;
  background: #cbd5e1;
}

.integration-structure-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
}

.integration-structure-node,
.integration-completion-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
}

.integration-structure-node.is-ready,
.integration-completion-item.is-ready {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.integration-structure-node.is-warning,
.integration-completion-item.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.integration-structure-node.is-blocked,
.integration-completion-item.is-blocked {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.integration-structure-node span,
.integration-structure-node strong,
.integration-structure-node small {
  display: block;
  min-width: 0;
}

.integration-structure-node span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.integration-structure-node strong {
  margin-top: 4px;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-structure-node small {
  margin-top: 5px;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.integration-completion-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.integration-completion-head strong,
.integration-completion-head span {
  display: block;
  min-width: 0;
}

.integration-completion-head strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.integration-completion-head span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.integration-completion-head em {
  color: #0f172a;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.integration-progress-track {
  overflow: hidden;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.integration-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.integration-completion-item.is-ready .integration-progress-track span {
  background: #16a34a;
}

.integration-completion-item.is-warning .integration-progress-track span {
  background: #d97706;
}

.integration-completion-item.is-blocked .integration-progress-track span {
  background: #dc2626;
}

.integration-oa-workbench {
  display: grid;
  gap: 14px;
}

.integration-workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.integration-workbench-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
}

.integration-workbench-card.is-ready {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.integration-workbench-card.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.integration-workbench-card.is-blocked {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.integration-workbench-card span,
.integration-workbench-card strong,
.integration-workbench-card small {
  display: block;
  min-width: 0;
}

.integration-workbench-card span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.integration-workbench-card strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 0.95rem;
}

.integration-workbench-card small {
  margin-top: 5px;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.integration-workbench-card em {
  color: #0f172a;
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.integration-workbench-card .compact-action-button {
  justify-self: start;
}

.integration-workbench-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.integration-workbench-split h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 0.95rem;
}

.integration-switch-list,
.integration-next-step-list {
  display: grid;
  gap: 8px;
}

.integration-switch-item,
.integration-next-step {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

.integration-switch-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.integration-next-step {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
}

.integration-switch-item.is-ready,
.integration-next-step.is-ready {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.integration-switch-item.is-warning,
.integration-next-step.is-warning,
.integration-next-step.is-open {
  border-left-color: #d97706;
  background: #fffbeb;
}

.integration-switch-item.is-blocked,
.integration-next-step.is-blocked {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.integration-switch-item strong,
.integration-switch-item span,
.integration-next-step strong,
.integration-next-step span {
  display: block;
  min-width: 0;
}

.integration-switch-item strong,
.integration-next-step strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.integration-switch-item span,
.integration-next-step span {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.integration-switch-item em,
.integration-next-step em {
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.integration-next-step em {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.integration-oa-issue-panel {
  display: grid;
  gap: 12px;
}

.integration-issue-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.integration-issue-category {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.integration-issue-category:hover,
.integration-issue-category.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.integration-issue-category.is-blocked {
  border-left-color: #dc2626;
}

.integration-issue-category.is-warning {
  border-left-color: #d97706;
}

.integration-issue-category.is-muted {
  border-left-color: #64748b;
}

.integration-issue-category span,
.integration-issue-category strong,
.integration-issue-category small {
  display: block;
  min-width: 0;
}

.integration-issue-category span {
  overflow: hidden;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-issue-category strong {
  color: #0f172a;
  font-size: 1.3rem;
  line-height: 1;
}

.integration-issue-category small {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.integration-issue-status-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.integration-issue-status-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.integration-issue-status-card.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.integration-issue-status-card span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.integration-issue-status-card strong {
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1;
}

.integration-issue-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.integration-issue-filter-bar .compact-action-button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.integration-oa-issue-table {
  min-width: 1080px;
}

.integration-advice-list {
  display: grid;
  gap: 10px;
}

.integration-advice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

.integration-advice-item.is-high {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.integration-advice-item.is-medium {
  border-left-color: #d97706;
  background: #fffbeb;
}

.integration-advice-item.is-normal {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.integration-advice-item.is-ok {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.integration-advice-item strong,
.integration-advice-item span {
  display: block;
  min-width: 0;
}

.integration-advice-item strong {
  color: #111827;
  font-size: 0.95rem;
}

.integration-advice-item span {
  margin-top: 4px;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.integration-tab-panel {
  display: grid;
  gap: 14px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-panel {
  min-width: 0;
}

.integration-status-list {
  display: grid;
  gap: 10px;
}

.integration-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.integration-status-item strong,
.integration-status-item span {
  display: block;
  min-width: 0;
}

.integration-status-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-status-item span,
.integration-subtext {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.integration-status-item em {
  color: #0f172a;
  font-style: normal;
  font-weight: 800;
}

.integration-table th,
.integration-table td {
  vertical-align: middle;
}

.integration-table td {
  max-width: 260px;
}

.integration-table strong,
.integration-subtext {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-product-lines {
  margin-top: 3px;
  max-width: 100%;
}

.integration-jobs-table {
  min-width: 980px;
}

.integration-oa-user-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.integration-oa-customer-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 12px 0;
}

.integration-oa-users-table {
  min-width: 900px;
}

.integration-oa-customers-table {
  min-width: 1120px;
}

.integration-job-drawer {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.integration-oa-bind-modal-panel {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.integration-oa-bind-form {
  display: grid;
  gap: 14px;
}

.integration-oa-bind-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-oa-bind-context > div,
.integration-oa-bind-warning {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.integration-oa-bind-context span,
.integration-oa-bind-context small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.integration-oa-bind-context strong {
  display: block;
  min-width: 0;
  margin: 4px 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-oa-bind-warning {
  background: #fff8ed;
  color: #8a5a17;
  font-size: 0.86rem;
  line-height: 1.55;
}

.integration-warning-text {
  color: #9a3412;
  font-weight: 800;
}

.integration-oa-bind-actions {
  justify-content: flex-end;
}

.integration-job-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.integration-job-detail-block,
.integration-job-advice-box,
.integration-job-detail-section {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.integration-job-detail-block span,
.integration-job-advice-box strong,
.integration-job-fields span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

.integration-job-detail-block strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1rem;
}

.integration-job-advice-box p,
.integration-job-error-text {
  margin: 6px 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.integration-job-detail-section {
  margin-top: 12px;
}

.integration-job-detail-section h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 0.95rem;
}

.integration-job-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-job-fields div {
  min-width: 0;
}

.integration-job-fields strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 0.86rem;
}

.integration-job-log-list {
  display: grid;
  gap: 10px;
}

.integration-job-log-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.integration-job-log-item strong,
.integration-job-log-item span {
  display: block;
}

.integration-job-log-item strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.integration-job-log-item span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
}

.integration-job-log-item p {
  margin: 0;
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.integration-job-log-item details {
  color: #475569;
  font-size: 0.8rem;
}

.integration-job-log-item summary {
  cursor: pointer;
  user-select: none;
}

.integration-job-log-item pre {
  max-height: 180px;
  margin: 8px 0 0;
  overflow: auto;
  padding: 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  .customer-cooperation-order-filter {
    grid-template-columns: 1fr;
  }

  .customer-cooperation-order-table {
    min-width: 920px;
  }

  .integration-brief-card {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-advice-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .integration-summary-grid,
  .integration-grid,
  .integration-structure-grid,
  .integration-workbench-grid,
  .integration-workbench-split,
  .integration-issue-category-grid,
  .integration-issue-status-summary,
  .integration-oa-bind-context,
  .integration-oa-user-grid,
  .integration-oa-customer-grid {
    grid-template-columns: 1fr;
  }

  .integration-switch-item,
  .integration-next-step {
    grid-template-columns: 1fr;
  }

  .integration-next-step em {
    width: 24px;
    height: 24px;
  }

  .integration-structure-flow {
    grid-template-columns: 1fr;
  }

  .integration-structure-arrow {
    width: 2px;
    height: 18px;
    margin: 0 auto;
  }

  .integration-structure-arrow::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .integration-table {
    min-width: 860px;
  }

  .integration-jobs-table {
    min-width: 980px;
  }

  .integration-job-detail-grid,
  .integration-job-fields {
    grid-template-columns: 1fr;
  }
}

.customer-cooperation-table .customer-management-table-actions,
.customer-recycle-table .customer-management-table-actions,
.customer-cooperation-order-table .customer-management-table-actions {
  justify-content: center;
}

.customer-cooperation-table .customer-name-link,
.customer-recycle-table .customer-name-link {
  text-align: left;
}

.customer-detail-modal-panel {
  width: min(1380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.customer-claim-modal-panel {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.customer-today-recycle-modal-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.customer-stale-follow-up-modal-panel {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.customer-today-recycle-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.customer-stale-follow-up-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.customer-today-recycle-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: #fffbeb;
}

.customer-stale-follow-up-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 8px;
  background: #fff7ed;
}

.customer-today-recycle-item strong,
.customer-today-recycle-item span,
.customer-today-recycle-meta,
.customer-stale-follow-up-item strong,
.customer-stale-follow-up-meta {
  display: block;
  min-width: 0;
}

.customer-today-recycle-item strong,
.customer-stale-follow-up-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-today-recycle-meta,
.customer-stale-follow-up-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.customer-today-recycle-meta span,
.customer-stale-follow-up-meta span,
.customer-stale-follow-up-meta em {
  display: inline;
}

.customer-today-recycle-meta span + span::before,
.customer-stale-follow-up-meta span + span::before,
.customer-stale-follow-up-meta em + span::before,
.customer-stale-follow-up-meta span + em::before {
  color: #94a3b8;
  content: " · ";
}

.customer-today-recycle-meta .customer-today-recycle-reason {
  color: #dc2626;
  font-weight: 650;
}

.customer-today-recycle-meta .customer-today-recycle-reason::before {
  color: #94a3b8;
  font-weight: 400;
}

.customer-stale-follow-up-meta em {
  color: #d97706;
  font-style: normal;
  font-weight: 650;
}

.customer-today-recycle-actions,
.customer-stale-follow-up-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .customer-stale-follow-up-item {
    grid-template-columns: 1fr;
  }

  .customer-stale-follow-up-item .customer-management-table-actions {
    justify-content: flex-start;
  }
}

.customer-claim-detail-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
}

.customer-claim-detail-section h3 {
  margin: 0;
  font-size: 1rem;
}

.customer-claim-detail-content {
  display: grid;
  gap: 8px;
}

.customer-claim-detail-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.customer-claim-detail-row span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.customer-claim-detail-row p {
  margin: 0;
  color: #111827;
  line-height: 1.5;
  word-break: break-word;
}

.customer-claim-attachment-list {
  display: grid;
  gap: 8px;
}

.customer-claim-attachment-empty {
  color: #64748b;
  font-size: 0.88rem;
}

.customer-claim-attachment-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.customer-claim-attachment-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.customer-claim-attachment-item.is-invalid {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
}

.customer-claim-attachment-item strong,
.customer-claim-attachment-item span {
  display: block;
}

.customer-claim-attachment-item strong {
  color: #111827;
  font-size: 0.92rem;
  word-break: break-word;
}

.customer-claim-attachment-item span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.82rem;
}

.customer-claim-attachment-upload {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.customer-claim-attachment-upload input {
  min-width: min(100%, 280px);
}

.customer-favorite-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.customer-favorite-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-favorite-tag-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.customer-favorite-tag-chip span {
  color: #64748b;
  margin-left: 4px;
}

.customer-favorite-tag-chip.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.customer-favorite-tag-create {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-favorite-tag-create input {
  width: min(260px, 100%);
}

.customer-favorite-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.customer-favorite-tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.4;
}

.customer-favorite-tag-modal-panel {
  width: min(520px, calc(100vw - 32px));
  margin: auto;
}

.customer-favorite-tag-modal-panel textarea {
  resize: vertical;
}

.customer-favorite-tag-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.customer-favorite-tag-history-head span {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.customer-favorite-tag-history-head small {
  color: #64748b;
}

.customer-favorite-tag-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.customer-favorite-tag-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.customer-favorite-tag-history-chip span {
  color: #64748b;
  font-weight: 600;
}

.customer-favorite-tag-history-chip:hover {
  border-color: #9db8e7;
  background: #f4f8ff;
  color: #244c82;
}

.customer-favorite-tag-history-chip.is-selected {
  border-color: #9cc6a4;
  background: #f3faf6;
  color: #276749;
}

.customer-favorite-tag-edit-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.customer-favorite-tag-edit-empty {
  color: #64748b;
  font-size: 13px;
}

.customer-parent-change-preview {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #eff6ff;
}

.customer-parent-change-preview strong {
  color: #111827;
  line-height: 1.35;
}

.customer-parent-change-preview span {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-assign-preview {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #eff6ff;
}

.customer-assign-preview strong {
  color: #111827;
  line-height: 1.35;
}

.customer-assign-preview span {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-assign-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.customer-assign-form-grid .customer-assign-preview,
.customer-assign-form-grid .customer-management-form-actions,
.customer-assign-form-grid .customer-management-form-full:not(.customer-assign-owner-search-field):not(.customer-assign-owner-select-field) {
  grid-column: 1 / -1;
}

.customer-assign-owner-search-field,
.customer-assign-owner-select-field {
  grid-column: auto;
}

.customer-assign-owner-select-field select {
  min-height: 42px;
}

.customer-assign-owner-search-field input {
  min-height: 42px;
}

@media (max-width: 760px) {
  .customer-assign-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-assign-owner-search-field,
  .customer-assign-owner-select-field {
    grid-column: 1 / -1;
  }
}

.customer-assign-warning {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.customer-assign-member-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.customer-detail-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.75fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.customer-detail-summary > div {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 14px 16px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfcfe;
}

.customer-detail-summary > div:last-child {
  border-right: 0;
}

.customer-detail-summary .customer-detail-summary-main {
  background: #f8fafc;
  border-top: 3px solid #94a3b8;
}

.customer-detail-summary > div:nth-child(2) {
  background: #f7fbff;
  border-top: 3px solid #9db8e7;
}

.customer-detail-summary > div:nth-child(3) {
  background: #f8fbf8;
  border-top: 3px solid #9cc6a4;
}

.customer-detail-summary > div:nth-child(4) {
  background: #fffaf3;
  border-top: 3px solid #e6bd7d;
}

.customer-detail-summary span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.customer-detail-summary strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.35;
  word-break: break-word;
}

.customer-detail-summary small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.customer-detail-summary-main strong {
  font-size: 1.08rem;
}

.customer-detail-overview-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.customer-detail-field-group {
  min-width: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.customer-detail-field-group:last-child {
  border-right: 0;
}

.customer-detail-field-group h4 {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.9rem;
}

.customer-detail-field-group:nth-child(1) h4 {
  background: #f4f8ff;
  color: #244c82;
}

.customer-detail-field-group:nth-child(1) .customer-detail-field-row {
  background: #fbfdff;
}

.customer-detail-field-group:nth-child(2) h4 {
  background: #f3faf6;
  color: #276749;
}

.customer-detail-field-group:nth-child(2) .customer-detail-field-row {
  background: #fbfefc;
}

.customer-detail-field-group:nth-child(3) h4 {
  background: #fff8ed;
  color: #8a5a17;
}

.customer-detail-field-group:nth-child(3) .customer-detail-field-row {
  background: #fffdf8;
}

.customer-detail-field-list {
  display: grid;
}

.customer-detail-field-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.customer-detail-field-row:last-child {
  border-bottom: 0;
}

.customer-detail-field-row span {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.customer-detail-field-row strong {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.customer-detail-info-item {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.customer-detail-info-item span {
  color: #64748b;
  font-size: 0.82rem;
}

.customer-detail-info-item strong {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.customer-oa-basics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-oa-basics-item {
  border-color: rgba(14, 116, 144, 0.18);
  background: #f0fdfa;
}

.customer-detail-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.customer-oa-sync-status {
  margin-top: 10px;
  min-height: 18px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.customer-oa-sync-status.is-ok {
  color: #047857;
}

.customer-oa-sync-status.is-error {
  color: #b91c1c;
}

.customer-oa-basics-modal-panel {
  width: min(520px, calc(100vw - 32px));
  margin: auto;
}

.customer-follow-up-modal-panel {
  width: min(640px, calc(100vw - 32px));
  margin: auto;
}

.customer-follow-up-modal-form {
  margin-top: 14px;
}

.customer-follow-up-contact-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.customer-follow-up-contact-field .field {
  margin: 0;
}

.customer-follow-up-contact-field button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #customerFollowUpModal .customer-follow-up-modal-panel,
  #customerContactModal .customer-claim-modal-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .customer-follow-up-contact-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-follow-up-contact-field button {
    width: 100%;
    justify-self: stretch;
  }
}

.customer-follow-up-modal-form textarea {
  min-height: 132px;
  resize: vertical;
}

.customer-detail-followup-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.customer-oa-basics-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-oa-basics-preview-item {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.customer-oa-basics-preview-item span {
  color: #64748b;
  font-size: 0.82rem;
}

.customer-oa-basics-preview-item strong {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.customer-detail-columns,
.customer-detail-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.customer-detail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.customer-detail-main-column,
.customer-detail-side-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.customer-detail-section {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.customer-detail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-detail-section-head h3 {
  margin: 0;
}

.customer-detail-section-head .muted {
  text-align: right;
  font-size: 0.82rem;
}

.customer-detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.customer-detail-section-head h3 {
  margin: 0;
}

.customer-detail-section-head + .customer-detail-form,
.customer-detail-section-head + .customer-contact-list,
.customer-detail-section-head + .customer-activity-list {
  margin-top: 0;
}

.customer-contact-list {
  display: grid;
  gap: 10px;
}

.customer-contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-contact-item.is-primary {
  border-color: rgba(37, 99, 235, 0.26);
  background: #eff6ff;
}

.customer-contact-item > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-contact-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
}

.customer-contact-item span:not(.tag) {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

#customerDetailFollowUps .customer-activity-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

#customerDetailFollowUps .customer-activity-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

#customerDetailFollowUps .customer-management-table-actions {
  justify-content: flex-start;
}

.customer-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-detail-form button {
  justify-self: start;
}

.customer-detail-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-overview-edit-modal-panel {
  max-width: 920px;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.customer-overview-current-snapshot {
  margin: 0 22px 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-overview-current-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.customer-overview-current-head strong {
  color: #111827;
}

.customer-overview-current-head span {
  color: #64748b;
  font-size: 0.82rem;
}

.customer-overview-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-overview-current-item {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.customer-overview-current-item.is-actionable {
  cursor: pointer;
}

.customer-overview-current-item.is-actionable:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.customer-overview-current-item span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.76rem;
}

.customer-overview-current-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-overview-edit-form .field.is-overview-changed input,
.customer-overview-edit-form .field.is-overview-changed select,
.customer-overview-edit-form .field.is-overview-changed textarea {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12);
}

.customer-overview-product-scope label.is-overview-changed {
  border-color: #d97706;
  background: #fffbeb;
}

.customer-overview-field-diff {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-overview-edit-form .field.is-overview-focused input,
.customer-overview-edit-form .field.is-overview-focused select,
.customer-overview-edit-form .field.is-overview-focused textarea,
.customer-overview-product-scope.is-overview-focused {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.customer-overview-change-summary {
  align-self: center;
  color: #64748b;
  font-size: 0.84rem;
}

.customer-overview-change-summary.is-changed {
  color: #92400e;
  font-weight: 700;
}

.customer-profile-change-list {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.customer-profile-change-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.customer-profile-change-head strong {
  color: #111827;
}

.customer-profile-change-head span {
  color: #64748b;
  font-size: 0.82rem;
}

.customer-profile-change-item {
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.customer-profile-change-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.customer-profile-change-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.customer-profile-change-title strong {
  color: #111827;
}

.customer-profile-change-title span,
.customer-profile-change-title em {
  color: #64748b;
  font-style: normal;
  font-size: 0.82rem;
}

.customer-profile-change-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-profile-change-field {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.customer-profile-change-field span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.76rem;
}

.customer-profile-change-field strong {
  min-width: 0;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-profile-change-field strong b {
  margin: 0 4px;
  color: #94a3b8;
  font-weight: 700;
}

.customer-profile-change-more {
  color: #64748b;
  font-size: 0.8rem;
  padding: 4px 2px 0;
}

.customer-overview-edit-form .customer-create-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-overview-edit-form .customer-overview-product-scope {
  display: flex;
  flex-wrap: wrap;
}

.customer-detail-redesign-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.customer-detail-redesign-title {
  min-width: 0;
}

.customer-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.customer-detail-title-row h2 {
  margin: 0;
  min-width: 0;
  color: #111827;
  font-size: 1.38rem;
  line-height: 1.25;
  word-break: break-word;
}

.customer-detail-redesign-title .settings-modal-note {
  margin: 8px 0 0;
  line-height: 1.5;
}

.customer-detail-redesign-title .customer-detail-tags {
  margin: 12px 0 0;
}

.customer-detail-action-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.customer-detail-redesign-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background: #fff;
}

.customer-detail-redesign-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.customer-detail-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  overflow-x: auto;
}

.customer-detail-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}

.customer-detail-tab:hover {
  background: #eef2f7;
}

.customer-detail-tab.is-active {
  border-color: rgba(14, 116, 144, 0.24);
  background: #fff;
  color: #0e7490;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.customer-detail-tab-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #fff;
}

.customer-detail-tab-panel {
  display: none;
}

.customer-detail-tab-panel.is-active {
  display: block;
}

.customer-detail-overview-layout {
  display: block;
}

.customer-detail-redesign-side {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #fbfcfe;
}

.customer-detail-redesign-side.customer-detail-side-column {
  display: block;
}

.customer-detail-redesign-side .customer-detail-section + .customer-detail-section {
  margin-top: 12px;
}

.customer-detail-side-list,
.customer-detail-side-actions {
  display: grid;
  gap: 10px;
}

.customer-detail-side-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.45;
}

.customer-detail-side-row span {
  color: #64748b;
  white-space: nowrap;
}

.customer-detail-side-row strong {
  min-width: 0;
  color: #111827;
  text-align: right;
  overflow-wrap: anywhere;
}

.customer-detail-side-actions button {
  width: 100%;
}

.customer-detail-note-box {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

.customer-detail-overview-layout .customer-detail-section + .customer-detail-section,
.customer-detail-tab-panel > .customer-detail-section + .customer-detail-section {
  margin-top: 16px;
}

.customer-detail-redesign-body .customer-detail-section {
  padding: 12px;
}

@media (max-width: 760px) {
  .customer-workbench-head,
  .customer-focus-summary,
  .customer-focus-item {
    grid-template-columns: 1fr;
  }

  .customer-workbench-head {
    display: grid;
  }

  .customer-workbench-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-focus-list {
    grid-template-columns: 1fr;
  }

  .customer-list-filter-bar {
    grid-template-columns: 1fr;
  }

  .customer-list-filter-bar .field {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .customer-activity-item,
  .customer-followup-row,
  .customer-detail-columns,
  .customer-detail-history-grid,
  .customer-detail-workspace,
  .customer-detail-summary,
  .customer-detail-overview-groups,
  .customer-overview-current-grid,
  .customer-profile-change-fields,
  .customer-contact-item,
  .customer-overview-edit-form .customer-create-fieldset,
  .customer-detail-form {
    grid-template-columns: 1fr;
  }

  .customer-detail-summary > div,
  .customer-detail-field-group {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .customer-detail-summary > div:last-child,
  .customer-detail-field-group:last-child {
    border-bottom: 0;
  }

  .customer-detail-field-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .customer-detail-section-head,
  #customerDetailFollowUps .customer-activity-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-detail-section-head .muted {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .customer-detail-redesign-header,
  .customer-detail-redesign-body {
    grid-template-columns: 1fr;
  }

  .customer-detail-redesign-main {
    border-right: 0;
  }

  .customer-detail-redesign-side {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

  .customer-detail-action-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .customer-detail-modal-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .customer-detail-redesign-header {
    padding: 14px;
  }

  .customer-detail-title-row h2 {
    font-size: 1.14rem;
  }

  .customer-detail-tab-content,
  .customer-detail-redesign-side {
    padding: 12px;
  }
}

.customer-management-report-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-management-report-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.35fr);
  min-width: 0;
}

.customer-management-report-grid > .analysis-panel {
  min-width: 0;
}

.customer-management-report-table th,
.customer-management-report-table td {
  white-space: nowrap;
  text-align: center;
}

.customer-management-report-table .ranking-count {
  font-weight: 800;
}

.customer-management-detail-button {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.customer-management-detail-button:hover:not(:disabled) {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-management-detail-button:disabled {
  color: inherit;
  background: transparent;
  cursor: default;
}

.customer-management-detail-modal-panel {
  max-width: 1080px;
}

.customer-management-detail-content {
  display: grid;
  gap: 12px;
}

.customer-management-detail-table {
  min-width: 860px;
}

.customer-management-detail-table th,
.customer-management-detail-table td {
  text-align: center;
  vertical-align: middle;
}

.customer-management-detail-subtext {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.customer-management-detail-note {
  max-width: 260px;
  white-space: normal;
  line-height: 1.45;
}

.customer-row-ignored {
  color: #64748b;
  background: rgba(248, 250, 252, 0.74);
}

.customer-row-ignored .customer-name-link {
  color: #64748b;
}

.customer-ignore-button {
  color: #64748b;
}

.customer-management-detail-empty {
  padding: 28px 12px;
}

.customer-management-report-table .is-muted-row {
  color: #94a3b8;
  background: #f8fafc;
}

.customer-management-report-table .is-muted-row .ranking-user-name,
.customer-management-report-table .is-muted-row .ranking-count {
  color: #64748b;
}

@media (max-width: 1100px) {
  .customer-management-report-summary,
  .customer-management-report-grid {
    grid-template-columns: 1fr;
  }
}

.daily-report-page .page-shell {
  width: 100%;
  max-width: none;
}

.daily-report-panel {
  display: grid;
  gap: 16px;
}

.daily-report-status-line {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.daily-metrics-grid,
.daily-team-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.daily-metrics-grid .summary-card,
.daily-team-summary-grid .summary-card {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.daily-metric-card {
  border: 0;
  appearance: none;
}

.daily-metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(90, 124, 171, 0.16);
}

.daily-report-form-card,
.daily-report-review-card {
  padding: 18px;
}

.daily-report-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.daily-report-form .field:nth-child(1),
.daily-report-form .field:nth-child(2),
.daily-report-actions {
  grid-column: 1 / -1;
}

.daily-report-form textarea,
.daily-review-form textarea {
  resize: vertical;
  min-height: 96px;
}

.daily-score-field {
  max-width: 260px;
}

.daily-scorecard-page {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(14, 165, 233, 0.08), transparent 34%),
    #f5f8fc;
}

.daily-scorecard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 95, 145, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 95, 145, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 76%);
  z-index: 0;
}

.daily-scorecard-page .page-shell {
  position: relative;
  z-index: 1;
}

.daily-scorecard-page .card {
  border-color: rgba(186, 203, 225, 0.82);
  box-shadow: 0 16px 38px rgba(31, 55, 90, 0.09);
}

.daily-score-hero {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(210px, 290px) 1fr;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.daily-score-main,
.daily-rank-card,
.daily-score-side {
  min-height: 184px;
  border-radius: 8px;
}

.daily-score-main {
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  background: linear-gradient(145deg, #f7fbff, #edf6ff);
}

.daily-score-main h2 {
  margin: 8px 0 0;
  color: #15304f;
  font-size: 20px;
  line-height: 1.35;
}

.daily-score-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.daily-score-number strong {
  color: #1d4ed8;
  font-size: 66px;
  line-height: 0.95;
  letter-spacing: 0;
}

.daily-score-number span {
  color: #64748b;
  font-weight: 800;
}

.daily-rank-card {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.32);
  background: linear-gradient(145deg, #ecfbff, #ffffff);
}

.daily-rank-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.daily-rank-card strong {
  color: #0284c7;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.daily-rank-card p {
  margin: 0;
  color: #31516d;
  line-height: 1.55;
}

.daily-score-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.daily-score-part {
  min-height: 88px;
  padding: 12px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.daily-score-part span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.daily-score-part strong {
  color: #0f172a;
  font-size: 20px;
}

.daily-score-bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e2eaf4;
  overflow: hidden;
}

.daily-score-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width 0.24s ease;
}

.daily-encourage {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #cfe2f5;
  border-radius: 8px;
  background: #ffffff;
  color: #28445f;
  line-height: 1.6;
}

.daily-score-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.daily-score-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.daily-score-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.daily-score-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-score-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.daily-score-section-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.daily-score-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-score-metric-card {
  min-height: 116px;
  padding: 12px;
  border: 1px solid #d9e5f3;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.daily-score-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.13);
}

.daily-score-metric-card span,
.daily-score-metric-card small {
  display: block;
  color: #64748b;
}

.daily-score-metric-card span {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.daily-score-metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.daily-score-metric-card small {
  line-height: 1.45;
}

.daily-score-metric-card.result strong {
  color: #1d4ed8;
}

.daily-score-metric-card.process strong {
  color: #059669;
}

.daily-score-metric-card.asset strong {
  color: #7c3aed;
}

.daily-score-insights-card,
.daily-score-summary-card {
  padding: 16px;
}

.daily-score-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.daily-score-insight {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fbfdff;
  color: #334155;
  line-height: 1.55;
}

.daily-score-summary-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: end;
}

.daily-score-summary-form .field:first-child {
  grid-column: 1 / -1;
}

.daily-score-summary-form .field:nth-child(2) {
  grid-column: auto;
}

.daily-score-summary-form textarea {
  min-height: 116px;
}

.daily-score-team-table th:nth-child(4),
.daily-score-team-table td:nth-child(4) {
  width: 96px;
}

.daily-score-config-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.daily-score-config-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.daily-score-config-summary article {
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fbfdff;
}

.daily-score-config-summary span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.daily-score-config-summary strong {
  color: #0f172a;
  font-size: 24px;
}

.daily-score-config-table {
  min-width: 860px;
}

.daily-score-config-table th,
.daily-score-config-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.daily-score-config-table input[type="number"],
.daily-score-config-table select {
  width: 120px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

.daily-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-review-grid,
.daily-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.daily-review-grid div,
.daily-detail-metric-button {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.daily-detail-metric-button {
  min-height: 72px;
  text-align: left;
}

.daily-detail-metric-button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.daily-review-grid span,
.daily-detail-metric-button span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 4px;
}

.daily-review-grid strong,
.daily-detail-metric-button strong {
  color: #111827;
  font-size: 18px;
}

.daily-review-content {
  display: grid;
  gap: 12px;
}

.daily-scorecard-page {
  background: #f3f5f8;
}

.daily-scorecard-page::before {
  display: none;
}

.daily-team-crm-panel {
  display: grid;
  gap: 14px;
}

.daily-team-crm-panel > * {
  min-width: 0;
}

.daily-team-toolbar-card {
  display: flex;
  align-items: end;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.daily-team-toolbar-card .toolbar-actions {
  justify-content: flex-end;
}

.daily-team-filters {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: none;
}

.daily-team-filters > * {
  min-width: 0;
}

.daily-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  grid-column: span 2;
  min-width: 0;
}

.daily-range-presets .compact-action-button {
  min-height: 38px;
}

.daily-range-presets .compact-action-button.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.daily-team-section-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.daily-team-section-tab {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.daily-team-section-tab[data-team-section="employees"] {
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.82), #fff);
}

.daily-team-section-tab[data-team-section="branches"] {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.88), #fff);
}

.daily-team-section-tab[data-team-section="directors"] {
  border-color: rgba(14, 165, 233, 0.2);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.88), #fff);
}

.daily-team-section-tab:hover {
  transform: translateY(-1px);
}

.daily-team-section-tab[data-team-section="employees"]:hover,
.daily-team-section-tab[data-team-section="employees"].is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
  color: #1d4ed8;
}

.daily-team-section-tab[data-team-section="branches"]:hover,
.daily-team-section-tab[data-team-section="branches"].is-active {
  border-color: rgba(217, 119, 6, 0.34);
  background: #fff7ed;
  color: #b45309;
}

.daily-team-section-tab[data-team-section="directors"]:hover,
.daily-team-section-tab[data-team-section="directors"].is-active {
  border-color: rgba(2, 132, 199, 0.34);
  background: #f0f9ff;
  color: #0369a1;
}

.daily-team-section-tab span,
.daily-team-section-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-team-section-tab span {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
}

.daily-team-section-tab small {
  color: #64748b;
  font-size: 12px;
}

.daily-team-section-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.daily-team-section-panel > * {
  min-width: 0;
}

.daily-team-kpi-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.daily-team-kpi-card,
.daily-branch-ranking-card,
.daily-branch-matrix-card,
.daily-team-table-card {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.daily-team-kpi-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.daily-team-kpi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.daily-team-kpi-head span {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.daily-team-kpi-head small {
  color: #64748b;
  font-size: 12px;
}

.daily-team-kpi-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-team-kpi-item {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #f9fbfd;
}

.daily-team-kpi-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.daily-team-kpi-item strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
}

.daily-team-kpi-item small {
  color: #94a3b8;
  font-size: 11px;
}

.daily-team-kpi-item.is-primary {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.98), #fff);
}

.daily-team-kpi-item.is-primary strong {
  color: #1d4ed8;
}

.daily-team-performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: start;
}

.daily-team-branch-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.daily-branch-ranking-card,
.daily-branch-matrix-card,
.daily-team-table-card {
  padding: 14px;
}

.daily-branch-ranking-card {
  overflow: hidden;
}

.daily-branch-ranking-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.daily-team-empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.daily-branch-ranking-row {
  display: grid;
  grid-template-columns: 48px minmax(170px, 220px) minmax(560px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 860px;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.daily-branch-rank-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
}

.daily-branch-ranking-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.daily-branch-ranking-info strong {
  display: block;
  color: #0f172a;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-branch-ranking-info span {
  display: block;
  color: #64748b;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-branch-ranking-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.daily-branch-ranking-head span strong {
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
}

.daily-branch-ranking-bar {
  height: 8px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.daily-branch-ranking-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.daily-branch-ranking-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-branch-ranking-summary span {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #fff;
}

.daily-branch-ranking-summary em,
.daily-branch-ranking-metrics em {
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.daily-branch-ranking-summary strong {
  color: #0f172a;
  font-size: 16px;
}

.daily-branch-ranking-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
  min-width: 0;
}

.daily-branch-ranking-metrics span,
.daily-branch-metric-cell {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.daily-branch-ranking-metrics strong,
.daily-branch-metric-value {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.1;
}

.daily-branch-metric-cell:has(.daily-branch-metric-value.is-max) {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff5f5;
}

.daily-branch-metric-cell:has(.daily-branch-metric-value.is-min) {
  border-color: rgba(22, 163, 74, 0.2);
  background: #f0fdf4;
}

.daily-branch-metric-value.is-max {
  color: #dc2626;
}

.daily-branch-metric-value.is-min {
  color: #16a34a;
}

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

.daily-branch-matrix-item {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fafcff);
}

.daily-branch-matrix-title,
.daily-branch-matrix-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.daily-branch-matrix-title strong {
  color: #0f172a;
  font-size: 14px;
}

.daily-branch-matrix-title span,
.daily-branch-matrix-footer span {
  color: #64748b;
  font-size: 12px;
}

.daily-branch-matrix-score {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
}

.daily-branch-matrix-score strong {
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1;
}

.daily-branch-matrix-score span {
  color: #64748b;
  font-size: 12px;
}

.daily-branch-matrix-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.daily-branch-matrix-metrics span {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #f9fbfd;
}

.daily-branch-matrix-metrics em {
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.daily-branch-matrix-metrics strong {
  color: #0f172a;
  font-size: 16px;
}

.daily-team-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.daily-team-table-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.daily-team-table-head p {
  margin: 4px 0 0;
}

.daily-team-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.daily-team-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.daily-team-table th,
.daily-team-table td {
  white-space: normal;
  text-align: center;
  vertical-align: top;
}

.daily-team-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.daily-team-table tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.daily-team-table th:nth-child(1),
.daily-team-table td:nth-child(1) {
  width: 52px;
}

.daily-team-table th:nth-child(2),
.daily-team-table td:nth-child(2) {
  width: 190px;
  text-align: left;
}

.daily-team-table th:nth-child(3),
.daily-team-table td:nth-child(3),
.daily-team-table th:nth-child(4),
.daily-team-table td:nth-child(4) {
  width: 145px;
}

.daily-team-table th:nth-child(5),
.daily-team-table td:nth-child(5) {
  width: 132px;
}

.daily-team-table th:nth-child(6),
.daily-team-table td:nth-child(6),
.daily-team-table th:nth-child(7),
.daily-team-table td:nth-child(7) {
  width: 120px;
}

.daily-team-table th:nth-child(8),
.daily-team-table td:nth-child(8) {
  width: 170px;
  text-align: left;
}

.daily-team-table th:nth-child(9),
.daily-team-table td:nth-child(9) {
  width: 120px;
}

.daily-team-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.daily-team-employee-cell button {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-team-employee-cell span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.daily-team-cell-stack {
  display: grid;
  gap: 8px;
}

.daily-team-cell-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.daily-team-cell-label strong {
  font-size: 18px;
}

.daily-team-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.daily-team-mini-metric {
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f9fbfd;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.daily-team-mini-metric span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.daily-team-mini-metric strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1;
}

.daily-team-score-button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.daily-team-score-button strong {
  color: #1d4ed8;
  font-size: 26px;
  line-height: 1;
}

.daily-team-score-button span {
  color: #64748b;
  font-size: 12px;
}

.daily-team-submission {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 84px;
}

.daily-team-submission strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.daily-team-submission small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.daily-team-work-summary {
  color: #334155;
  line-height: 1.55;
}

.daily-team-table .customer-management-table-actions {
  justify-content: center;
}

.daily-team-table .customer-name-link {
  color: #0f172a;
}

.daily-team-table .customer-name-link:hover,
.daily-team-table .customer-name-link:focus-visible {
  color: #0f172a;
}

.daily-employee-report-list {
  display: grid;
  gap: 10px;
  overflow-x: hidden;
  padding-bottom: 2px;
}

.daily-employee-report-row {
  display: grid;
  grid-template-columns: 42px minmax(132px, 176px) minmax(430px, 1fr) minmax(108px, 128px) minmax(120px, 0.6fr) minmax(104px, 122px);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.daily-employee-report-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.daily-employee-report-info .customer-name-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-employee-report-info span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-employee-report-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.daily-employee-metric-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  text-align: left;
}

button.daily-employee-metric-cell {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button.daily-employee-metric-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.07);
}

.daily-employee-metric-cell em {
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-employee-metric-value {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.1;
}

.daily-employee-metric-cell:has(.daily-employee-metric-value.is-max) {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff5f5;
}

.daily-employee-metric-cell:has(.daily-employee-metric-value.is-min) {
  border-color: rgba(22, 163, 74, 0.2);
  background: #f0fdf4;
}

.daily-employee-metric-value.is-max {
  color: #dc2626;
}

.daily-employee-metric-value.is-min {
  color: #16a34a;
}

.daily-employee-report-status {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}

.daily-employee-report-status strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
}

.daily-employee-report-status small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.daily-employee-report-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.daily-employee-report-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.daily-employee-report-actions button {
  width: 100%;
}

.daily-employee-assets-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.daily-asset-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dbe3ee;
  background: #fff;
}

.daily-asset-summary-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.daily-asset-summary-card strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.daily-employee-assets-list {
  display: grid;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.daily-employee-assets-panel,
.daily-employee-assets-panel .daily-team-table-card {
  min-width: 0;
}

.daily-employee-assets-panel .daily-team-table-card {
  overflow: hidden;
}

.daily-employee-asset-row {
  display: grid;
  grid-template-columns: 48px minmax(170px, 230px) minmax(560px, 1fr) minmax(180px, 220px);
  gap: 12px;
  align-items: center;
  min-width: 1040px;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.daily-employee-report-info strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-employee-asset-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.daily-employee-asset-name strong {
  flex: 0 1 auto;
  min-width: 0;
}

.daily-employee-asset-name small {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.daily-employee-asset-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 8px;
  min-width: 0;
}

.daily-asset-metric-cell {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
}

.daily-asset-metric-cell em {
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-asset-metric-cell:has(.daily-employee-metric-value.is-max) {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff5f5;
}

.daily-asset-metric-cell:has(.daily-employee-metric-value.is-min) {
  border-color: rgba(22, 163, 74, 0.2);
  background: #f0fdf4;
}

.daily-employee-asset-coverage {
  display: grid;
  gap: 6px;
}

.daily-employee-asset-coverage span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.daily-employee-asset-coverage strong {
  color: #0f172a;
}

.daily-team-mini-metric:hover,
.daily-team-score-button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.08);
}

.daily-table-metric-button {
  min-width: 44px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.daily-table-metric-button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.daily-metric-detail-list {
  display: grid;
  gap: 10px;
}

.daily-score-trend-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #f8fafc;
  min-width: 0;
}

.daily-score-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.daily-score-trend-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.daily-score-trend-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.daily-score-trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.daily-score-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-score-trend-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.daily-score-trend-chart-wrap {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.daily-score-trend-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
}

.daily-score-trend-grid line,
.daily-score-trend-axis line {
  stroke: #dbe3ef;
  stroke-width: 1;
}

.daily-score-trend-grid text,
.daily-score-trend-axis text {
  fill: #64748b;
  font-size: 11px;
}

.daily-score-trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.daily-score-trend-dot {
  stroke: #fff;
  stroke-width: 2;
}

.daily-score-trend-empty {
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.daily-range-detail-table-wrap {
  margin-top: 14px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.daily-range-detail-table {
  width: max-content;
  min-width: 760px;
}

.daily-range-detail-table th,
.daily-range-detail-table td {
  padding: 8px 10px;
  white-space: nowrap;
  vertical-align: top;
}

.daily-range-detail-table th:nth-child(1),
.daily-range-detail-table td:nth-child(1) {
  min-width: 96px;
}

.daily-range-detail-table th:nth-child(2),
.daily-range-detail-table td:nth-child(2),
.daily-range-detail-table th:nth-child(3),
.daily-range-detail-table td:nth-child(3),
.daily-range-detail-table th:nth-child(4),
.daily-range-detail-table td:nth-child(4),
.daily-range-detail-table th:nth-child(5),
.daily-range-detail-table td:nth-child(5) {
  min-width: 58px;
  text-align: right;
}

.daily-range-detail-table th:nth-child(6),
.daily-range-detail-table td:nth-child(6) {
  min-width: 78px;
}

.daily-range-detail-table th:nth-child(7),
.daily-range-detail-table td:nth-child(7) {
  min-width: 220px;
  white-space: normal;
}

.daily-range-detail-table th:nth-child(8),
.daily-range-detail-table td:nth-child(8) {
  min-width: 72px;
}

.daily-metric-detail-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.daily-metric-detail-item strong {
  display: block;
  color: #111827;
  line-height: 1.45;
}

.daily-metric-detail-item span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.daily-status-missing {
  background: #f3f4f6;
  color: #6b7280;
}

.daily-status-draft {
  background: #fff7ed;
  color: #c2410c;
}

.daily-status-submitted {
  background: #eff6ff;
  color: #1d4ed8;
}

.daily-status-reviewed {
  background: #ecfdf5;
  color: #047857;
}

.daily-status-locked {
  background: #f5f3ff;
  color: #6d28d9;
}

.daily-report-detail-modal-panel {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.daily-report-detail-content,
.daily-review-form {
  display: grid;
  gap: 14px;
}

.daily-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #4b5563;
}

.daily-detail-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.daily-detail-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111827;
}

.daily-detail-block p {
  margin: 0;
  white-space: pre-wrap;
  color: #374151;
  line-height: 1.6;
}

.daily-review-item {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 10px;
}

.daily-review-item:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.daily-review-item span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin: 4px 0 8px;
}

#dailyReportDetailModal {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

#dailyReportDetailModal .daily-report-detail-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 24px));
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  background: #fff;
}

#dailyReportDetailModal .modal-header {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e5eaf2;
  background: #fff;
}

#dailyReportDetailModal .daily-report-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 0;
}

#dailyReportDetailModal .daily-review-form {
  flex: 0 0 auto;
  padding: 16px 20px 20px;
  border-top: 1px solid #e5eaf2;
  background: #fff;
}

#dailyReportDetailModal .daily-review-form.hidden {
  display: none;
}

.compact-action-button {
  padding: 6px 10px;
  min-height: 30px;
}

.entry-card-actions .entry-action-button,
.entry-card-actions .entry-edit-button,
.entry-card-actions .entry-flag-button,
.entry-card-actions .entry-watch-button,
.entry-card-actions .entry-price-trend-button,
.entry-card-actions .entry-close-button,
.entry-card-actions .danger-button,
.entry-watch-button,
.entry-watch-summary-button,
.entry-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e0ea;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.entry-card-actions .entry-action-button:hover,
.entry-card-actions .entry-edit-button:hover,
.entry-card-actions .entry-flag-button:hover,
.entry-card-actions .entry-watch-button:hover,
.entry-card-actions .entry-price-trend-button:hover,
.entry-card-actions .entry-close-button:hover,
.entry-card-actions .danger-button:hover,
.entry-watch-summary-button:hover {
  transform: translateY(-1px);
}

.entry-card-actions .entry-edit-button {
  border-color: #d8e0ea;
  background: #f8fafc;
  color: #475569;
}

.entry-card-actions .entry-edit-button:hover {
  border-color: #c8d3df;
  background: #f1f5f9;
  color: #334155;
}

.entry-card-actions .entry-watch-button {
  border-color: #cddbe3;
  background: #f1f6f8;
  color: #456778;
}

.entry-card-actions .entry-watch-button:hover {
  border-color: #b9ccd7;
  background: #e8f1f5;
  color: #36586a;
}

.entry-card-actions .entry-watch-button.is-active {
  border-color: #bad8cd;
  background: #edf7f3;
  color: #386758;
}

.entry-card-actions .entry-price-trend-button {
  border-color: #bfd7f6;
  background: #edf6ff;
  color: #2f6eac;
}

.entry-card-actions .entry-price-trend-button:hover {
  border-color: #a8c9f1;
  background: #e4f1ff;
  color: #245c92;
}

.entry-watch-button.is-active {
  border-color: #bad8cd;
  background: #edf7f3;
  color: #386758;
}

.entry-watch-summary-button {
  border-color: #cddbe3;
  background: #f1f6f8;
  color: #456778;
}

.entry-watch-summary-button:hover {
  border-color: #b9ccd7;
  background: #e8f1f5;
  color: #36586a;
}

.entry-watch-summary-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #4b5563;
  font-size: 13px;
}

.entry-card-actions .entry-flag-button {
  border-color: #e6d9b7;
  background: #fbf7ec;
  color: #77622a;
}

.entry-card-actions .entry-flag-button.is-active,
.entry-card-actions .entry-flag-button:hover {
  border-color: #e1c6ce;
  background: #f8eef1;
  color: #804f5d;
}

.entry-card-actions .entry-action-button {
  border-color: #c9dec9;
  background: #eef6ee;
  color: #406a43;
}

.entry-card-actions .entry-action-button:hover {
  border-color: #b7d2b7;
  background: #e5f0e5;
  color: #345c37;
}

.entry-close-button {
  border-color: #e4cec3;
  background: #f8f1ed;
  color: #845344;
}

.entry-card-actions .entry-close-button,
.entry-card-actions .danger-button {
  border-color: #e4cec3;
  background: #f8f1ed;
  color: #845344;
}

.entry-card-actions .entry-close-button:hover,
.entry-card-actions .danger-button:hover {
  border-color: #d8bbae;
  background: #f2e7e1;
  color: #724438;
}

.price-trend-modal-panel {
  max-width: min(1120px, calc(100vw - 32px));
}

.price-trend-status {
  padding: 18px;
  border: 1px dashed rgba(111, 143, 192, 0.28);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.9);
  color: var(--muted);
  font-weight: 700;
}

.price-trend-status.is-error {
  border-color: rgba(255, 111, 136, 0.36);
  background: rgba(255, 246, 248, 0.96);
  color: #b7354d;
}

.price-trend-content {
  display: grid;
  gap: 14px;
}

.price-trend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-trend-hint {
  margin: 0;
  line-height: 1.6;
}

.price-trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.price-trend-summary > div,
.price-trend-reference {
  padding: 14px 16px;
  border: 1px solid rgba(117, 150, 197, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 255, 0.94));
}

.price-trend-summary span,
.price-trend-reference span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-trend-summary strong,
.price-trend-reference strong {
  display: block;
  margin-top: 6px;
  color: #1f4e82;
  font-size: 22px;
  line-height: 1.2;
}

.price-trend-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-trend-comparison {
  background: rgba(59, 200, 155, 0.14);
  color: #23785d;
}

.price-trend-section {
  display: grid;
  gap: 10px;
}

.price-trend-history-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.price-trend-chart,
.price-trend-history-list {
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.price-trend-chart {
  min-height: 240px;
  padding: 12px;
  overflow-x: auto;
}

.price-trend-chart-shell {
  min-width: 620px;
}

.price-trend-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-trend-chart-legend {
  display: flex;
  gap: 14px;
}

.price-trend-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-trend-chart-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4f9dff;
}

.price-trend-chart-legend span:last-child::before {
  background: #3bc89b;
}

.price-trend-chart svg {
  display: block;
  width: 100%;
  min-width: 620px;
}

.price-trend-grid-line {
  stroke: rgba(111, 143, 192, 0.22);
  stroke-width: 1;
}

.price-trend-grid-text,
.price-trend-axis text {
  fill: #6b83a4;
  font-size: 12px;
}

.price-trend-range-bar {
  fill: rgba(118, 183, 255, 0.28);
}

.price-trend-high-dot {
  fill: #4f9dff;
}

.price-trend-low-dot {
  fill: #3bc89b;
}

.price-trend-history-list {
  display: grid;
  gap: 10px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
}

.price-trend-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(117, 150, 197, 0.14);
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.86);
}

.price-trend-history-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.price-trend-history-topline,
.price-trend-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.price-trend-history-topline strong {
  color: #1f4e82;
  font-size: 18px;
}

.price-trend-history-meta,
.price-trend-history-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.price-trend-warning {
  background: rgba(244, 200, 93, 0.18);
  color: #986d10;
}

.price-trend-empty {
  padding: 24px 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 720px) {
  .price-trend-modal-panel {
    max-width: calc(100vw - 16px);
  }

  .price-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-trend-reference,
  .price-trend-history-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-trend-history-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .price-trend-reference {
    align-items: flex-start;
  }

  .price-trend-history-action {
    width: 100%;
  }
}

.tag-status-closed {
  background: #f3f4f6;
  color: #4b5563;
}

.entry-watchers-summary {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 12px;
}

.entry-watchers-list {
  display: grid;
  gap: 8px;
}

.entry-watcher-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.entry-watcher-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.entry-watcher-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.entry-watcher-row strong,
.entry-watcher-row span,
.entry-watcher-row small {
  display: block;
}

.entry-watcher-row span,
.entry-watcher-row small {
  color: #6b7280;
  font-size: 12px;
}

.entry-watcher-status {
  color: #1d4ed8;
  text-align: right;
}

.entry-watcher-offer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-watcher-offer-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: 3px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
}

.entry-watcher-note {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.entry-watch-snapshot {
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  display: grid;
  gap: 8px;
}

.entry-watch-snapshot > div:first-child {
  display: grid;
  gap: 4px;
}

.entry-watch-snapshot strong {
  display: block;
  color: #0f172a;
}

.entry-watch-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-watch-snapshot-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: 3px 10px;
  background: #ffffff;
  font-size: 12px;
}

.entry-watch-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.customer-map-page .page-shell {
  max-width: 1680px;
}

.customer-map-filter-card {
  padding: 14px;
}

.customer-map-filters {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(120px, 140px) minmax(120px, 140px) minmax(180px, 1fr) minmax(200px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.customer-map-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.customer-map-nearby-field {
  min-width: 0;
}

.customer-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 14px;
  align-items: stretch;
}

.customer-map-main-card,
.customer-map-side-card {
  min-width: 0;
  padding: 12px;
}

.customer-map-canvas {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(117, 150, 197, 0.16);
  border-radius: 8px;
  background: #edf2f7;
}

.customer-map-canvas.is-fallback-map {
  background: #e5edf6;
}

.customer-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #475569;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(45deg, rgba(100, 116, 139, 0.12) 0 1px, transparent 1px 18px);
  z-index: 1;
}

.customer-map-fallback-notice {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  max-width: min(420px, calc(100% - 116px));
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
  pointer-events: none;
}

.customer-map-placeholder-content {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 320px;
}

.customer-map-placeholder-content strong {
  color: #0f172a;
  font-size: 18px;
}

.customer-map-placeholder-content span {
  color: #64748b;
  line-height: 1.5;
}

.customer-map-placeholder-content .primary-button {
  min-width: 120px;
  min-height: 40px;
}

.customer-map-mobile-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.customer-map-tool-button {
  min-width: 56px;
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.customer-map-tool-button:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.customer-map-selected-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.customer-map-selected-main,
.customer-map-selected-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-map-selected-main strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.customer-map-selected-meta span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.customer-map-selected-meta {
  grid-template-columns: 1.4fr minmax(88px, 0.8fr) minmax(110px, 1fr) minmax(72px, 0.6fr);
}

.customer-map-selected-meta span {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.customer-map-selected-meta strong {
  color: #334155;
  font-size: 11px;
  line-height: 1.25;
}

.customer-map-phone-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.customer-map-phone-link:hover,
.customer-map-phone-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-map-selected-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-map-selected-actions .primary-button,
.customer-map-selected-actions .secondary-button {
  min-height: 38px;
  padding: 8px 10px;
  text-align: center;
}

.customer-map-side-card {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  max-height: 706px;
}

.customer-map-side-head,
.customer-map-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.customer-map-side-head h2 {
  margin: 0;
  font-size: 18px;
}

.customer-map-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.customer-map-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.customer-map-summary-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.customer-map-summary-card strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.customer-map-summary-card.is-success strong {
  color: #047857;
}

.customer-map-summary-card.is-failed strong {
  color: #b91c1c;
}

.customer-map-summary-card.is-skipped strong {
  color: #6b7280;
}

.customer-map-districts {
  display: grid;
  gap: 7px;
}

.customer-map-district-item,
.customer-map-list-item {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.customer-map-district-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.customer-map-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.customer-map-list-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.customer-map-list-item:hover,
.customer-map-district-item:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.customer-map-list-item.is-muted {
  background: #f8fafc;
  color: #475569;
}

.customer-map-list-item .customer-map-list-title,
.customer-map-list-item .customer-map-list-address,
.customer-map-list-item .customer-map-list-meta {
  display: block;
}

.customer-map-list-item .customer-map-list-title {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.customer-map-list-item .customer-map-list-address,
.customer-map-list-item .customer-map-list-meta {
  color: #64748b;
  line-height: 1.45;
}

.customer-map-list-item .customer-map-list-address {
  font-size: 12px;
  word-break: break-word;
}

.customer-map-list-item .customer-map-list-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
}

.customer-map-list-item .customer-map-list-meta span {
  min-width: 0;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-map-list-item.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.customer-map-empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.customer-map-marker {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}

.customer-map-marker.is-private {
  background: #059669;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.26);
}

.customer-map-marker.is-highlight {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dc2626;
  font-size: 25px;
  line-height: 1;
  text-shadow:
    0 1px 0 #fff,
    1px 0 0 #fff,
    0 -1px 0 #fff,
    -1px 0 0 #fff,
    0 3px 8px rgba(127, 29, 29, 0.42);
  box-shadow:
    0 0 0 3px rgba(220, 38, 38, 0.12),
    0 8px 18px rgba(220, 38, 38, 0.32);
}

.customer-map-leaflet-icon,
.customer-map-leaflet-center-icon {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.customer-map-leaflet-popup .leaflet-popup-content {
  margin: 10px 12px;
}

.customer-map-center-marker {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.3);
}

.customer-map-info-window {
  display: grid;
  gap: 5px;
  max-width: 260px;
  color: #0f172a;
  line-height: 1.45;
}

.customer-map-info-window strong,
.customer-map-info-window span,
.customer-map-info-window p {
  margin: 0;
}

.customer-map-info-window span,
.customer-map-info-window p {
  color: #64748b;
}

.customer-map-info-actions a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .customer-map-filters,
  .customer-map-layout {
    grid-template-columns: 1fr;
  }

  .customer-map-side-card {
    max-height: none;
  }

  .customer-map-canvas {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .customer-map-page .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .customer-map-page .page-header,
  .customer-map-page .header-actions {
    align-items: stretch;
  }

  .customer-map-page .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .customer-map-page .header-actions .status-pill,
  .customer-map-page .header-actions .user-card {
    min-width: 0;
  }

  .customer-map-page .header-actions .ghost-button,
  .customer-map-page .header-actions .secondary-button {
    min-height: 40px;
  }

  .customer-map-filter-card {
    padding: 12px;
  }

  .customer-map-filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .customer-map-filters .field:nth-child(4),
  .customer-map-nearby-field,
  .customer-map-filter-actions {
    grid-column: 1 / -1;
  }

  .customer-map-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .customer-map-filter-actions button {
    min-height: 40px;
  }

  .customer-map-layout {
    gap: 10px;
  }

  .customer-map-main-card,
  .customer-map-side-card {
    padding: 10px;
  }

  .customer-map-canvas {
    min-height: 280px;
    height: 40vh;
  }

  .customer-map-canvas.is-expanded {
    height: 70vh;
    min-height: 520px;
  }

  .customer-map-mobile-tools {
    top: 10px;
    right: 10px;
  }

  .customer-map-tool-button {
    min-height: 40px;
  }

  .customer-map-selected-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: 45%;
    overflow: auto;
  }

  .customer-map-selected-meta {
    grid-template-columns: 1fr;
  }

  .customer-map-selected-actions .primary-button,
  .customer-map-selected-actions .secondary-button {
    min-height: 40px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .customer-map-side-card {
    grid-template-rows: auto auto auto auto auto;
    max-height: none;
  }

  .customer-map-side-head,
  .customer-map-list-head {
    align-items: center;
  }

  .customer-map-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-map-districts {
    grid-template-columns: 1fr;
  }

  .customer-map-list {
    overflow: visible;
    padding-right: 0;
  }

  .customer-map-list-item {
    gap: 8px;
    min-height: 108px;
    padding: 12px;
  }

  .customer-map-list-item .customer-map-list-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .customer-map-list-item .customer-map-list-meta {
    grid-template-columns: 1fr;
  }

  .customer-map-list-item .customer-map-list-meta span {
    border-radius: 8px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .customer-map-page .header-actions,
  .customer-map-filters {
    grid-template-columns: 1fr;
  }

  .customer-map-filter-actions {
    grid-template-columns: 1fr;
  }

  .customer-map-selected-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .daily-scorecard-page .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .daily-score-hero,
  .daily-score-metrics-row,
  .daily-score-insights,
  .daily-score-config-summary,
  .daily-score-summary-form {
    grid-template-columns: 1fr;
  }

  .daily-score-main,
  .daily-rank-card,
  .daily-score-side {
    min-height: 0;
  }

  .daily-score-number strong {
    font-size: 54px;
  }

  .daily-score-side,
  .daily-score-metric-grid {
    grid-template-columns: 1fr;
  }

  .daily-score-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-score-toolbar .toolbar-actions {
    justify-content: stretch;
  }

  .daily-employee-assets-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-report-form,
  .daily-team-filters {
    grid-template-columns: 1fr;
  }

  .daily-report-actions {
    justify-content: stretch;
  }

  .daily-report-actions button {
    flex: 1 1 140px;
  }
}

@media (max-width: 1280px) {
  .daily-team-toolbar-card {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-team-toolbar-card .toolbar-actions {
    justify-content: flex-start;
  }

  .daily-team-kpi-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-team-performance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  .daily-team-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .daily-team-filters {
    grid-template-columns: 1fr;
  }

  .daily-team-section-nav {
    gap: 4px;
    padding: 4px;
  }

  .daily-team-section-tab {
    min-height: 48px;
    padding: 8px;
    text-align: center;
  }

  .daily-team-kpi-groups,
  .daily-branch-matrix-grid {
    grid-template-columns: 1fr;
  }

  .daily-range-presets {
    grid-column: 1 / -1;
  }

  .daily-team-kpi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-branch-ranking-summary {
    grid-template-columns: 1fr;
  }

  .daily-branch-ranking-row {
    grid-template-columns: 40px minmax(140px, 180px) minmax(520px, 1fr);
    gap: 10px;
    min-width: 800px;
  }

  .daily-branch-rank-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .daily-team-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-employee-report-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
  }

  .daily-employee-report-metrics,
  .daily-employee-report-status,
  .daily-employee-report-summary,
  .daily-employee-report-actions {
    grid-column: 1 / -1;
  }

  .daily-employee-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-employee-report-status {
    justify-items: stretch;
  }

  .daily-employee-report-status small {
    text-align: left;
  }

  .daily-employee-asset-row {
    grid-template-columns: 40px minmax(150px, 190px) minmax(520px, 1fr) minmax(160px, 190px);
    gap: 10px;
    min-width: 920px;
  }

  .daily-team-table {
    min-width: 1080px;
  }

  #dailyReportDetailModal {
    align-items: flex-end;
    justify-content: center;
  }

  #dailyReportDetailModal .daily-report-detail-modal-panel {
    width: 100%;
    height: min(92dvh, 100vh);
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 420px) {
  .daily-employee-report-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .daily-team-section-tab small {
    display: none;
  }

  .daily-team-kpi-list,
  .daily-branch-ranking-summary,
  .daily-branch-matrix-metrics {
    grid-template-columns: 1fr;
  }
}
