/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --orange:       #F56400;
  --orange-hover: #E05800;
  --orange-light: #FFF7F0;
  --orange-border:#FDDCC0;
  --dark:         #111111;
  --text:         #111111;
  --text-2:       #4B5563;
  --text-3:       #9CA3AF;
  --bg-page:      #F3F4F6;
  --bg-card:      #FFFFFF;
  --bg-hover:     #F9FAFB;
  --bg-secondary: #F9FAFB;
  --border:       #E5E7EB;
  --border-2:     #D1D5DB;
  --green:        #22C55E;
  --green-bg:     #F0FDF4;
  --green-text:   #16A34A;
  --red:          #EF4444;
  --red-bg:       #FEF2F2;
  --red-text:     #DC2626;
  --blue:         #3B82F6;
  --blue-bg:      #EFF6FF;
  --blue-border:  #BFDBFE;
  --blue-text:    #1D4ED8;
  --yellow:       #F59E0B;
  --yellow-bg:    #FFFBEB;
  --yellow-text:  #D97706;
  --radius-sm:    6px;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --sidebar-w:    180px;
  --header-h:     52px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
  --shadow:       0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:    0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
  --dark:         #F9FAFB;
  --text:         #F9FAFB;
  --text-2:       #D1D5DB;
  --text-3:       #6B7280;
  --bg-page:      #0F0F0F;
  --bg-card:      #1A1A1A;
  --bg-hover:     #222222;
  --bg-secondary: #161616;
  --border:       #2A2A2A;
  --border-2:     #3A3A3A;
  --orange-light: #281500;
  --orange-border:#4D2E00;
  --green-bg:     #0A2010;
  --green-text:   #4ADE80;
  --red-bg:       #1F0A0A;
  --red-text:     #F87171;
  --blue-bg:      #0A1020;
  --blue-border:  #1E3A8A;
  --blue-text:    #60A5FA;
  --yellow-bg:    #1A1200;
  --yellow-text:  #FCD34D;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.3);
  --shadow:       0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:    0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg:    0 10px 15px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.3);
}

/* ── Layout ───────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 10;
}

.sidebar-logo {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-logo-mark {
  width: 24px; height: 24px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(245,100,0,0.3);
}
.sidebar-logo-text { font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: -0.3px; }
.sidebar-logo-sub  { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.sidebar-section { padding: 8px 16px 2px; font-size: 10px; font-weight: 600; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  border: none;
  background: transparent;
  width: calc(100% - 16px);
  text-align: left;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 600;
}
.nav-item.active svg { color: var(--orange); }
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }

.sidebar-bottom { margin-top: auto; padding: 10px 8px; border-top: 1px solid var(--border); }

.main-area { flex: 1; overflow-y: auto; background: var(--bg-page); }

.soc-main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  align-items: start;
}

.create-review-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: start;
}

.bulk-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  align-items: start;
}

.bulk-review-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 0;
  margin-bottom: 20px;
  max-width: 1400px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--text-3); margin-top: 4px; font-weight: 400; }
.page-body { padding: 0 28px 32px; max-width: 1400px; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 11px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.card-sep { height: 1px; background: var(--border); margin: 12px -20px; }

/* ── Stat Cards ───────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  cursor: default;
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange-border); transform: translateY(-1px); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.03em; text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 5px; font-weight: 400; }
.stat-up   { color: var(--green-text); font-weight: 500; }
.stat-down { color: var(--red-text); font-weight: 500; }

/* ── Grid ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.gap-12 { gap: 12px; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  font-family: 'Inter', inherit;
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(245,100,0,0.2);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); box-shadow: 0 2px 4px rgba(245,100,0,0.3); }
.btn-primary:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-danger {
  background: var(--red-bg); color: var(--red-text); border-color: #FECACA;
}
.btn-danger:hover { background: #FEE2E2; }

.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: transparent; box-shadow: none; }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; }
.btn svg { width: 14px; height: 14px; }

/* ── Form Elements ────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label, .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.label-hint { font-size: 12px; color: var(--text-3); font-weight: 400; }

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--dark); }
input.error, select.error, textarea.error { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red-text); margin-top: 4px; }
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

.input-row { display: flex; gap: 8px; }
.input-prefix { display: flex; align-items: center; }
.input-prefix-text { padding: 8px 10px; background: var(--bg-hover); border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; color: var(--text-3); white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius) var(--radius) 0; }

.char-count { font-size: 12px; color: var(--text-3); }
.char-count.over { color: var(--red-text); }

/* ── Toggle ───────────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 8px; }
.toggle {
  position: relative; width: 36px; height: 20px; flex-shrink: 0;
  background: var(--border-2); border-radius: 10px; cursor: pointer;
  transition: background 0.2s;
}
.toggle.on { background: var(--orange); }
.toggle::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; top: 2px; left: 2px;
  transition: left 0.2s;
}
.toggle.on::after { left: 18px; }
.toggle-label { font-size: 14px; color: var(--text); }

/* ── Tags / Chips ─────────────────────────────────────── */
.tags-input-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  display: flex; flex-wrap: wrap; gap: 4px; cursor: text;
  background: var(--bg-card);
  min-height: 38px;
}
.tags-input-wrap:focus-within { border-color: var(--dark); }
.tags-input-wrap input { border: none; outline: none; font-size: 14px; background: transparent; min-width: 80px; flex: 1; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--orange);
}
.tag-chip-remove {
  cursor: pointer; font-size: 14px; line-height: 1;
  color: var(--text-3); border: none; background: none; padding: 0;
}
.tag-chip-remove:hover { color: var(--red); }

/* ── Badges ───────────────────────────────────────────── */
.listing-mobile-meta { display: none; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 4px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-green  { background: var(--green-bg); color: var(--green-text); }
.badge-red    { background: var(--red-bg); color: var(--red-text); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-blue   { background: var(--blue-bg); color: var(--blue-text); }
.badge-gray   { background: var(--bg-hover); color: var(--text-3); }

/* ── Table ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 9px 12px;
  font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; background: var(--bg-card);
  cursor: pointer; user-select: none;
}
thead th:hover { color: var(--text); }
thead th.sort-asc::after { content: ' ↑'; color: var(--orange); }
thead th.sort-desc::after { content: ' ↓'; color: var(--orange); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { padding: 8px 12px; vertical-align: middle; font-size: 13.5px; }
th.check-col, td.check-col { width: 36px; padding-right: 0; }
input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--orange); }

/* ── Toolbar ──────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.toolbar-search { position: relative; }
.toolbar-search input { padding-left: 30px; width: 220px; }
.toolbar-search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.toolbar-sep { width: 1px; height: 24px; background: var(--border); }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; }

/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 0;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
}
.pagination-info { margin-right: auto; }
.page-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 600; }
.page-btn:hover:not(.active) { background: var(--bg-hover); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fade-in 0.15s ease;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  margin: 16px;
  animation: scale-in 0.15s ease;
}
.modal-lg { max-width: 800px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close { border: none; background: none; cursor: pointer; color: var(--text-3); padding: 4px; border-radius: var(--radius-sm); }
.modal-close:hover { color: var(--text); background: var(--bg-hover); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
  flex-shrink: 0;
}

@keyframes fade-in  { from { opacity: 0; }          to { opacity: 1; } }
@keyframes scale-in { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Toast ────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 16px; right: 16px;
  z-index: 10100; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 380px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  animation: toast-in 0.2s ease;
  position: relative; overflow: hidden;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--blue); }
.toast-icon    { font-size: 16px; }
.toast-text    { flex: 1; font-size: 14px; }
.toast-close   { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 16px; padding: 0; }
.toast-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--border); animation: toast-progress 4.2s linear forwards;
}
.toast-error .toast-progress { animation-duration: 10s; }
@keyframes toast-in       { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-progress { from { width: 100%; } to { width: 0%; } }

/* ── Steps ────────────────────────────────────────────── */
.steps-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.step-idle   { background: var(--bg-hover); color: var(--text-3); border: 1px solid var(--border); }
.step-active { background: var(--dark); color: #fff; }
.step-done   { background: var(--green-bg); color: var(--green-text); border: 1px solid #BBF7D0; }
.step-line   { flex: 1; height: 1px; background: var(--border); }
.step-label  { font-size: 12px; color: var(--text-3); }
.step-label.active { color: var(--text); font-weight: 500; }

/* ── Loading ──────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block; vertical-align: middle; flex-shrink: 0;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:0.4; } 50% { opacity:0.8; } }

.loading-center { display: flex; align-items: center; justify-content: center; padding: 40px; gap: 10px; color: var(--text-3); }

/* ── Empty State ──────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-3);
}
.empty-state-icon { font-size: 32px; margin-bottom: 12px; }
.empty-state-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ── Alert / Banner ───────────────────────────────────── */
.alert {
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 12px; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-info    { background: var(--blue-bg); color: var(--blue-text); border: 1px solid #BFDBFE; }
.alert-success { background: var(--green-bg); color: var(--green-text); border: 1px solid #BBF7D0; }
.alert-error   { background: var(--red-bg); color: var(--red-text); border: 1px solid #FECACA; }
.alert-warning { background: var(--orange-light); color: var(--orange); border: 1px solid var(--orange-border); }

/* ── Misc ─────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-bold { font-weight: 600; }
.thumbnail {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-hover); flex-shrink: 0;
}
.thumbnail-sm { width: 64px; height: 64px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; background: var(--bg-hover); padding: 1px 5px; border-radius: 3px; }

/* ── Token countdown ──────────────────────────────────── */
.token-timer {
  font-size: 12px; padding: 3px 8px; border-radius: var(--radius-sm);
  background: var(--green-bg); color: var(--green-text); font-weight: 500;
}
.token-timer.expiring { background: var(--orange-light); color: var(--orange); }
.token-timer.expired  { background: var(--red-bg); color: var(--red-text); }

/* ── Listing grid view ────────────────────────────────── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.listing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.listing-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.listing-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-hover); display: block; }
.listing-card-body { padding: 10px; }
.listing-card-title { font-size: 12px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.listing-card-meta { font-size: 12px; color: var(--text-3); }
.listing-card-price { font-size: 14px; font-weight: 600; color: var(--text); }
.listing-card-check { position: absolute; top: 8px; left: 8px; opacity: 0; transition: opacity 0.1s; }
.listing-card:hover .listing-card-check,
.listing-card.selected .listing-card-check { opacity: 1; }
.listing-card.selected { border-color: var(--orange); background: var(--orange-light); }

/* ── Image upload zone ────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text-3);
  font-size: 14px;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--orange); background: var(--orange-light); color: var(--orange); }
.upload-zone input { display: none; }

/* ── Bulk action bar ──────────────────────────────────── */
.bulk-bar {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--dark); color: #fff;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: slide-up 0.2s ease;
  z-index: 100;
}
.bulk-bar-count { font-size: 14px; font-weight: 600; margin-right: 4px; }
.bulk-bar-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }
.bulk-btn { padding: 5px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.bulk-btn:hover { background: rgba(255,255,255,0.1); }
.bulk-btn.danger { border-color: #FCA5A5; color: #FCA5A5; }
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Platform cards (Social Hub) ──────────────────────── */
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.15s;
}
.platform-card:hover { border-color: var(--border-2); }
.platform-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 6px; flex-wrap: wrap; }
.platform-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.platform-icon { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.pi-pinterest { background: #E60023; }
.pi-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.pi-facebook  { background: #1877F2; }
.pi-tiktok    { background: #000; }
.platform-status { font-size: 12px; }

/* ── Settings sections ────────────────────────────────── */
.settings-group { margin-bottom: 20px; }
.settings-group-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text); letter-spacing: -0.2px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Chart container ──────────────────────────────────── */
.chart-wrap { position: relative; height: 200px; }

/* ── Mobile & Responsive ──────────────────────────────────── */
.hamburger {
  display: none;
  position: fixed; top: 7px; left: 12px; z-index: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hamburger svg { display: block; }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 299;
}

@media (max-width: 768px) {
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .sidebar-logo { display: none; }

  .sidebar {
    position: fixed; left: -100%; top: 0; bottom: 0;
    z-index: 300; transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .sidebar.open { left: 0; display: flex; }
  .agent-page-header { padding: 0 12px 0 56px !important; position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 200 !important; min-height: 48px !important; background: var(--bg-card) !important; }
  .create-sticky-bar { padding-left: 52px !important; position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 200 !important; margin-bottom: 0 !important; }
  .create-back-btn { display: none; }
  .create-header-hidden { display: none !important; }
  .sidebar-overlay.visible { display: block; }
  .stats-grid > *:last-child:nth-child(odd) { grid-column: span 2; }
  .soc-main-grid { grid-template-columns: 1fr; }
  .create-review-grid { grid-template-columns: 1fr; }
  .bulk-main-grid { grid-template-columns: 1fr; }
  .bulk-review-row { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; gap: 12px; }
  .settings-layout > .card:first-child {
    position: static !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 4px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-bottom: 6px !important;
  }
  .settings-layout > .card:first-child::-webkit-scrollbar { height: 3px; }
  .settings-layout > .card:first-child::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .settings-layout > .card:first-child::-webkit-scrollbar-track { background: transparent; }
  .settings-layout > .card:first-child .stab {
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    border: 1.5px solid var(--border) !important;
  }
  .settings-layout > .card:first-child .stab[style*="var(--orange-light)"] {
    border-color: var(--orange) !important;
  }
  .dash-table-hide { display: none; }

  .main-area { padding-top: 48px; overflow-x: hidden; }
  .page-body { padding: 14px 12px 24px; max-width: 100%; }
  .page-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 400;
    background: var(--bg-page);
    padding: 0 12px 0 56px;
    min-height: 48px;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }
  .page-title { font-size: 16px; }
  .page-subtitle { display: none; }

  /* Listings table: hide Favs/Type/Status/Created/Actions, show mobile badges */
  .table-wrap table th:nth-child(n+6),
  .table-wrap table td:nth-child(n+6) { display: none; }
  .table-wrap { overflow-x: hidden; }
  .table-wrap table { table-layout: fixed; width: 100%; }
  .table-wrap table th:nth-child(4), .table-wrap table td:nth-child(4) { width: 56px !important; }
  .table-wrap table th:nth-child(5), .table-wrap table td:nth-child(5) { width: 54px !important; }
  .table-wrap thead th { overflow: hidden; }
  .table-wrap td:nth-child(3) .text-muted { flex-wrap: wrap; gap: 3px; }
  .listing-mobile-meta { display: inline-flex; gap: 3px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .toolbar { gap: 6px; }
  .toolbar-search input { width: 160px; }
  .toolbar-right { margin-left: 0; width: 100%; }

  .modal { margin: 8px; max-height: 96vh; }
  .modal-lg { max-width: 100%; }
}

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  width: 24px; height: 24px; border-radius: var(--radius);
  border: none; background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: color 0.15s; font-size: 14px;
  flex-shrink: 0; padding: 0;
}
.theme-toggle:hover { background: var(--bg-hover); }

/* ── PWA install banner ───────────────────────────────────── */
.pwa-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: #fff;
  border-radius: var(--radius-lg); padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 999; font-size: 14px;
  animation: slide-up 0.3s ease;
}
.pwa-banner-text { flex: 1; }
.pwa-banner button { padding: 6px 14px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.pwa-btn-install { background: var(--orange); color: #fff; }
.pwa-btn-dismiss { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Competitor analyzer ──────────────────────────────────── */
.competitor-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px; margin-bottom: 10px;
  transition: border-color 0.15s;
}
.competitor-card:hover { border-color: var(--border-2); }
.competitor-score {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* ── Alerts popover ───────────────────────────────────────── */
.alerts-dot {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; position: absolute; top: 4px; right: 4px;
}

/* ── Date range picker ────────────────────────────────────── */
.daterange-wrap { display: flex; align-items: center; gap: 6px; }
.daterange-wrap input[type="date"] { width: 140px; }

/* ── Global cursor & interaction polish ──────────────────── */
button, [onclick], .nav-item, .listing-card, tbody tr[onclick],
.tag-chip, .page-btn, .toggle, .tax-item, .platform-card .row button,
.bulk-btn, .theme-toggle, [data-page] { cursor: pointer; }

/* Prevent text selection on buttons */
button, .nav-item, .btn, .bulk-btn { user-select: none; }

/* Focus visible for keyboard nav */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── Smooth page transitions ──────────────────────────────── */
.main-area { scroll-behavior: smooth; }

#main-area > * {
  animation: page-in 0.15s ease;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Better hover states on rows ─────────────────────────── */
tbody tr { transition: background 0.08s; }
.listing-card { transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s; }
.listing-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

/* ── Input transitions ────────────────────────────────────── */
input, select, textarea { transition: border-color 0.12s; }

/* ── Button press feedback ────────────────────────────────── */
.btn:active:not(:disabled), .btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

/* ── Tag chip hover ───────────────────────────────────────── */
.tag-chip { transition: background 0.1s; }
.tag-chip:hover { background: var(--orange-border); }

/* ── Tooltip via title attribute ─────────────────────────── */
[title] { position: relative; }

/* ── Nav item active indicator ────────────────────────────── */
.nav-item { transition: background 0.1s, color 0.1s; }

/* ── Card hover lift ──────────────────────────────────────── */
.card { transition: box-shadow 0.15s; }

/* ── Better disabled states ───────────────────────────────── */
:disabled, [disabled] { cursor: not-allowed !important; opacity: 0.5; }

/* ── Smooth sidebar transitions ───────────────────────────── */
.sidebar { transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Smooth toggle ────────────────────────────────────────── */
.toggle, .toggle::after { transition: background 0.18s, left 0.18s; }

/* ── Content visibility optimization (perf) ──────────────── */
.table-wrap table { content-visibility: auto; }

/* ── Global font size increase ───────────────────────────── */
:root { --base-font: 14px; }
body, input, select, textarea, button { font-size: 14px; }
.text-sm, .text-muted { font-size: 12px !important; }
.badge, .text-xs { font-size: 11px !important; }
.label-hint { font-size: 12px; }
th, .table-wrap td { font-size: 13px; }
.nav-item { font-size: 13.5px; }
.sidebar-logo-text { font-size: 13px; }
.page-title { font-size: 22px; }
.page-subtitle { font-size: 13px; }
.card-title { font-size: 14px; }
.stat-value { font-size: 24px; }
.stat-label { font-size: 12px; }


/* ── Floating Chat ─────────────────────────────────────── */
#chat-float-root { position: fixed; bottom: 24px; right: 24px; z-index: 900; }

#chat-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(245,100,0,0.4), 0 2px 4px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
#chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(245,100,0,0.5); }
#chat-fab.active { background: #111; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
#chat-fab-badge {
  position: absolute; top: -2px; right: -2px;
  background: #EF4444; color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; padding: 1px 5px; min-width: 18px; text-align: center;
  border: 2px solid var(--bg-card);
}
#chat-panel {
  position: fixed; bottom: 88px; right: 24px;
  width: 400px; height: 600px; max-height: calc(100vh - 120px);
  background: var(--bg-card); border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: chat-pop 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes chat-pop {
  from { opacity:0; transform: scale(0.9) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.fchat-header { padding:12px 14px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; flex-shrink:0; background:var(--bg-card); border-top:3px solid var(--orange); border-radius:18px 18px 0 0; }
.fchat-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--orange) 0%,#FF8C42 100%); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 2px 6px rgba(245,100,0,0.3); }
.fchat-title { font-weight:700; font-size:13.5px; flex:1; }
.fchat-status { font-size:10.5px; color:var(--text-3); }
.fchat-btn { width:30px; height:30px; border-radius:var(--radius); border:none; background:transparent; color:var(--text-3); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.1s,color 0.1s; }
.fchat-btn:hover { background:var(--bg-hover); color:var(--text); }
.fchat-messages { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth; }
.fchat-messages::-webkit-scrollbar { width:4px; }
.fchat-messages::-webkit-scrollbar-thumb { background:var(--border-2); border-radius:4px; }
.fchat-bubble { max-width:90%; padding:10px 14px; font-size:13px; line-height:1.6; word-break:break-word; }
.fchat-bubble.user { background:var(--orange); color:#fff; border-radius:16px 16px 4px 16px; align-self:flex-end; white-space:pre-wrap; }
.fchat-bubble.ai { background:var(--bg-card); color:var(--text); border-radius:4px 16px 16px 16px; align-self:flex-start; box-shadow:0 1px 4px rgba(0,0,0,0.07); }
/* Markdown inside AI bubble */
.fchat-bubble.ai p { margin:0 0 8px; }
.fchat-bubble.ai p:last-child { margin:0; }
.fchat-bubble.ai ul,.fchat-bubble.ai ol { padding-left:18px; margin:5px 0; }
.fchat-bubble.ai li { margin:3px 0; line-height:1.5; }
.fchat-bubble.ai strong { font-weight:600; }
.fchat-bubble.ai em { font-style:italic; }
.fchat-bubble.ai a { color:var(--orange); text-decoration:underline; }
.fchat-bubble.ai code { font-family:'Menlo',monospace; font-size:11.5px; background:rgba(0,0,0,0.07); padding:1px 5px; border-radius:4px; }
.fchat-bubble.ai pre { background:rgba(0,0,0,0.06); border-radius:8px; padding:9px 11px; margin:7px 0; font-size:11.5px; overflow-x:auto; }
.fchat-bubble.ai pre code { background:none; padding:0; }
.fchat-bubble.ai h3,.fchat-bubble.ai h4 { font-size:13px; font-weight:700; margin:9px 0 4px; }
.fchat-bubble.ai a { color:var(--orange); }
.fchat-typing { align-self:flex-start; background:var(--bg-secondary); border:1px solid var(--border); border-radius:14px 14px 14px 4px; padding:10px 14px; display:flex; gap:4px; align-items:center; }
.fchat-dot { width:6px; height:6px; border-radius:50%; background:var(--text-3); animation:fchat-bounce 1.2s infinite; }
.fchat-dot:nth-child(2) { animation-delay:0.2s; }
.fchat-dot:nth-child(3) { animation-delay:0.4s; }
@keyframes fchat-bounce { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-5px); } }
.fchat-welcome { text-align:center; padding:20px 12px; }
.fchat-welcome-icon { width:44px; height:44px; border-radius:50%; background:var(--orange-light); color:var(--orange); display:flex; align-items:center; justify-content:center; margin:0 auto 10px; }
.fchat-welcome h4 { font-size:14px; font-weight:600; margin-bottom:5px; color:var(--text); }
.fchat-welcome p { font-size:12px; color:var(--text-3); line-height:1.5; }
.fchat-chips { display:flex; flex-direction:column; gap:4px; margin-top:12px; }
.fchat-chip { background:var(--bg-page); border:1px solid var(--border); border-radius:var(--radius); padding:7px 11px; font-size:12px; color:var(--text-2); cursor:pointer; text-align:left; transition:border-color 0.1s,background 0.1s; font-family:inherit; }
.fchat-chip:hover { border-color:var(--orange); background:var(--orange-light); color:var(--orange); }
.fchat-input-area { padding:10px 12px; border-top:1px solid var(--border); display:flex; gap:8px; align-items:flex-end; flex-shrink:0; }
.fchat-input { flex:1; border:1px solid var(--border); border-radius:12px; padding:8px 12px; font-size:13px; font-family:inherit; resize:none; max-height:90px; overflow-y:auto; line-height:1.4; background:var(--bg-page); color:var(--text); outline:none; transition:border-color 0.15s; }
.fchat-input:focus { border-color:var(--orange); }
.fchat-send { width:36px; height:36px; border-radius:50%; background:var(--orange); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.15s,transform 0.1s; flex-shrink:0; }
.fchat-send:hover { background:var(--orange-hover); }
.fchat-send:active { transform:scale(0.92); }
.fchat-send:disabled { opacity:0.4; cursor:not-allowed; }
.fchat-tool-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--text-3); background:var(--bg-page); border:1px solid var(--border); border-radius:20px; padding:2px 8px; margin-bottom:4px; }

/* ── Agent Action Cards ─────────────────────────────────── */
.agent-action-card { background:var(--bg-card); border:1px solid var(--border-2); border-left:4px solid var(--orange); border-radius:14px; padding:14px 16px; margin:8px 0; box-shadow:var(--shadow-md); color:var(--text); }
.agent-action-card-update { background:linear-gradient(180deg,var(--orange-light),var(--bg-card)); border-color:var(--orange-border); }
.agent-action-card-duplicate { background:linear-gradient(180deg,var(--blue-bg),var(--bg-card)); border-color:var(--blue-border); border-left-color:var(--blue); }
.agent-action-card-heading { font-weight:700; font-size:13px; margin-bottom:10px; line-height:1.35; }
.agent-action-card-list { display:flex; flex-direction:column; gap:10px; margin-bottom:10px; }
.agent-action-card-item { display:flex; gap:12px; align-items:flex-start; background:rgba(255,255,255,0.68); border:1px solid var(--border); border-radius:10px; padding:10px; }
[data-theme="dark"] .agent-action-card-item { background:rgba(255,255,255,0.03); }
.agent-action-card-item img { border-radius:8px !important; }
.agent-action-card-thumb-placeholder { width:72px; height:72px; flex-shrink:0; border-radius:8px; border:1px dashed var(--border-2); color:var(--text-3); background:var(--bg-secondary); display:flex; align-items:center; justify-content:center; font-size:10px; text-align:center; }
.agent-action-card-item-body { min-width:0; flex:1; }
.agent-action-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:var(--text-3); font-size:10.5px; line-height:1.3; margin-bottom:4px; }
.agent-action-card-state { color:var(--blue-text); background:var(--blue-bg); border:1px solid var(--blue-border); border-radius:999px; padding:1px 6px; font-weight:700; }
.agent-action-card-source-label { color:var(--text-3); font-size:10.5px; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:2px; }
.agent-action-card-title { font-weight:700; font-size:13px; line-height:1.35; margin-bottom:5px; }
.agent-action-card-title-link { color:var(--text); text-decoration:none; }
.agent-action-card-title-link:hover { color:var(--orange); text-decoration:underline; }
.agent-action-card-changes { font-size:11.5px; color:var(--text-2); margin-bottom:4px; }
.agent-action-card-details { font-size:11.5px; color:var(--text-2); line-height:1.45; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:8px; overflow-wrap:anywhere; }
.agent-action-card-details > div + div { margin-top:4px; }
.agent-action-card-diffs { display:flex; flex-direction:column; gap:8px; }
.agent-field-diff { border:1px solid var(--border); background:var(--bg-card); border-radius:10px; padding:8px; }
.agent-field-diff-label { font-size:11px; font-weight:800; color:var(--text); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.03em; }
.agent-field-diff-values { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:8px; align-items:stretch; }
.agent-field-diff-value { border-radius:8px; padding:7px 8px; min-width:0; }
.agent-field-diff-value span { display:block; font-size:9.5px; font-weight:700; color:var(--text-3); text-transform:uppercase; margin-bottom:3px; }
.agent-field-diff-value p { margin:0; font-size:11.5px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.agent-field-diff-before { background:var(--bg-secondary); border:1px solid var(--border); color:var(--text-2); }
.agent-field-diff-after { background:var(--green-bg); border:1px solid rgba(34,197,94,0.28); color:var(--text); }
.agent-field-diff-arrow { align-self:center; color:var(--orange); font-weight:800; }
.agent-action-card-warning { color:var(--red-text); }
.agent-action-card-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.agent-action-card-progress { font-size:12px; color:var(--text-2); margin-top:8px; }
@media (max-width:640px) { .agent-action-card { padding:12px; } .agent-action-card-item { gap:10px; } .agent-action-card-thumb-placeholder, .agent-action-card-item img { width:58px !important; height:58px !important; } .agent-field-diff-values { grid-template-columns:1fr; } .agent-field-diff-arrow { transform:rotate(90deg); justify-self:center; } }
