/* ===========================================================================
   Assuffah Multi-Upload — theme.css
   Light/Dark themes + three visual directions (elegan / minimal / kontras)
   Palette: deep teal base, soft teal primary, warm sand/gold accent.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Spectral:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  /* light · elegan (default) */
  --bg:        #eef1f7;
  --bg-2:      #e6ebf4;
  --surface:   #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #edf1f9;
  --ink:       #182030;
  --ink-2:     #4c586b;
  --ink-3:     #828ea3;
  --line:      #e2e7f0;
  --line-2:    #d0d8e6;
  --primary:       #5566ee;
  --primary-strong:#4a4fe0;
  --primary-ink:   #4f46e5;
  --primary-soft:  #ebe9fd;
  --on-primary:    #ffffff;
  --accent:        #b89048;
  --accent-2:      #c8a86a;
  --accent-soft:   #f2e9d6;
  --success:   #1f9d6b;
  --success-soft:#dcf0e6;
  --warn:      #c98a2c;
  --warn-soft: #f6ecd6;
  --danger:    #cf4537;
  --danger-soft:#f7e0dc;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20,48,44,.05), 0 2px 8px rgba(20,48,44,.05);
  --shadow-2: 0 4px 14px rgba(20,48,44,.08), 0 14px 40px rgba(20,48,44,.08);
  --shadow-pop: 0 10px 30px rgba(20,48,44,.16);
  --pattern-op: .05;
  --chrome-bg: rgba(255,255,255,.82);
  --chrome-line: var(--line);
  --title-font: 'Spectral', Georgia, serif;
  --title-weight: 600;
  --ring: rgba(99,102,241,.30);
  --grad: linear-gradient(135deg, #4f93f7 0%, #6366f1 52%, #9333ea 100%);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---- dark ---------------------------------------------------------------- */
[data-theme="dark"] {
  --bg:        #141319;
  --bg-2:      #100f15;
  --surface:   #1c1b23;
  --surface-2: #232129;
  --surface-3: #2c2a34;
  --ink:       #f0eef6;
  --ink-2:     #b6b2c2;
  --ink-3:     #807c8a;
  --line:      #2c2a35;
  --line-2:    #3a3845;
  --primary:       #8290ff;
  --primary-strong:#9a85ff;
  --primary-ink:   #aab2ff;
  --primary-soft:  #221f4d;
  --on-primary:    #071529;
  --accent:        #d9c89b;
  --accent-2:      #e3d6b0;
  --accent-soft:   #2a2a1c;
  --success:   #34c08a;
  --success-soft:#0f3a2c;
  --warn:      #e0aa55;
  --warn-soft: #3a2f17;
  --danger:    #e8675c;
  --danger-soft:#3d211d;
  --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 2px 8px rgba(0,0,0,.30);
  --shadow-2: 0 6px 18px rgba(0,0,0,.40), 0 18px 48px rgba(0,0,0,.40);
  --shadow-pop: 0 12px 36px rgba(0,0,0,.55);
  --chrome-bg: rgba(20,19,25,.85);
  --ring: rgba(130,144,255,.42);
  --grad: linear-gradient(135deg, #6fa3ff 0%, #7b7cf6 50%, #b06bf0 100%);
  --on-primary: #ffffff;
}

/* ---- visual direction: minimal ------------------------------------------ */
[data-style="minimal"] {
  --radius: 9px; --radius-sm: 7px; --radius-lg: 12px;
  --shadow-1: 0 0 0 1px var(--line);
  --shadow-2: 0 1px 0 var(--line);
  --shadow-pop: 0 8px 24px rgba(20,48,44,.12);
  --pattern-op: 0;
  --title-font: 'Plus Jakarta Sans', sans-serif;
  --title-weight: 700;
  --bg: #f3f6f4; --bg-2: #eef2ef;
}
[data-style="minimal"][data-theme="dark"] {
  --bg: #0a1816; --bg-2: #0c1c19;
  --shadow-pop: 0 10px 30px rgba(0,0,0,.5);
}

/* ---- visual direction: kontras ------------------------------------------ */
[data-style="kontras"] {
  --radius: 20px; --radius-sm: 13px; --radius-lg: 26px;
  --pattern-op: .085;
  --accent: #b0822f; --accent-2: #cba24a;
  --shadow-2: 0 6px 18px rgba(20,48,44,.12), 0 22px 56px rgba(20,48,44,.14);
}
[data-style="kontras"][data-theme="dark"] {
  --pattern-op: .12;
}

/* ===========================================================================
   Base
   =========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100%; }
button { font-family: inherit; }
::selection { background: var(--ring); }

/* geometric khatam pattern, theme-aware via mask + currentcolor */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-color: var(--primary);
  opacity: var(--pattern-op);
  -webkit-mask-image: var(--khatam); mask-image: var(--khatam);
  -webkit-mask-size: 122px 122px; mask-size: 122px 122px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
:root {
  --khatam: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'><g fill='white'><path d='M34 44C26 38 20 32.5 20 25.5a7.6 7.6 0 0 1 14-3 7.6 7.6 0 0 1 14 3C48 32.5 42 38 34 44Z'/><path d='M94 27 112 35 94 43Z'/><path d='M14 79h26a4 4 0 0 1 4 4v11a4 4 0 0 1-4 4H27l-8 7v-7h-5a4 4 0 0 1-4-4V83a4 4 0 0 1 4-4Z'/><rect x='86' y='92' width='30' height='21' rx='5'/><rect x='96' y='87' width='10' height='6' rx='2'/><path d='M66 52c1.4 7 3 8.6 10 10-7 1.4-8.6 3-10 10-1.4-7-3-8.6-10-10 7-1.4 8.6-3 10-10Z'/></g></svg>");
}

/* ===========================================================================
   App shell
   =========================================================================== */
.app { min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--bg)) 0, var(--bg) 340px); }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 64px;
  background: var(--chrome-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--chrome-line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .seal {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--grad);
  color: var(--on-primary);
  box-shadow: var(--shadow-1);
}
[data-style="kontras"] .brand .seal { border-radius: 50%; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b {
  font-family: var(--title-font); font-weight: var(--title-weight);
  font-size: 20px; letter-spacing: .01em; color: var(--ink);
}
.brand .wm span { font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button.active { background: var(--primary-soft); color: var(--primary-ink); }
.nav button .badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
[data-theme="dark"] .nav button .badge { color: #fff; }

.spacer { flex: 1; }
.iconbtn {
  appearance: none; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  color: #3a2e10; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: var(--shadow-1);
}

.page { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 22px 80px; }
.page-head { margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--title-font); font-weight: var(--title-weight);
  font-size: 27px; margin: 0 0 5px; letter-spacing: .005em;
}
.page-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ===========================================================================
   Cards
   =========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
}
.card-pad { padding: 22px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-h .ttl { font-size: 13px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.card-h .step {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

/* compose two-column grid */
.compose-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start;
}
.compose-left { position: sticky; top: 88px; }

/* ===========================================================================
   Upload / portrait preview (9:16)
   =========================================================================== */
.uploader {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden;
  border: 2px dashed var(--line-2); background: var(--surface-2);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.uploader:hover { border-color: var(--primary); background: var(--primary-soft); }
.uploader.drag { border-color: var(--primary); border-style: solid;
  background: var(--primary-soft); box-shadow: 0 0 0 4px var(--ring) inset; }
.uploader .drop-in { text-align: center; padding: 28px; color: var(--ink-2); }
.uploader .drop-in .ic {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1);
}
.uploader .drop-in b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.uploader .drop-in small { font-size: 12.5px; color: var(--ink-3); }

.uploader.filled { border: 1px solid var(--line); background: #000; cursor: default; }
.uploader video { width: 100%; height: 100%; object-fit: cover; display: block; background:#000; }
.pv-grad { position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent); pointer-events: none; }
.pv-badge {
  position: absolute; left: 10px; top: 10px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.pv-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; }
.pv-controls { position: absolute; right: 10px; top: 10px; display: flex; gap: 8px; }
.pv-mini {
  width: 32px; height: 32px; border-radius: 9px; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .15s;
}
.pv-mini:hover { background: rgba(0,0,0,.78); }
.pv-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; }
.pv-foot .fn { font-size: 13px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.pv-foot .meta { display: flex; gap: 12px; font-size: 11.5px; opacity: .85; margin-top: 3px; }

/* cover strip */
.covers { display: flex; gap: 8px; margin-top: 12px; }
.cover-thumb {
  width: 44px; aspect-ratio: 9/16; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; flex: none; background: var(--surface-3);
  padding: 0;
}
.cover-thumb.sel { border-color: var(--primary); }
.cover-thumb img, .cover-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.covers .hint { font-size: 12px; color: var(--ink-3); align-self: center; }

/* ===========================================================================
   Form fields
   =========================================================================== */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.field > label .lt { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field > label .opt { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.field > label .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; }

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237d948e' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
[data-theme="dark"] .tag { color: var(--accent-2); }
.tag button { appearance: none; border: 0; background: transparent; cursor: pointer;
  color: inherit; opacity: .6; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.tag button:hover { opacity: 1; }

/* ===========================================================================
   Platform picker
   =========================================================================== */
.plat-list { display: flex; flex-direction: column; gap: 10px; }
.plat {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden; transition: border-color .15s, background .15s;
}
.plat.on { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 1px var(--primary) inset; }
.plat-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; cursor: pointer; }
.plat-ic { width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; box-shadow: var(--shadow-1); }
.plat-name { flex: 1; }
.plat-name b { display: block; font-size: 14.5px; color: var(--ink); }
.plat-name small { font-size: 12px; color: var(--ink-3); }
.plat-name small.over { color: var(--danger); font-weight: 600; }

/* toggle switch */
.switch { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px;
  background: var(--line-2); border: 0; cursor: pointer; transition: background .18s; padding: 0; }
.switch[data-on="1"] { background: var(--primary); }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch[data-on="1"] i { transform: translateX(18px); }

/* shopee product attach */
.attach {
  border-top: 1px dashed var(--line-2);
  padding: 14px 15px; background: var(--surface-2);
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
}
.attach .alab { display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; color: var(--ink-2); grid-column: 1 / -1; }
.attach .alab .pin { color: var(--accent); display: grid; place-items: center; }
.prod-current { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1;
  margin-top: 2px; padding: 9px 11px; border-radius: var(--radius-sm);
  background: var(--accent-soft); }
.prod-current .ph { width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--accent-2), var(--accent)); }
.prod-current .pi b { font-size: 13.5px; color: var(--ink); display:block; }
.prod-current .pi small { font-size: 12px; color: var(--ink-3); }

/* ===========================================================================
   Schedule + submit
   =========================================================================== */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--line); gap: 3px; }
.seg button { appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 8px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.seg button.on { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow-1); }
.sched-fields { display: flex; gap: 12px; margin-top: 13px; }
.sched-fields .field { flex: 1; margin: 0; min-width: 0; }

/* custom date / time picker */
.dp { position: relative; }
.dp-trigger { width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: var(--radius-sm); padding: 11px 12px; font-family: inherit; font-size: 14.5px; font-weight: 600;
  transition: border-color .15s, box-shadow .15s, background .15s; text-align: left; }
.dp-trigger:hover { border-color: var(--line-2); }
.dp-trigger.open { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--ring); }
.dp-trigger > svg:first-child { color: var(--primary); flex: none; }
.dp-trigger .v { flex: 1; font-variant-numeric: tabular-nums; }
.dp-trigger .v em { font-style: normal; font-weight: 600; color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.dp-trigger .ph { flex: 1; color: var(--ink-3); font-weight: 500; }
.dp-caret { color: var(--ink-3); display: grid; place-items: center; flex: none; transition: transform .2s; }
.dp-trigger.open .dp-caret { transform: rotate(180deg); }

.dp-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 268px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 12px; animation: dppop .16s ease; }
@keyframes dppop { from { opacity: 0; transform: translateY(-6px); } }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-head b { font-size: 14.5px; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.dp-head button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.dp-head button:hover { color: var(--ink); border-color: var(--line-2); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-dow { margin-bottom: 4px; }
.dp-dowc { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.dp-cell { aspect-ratio: 1; border: 0; background: transparent; cursor: pointer; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: grid; place-items: center; transition: background .12s, color .12s; }
.dp-cell:hover { background: var(--surface-2); }
.dp-cell.mute { color: var(--ink-3); opacity: .45; }
.dp-cell.today { color: var(--primary-ink); box-shadow: 0 0 0 1.5px var(--primary) inset; }
.dp-cell.sel { background: var(--primary); color: var(--on-primary); }
.dp-cell.sel:hover { background: var(--primary-strong); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-foot button { background: transparent; border: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 700; color: var(--primary-ink); padding: 4px 6px; border-radius: 7px; }
.dp-foot button:hover { background: var(--primary-soft); }
.dp-foot button.clr { color: var(--ink-3); }
.dp-foot button.clr:hover { background: var(--surface-2); color: var(--danger); }

.tp-pop { min-width: 0; max-height: 244px; overflow-y: auto; padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; scrollbar-width: thin; }
.tp-item { border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 9px 8px; border-radius: 8px;
  font-variant-numeric: tabular-nums; transition: background .12s; }
.tp-item:hover { background: var(--surface-2); }
.tp-item.sel { background: var(--primary); color: var(--on-primary); }

.sched-preview { display: flex; align-items: center; gap: 10px; margin-top: 13px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary-ink); font-size: 13.5px; }
.sched-preview .sp-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1); }
.sched-preview b { font-weight: 700; }

.submit-bar { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.btn-primary {
  appearance: none; border: 0; cursor: pointer; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 24px; border-radius: var(--radius);
  background: var(--grad);
  color: var(--on-primary); font-size: 16.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--shadow-2); transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.04); box-shadow: var(--shadow-pop); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: var(--shadow-1); }
.submit-note { font-size: 12.5px; color: var(--ink-3); max-width: 180px; line-height: 1.4; }

.targets-sum { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 13px; color: var(--ink-2); }
.targets-sum .mini-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }

/* ===========================================================================
   History
   =========================================================================== */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; align-items: center; gap: 13px; padding: 16px 18px; box-shadow: var(--shadow-1); }
.kpi-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); }
.kpi-ic.done { background: var(--success-soft); color: var(--success); }
.kpi-ic.run  { background: var(--warn-soft); color: var(--warn); }
.kpi-ic.fail { background: var(--danger-soft); color: var(--danger); }
.kpi b { display: block; font-family: var(--title-font); font-weight: var(--title-weight);
  font-size: 23px; color: var(--ink); line-height: 1.1; }
.kpi small { font-size: 12.5px; color: var(--ink-3); }

.hist-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search { flex: 1; max-width: 340px; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { padding-left: 38px; }
.filterchips { display: flex; gap: 7px; }
.fchip { appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; }
.fchip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }

.thead {
  display: grid; grid-template-columns: 1fr repeat(5, 56px) 92px;
  gap: 8px; padding: 16px 18px 13px; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.thead .pcol { display: grid; place-items: center; }
.hrow {
  display: grid; grid-template-columns: 1fr repeat(5, 56px) 92px;
  gap: 8px; padding: 14px 18px; align-items: center;
  border-top: 1px solid var(--line);
}
.hrow:hover { background: var(--surface-2); }
.hvid { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hthumb { width: 42px; aspect-ratio: 9/16; border-radius: 8px; flex: none;
  background: linear-gradient(150deg, var(--primary-soft), var(--surface-3));
  position: relative; overflow: hidden; display: grid; place-items: center; color: var(--primary); }
.hvid .hi { min-width: 0; }
.hvid .hi b { font-size: 14px; color: var(--ink); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hvid .hi small { font-size: 12px; color: var(--ink-3); }

.scell { display: grid; place-items: center; }
.st { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  position: relative; cursor: default; }
.st.success { background: var(--success-soft); color: var(--success); }
.st.processing { background: var(--warn-soft); color: var(--warn); }
.st.failed { background: var(--danger-soft); color: var(--danger); cursor: pointer; }
.st.idle { color: var(--ink-3); opacity: .4; }
.st.failed:hover { filter: brightness(.96); }
.st.processing svg { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hstatus { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.done { background: var(--success-soft); color: var(--success); }
.pill.run  { background: var(--warn-soft); color: var(--warn); }
.pill.fail { background: var(--danger-soft); color: var(--danger); }

.hrow.click { cursor: pointer; }
.hchev { color: var(--ink-3); opacity: 0; transition: opacity .15s, transform .15s; display: grid; place-items: center; transform: rotate(-90deg); }
.hrow.click:hover .hchev { opacity: 1; }
.hthumb.big { width: 84px; border-radius: 12px; }

/* detail drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(8,20,18,.45);
  backdrop-filter: blur(2px); display: flex; justify-content: flex-end;
  animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(440px, 92vw); height: 100%; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; animation: slidein .26s cubic-bezier(.2,.8,.3,1); }
@keyframes slidein { from { transform: translateX(28px); opacity: .4; } }
.dw-head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dw-head b { font-family: var(--title-font); font-weight: var(--title-weight); font-size: 18px; }
.dw-body { padding: 20px; overflow-y: auto; }
.dw-top { display: flex; gap: 15px; margin-bottom: 22px; }
.dw-meta { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dw-cap { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.dw-meta small { font-size: 12.5px; color: var(--ink-3); }
.dw-prod { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2);
  background: var(--accent-soft); padding: 7px 10px; border-radius: 9px; margin-top: 3px; }
.dw-prod b { color: var(--ink); }
.dw-sect { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 11px; }
.dw-list { display: flex; flex-direction: column; gap: 9px; }
.dw-row { display: flex; align-items: center; gap: 12px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.dw-row.success { border-color: color-mix(in srgb, var(--success) 30%, var(--line)); }
.dw-row.failed  { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: var(--danger-soft); }
.dw-pi { flex: 1; min-width: 0; }
.dw-pi b { display: block; font-size: 14px; color: var(--ink); }
.dw-pi small { font-size: 12px; color: var(--ink-3); }
.dw-row.failed .dw-pi small { color: var(--danger); }
.dw-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700;
  color: var(--primary-ink); text-decoration: none; white-space: nowrap; }
.dw-idle { color: var(--ink-3); opacity: .5; }

@media (max-width: 880px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 5px;
  font-family: var(--title-font); font-weight: var(--title-weight); }

/* footer */
.app-foot { display: flex; align-items: center; justify-content: center; gap: 9px;
  flex-wrap: wrap; padding: 22px 22px 28px; color: var(--ink-3); font-size: 12.5px;
  border-top: 1px solid var(--line); margin-top: 20px; }
.app-foot .af-dot { opacity: .5; }

/* mobile bottom nav */
.mobnav { display: none; }
@media (max-width: 640px) {
  .nav { display: none; }
  .mobnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--chrome-bg); backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid var(--line); padding: 7px 8px calc(8px + env(safe-area-inset-bottom)); gap: 4px; }
  .mobnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: transparent; border: 0; cursor: pointer; padding: 6px 4px; border-radius: 12px;
    color: var(--ink-3); font-family: inherit; font-size: 11px; font-weight: 700; transition: color .15s; }
  .mobnav button.active { color: var(--primary-ink); }
  .mobnav button.active .mn-ic svg, .mobnav button.active > svg { color: var(--primary-ink); }
  .mobnav .mn-ic { position: relative; display: grid; place-items: center; }
  .mobnav svg { width: 22px; height: 22px; }
  .mdot { position: absolute; top: -3px; right: -5px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--danger); border: 1.5px solid var(--surface); }
  .app-foot { margin-bottom: 66px; }
  .toast-wrap { bottom: 80px; }
}

/* pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; flex-wrap: wrap; }
.pager-info { font-size: 13px; color: var(--ink-3); }
.pager-info b { color: var(--ink-2); font-weight: 700; }
.pager-ctrl { display: flex; align-items: center; gap: 6px; }
.pgbtn { min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
  display: grid; place-items: center; transition: all .14s; }
.pgbtn:hover:not(:disabled) { border-color: var(--line-2); color: var(--ink); background: var(--surface-2); }
.pgbtn:disabled { opacity: .4; cursor: not-allowed; }
.pgbtn.num.on { background: var(--grad); border-color: transparent; color: var(--on-primary); box-shadow: var(--shadow-1); }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  background: var(--ink); color: var(--bg); border-radius: 13px; box-shadow: var(--shadow-pop);
  font-size: 14px; font-weight: 600; animation: rise .3s cubic-bezier(.2,.8,.3,1); }
.toast .tic { color: var(--success); display: grid; place-items: center; }
[data-theme="dark"] .toast { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ===========================================================================
   Login
   =========================================================================== */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}
.login-aside { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #4f7ef6 0%, #6750d8 48%, #46269c 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-aside .pattern { background-color: #fff; opacity: .07; }
.login-aside .lbrand { display: flex; align-items: center; gap: 13px; position: relative; }
.login-aside .lbrand .seal { width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); }
.login-aside .lbrand b { font-family: var(--title-font); font-weight: 600; font-size: 24px; }
.login-aside .lbrand span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.login-hero { position: relative; max-width: 440px; }
.login-hero h2 { font-family: var(--title-font); font-weight: 600; font-size: 38px;
  line-height: 1.16; margin: 0 0 16px; letter-spacing: .005em; }
.login-hero p { font-size: 16px; line-height: 1.6; opacity: .85; margin: 0; }
.login-stats { display: flex; gap: 30px; position: relative; }
.login-stats .s b { font-family: var(--title-font); font-size: 26px; display: block; }
.login-stats .s span { font-size: 12.5px; opacity: .75; }
.login-pforms { display: flex; gap: 9px; position: relative; margin-top: 6px; }
.login-pforms .pf { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }

.login-main { display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 380px; }
.login-card .lh { margin-bottom: 26px; }
.login-card .lh h1 { font-family: var(--title-font); font-weight: var(--title-weight);
  font-size: 28px; margin: 0 0 7px; }
.login-card .lh p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.login-card .btn-primary { width: 100%; margin-top: 6px; }
.login-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-3); }
.login-foot a { color: var(--primary-ink); text-decoration: none; font-weight: 600; }
.field-ic { position: relative; }
.field-ic svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.field-ic .input { padding-left: 40px; }
.field-ic .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--ink-3); cursor: pointer; padding: 7px; border-radius: 8px; }
.field-ic .eye:hover { color: var(--ink); }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 880px) {
  .compose-grid { grid-template-columns: 1fr; }
  .compose-left { position: static; }
  .uploader { max-width: 300px; aspect-ratio: 9/16; margin: 0 auto; }
  .login { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .htable .thead { display: none; }
  .hrow { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .hrow .scell { display: none; }
  .hrow .hstatus { justify-content: flex-start; }
  .hmobile-stat { display: flex !important; }
}
@media (min-width: 881px) { .hmobile-stat { display: none; } }
@media (max-width: 560px) {
  .topbar { gap: 10px; padding: 0 14px; }
  .brand .wm span { display: none; }
  .nav button span.lbl { display: none; }
  .wrap { padding: 22px 14px 70px; }
  .submit-bar { flex-direction: column; align-items: stretch; }
  .submit-note { max-width: none; text-align: center; }
  .sched-fields { flex-direction: column; }
}

/* mobile per-platform status strip (hidden on desktop) */
.hmobile-stat { display: none; gap: 7px; flex-wrap: wrap; }
.hmobile-stat .ms { display: flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 600; }

/* ===========================================================================
   Integrations / API connections
   =========================================================================== */
.intg-summary { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.is-stat { display: flex; align-items: center; gap: 18px; }
.is-ring { position: relative; width: 68px; height: 68px; flex: none; display: grid; place-items: center; }
.is-ring .donut { position: absolute; inset: 0; }
.is-ring b { position: relative; display: flex; align-items: baseline; gap: 1px;
  font-family: var(--title-font); font-weight: var(--title-weight); font-size: 21px; color: var(--ink); line-height: 1; }
.is-ring b span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.is-stat > div > b { display: block; font-size: 16px; color: var(--ink); }
.is-stat > div > small { font-size: 13px; color: var(--ink-2); }
.is-pforms { display: flex; gap: 12px; }
.isp { position: relative; }
.isp-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--ink-3); }
.isp.connected .isp-dot { background: var(--success); }
.isp.expired .isp-dot { background: var(--warn); }
.isp.connecting .isp-dot { background: var(--warn); animation: pulse 1s infinite; }
.isp.disconnected .isp-dot { background: var(--line-2); }
@keyframes pulse { 50% { opacity: .35; } }

.intg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.intg-card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden;
  transition: border-color .15s, box-shadow .15s; }
.intg-card.is-on { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.intg-card.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.intg-head { display: flex; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; }
.intg-head .ih-main { flex: 1; min-width: 0; }
.ih-main b { font-size: 15.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ih-main b .via { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface-2);
  padding: 2px 7px; border-radius: 999px; }
.ih-main small { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.conn-pill .cdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.conn-pill.done { background: var(--success-soft); color: var(--success); }
.conn-pill.run  { background: var(--warn-soft); color: var(--warn); }
.conn-pill.idle { background: var(--surface-2); color: var(--ink-3); }
.chev { color: var(--ink-3); display: grid; place-items: center; transition: transform .2s; }
.chev.up { transform: rotate(180deg); }

.intg-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.conn-summary { display: flex; align-items: center; gap: 12px; padding: 14px 0 16px; }
.conn-summary .cs-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--success-soft); color: var(--success); }
.conn-summary > div { flex: 1; }
.conn-summary b { display: block; font-size: 14px; color: var(--ink); }
.conn-summary small { font-size: 12.5px; color: var(--ink-3); }

.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; }
.cred { display: flex; flex-direction: column; gap: 6px; }
.cred.wide { grid-column: 1 / -1; }
.cred label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cred-in { position: relative; }
.cred-in .input { font-size: 13px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; padding-right: 38px; }
.cred-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent;
  border: 0; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 7px; }
.cred-eye:hover { color: var(--ink); }

.warn-note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--warn);
  background: var(--warn-soft); padding: 11px 13px; border-radius: var(--radius-sm); margin-bottom: 4px; }

.scopes { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 0 16px; }
.scopes .sc-lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.scope { font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; color: var(--primary-ink);
  background: var(--primary-soft); padding: 3px 9px; border-radius: 7px; }

.intg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.docs { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; }
.docs:hover { color: var(--primary-ink); }
.intg-actions { display: flex; align-items: center; gap: 9px; }

.btn-cta, .btn-soft, .btn-ghost {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 700; font-family: inherit;
  transition: filter .15s, background .15s, color .15s; }
.btn-cta { background: var(--grad); color: var(--on-primary);
  box-shadow: var(--shadow-1); }
.btn-cta:hover { filter: brightness(1.05); }
.btn-cta:disabled { opacity: .6; cursor: default; filter: none; }
.btn-soft { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--surface-3); }
.btn-soft.danger { color: var(--danger); }
.btn-soft.danger:hover { background: var(--danger-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }
.btn-ghost.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }

.intg-hint { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.intg-hint svg { color: var(--primary); flex: none; margin-top: 1px; }

/* connection dot on composer platform rows */
.conn-mini { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 7px;
  vertical-align: middle; flex: none; }
.conn-mini.connected { background: var(--success); }
.conn-mini.expired { background: var(--warn); }
.conn-mini.disconnected { background: var(--line-2); }
.plat-name b { display: flex; align-items: center; }

@media (max-width: 880px) {
  .intg-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
}

/* ── Product picker (searchable dropdown) ─────────────────────────────────── */
.pp { position: relative; }
.pp .dp-trigger { font-weight: 600; }
.pp-tag { color: var(--accent); display: grid; place-items: center; flex: none; }
.pp-val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-pop { left: 0; right: 0; min-width: 0; padding: 0; overflow: hidden; }
.pp-search { display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.pp-search > svg { color: var(--ink-3); flex: none; }
.pp-search-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-family: inherit; font-size: 14px; padding: 2px 0; }
.pp-search-in::placeholder { color: var(--ink-3); }
.pp-clear { border: 0; background: var(--surface-2); color: var(--ink-3); cursor: pointer;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none;
  transition: color .12s, background .12s; }
.pp-clear:hover { color: var(--ink); background: var(--surface-3); }
.pp-list { max-height: 264px; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.pp-item { display: block; width: 100%; text-align: left; border: 0; background: transparent;
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink);
  padding: 10px 11px; border-radius: 9px; line-height: 1.4;
  transition: background .12s, color .12s; }
.pp-item:hover { background: var(--surface-2); }
.pp-item.sel { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.pp-none { color: var(--ink-3); font-style: italic; }
.pp-item.sel .pp-none { color: var(--on-primary); }
.pp-hl { background: var(--primary-soft); color: var(--primary-ink); border-radius: 3px;
  padding: 0 1px; font-weight: 700; }
.pp-item.sel .pp-hl { background: rgba(255, 255, 255, .26); color: inherit; }
.pp-empty { padding: 18px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
