/* =============================================================================
   laris-tracker.css — shared by Site A (laris-app) and Site B (gpt-app).

   Same contract as daily-spin-wheel.css: every selector is namespaced .ltk-*,
   there is NO :root block, and NO app design token is referenced. The two host
   apps disagree on both the names and the values of their tokens
   (A: --orange:#B5202A --border:#E5E7EB --r:12px
    B: --accent:#B5202A --line:#e5e5e5  --radius:24px)
   so anything that reached for var(--…) would render differently in each. All
   colors below are literal.

   The only per-site variance is density, driven by [data-site] on the module's
   own root. Those custom properties are module-owned and defined inside the
   module — they are not app tokens, so the boundary holds.

   Typography inherits: both hosts load Plus Jakarta Sans via /fonts/laris-fonts.css.
   ============================================================================= */

.ltk-root {
  --ltk-r: 12px;
  --ltk-pad: 18px;
  --ltk-gap: 12px;
  font-family: inherit;
  color: #1A1A1A;
  -webkit-text-size-adjust: 100%;
}
.ltk-root[data-site="b"] {
  --ltk-r: 18px;
  --ltk-pad: 20px;
  --ltk-gap: 14px;
}

.ltk-root *,
.ltk-root *::before,
.ltk-root *::after { box-sizing: border-box; }

.ltk-hide { display: none !important; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.ltk-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.ltk-head-main { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.ltk-head-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; background: #FEE2E2; color: #B5202A;
}
.ltk-head-ico--mascot { background: #FFF5F5; }
.ltk-head-ico--mascot img { width: 20px; height: 20px; display: block; }
.ltk-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.01em; }
.ltk-sub { font-size: .78rem; color: #6B7280; margin: 0; line-height: 1.45; }
.ltk-head-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.ltk-head-actions .ltk-btn {
  display: inline-flex; align-items: center; gap: 6px;
}

.ltk-btn {
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 8px 16px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
  line-height: 1.2;
}
.ltk-btn:disabled { opacity: .5; cursor: not-allowed; }
.ltk-btn--primary { background: #B5202A; color: #fff; }
.ltk-btn--primary:hover:not(:disabled) { background: #8E191F; }
.ltk-btn--ghost { background: #fff; color: #374151; border-color: #E5E7EB; }
.ltk-btn--ghost:hover:not(:disabled) { background: #F9FAFB; border-color: #D1D5DB; }

.ltk-link {
  font: inherit; font-size: .75rem; font-weight: 700; color: #B5202A;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.ltk-link:hover { color: #8E191F; }

.ltk-input {
  font: inherit; font-size: .82rem; width: 100%;
  border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 10px 12px;
  background: #fff; color: #1A1A1A;
}
.ltk-input:focus { outline: none; border-color: #B5202A; }
.ltk-input::placeholder { color: #9CA3AF; }
.ltk-hint { font-size: .7rem; color: #9CA3AF; line-height: 1.5; margin: 8px 0 0; }

/* ── Strips (resumed / warn / stale) ───────────────────────────────────── */
.ltk-strip {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--ltk-r); padding: 12px 14px; margin-bottom: 14px;
  font-size: .78rem; line-height: 1.5;
}
.ltk-strip--resumed { background: #EAF7F0; border: 1px solid #A7D8BF; color: #14532D; }
.ltk-strip--warn    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.ltk-strip--stale   { background: #F3F4F6; border: 1px solid #E5E7EB; color: #4B5563; }
.ltk-strip-ico { flex-shrink: 0; line-height: 1; margin-top: 1px; }
.ltk-strip-body { flex: 1; min-width: 0; }
.ltk-strip-body b { display: block; margin-bottom: 2px; }
.ltk-strip-x {
  flex-shrink: 0; background: none; border: 0; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: inherit; opacity: .5; padding: 0 2px;
}
.ltk-strip-x:hover { opacity: 1; }

/* ── Chipbar (hidden — cards already name each product/toko) ──────────── */
.ltk-chipbar { display: none; }
.ltk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 999px;
  padding: 6px 12px; color: #374151; max-width: 100%;
}
.ltk-chip:hover { border-color: #B5202A; color: #B5202A; }
.ltk-chip-ico { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.ltk-chip-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltk-chip--store .ltk-chip-ico { border-radius: 50%; }
/* The empty-slot hook. Deliberately quiet — no badge, no dot, no modal. */
.ltk-chip--add {
  border-style: dashed; border-color: #D1D5DB; color: #9CA3AF; font-weight: 600;
}
.ltk-chip--add:hover { border-color: #B5202A; color: #B5202A; }

/* ── Screens ───────────────────────────────────────────────────────────── */
.ltk-screen { display: none; }
.ltk-screen.is-active { display: block; }

/* ── Setup ─────────────────────────────────────────────────────────────── */
.ltk-setup-hero { margin-bottom: 18px; }
.ltk-setup-hero h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; }
.ltk-setup-hero p { font-size: .82rem; color: #6B7280; line-height: 1.55; margin: 0; }

/* ── Setup wizard ──────────────────────────────────────────────────────── */
.ltk-setup-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ltk-steps {
  list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.ltk-setup-close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #E5E7EB; background: #fff; color: #6B7280;
  display: grid; place-items: center; cursor: pointer;
}
.ltk-setup-close:hover { background: #F3F4F6; color: #374151; }
.ltk-step { display: flex; align-items: center; gap: 9px; min-width: 0; position: relative; }
.ltk-step + .ltk-step::before {
  content: ''; position: absolute; left: -8px; top: 50%; width: 8px; height: 1px; background: #E5E7EB;
}
.ltk-step-n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 800;
  background: #F3F4F6; color: #9CA3AF; border: 1px solid #E5E7EB;
}
.ltk-step.is-current .ltk-step-n { background: #B5202A; color: #fff; border-color: #B5202A; }
.ltk-step.is-done .ltk-step-n { background: #EAF7F0; color: #1A7A46; border-color: #A7D8BF; }
.ltk-step-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ltk-step-txt b { font-size: .78rem; font-weight: 700; color: #9CA3AF; }
.ltk-step-txt span { font-size: .68rem; color: #9CA3AF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltk-step.is-current .ltk-step-txt b { color: #1A1A1A; }
.ltk-step.is-done .ltk-step-txt b { color: #374151; }

.ltk-wizard { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .ltk-wizard { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; } }
.ltk-wizmain {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--ltk-r); padding: var(--ltk-pad);
}
.ltk-stephead { margin-bottom: 16px; }
.ltk-stephead h3 { font-size: 1rem; font-weight: 800; margin: 0 0 5px; }
.ltk-stephead h3 em { font-style: normal; font-weight: 600; color: #9CA3AF; font-size: .82rem; }
.ltk-stephead p { font-size: .8rem; color: #6B7280; line-height: 1.55; margin: 0; }

.ltk-tips {
  font-size: .74rem; color: #92400E; line-height: 1.5; margin: 14px 0 0;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 10px 12px;
}
.ltk-tips--warn { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
/* Marks the row we pre-filled from the product they came from, so it never
   looks like the app invented a keyword on its own. */
.ltk-seedtag {
  display: inline-block; margin-left: 7px; font-size: .62rem; font-weight: 700;
  color: #8E191F; background: #F9EAE4; border-radius: 999px; padding: 2px 7px;
  vertical-align: middle;
}

.ltk-wizfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #F3F4F6;
}

/* ── Metric picker ─────────────────────────────────────────────────────── */
.ltk-mgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .ltk-mgrid { grid-template-columns: 1fr 1fr; } }
.ltk-mcard {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  font: inherit; cursor: pointer; position: relative;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: var(--ltk-r);
  padding: 13px 14px; transition: border-color .15s ease, background .15s ease;
}
.ltk-mcard:hover { border-color: #D1D5DB; }
.ltk-mcard.is-on { border-color: #B5202A; background: #FFF8F7; }
.ltk-mcard-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: #F3F4F6; color: #6B7280;
}
.ltk-mcard-ico svg { width: 16px; height: 16px; }
.ltk-mcard.is-on .ltk-mcard-ico { background: #F9EAE4; color: #B5202A; }
.ltk-mcard-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 18px; }
.ltk-mcard-txt b { font-size: .82rem; font-weight: 700; }
.ltk-mcard.is-on .ltk-mcard-txt b { color: #8E191F; }
.ltk-mcard-txt span { font-size: .71rem; color: #6B7280; line-height: 1.4; }
.ltk-mcard-tick {
  position: absolute; top: 11px; right: 12px; width: 18px; height: 18px;
  border-radius: 5px; display: grid; place-items: center;
  font-size: .68rem; font-weight: 800;
  background: #fff; border: 1.5px solid #E5E7EB; color: transparent;
}
.ltk-mcard.is-on .ltk-mcard-tick { background: #B5202A; border-color: #B5202A; color: #fff; }

/* ── Seed-shop upsell ──────────────────────────────────────────────────── */
.ltk-shopoffer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
  background: #F9EAE4; border: 1px solid #F3C6C0; border-radius: var(--ltk-r); padding: 13px 14px;
}
.ltk-shopoffer-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ltk-shopoffer-main b { display: block; font-size: .84rem; font-weight: 700; }
.ltk-shopoffer-main span { display: block; font-size: .72rem; color: #8E191F; margin-top: 1px; }

/* ── Preview rail ──────────────────────────────────────────────────────── */
.ltk-preview {
  background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  padding: var(--ltk-pad); position: sticky; top: 12px;
}
.ltk-pvhead { font-size: .82rem; font-weight: 800; margin-bottom: 12px; }
.ltk-pvlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ltk-pvrow { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ltk-pv-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; overflow: hidden;
  display: grid; place-items: center; background: #F3F4F6;
}
.ltk-pv-ico img { width: 100%; height: 100%; object-fit: cover; }
.ltk-pv-ico--letter { font-size: .78rem; font-weight: 800; color: #6B7280; }
.ltk-pvname {
  flex: 1; min-width: 0; font-size: .78rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ltk-pvname em { display: block; font-style: normal; font-size: .68rem; font-weight: 600; color: #9CA3AF; }
.ltk-pvchips { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.ltk-pvchip {
  font-size: .62rem; font-weight: 700; color: #6B7280;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 999px; padding: 2px 8px;
}
.ltk-pvchip--more { color: #B5202A; border-color: #F3C6C0; background: #F9EAE4; }
.ltk-pvempty { font-size: .76rem; color: #9CA3AF; line-height: 1.5; margin: 0; }
.ltk-pvfoot { font-size: .7rem; color: #9CA3AF; line-height: 1.5; margin: 14px 0 0; }

@media (max-width: 620px) {
  .ltk-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .ltk-step-txt span { display: none; }
  .ltk-step-txt b { font-size: .68rem; }
  .ltk-step { gap: 6px; }
}

/* ── What daily tracking actually gives you ────────────────────────────── */
.ltk-promise {
  list-style: none; margin: 0 0 12px; padding: 14px;
  display: grid; gap: 10px; grid-template-columns: 1fr;
  background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
}
.ltk-promise-item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.ltk-promise-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: #F9EAE4; color: #B5202A;
}
.ltk-promise-ico svg { width: 16px; height: 16px; }
.ltk-promise-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ltk-promise-txt b { font-size: .8rem; font-weight: 700; }
.ltk-promise-txt span { font-size: .72rem; color: #6B7280; line-height: 1.45; }
.ltk-promise-foot {
  font-size: .74rem; color: #6B7280; line-height: 1.5; margin: 0 0 20px;
}
@media (min-width: 620px) { .ltk-promise { grid-template-columns: 1fr 1fr; gap: 12px 16px; } }

/* ── Slots ─────────────────────────────────────────────────────────────── */
.ltk-slotsec { margin-bottom: 18px; }
.ltk-slotsec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; font-size: .8rem; font-weight: 800;
}
.ltk-slotsec-head em { font-style: normal; font-weight: 600; color: #9CA3AF; font-size: .74rem; }
.ltk-count { font-size: .74rem; font-weight: 700; color: #6B7280; }

.ltk-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ltk-slot {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--ltk-r); padding: 11px 13px; font-size: .8rem;
}
.ltk-slot--filled { background: #fff; border: 1px solid #E5E7EB; }
.ltk-slot--empty {
  background: transparent; border: 1px dashed #D1D5DB; color: #9CA3AF; cursor: pointer;
}
.ltk-slot--empty:hover { border-color: #B5202A; color: #B5202A; }
.ltk-slot--err { border-color: #FCA5A5; background: #FEF2F2; }
.ltk-slot-ico { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; object-fit: cover; }
.ltk-slot-plus { width: 26px; text-align: center; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.ltk-slot-body { flex: 1; min-width: 0; }
.ltk-slot-kw { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltk-slot-meta { display: block; font-size: .7rem; color: #9CA3AF; margin-top: 2px; }
.ltk-slot--err .ltk-slot-meta { color: #B91C1C; }
.ltk-slot-x {
  flex-shrink: 0; background: none; border: 0; cursor: pointer; color: #9CA3AF;
  font-size: 1.15rem; line-height: 1; padding: 0 4px;
}
.ltk-slot-x:hover { color: #B91C1C; }

/* ── Seeded keyword step: card grid + picker ─────────────────────────────
   Product card + outlined "+" slots (see stepKeywordPickerHtml). Grid, not a
   list, since the point is a product-card visual language — the same shape
   ltk-disc-card already uses for the picker's own candidate cards below. */
.ltk-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 4px;
}
.ltk-pick-slot {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  gap: 6px; text-align: left; border-radius: var(--ltk-r);
  padding: 10px; font: inherit;
}
.ltk-pick-slot--filled { background: #fff; border: 1px solid #E5E7EB; }
.ltk-pick-slot--empty {
  background: transparent; border: 1px dashed #D1D5DB; color: #9CA3AF; cursor: pointer;
  align-items: center; justify-content: center; text-align: center; min-height: 148px;
}
.ltk-pick-slot--empty:hover { border-color: #B5202A; color: #B5202A; }
.ltk-pick-slot-media {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: #F3F4F6;
}
.ltk-pick-slot-media img,
.ltk-pick-slot-media .ltk-pick-slot-ico {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ltk-pick-slot-media--cat {
  display: grid; place-items: center;
}
.ltk-pick-slot-media--cat .ltk-pick-slot-ico {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain;
}
.ltk-pick-slot-media--letter {
  display: grid; place-items: center; font-size: 1.35rem; font-weight: 800; color: #6B7280;
}
.ltk-pick-slot-ico { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.ltk-pick-slot-name {
  font-size: .74rem; font-weight: 700; color: #1A1A1A; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ltk-pick-slot-tag {
  font-size: .6rem; font-weight: 700; color: #B5202A; background: #FEF2F2;
  border-radius: 999px; padding: 1px 8px; align-self: flex-start;
}
.ltk-pick-slot-x {
  position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.92); border: 0;
  cursor: pointer; color: #6B7280; font-size: 1rem; line-height: 1; padding: 4px 6px;
  border-radius: 999px; box-shadow: 0 1px 3px rgba(16,24,40,.12);
}
.ltk-pick-slot-x:hover { color: #B91C1C; }
.ltk-pick-slot-plus { font-size: 1.4rem; line-height: 1; font-weight: 300; }
.ltk-pick-slot-add-lbl { font-size: .68rem; font-weight: 700; }

.ltk-picker-panel {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #F3F4F6;
}
.ltk-picker-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ltk-picker-head .ltk-input { flex: 1; min-width: 0; }
.ltk-picker-close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #E5E7EB; background: #fff; color: #6B7280;
  display: grid; place-items: center; cursor: pointer; font-size: 1rem; line-height: 1;
}
.ltk-picker-close:hover { background: #F3F4F6; color: #374151; }
.ltk-picker-hint { font-size: .7rem; color: #9CA3AF; margin: 0 0 10px; }

.ltk-storefind { position: relative; margin-bottom: 10px; }
.ltk-storebycat { margin-bottom: 10px; }
.ltk-storebycat-lbl { font-size: .72rem; font-weight: 700; color: #9CA3AF; margin-bottom: 6px; }
.ltk-storebycat .ltk-catsel { margin-left: 0; display: block; }
.ltk-storebycat .ltk-catsel .ltk-select { width: 100%; }
/* Same suggestion-list look as the name-search dropdown, but sits inline
   below the category select rather than floating over an input. */
.ltk-sug--static { position: static; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.ltk-store-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  box-shadow: 0 4px 16px rgba(0,0,0,.08); max-height: 240px; overflow-y: auto;
}
.ltk-store-opt {
  display: block; width: 100%; text-align: left; font: inherit; font-size: .78rem;
  background: none; border: 0; padding: 10px 13px; cursor: pointer; color: #374151;
}
.ltk-store-opt:hover { background: #F9FAFB; }
.ltk-store-opt-n { display: block; font-size: .7rem; color: #9CA3AF; margin-top: 2px; }

.ltk-commit { margin-top: 20px; }
.ltk-commit .ltk-btn--primary { width: 100%; padding: 13px 20px; font-size: .85rem; }
.ltk-commit-note { font-size: .74rem; color: #6B7280; text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* ── Collecting (the week-one screen) ──────────────────────────────────── */
.ltk-collect-hero {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
  border: 1px solid #FED7AA; border-radius: var(--ltk-r);
  padding: var(--ltk-pad); margin-bottom: 18px;
}
.ltk-collect-ico { flex-shrink: 0; color: #C9974B; line-height: 1; margin-top: 2px; }
.ltk-collect-hero h3 { font-size: .95rem; font-weight: 800; margin: 0 0 6px; color: #9A3412; }
.ltk-collect-hero p { font-size: .8rem; color: #92400E; line-height: 1.55; margin: 0; }

.ltk-baseline {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  padding: var(--ltk-pad); margin-bottom: 20px;
}
.ltk-baseline-head { margin-bottom: 12px; }
.ltk-baseline-head > span:first-child { display: block; font-size: .82rem; font-weight: 800; }
.ltk-baseline-note { display: block; font-size: .72rem; color: #9CA3AF; margin-top: 3px; line-height: 1.45; }
.ltk-baseline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ltk-baseline-row {
  display: flex; align-items: center; gap: 11px;
  padding-top: 10px; border-top: 1px solid #F3F4F6;
}
.ltk-baseline-row:first-child { padding-top: 0; border-top: 0; }
.ltk-baseline-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #F3F4F6; }
.ltk-baseline-main { flex: 1; min-width: 0; }
.ltk-baseline-kw { font-size: .82rem; font-weight: 700; }
.ltk-baseline-top {
  font-size: .72rem; color: #9CA3AF; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ltk-baseline-stats {
  flex-shrink: 0; text-align: right; font-size: .72rem; color: #6B7280; line-height: 1.5;
}
.ltk-baseline-stats span { display: block; }
.ltk-baseline-stats b { color: #1A1A1A; }

/* ── Rollup (the Robinhood table) ──────────────────────────────────────── */
.ltk-rollup { display: flex; flex-direction: column; gap: 14px; }

.ltk-statstrip {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.ltk-stat {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  background: #fff; padding: 13px 14px; min-width: 0;
}
.ltk-stat-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
}
.ltk-stat-ico svg { width: 15px; height: 15px; }
.ltk-stat-ico--green  { background: #DCFCE7; color: #16A34A; }
.ltk-stat-ico--blue   { background: #DBEAFE; color: #2563EB; }
.ltk-stat-ico--amber  { background: #FEF3C7; color: #D97706; }
.ltk-stat-ico--violet { background: #EDE9FE; color: #7C3AED; }
.ltk-stat-ico--red    { background: #FEE2E2; color: #DC2626; }
.ltk-stat-ico--rose   { background: #FFE4E6; color: #E11D48; }
.ltk-stat-body { min-width: 0; flex: 1; }
.ltk-stat-val {
  font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltk-stat-lbl { font-size: .7rem; color: #6B7280; font-weight: 600; margin-top: 2px; }
.ltk-stat-d {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-size: .66rem; color: #9CA3AF;
}
.ltk-stat-d > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Delta chip — one look for the stat strip and every table cell. */
.ltk-d {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .66rem; font-weight: 700; white-space: nowrap;
}
.ltk-d svg {
  width: 9px; height: 9px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.ltk-d--up    { color: #16A34A; }
.ltk-d--down  { color: #DC2626; }
.ltk-d--flat  { color: #9CA3AF; }
.ltk-d--new   { color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 1px 7px; }

.ltk-panel {
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  background: #fff; overflow: hidden;
}
.ltk-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px var(--ltk-pad); border-bottom: 1px solid #F3F4F6;
  flex-wrap: wrap;
}
.ltk-panel-title {
  font-size: .88rem; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.ltk-count-pill {
  font-size: .68rem; font-weight: 700; color: #6B7280;
  background: #F3F4F6; border-radius: 999px; padding: 2px 8px;
}

.ltk-select {
  font: inherit; font-size: .72rem; font-weight: 600; color: #374151;
  border: 1px solid #E5E7EB; border-radius: 999px;
  padding: 7px 28px 7px 12px; background: #fff; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 8l3-3.5' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px;
}
.ltk-select:hover { border-color: #D1D5DB; }
/* Label text is for screen readers; the select already says what it does. */
.ltk-sr { display: inline-flex; font-size: 0; }
.ltk-winsel { display: inline-flex; }

.ltk-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ltk-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.ltk-table thead th {
  text-align: right; font-size: .64rem; font-weight: 700; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 12px; border-bottom: 1px solid #F3F4F6; white-space: nowrap;
}
.ltk-table thead th.ltk-th-name { text-align: left; padding-left: var(--ltk-pad); }
.ltk-table thead th:last-child { width: 34px; }
.ltk-row { border-bottom: 1px solid #F9FAFB; }
.ltk-row:last-child { border-bottom: 0; }
.ltk-row:hover { background: #FAFAFA; }
.ltk-rowhead {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 17px 12px 17px var(--ltk-pad); font-weight: 500; min-width: 210px;
}
/* 81px (~75% larger than the prior 46px) so product photos read at a glance. */
.ltk-row-ico {
  flex-shrink: 0; width: 81px; height: 81px; border-radius: 14px;
  overflow: hidden; display: grid; place-items: center; background: #F3F4F6;
}
.ltk-row-ico img { width: 100%; height: 100%; object-fit: cover; }
.ltk-row-ico--letter {
  font-size: 1.15rem; font-weight: 800; color: #6B7280; background: #F3F4F6;
}
/* Missing-art fallback for the icon classes that are otherwise styled as the
   <img> itself — catIconHtml() swaps the element to a letter-bearing span, so
   without these the letter renders with no tile behind it. */
.ltk-chip-ico--letter,
.ltk-slot-ico--letter,
.ltk-pick-slot-ico--letter {
  display: grid; place-items: center; background: #F3F4F6;
  font-weight: 800; color: #6B7280; line-height: 1;
}
.ltk-chip-ico--letter { font-size: .6rem; }
.ltk-slot-ico--letter { font-size: .72rem; }
.ltk-pick-slot-ico--letter { font-size: 1rem; }
.ltk-rowhead-txt { min-width: 0; }
.ltk-rowhead-name {
  display: block; font-size: .84rem; font-weight: 700; color: #1A1A1A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px;
}
.ltk-rowhead-meta { display: block; font-size: .66rem; color: #9CA3AF; margin-top: 2px; }
.ltk-row { cursor: pointer; }
.ltk-row:focus-visible { outline: 2px solid #B5202A; outline-offset: -2px; }
.ltk-rowhead-chev {
  flex-shrink: 0; margin-left: auto; color: #C4C4C4; transition: transform .15s ease;
}
.ltk-row.is-expanded .ltk-rowhead-chev { transform: rotate(180deg); color: #6B7280; }
.ltk-row-detail td { padding: 0 12px 14px var(--ltk-pad); border-bottom: 1px solid #F9FAFB; }
.ltk-row-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px;
  background: #FAFAFA; border-radius: 10px; padding: 12px 14px;
}
.ltk-row-detail-item { display: flex; flex-direction: column; gap: 3px; }
.ltk-row-detail-lbl { font-size: .64rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: .03em; }
.ltk-row-detail-val { font-size: .8rem; font-weight: 700; color: #1A1A1A; display: flex; align-items: center; gap: 6px; }
.ltk-row-history {
  margin-top: 12px; background: #FAFAFA; border-radius: 10px; padding: 12px 14px;
}
.ltk-row-history-title {
  font-size: .64rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase;
  letter-spacing: .03em; margin: 0 0 8px;
}
.ltk-row-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ltk-row-history-list li {
  font-size: .78rem; font-weight: 600; color: #374151; line-height: 1.35;
}
.ltk-row-history-list li.ltk-row-history-empty { color: #9CA3AF; font-weight: 500; }
.ltk-num {
  text-align: right; padding: 17px 12px; white-space: nowrap; vertical-align: middle;
}
.ltk-num b { display: block; font-size: .8rem; font-weight: 700; color: #1A1A1A; }
.ltk-num .ltk-d { margin-top: 3px; }
.ltk-sparkcell { padding: 17px 12px; text-align: right; width: 84px; }
.ltk-spark { width: 68px; height: 24px; display: inline-block; vertical-align: middle; }
.ltk-spark-empty { font-size: .64rem; color: #C4C4C4; white-space: nowrap; }

.ltk-kebabcell { position: relative; padding: 13px 10px 13px 0; width: 34px; }
.ltk-kebab {
  width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: #9CA3AF;
}
.ltk-kebab:hover { background: #F3F4F6; color: #374151; }
.ltk-kebab svg { width: 15px; height: 15px; }
.ltk-menu {
  position: absolute; right: 8px; top: 38px; z-index: 20; min-width: 168px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .12); padding: 5px; display: grid; gap: 1px;
}
.ltk-menu button {
  font: inherit; font-size: .74rem; font-weight: 600; color: #374151;
  text-align: left; background: transparent; border: 0; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; white-space: nowrap;
}
.ltk-menu button:hover { background: #F3F4F6; }
.ltk-menu .ltk-menu-danger { color: #DC2626; }
.ltk-menu .ltk-menu-danger:hover { background: #FEF2F2; }

.ltk-addrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border: 0; border-top: 1px dashed #E5E7EB;
  background: #fff; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 700; color: #B5202A;
}
.ltk-addrow:hover { background: #FFF7F7; }
.ltk-addrow em { font-style: normal; font-weight: 600; color: #9CA3AF; font-size: .7rem; }

.ltk-insights { display: flex; flex-direction: column; gap: 10px; }
.ltk-insights-head { font-size: .8rem; font-weight: 800; letter-spacing: -.01em; }
.ltk-insights-head span { font-weight: 600; color: #9CA3AF; font-size: .72rem; }
.ltk-insight-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.ltk-insight {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  background: #fff; padding: 13px 14px;
}
.ltk-insight-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
}
.ltk-insight-ico svg { width: 14px; height: 14px; }
.ltk-insight--green .ltk-insight-ico { background: #DCFCE7; color: #16A34A; }
.ltk-insight--red   .ltk-insight-ico { background: #FEE2E2; color: #DC2626; }
.ltk-insight--blue  .ltk-insight-ico { background: #DBEAFE; color: #2563EB; }
.ltk-insight--amber .ltk-insight-ico { background: #FEF3C7; color: #D97706; }
.ltk-insight-title { font-size: .76rem; font-weight: 700; line-height: 1.35; }
.ltk-insight-body { font-size: .7rem; color: #6B7280; margin-top: 3px; line-height: 1.45; }

.ltk-foot { font-size: .7rem; color: #9CA3AF; margin: 0; line-height: 1.55; }

.ltk-empty { text-align: center; padding: 40px 20px; }
.ltk-empty h3 { font-size: .95rem; font-weight: 800; margin: 0 0 6px; }
.ltk-empty p { font-size: .78rem; color: #6B7280; margin: 0 0 16px; line-height: 1.5; }

/* ── Product / store cards (all viewports) ──────────────────────────────
   Desktop used to keep a dense table; both now share this stacked card
   list so omset / harga / unit read the same way on a wide screen. The
   table markup is still rendered (hidden) so row-expand JS can stay. */
.ltk-tablewrap { display: none; }
.ltk-addrow { display: none; }
.ltk-chipbar { display: none; }
.ltk-cards { display: flex; flex-direction: column; gap: 12px; }
.ltk-card {
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r); padding: 14px var(--ltk-pad);
  background: #fff;
}
.ltk-card-top {
  display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer;
}
.ltk-card-top .ltk-row-ico { width: 52px; height: 52px; border-radius: 12px; }
.ltk-card-head { min-width: 0; flex: 1; }
.ltk-card-name {
  display: block; font-size: .86rem; font-weight: 700; color: #1A1A1A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltk-card-meta {
  display: block; font-size: .7rem; color: #9CA3AF; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltk-card-top .ltk-kebab { flex-shrink: 0; }
.ltk-menu--card { top: 34px; right: 0; }
.ltk-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.ltk-mstat {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 10px;
}
.ltk-mstat-lbl {
  font-size: .62rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase;
  letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltk-mstat-val { font-size: .82rem; font-weight: 700; color: #1A1A1A; }
.ltk-mstat-spark { width: 100%; max-width: 60px; height: 20px; display: block; margin-top: 2px; }
.ltk-card-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.ltk-card-detail-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: .74rem; font-weight: 700; color: #B5202A;
  background: #FEF2F2; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.ltk-card-detail-btn:hover { background: #FEE2E2; }

.ltk-add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; width: 100%; min-height: 112px;
  border: 1.5px dashed #D1D5DB; border-radius: var(--ltk-r);
  background: transparent; padding: 28px 14px; cursor: pointer; font: inherit;
}
.ltk-add-tile:hover { border-color: #B5202A; background: #FFFBFB; }
.ltk-add-tile-plus {
  font-size: 2.5rem; font-weight: 700; color: #9CA3AF; line-height: 1;
}
.ltk-add-tile:hover .ltk-add-tile-plus { color: #B5202A; }
.ltk-add-tile-head { font-size: .82rem; font-weight: 700; color: #6B7280; }
.ltk-add-tile-sub { font-size: .7rem; color: #9CA3AF; }
.ltk-add-tile-cta { display: none; }

/* ── "Lihat Detail" screen ────────────────────────────────────────────── */
.ltk-detail { padding: 4px 0; }
.ltk-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .78rem; font-weight: 700; color: #6B7280;
  background: none; border: 0; padding: 0 0 16px; cursor: pointer;
}
.ltk-detail-back:hover { color: #1A1A1A; }
.ltk-detail-head { display: flex; align-items: center; gap: 14px; }
.ltk-detail-head .ltk-row-ico { width: 64px; height: 64px; border-radius: 14px; }
.ltk-detail-head-txt { min-width: 0; }
.ltk-detail-name { font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.ltk-detail-meta { font-size: .78rem; color: #6B7280; margin: 4px 0 0; }
.ltk-detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 20px 0; border: 1px solid #E5E7EB; border-radius: var(--ltk-r); padding: 16px;
}
.ltk-detail-stats .ltk-mstat-val { font-size: 1.1rem; }
.ltk-detail-stats .ltk-mstat-spark { max-width: 100%; height: 28px; }
.ltk-detail-chart-wrap {
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r); padding: 16px; margin-bottom: 16px;
}
.ltk-detail-chart-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.ltk-chart-value { display: flex; align-items: center; gap: 8px; }
.ltk-chart-value-num { font-size: 1.15rem; font-weight: 800; color: #1A1A1A; }
.ltk-chart-toggles {
  display: flex; gap: 4px; background: #F3F4F6; border-radius: 999px; padding: 3px; width: fit-content;
}
.ltk-chart-toggle {
  font: inherit; font-size: .72rem; font-weight: 700; color: #6B7280;
  background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ltk-chart-toggle:hover { color: #374151; }
.ltk-chart-toggle.is-active { background: #fff; color: #1A1A1A; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ltk-detail-chart-canvaswrap { position: relative; }
.ltk-detail-chart { width: 100%; height: 120px; display: block; cursor: crosshair; }
.ltk-detail-chart-labels {
  position: relative; height: 16px; margin-top: 4px;
}
.ltk-chart-tick {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .64rem; font-weight: 600; color: #9CA3AF; white-space: nowrap;
}
.ltk-chart-tick--first { transform: translateX(0); }
.ltk-chart-tick--last { transform: translateX(-100%); }
.ltk-chart-scrub-date { font-size: .78rem; font-weight: 600; color: #6B7280; }
.ltk-chart-scrub-date em { font-style: normal; color: #9CA3AF; }
.ltk-chart-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
  font-size: .68rem; color: #9CA3AF;
}
.ltk-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ltk-chart-legend-item i { width: 16px; height: 0; flex-shrink: 0; }
.ltk-chart-legend-solid { border-top: 2px solid #9CA3AF; }
.ltk-chart-legend-dash { border-top: 2px dashed #9CA3AF; }
.ltk-detail-peers {
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r); padding: 16px; margin-top: 16px;
}
.ltk-detail-peers-title { font-size: .8rem; font-weight: 800; margin-bottom: 10px; }
.ltk-detail-peers-note { font-size: .78rem; color: #9CA3AF; margin: 0; }
.ltk-detail-peers-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ltk-detail-peers-table th {
  text-align: left; font-size: .64rem; font-weight: 700; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: .03em; padding: 0 8px 8px 0;
}
.ltk-detail-peers-table th:not(:first-child), .ltk-detail-peers-table td:not(:first-child) { text-align: right; }
.ltk-detail-peers-table td { padding: 8px 8px 8px 0; border-top: 1px solid #F3F4F6; font-weight: 600; color: #1A1A1A; }
.ltk-detail-peers-row { display: flex; align-items: center; gap: 8px; }
.ltk-detail-peers-img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #F3F4F6; flex-shrink: 0;
}

/* ── Detail listing picker (replaces Riwayat Perubahan) ───────────────── */
.ltk-listings {
  border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  padding: 12px 0 0; margin-top: 16px;
}
.ltk-listings-title { font-size: .8rem; font-weight: 800; padding: 0 16px 10px; }
.ltk-listings-scroll {
  max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-top: 1px solid #F3F4F6;
}
.ltk-listing-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; font: inherit; background: transparent; border: 0;
  border-bottom: 1px solid #F9FAFB; padding: 10px 16px; cursor: pointer;
}
.ltk-listing-row:last-child { border-bottom: 0; }
.ltk-listing-row:hover { background: #FAFAFA; }
.ltk-listing-row.is-active { background: #FEF2F2; }
.ltk-listing-row.is-active .ltk-listing-name,
.ltk-listing-row.is-active .ltk-listing-all { color: #B5202A; }
.ltk-listing-img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  background: #F3F4F6; flex-shrink: 0;
}
.ltk-listing-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ltk-listing-all { font-size: .78rem; font-weight: 800; color: #1A1A1A; }
.ltk-listing-name {
  display: block; font-size: .78rem; font-weight: 700; color: #1A1A1A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltk-listing-sub, .ltk-listing-meta {
  display: block; font-size: .68rem; color: #9CA3AF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Scope tabs (Keyword | Toko) ───────────────────────────────────────── */
.ltk-scopetabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  background: #F3F4F6; border-radius: 999px; padding: 3px; width: fit-content; max-width: 100%;
}
.ltk-scopetabs:empty { display: none; }
/* Site A already renders Keyword | Toko | Produk Dilacak in its own tab row,
   so the module's copy would be a second, conflicting control. Site B has no
   host row and relies on these. */
.ltk-root[data-site="a"] .ltk-scopetabs { display: none; }
.ltk-scopetab {
  font: inherit; font-size: .76rem; font-weight: 700; color: #6B7280;
  background: transparent; border: 0; border-radius: 999px;
  padding: 7px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.ltk-scopetab:hover { color: #374151; }
.ltk-scopetab.is-active { background: #fff; color: #1A1A1A; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ltk-scopetab-n {
  font-size: .64rem; font-weight: 700; color: #9CA3AF;
  background: #E5E7EB; border-radius: 999px; padding: 1px 6px;
}
.ltk-scopetab.is-active .ltk-scopetab-n { background: #F3F4F6; color: #6B7280; }

/* ── Typeahead suggestions ─────────────────────────────────────────────── */
.ltk-slot--type {
  align-items: stretch; padding: 0; border-style: dashed; background: #fff;
  cursor: pointer;
}
.ltk-slot--type .ltk-slot-plus { align-self: center; margin-left: 14px; }
.ltk-sug-hint { font-size: .68rem; color: #9CA3AF; padding: 2px 4px 8px; line-height: 1.4; }
.ltk-slot-typewrap { position: relative; flex: 1; min-width: 0; }
.ltk-slot-input {
  width: 100%; border: 0; background: transparent; padding: 14px 14px 14px 10px;
  font-size: .8rem;
}
.ltk-slot-input:focus { outline: 0; }
.ltk-sug {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 30;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .14);
  padding: 5px; display: grid; gap: 1px; max-height: 280px; overflow-y: auto;
}
.ltk-sug--cards {
  padding: 8px; max-height: 340px; min-width: min(100%, 320px);
}
.ltk-sug-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.ltk-sug-note { font-size: .72rem; color: #9CA3AF; padding: 9px 10px; line-height: 1.45; }
.ltk-sug-opt {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  font: inherit; text-align: left; background: transparent; border: 0;
  border-radius: 8px; padding: 8px 10px; cursor: pointer; width: 100%;
}
.ltk-sug-opt:hover { background: #F3F4F6; }
.ltk-sug-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
  font: inherit; text-align: left; background: #fff; border: 1px solid #E5E7EB;
  border-radius: 10px; padding: 8px; cursor: pointer; width: 100%; min-width: 0;
}
.ltk-sug-card:hover { border-color: #B5202A; background: #FFFBFB; }
.ltk-sug-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px;
  background: #F3F4F6; display: block;
}
.ltk-sug-kw { font-size: .78rem; font-weight: 700; color: #1A1A1A; }
.ltk-sug-card .ltk-sug-kw {
  font-size: .72rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ltk-sug-meta { font-size: .68rem; color: #9CA3AF; }
.ltk-sug-card .ltk-sug-meta { font-size: .64rem; }
.ltk-catsel { margin-left: auto; }

/* ── Discover fall-through (shared by collecting + quiet) ──────────────── */
.ltk-discover-head { margin-bottom: 12px; }
.ltk-discover-head h4 { font-size: .88rem; font-weight: 800; margin: 0 0 3px; }
/* Provenance line — a fall-through must never masquerade as the user's data. */
.ltk-discover-head p { font-size: .72rem; color: #9CA3AF; margin: 0; line-height: 1.45; }

.ltk-disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ltk-disc-card {
  display: flex; flex-direction: column; text-align: left; font: inherit;
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--ltk-r);
  padding: 10px; cursor: pointer; overflow: hidden;
}
.ltk-disc-card:hover { border-color: #B5202A; }
.ltk-disc-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  background: #F3F4F6; margin-bottom: 8px;
}
.ltk-disc-name {
  font-size: .76rem; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ltk-disc-meta { font-size: .7rem; color: #9CA3AF; margin-top: 5px; }
.ltk-disc-up { color: #1A7A46; font-weight: 700; }
/* The empty state doubles as the slot-filling mechanism. */
.ltk-disc-add {
  display: inline-block; margin-top: 8px; font-size: .7rem; font-weight: 700;
  color: #B5202A; border: 1px dashed #F3C6C0; border-radius: 999px;
  padding: 4px 10px; align-self: flex-start;
}
.ltk-disc-add:hover { background: #F9EAE4; border-style: solid; }

/* ── Summary card (Site B chat thread, Site A dashboard strip) ─────────── */
.ltk-summary { display: flex; flex-direction: column; gap: 10px; }
.ltk-summary-line { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #6B7280; }
.ltk-summary-top { display: flex; align-items: center; gap: 10px; }
.ltk-summary-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #F3F4F6; flex-shrink: 0; }
.ltk-summary-main { flex: 1; min-width: 0; }
.ltk-summary-name {
  font-size: .8rem; font-weight: 700; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ltk-summary-num { font-size: .85rem; font-weight: 800; color: #1A7A46; white-space: nowrap; }
.ltk-summary-empty { font-size: .78rem; color: #9CA3AF; line-height: 1.5; }

/* ── Skeleton / error ──────────────────────────────────────────────────── */
.ltk-skel { display: flex; flex-direction: column; gap: 2px; padding: 4px var(--ltk-pad) 12px; }
.ltk-skel-stat {
  height: 74px; border-color: #F3F4F6;
  background: linear-gradient(90deg, #F9FAFB 25%, #F3F4F6 50%, #F9FAFB 75%);
  background-size: 200% 100%; animation: ltk-shimmer 1.2s infinite;
}
.ltk-skel-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid #F3F4F6;
}
.ltk-skel-img, .ltk-skel-line {
  background: linear-gradient(90deg, #F3F4F6 25%, #E9EAEC 50%, #F3F4F6 75%);
  background-size: 200% 100%; animation: ltk-shimmer 1.2s infinite; border-radius: 6px;
}
.ltk-skel-img { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.ltk-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ltk-skel-line { height: 10px; }
.ltk-skel-line.w60 { width: 60%; }
.ltk-skel-line.w35 { width: 35%; }
@keyframes ltk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.ltk-err {
  text-align: center; padding: 40px 24px; background: #fff;
  border: 1px dashed #E5E7EB; border-radius: 14px;
}
.ltk-err p { font-size: .82rem; color: #6B7280; margin: 0 0 14px; line-height: 1.55; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (min-width: 760px) {
  .ltk-disc-grid { grid-template-columns: repeat(4, 1fr); }
  .ltk-title { font-size: 1.15rem; }
}
@media (max-width: 720px) {
  .ltk-statstrip { grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); }
  .ltk-stat-val { font-size: 1rem; }
  /* Day-range + sort selects add clutter above the fold on a small screen;
     "Pengaturan Pantauan" still reaches the same add/remove/sort surface. */
  .ltk-winsel, .ltk-panel-head .ltk-sr { display: none; }
  .ltk-panel-head { gap: 8px; }
}
@media (max-width: 420px) {
  .ltk-baseline-stats { font-size: .68rem; }
  .ltk-scopetabs { width: 100%; }
  .ltk-scopetab { flex: 1; justify-content: center; }
  .ltk-catsel { margin-left: 0; width: 100%; }
  .ltk-catsel .ltk-select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ltk-root *,
  .ltk-root *::before,
  .ltk-root *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
