/* Product mockup styles. Themed through --d-* variables set by each direction. */
.ptd, .vg {
  --d-bg: #ffffff; --d-side: #f7f8f6; --d-panel: #ffffff; --d-head: #fafbf9; --d-line: #e6e9e4;
  --d-ink: #0f1712; --d-text: #39423c; --d-muted: #5f6a63; --d-acc: #003521; --d-acc-fg: #fff; --d-soft: #ecffee;
  --c-in: #3bd276; --c-out: #124733; --c-net: #ff865e; --d-ok: #0e7a3e; --d-warn: #b4541f; --d-late: #b4541f;
  font-family: 'Inter', system-ui, sans-serif; color: var(--d-text); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.ptd.dark, .vg.dark, .dark .ptd, .dark .vg {
  --d-bg: #0b1410; --d-side: #08110d; --d-panel: #0f1b16; --d-head: #12211a; --d-line: #1e3129;
  --d-ink: #f1f7f2; --d-text: #c6d3ca; --d-muted: #8fa398; --d-acc: #3bd276; --d-acc-fg: #002515; --d-soft: #133024;
  --c-in: #3bd276; --c-out: #d8ffa4; --c-net: #ff865e; --d-ok: #6fe39b; --d-warn: #ffb088; --d-late: #ffb088;
}
.ptd .ic, .vg .ic { width: 16px; height: 16px; flex: none; }
.ptd { position: relative; display: grid; grid-template-columns: 212px 1fr; width: 1240px; height: 760px; background: var(--d-bg); border-radius: 14px; overflow: hidden; font-size: 13px; line-height: 1.35; text-align: left; }
.ptd-side { background: var(--d-side); border-right: 1px solid var(--d-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; }
.ptd-brand { padding: 2px 8px 6px; }
.ptd-logo { height: 22px; width: auto; display: block; }
.ptd .logo-mark { fill: #3bd276; } .ptd .logo-word { fill: var(--d-ink); }
.ptd-switch { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-panel); }
.ptd-switch span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ptd-switch b { color: var(--d-ink); font-weight: 600; font-size: 13px; } .ptd-switch small { color: var(--d-muted); font-size: 11.5px; }
.ptd-switch .ic { color: var(--d-muted); width: 12px; height: 12px; }
.ptd-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--d-acc); color: var(--d-acc-fg); font-size: 11px; font-weight: 600; flex: none; }
.ptd-av.sq { border-radius: 8px; } .ptd-av.s { width: 22px; height: 22px; font-size: 9.5px; margin-right: 8px; vertical-align: middle; }
.ptd-side nav { display: flex; flex-direction: column; gap: 2px; }
.ptd-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--d-text); font-weight: 500; }
.ptd-nav .ic { color: var(--d-muted); }
.ptd-nav.on { background: var(--d-soft); color: var(--d-ink); }
.ptd-nav.on .ic { color: var(--d-acc); }
.dark .ptd-nav.on .ic, .ptd.dark .ptd-nav.on .ic { color: #3bd276; }
.ptd-credits { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--d-soft); display: flex; flex-direction: column; gap: 8px; }
.ptd-credits .row { display: flex; justify-content: space-between; align-items: baseline; }
.ptd-credits b { color: var(--d-ink); font-weight: 600; } .ptd-credits small { color: var(--d-muted); font-size: 11.5px; }
.ptd-credits .bar { height: 6px; border-radius: 9px; background: var(--d-line); overflow: hidden; }
.ptd-credits .bar i { display: block; height: 100%; background: var(--d-acc); border-radius: 9px; }
.ptd-main { padding: 20px 24px 76px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.ptd-head { display: flex; justify-content: space-between; align-items: center; }
.ptd-head h4 { margin: 0; font: 600 20px/1.2 'DM Sans', 'Inter', sans-serif; color: var(--d-ink); letter-spacing: -0.01em; }
.ptd-head p { margin: 4px 0 0; color: var(--d-muted); }
.ptd-tools { display: flex; align-items: center; gap: 8px; }
.ptd-search { display: flex; align-items: center; gap: 8px; width: 200px; height: 34px; padding: 0 10px; border: 1px solid var(--d-line); border-radius: 9px; color: var(--d-muted); background: var(--d-panel); }
.ptd-ibtn { width: 34px; height: 34px; border: 1px solid var(--d-line); border-radius: 9px; display: grid; place-items: center; color: var(--d-text); background: var(--d-panel); }
.ptd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ptd-tile { border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-panel); overflow: hidden; }
.ptd-tile .tl { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--d-head); border-bottom: 1px solid var(--d-line); color: var(--d-text); font-weight: 500; }
.ptd-tile .tl .ic { color: var(--d-acc); width: 14px; height: 14px; }
.dark .ptd-tile .tl .ic, .ptd.dark .ptd-tile .tl .ic { color: #3bd276; }
.ptd-tile .tv { padding: 14px 14px 2px; font: 600 24px/1.1 'DM Sans', 'Inter', sans-serif; color: var(--d-ink); letter-spacing: -0.01em; }
.ptd-tile .ts { padding: 6px 14px 14px; color: var(--d-muted); }
.ptd-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; min-height: 0; }
.ptd-card { border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-panel); overflow: hidden; }
.ptd-card .ch { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--d-head); border-bottom: 1px solid var(--d-line); }
.ptd-card .ch b { color: var(--d-ink); font-weight: 600; } .ptd-card .ch small { color: var(--d-muted); }
.ptd-card .lg { display: flex; align-items: center; gap: 6px; color: var(--d-muted); font-size: 12px; }
.ptd-card .lg i { width: 9px; height: 9px; border-radius: 3px; margin-left: 6px; }
.l-in { background: var(--c-in); } .l-out { background: var(--c-out); } .l-net { background: var(--c-net); border-radius: 50% !important; }
.ptd-chart { display: block; width: 100%; height: auto; padding: 10px 14px 6px; box-sizing: border-box; }
.ptd-chart .grid { stroke: var(--d-line); stroke-width: 1; }
.ptd-chart .tick { fill: var(--d-muted); font-size: 10px; font-family: Inter, sans-serif; }
.ptd-chart .b-in { fill: var(--c-in); } .ptd-chart .b-out { fill: var(--c-out); }
.ptd-chart .net { fill: none; stroke: var(--c-net); stroke-width: 2.5; stroke-linecap: round; }
.ptd-chart .net-dot { fill: var(--d-panel); stroke: var(--c-net); stroke-width: 2; }
.ptd-need { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--d-line); }
.ptd-need:last-child { border-bottom: 0; }
.ptd-need > .ic { color: var(--d-acc); width: 18px; height: 18px; }
.dark .ptd-need > .ic, .ptd.dark .ptd-need > .ic { color: #3bd276; }
.ptd-need span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .ptd-need b { color: var(--d-ink); font-weight: 600; } .ptd-need small { color: var(--d-muted); }
.ptd-need em { font-style: normal; font-weight: 600; font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--d-line); color: var(--d-ink); }
.ptd-dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 460px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--d-panel); border: 1px solid var(--d-line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .22); color: var(--d-muted); }
.ptd-dock span { flex: 1; }
.ptd-pm { width: 18px; height: 20px; fill: #3bd276; }
.ptd-dock kbd { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--d-acc); color: var(--d-acc-fg); }
.ptd-sample { position: absolute; right: 14px; top: 14px; font-size: 11px; color: var(--d-muted); padding: 3px 8px; border: 1px dashed var(--d-line); border-radius: 6px; display: none; }
.ptd-wide { flex: 1; }
.ptd-table { width: 100%; border-collapse: collapse; }
.ptd-table th { text-align: center; font-weight: 500; color: var(--d-muted); padding: 10px 14px; border-bottom: 1px solid var(--d-line); font-size: 12px; }
.ptd-table td { text-align: center; padding: 11px 14px; border-bottom: 1px solid var(--d-line); color: var(--d-text); }
.ptd-table th:first-child, .ptd-table td:first-child { text-align: left; color: var(--d-ink); font-weight: 500; }
.ptd-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(59, 210, 118, .14); color: var(--d-ok); }
.pill.warn, .pill.late { background: rgba(255, 134, 94, .16); color: var(--d-warn); }

/* vignettes */
.vg { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; font-size: 13.5px; width: 100%; max-width: 420px; box-shadow: 0 18px 40px -24px rgba(0, 40, 24, .35); }
.vg-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--d-head); border-bottom: 1px solid var(--d-line); }
.vg-h .ic { color: var(--d-acc); }
.dark .vg-h .ic, .vg.dark .vg-h .ic { color: #3bd276; }
.vg-h b { color: var(--d-ink); font-weight: 600; flex: 1; } .vg-h small { color: var(--d-muted); }
.vg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--d-line); }
.vg-row.sel { background: var(--d-soft); }
.vg-row > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vg-row b { color: var(--d-ink); font-weight: 600; } .vg-row small { color: var(--d-muted); display: flex; align-items: center; gap: 4px; }
.vg-row small .ic { width: 12px; height: 12px; color: var(--c-in); }
.vg-row em { font-style: normal; font-weight: 600; color: var(--d-ink); white-space: nowrap; }
.vg-row em.in { color: var(--d-ok); }
.vg-row em.chip { font-size: 12px; padding: 5px 10px; border: 1px solid var(--d-line); border-radius: 8px; }
.vg-row > .ic { color: var(--d-acc); }
.vg-c { flex-direction: row !important; align-items: center; gap: 10px !important; }
.vg-c > i { width: 30px; height: 30px; border-radius: 8px; background: var(--d-acc); color: var(--d-acc-fg); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; flex: none; }
.vg-c > i.d { background: var(--d-soft); color: var(--d-ink); font-size: 13px; }
.vg-c > span { display: flex; flex-direction: column; gap: 2px; }
.vg-foot { display: flex; align-items: center; gap: 8px; padding: 11px 16px; color: var(--d-ok); font-weight: 500; font-size: 12.5px; }
.vg-foot .ic { width: 15px; height: 15px; }
.vg-inv { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.vg-inv small { color: var(--d-muted); } .vg-inv > b { color: var(--d-ink); font-weight: 600; }
.vg-lines { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--d-line); }
.vg-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--d-line); }
.vg-total b { color: var(--d-ink); font: 600 18px 'DM Sans', sans-serif; }
.vg-kv { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 16px; border-bottom: 1px solid var(--d-line); }
.vg-kv b { color: var(--d-ink); font-weight: 600; text-align: right; }
.vg-steps { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.vg-steps span { display: flex; align-items: center; gap: 8px; }
.vg-steps .done { color: var(--d-muted); } .vg-steps .done .ic { color: var(--d-ok); }
.vg-steps .now { color: var(--d-ink); font-weight: 600; } .vg-steps .now .ic { color: var(--c-net); }
.vg-btns { padding: 0 16px 16px; } .vg-btns i { display: block; text-align: center; font-style: normal; font-weight: 600; padding: 10px; border-radius: 10px; background: var(--d-acc); color: var(--d-acc-fg); }
.vg-big { padding: 16px 16px 8px; font: 600 28px/1 'DM Sans', sans-serif; color: var(--d-ink); letter-spacing: -0.01em; }
.vg-bank { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 10px; padding: 8px 16px; }
.vg-bank b { color: var(--d-ink); font-weight: 600; text-align: right; }
.vg-bar { height: 8px; border-radius: 9px; background: var(--d-line); overflow: hidden; } .vg-bar i { display: block; height: 100%; background: var(--c-in); border-radius: 9px; }
.vg-wa .vg-h .ic { color: #25a35a; }
.vg-msg { margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--d-head); color: var(--d-ink); max-width: 80%; border: 1px solid var(--d-line); }
.vg-msg.me { margin-left: auto; border-radius: 12px 12px 4px 12px; background: var(--d-soft); border-color: transparent; }
.vg-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 16px 16px; padding: 12px; border: 1px solid var(--d-line); border-radius: 10px; color: var(--d-ink); font-weight: 600; }
.vg-file .ic { color: var(--c-net); } .vg-file small { width: 100%; color: var(--d-muted); font-weight: 400; }

/* scaling wrapper: keeps the 1240px mock crisp at any width */
.ptd-scale { position: relative; width: 100%; aspect-ratio: 1240 / 760; }
.ptd-scale > .ptd { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
