: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;
}

.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);
}

.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));
}

.announcement-feed-card {
  background:
    linear-gradient(135deg, rgba(255, 238, 186, 0.2), rgba(255, 248, 226, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 243, 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-tag.is-announcement {
  background: linear-gradient(135deg, rgba(255, 225, 143, 0.36), rgba(255, 246, 211, 0.88));
  color: #8a6710;
}

.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-announcement {
  background: linear-gradient(135deg, rgba(255, 247, 216, 0.96), rgba(255, 255, 255, 0.92));
  padding: 4px 10px;
  gap: 8px;
  border-color: rgba(239, 194, 79, 0.24);
  box-shadow: 0 5px 12px rgba(205, 165, 56, 0.12);
}

.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.is-announcement .live-feed-item-tag {
  background: rgba(255, 225, 143, 0.28);
  color: #8a6710;
}

.live-feed-item.is-announcement .live-feed-item-text {
  letter-spacing: 0.01em;
}

.live-feed-item.is-announcement .live-feed-item-time {
  flex-shrink: 0;
}

.announcement-feed-card .live-feed-marquee {
  min-height: var(--live-feed-stage-height);
}

.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;
}

.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);
}

.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 {
  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-status-ok {
  color: #2f8f5b;
  font-weight: 700;
}

.ranking-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.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;
}

.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));
}

.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-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 {
  margin-bottom: 18px;
}

.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(160px, 1fr) minmax(220px, 1.25fr) minmax(240px, 1.35fr) 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: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.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;
}

@media (max-width: 1100px) {
  .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;
  }
}

@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 {
    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;
  }

  .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-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;
}

.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-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;
}

.customer-management-table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.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-detail-modal-panel {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.customer-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.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-detail-columns,
.customer-detail-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.customer-detail-section {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.customer-detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

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

.customer-detail-form button {
  justify-self: start;
}

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

  .customer-list-filter-bar .field {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .customer-activity-item,
  .customer-detail-columns,
  .customer-detail-history-grid,
  .customer-detail-form {
    grid-template-columns: 1fr;
  }
}
