:root {
      --bg: #0b1220;
      --panel: #111827;
      --panel2: #162033;
      --card: #0f172a;
      --line: rgba(255,255,255,.10);
      --text: #f8fafc;
      --muted: #94a3b8;
      --muted2: #cbd5e1;
      --brand: #38bdf8;
      --brand2: #0ea5e9;
      --good: #22c55e;
      --warn: #f59e0b;
      --bad: #ef4444;
      --shadow: 0 18px 50px rgba(0,0,0,.35);
      --radius: 18px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(56,189,248,.14), transparent 34%),
        linear-gradient(180deg, #08111f 0%, #0b1220 42%, #090f1a 100%);
      color: var(--text);
      min-height: 100vh;
    }

    button, input, select, textarea {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
      border-radius: 999px;
      font-weight: 800;
      transition: .15s ease;
    }

    button:disabled {
      opacity: .55;
      cursor: not-allowed;
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: rgba(15,23,42,.78);
      color: var(--text);
      border-radius: 13px;
      padding: 11px 12px;
      outline: none;
    }

    input:focus, select:focus, textarea:focus {
      border-color: rgba(56,189,248,.65);
      box-shadow: 0 0 0 3px rgba(56,189,248,.12);
    }

    label {
      display: block;
      font-size: 12px;
      color: var(--muted2);
      font-weight: 800;
      margin: 0 0 7px;
    }

    .app {
      width: min(1240px, 100%);
      margin: 0 auto;
      padding: 18px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 15px;
    }

    .brand-block {
      display: flex;
      align-items: center;
      gap: 11px;
      min-width: 0;
    }

    .logo {
      width: 42px;
      height: 42px;
      border-radius: 15px;
      background: linear-gradient(135deg, var(--brand), #6366f1);
      display: grid;
      place-items: center;
      font-weight: 950;
      color: white;
      box-shadow: 0 14px 30px rgba(56,189,248,.20);
      flex: 0 0 auto;
    }

    .title-wrap { min-width: 0; }
    .title-wrap h1 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .title-wrap p {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    .btn {
      padding: 10px 14px;
      background: rgba(255,255,255,.08);
      color: var(--text);
      border: 1px solid var(--line);
    }
    .btn:hover { background: rgba(255,255,255,.12); }

    .btn-primary {
      background: linear-gradient(135deg, var(--brand), var(--brand2));
      color: #06121f;
      border: 0;
      box-shadow: 0 14px 28px rgba(14,165,233,.18);
    }
    .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

    .btn-good {
      background: rgba(34,197,94,.16);
      color: #bbf7d0;
      border: 1px solid rgba(34,197,94,.35);
    }

    .btn-warn {
      background: rgba(245,158,11,.16);
      color: #fde68a;
      border: 1px solid rgba(245,158,11,.35);
    }

    .btn-danger {
      background: rgba(239,68,68,.16);
      color: #fecaca;
      border: 1px solid rgba(239,68,68,.35);
    }

    .hero {
      background: linear-gradient(135deg, rgba(15,23,42,.94), rgba(22,32,51,.82));
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 18px;
      box-shadow: var(--shadow);
      margin-bottom: 14px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      gap: 12px;
      align-items: stretch;
    }

    .hero h2 {
      margin: 0;
      font-size: 22px;
      letter-spacing: -.03em;
    }

    .hero p {
      margin: 7px 0 0;
      color: var(--muted2);
      font-size: 13px;
      line-height: 1.45;
    }

    .status-card {
      background: rgba(255,255,255,.055);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
    }

    .status-card .mini {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 7px;
    }

    .status-card .who {
      font-size: 14px;
      font-weight: 900;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 2px 0 12px;
      scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar { display: none; }

    .tab {
      white-space: nowrap;
      padding: 10px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      color: var(--muted2);
      border: 1px solid var(--line);
      font-size: 13px;
      font-weight: 900;
    }
    .tab.active {
      background: rgba(56,189,248,.18);
      color: #e0f2fe;
      border-color: rgba(56,189,248,.45);
    }

    .panel {
      background: rgba(15,23,42,.92);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .panel-head {
      padding: 15px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .panel-head h3 {
      margin: 0;
      font-size: 16px;
      letter-spacing: -.02em;
    }

    .panel-head p {
      margin: 3px 0 0;
      font-size: 12px;
      color: var(--muted);
    }

    .panel-body { padding: 15px; }

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

    .card {
      background: rgba(255,255,255,.045);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
    }

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .section-title strong { font-size: 14px; }
    .section-title span { font-size: 12px; color: var(--muted); }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      border: 1px solid var(--line);
      color: var(--muted2);
      font-size: 12px;
      font-weight: 800;
    }

    .chip button {
      width: 19px;
      height: 19px;
      padding: 0;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.09);
      color: var(--muted2);
    }

    .search-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: end;
    }

    .list-box {
      max-height: 260px;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(2,6,23,.25);
    }

    .list-item {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 9px;
      align-items: start;
      padding: 10px 11px;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .list-item:last-child { border-bottom: 0; }

    .list-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-top: 2px;
      accent-color: var(--brand2);
    }

    .li-main { min-width: 0; }
    .li-main strong {
      display: block;
      font-size: 13px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .li-main span {
      display: block;
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }

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

    .campaign-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: rgba(255,255,255,.045);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
    }

    .campaign-card h4 {
      margin: 0;
      font-size: 14px;
    }

    .campaign-card p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 5px 8px;
      font-size: 11px;
      font-weight: 900;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.06);
      color: var(--muted2);
      white-space: nowrap;
    }
    .badge.active { color: #bbf7d0; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
    .badge.closed { color: #fecaca; background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.30); }

    .survey-layout {
      display: grid;
      grid-template-columns: 330px 1fr;
      gap: 12px;
    }

    .side {
      align-self: start;
      position: sticky;
      top: 12px;
    }

    .sku-table-wrap {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(2,6,23,.30);
    }

    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      min-width: 920px;
    }

    th, td {
      border-bottom: 1px solid rgba(255,255,255,.075);
      border-right: 1px solid rgba(255,255,255,.055);
      padding: 8px;
      vertical-align: middle;
      font-size: 12px;
    }

    th {
      position: sticky;
      top: 0;
      z-index: 5;
      background: #111827;
      color: var(--muted2);
      font-weight: 950;
      text-align: left;
      white-space: nowrap;
    }

    td:first-child, th:first-child {
      position: sticky;
      left: 0;
      z-index: 6;
      background: #101827;
      min-width: 180px;
      max-width: 220px;
    }

    th:first-child { z-index: 7; }

    td input, td select {
      min-width: 95px;
      padding: 8px 9px;
      border-radius: 11px;
      font-size: 13px;
    }

    td textarea {
      min-width: 150px;
      height: 38px;
      resize: vertical;
      padding: 8px 9px;
      border-radius: 11px;
      font-size: 13px;
    }

    .sku-name {
      font-weight: 900;
      line-height: 1.25;
      color: var(--text);
    }
    .sku-code {
      color: var(--muted);
      font-size: 11px;
      margin-top: 2px;
    }

    .diff {
      font-weight: 950;
      text-align: right;
      white-space: nowrap;
    }
    .diff.good { color: #86efac; }
    .diff.bad { color: #fca5a5; }
    .diff.same { color: #e2e8f0; }

    .empty-state {
      padding: 28px 16px;
      text-align: center;
      color: var(--muted);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      background: rgba(15,23,42,.96);
      border: 1px solid var(--line);
      color: var(--text);
      padding: 12px 14px;
      border-radius: 999px;
      box-shadow: var(--shadow);
      font-size: 13px;
      z-index: 100;
      display: none;
      max-width: min(92vw, 540px);
      text-align: center;
    }

    .toast.show { display: block; }

    .hidden { display: none !important; }

    .small-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .toolbar {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .mini-metric {
      display: grid;
      gap: 3px;
      padding: 11px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.045);
    }
    .mini-metric span { color: var(--muted); font-size: 11px; font-weight: 800; }
    .mini-metric strong { font-size: 18px; }

    @media (max-width: 900px) {
      .app { padding: 12px; }
      .hero-grid, .grid-2, .grid-3, .grid-4, .survey-layout { grid-template-columns: 1fr; }
      .side { position: static; }
      .topbar { align-items: flex-start; }
      .top-actions { flex-wrap: wrap; justify-content: flex-end; }
      .hero h2 { font-size: 19px; }
      .campaign-card { grid-template-columns: 1fr; }
      .campaign-card .toolbar { justify-content: flex-start; }
    }

    @media (max-width: 620px) {
      .topbar { flex-direction: column; }
      .top-actions { width: 100%; justify-content: stretch; }
      .top-actions .btn { flex: 1; }
      .panel-head { align-items: stretch; }
      .panel-head .toolbar { width: 100%; }
      .panel-head .toolbar .btn { flex: 1; }
      .search-row { grid-template-columns: 1fr; }
      .btn { padding: 10px 12px; font-size: 13px; }
      .logo { width: 38px; height: 38px; border-radius: 13px; }
      .title-wrap h1 { font-size: 16px; }
      .sku-table-wrap { border-radius: 15px; }
      td:first-child, th:first-child { min-width: 145px; max-width: 165px; }
      table { min-width: 760px; }
    }

/* =========================================================
   FieldCore Price Survey True Rebuild v2.0 overrides
   ========================================================= */

:root {
  --bg: #f4f7f8;
  --panel: #ffffff;
  --panel2: #f8fafb;
  --card: #ffffff;
  --line: #dbe4e8;
  --text: #0d2a45;
  --muted: #587087;
  --muted2: #36536a;
  --brand: #087f7b;
  --brand2: #066662;
  --good: #17643f;
  --warn: #855b0a;
  --bad: #9f2929;
  --shadow: 0 14px 34px rgba(15,42,69,.07);
  --radius: 14px;
}

body {
  background: #f4f7f8 !important;
  color: var(--text) !important;
}

.price-survey-content {
  width: min(calc(100% - 56px), var(--home-content-max));
  margin: 0 auto;
  padding-bottom: 90px;
}

.price-route-head { padding-bottom: 20px; }

.safe-back-button {
  min-height: 34px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.price-loading,
.price-state {
  min-height: 88px;
  padding: 22px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
}

.price-state h2 { margin: 0 0 8px; color: var(--text); }
.price-state p { color: var(--muted); font-size: 11px; }
.price-state a { color: var(--brand); font-size: 10px; font-weight: 800; }

.app { width: auto !important; margin: 0 !important; padding: 0 !important; }
.topbar, .hero { display: none !important; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 22px rgba(15,42,69,.06);
}

.tab {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.tab.active {
  background: #eaf7f6;
  color: #087f7b;
}

.panel {
  margin-bottom: 14px;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: var(--shadow) !important;
}

.panel-head {
  padding: 18px !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
}

.panel-head h3 { color: var(--text) !important; font-size: 17px !important; }
.panel-head p { color: var(--muted) !important; font-size: 10px !important; }

.panel-body { padding: 18px !important; }

.card,
.status-card,
.mini-metric {
  border: 1px solid var(--line) !important;
  background: #f8fafb !important;
  box-shadow: none !important;
}

.card { border-radius: 11px !important; }
.mini-metric { border-radius: 10px !important; }

label {
  color: var(--muted2) !important;
  font-size: 9px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  min-height: 42px !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 11px !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8,127,123,.5) !important;
  box-shadow: 0 0 0 3px rgba(8,127,123,.09) !important;
}

button { border-radius: 9px !important; box-shadow: none !important; }

.btn {
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--text) !important;
}

.btn-primary {
  border: 1px solid var(--brand) !important;
  background: var(--brand) !important;
  color: #fff !important;
}

.btn-good { background: #eaf8f1 !important; color: var(--good) !important; border-color: #c8e7d5 !important; }
.btn-warn { background: #fff8e8 !important; color: var(--warn) !important; border-color: #ead6a4 !important; }
.btn-danger { background: #fff5f5 !important; color: var(--bad) !important; border-color: #efc4c4 !important; }

.campaign-item,
.picker-item,
.list-box {
  border-color: var(--line) !important;
  background: #fff !important;
  color: var(--text) !important;
}

.small-note,
.mini,
.section-title span,
.campaign-meta {
  color: var(--muted) !important;
}

.section-title strong,
.campaign-title,
.who {
  color: var(--text) !important;
}

.chip,
.tag {
  border-color: #cbd8df !important;
  background: #f8fafb !important;
  color: var(--text) !important;
}

.sku-table-wrap {
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  background: #fff !important;
}

table { background: #fff !important; }
th {
  background: #f5f8f9 !important;
  color: #36536a !important;
  font-size: 8px !important;
}
td {
  color: var(--text) !important;
  border-color: #edf1f3 !important;
  font-size: 9px !important;
}

.toast {
  right: 20px !important;
  bottom: 78px !important;
  border-radius: 10px !important;
  background: var(--text) !important;
  color: #fff !important;
}

@media (max-width: 899px) {
  .price-survey-content {
    width: min(calc(100% - 20px), var(--home-content-max));
    padding-bottom: 84px;
  }

  .tabs {
    top: calc(var(--fc-mobile-header-height) + 6px);
    overflow-x: auto;
  }

  .tab {
    flex: 1 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .price-survey-content { width: calc(100% - 12px); }
  .panel-head,
  .panel-body { padding: 14px !important; }
  .survey-layout { grid-template-columns: 1fr !important; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr !important; }
}

.price-report-internal-placeholder {
  display: none !important;
}
