/* ==========================================================================
   بهاچین — Guided demo (scenario-based walkthrough)
   ========================================================================== */
.gd-section {
  --gd-line: var(--border);
  --gd-soft: #f8fafc;
  --gd-head: #f1f5f9;
  --gd-green: #16a34a;
  --gd-red: #dc2626;
  --gd-amber: #b45309;
  --gd-violet: #7c3aed;
}
[data-theme="dark"] .gd-section {
  --gd-line: rgba(148, 163, 184, .16);
  --gd-soft: #0d1728;
  --gd-head: #122036;
  --gd-green: #4ade80;
  --gd-red: #f87171;
  --gd-amber: #fbbf24;
  --gd-violet: #c4b5fd;
}
.gd-section [hidden] { display: none !important; }

.gd-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}

/* ---------- Scenario rail ---------- */
.gd-rail {
  position: sticky; top: 84px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px;
  box-shadow: var(--shadow-sm);
}
.gd-rail-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 9px; }
.gd-rail-head b { font-size: 12.5px; font-weight: 900; }
.gd-rail-head small { font-size: 9.6px; color: var(--muted); }
.gd-list { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gd-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 9px;
  text-align: start; font-family: inherit; color: var(--text); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  appearance: none; -webkit-appearance: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.gd-item:hover { background: var(--surface-2); border-color: var(--border); }
.gd-item.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(37, 99, 235, .03));
  border-color: rgba(37, 99, 235, .3);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}
.gd-item.is-done .gd-item-ic { background: var(--green-soft); color: var(--gd-green); }
.gd-item-ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue);
}
.gd-item-ic .ic { width: 15px; height: 15px; }
.gd-item-tx { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.gd-item-tx b {
  font-size: 11.4px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-item-tx i {
  font-style: normal; font-size: 9.6px; color: var(--muted); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-tag {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.6px; font-weight: 800; border-radius: 999px; padding: 2px 6px; white-space: nowrap;
}
.gd-tag .ic { width: 10px; height: 10px; }
.gd-tag--live { color: #1d4ed8; background: #dbeafe; }
.gd-tag--auto { color: #6d28d9; background: #ede9fe; }
[data-theme="dark"] .gd-tag--live { color: #93c5fd; background: rgba(37, 99, 235, .22); }
[data-theme="dark"] .gd-tag--auto { color: #c4b5fd; background: rgba(124, 58, 237, .24); }
.gd-item.is-active .gd-tag { box-shadow: 0 0 0 1px rgba(37, 99, 235, .15); }
.gd-rail-note {
  display: flex; gap: 6px;
  margin-top: 10px; padding: 8px 9px;
  border: 1px dashed var(--blue-pale); border-radius: 11px;
  background: rgba(37, 99, 235, .05);
  font-size: 9.6px; line-height: 1.8; color: var(--muted);
}
.gd-rail-note .ic { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--blue); }

/* ---------- Main column ---------- */
.gd-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gd-app {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}
.gd-appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.gd-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gd-brand strong { display: block; font-size: 12.5px; font-weight: 900; color: var(--blue-deeper); line-height: 1.4; }
[data-theme="dark"] .gd-brand strong { color: #dbeafe; }
.gd-brand small { display: block; font-size: 9.2px; color: var(--muted); }
.gd-appbar-actions { display: flex; align-items: center; gap: 8px; }
.gd-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.4px; font-weight: 800; color: #15803d;
  background: rgba(22, 163, 74, .1); border-radius: 999px; padding: 3px 8px;
}
.gd-live i { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; animation: gdBlink 1.6s infinite; }
[data-theme="dark"] .gd-live { color: #86efac; background: rgba(34, 197, 94, .14); }
@keyframes gdBlink { 50% { opacity: .3; } }
.gd-reset {
  display: inline-flex; align-items: center; gap: 4px;
  height: 27px; padding: 0 9px;
  font-family: inherit; font-size: 9.8px; font-weight: 700; color: var(--muted);
  background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.gd-reset:hover { color: var(--blue); border-color: var(--blue-pale); }
.gd-reset .ic { width: 12px; height: 12px; }

.gd-tabs {
  display: flex; gap: 2px; padding: 0 10px; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: none;
}
.gd-tabs::-webkit-scrollbar { display: none; }
.gd-tab {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 8px 11px 7px; margin-bottom: -1px;
  font-family: inherit; font-size: 11.2px; font-weight: 700; color: var(--muted);
  background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.gd-tab .ic { width: 13px; height: 13px; }
.gd-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.gd-badge {
  min-width: 15px; height: 15px; padding: 0 4px;
  display: inline-grid; place-items: center;
  font-size: 8.6px; font-weight: 800; font-style: normal;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
}
.gd-tab.active .gd-badge { color: var(--blue); background: var(--blue-light); border-color: var(--blue-pale); }

/* ---------- List view ---------- */
.gd-hintbar {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 10px 12px 0; padding: 7px 9px;
  border: 1px dashed var(--gd-line); border-radius: 10px;
  background: var(--gd-soft);
  font-size: 9.8px; font-weight: 500; line-height: 1.75; color: var(--text);
}
.gd-hintbar .ic { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--blue); }
.gd-bulkbar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin: 9px 12px 0; padding: 7px 9px;
  border: 1px solid rgba(37, 99, 235, .25); border-radius: 11px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .09), rgba(37, 99, 235, .02));
  animation: gdDrop .3s ease both;
}
@keyframes gdDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.gd-selcount { font-size: 10.2px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.gd-select {
  height: 29px; max-width: 200px;
  font-family: inherit; font-size: 10.2px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 7px;
}
.gd-bulkbar .btn { height: 29px; font-size: 10.2px; padding: 0 10px; }
.gd-roundmode {
  display: inline-flex; gap: 2px; padding: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.gd-roundmode[hidden] { display: none; }
.gd-rm {
  height: 23px; padding: 0 7px;
  font-family: inherit; font-size: 9.6px; font-weight: 700;
  color: var(--muted); background: transparent; border: 0; border-radius: 6px;
  cursor: pointer; white-space: nowrap;
}
.gd-rm:hover { color: var(--text); }
.gd-rm.is-on { background: var(--blue); color: #fff; }

.gd-table-wrap { overflow-x: auto; margin-top: 9px; }
.gd-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 11px; }
.gd-table th {
  padding: 7px 10px; text-align: start; white-space: nowrap;
  font-size: 9.4px; font-weight: 800; color: #475569;
  background: var(--gd-head); border-bottom: 1px solid var(--gd-line);
}
.gd-table th small { font-size: 8.4px; font-weight: 600; opacity: .7; }
[data-theme="dark"] .gd-table th { color: #93c5fd; }
.gd-table td { padding: 6px 10px; border-bottom: 1px solid var(--gd-line); vertical-align: middle; }
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table tbody tr { transition: background .15s, opacity .3s; }
.gd-table tbody tr:hover { background: rgba(37, 99, 235, .035); }
.gd-table tbody tr.selected { background: rgba(37, 99, 235, .07); }
.gd-table tbody tr.leaving { opacity: 0; transform: translateX(10px); }
.gd-col-check { width: 30px; }
.gd-col-check input, .gd-table input[type="checkbox"] { accent-color: var(--blue); width: 13px; height: 13px; cursor: pointer; }
.gd-col-status { width: 82px; }
.gd-col-act { width: 64px; }
.gd-prod { display: flex; align-items: center; gap: 7px; min-width: 170px; }
.gd-thumb {
  flex: none; width: 29px; height: 29px; border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-pname { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.gd-pname b { font-size: 10.6px; font-weight: 800; line-height: 1.55; }
.gd-pname small { font-size: 8.8px; color: var(--muted); }
.gd-price {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-size: 11px; font-weight: 800; color: var(--text);
  padding: 2px 5px; border-radius: 6px; cursor: text;
  transition: background .15s, box-shadow .15s;
}
.gd-price:hover { background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--blue-pale); }
.gd-price i { font-style: normal; font-size: 8.4px; font-weight: 500; color: var(--muted); }
.gd-cell-input {
  width: 104px; height: 25px; padding: 0 5px;
  font-family: inherit; font-size: 10.4px; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1px solid var(--blue); border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
  direction: ltr; text-align: center;
}
.gd-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 9.2px; font-weight: 800; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.gd-stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.gd-stock.in { color: #15803d; background: rgba(22, 163, 74, .1); }
.gd-stock.low { color: var(--gd-amber); background: rgba(217, 119, 6, .12); }
.gd-stock.out { color: var(--gd-red); background: rgba(220, 38, 38, .1); }
[data-theme="dark"] .gd-stock.in { color: #86efac; background: rgba(34, 197, 94, .14); }
[data-theme="dark"] .gd-stock.low { color: #fcd34d; background: rgba(217, 119, 6, .16); }
[data-theme="dark"] .gd-stock.out { color: #fca5a5; background: rgba(248, 113, 113, .14); }
.gd-pub { display: inline-flex; align-items: center; gap: 4px; font-size: 9.2px; font-weight: 700; color: #15803d; }
.gd-pub::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #22c55e; }
[data-theme="dark"] .gd-pub { color: #86efac; }
.gd-actions { display: flex; gap: 4px; }
.gd-icon {
  width: 25px; height: 25px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  color: var(--muted); cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.gd-icon .ic { width: 12px; height: 12px; }
.gd-icon:hover { color: var(--blue); border-color: var(--blue-pale); background: var(--blue-light); }
.gd-icon.gd-trash:hover { color: var(--gd-red); border-color: rgba(220, 38, 38, .25); background: rgba(220, 38, 38, .06); }
.gd-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 14px; border-top: 1px solid var(--gd-line);
  font-size: 9.2px; color: var(--muted);
}
.gd-flash td { animation: gdFlash 1.3s ease; }
@keyframes gdFlash {
  0%, 40% { background: rgba(22, 163, 74, .14); }
  100% { background: transparent; }
}

/* ---------- Trash / history ---------- */
.gd-viewhead { display: flex; align-items: baseline; gap: 8px; padding: 11px 14px 4px; flex-wrap: wrap; }
.gd-viewhead h3 { display: flex; align-items: center; gap: 5px; font-size: 11.8px; font-weight: 900; }
.gd-viewhead h3 .ic { width: 14px; height: 14px; color: var(--blue); }
.gd-chipnote { margin-inline-start: auto; font-size: 9.2px; color: var(--muted); }
.gd-mini-list { display: flex; flex-direction: column; gap: 6px; padding: 6px 12px 12px; }
.gd-mini {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border: 1px solid var(--gd-line); border-radius: 11px;
  background: var(--surface); font-size: 10px;
}
.gd-mini-main { flex: 1; min-width: 0; }
.gd-mini-main b { display: block; font-size: 10.4px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-mini-main small { display: block; font-size: 8.8px; color: var(--muted); }
.gd-mini-btn {
  flex: none; height: 26px; padding: 0 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit; font-size: 9.2px; font-weight: 800; color: var(--blue);
  background: var(--blue-light); border: 1px solid var(--blue-pale); border-radius: 7px; cursor: pointer;
}
.gd-mini-btn .ic { width: 11px; height: 11px; }
.gd-mini-btn:hover { background: var(--blue-pale); }
.gd-h-chg { display: inline-flex; align-items: center; gap: 4px; direction: rtl; font-size: 9.4px; white-space: nowrap; }
.gd-h-chg s { color: var(--muted); }
.gd-h-chg b { color: var(--gd-green); }
.gd-h-kind { flex: none; font-size: 8.2px; font-weight: 800; border-radius: 999px; padding: 1px 6px; color: #6d28d9; background: #ede9fe; }
[data-theme="dark"] .gd-h-kind { color: #c4b5fd; background: rgba(124, 58, 237, .2); }
.gd-h-time { flex: none; font-size: 8.8px; color: var(--muted); direction: ltr; }
.gd-empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 26px 18px; text-align: center;
  font-size: 10.2px; line-height: 1.8; color: var(--muted);
}
.gd-empty .ic { width: 28px; height: 28px; opacity: .45; }

/* ---------- Modal & toast ---------- */
.gd-modal {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center; padding: 14px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  animation: gdFade .2s ease both;
}
@keyframes gdFade { from { opacity: 0; } to { opacity: 1; } }
.gd-modal-card {
  width: min(420px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(2, 6, 23, .5);
  overflow: hidden; animation: gdPop .24s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes gdPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.gd-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--gd-line); }
.gd-modal-head h4 { font-size: 11.8px; font-weight: 900; }
.gd-modal-x { width: 24px; height: 24px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; }
.gd-modal-x:hover { background: var(--surface-2); }
.gd-modal-x .ic { width: 13px; height: 13px; }
.gd-modal-body { padding: 10px 12px; max-height: 42vh; overflow: auto; }
.gd-modal-sum { font-size: 10px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.gd-pv-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  padding: 5px 2px; border-bottom: 1px dashed var(--gd-line); font-size: 10px;
}
.gd-pv-row:last-child { border-bottom: 0; }
.gd-pv-row b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-pv-row s { color: var(--muted); font-size: 9.4px; }
.gd-pv-row em { font-style: normal; font-weight: 800; color: var(--gd-green); font-size: 10px; }
.gd-modal-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--gd-line); }
.gd-toast {
  position: absolute; left: 50%; bottom: 12px; z-index: 40;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: #0f172a; box-shadow: 0 10px 24px -10px rgba(2, 6, 23, .6);
  animation: gdToast .3s ease both;
}
.gd-toast .ic { width: 12px; height: 12px; color: #4ade80; }
[data-theme="dark"] .gd-toast { background: #1e293b; border: 1px solid rgba(148, 163, 184, .2); }
@keyframes gdToast { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Coach ---------- */
.gd-coach {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(124, 58, 237, .05));
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 16px;
  overflow: hidden;
}
[data-theme="dark"] .gd-coach {
  background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(124, 58, 237, .08));
  border-color: rgba(96, 165, 250, .26);
}
.gd-coach::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2.5px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, transparent 85%);
  opacity: .55;
}
.gd-coach-main { min-width: 0; }
.gd-coach-kicker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gd-coach-tag {
  font-size: 8.6px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 999px; padding: 2px 8px;
}
.gd-coach.is-auto .gd-coach-tag { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.gd-coach-name { font-size: 9.8px; font-weight: 800; color: var(--blue-dark); }
[data-theme="dark"] .gd-coach-name { color: #93c5fd; }
.gd-dots { display: inline-flex; gap: 3px; margin-inline-start: 2px; }
.gd-dots i { width: 13px; height: 4px; border-radius: 999px; background: rgba(37, 99, 235, .18); transition: background .25s, width .25s; }
.gd-dots i.on { background: var(--blue); width: 20px; }
.gd-inst { font-size: 14px; font-weight: 900; line-height: 1.75; margin: 6px 0 1px; letter-spacing: -.15px; }
.gd-sub { font-size: 10.2px; line-height: 1.8; color: var(--muted); }
.gd-coach.is-done .gd-inst { color: var(--gd-green); }
.gd-coach-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.gd-btn-ghost {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 9px;
  font-family: inherit; font-size: 9.8px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.gd-btn-ghost:hover { color: var(--blue); border-color: var(--blue-pale); }
.gd-btn-ghost .ic, .gd-btn-primary .ic { width: 12px; height: 12px; }
.gd-btn-primary {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  font-family: inherit; font-size: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: 0; border-radius: 9px; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .9);
  animation: gdNudge 1.8s ease-in-out infinite;
}
@keyframes gdNudge { 50% { transform: translateY(-2px); } }
.gd-coach.is-done { border-color: rgba(22, 163, 74, .3); background: linear-gradient(135deg, rgba(22, 163, 74, .08), rgba(37, 99, 235, .04)); }

/* ---------- Spotlight ---------- */
.gd-hot {
  position: relative; z-index: 4;
  outline: 2px solid #2563eb !important; outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), 0 0 0 8px rgba(37, 99, 235, .06) !important;
  border-radius: 7px;
  animation: gdPulse 1.7s ease-in-out infinite;
}
[data-theme="dark"] .gd-hot { outline-color: #60a5fa !important; box-shadow: 0 0 0 4px rgba(96, 165, 250, .2) !important; }
@keyframes gdPulse {
  50% { outline-offset: 4px; box-shadow: 0 0 0 7px rgba(37, 99, 235, .08), 0 0 0 12px rgba(37, 99, 235, .03) !important; }
}

/* ---------- Product editor (attributes + gallery) ---------- */
.gd-editor-card { width: min(470px, 100%); }
.gd-editor-body { display: flex; flex-direction: column; gap: 11px; max-height: 58vh; }
.gd-ed-top { display: flex; gap: 10px; align-items: flex-start; }
.gd-ed-cover {
  position: relative; flex: none; width: 106px; height: 106px;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--gd-line);
}
.gd-ed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-ed-cover em {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 3px 0; text-align: center;
  font-style: normal; font-size: 8.2px; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(15, 23, 42, .72), rgba(15, 23, 42, .1));
}
.gd-ed-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gd-ed-label { font-size: 9.4px; font-weight: 800; color: var(--muted); }
.gd-ed-thumbs { display: flex; gap: 6px; }
.gd-ed-thumb {
  width: 48px; height: 48px; padding: 0; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid var(--gd-line); border-radius: 9px;
  transition: outline-color .15s, transform .15s;
}
.gd-ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-ed-thumb:hover { transform: translateY(-1px); }
.gd-ed-thumb.is-on { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.gd-ed-note { font-size: 8.6px; line-height: 1.6; color: var(--muted); }
.gd-ed-attrs { display: flex; flex-direction: column; gap: 6px; }
.gd-ed-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.gd-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.2px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; color: var(--blue-dark);
  background: var(--blue-light); border: 1px solid var(--blue-pale);
}
[data-theme="dark"] .gd-chip { color: #bfdbfe; background: rgba(37, 99, 235, .18); border-color: rgba(96, 165, 250, .3); }
.gd-chip.gd-chip--new { animation: gdChipIn .3s ease both; }
@keyframes gdChipIn { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
.gd-ed-add { display: flex; gap: 6px; }
.gd-ed-input {
  flex: 1; min-width: 0; height: 31px; padding: 0 9px;
  font-family: inherit; font-size: 10.4px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.gd-ed-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.gd-ed-add .btn { height: 31px; font-size: 9.8px; padding: 0 10px; }
.gd-h-chg--txt b { color: var(--blue); }
.gd-ed-live { display: none; }

/* ---------- More capabilities ---------- */
.gd-more {
  margin-top: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 15px 17px;
  box-shadow: var(--shadow-sm);
}
.gd-more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 11px; }
.gd-more-head h3 { font-size: 13px; font-weight: 900; }
.gd-more-head p { margin-top: 3px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.gd-more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 10.4px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.gd-more-link .ic { width: 12px; height: 12px; }
.gd-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.gd-more-card {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--gd-line); border-radius: 11px;
  background: linear-gradient(180deg, var(--gd-soft), transparent 80%);
}
.gd-more-ic { flex: none; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); }
.gd-more-ic .ic { width: 14px; height: 14px; }
.gd-more-card b { display: block; font-size: 10.2px; font-weight: 900; line-height: 1.5; }
.gd-more-card p { margin-top: 2px; font-size: 9.2px; line-height: 1.7; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .gd-shell { grid-template-columns: 252px minmax(0, 1fr); }
  .gd-item-tx i { display: none; }
  .gd-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .gd-ed-live {
    display: block; padding: 6px 12px;
    font-size: 10.4px; font-weight: 700; line-height: 1.7;
    color: var(--blue-dark); background: rgba(37, 99, 235, .07);
    border-bottom: 1px solid var(--gd-line);
  }
  [data-theme="dark"] .gd-ed-live { color: #bfdbfe; background: rgba(37, 99, 235, .14); }
  .gd-shell { grid-template-columns: 1fr; }
  .gd-rail { position: static; padding: 11px; }
  .gd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .gd-item { padding: 7px; }
  .gd-rail-note { display: none; }
  .gd-main { gap: 9px; }
  .gd-coach { order: -1; }
  .gd-coach-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .gd-coach-actions button { justify-content: center; }
}
@media (max-width: 680px) {
  .gd-app { min-height: 350px; }
  .gd-list {
    display: flex; flex-direction: row; gap: 6px;
    overflow-x: auto; overflow-y: hidden;
    width: 100%; max-width: 100%;
    padding-bottom: 2px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent);
  }
  .gd-list::-webkit-scrollbar { display: none; }
  .gd-item { flex: 0 0 auto; width: auto; padding: 6px 9px; gap: 6px; }
  .gd-item-ic { width: 26px; height: 26px; }
  .gd-item-ic .ic { width: 14px; height: 14px; }
  .gd-item-tx b { font-size: 10.8px; }
  .gd-tag { width: 7px; height: 7px; padding: 0; font-size: 0; border-radius: 50%; background: #2563eb; }
  .gd-tag--auto { background: #7c3aed; }
  .gd-tag .ic { display: none; }
  .gd-rail { position: static; padding: 11px; }
  .gd-appbar { padding: 8px 10px; }
  .gd-tabs { padding: 0 6px; }
  .gd-tab { padding: 8px 8px 7px; font-size: 10.4px; }
  .gd-hintbar { display: none; }
  .gd-table { min-width: 520px; }
  .gd-col-status { display: none; }
  .gd-price { font-size: 10.4px; }
  .gd-coach { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .gd-inst { font-size: 12.6px; margin-top: 5px; }
  .gd-sub { font-size: 9.6px; }
  .gd-coach-actions { flex-direction: row; }
  .gd-coach-actions button { flex: 1; }
  .gd-modal-card { border-radius: 12px; }
  .gd-editor-body { max-height: 52vh; gap: 9px; }
  .gd-ed-cover { width: 84px; height: 84px; }
  .gd-ed-thumb { width: 42px; height: 42px; }
  .gd-ed-note { display: none; }
  .gd-more { padding: 13px; }
  .gd-more-head { align-items: flex-start; }
  .gd-more-grid { grid-template-columns: 1fr; }
  .gd-more-card { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-hot, .gd-btn-primary, .gd-live i { animation: none; }
}
